Added debug output for when the start block of subtable is not on a cylinder
[AROS.git] / configure
blob32601afd1752400aee9593270c91e8de3f1d9dda
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
557 ac_unique_file="mmakefile"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_subst_vars='LTLIBOBJS
596 gcc_target_cpu
597 ignore_undefined_symbols
598 aros_modules_debug
599 aros_stack_debug
600 aros_mungwall_debug
601 aros_debug
602 ENABLE_X11
603 KERNEL_DBUS_INCLUDES
604 KERNEL_DBUS_KOBJ
605 DBUS_LIBFLAGS
606 DBUS_CFLAGS
607 ENABLE_DBUS
608 aros_ios_sdk
609 aros_ios_version
610 aros_ios_platform
611 aros_nesting_supervisor
612 aros_palm_debug_hack
613 aros_serial_debug
614 aros_host_sdl_libs
615 aros_host_sdl_cflags
616 aros_host_x11_libdirs
617 aros_host_x11_includes
618 DO_VIDMODE_SUPPORT
619 DO_XSHM_SUPPORT
620 aros_default_wbdepth
621 aros_default_wbheight
622 aros_default_wbwidth
623 oss_library_target
624 pci_hidd_target
625 sdl_hidd_target
626 x11_hidd_target
627 crosstools_target
628 aros_target_strip_flags
629 aros_target_genmap
630 aros_paranoia_cflags
631 aros_debug_ldflags
632 aros_debug_aflags
633 aros_debug_cflags
634 aros_kernel_ldflags
635 aros_kernel_objcflags
636 aros_kernel_includes
637 aros_kernel_cflags
638 aros_shared_ldflags
639 aros_shared_aflags
640 aros_shared_cflags
641 aros_config_ldflags
642 aros_config_aflags
643 aros_config_cflags
644 aros_arch_libs
645 aros_compiler_libs
646 aros_object_format
647 aros_shared_ld
648 aros_shared_default
649 aros_target_nm
650 aros_target_strip
651 aros_target_objcopy
652 aros_target_objdump
653 aros_target_cc_path
654 aros_target_cc_includes
655 orig_target_ld
656 aros_target_as
657 aros_kernel_cc
658 orig_target_cc
659 aros_kernel_nm
660 aros_target_ranlib
661 aros_target_ar
662 aros_target_incl
663 aros_target_suffix
664 aros_target_variant
665 aros_target_cpu
666 aros_target_family
667 aros_target_arch
668 aros_target_bootloader
669 aros_target_iconset
670 aros_target_guitheme
671 aros_tools_dir
672 aros_host_lib_suffix
673 aros_host_exe_suffix
674 aros_host_mkargs
675 aros_host_mkdep
676 aros_host_debug
677 aros_host_ldflags
678 aros_host_cflags
679 aros_host_make
680 aros_host_cc
681 aros_host_cpu
682 aros_host_arch
683 aros_cc_pre
684 AROS_PORTSSRCDIR
685 SRCDIR
686 AROS_BUILDDIR_UNIX
687 AROS_BUILDDIR
688 aros_flavour_uc
689 aros_flavour
690 aros_cpu
691 aros_arch
692 SDL_LIBS
693 SDL_CFLAGS
694 SDL_CONFIG
695 XMKMF
696 aros_cflags_iquote_end
697 aros_cflags_iquote
698 kernel_cflags_iquote_end
699 kernel_cflags_iquote
700 host_cflags_iquote_end
701 host_cflags_iquote
702 aros_target_nostdlib_ldflags
703 aros_target_detach_ldflags
704 aros_target_nix_ldflags
705 aros_target_nostartup_ldflags
706 aros_target_nostdinc_cflags
707 aros_kernel_rescomp
708 aros_target_cxx
709 aros_target_strip_ln
710 aros_target_ranlib_ln
711 aros_target_objdump_ln
712 aros_target_objcopy_ln
713 aros_target_nm_ln
714 aros_target_ar_ln
715 aros_kernel_ld
716 aros_target_as_ln
717 aros_target_ld
718 aros_target_cc
719 CCACHE
720 DISTCC
721 LIBOBJS
722 EGREP
723 GREP
725 TEST
728 pkgpyexecdir
729 pyexecdir
730 pkgpythondir
731 pythondir
732 PYTHON_PLATFORM
733 PYTHON_EXEC_PREFIX
734 PYTHON_PREFIX
735 PYTHON_VERSION
736 PYTHON
737 CHMOD
739 PPMTOILBM
740 PNGTOPNM
741 FLEX
742 BISON
745 UNIQ
746 SORT
747 TOUCH
748 MKDIR
749 ECHO
753 aros_host_strip
754 aros_host_ranlib
755 aros_host_ar
756 aros_host_automake
757 aros_host_autoheader
758 aros_host_autoconf
759 aros_host_aclocal
760 aros_host_ld
761 MMAKE
764 OBJEXT
765 EXEEXT
766 ac_ct_CC
767 CPPFLAGS
768 LDFLAGS
769 CFLAGS
771 host_os
772 host_vendor
773 host_cpu
774 host
775 build_os
776 build_vendor
777 build_cpu
778 build
779 target_alias
780 host_alias
781 build_alias
782 LIBS
783 ECHO_T
784 ECHO_N
785 ECHO_C
786 DEFS
787 mandir
788 localedir
789 libdir
790 psdir
791 pdfdir
792 dvidir
793 htmldir
794 infodir
795 docdir
796 oldincludedir
797 includedir
798 localstatedir
799 sharedstatedir
800 sysconfdir
801 datadir
802 datarootdir
803 libexecdir
804 sbindir
805 bindir
806 program_transform_name
807 prefix
808 exec_prefix
809 PACKAGE_URL
810 PACKAGE_BUGREPORT
811 PACKAGE_STRING
812 PACKAGE_VERSION
813 PACKAGE_TARNAME
814 PACKAGE_NAME
815 PATH_SEPARATOR
816 SHELL'
817 ac_subst_files=''
818 ac_user_opts='
819 enable_option_checking
820 enable_build_type
821 enable_debug
822 enable_crosstools
823 enable_distcc
824 enable_ccache
825 with_gcc_version
826 with_optimization
827 with_paranoia
828 with_xcode_path
829 with_ios_version
830 with_ios_sdk
831 enable_target_variant
832 with_portssources
833 with_bootloader
834 with_iconset
835 with_theme
836 enable_includes
837 with_resolution
838 with_serial_debug
839 enable_palm_debug_hack
840 enable_nesting_supervisor
841 enable_x11_hidd
842 with_x
843 enable_x11_shm
844 enable_x11_vidmode
845 enable_sdl_hidd
846 with_sdl_prefix
847 with_sdl_exec_prefix
848 enable_sdltest
849 enable_dbus
851 ac_precious_vars='build_alias
852 host_alias
853 target_alias
855 CFLAGS
856 LDFLAGS
857 LIBS
858 CPPFLAGS
860 XMKMF'
863 # Initialize some variables set by options.
864 ac_init_help=
865 ac_init_version=false
866 ac_unrecognized_opts=
867 ac_unrecognized_sep=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
870 cache_file=/dev/null
871 exec_prefix=NONE
872 no_create=
873 no_recursion=
874 prefix=NONE
875 program_prefix=NONE
876 program_suffix=NONE
877 program_transform_name=s,x,x,
878 silent=
879 site=
880 srcdir=
881 verbose=
882 x_includes=NONE
883 x_libraries=NONE
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir='${exec_prefix}/bin'
892 sbindir='${exec_prefix}/sbin'
893 libexecdir='${exec_prefix}/libexec'
894 datarootdir='${prefix}/share'
895 datadir='${datarootdir}'
896 sysconfdir='${prefix}/etc'
897 sharedstatedir='${prefix}/com'
898 localstatedir='${prefix}/var'
899 includedir='${prefix}/include'
900 oldincludedir='/usr/include'
901 docdir='${datarootdir}/doc/${PACKAGE}'
902 infodir='${datarootdir}/info'
903 htmldir='${docdir}'
904 dvidir='${docdir}'
905 pdfdir='${docdir}'
906 psdir='${docdir}'
907 libdir='${exec_prefix}/lib'
908 localedir='${datarootdir}/locale'
909 mandir='${datarootdir}/man'
911 ac_prev=
912 ac_dashdash=
913 for ac_option
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\$ac_option
918 ac_prev=
919 continue
922 case $ac_option in
923 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
924 *) ac_optarg=yes ;;
925 esac
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
931 ac_dashdash=yes ;;
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
934 ac_prev=bindir ;;
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 bindir=$ac_optarg ;;
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
950 --config-cache | -C)
951 cache_file=config.cache ;;
953 -datadir | --datadir | --datadi | --datad)
954 ac_prev=datadir ;;
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=no ;;
981 -docdir | --docdir | --docdi | --doc | --do)
982 ac_prev=docdir ;;
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 docdir=$ac_optarg ;;
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 ac_prev=dvidir ;;
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 dvidir=$ac_optarg ;;
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1018 with_gas=yes ;;
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 ac_prev=htmldir ;;
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 | --ht=*)
1036 htmldir=$ac_optarg ;;
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 ac_prev=infodir ;;
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1050 -libdir | --libdir | --libdi | --libd)
1051 ac_prev=libdir ;;
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 ac_prev=mandir ;;
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1081 with_fp=no ;;
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1085 no_create=yes ;;
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 no_recursion=yes ;;
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 ac_prev=prefix ;;
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 ac_prev=pdfdir ;;
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1141 -psdir | --psdir | --psdi | --psd | --ps)
1142 ac_prev=psdir ;;
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 psdir=$ac_optarg ;;
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 silent=yes ;;
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 ac_prev=sbindir ;;
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 | --sbi=* | --sb=*)
1154 sbindir=$ac_optarg ;;
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1159 | --sha | --sh)
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 | --sha=* | --sh=*)
1165 sharedstatedir=$ac_optarg ;;
1167 -site | --site | --sit)
1168 ac_prev=site ;;
1169 -site=* | --site=* | --sit=*)
1170 site=$ac_optarg ;;
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 ac_prev=srcdir ;;
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 verbose=yes ;;
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1195 -with-* | --with-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=\$ac_optarg ;;
1211 -without-* | --without-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error "invalid package name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1220 "with_$ac_useropt"
1221 "*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=no ;;
1227 --x)
1228 # Obsolete; use --with-x.
1229 with_x=yes ;;
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1245 -*) as_fn_error "unrecognized option: \`$ac_option'
1246 Try \`$0 --help' for more information."
1249 *=*)
1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 case $ac_envvar in #(
1253 '' | [0-9]* | *[!_$as_cr_alnum]* )
1254 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1255 esac
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1267 esac
1268 done
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 as_fn_error "missing argument to $ac_option"
1275 if test -n "$ac_unrecognized_opts"; then
1276 case $enable_option_checking in
1277 no) ;;
1278 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280 esac
1283 # Check all directory arguments for consistency.
1284 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir
1289 eval ac_val=\$$ac_var
1290 # Remove trailing slashes.
1291 case $ac_val in
1292 */ )
1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294 eval $ac_var=\$ac_val;;
1295 esac
1296 # Be sure to have absolute directory names.
1297 case $ac_val in
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300 esac
1301 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1302 done
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1307 build=$build_alias
1308 host=$host_alias
1309 target=$target_alias
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1322 ac_tool_prefix=
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325 test "$silent" = yes && exec 6>/dev/null
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 as_fn_error "working directory cannot be determined"
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 as_fn_error "pwd does not report name of working directory"
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 $as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1354 /^X\(\/\/\)$/{
1355 s//\1/
1358 /^X\(\/\).*/{
1359 s//\1/
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1367 else
1368 ac_srcdir_defaulted=no
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1374 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 ac_abs_confdir=`(
1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1377 pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402 \`configure' configures this package to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1411 Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1455 _ACEOF
1457 cat <<\_ACEOF
1459 X features:
1460 --x-includes=DIR X include files are in DIR
1461 --x-libraries=DIR X library files are in DIR
1463 System types:
1464 --build=BUILD configure for building on BUILD [guessed]
1465 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1466 _ACEOF
1469 if test -n "$ac_init_help"; then
1471 cat <<\_ACEOF
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --enable-build-type=TYPE
1478 Select the build type. Available types are:
1479 personal, nightly, snapshot, milestone, release. Do
1480 NOT use this option unless you know what you are
1481 doing! (default=personal)
1482 --enable-debug=list Enable different types of debug. Commas or
1483 whitespaces can be used to separate the items in the
1484 list. Available types of debug are: all, none,
1485 messages, stack, mungwall, modules, symbols. If no
1486 list is provided then "all" is assumed.
1487 (default=none)
1488 --enable-crosstools Build cross-compiler toolchains if necessary
1489 (default=no).
1490 --enable-distcc Use distcc as a front end to the compiler
1491 (default=no).
1492 --enable-ccache Use ccache as a front end to the compiler
1493 (default=no).
1494 --enable-target-variant=NAME
1495 Enable a specific target variant(default=none)
1496 --enable-includes=dir Alternative system include directory
1497 --enable-palm-debug-hack
1498 Enable palm debug output hack in palm native
1499 (default=no)
1500 --enable-nesting-supervisor
1501 Enable nesting supervisor support in unix
1502 (default=no)
1503 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1504 --enable-x11-shm use X11 shared memory (default=auto)
1505 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1506 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1507 --disable-sdltest Do not try to compile and run a test SDL program
1508 --enable-dbus Enable DBUS support via dbus.library (default=no)
1510 Optional Packages:
1511 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1512 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1513 --with-gcc-version=VERSION
1514 Use gcc-VERSION for building AROS
1515 --with-optimization=FLAGS
1516 Use optimization flags FLAGS (default=-O2).
1517 --with-paranoia=FLAGS CC flags to enable paranoia
1518 --with-xcode=PATH Specify XCode path for iOS targets
1519 (default=/Developer).
1520 --with-ios-version=VERSION
1521 Specify minimum supported iOS version (default=2.0).
1522 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1523 --with-portssources=DIR Where to download sourcecode for external ports
1524 --with-bootloader=NAME Use a specific bootloader
1525 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1526 --with-theme=NAME Use a specific GUI Theme
1527 --with-resolution=XRESxYRESxDEPTH
1528 Default resolution of the initial WorkbenchScreen
1529 --with-serial-debug Enable serial debug output in native (default=no)
1530 --with-x use the X Window System
1531 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1532 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1534 Some influential environment variables:
1535 CC C compiler command
1536 CFLAGS C compiler flags
1537 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1538 nonstandard directory <lib dir>
1539 LIBS libraries to pass to the linker, e.g. -l<library>
1540 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1541 you have headers in a nonstandard directory <include dir>
1542 CPP C preprocessor
1543 XMKMF Path to xmkmf, Makefile generator for X Window System
1545 Use these variables to override the choices made by `configure' or to help
1546 it to find libraries and programs with nonstandard names/locations.
1548 Report bugs to the package provider.
1549 _ACEOF
1550 ac_status=$?
1553 if test "$ac_init_help" = "recursive"; then
1554 # If there are subdirs, report their specific --help.
1555 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1556 test -d "$ac_dir" ||
1557 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 continue
1559 ac_builddir=.
1561 case "$ac_dir" in
1562 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1565 # A ".." for each directory in $ac_dir_suffix.
1566 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1567 case $ac_top_builddir_sub in
1568 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1569 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1570 esac ;;
1571 esac
1572 ac_abs_top_builddir=$ac_pwd
1573 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1574 # for backward compatibility:
1575 ac_top_builddir=$ac_top_build_prefix
1577 case $srcdir in
1578 .) # We are building in place.
1579 ac_srcdir=.
1580 ac_top_srcdir=$ac_top_builddir_sub
1581 ac_abs_top_srcdir=$ac_pwd ;;
1582 [\\/]* | ?:[\\/]* ) # Absolute name.
1583 ac_srcdir=$srcdir$ac_dir_suffix;
1584 ac_top_srcdir=$srcdir
1585 ac_abs_top_srcdir=$srcdir ;;
1586 *) # Relative name.
1587 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1588 ac_top_srcdir=$ac_top_build_prefix$srcdir
1589 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1590 esac
1591 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1593 cd "$ac_dir" || { ac_status=$?; continue; }
1594 # Check for guested configure.
1595 if test -f "$ac_srcdir/configure.gnu"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1598 elif test -f "$ac_srcdir/configure"; then
1599 echo &&
1600 $SHELL "$ac_srcdir/configure" --help=recursive
1601 else
1602 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1603 fi || ac_status=$?
1604 cd "$ac_pwd" || { ac_status=$?; break; }
1605 done
1608 test -n "$ac_init_help" && exit $ac_status
1609 if $ac_init_version; then
1610 cat <<\_ACEOF
1611 configure
1612 generated by GNU Autoconf 2.65
1614 Copyright (C) 2009 Free Software Foundation, Inc.
1615 This configure script is free software; the Free Software Foundation
1616 gives unlimited permission to copy, distribute and modify it.
1617 _ACEOF
1618 exit
1621 ## ------------------------ ##
1622 ## Autoconf initialization. ##
1623 ## ------------------------ ##
1625 # ac_fn_c_try_compile LINENO
1626 # --------------------------
1627 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1628 ac_fn_c_try_compile ()
1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631 rm -f conftest.$ac_objext
1632 if { { ac_try="$ac_compile"
1633 case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1636 esac
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_compile") 2>conftest.err
1640 ac_status=$?
1641 if test -s conftest.err; then
1642 grep -v '^ *+' conftest.err >conftest.er1
1643 cat conftest.er1 >&5
1644 mv -f conftest.er1 conftest.err
1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1647 test $ac_status = 0; } && {
1648 test -z "$ac_c_werror_flag" ||
1649 test ! -s conftest.err
1650 } && test -s conftest.$ac_objext; then :
1651 ac_retval=0
1652 else
1653 $as_echo "$as_me: failed program was:" >&5
1654 sed 's/^/| /' conftest.$ac_ext >&5
1656 ac_retval=1
1658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1659 as_fn_set_status $ac_retval
1661 } # ac_fn_c_try_compile
1663 # ac_fn_c_try_cpp LINENO
1664 # ----------------------
1665 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_cpp ()
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 if { { ac_try="$ac_cpp conftest.$ac_ext"
1670 case "(($ac_try" in
1671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1672 *) ac_try_echo=$ac_try;;
1673 esac
1674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1675 $as_echo "$ac_try_echo"; } >&5
1676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1677 ac_status=$?
1678 if test -s conftest.err; then
1679 grep -v '^ *+' conftest.err >conftest.er1
1680 cat conftest.er1 >&5
1681 mv -f conftest.er1 conftest.err
1683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1684 test $ac_status = 0; } >/dev/null && {
1685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1686 test ! -s conftest.err
1687 }; then :
1688 ac_retval=0
1689 else
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1693 ac_retval=1
1695 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1696 as_fn_set_status $ac_retval
1698 } # ac_fn_c_try_cpp
1700 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1701 # -------------------------------------------------------
1702 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1703 # the include files in INCLUDES and setting the cache variable VAR
1704 # accordingly.
1705 ac_fn_c_check_header_mongrel ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710 $as_echo_n "checking for $2... " >&6; }
1711 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1712 $as_echo_n "(cached) " >&6
1714 eval ac_res=\$$3
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1717 else
1718 # Is the header compilable?
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1720 $as_echo_n "checking $2 usability... " >&6; }
1721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1722 /* end confdefs.h. */
1724 #include <$2>
1725 _ACEOF
1726 if ac_fn_c_try_compile "$LINENO"; then :
1727 ac_header_compiler=yes
1728 else
1729 ac_header_compiler=no
1731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1733 $as_echo "$ac_header_compiler" >&6; }
1735 # Is the header present?
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1737 $as_echo_n "checking $2 presence... " >&6; }
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 #include <$2>
1741 _ACEOF
1742 if ac_fn_c_try_cpp "$LINENO"; then :
1743 ac_header_preproc=yes
1744 else
1745 ac_header_preproc=no
1747 rm -f conftest.err conftest.$ac_ext
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1749 $as_echo "$ac_header_preproc" >&6; }
1751 # So? What about this header?
1752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1753 yes:no: )
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1755 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1757 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1759 no:yes:* )
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1761 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1763 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1765 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1767 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1769 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1771 esac
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773 $as_echo_n "checking for $2... " >&6; }
1774 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1775 $as_echo_n "(cached) " >&6
1776 else
1777 eval "$3=\$ac_header_compiler"
1779 eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781 $as_echo "$ac_res" >&6; }
1783 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1785 } # ac_fn_c_check_header_mongrel
1787 # ac_fn_c_try_run LINENO
1788 # ----------------------
1789 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1790 # that executables *can* be run.
1791 ac_fn_c_try_run ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 if { { ac_try="$ac_link"
1795 case "(($ac_try" in
1796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797 *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_link") 2>&5
1802 ac_status=$?
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1805 { { case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_try") 2>&5
1812 ac_status=$?
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1814 test $ac_status = 0; }; }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: program exited with status $ac_status" >&5
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1821 ac_retval=$ac_status
1823 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1824 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1825 as_fn_set_status $ac_retval
1827 } # ac_fn_c_try_run
1829 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1830 # -------------------------------------------------------
1831 # Tests whether HEADER exists and can be compiled using the include files in
1832 # INCLUDES, setting the cache variable VAR accordingly.
1833 ac_fn_c_check_header_compile ()
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837 $as_echo_n "checking for $2... " >&6; }
1838 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1840 else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842 /* end confdefs.h. */
1844 #include <$2>
1845 _ACEOF
1846 if ac_fn_c_try_compile "$LINENO"; then :
1847 eval "$3=yes"
1848 else
1849 eval "$3=no"
1851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1853 eval ac_res=\$$3
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1855 $as_echo "$ac_res" >&6; }
1856 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1858 } # ac_fn_c_check_header_compile
1860 # ac_fn_c_try_link LINENO
1861 # -----------------------
1862 # Try to link conftest.$ac_ext, and return whether this succeeded.
1863 ac_fn_c_try_link ()
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1866 rm -f conftest.$ac_objext conftest$ac_exeext
1867 if { { ac_try="$ac_link"
1868 case "(($ac_try" in
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1870 *) ac_try_echo=$ac_try;;
1871 esac
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1873 $as_echo "$ac_try_echo"; } >&5
1874 (eval "$ac_link") 2>conftest.err
1875 ac_status=$?
1876 if test -s conftest.err; then
1877 grep -v '^ *+' conftest.err >conftest.er1
1878 cat conftest.er1 >&5
1879 mv -f conftest.er1 conftest.err
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && {
1883 test -z "$ac_c_werror_flag" ||
1884 test ! -s conftest.err
1885 } && test -s conftest$ac_exeext && {
1886 test "$cross_compiling" = yes ||
1887 $as_test_x conftest$ac_exeext
1888 }; then :
1889 ac_retval=0
1890 else
1891 $as_echo "$as_me: failed program was:" >&5
1892 sed 's/^/| /' conftest.$ac_ext >&5
1894 ac_retval=1
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1898 # interfere with the next link command; also delete a directory that is
1899 # left behind by Apple's compiler. We do this before executing the actions.
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 as_fn_set_status $ac_retval
1904 } # ac_fn_c_try_link
1906 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1907 # ----------------------------------------------------
1908 # Tries to find if the field MEMBER exists in type AGGR, after including
1909 # INCLUDES, setting cache variable VAR accordingly.
1910 ac_fn_c_check_member ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1914 $as_echo_n "checking for $2.$3... " >&6; }
1915 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1916 $as_echo_n "(cached) " >&6
1917 else
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1922 main ()
1924 static $2 ac_aggr;
1925 if (ac_aggr.$3)
1926 return 0;
1928 return 0;
1930 _ACEOF
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 eval "$4=yes"
1933 else
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1938 main ()
1940 static $2 ac_aggr;
1941 if (sizeof ac_aggr.$3)
1942 return 0;
1944 return 0;
1946 _ACEOF
1947 if ac_fn_c_try_compile "$LINENO"; then :
1948 eval "$4=yes"
1949 else
1950 eval "$4=no"
1952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 eval ac_res=\$$4
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1958 $as_echo "$ac_res" >&6; }
1959 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1961 } # ac_fn_c_check_member
1963 # ac_fn_c_check_decl LINENO SYMBOL VAR
1964 # ------------------------------------
1965 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1966 ac_fn_c_check_decl ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1970 $as_echo_n "checking whether $2 is declared... " >&6; }
1971 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1972 $as_echo_n "(cached) " >&6
1973 else
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1978 main ()
1980 #ifndef $2
1981 (void) $2;
1982 #endif
1985 return 0;
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989 eval "$3=yes"
1990 else
1991 eval "$3=no"
1993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 eval ac_res=\$$3
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997 $as_echo "$ac_res" >&6; }
1998 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2000 } # ac_fn_c_check_decl
2002 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2003 # -------------------------------------------
2004 # Tests whether TYPE exists after having included INCLUDES, setting cache
2005 # variable VAR accordingly.
2006 ac_fn_c_check_type ()
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2010 $as_echo_n "checking for $2... " >&6; }
2011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2012 $as_echo_n "(cached) " >&6
2013 else
2014 eval "$3=no"
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2019 main ()
2021 if (sizeof ($2))
2022 return 0;
2024 return 0;
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2032 main ()
2034 if (sizeof (($2)))
2035 return 0;
2037 return 0;
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2042 else
2043 eval "$3=yes"
2045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2049 eval ac_res=\$$3
2050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2051 $as_echo "$ac_res" >&6; }
2052 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2054 } # ac_fn_c_check_type
2056 # ac_fn_c_check_func LINENO FUNC VAR
2057 # ----------------------------------
2058 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2059 ac_fn_c_check_func ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2063 $as_echo_n "checking for $2... " >&6; }
2064 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2065 $as_echo_n "(cached) " >&6
2066 else
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2071 #define $2 innocuous_$2
2073 /* System header to define __stub macros and hopefully few prototypes,
2074 which can conflict with char $2 (); below.
2075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2076 <limits.h> exists even on freestanding compilers. */
2078 #ifdef __STDC__
2079 # include <limits.h>
2080 #else
2081 # include <assert.h>
2082 #endif
2084 #undef $2
2086 /* Override any GCC internal prototype to avoid an error.
2087 Use char because int might match the return type of a GCC
2088 builtin and then its argument prototype would still apply. */
2089 #ifdef __cplusplus
2090 extern "C"
2091 #endif
2092 char $2 ();
2093 /* The GNU C library defines this for functions which it implements
2094 to always fail with ENOSYS. Some functions are actually named
2095 something starting with __ and the normal name is an alias. */
2096 #if defined __stub_$2 || defined __stub___$2
2097 choke me
2098 #endif
2101 main ()
2103 return $2 ();
2105 return 0;
2107 _ACEOF
2108 if ac_fn_c_try_link "$LINENO"; then :
2109 eval "$3=yes"
2110 else
2111 eval "$3=no"
2113 rm -f core conftest.err conftest.$ac_objext \
2114 conftest$ac_exeext conftest.$ac_ext
2116 eval ac_res=\$$3
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118 $as_echo "$ac_res" >&6; }
2119 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2121 } # ac_fn_c_check_func
2122 cat >config.log <<_ACEOF
2123 This file contains any messages produced by compilers while
2124 running configure, to aid debugging if configure makes a mistake.
2126 It was created by $as_me, which was
2127 generated by GNU Autoconf 2.65. Invocation command line was
2129 $ $0 $@
2131 _ACEOF
2132 exec 5>>config.log
2134 cat <<_ASUNAME
2135 ## --------- ##
2136 ## Platform. ##
2137 ## --------- ##
2139 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2140 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2141 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2142 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2143 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2145 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2146 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2148 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2149 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2150 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2151 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2152 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2153 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2154 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2156 _ASUNAME
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2161 IFS=$as_save_IFS
2162 test -z "$as_dir" && as_dir=.
2163 $as_echo "PATH: $as_dir"
2164 done
2165 IFS=$as_save_IFS
2167 } >&5
2169 cat >&5 <<_ACEOF
2172 ## ----------- ##
2173 ## Core tests. ##
2174 ## ----------- ##
2176 _ACEOF
2179 # Keep a trace of the command line.
2180 # Strip out --no-create and --no-recursion so they do not pile up.
2181 # Strip out --silent because we don't want to record it for future runs.
2182 # Also quote any args containing shell meta-characters.
2183 # Make two passes to allow for proper duplicate-argument suppression.
2184 ac_configure_args=
2185 ac_configure_args0=
2186 ac_configure_args1=
2187 ac_must_keep_next=false
2188 for ac_pass in 1 2
2190 for ac_arg
2192 case $ac_arg in
2193 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2195 | -silent | --silent | --silen | --sile | --sil)
2196 continue ;;
2197 *\'*)
2198 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2199 esac
2200 case $ac_pass in
2201 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2203 as_fn_append ac_configure_args1 " '$ac_arg'"
2204 if test $ac_must_keep_next = true; then
2205 ac_must_keep_next=false # Got value, back to normal.
2206 else
2207 case $ac_arg in
2208 *=* | --config-cache | -C | -disable-* | --disable-* \
2209 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2210 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2211 | -with-* | --with-* | -without-* | --without-* | --x)
2212 case "$ac_configure_args0 " in
2213 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2214 esac
2216 -* ) ac_must_keep_next=true ;;
2217 esac
2219 as_fn_append ac_configure_args " '$ac_arg'"
2221 esac
2222 done
2223 done
2224 { ac_configure_args0=; unset ac_configure_args0;}
2225 { ac_configure_args1=; unset ac_configure_args1;}
2227 # When interrupted or exit'd, cleanup temporary files, and complete
2228 # config.log. We remove comments because anyway the quotes in there
2229 # would cause problems or look ugly.
2230 # WARNING: Use '\'' to represent an apostrophe within the trap.
2231 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2232 trap 'exit_status=$?
2233 # Save into config.log some information that might help in debugging.
2235 echo
2237 cat <<\_ASBOX
2238 ## ---------------- ##
2239 ## Cache variables. ##
2240 ## ---------------- ##
2241 _ASBOX
2242 echo
2243 # The following way of writing the cache mishandles newlines in values,
2245 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2246 eval ac_val=\$$ac_var
2247 case $ac_val in #(
2248 *${as_nl}*)
2249 case $ac_var in #(
2250 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2251 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2252 esac
2253 case $ac_var in #(
2254 _ | IFS | as_nl) ;; #(
2255 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2256 *) { eval $ac_var=; unset $ac_var;} ;;
2257 esac ;;
2258 esac
2259 done
2260 (set) 2>&1 |
2261 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2262 *${as_nl}ac_space=\ *)
2263 sed -n \
2264 "s/'\''/'\''\\\\'\'''\''/g;
2265 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2266 ;; #(
2268 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2270 esac |
2271 sort
2273 echo
2275 cat <<\_ASBOX
2276 ## ----------------- ##
2277 ## Output variables. ##
2278 ## ----------------- ##
2279 _ASBOX
2280 echo
2281 for ac_var in $ac_subst_vars
2283 eval ac_val=\$$ac_var
2284 case $ac_val in
2285 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2286 esac
2287 $as_echo "$ac_var='\''$ac_val'\''"
2288 done | sort
2289 echo
2291 if test -n "$ac_subst_files"; then
2292 cat <<\_ASBOX
2293 ## ------------------- ##
2294 ## File substitutions. ##
2295 ## ------------------- ##
2296 _ASBOX
2297 echo
2298 for ac_var in $ac_subst_files
2300 eval ac_val=\$$ac_var
2301 case $ac_val in
2302 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2303 esac
2304 $as_echo "$ac_var='\''$ac_val'\''"
2305 done | sort
2306 echo
2309 if test -s confdefs.h; then
2310 cat <<\_ASBOX
2311 ## ----------- ##
2312 ## confdefs.h. ##
2313 ## ----------- ##
2314 _ASBOX
2315 echo
2316 cat confdefs.h
2317 echo
2319 test "$ac_signal" != 0 &&
2320 $as_echo "$as_me: caught signal $ac_signal"
2321 $as_echo "$as_me: exit $exit_status"
2322 } >&5
2323 rm -f core *.core core.conftest.* &&
2324 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2325 exit $exit_status
2327 for ac_signal in 1 2 13 15; do
2328 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2329 done
2330 ac_signal=0
2332 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2333 rm -f -r conftest* confdefs.h
2335 $as_echo "/* confdefs.h */" > confdefs.h
2337 # Predefined preprocessor variables.
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_NAME "$PACKAGE_NAME"
2341 _ACEOF
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2345 _ACEOF
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2349 _ACEOF
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_STRING "$PACKAGE_STRING"
2353 _ACEOF
2355 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2357 _ACEOF
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_URL "$PACKAGE_URL"
2361 _ACEOF
2364 # Let the site file select an alternate cache file if it wants to.
2365 # Prefer an explicitly selected file to automatically selected ones.
2366 ac_site_file1=NONE
2367 ac_site_file2=NONE
2368 if test -n "$CONFIG_SITE"; then
2369 ac_site_file1=$CONFIG_SITE
2370 elif test "x$prefix" != xNONE; then
2371 ac_site_file1=$prefix/share/config.site
2372 ac_site_file2=$prefix/etc/config.site
2373 else
2374 ac_site_file1=$ac_default_prefix/share/config.site
2375 ac_site_file2=$ac_default_prefix/etc/config.site
2377 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2379 test "x$ac_site_file" = xNONE && continue
2380 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2382 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2383 sed 's/^/| /' "$ac_site_file" >&5
2384 . "$ac_site_file"
2386 done
2388 if test -r "$cache_file"; then
2389 # Some versions of bash will fail to source /dev/null (special files
2390 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2391 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2393 $as_echo "$as_me: loading cache $cache_file" >&6;}
2394 case $cache_file in
2395 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2396 *) . "./$cache_file";;
2397 esac
2399 else
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2401 $as_echo "$as_me: creating cache $cache_file" >&6;}
2402 >$cache_file
2405 as_fn_append ac_header_list " stdlib.h"
2406 as_fn_append ac_header_list " unistd.h"
2407 as_fn_append ac_header_list " sys/param.h"
2408 # Check that the precious variables saved in the cache have kept the same
2409 # value.
2410 ac_cache_corrupted=false
2411 for ac_var in $ac_precious_vars; do
2412 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2413 eval ac_new_set=\$ac_env_${ac_var}_set
2414 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2415 eval ac_new_val=\$ac_env_${ac_var}_value
2416 case $ac_old_set,$ac_new_set in
2417 set,)
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2419 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2420 ac_cache_corrupted=: ;;
2421 ,set)
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2423 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2424 ac_cache_corrupted=: ;;
2425 ,);;
2427 if test "x$ac_old_val" != "x$ac_new_val"; then
2428 # differences in whitespace do not lead to failure.
2429 ac_old_val_w=`echo x $ac_old_val`
2430 ac_new_val_w=`echo x $ac_new_val`
2431 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2433 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2434 ac_cache_corrupted=:
2435 else
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2437 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2438 eval $ac_var=\$ac_old_val
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2441 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2443 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2444 fi;;
2445 esac
2446 # Pass precious variables to config.status.
2447 if test "$ac_new_set" = set; then
2448 case $ac_new_val in
2449 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2450 *) ac_arg=$ac_var=$ac_new_val ;;
2451 esac
2452 case " $ac_configure_args " in
2453 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2454 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2455 esac
2457 done
2458 if $ac_cache_corrupted; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2462 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2463 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2465 ## -------------------- ##
2466 ## Main body of script. ##
2467 ## -------------------- ##
2469 ac_ext=c
2470 ac_cpp='$CPP $CPPFLAGS'
2471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2477 ac_aux_dir=
2478 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2479 for ac_t in install-sh install.sh shtool; do
2480 if test -f "$ac_dir/$ac_t"; then
2481 ac_aux_dir=$ac_dir
2482 ac_install_sh="$ac_aux_dir/$ac_t -c"
2483 break 2
2485 done
2486 done
2487 if test -z "$ac_aux_dir"; then
2488 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2491 # These three variables are undocumented and unsupported,
2492 # and are intended to be withdrawn in a future Autoconf release.
2493 # They can cause serious problems if a builder's source tree is in a directory
2494 # whose full name contains unusual characters.
2495 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2496 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2497 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2501 # Check what host we are running on.
2502 # If a target is not suggested, we use this one.
2503 # Note that what we call a target, Autoconf calls a host.
2504 # Make sure we can run config.sub.
2505 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2506 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2509 $as_echo_n "checking build system type... " >&6; }
2510 if test "${ac_cv_build+set}" = set; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 ac_build_alias=$build_alias
2514 test "x$ac_build_alias" = x &&
2515 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2516 test "x$ac_build_alias" = x &&
2517 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2518 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2519 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2523 $as_echo "$ac_cv_build" >&6; }
2524 case $ac_cv_build in
2525 *-*-*) ;;
2526 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2527 esac
2528 build=$ac_cv_build
2529 ac_save_IFS=$IFS; IFS='-'
2530 set x $ac_cv_build
2531 shift
2532 build_cpu=$1
2533 build_vendor=$2
2534 shift; shift
2535 # Remember, the first character of IFS is used to create $*,
2536 # except with old shells:
2537 build_os=$*
2538 IFS=$ac_save_IFS
2539 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2543 $as_echo_n "checking host system type... " >&6; }
2544 if test "${ac_cv_host+set}" = set; then :
2545 $as_echo_n "(cached) " >&6
2546 else
2547 if test "x$host_alias" = x; then
2548 ac_cv_host=$ac_cv_build
2549 else
2550 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2551 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2556 $as_echo "$ac_cv_host" >&6; }
2557 case $ac_cv_host in
2558 *-*-*) ;;
2559 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2560 esac
2561 host=$ac_cv_host
2562 ac_save_IFS=$IFS; IFS='-'
2563 set x $ac_cv_host
2564 shift
2565 host_cpu=$1
2566 host_vendor=$2
2567 shift; shift
2568 # Remember, the first character of IFS is used to create $*,
2569 # except with old shells:
2570 host_os=$*
2571 IFS=$ac_save_IFS
2572 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2576 # The AROS target is slightly different to the normal GNU style
2577 # format. We don't have the middle part, and we reverse the order
2578 # of the $(CPU) and $(OS) bits.
2580 # Don't strip the version of the target yet, it might be
2581 # useful on some systems.
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2584 $as_echo_n "checking for AROS style target... " >&6; }
2586 if test "$target" = "NONE" ; then
2587 target=$host_os-$host_cpu
2588 cross_compile=no
2589 else
2590 if test "$target" = "" ; then
2591 target=$host_os-$host_cpu
2592 cross_compile=no
2593 else
2594 cross_compile=yes
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2598 $as_echo "$target" >&6; }
2600 if test "$host_os" = "mingw32" ; then
2601 PWDCMD="pwd -W"
2604 #don't know where else to put this...
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Building AROS in .. " >&5
2606 $as_echo_n "checking Building AROS in .. ... " >&6; }
2607 AROS_BUILDDIR=`${PWDCMD-pwd}`
2608 AROS_BUILDDIR_UNIX=${PWD}
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2610 $as_echo "$AROS_BUILDDIR" >&6; }
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS Source in .. " >&5
2613 $as_echo_n "checking AROS Source in .. ... " >&6; }
2614 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2615 SRCDIR=${srcpwd}
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2617 $as_echo "$SRCDIR" >&6; }
2619 # Parse the target field into something useful.
2621 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2622 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2625 aros_default_wbwidth=800
2626 aros_default_wbheight=600
2627 aros_default_wbdepth=4
2630 # The first step is to find the host binaries.
2631 # Check for a compiler.
2632 ac_ext=c
2633 ac_cpp='$CPP $CPPFLAGS'
2634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2637 if test -n "$ac_tool_prefix"; then
2638 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2639 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if test "${ac_cv_prog_CC+set}" = set; then :
2643 $as_echo_n "(cached) " >&6
2644 else
2645 if test -n "$CC"; then
2646 ac_cv_prog_CC="$CC" # Let the user override the test.
2647 else
2648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2649 for as_dir in $PATH
2651 IFS=$as_save_IFS
2652 test -z "$as_dir" && as_dir=.
2653 for ac_exec_ext in '' $ac_executable_extensions; do
2654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2655 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2657 break 2
2659 done
2660 done
2661 IFS=$as_save_IFS
2665 CC=$ac_cv_prog_CC
2666 if test -n "$CC"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2668 $as_echo "$CC" >&6; }
2669 else
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2676 if test -z "$ac_cv_prog_CC"; then
2677 ac_ct_CC=$CC
2678 # Extract the first word of "gcc", so it can be a program name with args.
2679 set dummy gcc; ac_word=$2
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2681 $as_echo_n "checking for $ac_word... " >&6; }
2682 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2684 else
2685 if test -n "$ac_ct_CC"; then
2686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 for ac_exec_ext in '' $ac_executable_extensions; do
2694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2695 ac_cv_prog_ac_ct_CC="gcc"
2696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 break 2
2699 done
2700 done
2701 IFS=$as_save_IFS
2705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2706 if test -n "$ac_ct_CC"; then
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2708 $as_echo "$ac_ct_CC" >&6; }
2709 else
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2711 $as_echo "no" >&6; }
2714 if test "x$ac_ct_CC" = x; then
2715 CC=""
2716 else
2717 case $cross_compiling:$ac_tool_warned in
2718 yes:)
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2721 ac_tool_warned=yes ;;
2722 esac
2723 CC=$ac_ct_CC
2725 else
2726 CC="$ac_cv_prog_CC"
2729 if test -z "$CC"; then
2730 if test -n "$ac_tool_prefix"; then
2731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2732 set dummy ${ac_tool_prefix}cc; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if test "${ac_cv_prog_CC+set}" = set; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 if test -n "$CC"; then
2739 ac_cv_prog_CC="$CC" # Let the user override the test.
2740 else
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 for as_dir in $PATH
2744 IFS=$as_save_IFS
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2748 ac_cv_prog_CC="${ac_tool_prefix}cc"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2750 break 2
2752 done
2753 done
2754 IFS=$as_save_IFS
2758 CC=$ac_cv_prog_CC
2759 if test -n "$CC"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2761 $as_echo "$CC" >&6; }
2762 else
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2770 if test -z "$CC"; then
2771 # Extract the first word of "cc", so it can be a program name with args.
2772 set dummy cc; ac_word=$2
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2774 $as_echo_n "checking for $ac_word... " >&6; }
2775 if test "${ac_cv_prog_CC+set}" = set; then :
2776 $as_echo_n "(cached) " >&6
2777 else
2778 if test -n "$CC"; then
2779 ac_cv_prog_CC="$CC" # Let the user override the test.
2780 else
2781 ac_prog_rejected=no
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2790 ac_prog_rejected=yes
2791 continue
2793 ac_cv_prog_CC="cc"
2794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2795 break 2
2797 done
2798 done
2799 IFS=$as_save_IFS
2801 if test $ac_prog_rejected = yes; then
2802 # We found a bogon in the path, so make sure we never use it.
2803 set dummy $ac_cv_prog_CC
2804 shift
2805 if test $# != 0; then
2806 # We chose a different compiler from the bogus one.
2807 # However, it has the same basename, so the bogon will be chosen
2808 # first if we set CC to just the basename; use the full file name.
2809 shift
2810 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2815 CC=$ac_cv_prog_CC
2816 if test -n "$CC"; then
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2818 $as_echo "$CC" >&6; }
2819 else
2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2821 $as_echo "no" >&6; }
2826 if test -z "$CC"; then
2827 if test -n "$ac_tool_prefix"; then
2828 for ac_prog in cl.exe
2830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if test "${ac_cv_prog_CC+set}" = set; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 if test -n "$CC"; then
2838 ac_cv_prog_CC="$CC" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2851 done
2852 done
2853 IFS=$as_save_IFS
2857 CC=$ac_cv_prog_CC
2858 if test -n "$CC"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2860 $as_echo "$CC" >&6; }
2861 else
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2867 test -n "$CC" && break
2868 done
2870 if test -z "$CC"; then
2871 ac_ct_CC=$CC
2872 for ac_prog in cl.exe
2874 # Extract the first word of "$ac_prog", so it can be a program name with args.
2875 set dummy $ac_prog; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 if test -n "$ac_ct_CC"; then
2882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_ac_ct_CC="$ac_prog"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2895 done
2896 done
2897 IFS=$as_save_IFS
2901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2902 if test -n "$ac_ct_CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2904 $as_echo "$ac_ct_CC" >&6; }
2905 else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2911 test -n "$ac_ct_CC" && break
2912 done
2914 if test "x$ac_ct_CC" = x; then
2915 CC=""
2916 else
2917 case $cross_compiling:$ac_tool_warned in
2918 yes:)
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2921 ac_tool_warned=yes ;;
2922 esac
2923 CC=$ac_ct_CC
2930 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2932 as_fn_error "no acceptable C compiler found in \$PATH
2933 See \`config.log' for more details." "$LINENO" 5; }
2935 # Provide some information about the compiler.
2936 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2937 set X $ac_compile
2938 ac_compiler=$2
2939 for ac_option in --version -v -V -qversion; do
2940 { { ac_try="$ac_compiler $ac_option >&5"
2941 case "(($ac_try" in
2942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2944 esac
2945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946 $as_echo "$ac_try_echo"; } >&5
2947 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2948 ac_status=$?
2949 if test -s conftest.err; then
2950 sed '10a\
2951 ... rest of stderr output deleted ...
2952 10q' conftest.err >conftest.er1
2953 cat conftest.er1 >&5
2955 rm -f conftest.er1 conftest.err
2956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2957 test $ac_status = 0; }
2958 done
2960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2961 /* end confdefs.h. */
2964 main ()
2968 return 0;
2970 _ACEOF
2971 ac_clean_files_save=$ac_clean_files
2972 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2973 # Try to create an executable without -o first, disregard a.out.
2974 # It will help us diagnose broken compilers, and finding out an intuition
2975 # of exeext.
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2977 $as_echo_n "checking whether the C compiler works... " >&6; }
2978 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2980 # The possible output files:
2981 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2983 ac_rmfiles=
2984 for ac_file in $ac_files
2986 case $ac_file in
2987 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2988 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2989 esac
2990 done
2991 rm -f $ac_rmfiles
2993 if { { ac_try="$ac_link_default"
2994 case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997 esac
2998 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2999 $as_echo "$ac_try_echo"; } >&5
3000 (eval "$ac_link_default") 2>&5
3001 ac_status=$?
3002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3003 test $ac_status = 0; }; then :
3004 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3005 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3006 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3007 # so that the user can short-circuit this test for compilers unknown to
3008 # Autoconf.
3009 for ac_file in $ac_files ''
3011 test -f "$ac_file" || continue
3012 case $ac_file in
3013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3015 [ab].out )
3016 # We found the default executable, but exeext='' is most
3017 # certainly right.
3018 break;;
3019 *.* )
3020 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3021 then :; else
3022 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3024 # We set ac_cv_exeext here because the later test for it is not
3025 # safe: cross compilers may not add the suffix if given an `-o'
3026 # argument, so we may need to know it at that point already.
3027 # Even if this section looks crufty: it has the advantage of
3028 # actually working.
3029 break;;
3031 break;;
3032 esac
3033 done
3034 test "$ac_cv_exeext" = no && ac_cv_exeext=
3036 else
3037 ac_file=''
3039 if test -z "$ac_file"; then :
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3042 $as_echo "$as_me: failed program was:" >&5
3043 sed 's/^/| /' conftest.$ac_ext >&5
3045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3047 { as_fn_set_status 77
3048 as_fn_error "C compiler cannot create executables
3049 See \`config.log' for more details." "$LINENO" 5; }; }
3050 else
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3052 $as_echo "yes" >&6; }
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3055 $as_echo_n "checking for C compiler default output file name... " >&6; }
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3057 $as_echo "$ac_file" >&6; }
3058 ac_exeext=$ac_cv_exeext
3060 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3061 ac_clean_files=$ac_clean_files_save
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3063 $as_echo_n "checking for suffix of executables... " >&6; }
3064 if { { ac_try="$ac_link"
3065 case "(($ac_try" in
3066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3067 *) ac_try_echo=$ac_try;;
3068 esac
3069 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3070 $as_echo "$ac_try_echo"; } >&5
3071 (eval "$ac_link") 2>&5
3072 ac_status=$?
3073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3074 test $ac_status = 0; }; then :
3075 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3076 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3077 # work properly (i.e., refer to `conftest.exe'), while it won't with
3078 # `rm'.
3079 for ac_file in conftest.exe conftest conftest.*; do
3080 test -f "$ac_file" || continue
3081 case $ac_file in
3082 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3083 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3084 break;;
3085 * ) break;;
3086 esac
3087 done
3088 else
3089 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3090 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3091 as_fn_error "cannot compute suffix of executables: cannot compile and link
3092 See \`config.log' for more details." "$LINENO" 5; }
3094 rm -f conftest conftest$ac_cv_exeext
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3096 $as_echo "$ac_cv_exeext" >&6; }
3098 rm -f conftest.$ac_ext
3099 EXEEXT=$ac_cv_exeext
3100 ac_exeext=$EXEEXT
3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3103 #include <stdio.h>
3105 main ()
3107 FILE *f = fopen ("conftest.out", "w");
3108 return ferror (f) || fclose (f) != 0;
3111 return 0;
3113 _ACEOF
3114 ac_clean_files="$ac_clean_files conftest.out"
3115 # Check that the compiler produces executables we can run. If not, either
3116 # the compiler is broken, or we cross compile.
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3118 $as_echo_n "checking whether we are cross compiling... " >&6; }
3119 if test "$cross_compiling" != yes; then
3120 { { ac_try="$ac_link"
3121 case "(($ac_try" in
3122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3123 *) ac_try_echo=$ac_try;;
3124 esac
3125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3126 $as_echo "$ac_try_echo"; } >&5
3127 (eval "$ac_link") 2>&5
3128 ac_status=$?
3129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3130 test $ac_status = 0; }
3131 if { ac_try='./conftest$ac_cv_exeext'
3132 { { case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135 esac
3136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3137 $as_echo "$ac_try_echo"; } >&5
3138 (eval "$ac_try") 2>&5
3139 ac_status=$?
3140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3141 test $ac_status = 0; }; }; then
3142 cross_compiling=no
3143 else
3144 if test "$cross_compiling" = maybe; then
3145 cross_compiling=yes
3146 else
3147 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3148 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3149 as_fn_error "cannot run C compiled programs.
3150 If you meant to cross compile, use \`--host'.
3151 See \`config.log' for more details." "$LINENO" 5; }
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3156 $as_echo "$cross_compiling" >&6; }
3158 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3159 ac_clean_files=$ac_clean_files_save
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3161 $as_echo_n "checking for suffix of object files... " >&6; }
3162 if test "${ac_cv_objext+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166 /* end confdefs.h. */
3169 main ()
3173 return 0;
3175 _ACEOF
3176 rm -f conftest.o conftest.obj
3177 if { { ac_try="$ac_compile"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_compile") 2>&5
3185 ac_status=$?
3186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3187 test $ac_status = 0; }; then :
3188 for ac_file in conftest.o conftest.obj conftest.*; do
3189 test -f "$ac_file" || continue;
3190 case $ac_file in
3191 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3192 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3193 break;;
3194 esac
3195 done
3196 else
3197 $as_echo "$as_me: failed program was:" >&5
3198 sed 's/^/| /' conftest.$ac_ext >&5
3200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error "cannot compute suffix of object files: cannot compile
3203 See \`config.log' for more details." "$LINENO" 5; }
3205 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3208 $as_echo "$ac_cv_objext" >&6; }
3209 OBJEXT=$ac_cv_objext
3210 ac_objext=$OBJEXT
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3212 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3213 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3220 main ()
3222 #ifndef __GNUC__
3223 choke me
3224 #endif
3227 return 0;
3229 _ACEOF
3230 if ac_fn_c_try_compile "$LINENO"; then :
3231 ac_compiler_gnu=yes
3232 else
3233 ac_compiler_gnu=no
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3236 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3240 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3241 if test $ac_compiler_gnu = yes; then
3242 GCC=yes
3243 else
3244 GCC=
3246 ac_test_CFLAGS=${CFLAGS+set}
3247 ac_save_CFLAGS=$CFLAGS
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3249 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3250 if test "${ac_cv_prog_cc_g+set}" = set; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 ac_save_c_werror_flag=$ac_c_werror_flag
3254 ac_c_werror_flag=yes
3255 ac_cv_prog_cc_g=no
3256 CFLAGS="-g"
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3261 main ()
3265 return 0;
3267 _ACEOF
3268 if ac_fn_c_try_compile "$LINENO"; then :
3269 ac_cv_prog_cc_g=yes
3270 else
3271 CFLAGS=""
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3276 main ()
3280 return 0;
3282 _ACEOF
3283 if ac_fn_c_try_compile "$LINENO"; then :
3285 else
3286 ac_c_werror_flag=$ac_save_c_werror_flag
3287 CFLAGS="-g"
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3292 main ()
3296 return 0;
3298 _ACEOF
3299 if ac_fn_c_try_compile "$LINENO"; then :
3300 ac_cv_prog_cc_g=yes
3302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3307 ac_c_werror_flag=$ac_save_c_werror_flag
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3310 $as_echo "$ac_cv_prog_cc_g" >&6; }
3311 if test "$ac_test_CFLAGS" = set; then
3312 CFLAGS=$ac_save_CFLAGS
3313 elif test $ac_cv_prog_cc_g = yes; then
3314 if test "$GCC" = yes; then
3315 CFLAGS="-g -O2"
3316 else
3317 CFLAGS="-g"
3319 else
3320 if test "$GCC" = yes; then
3321 CFLAGS="-O2"
3322 else
3323 CFLAGS=
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3327 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3328 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 ac_cv_prog_cc_c89=no
3332 ac_save_CC=$CC
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3335 #include <stdarg.h>
3336 #include <stdio.h>
3337 #include <sys/types.h>
3338 #include <sys/stat.h>
3339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3340 struct buf { int x; };
3341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3342 static char *e (p, i)
3343 char **p;
3344 int i;
3346 return p[i];
3348 static char *f (char * (*g) (char **, int), char **p, ...)
3350 char *s;
3351 va_list v;
3352 va_start (v,p);
3353 s = g (p, va_arg (v,int));
3354 va_end (v);
3355 return s;
3358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3359 function prototypes and stuff, but not '\xHH' hex character constants.
3360 These don't provoke an error unfortunately, instead are silently treated
3361 as 'x'. The following induces an error, until -std is added to get
3362 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3363 array size at least. It's necessary to write '\x00'==0 to get something
3364 that's true only with -std. */
3365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3367 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3368 inside strings and character constants. */
3369 #define FOO(x) 'x'
3370 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3372 int test (int i, double x);
3373 struct s1 {int (*f) (int a);};
3374 struct s2 {int (*f) (double a);};
3375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3376 int argc;
3377 char **argv;
3379 main ()
3381 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3383 return 0;
3385 _ACEOF
3386 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3387 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3389 CC="$ac_save_CC $ac_arg"
3390 if ac_fn_c_try_compile "$LINENO"; then :
3391 ac_cv_prog_cc_c89=$ac_arg
3393 rm -f core conftest.err conftest.$ac_objext
3394 test "x$ac_cv_prog_cc_c89" != "xno" && break
3395 done
3396 rm -f conftest.$ac_ext
3397 CC=$ac_save_CC
3400 # AC_CACHE_VAL
3401 case "x$ac_cv_prog_cc_c89" in
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3404 $as_echo "none needed" >&6; } ;;
3405 xno)
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3407 $as_echo "unsupported" >&6; } ;;
3409 CC="$CC $ac_cv_prog_cc_c89"
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3411 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3412 esac
3413 if test "x$ac_cv_prog_cc_c89" != xno; then :
3417 ac_ext=c
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3423 case $ac_cv_prog_cc_stdc in #(
3424 no) :
3425 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3426 *) :
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3428 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3429 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3430 $as_echo_n "(cached) " >&6
3431 else
3432 ac_cv_prog_cc_c99=no
3433 ac_save_CC=$CC
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3436 #include <stdarg.h>
3437 #include <stdbool.h>
3438 #include <stdlib.h>
3439 #include <wchar.h>
3440 #include <stdio.h>
3442 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3443 #define debug(...) fprintf (stderr, __VA_ARGS__)
3444 #define showlist(...) puts (#__VA_ARGS__)
3445 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3446 static void
3447 test_varargs_macros (void)
3449 int x = 1234;
3450 int y = 5678;
3451 debug ("Flag");
3452 debug ("X = %d\n", x);
3453 showlist (The first, second, and third items.);
3454 report (x>y, "x is %d but y is %d", x, y);
3457 // Check long long types.
3458 #define BIG64 18446744073709551615ull
3459 #define BIG32 4294967295ul
3460 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3461 #if !BIG_OK
3462 your preprocessor is broken;
3463 #endif
3464 #if BIG_OK
3465 #else
3466 your preprocessor is broken;
3467 #endif
3468 static long long int bignum = -9223372036854775807LL;
3469 static unsigned long long int ubignum = BIG64;
3471 struct incomplete_array
3473 int datasize;
3474 double data[];
3477 struct named_init {
3478 int number;
3479 const wchar_t *name;
3480 double average;
3483 typedef const char *ccp;
3485 static inline int
3486 test_restrict (ccp restrict text)
3488 // See if C++-style comments work.
3489 // Iterate through items via the restricted pointer.
3490 // Also check for declarations in for loops.
3491 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3492 continue;
3493 return 0;
3496 // Check varargs and va_copy.
3497 static void
3498 test_varargs (const char *format, ...)
3500 va_list args;
3501 va_start (args, format);
3502 va_list args_copy;
3503 va_copy (args_copy, args);
3505 const char *str;
3506 int number;
3507 float fnumber;
3509 while (*format)
3511 switch (*format++)
3513 case 's': // string
3514 str = va_arg (args_copy, const char *);
3515 break;
3516 case 'd': // int
3517 number = va_arg (args_copy, int);
3518 break;
3519 case 'f': // float
3520 fnumber = va_arg (args_copy, double);
3521 break;
3522 default:
3523 break;
3526 va_end (args_copy);
3527 va_end (args);
3531 main ()
3534 // Check bool.
3535 _Bool success = false;
3537 // Check restrict.
3538 if (test_restrict ("String literal") == 0)
3539 success = true;
3540 char *restrict newvar = "Another string";
3542 // Check varargs.
3543 test_varargs ("s, d' f .", "string", 65, 34.234);
3544 test_varargs_macros ();
3546 // Check flexible array members.
3547 struct incomplete_array *ia =
3548 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3549 ia->datasize = 10;
3550 for (int i = 0; i < ia->datasize; ++i)
3551 ia->data[i] = i * 1.234;
3553 // Check named initializers.
3554 struct named_init ni = {
3555 .number = 34,
3556 .name = L"Test wide string",
3557 .average = 543.34343,
3560 ni.number = 58;
3562 int dynamic_array[ni.number];
3563 dynamic_array[ni.number - 1] = 543;
3565 // work around unused variable warnings
3566 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3567 || dynamic_array[ni.number - 1] != 543);
3570 return 0;
3572 _ACEOF
3573 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3575 CC="$ac_save_CC $ac_arg"
3576 if ac_fn_c_try_compile "$LINENO"; then :
3577 ac_cv_prog_cc_c99=$ac_arg
3579 rm -f core conftest.err conftest.$ac_objext
3580 test "x$ac_cv_prog_cc_c99" != "xno" && break
3581 done
3582 rm -f conftest.$ac_ext
3583 CC=$ac_save_CC
3586 # AC_CACHE_VAL
3587 case "x$ac_cv_prog_cc_c99" in
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3590 $as_echo "none needed" >&6; } ;;
3591 xno)
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3593 $as_echo "unsupported" >&6; } ;;
3595 CC="$CC $ac_cv_prog_cc_c99"
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3597 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3598 esac
3599 if test "x$ac_cv_prog_cc_c99" != xno; then :
3600 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3601 else
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3603 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3604 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 ac_cv_prog_cc_c89=no
3608 ac_save_CC=$CC
3609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3610 /* end confdefs.h. */
3611 #include <stdarg.h>
3612 #include <stdio.h>
3613 #include <sys/types.h>
3614 #include <sys/stat.h>
3615 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3616 struct buf { int x; };
3617 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3618 static char *e (p, i)
3619 char **p;
3620 int i;
3622 return p[i];
3624 static char *f (char * (*g) (char **, int), char **p, ...)
3626 char *s;
3627 va_list v;
3628 va_start (v,p);
3629 s = g (p, va_arg (v,int));
3630 va_end (v);
3631 return s;
3634 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3635 function prototypes and stuff, but not '\xHH' hex character constants.
3636 These don't provoke an error unfortunately, instead are silently treated
3637 as 'x'. The following induces an error, until -std is added to get
3638 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3639 array size at least. It's necessary to write '\x00'==0 to get something
3640 that's true only with -std. */
3641 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3643 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3644 inside strings and character constants. */
3645 #define FOO(x) 'x'
3646 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3648 int test (int i, double x);
3649 struct s1 {int (*f) (int a);};
3650 struct s2 {int (*f) (double a);};
3651 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3652 int argc;
3653 char **argv;
3655 main ()
3657 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3659 return 0;
3661 _ACEOF
3662 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3663 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3665 CC="$ac_save_CC $ac_arg"
3666 if ac_fn_c_try_compile "$LINENO"; then :
3667 ac_cv_prog_cc_c89=$ac_arg
3669 rm -f core conftest.err conftest.$ac_objext
3670 test "x$ac_cv_prog_cc_c89" != "xno" && break
3671 done
3672 rm -f conftest.$ac_ext
3673 CC=$ac_save_CC
3676 # AC_CACHE_VAL
3677 case "x$ac_cv_prog_cc_c89" in
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3680 $as_echo "none needed" >&6; } ;;
3681 xno)
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3683 $as_echo "unsupported" >&6; } ;;
3685 CC="$CC $ac_cv_prog_cc_c89"
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3687 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3688 esac
3689 if test "x$ac_cv_prog_cc_c89" != xno; then :
3690 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3691 else
3692 ac_cv_prog_cc_stdc=no
3697 esac
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3699 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3700 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3701 $as_echo_n "(cached) " >&6
3704 case $ac_cv_prog_cc_stdc in #(
3705 no) :
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3707 $as_echo "unsupported" >&6; } ;; #(
3708 '') :
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3710 $as_echo "none needed" >&6; } ;; #(
3711 *) :
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3713 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3714 esac
3716 ac_ext=c
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3722 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3723 # On Suns, sometimes $CPP names a directory.
3724 if test -n "$CPP" && test -d "$CPP"; then
3725 CPP=
3727 if test -z "$CPP"; then
3728 if test "${ac_cv_prog_CPP+set}" = set; then :
3729 $as_echo_n "(cached) " >&6
3730 else
3731 # Double quotes because CPP needs to be expanded
3732 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3734 ac_preproc_ok=false
3735 for ac_c_preproc_warn_flag in '' yes
3737 # Use a header file that comes with gcc, so configuring glibc
3738 # with a fresh cross-compiler works.
3739 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3740 # <limits.h> exists even on freestanding compilers.
3741 # On the NeXT, cc -E runs the code through the compiler's parser,
3742 # not just through cpp. "Syntax error" is here to catch this case.
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3745 #ifdef __STDC__
3746 # include <limits.h>
3747 #else
3748 # include <assert.h>
3749 #endif
3750 Syntax error
3751 _ACEOF
3752 if ac_fn_c_try_cpp "$LINENO"; then :
3754 else
3755 # Broken: fails on valid input.
3756 continue
3758 rm -f conftest.err conftest.$ac_ext
3760 # OK, works on sane cases. Now check whether nonexistent headers
3761 # can be detected and how.
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764 #include <ac_nonexistent.h>
3765 _ACEOF
3766 if ac_fn_c_try_cpp "$LINENO"; then :
3767 # Broken: success on invalid input.
3768 continue
3769 else
3770 # Passes both tests.
3771 ac_preproc_ok=:
3772 break
3774 rm -f conftest.err conftest.$ac_ext
3776 done
3777 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3778 rm -f conftest.err conftest.$ac_ext
3779 if $ac_preproc_ok; then :
3780 break
3783 done
3784 ac_cv_prog_CPP=$CPP
3787 CPP=$ac_cv_prog_CPP
3788 else
3789 ac_cv_prog_CPP=$CPP
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3792 $as_echo "$CPP" >&6; }
3793 ac_preproc_ok=false
3794 for ac_c_preproc_warn_flag in '' yes
3796 # Use a header file that comes with gcc, so configuring glibc
3797 # with a fresh cross-compiler works.
3798 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3799 # <limits.h> exists even on freestanding compilers.
3800 # On the NeXT, cc -E runs the code through the compiler's parser,
3801 # not just through cpp. "Syntax error" is here to catch this case.
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3804 #ifdef __STDC__
3805 # include <limits.h>
3806 #else
3807 # include <assert.h>
3808 #endif
3809 Syntax error
3810 _ACEOF
3811 if ac_fn_c_try_cpp "$LINENO"; then :
3813 else
3814 # Broken: fails on valid input.
3815 continue
3817 rm -f conftest.err conftest.$ac_ext
3819 # OK, works on sane cases. Now check whether nonexistent headers
3820 # can be detected and how.
3821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3822 /* end confdefs.h. */
3823 #include <ac_nonexistent.h>
3824 _ACEOF
3825 if ac_fn_c_try_cpp "$LINENO"; then :
3826 # Broken: success on invalid input.
3827 continue
3828 else
3829 # Passes both tests.
3830 ac_preproc_ok=:
3831 break
3833 rm -f conftest.err conftest.$ac_ext
3835 done
3836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3837 rm -f conftest.err conftest.$ac_ext
3838 if $ac_preproc_ok; then :
3840 else
3841 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3842 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3843 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3844 See \`config.log' for more details." "$LINENO" 5; }
3847 ac_ext=c
3848 ac_cpp='$CPP $CPPFLAGS'
3849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3854 # Check for a compatible awk
3855 for ac_prog in gawk nawk
3857 # Extract the first word of "$ac_prog", so it can be a program name with args.
3858 set dummy $ac_prog; ac_word=$2
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3860 $as_echo_n "checking for $ac_word... " >&6; }
3861 if test "${ac_cv_prog_AWK+set}" = set; then :
3862 $as_echo_n "(cached) " >&6
3863 else
3864 if test -n "$AWK"; then
3865 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3866 else
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874 ac_cv_prog_AWK="$ac_prog"
3875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 break 2
3878 done
3879 done
3880 IFS=$as_save_IFS
3884 AWK=$ac_cv_prog_AWK
3885 if test -n "$AWK"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3887 $as_echo "$AWK" >&6; }
3888 else
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 $as_echo "no" >&6; }
3894 test -n "$AWK" && break
3895 done
3897 if test "$AWK" = ""; then
3898 as_fn_error "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3900 # Extract the first word of "mmake", so it can be a program name with args.
3901 set dummy mmake; ac_word=$2
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903 $as_echo_n "checking for $ac_word... " >&6; }
3904 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3905 $as_echo_n "(cached) " >&6
3906 else
3907 if test -n "$MMAKE"; then
3908 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3909 else
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3911 for as_dir in $PATH
3913 IFS=$as_save_IFS
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917 ac_cv_prog_MMAKE="mmake "
3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3919 break 2
3921 done
3922 done
3923 IFS=$as_save_IFS
3927 MMAKE=$ac_cv_prog_MMAKE
3928 if test -n "$MMAKE"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3930 $as_echo "$MMAKE" >&6; }
3931 else
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3938 # Perform some default variable assignments. Note all of these will be
3939 # Regenerated from the script, so there is no need to cache them.
3941 aros_host_cc="$CC"
3942 if test "$GCC" = "yes"; then
3943 aros_gcc_ld=`$CC -print-prog-name=ld`
3944 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3945 set dummy `basename $aros_gcc_ld`; ac_word=$2
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3947 $as_echo_n "checking for $ac_word... " >&6; }
3948 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3949 $as_echo_n "(cached) " >&6
3950 else
3951 case $aros_host_ld in
3952 [\\/]* | ?:[\\/]*)
3953 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 for as_dir in `dirname $aros_gcc_ld`
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3963 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3965 break 2
3967 done
3968 done
3969 IFS=$as_save_IFS
3972 esac
3974 aros_host_ld=$ac_cv_path_aros_host_ld
3975 if test -n "$aros_host_ld"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
3977 $as_echo "$aros_host_ld" >&6; }
3978 else
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3985 if test "$aros_host_ld" = ""; then
3986 # Extract the first word of "ld", so it can be a program name with args.
3987 set dummy ld; ac_word=$2
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3989 $as_echo_n "checking for $ac_word... " >&6; }
3990 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3991 $as_echo_n "(cached) " >&6
3992 else
3993 case $aros_host_ld in
3994 [\\/]* | ?:[\\/]*)
3995 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999 for as_dir in $PATH
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
4004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4005 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 break 2
4009 done
4010 done
4011 IFS=$as_save_IFS
4014 esac
4016 aros_host_ld=$ac_cv_path_aros_host_ld
4017 if test -n "$aros_host_ld"; then
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4019 $as_echo "$aros_host_ld" >&6; }
4020 else
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4027 if test "$aros_host_ld" = ""; then
4028 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4030 aros_host_make="make"
4031 aros_host_cflags=$CFLAGS
4032 aros_host_ldflags=$LDFLAGS
4033 aros_host_debug="-g -O0"
4034 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4035 aros_host_mkargs="--no-print-directory"
4036 aros_host_incl="/usr/include"
4037 aros_host_exe_suffix="$EXEEXT"
4038 aros_host_lib_suffix=""
4040 for ac_prog in aclocal aclocal19 aclocal-1.9
4042 # Extract the first word of "$ac_prog", so it can be a program name with args.
4043 set dummy $ac_prog; ac_word=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4047 $as_echo_n "(cached) " >&6
4048 else
4049 if test -n "$aros_host_aclocal"; then
4050 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4051 else
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 for as_dir in $PATH
4055 IFS=$as_save_IFS
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4059 ac_cv_prog_aros_host_aclocal="$ac_prog"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4061 break 2
4063 done
4064 done
4065 IFS=$as_save_IFS
4069 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4070 if test -n "$aros_host_aclocal"; then
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4072 $as_echo "$aros_host_aclocal" >&6; }
4073 else
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4075 $as_echo "no" >&6; }
4079 test -n "$aros_host_aclocal" && break
4080 done
4082 for ac_prog in autoconf autoconf259 autoconf253
4084 # Extract the first word of "$ac_prog", so it can be a program name with args.
4085 set dummy $ac_prog; ac_word=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4089 $as_echo_n "(cached) " >&6
4090 else
4091 if test -n "$aros_host_autoconf"; then
4092 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4093 else
4094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4095 for as_dir in $PATH
4097 IFS=$as_save_IFS
4098 test -z "$as_dir" && as_dir=.
4099 for ac_exec_ext in '' $ac_executable_extensions; do
4100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4101 ac_cv_prog_aros_host_autoconf="$ac_prog"
4102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4103 break 2
4105 done
4106 done
4107 IFS=$as_save_IFS
4111 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4112 if test -n "$aros_host_autoconf"; then
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4114 $as_echo "$aros_host_autoconf" >&6; }
4115 else
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117 $as_echo "no" >&6; }
4121 test -n "$aros_host_autoconf" && break
4122 done
4124 for ac_prog in autoheader autoheader259 autoheader253
4126 # Extract the first word of "$ac_prog", so it can be a program name with args.
4127 set dummy $ac_prog; ac_word=$2
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129 $as_echo_n "checking for $ac_word... " >&6; }
4130 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 if test -n "$aros_host_autoheader"; then
4134 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4135 else
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4143 ac_cv_prog_aros_host_autoheader="$ac_prog"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 break 2
4147 done
4148 done
4149 IFS=$as_save_IFS
4153 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4154 if test -n "$aros_host_autoheader"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4156 $as_echo "$aros_host_autoheader" >&6; }
4157 else
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4163 test -n "$aros_host_autoheader" && break
4164 done
4166 for ac_prog in automake automake19 automake-1.9
4168 # Extract the first word of "$ac_prog", so it can be a program name with args.
4169 set dummy $ac_prog; ac_word=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 if test -n "$aros_host_automake"; then
4176 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185 ac_cv_prog_aros_host_automake="$ac_prog"
4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 break 2
4189 done
4190 done
4191 IFS=$as_save_IFS
4195 aros_host_automake=$ac_cv_prog_aros_host_automake
4196 if test -n "$aros_host_automake"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4198 $as_echo "$aros_host_automake" >&6; }
4199 else
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4205 test -n "$aros_host_automake" && break
4206 done
4209 if test "$aros_host_aclocal" = ""; then
4210 as_fn_error "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4212 if test "$aros_host_automake" = ""; then
4213 as_fn_error "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4216 case "$aros_host_cc" in
4217 *gcc*)
4218 aros_host_cc_pipe="-pipe"
4220 icc)
4221 aros_host_cc_pipe=""
4224 aros_host_cc_pipe=""
4226 esac
4228 aros_kernel_cc_includes=""
4229 aros_target_cc_includes=""
4231 # This is the main host configuration section. It is where the host
4232 # can change the values of any variables it needs to change. We do
4233 # not look at anything that compiles to the target yet, we'll get
4234 # to that later.
4236 case "$host_os" in
4237 aros*)
4238 aros_host_arch="aros"
4239 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4240 case "$host_cpu" in
4241 *i?86*)
4242 aros_host_cpu="i386"
4244 *x86_64*)
4245 aros_host_cpu="x86_64"
4247 *powerpc*)
4248 aros_host_cpu="ppc"
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4252 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4253 aros_host_cpu="$host_cpu"
4255 esac
4258 linux*)
4259 aros_host_arch="linux"
4260 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4261 case "$host_cpu" in
4262 *i?86*)
4263 aros_host_cpu="i386"
4265 *x86_64*)
4266 aros_host_cpu="x86_64"
4268 *m68k*)
4269 aros_host_cpu="m68k"
4271 *powerpc*)
4272 aros_host_cpu="ppc"
4274 *arm*)
4275 aros_host_cpu="arm"
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4279 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4280 aros_host_cpu="$host_cpu"
4282 esac
4285 freebsd*)
4286 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4287 aros_host_make="gmake"
4288 aros_host_arch="freebsd"
4289 aros_host_cpu="i386"
4291 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4293 case $host_os in
4294 freebsd[234]*)
4295 aros_object_format="elf_i386"
4299 aros_object_format="elf_i386_fbsd"
4301 esac
4305 darwin*)
4306 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4307 aros_host_arch="darwin"
4308 case "$host_cpu" in
4309 *i?86*)
4310 aros_host_cpu="i386"
4312 *x86_64*)
4313 aros_host_cpu="x86_64"
4315 *powerpc*)
4316 aros_host_cpu="ppc"
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4320 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4321 aros_host_cpu="$host_cpu"
4323 esac
4325 aros_host_ldflags="$aros_host_ldflags -liconv"
4329 dragonfly*)
4330 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4331 aros_host_make="gmake"
4332 aros_host_arch="dragonfly"
4333 case $host_cpu in
4334 *i?86*)
4335 aros_host_cpu="i386"
4337 *amd64*)
4338 aros_host_cpu="x86_64"
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4342 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4343 aros_host_cpu="$host_cpu"
4345 esac
4348 netbsd*)
4349 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4350 aros_host_make="gmake"
4351 aros_host_arch="netbsd"
4352 case "$host_cpu" in
4353 *i?86*)
4354 aros_host_cpu="i386"
4356 *m68k*)
4357 aros_host_cpu="m68k"
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
4365 aros_host_lib_suffix=".0.0"
4368 openbsd*)
4369 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4370 aros_host_make="gmake"
4371 aros_host_arch="openbsd"
4372 case "$host_cpu" in
4373 *i?86*)
4374 aros_host_cpu="i386"
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4378 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4379 aros_host_cpu="$host_cpu"
4381 esac
4384 solaris*)
4385 aros_host_arch="solaris"
4386 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4387 case "$host_cpu" in
4388 *i?86*)
4389 aros_host_cpu="i386"
4391 *sparc*)
4392 aros_host_cpu="sparc"
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4396 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4397 aros_host_cpu="$host_cpu"
4399 esac
4402 morphos*)
4403 aros_host_arch="morphos"
4404 aros_host_cpu="ppc"
4407 amiga*)
4408 aros_host_arch="amiga"
4409 SORT="/gg/bin/sort"
4410 TEST="/gg/bin/test"
4411 UNIQ="/gg/bin/uniq"
4412 FOR="for"
4413 TOUCH="/gg/bin/touch"
4414 case "$host_cpu" in
4415 *m68k*)
4416 aros_host_cpu="m68k"
4418 *powerpc*)
4419 aros_host_cpu="ppc"
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4423 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4424 aros_host_cpu="$host_cpu"
4426 esac
4429 cygwin*)
4430 aros_host_arch="cygwin"
4431 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4432 case "$host_cpu" in
4433 *i?86*)
4434 aros_host_cpu="i386"
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4438 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4439 aros_host_cpu="$host_cpu"
4441 esac
4444 mingw32*)
4445 aros_host_arch="mingw32"
4446 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4447 case "$host_cpu" in
4448 *i?86*)
4449 aros_host_cpu="i386"
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4453 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4454 aros_host_cpu="$host_cpu"
4456 esac
4459 as_fn_error "Unsupported host architecture $host" "$LINENO" 5
4461 esac
4463 # Extract the first word of "ar", so it can be a program name with args.
4464 set dummy ar; ac_word=$2
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4466 $as_echo_n "checking for $ac_word... " >&6; }
4467 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4470 if test -n "$aros_host_ar"; then
4471 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4472 else
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4480 ac_cv_prog_aros_host_ar="ar cr"
4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4484 done
4485 done
4486 IFS=$as_save_IFS
4490 aros_host_ar=$ac_cv_prog_aros_host_ar
4491 if test -n "$aros_host_ar"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4493 $as_echo "$aros_host_ar" >&6; }
4494 else
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4500 if test "$aros_host_ar" = ""; then
4501 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4503 # Extract the first word of "ranlib", so it can be a program name with args.
4504 set dummy ranlib; ac_word=$2
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4506 $as_echo_n "checking for $ac_word... " >&6; }
4507 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4508 $as_echo_n "(cached) " >&6
4509 else
4510 if test -n "$aros_host_ranlib"; then
4511 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 ac_cv_prog_aros_host_ranlib="ranlib "
4521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4524 done
4525 done
4526 IFS=$as_save_IFS
4530 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4531 if test -n "$aros_host_ranlib"; then
4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4533 $as_echo "$aros_host_ranlib" >&6; }
4534 else
4535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4536 $as_echo "no" >&6; }
4540 if test "$aros_host_ranlib" = ""; then
4541 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4543 # Extract the first word of "strip", so it can be a program name with args.
4544 set dummy strip; ac_word=$2
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4546 $as_echo_n "checking for $ac_word... " >&6; }
4547 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4548 $as_echo_n "(cached) " >&6
4549 else
4550 if test -n "$aros_host_strip"; then
4551 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4552 else
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4554 for as_dir in $PATH
4556 IFS=$as_save_IFS
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4560 ac_cv_prog_aros_host_strip="strip "
4561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 break 2
4564 done
4565 done
4566 IFS=$as_save_IFS
4570 aros_host_strip=$ac_cv_prog_aros_host_strip
4571 if test -n "$aros_host_strip"; then
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4573 $as_echo "$aros_host_strip" >&6; }
4574 else
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4576 $as_echo "no" >&6; }
4580 if test "$aros_host_strip" = ""; then
4581 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4584 # Extract the first word of "rm", so it can be a program name with args.
4585 set dummy rm; ac_word=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if test "${ac_cv_prog_RM+set}" = set; then :
4589 $as_echo_n "(cached) " >&6
4590 else
4591 if test -n "$RM"; then
4592 ac_cv_prog_RM="$RM" # Let the user override the test.
4593 else
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_exec_ext in '' $ac_executable_extensions; do
4600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4601 ac_cv_prog_RM="rm -rf"
4602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4603 break 2
4605 done
4606 done
4607 IFS=$as_save_IFS
4611 RM=$ac_cv_prog_RM
4612 if test -n "$RM"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4614 $as_echo "$RM" >&6; }
4615 else
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4617 $as_echo "no" >&6; }
4621 if test "$RM" = ""; then
4622 as_fn_error "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4624 # Extract the first word of "cp", so it can be a program name with args.
4625 set dummy cp; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if test "${ac_cv_prog_CP+set}" = set; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if test -n "$CP"; then
4632 ac_cv_prog_CP="$CP" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4641 ac_cv_prog_CP="cp "
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4645 done
4646 done
4647 IFS=$as_save_IFS
4651 CP=$ac_cv_prog_CP
4652 if test -n "$CP"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4654 $as_echo "$CP" >&6; }
4655 else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4661 if test "$CP" = ""; then
4662 as_fn_error "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4664 # Extract the first word of "mv", so it can be a program name with args.
4665 set dummy mv; ac_word=$2
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if test "${ac_cv_prog_MV+set}" = set; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4671 if test -n "$MV"; then
4672 ac_cv_prog_MV="$MV" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4681 ac_cv_prog_MV="mv "
4682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4685 done
4686 done
4687 IFS=$as_save_IFS
4691 MV=$ac_cv_prog_MV
4692 if test -n "$MV"; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4694 $as_echo "$MV" >&6; }
4695 else
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4701 if test "$MV" = ""; then
4702 as_fn_error "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4704 # Extract the first word of "echo", so it can be a program name with args.
4705 set dummy echo; ac_word=$2
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4707 $as_echo_n "checking for $ac_word... " >&6; }
4708 if test "${ac_cv_prog_ECHO+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4710 else
4711 if test -n "$ECHO"; then
4712 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4713 else
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH
4717 IFS=$as_save_IFS
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_ECHO="echo "
4722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 break 2
4725 done
4726 done
4727 IFS=$as_save_IFS
4731 ECHO=$ac_cv_prog_ECHO
4732 if test -n "$ECHO"; then
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4734 $as_echo "$ECHO" >&6; }
4735 else
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4737 $as_echo "no" >&6; }
4741 if test "$ECHO" = ""; then
4742 as_fn_error "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4744 # Extract the first word of "mkdir", so it can be a program name with args.
4745 set dummy mkdir; ac_word=$2
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 $as_echo_n "checking for $ac_word... " >&6; }
4748 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4749 $as_echo_n "(cached) " >&6
4750 else
4751 if test -n "$MKDIR"; then
4752 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4753 else
4754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4755 for as_dir in $PATH
4757 IFS=$as_save_IFS
4758 test -z "$as_dir" && as_dir=.
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_MKDIR="mkdir -p"
4762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4763 break 2
4765 done
4766 done
4767 IFS=$as_save_IFS
4771 MKDIR=$ac_cv_prog_MKDIR
4772 if test -n "$MKDIR"; then
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4774 $as_echo "$MKDIR" >&6; }
4775 else
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4777 $as_echo "no" >&6; }
4781 if test "$MKDIR" = ""; then
4782 as_fn_error "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4784 # Extract the first word of "touch", so it can be a program name with args.
4785 set dummy touch; ac_word=$2
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4787 $as_echo_n "checking for $ac_word... " >&6; }
4788 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4790 else
4791 if test -n "$TOUCH"; then
4792 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4793 else
4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4795 for as_dir in $PATH
4797 IFS=$as_save_IFS
4798 test -z "$as_dir" && as_dir=.
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4801 ac_cv_prog_TOUCH="touch "
4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4803 break 2
4805 done
4806 done
4807 IFS=$as_save_IFS
4811 TOUCH=$ac_cv_prog_TOUCH
4812 if test -n "$TOUCH"; then
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4814 $as_echo "$TOUCH" >&6; }
4815 else
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4817 $as_echo "no" >&6; }
4821 if test "$TOUCH" = ""; then
4822 as_fn_error "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4824 # Extract the first word of "sort", so it can be a program name with args.
4825 set dummy sort; ac_word=$2
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4827 $as_echo_n "checking for $ac_word... " >&6; }
4828 if test "${ac_cv_prog_SORT+set}" = set; then :
4829 $as_echo_n "(cached) " >&6
4830 else
4831 if test -n "$SORT"; then
4832 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4833 else
4834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4837 IFS=$as_save_IFS
4838 test -z "$as_dir" && as_dir=.
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4841 ac_cv_prog_SORT="sort "
4842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4843 break 2
4845 done
4846 done
4847 IFS=$as_save_IFS
4851 SORT=$ac_cv_prog_SORT
4852 if test -n "$SORT"; then
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4854 $as_echo "$SORT" >&6; }
4855 else
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4857 $as_echo "no" >&6; }
4861 if test "$SORT" = ""; then
4862 as_fn_error "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4864 # Extract the first word of "uniq", so it can be a program name with args.
4865 set dummy uniq; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4869 $as_echo_n "(cached) " >&6
4870 else
4871 if test -n "$UNIQ"; then
4872 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4873 else
4874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4875 for as_dir in $PATH
4877 IFS=$as_save_IFS
4878 test -z "$as_dir" && as_dir=.
4879 for ac_exec_ext in '' $ac_executable_extensions; do
4880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4881 ac_cv_prog_UNIQ="uniq "
4882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4883 break 2
4885 done
4886 done
4887 IFS=$as_save_IFS
4891 UNIQ=$ac_cv_prog_UNIQ
4892 if test -n "$UNIQ"; then
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4894 $as_echo "$UNIQ" >&6; }
4895 else
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897 $as_echo "no" >&6; }
4901 if test "$UNIQ" = ""; then
4902 as_fn_error "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4904 # Extract the first word of "true", so it can be a program name with args.
4905 set dummy true; ac_word=$2
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4907 $as_echo_n "checking for $ac_word... " >&6; }
4908 if test "${ac_cv_prog_NOP+set}" = set; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 if test -n "$NOP"; then
4912 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4913 else
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_prog_NOP="true "
4922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 break 2
4925 done
4926 done
4927 IFS=$as_save_IFS
4931 NOP=$ac_cv_prog_NOP
4932 if test -n "$NOP"; then
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4934 $as_echo "$NOP" >&6; }
4935 else
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4937 $as_echo "no" >&6; }
4941 if test "$NOP" = ""; then
4942 as_fn_error "true is required to build AROS. Please install and run configure again." "$LINENO" 5
4944 # Extract the first word of "cat", so it can be a program name with args.
4945 set dummy cat; ac_word=$2
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4947 $as_echo_n "checking for $ac_word... " >&6; }
4948 if test "${ac_cv_prog_CAT+set}" = set; then :
4949 $as_echo_n "(cached) " >&6
4950 else
4951 if test -n "$CAT"; then
4952 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4953 else
4954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4955 for as_dir in $PATH
4957 IFS=$as_save_IFS
4958 test -z "$as_dir" && as_dir=.
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4961 ac_cv_prog_CAT="cat "
4962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 break 2
4965 done
4966 done
4967 IFS=$as_save_IFS
4971 CAT=$ac_cv_prog_CAT
4972 if test -n "$CAT"; then
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4974 $as_echo "$CAT" >&6; }
4975 else
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977 $as_echo "no" >&6; }
4981 if test "$CAT" = ""; then
4982 as_fn_error "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
4984 # Extract the first word of "bison", so it can be a program name with args.
4985 set dummy bison; ac_word=$2
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4987 $as_echo_n "checking for $ac_word... " >&6; }
4988 if test "${ac_cv_prog_BISON+set}" = set; then :
4989 $as_echo_n "(cached) " >&6
4990 else
4991 if test -n "$BISON"; then
4992 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4993 else
4994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4995 for as_dir in $PATH
4997 IFS=$as_save_IFS
4998 test -z "$as_dir" && as_dir=.
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5001 ac_cv_prog_BISON="bison "
5002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5003 break 2
5005 done
5006 done
5007 IFS=$as_save_IFS
5011 BISON=$ac_cv_prog_BISON
5012 if test -n "$BISON"; then
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5014 $as_echo "$BISON" >&6; }
5015 else
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017 $as_echo "no" >&6; }
5021 if test "$BISON" = ""; then
5022 as_fn_error "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5024 # Extract the first word of "flex", so it can be a program name with args.
5025 set dummy flex; ac_word=$2
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027 $as_echo_n "checking for $ac_word... " >&6; }
5028 if test "${ac_cv_prog_FLEX+set}" = set; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 if test -n "$FLEX"; then
5032 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5033 else
5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035 for as_dir in $PATH
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041 ac_cv_prog_FLEX="flex "
5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 break 2
5045 done
5046 done
5047 IFS=$as_save_IFS
5051 FLEX=$ac_cv_prog_FLEX
5052 if test -n "$FLEX"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5054 $as_echo "$FLEX" >&6; }
5055 else
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057 $as_echo "no" >&6; }
5061 if test "$FLEX" = ""; then
5062 as_fn_error "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5064 # Extract the first word of "pngtopnm", so it can be a program name with args.
5065 set dummy pngtopnm; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5069 $as_echo_n "(cached) " >&6
5070 else
5071 if test -n "$PNGTOPNM"; then
5072 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_PNGTOPNM="pngtopnm "
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5085 done
5086 done
5087 IFS=$as_save_IFS
5091 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5092 if test -n "$PNGTOPNM"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5094 $as_echo "$PNGTOPNM" >&6; }
5095 else
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5101 if test "$PNGTOPNM" = ""; then
5102 as_fn_error "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5104 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5105 set dummy ppmtoilbm; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$PPMTOILBM"; then
5112 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5113 else
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5125 done
5126 done
5127 IFS=$as_save_IFS
5131 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5132 if test -n "$PPMTOILBM"; then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5134 $as_echo "$PPMTOILBM" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5137 $as_echo "no" >&6; }
5141 if test "$PPMTOILBM" = ""; then
5142 as_fn_error "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5144 # Extract the first word of "sed", so it can be a program name with args.
5145 set dummy sed; ac_word=$2
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5147 $as_echo_n "checking for $ac_word... " >&6; }
5148 if test "${ac_cv_prog_SED+set}" = set; then :
5149 $as_echo_n "(cached) " >&6
5150 else
5151 if test -n "$SED"; then
5152 ac_cv_prog_SED="$SED" # Let the user override the test.
5153 else
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in $PATH
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_prog_SED="sed "
5162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5165 done
5166 done
5167 IFS=$as_save_IFS
5171 SED=$ac_cv_prog_SED
5172 if test -n "$SED"; then
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5174 $as_echo "$SED" >&6; }
5175 else
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5177 $as_echo "no" >&6; }
5181 if test "$SED" = ""; then
5182 as_fn_error "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5184 # Extract the first word of "chmod", so it can be a program name with args.
5185 set dummy chmod; ac_word=$2
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5187 $as_echo_n "checking for $ac_word... " >&6; }
5188 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5189 $as_echo_n "(cached) " >&6
5190 else
5191 if test -n "$CHMOD"; then
5192 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5193 else
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_prog_CHMOD="chmod "
5202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5205 done
5206 done
5207 IFS=$as_save_IFS
5211 CHMOD=$ac_cv_prog_CHMOD
5212 if test -n "$CHMOD"; then
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5214 $as_echo "$CHMOD" >&6; }
5215 else
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5217 $as_echo "no" >&6; }
5221 if test "$CHMOD" = ""; then
5222 as_fn_error "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5229 if test -n "$PYTHON"; then
5230 # If the user set $PYTHON, use it and don't search something else.
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5232 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5233 prog="import sys, string
5234 # split strings by '.' and convert to numeric. Append some zeros
5235 # because we need at least 4 digits for the hex conversion.
5236 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5237 minverhex = 0
5238 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5239 sys.exit(sys.hexversion < minverhex)"
5240 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5241 ($PYTHON -c "$prog") >&5 2>&5
5242 ac_status=$?
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); }; then :
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5246 $as_echo "yes" >&6; }
5247 else
5248 as_fn_error "too old" "$LINENO" 5
5250 am_display_PYTHON=$PYTHON
5251 else
5252 # Otherwise, try each interpreter until we find one that satisfies
5253 # VERSION.
5254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5255 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5256 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5257 $as_echo_n "(cached) " >&6
5258 else
5260 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
5261 test "$am_cv_pathless_PYTHON" = none && break
5262 prog="import sys, string
5263 # split strings by '.' and convert to numeric. Append some zeros
5264 # because we need at least 4 digits for the hex conversion.
5265 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5266 minverhex = 0
5267 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5268 sys.exit(sys.hexversion < minverhex)"
5269 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5270 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5271 ac_status=$?
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; then :
5274 break
5276 done
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5279 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5280 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5281 if test "$am_cv_pathless_PYTHON" = none; then
5282 PYTHON=:
5283 else
5284 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5285 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if test "${ac_cv_path_PYTHON+set}" = set; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 case $PYTHON in
5292 [\\/]* | ?:[\\/]*)
5293 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5297 for as_dir in $PATH
5299 IFS=$as_save_IFS
5300 test -z "$as_dir" && as_dir=.
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5307 done
5308 done
5309 IFS=$as_save_IFS
5312 esac
5314 PYTHON=$ac_cv_path_PYTHON
5315 if test -n "$PYTHON"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5317 $as_echo "$PYTHON" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5325 am_display_PYTHON=$am_cv_pathless_PYTHON
5329 if test "$PYTHON" = :; then
5330 as_fn_error "no suitable Python interpreter found" "$LINENO" 5
5331 else
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5335 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5336 if test "${am_cv_python_version+set}" = set; then :
5337 $as_echo_n "(cached) " >&6
5338 else
5339 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5342 $as_echo "$am_cv_python_version" >&6; }
5343 PYTHON_VERSION=$am_cv_python_version
5347 PYTHON_PREFIX='${prefix}'
5349 PYTHON_EXEC_PREFIX='${exec_prefix}'
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5354 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5355 if test "${am_cv_python_platform+set}" = set; then :
5356 $as_echo_n "(cached) " >&6
5357 else
5358 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5361 $as_echo "$am_cv_python_platform" >&6; }
5362 PYTHON_PLATFORM=$am_cv_python_platform
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5368 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5369 if test "${am_cv_python_pythondir+set}" = set; then :
5370 $as_echo_n "(cached) " >&6
5371 else
5372 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5373 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5376 $as_echo "$am_cv_python_pythondir" >&6; }
5377 pythondir=$am_cv_python_pythondir
5381 pkgpythondir=\${pythondir}/$PACKAGE
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5385 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5386 if test "${am_cv_python_pyexecdir+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5388 else
5389 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5390 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5393 $as_echo "$am_cv_python_pyexecdir" >&6; }
5394 pyexecdir=$am_cv_python_pyexecdir
5398 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5406 FOR=for
5408 IF=if
5410 TEST=test
5412 CMP=cmp
5416 # Check for some includes for the X11 HIDD and the kernel
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5420 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5421 if test "${ac_cv_path_GREP+set}" = set; then :
5422 $as_echo_n "(cached) " >&6
5423 else
5424 if test -z "$GREP"; then
5425 ac_path_GREP_found=false
5426 # Loop through the user's path and test for each of PROGNAME-LIST
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5428 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5430 IFS=$as_save_IFS
5431 test -z "$as_dir" && as_dir=.
5432 for ac_prog in grep ggrep; do
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5435 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5436 # Check for GNU ac_path_GREP and select it if it is found.
5437 # Check for GNU $ac_path_GREP
5438 case `"$ac_path_GREP" --version 2>&1` in
5439 *GNU*)
5440 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5442 ac_count=0
5443 $as_echo_n 0123456789 >"conftest.in"
5444 while :
5446 cat "conftest.in" "conftest.in" >"conftest.tmp"
5447 mv "conftest.tmp" "conftest.in"
5448 cp "conftest.in" "conftest.nl"
5449 $as_echo 'GREP' >> "conftest.nl"
5450 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5451 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5452 as_fn_arith $ac_count + 1 && ac_count=$as_val
5453 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5454 # Best one so far, save it but keep looking for a better one
5455 ac_cv_path_GREP="$ac_path_GREP"
5456 ac_path_GREP_max=$ac_count
5458 # 10*(2^10) chars as input seems more than enough
5459 test $ac_count -gt 10 && break
5460 done
5461 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5462 esac
5464 $ac_path_GREP_found && break 3
5465 done
5466 done
5467 done
5468 IFS=$as_save_IFS
5469 if test -z "$ac_cv_path_GREP"; then
5470 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5472 else
5473 ac_cv_path_GREP=$GREP
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5478 $as_echo "$ac_cv_path_GREP" >&6; }
5479 GREP="$ac_cv_path_GREP"
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5483 $as_echo_n "checking for egrep... " >&6; }
5484 if test "${ac_cv_path_EGREP+set}" = set; then :
5485 $as_echo_n "(cached) " >&6
5486 else
5487 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5488 then ac_cv_path_EGREP="$GREP -E"
5489 else
5490 if test -z "$EGREP"; then
5491 ac_path_EGREP_found=false
5492 # Loop through the user's path and test for each of PROGNAME-LIST
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5496 IFS=$as_save_IFS
5497 test -z "$as_dir" && as_dir=.
5498 for ac_prog in egrep; do
5499 for ac_exec_ext in '' $ac_executable_extensions; do
5500 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5501 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5502 # Check for GNU ac_path_EGREP and select it if it is found.
5503 # Check for GNU $ac_path_EGREP
5504 case `"$ac_path_EGREP" --version 2>&1` in
5505 *GNU*)
5506 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5508 ac_count=0
5509 $as_echo_n 0123456789 >"conftest.in"
5510 while :
5512 cat "conftest.in" "conftest.in" >"conftest.tmp"
5513 mv "conftest.tmp" "conftest.in"
5514 cp "conftest.in" "conftest.nl"
5515 $as_echo 'EGREP' >> "conftest.nl"
5516 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5517 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5518 as_fn_arith $ac_count + 1 && ac_count=$as_val
5519 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5520 # Best one so far, save it but keep looking for a better one
5521 ac_cv_path_EGREP="$ac_path_EGREP"
5522 ac_path_EGREP_max=$ac_count
5524 # 10*(2^10) chars as input seems more than enough
5525 test $ac_count -gt 10 && break
5526 done
5527 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5528 esac
5530 $ac_path_EGREP_found && break 3
5531 done
5532 done
5533 done
5534 IFS=$as_save_IFS
5535 if test -z "$ac_cv_path_EGREP"; then
5536 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5538 else
5539 ac_cv_path_EGREP=$EGREP
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5545 $as_echo "$ac_cv_path_EGREP" >&6; }
5546 EGREP="$ac_cv_path_EGREP"
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5550 $as_echo_n "checking for ANSI C header files... " >&6; }
5551 if test "${ac_cv_header_stdc+set}" = set; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #include <stdlib.h>
5557 #include <stdarg.h>
5558 #include <string.h>
5559 #include <float.h>
5562 main ()
5566 return 0;
5568 _ACEOF
5569 if ac_fn_c_try_compile "$LINENO"; then :
5570 ac_cv_header_stdc=yes
5571 else
5572 ac_cv_header_stdc=no
5574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5576 if test $ac_cv_header_stdc = yes; then
5577 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5579 /* end confdefs.h. */
5580 #include <string.h>
5582 _ACEOF
5583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5584 $EGREP "memchr" >/dev/null 2>&1; then :
5586 else
5587 ac_cv_header_stdc=no
5589 rm -f conftest*
5593 if test $ac_cv_header_stdc = yes; then
5594 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5597 #include <stdlib.h>
5599 _ACEOF
5600 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5601 $EGREP "free" >/dev/null 2>&1; then :
5603 else
5604 ac_cv_header_stdc=no
5606 rm -f conftest*
5610 if test $ac_cv_header_stdc = yes; then
5611 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5612 if test "$cross_compiling" = yes; then :
5614 else
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 #include <ctype.h>
5618 #include <stdlib.h>
5619 #if ((' ' & 0x0FF) == 0x020)
5620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5622 #else
5623 # define ISLOWER(c) \
5624 (('a' <= (c) && (c) <= 'i') \
5625 || ('j' <= (c) && (c) <= 'r') \
5626 || ('s' <= (c) && (c) <= 'z'))
5627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5628 #endif
5630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5632 main ()
5634 int i;
5635 for (i = 0; i < 256; i++)
5636 if (XOR (islower (i), ISLOWER (i))
5637 || toupper (i) != TOUPPER (i))
5638 return 2;
5639 return 0;
5641 _ACEOF
5642 if ac_fn_c_try_run "$LINENO"; then :
5644 else
5645 ac_cv_header_stdc=no
5647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5648 conftest.$ac_objext conftest.beam conftest.$ac_ext
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5654 $as_echo "$ac_cv_header_stdc" >&6; }
5655 if test $ac_cv_header_stdc = yes; then
5657 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5661 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5662 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5663 inttypes.h stdint.h unistd.h
5664 do :
5665 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5666 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5668 eval as_val=\$$as_ac_Header
5669 if test "x$as_val" = x""yes; then :
5670 cat >>confdefs.h <<_ACEOF
5671 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5672 _ACEOF
5676 done
5679 for ac_header in sys/ipc.h sys/shm.h \
5680 sys/mmap.h sys/mman.h sysexits.h \
5681 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5683 do :
5684 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5685 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5686 eval as_val=\$$as_ac_Header
5687 if test "x$as_val" = x""yes; then :
5688 cat >>confdefs.h <<_ACEOF
5689 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5690 _ACEOF
5694 done
5697 for ac_header in sys/mount.h
5698 do :
5699 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5701 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5702 cat >>confdefs.h <<_ACEOF
5703 #define HAVE_SYS_MOUNT_H 1
5704 _ACEOF
5708 done
5711 ac_header_dirent=no
5712 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5713 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5715 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5716 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5720 /* end confdefs.h. */
5721 #include <sys/types.h>
5722 #include <$ac_hdr>
5725 main ()
5727 if ((DIR *) 0)
5728 return 0;
5730 return 0;
5732 _ACEOF
5733 if ac_fn_c_try_compile "$LINENO"; then :
5734 eval "$as_ac_Header=yes"
5735 else
5736 eval "$as_ac_Header=no"
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740 eval ac_res=\$$as_ac_Header
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5742 $as_echo "$ac_res" >&6; }
5743 eval as_val=\$$as_ac_Header
5744 if test "x$as_val" = x""yes; then :
5745 cat >>confdefs.h <<_ACEOF
5746 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5747 _ACEOF
5749 ac_header_dirent=$ac_hdr; break
5752 done
5753 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5754 if test $ac_header_dirent = dirent.h; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5756 $as_echo_n "checking for library containing opendir... " >&6; }
5757 if test "${ac_cv_search_opendir+set}" = set; then :
5758 $as_echo_n "(cached) " >&6
5759 else
5760 ac_func_search_save_LIBS=$LIBS
5761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5762 /* end confdefs.h. */
5764 /* Override any GCC internal prototype to avoid an error.
5765 Use char because int might match the return type of a GCC
5766 builtin and then its argument prototype would still apply. */
5767 #ifdef __cplusplus
5768 extern "C"
5769 #endif
5770 char opendir ();
5772 main ()
5774 return opendir ();
5776 return 0;
5778 _ACEOF
5779 for ac_lib in '' dir; do
5780 if test -z "$ac_lib"; then
5781 ac_res="none required"
5782 else
5783 ac_res=-l$ac_lib
5784 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5786 if ac_fn_c_try_link "$LINENO"; then :
5787 ac_cv_search_opendir=$ac_res
5789 rm -f core conftest.err conftest.$ac_objext \
5790 conftest$ac_exeext
5791 if test "${ac_cv_search_opendir+set}" = set; then :
5792 break
5794 done
5795 if test "${ac_cv_search_opendir+set}" = set; then :
5797 else
5798 ac_cv_search_opendir=no
5800 rm conftest.$ac_ext
5801 LIBS=$ac_func_search_save_LIBS
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5804 $as_echo "$ac_cv_search_opendir" >&6; }
5805 ac_res=$ac_cv_search_opendir
5806 if test "$ac_res" != no; then :
5807 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5811 else
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5813 $as_echo_n "checking for library containing opendir... " >&6; }
5814 if test "${ac_cv_search_opendir+set}" = set; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 ac_func_search_save_LIBS=$LIBS
5818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5819 /* end confdefs.h. */
5821 /* Override any GCC internal prototype to avoid an error.
5822 Use char because int might match the return type of a GCC
5823 builtin and then its argument prototype would still apply. */
5824 #ifdef __cplusplus
5825 extern "C"
5826 #endif
5827 char opendir ();
5829 main ()
5831 return opendir ();
5833 return 0;
5835 _ACEOF
5836 for ac_lib in '' x; do
5837 if test -z "$ac_lib"; then
5838 ac_res="none required"
5839 else
5840 ac_res=-l$ac_lib
5841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5843 if ac_fn_c_try_link "$LINENO"; then :
5844 ac_cv_search_opendir=$ac_res
5846 rm -f core conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext
5848 if test "${ac_cv_search_opendir+set}" = set; then :
5849 break
5851 done
5852 if test "${ac_cv_search_opendir+set}" = set; then :
5854 else
5855 ac_cv_search_opendir=no
5857 rm conftest.$ac_ext
5858 LIBS=$ac_func_search_save_LIBS
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5861 $as_echo "$ac_cv_search_opendir" >&6; }
5862 ac_res=$ac_cv_search_opendir
5863 if test "$ac_res" != no; then :
5864 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5871 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5872 if test "${ac_cv_header_stat_broken+set}" = set; then :
5873 $as_echo_n "(cached) " >&6
5874 else
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876 /* end confdefs.h. */
5877 #include <sys/types.h>
5878 #include <sys/stat.h>
5880 #if defined S_ISBLK && defined S_IFDIR
5881 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5882 #endif
5884 #if defined S_ISBLK && defined S_IFCHR
5885 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5886 #endif
5888 #if defined S_ISLNK && defined S_IFREG
5889 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5890 #endif
5892 #if defined S_ISSOCK && defined S_IFREG
5893 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5894 #endif
5896 _ACEOF
5897 if ac_fn_c_try_compile "$LINENO"; then :
5898 ac_cv_header_stat_broken=no
5899 else
5900 ac_cv_header_stat_broken=yes
5902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5905 $as_echo "$ac_cv_header_stat_broken" >&6; }
5906 if test $ac_cv_header_stat_broken = yes; then
5908 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5913 $as_echo_n "checking for ANSI C header files... " >&6; }
5914 if test "${ac_cv_header_stdc+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5916 else
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919 #include <stdlib.h>
5920 #include <stdarg.h>
5921 #include <string.h>
5922 #include <float.h>
5925 main ()
5929 return 0;
5931 _ACEOF
5932 if ac_fn_c_try_compile "$LINENO"; then :
5933 ac_cv_header_stdc=yes
5934 else
5935 ac_cv_header_stdc=no
5937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 if test $ac_cv_header_stdc = yes; then
5940 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5942 /* end confdefs.h. */
5943 #include <string.h>
5945 _ACEOF
5946 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5947 $EGREP "memchr" >/dev/null 2>&1; then :
5949 else
5950 ac_cv_header_stdc=no
5952 rm -f conftest*
5956 if test $ac_cv_header_stdc = yes; then
5957 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5960 #include <stdlib.h>
5962 _ACEOF
5963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5964 $EGREP "free" >/dev/null 2>&1; then :
5966 else
5967 ac_cv_header_stdc=no
5969 rm -f conftest*
5973 if test $ac_cv_header_stdc = yes; then
5974 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5975 if test "$cross_compiling" = yes; then :
5977 else
5978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5979 /* end confdefs.h. */
5980 #include <ctype.h>
5981 #include <stdlib.h>
5982 #if ((' ' & 0x0FF) == 0x020)
5983 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5984 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5985 #else
5986 # define ISLOWER(c) \
5987 (('a' <= (c) && (c) <= 'i') \
5988 || ('j' <= (c) && (c) <= 'r') \
5989 || ('s' <= (c) && (c) <= 'z'))
5990 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5991 #endif
5993 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5995 main ()
5997 int i;
5998 for (i = 0; i < 256; i++)
5999 if (XOR (islower (i), ISLOWER (i))
6000 || toupper (i) != TOUPPER (i))
6001 return 2;
6002 return 0;
6004 _ACEOF
6005 if ac_fn_c_try_run "$LINENO"; then :
6007 else
6008 ac_cv_header_stdc=no
6010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6011 conftest.$ac_objext conftest.beam conftest.$ac_ext
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6017 $as_echo "$ac_cv_header_stdc" >&6; }
6018 if test $ac_cv_header_stdc = yes; then
6020 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6025 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6026 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6027 $as_echo_n "(cached) " >&6
6028 else
6029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6030 /* end confdefs.h. */
6031 #include <sys/types.h>
6032 #include <sys/wait.h>
6033 #ifndef WEXITSTATUS
6034 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6035 #endif
6036 #ifndef WIFEXITED
6037 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6038 #endif
6041 main ()
6043 int s;
6044 wait (&s);
6045 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6047 return 0;
6049 _ACEOF
6050 if ac_fn_c_try_compile "$LINENO"; then :
6051 ac_cv_header_sys_wait_h=yes
6052 else
6053 ac_cv_header_sys_wait_h=no
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6058 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6059 if test $ac_cv_header_sys_wait_h = yes; then
6061 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6066 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6067 if test "${ac_cv_header_time+set}" = set; then :
6068 $as_echo_n "(cached) " >&6
6069 else
6070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6071 /* end confdefs.h. */
6072 #include <sys/types.h>
6073 #include <sys/time.h>
6074 #include <time.h>
6077 main ()
6079 if ((struct tm *) 0)
6080 return 0;
6082 return 0;
6084 _ACEOF
6085 if ac_fn_c_try_compile "$LINENO"; then :
6086 ac_cv_header_time=yes
6087 else
6088 ac_cv_header_time=no
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6093 $as_echo "$ac_cv_header_time" >&6; }
6094 if test $ac_cv_header_time = yes; then
6096 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6100 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6101 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6103 cat >>confdefs.h <<_ACEOF
6104 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6105 _ACEOF
6108 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6113 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6114 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6116 cat >>confdefs.h <<_ACEOF
6117 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6118 _ACEOF
6121 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6123 else
6124 case " $LIBOBJS " in
6125 *" fileblocks.$ac_objext "* ) ;;
6126 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6128 esac
6133 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6134 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6136 cat >>confdefs.h <<_ACEOF
6137 #define HAVE_STRUCT_STAT_ST_RDEV 1
6138 _ACEOF
6141 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6147 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6148 if test "${ac_cv_struct_tm+set}" = set; then :
6149 $as_echo_n "(cached) " >&6
6150 else
6151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6152 /* end confdefs.h. */
6153 #include <sys/types.h>
6154 #include <time.h>
6157 main ()
6159 struct tm tm;
6160 int *p = &tm.tm_sec;
6161 return !p;
6163 return 0;
6165 _ACEOF
6166 if ac_fn_c_try_compile "$LINENO"; then :
6167 ac_cv_struct_tm=time.h
6168 else
6169 ac_cv_struct_tm=sys/time.h
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6174 $as_echo "$ac_cv_struct_tm" >&6; }
6175 if test $ac_cv_struct_tm = sys/time.h; then
6177 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6181 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6182 #include <$ac_cv_struct_tm>
6185 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6187 cat >>confdefs.h <<_ACEOF
6188 #define HAVE_STRUCT_TM_TM_ZONE 1
6189 _ACEOF
6194 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6196 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6198 else
6199 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6201 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6202 ac_have_decl=1
6203 else
6204 ac_have_decl=0
6207 cat >>confdefs.h <<_ACEOF
6208 #define HAVE_DECL_TZNAME $ac_have_decl
6209 _ACEOF
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6212 $as_echo_n "checking for tzname... " >&6; }
6213 if test "${ac_cv_var_tzname+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6217 /* end confdefs.h. */
6218 #include <time.h>
6219 #if !HAVE_DECL_TZNAME
6220 extern char *tzname[];
6221 #endif
6224 main ()
6226 return tzname[0][0];
6228 return 0;
6230 _ACEOF
6231 if ac_fn_c_try_link "$LINENO"; then :
6232 ac_cv_var_tzname=yes
6233 else
6234 ac_cv_var_tzname=no
6236 rm -f core conftest.err conftest.$ac_objext \
6237 conftest$ac_exeext conftest.$ac_ext
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6240 $as_echo "$ac_cv_var_tzname" >&6; }
6241 if test $ac_cv_var_tzname = yes; then
6243 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6248 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6249 if test "x$ac_cv_type_off_t" = x""yes; then :
6251 else
6253 cat >>confdefs.h <<_ACEOF
6254 #define off_t long int
6255 _ACEOF
6259 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6260 if test "x$ac_cv_type_pid_t" = x""yes; then :
6262 else
6264 cat >>confdefs.h <<_ACEOF
6265 #define pid_t int
6266 _ACEOF
6270 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6271 if test "x$ac_cv_type_size_t" = x""yes; then :
6273 else
6275 cat >>confdefs.h <<_ACEOF
6276 #define size_t unsigned int
6277 _ACEOF
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6282 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6283 if test "${ac_cv_type_uid_t+set}" = set; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6287 /* end confdefs.h. */
6288 #include <sys/types.h>
6290 _ACEOF
6291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6292 $EGREP "uid_t" >/dev/null 2>&1; then :
6293 ac_cv_type_uid_t=yes
6294 else
6295 ac_cv_type_uid_t=no
6297 rm -f conftest*
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6301 $as_echo "$ac_cv_type_uid_t" >&6; }
6302 if test $ac_cv_type_uid_t = no; then
6304 $as_echo "#define uid_t int" >>confdefs.h
6307 $as_echo "#define gid_t int" >>confdefs.h
6312 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6313 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6315 cat >>confdefs.h <<_ACEOF
6316 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6317 _ACEOF
6323 # Look for some functions
6324 for ac_func in getpagesize kqueue statfs statvfs \
6325 clone kse_create rfork_thread thr_create sa_register \
6326 getcontext makecontext setcontext sigaltstack swapcontext
6327 do :
6328 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6329 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6330 eval as_val=\$$as_ac_var
6331 if test "x$as_val" = x""yes; then :
6332 cat >>confdefs.h <<_ACEOF
6333 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6334 _ACEOF
6337 done
6343 for ac_header in $ac_header_list
6344 do :
6345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6346 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6348 eval as_val=\$$as_ac_Header
6349 if test "x$as_val" = x""yes; then :
6350 cat >>confdefs.h <<_ACEOF
6351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6352 _ACEOF
6356 done
6365 for ac_func in getpagesize
6366 do :
6367 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6368 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6369 cat >>confdefs.h <<_ACEOF
6370 #define HAVE_GETPAGESIZE 1
6371 _ACEOF
6374 done
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6377 $as_echo_n "checking for working mmap... " >&6; }
6378 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6379 $as_echo_n "(cached) " >&6
6380 else
6381 if test "$cross_compiling" = yes; then :
6382 ac_cv_func_mmap_fixed_mapped=no
6383 else
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6386 $ac_includes_default
6387 /* malloc might have been renamed as rpl_malloc. */
6388 #undef malloc
6390 /* Thanks to Mike Haertel and Jim Avera for this test.
6391 Here is a matrix of mmap possibilities:
6392 mmap private not fixed
6393 mmap private fixed at somewhere currently unmapped
6394 mmap private fixed at somewhere already mapped
6395 mmap shared not fixed
6396 mmap shared fixed at somewhere currently unmapped
6397 mmap shared fixed at somewhere already mapped
6398 For private mappings, we should verify that changes cannot be read()
6399 back from the file, nor mmap's back from the file at a different
6400 address. (There have been systems where private was not correctly
6401 implemented like the infamous i386 svr4.0, and systems where the
6402 VM page cache was not coherent with the file system buffer cache
6403 like early versions of FreeBSD and possibly contemporary NetBSD.)
6404 For shared mappings, we should conversely verify that changes get
6405 propagated back to all the places they're supposed to be.
6407 Grep wants private fixed already mapped.
6408 The main things grep needs to know about mmap are:
6409 * does it exist and is it safe to write into the mmap'd area
6410 * how to use it (BSD variants) */
6412 #include <fcntl.h>
6413 #include <sys/mman.h>
6415 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6416 char *malloc ();
6417 #endif
6419 /* This mess was copied from the GNU getpagesize.h. */
6420 #ifndef HAVE_GETPAGESIZE
6421 # ifdef _SC_PAGESIZE
6422 # define getpagesize() sysconf(_SC_PAGESIZE)
6423 # else /* no _SC_PAGESIZE */
6424 # ifdef HAVE_SYS_PARAM_H
6425 # include <sys/param.h>
6426 # ifdef EXEC_PAGESIZE
6427 # define getpagesize() EXEC_PAGESIZE
6428 # else /* no EXEC_PAGESIZE */
6429 # ifdef NBPG
6430 # define getpagesize() NBPG * CLSIZE
6431 # ifndef CLSIZE
6432 # define CLSIZE 1
6433 # endif /* no CLSIZE */
6434 # else /* no NBPG */
6435 # ifdef NBPC
6436 # define getpagesize() NBPC
6437 # else /* no NBPC */
6438 # ifdef PAGESIZE
6439 # define getpagesize() PAGESIZE
6440 # endif /* PAGESIZE */
6441 # endif /* no NBPC */
6442 # endif /* no NBPG */
6443 # endif /* no EXEC_PAGESIZE */
6444 # else /* no HAVE_SYS_PARAM_H */
6445 # define getpagesize() 8192 /* punt totally */
6446 # endif /* no HAVE_SYS_PARAM_H */
6447 # endif /* no _SC_PAGESIZE */
6449 #endif /* no HAVE_GETPAGESIZE */
6452 main ()
6454 char *data, *data2, *data3;
6455 const char *cdata2;
6456 int i, pagesize;
6457 int fd, fd2;
6459 pagesize = getpagesize ();
6461 /* First, make a file with some known garbage in it. */
6462 data = (char *) malloc (pagesize);
6463 if (!data)
6464 return 1;
6465 for (i = 0; i < pagesize; ++i)
6466 *(data + i) = rand ();
6467 umask (0);
6468 fd = creat ("conftest.mmap", 0600);
6469 if (fd < 0)
6470 return 2;
6471 if (write (fd, data, pagesize) != pagesize)
6472 return 3;
6473 close (fd);
6475 /* Next, check that the tail of a page is zero-filled. File must have
6476 non-zero length, otherwise we risk SIGBUS for entire page. */
6477 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6478 if (fd2 < 0)
6479 return 4;
6480 cdata2 = "";
6481 if (write (fd2, cdata2, 1) != 1)
6482 return 5;
6483 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6484 if (data2 == MAP_FAILED)
6485 return 6;
6486 for (i = 0; i < pagesize; ++i)
6487 if (*(data2 + i))
6488 return 7;
6489 close (fd2);
6490 if (munmap (data2, pagesize))
6491 return 8;
6493 /* Next, try to mmap the file at a fixed address which already has
6494 something else allocated at it. If we can, also make sure that
6495 we see the same garbage. */
6496 fd = open ("conftest.mmap", O_RDWR);
6497 if (fd < 0)
6498 return 9;
6499 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6500 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6501 return 10;
6502 for (i = 0; i < pagesize; ++i)
6503 if (*(data + i) != *(data2 + i))
6504 return 11;
6506 /* Finally, make sure that changes to the mapped area do not
6507 percolate back to the file as seen by read(). (This is a bug on
6508 some variants of i386 svr4.0.) */
6509 for (i = 0; i < pagesize; ++i)
6510 *(data2 + i) = *(data2 + i) + 1;
6511 data3 = (char *) malloc (pagesize);
6512 if (!data3)
6513 return 12;
6514 if (read (fd, data3, pagesize) != pagesize)
6515 return 13;
6516 for (i = 0; i < pagesize; ++i)
6517 if (*(data + i) != *(data3 + i))
6518 return 14;
6519 close (fd);
6520 return 0;
6522 _ACEOF
6523 if ac_fn_c_try_run "$LINENO"; then :
6524 ac_cv_func_mmap_fixed_mapped=yes
6525 else
6526 ac_cv_func_mmap_fixed_mapped=no
6528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6529 conftest.$ac_objext conftest.beam conftest.$ac_ext
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6534 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6535 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6537 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6540 rm -f conftest.mmap conftest.txt
6545 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6546 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6547 aros_config_ldflags=""
6549 aros_shared_default=yes
6551 aros_shared_cflags="-fPIC"
6552 aros_shared_aflags=""
6553 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6554 aros_kernel_ldflags="-Wl,-rpath,./lib"
6556 aros_target_ar_flags="cr"
6557 aros_target_nm_flags="-C -ul"
6558 aros_target_strip_flags="--strip-unneeded -R.comment"
6560 aros_compiler_libs=
6561 aros_arch_libs=
6563 aros_target_genmap="-Wl,-Map -Xlinker"
6565 # Native flavour stuff
6566 aros_serial_debug="0"
6568 # Palm native flavour stuff
6569 aros_palm_debug_hack="0"
6571 # Unix flavour stuff
6572 aros_nesting_supervisor="0"
6574 # Collect-aros stuff: "-ius" to ignore undefined symbols
6575 ignore_undefined_symbols=""
6577 #-----------------------------------------------------------------------------
6580 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6581 # it switched on by default, and we use the host compiler, so it compiles AROS
6582 # code with this enabled resulting in link failures as we don't have support
6583 # for it.
6585 # We use two methods to disable it. For the host compiler (used to compile
6586 # some hosted modules), we test to see if the compiler supports stack
6587 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6588 # work on all platforms.
6590 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6591 # (this is done unconditionally, as it should have no effect on compilers
6592 # without the stack protection feature). This may be specific to the way that
6593 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6594 # strong enough to disable it in a generic way though, so we'll live with it
6595 # until another vendor ships GCC with it enabled in a different way, and deal
6596 # with it then.
6599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6600 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6601 save_cflags="$CFLAGS"
6602 CFLAGS="$CFLAGS -fno-stack-protector"
6603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6604 /* end confdefs.h. */
6607 main ()
6611 return 0;
6613 _ACEOF
6614 if ac_fn_c_try_compile "$LINENO"; then :
6615 use_no_stack_protector="yes"
6616 else
6617 use_no_stack_protector="no"
6619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6621 $as_echo "$use_no_stack_protector" >&6; }
6622 if test "x-$use_no_stack_protector" = "x-yes" ; then
6623 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6625 CFLAGS="$save_cflags"
6627 #-----------------------------------------------------------------------------
6629 # Disable pointer-signedness warnings if the compiler recognises the option
6630 # (this only works for the host compiler at the moment)
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6633 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6634 save_cflags="$CFLAGS"
6635 CFLAGS="$CFLAGS -Wno-pointer-sign"
6636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6637 /* end confdefs.h. */
6640 main ()
6644 return 0;
6646 _ACEOF
6647 if ac_fn_c_try_compile "$LINENO"; then :
6648 use_no_sign_warning="yes"
6649 else
6650 use_no_sign_warning="no"
6652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6654 $as_echo "$use_no_sign_warning" >&6; }
6655 if test "x-$use_no_sign_warning" = "x-yes" ; then
6656 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6658 CFLAGS="$save_cflags"
6660 #-----------------------------------------------------------------------------
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6663 $as_echo_n "checking for type of build... " >&6; }
6664 # Check whether --enable-build_type was given.
6665 if test "${enable_build_type+set}" = set; then :
6666 enableval=$enable_build_type; build_type=$enableval
6667 else
6668 build_type="personal"
6672 if test "$build_type" = "nightly"; then
6673 build_type_string="NIGHTLY"
6674 elif test "$build_type" = "snapshot"; then
6675 build_type_string="SNAPSHOT"
6676 elif test "$build_type" = "milestone"; then
6677 build_type_string="MILESTONE"
6678 elif test "$build_type" = "release"; then
6679 build_type_string="RELEASE"
6680 else
6681 build_type_string="PERSONAL"
6682 build_type="personal"
6685 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6688 $as_echo "$build_type" >&6; }
6690 #-----------------------------------------------------------------------------
6691 all_debug_types="messages stack modules mungwall symbols"
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6694 $as_echo_n "checking which debug types to enable... " >&6; }
6695 # Check whether --enable-debug was given.
6696 if test "${enable_debug+set}" = set; then :
6697 enableval=$enable_debug; debug="$enableval"
6698 else
6699 debug=""
6703 if test "$debug" = "" -o "$debug" = "no"; then
6704 debug="none"
6705 elif test "$debug" = "yes"; then
6706 debug="all"
6709 if test "$debug" = "all" ; then
6710 debug="messages stack modules symbols"
6711 for d in $all_debug_types; do
6712 export aros_${d}_debug="1"
6713 done
6714 else
6715 for d in $all_debug_types; do
6716 export aros_${d}_debug="0"
6717 done
6720 if test "$debug" != "none"; then
6721 debug=`echo $debug | sed s/,/\ /g`
6722 for d in $debug; do
6723 found="0"
6724 for d2 in $all_debug_types; do
6725 if test "$d2" = "$d"; then
6726 found="1"
6727 break
6729 done
6730 if test "$found" = "0"; then
6731 as_fn_error "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6733 export aros_${d}_debug="1"
6734 done
6735 aros_debug="yes"
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6738 $as_echo "$debug" >&6; }
6740 if test "$aros_messages_debug" = "1"; then
6741 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6742 else
6743 aros_messages_debug=""
6745 if test "$aros_symbols_debug" = "1"; then
6746 aros_symbols_debug="-g"
6747 else
6748 aros_symbols_debug=""
6751 # These are the flags to pass when compiling debugged programs
6752 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6753 aros_debug_aflags=""
6754 aros_debug_ldflags="$aros_symbols_debug"
6756 aros_crosstools="no"
6758 #-----------------------------------------------------------------------------
6759 # Checking if we should build crosstools..
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6761 $as_echo_n "checking whether to build crosstools... " >&6; }
6762 # Check whether --enable-crosstools was given.
6763 if test "${enable_crosstools+set}" = set; then :
6764 enableval=$enable_crosstools; crosstools="$enableval"
6765 else
6766 crosstools="no"
6769 if test "$crosstools" != "" -a "$crosstools" != "no"; then
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6771 $as_echo "yes" >&6; }
6772 aros_crosstools="yes"
6773 else
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 $as_echo "no" >&6; }
6778 #-----------------------------------------------------------------------------
6779 # Checking for distcc and ccache.
6781 # Always apply the transforms in this particular order. Basically you should
6782 # always run 'ccache distcc compiler' in that order for the best performance.
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6785 $as_echo_n "checking whether to enable distcc... " >&6; }
6786 # Check whether --enable-distcc was given.
6787 if test "${enable_distcc+set}" = set; then :
6788 enableval=$enable_distcc; distcc="$enableval"
6789 else
6790 distcc="no"
6793 if test "$distcc" != "" -a "$distcc" != "no"; then
6794 # AC_CHECK_PROG will print out the result in this case
6795 # Extract the first word of "distcc", so it can be a program name with args.
6796 set dummy distcc; ac_word=$2
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 $as_echo_n "checking for $ac_word... " >&6; }
6799 if test "${ac_cv_path_DISTCC+set}" = set; then :
6800 $as_echo_n "(cached) " >&6
6801 else
6802 case $DISTCC in
6803 [\\/]* | ?:[\\/]*)
6804 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6808 for as_dir in $PATH
6810 IFS=$as_save_IFS
6811 test -z "$as_dir" && as_dir=.
6812 for ac_exec_ext in '' $ac_executable_extensions; do
6813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6814 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6816 break 2
6818 done
6819 done
6820 IFS=$as_save_IFS
6822 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6824 esac
6826 DISTCC=$ac_cv_path_DISTCC
6827 if test -n "$DISTCC"; then
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6829 $as_echo "$DISTCC" >&6; }
6830 else
6831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6832 $as_echo "no" >&6; }
6836 else
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6842 $as_echo_n "checking whether to enable ccache... " >&6; }
6843 # Check whether --enable-ccache was given.
6844 if test "${enable_ccache+set}" = set; then :
6845 enableval=$enable_ccache; ccache="$enableval"
6846 else
6847 ccache="no"
6850 if test "$ccache" != "" -a "$ccache" != "no"; then
6851 # AC_CHECK_PROG will print out the result in this case
6852 # Extract the first word of "ccache", so it can be a program name with args.
6853 set dummy ccache; ac_word=$2
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 $as_echo_n "checking for $ac_word... " >&6; }
6856 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6857 $as_echo_n "(cached) " >&6
6858 else
6859 if test -n "$CCACHE"; then
6860 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6865 IFS=$as_save_IFS
6866 test -z "$as_dir" && as_dir=.
6867 for ac_exec_ext in '' $ac_executable_extensions; do
6868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869 ac_cv_prog_CCACHE="ccache"
6870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 break 2
6873 done
6874 done
6875 IFS=$as_save_IFS
6879 CCACHE=$ac_cv_prog_CCACHE
6880 if test -n "$CCACHE"; then
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
6882 $as_echo "$CCACHE" >&6; }
6883 else
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 $as_echo "no" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6894 #-----------------------------------------------------------------------------
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific gcc version to use" >&5
6896 $as_echo_n "checking what specific gcc version to use... " >&6; }
6898 # Check whether --with-gcc-version was given.
6899 if test "${with_gcc_version+set}" = set; then :
6900 withval=$with_gcc_version; target_tool_version="$withval"
6901 else
6902 target_tool_version="default"
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
6906 $as_echo "$target_tool_version" >&6; }
6908 #-----------------------------------------------------------------------------
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
6910 $as_echo_n "checking what optimization flags to use... " >&6; }
6912 # Check whether --with-optimization was given.
6913 if test "${with_optimization+set}" = set; then :
6914 withval=$with_optimization; optimization="$withval"
6915 else
6916 optimization="unknown"
6919 if test "$optimization" = "unknown"; then
6920 if test "$debug" != "none"; then
6921 optimization="-O0"
6922 else
6923 optimization="-O2"
6926 aros_config_cflags="$aros_config_cflags $optimization"
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
6928 $as_echo "$optimization" >&6; }
6930 #-----------------------------------------------------------------------------
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
6932 $as_echo_n "checking what paranoia flags to use... " >&6; }
6934 # Check whether --with-paranoia was given.
6935 if test "${with_paranoia+set}" = set; then :
6936 withval=$with_paranoia; paranoia_flags="$withval"
6937 else
6938 paranoia_flags="default"
6941 if test "$paranoia_flags" = "default"; then
6942 paranoia_flags=""
6943 else if test "$paranoia_flags" = "yes"; then
6944 paranoia_flags="-Wall -Werror"
6945 fi fi
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
6947 $as_echo "$paranoia_flags" >&6; }
6948 aros_paranoia_cflags="$paranoia_flags"
6950 #-----------------------------------------------------------------------------
6951 if test "$target_os" = "ios"; then
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
6954 $as_echo_n "checking XCode path... " >&6; }
6956 # Check whether --with-xcode-path was given.
6957 if test "${with_xcode_path+set}" = set; then :
6958 withval=$with_xcode_path; aros_xcode_path="$withval"
6959 else
6960 aros_xcode_path="/Developer"
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
6964 $as_echo "$aros_xcode_path" >&6; }
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
6967 $as_echo_n "checking for minimum supported iOS version... " >&6; }
6969 # Check whether --with-ios-version was given.
6970 if test "${with_ios_version+set}" = set; then :
6971 withval=$with_ios_version; aros_ios_version="$withval"
6972 else
6973 aros_ios_version="2.0"
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
6977 $as_echo "$aros_ios_version" >&6; }
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
6980 $as_echo_n "checking what iOS SDK version to use... " >&6; }
6982 # Check whether --with-ios-sdk was given.
6983 if test "${with_ios_sdk+set}" = set; then :
6984 withval=$with_ios_sdk; aros_ios_sdk="$withval"
6985 else
6986 aros_ios_sdk="4.1"
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
6990 $as_echo "$aros_ios_sdk" >&6; }
6994 #-----------------------------------------------------------------------------
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
6996 $as_echo_n "checking what target variant to enable... " >&6; }
6997 # Check whether --enable-target_variant was given.
6998 if test "${enable_target_variant+set}" = set; then :
6999 enableval=$enable_target_variant; target_variant=$enableval
7000 else
7001 target_variant=""
7004 if test "$target_variant" = ""; then
7005 aros_target_variant=""
7006 aros_target_suffix=""
7007 enableval="none"
7008 else
7009 aros_target_variant="$target_variant"
7010 aros_target_suffix="-$target_variant"
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7013 $as_echo "$enableval" >&6; }
7015 target_bootloader="none"
7017 #-----------------------------------------------------------------------------
7018 # This is the target configuration switch.
7019 case "$target_os" in
7020 linux*)
7021 aros_target_arch="linux"
7022 aros_target_family="unix"
7023 case "$target_cpu" in
7024 *m68k*)
7025 aros_target_cpu="m68k"
7026 aros_object_format="m68kelf"
7027 aros_flavour="emulcompat"
7028 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7029 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7030 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7031 gcc_target_cpu="mc68000"
7033 *i?86*)
7034 aros_target_cpu="i386"
7035 aros_object_format="elf_i386"
7036 aros_flavour="emulation"
7037 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7038 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7039 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7040 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7041 aros_config_ldflags="-m32 -march=i486"
7042 aros_kernel_ldflags="-melf_i386"
7043 aros_default_wbdepth=8
7044 gcc_target_cpu="i386"
7045 pci_hidd_target="hidd-pci-linux"
7047 *x86_64*)
7048 aros_target_cpu="x86_64"
7049 aros_object_format="elf_x86_64"
7050 aros_flavour="emulation"
7051 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7052 aros_config_cflags="$aros_config_cflags -mno-red-zone"
7053 aros_default_wbdepth=8
7054 gcc_target_cpu="x86_64"
7055 pci_hidd_target="hidd-pci-linux"
7057 *powerpc*)
7058 aros_target_cpu="ppc"
7059 aros_object_format="elf32ppc"
7060 aros_flavour="emulation"
7061 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7062 aros_default_wbdepth=8
7063 gcc_target_cpu="ppc"
7065 # TODO
7066 # Same as powerpc, but I need this for the nightly build to work again.
7067 # Actually, the nightly should be made working with powerpc target.
7068 # That just was too much work for the moment, another week or two.
7069 *ppc*)
7070 aros_target_cpu="ppc"
7071 aros_object_format="elf32ppc"
7072 aros_flavour="emulation"
7073 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7074 aros_default_wbdepth=8
7075 gcc_target_cpu="ppc"
7077 *arm*)
7078 aros_target_cpu="arm"
7079 aros_object_format="armelf_linux_eabi"
7080 aros_flavour="emulation"
7081 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7082 gcc_target_cpu="arm"
7083 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7084 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7087 as_fn_error "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7089 esac
7093 aros_target_arch="pc"
7094 aros_shared_default="no"
7095 target_bootloader="grub2"
7096 case "$target_cpu" in
7097 *i?86*)
7098 aros_target_cpu="i386"
7101 if test "$aros_object_format" = "" ; then
7102 aros_object_format="elf_i386"
7104 aros_flavour="standalone"
7105 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7106 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7107 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7108 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7109 aros_config_ldflags="-m32 -march=i486"
7110 aros_kernel_ldflags="-melf_i386"
7111 aros_default_wbwidth=640
7112 aros_default_wbheight=480
7113 gcc_target_cpu="i386"
7115 *x86_64*)
7116 aros_target_cpu="x86_64"
7117 aros_serial_debug=1
7118 if test "$aros_object_format" = "" ; then
7119 aros_object_format="elf_x86_64"
7121 aros_flavour="standalone"
7122 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7123 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
7124 aros_kernel_ldflags=""
7125 aros_default_wbwidth=640
7126 aros_default_wbheight=480
7127 gcc_target_cpu="x86_64"
7130 as_fn_error "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7132 esac
7135 prep)
7136 aros_target_arch="prep"
7137 aros_shared_default="no"
7138 aros_target_cpu="ppc"
7139 aros_object_format="elf32ppc"
7140 aros_flavour="ppcnative"
7141 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7142 aros_kernel_ldflags=""
7143 aros_default_wbwidth=640
7144 aros_default_wbheight=480
7145 gcc_target_cpu="ppc"
7148 freebsd*)
7149 aros_target_arch="freebsd"
7150 aros_target_family="unix"
7151 aros_target_cpu="i386"
7152 aros_flavour="emulation"
7153 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7154 gcc_target_cpu="i386"
7156 aros_target_strip_flags="-x"
7159 darwin*)
7160 aros_target_arch="darwin"
7161 aros_target_family="unix"
7162 aros_flavour="emulation"
7163 case "$target_cpu" in
7164 *i?86*)
7165 aros_target_cpu="i386"
7166 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7167 aros_kernel_cflags="$aros_kernel_cflags -m32"
7168 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
7169 aros_default_wbdepth=8
7170 gcc_target_cpu="i386"
7171 aros_object_format="elf_i386"
7172 aros_target_strip_flags="-x"
7173 aros_target_cc="i386-aros-gcc"
7174 aros_target_cxx="i386-aros-g++"
7175 aros_target_ld="i386-aros-ld"
7176 aros_target_as="i386-aros-as"
7177 aros_target_ar="i386-aros-ar"
7178 aros_target_ranlib="i386-aros-ranlib"
7179 aros_target_nm="i386-aros-nm"
7180 aros_target_strip="i386-aros-strip"
7181 aros_target_objcopy="i386-aros-objcopy"
7182 aros_target_objdump="i386-aros-objdump"
7183 target_tool_prefix="i686-apple-darwin10-"
7185 *x86_64*)
7186 aros_target_cpu="x86_64"
7187 aros_object_format="elf_x86_64"
7188 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7189 aros_kernel_cflags="$aros_kernel_cflags -m64"
7190 aros_kernel_ldflags="$aros_kernel_ldflags -m64"
7191 aros_default_wbdepth=8
7192 gcc_target_cpu="x86_64"
7193 aros_target_cc="x86_64-aros-gcc"
7194 aros_target_cxx="x86_64-aros-g++"
7195 aros_target_ld="x86_64-aros-ld"
7196 aros_target_as="x86_64-aros-as"
7197 aros_target_ar="x86_64-aros-ar"
7198 aros_target_ranlib="x86_64-aros-ranlib"
7199 aros_target_nm="x86_64-aros-nm"
7200 aros_target_strip="x86_64-aros-strip"
7201 aros_target_objcopy="x86_64-aros-objcopy"
7202 aros_target_objdump="x86_64-aros-objdump"
7203 target_tool_prefix="i686-apple-darwin10-"
7205 *ppc*)
7206 aros_target_cpu="ppc"
7207 aros_object_format="elf32_ppc"
7208 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7209 aros_default_wbdepth=8
7210 gcc_target_cpu="ppc"
7211 aros_target_cc="ppc-aros-gcc"
7212 aros_target_cxx="ppc-aros-g++"
7213 aros_target_ld="ppc-aros-ld"
7214 aros_target_as="ppc-aros-as"
7215 aros_target_ar="ppc-aros-ar"
7216 aros_target_ranlib="ppc-aros-ranlib"
7217 aros_target_nm="ppc-aros-nm"
7218 aros_target_strip="ppc-aros-strip"
7219 aros_target_objcopy="ppc-aros-objcopy"
7220 aros_target_objdump="ppc-aros-objdump"
7221 target_tool_prefix="powerpc-apple-darwin10-"
7224 as_fn_error "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7226 esac
7229 ios*)
7230 aros_target_arch="ios"
7231 aros_target_family="unix"
7232 aros_flavour="emulation"
7233 # This is here because it may depend on iOS or SDK version
7234 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7235 case "$target_cpu" in
7236 *i?86*)
7237 aros_ios_platform="iPhoneSimulator"
7238 aros_target_cpu="i386"
7239 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7240 aros_default_wbdepth=8
7241 gcc_target_cpu="i386"
7242 aros_object_format="elf_i386"
7243 aros_target_strip_flags="-x"
7244 aros_target_cc="i386-aros-gcc"
7245 aros_target_cxx="i386-aros-g++"
7246 aros_target_ld="i386-aros-ld"
7247 aros_target_as="i386-aros-as"
7248 aros_target_ar="i386-aros-ar"
7249 aros_target_ranlib="i386-aros-ranlib"
7250 aros_target_nm="i386-aros-nm"
7251 aros_target_strip="i386-aros-strip"
7252 aros_target_objcopy="i386-aros-objcopy"
7253 aros_target_objdump="i386-aros-objdump"
7254 target_tool_prefix="i686-apple-darwin10-"
7255 target_tool_flags="-m32"
7257 *arm*)
7258 aros_ios_platform="iPhoneOS"
7259 aros_target_cpu="arm"
7260 aros_object_format="armelf_linux_eabi"
7261 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7262 aros_config_cflags="$aros_config_cflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7263 aros_config_aflags="$aros_config_aflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7264 aros_arch_libs="-laeabi"
7265 aros_default_wbdepth=8
7266 gcc_target_cpu="arm"
7267 aros_kernel_ld="ld -arch armv6"
7268 aros_target_cc="arm-aros-gcc"
7269 aros_target_cxx="arm-aros-g++"
7270 aros_target_ld="arm-aros-ld"
7271 aros_target_as="arm-aros-as"
7272 aros_target_ar="arm-aros-ar"
7273 aros_target_ranlib="arm-aros-ranlib"
7274 aros_target_nm="arm-aros-nm"
7275 aros_target_strip="arm-aros-strip"
7276 aros_target_objcopy="arm-aros-objcopy"
7277 aros_target_objdump="arm-aros-objdump"
7278 target_tool_prefix="arm-apple-darwin10-"
7279 aros_default_wbwidth=320
7280 aros_default_wbheight=480
7281 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7284 as_fn_error "\"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" "$LINENO" 5
7286 esac
7287 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7288 target_tool_flags="$target_tool_flags --sysroot $aros_ios_sdk"
7291 dragonfly*)
7292 aros_target_arch="dragonfly"
7293 aros_target_family="unix"
7294 aros_flavour="emulation"
7295 case "$target_cpu" in
7296 *i?86*)
7297 aros_target_cpu="i386"
7298 aros_object_format="elf_i386"
7299 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7301 *x86_64*)
7302 aros_target_cpu="x86_64"
7303 aros_object_format="elf_x86_64"
7304 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7307 as_fn_error "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7309 esac
7312 netbsd*)
7313 aros_target_arch="netbsd"
7314 aros_target_family="unix"
7315 case "$target_cpu" in
7316 *m68k*)
7317 aros_target_cpu="m68k"
7318 aros_object_format="m68kelf"
7319 aros_flavour="emulcompat"
7320 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7321 gcc_target_cpu="mc68000"
7323 *i?86*)
7324 aros_target_cpu="i386"
7325 aros_object_format="elf_i386"
7326 aros_flavour="emulation"
7327 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7328 aros_default_wbdepth=8
7329 gcc_target_cpu="i386"
7332 as_fn_error "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7334 esac
7335 aros_target_genmap="-Wl,-M -Xlinker >"
7336 aros_flavour="emulation"
7337 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7340 openbsd*)
7341 aros_target_arch="openbsd"
7342 aros_target_family="unix"
7343 case "$target_cpu" in
7344 *i?86*)
7345 aros_target_cpu="i386"
7346 aros_object_format="elf_i386"
7347 aros_flavour="emulation"
7348 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7349 gcc_target_cpu="i386"
7352 as_fn_error "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7354 esac
7355 aros_target_genmap="-Wl,-M -Xlinker >"
7356 aros_target_nm_flags="-u"
7357 aros_flavour="emulation"
7360 solaris*)
7361 aros_target_arch="solaris"
7362 aros_target_family="unix"
7363 case "$target_cpu" in
7364 *i?86*)
7365 aros_target_cpu="i386"
7366 aros_object_format="elf_i386"
7367 aros_flavour="emulation"
7368 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7369 aros_default_wbdepth=8
7370 gcc_target_cpu="i386"
7372 *sparc*)
7373 aros_target_cpu="sparc"
7374 aros_object_format="elf_sparc"
7375 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7376 gcc_target_cpu="sparc"
7379 as_fn_error "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7381 esac
7382 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7383 aros_flavour="emulation"
7386 morphos*)
7387 aros_target_arch="morphos"
7388 aros_shared_default="no"
7389 aros_target_cpu="ppc"
7390 aros_object_format="elf_ppc"
7391 aros_flavour="nativecompat"
7392 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7393 gcc_target_cpu="ppc"
7396 sam440)
7397 aros_target_arch="sam440"
7398 aros_shared_default="no"
7399 aros_target_cpu="ppc"
7400 aros_object_format="elf32ppc"
7401 aros_flavour="ppcnative"
7402 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7403 aros_kernel_ldflags=""
7404 aros_default_wbwidth=1024
7405 aros_default_wbheight=768
7406 aros_default_wbdepth=24
7407 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7408 gcc_target_cpu="powerpc"
7411 efika)
7412 aros_target_arch="efika"
7413 aros_shared_default="no"
7414 aros_target_cpu="arm"
7415 aros_object_format="armelf_linux_eabi"
7416 aros_flavour="standalone"
7417 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7418 aros_kernel_ldflags=""
7419 aros_default_wbwidth=1024
7420 aros_default_wbheight=600
7421 aros_arch_libs="-laeabi"
7422 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7423 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7426 chrp)
7427 aros_target_arch="chrp"
7428 aros_shared_default="no"
7429 aros_target_cpu="ppc"
7430 aros_object_format="elf32ppc"
7431 aros_flavour="ppcnative"
7432 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7433 aros_kernel_ldflags=""
7434 aros_default_wbwidth=640
7435 aros_default_wbheight=480
7436 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7437 gcc_target_cpu="powerpc"
7438 case "$aros_target_variant" in
7439 efika)
7440 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7442 esac
7445 amiga*)
7446 aros_target_arch="amiga"
7447 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7448 aros_shared_default="no"
7450 case "$target_cpu" in
7451 *m68k-eabi)
7452 aros_target_cpu="m68k"
7453 aros_object_format="m68kelf"
7454 aros_flavour="standalone"
7455 gcc_target_cpu="mc68000"
7456 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
7457 aros_config_aflags="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
7458 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
7459 target_tool_prefix="m68k-elf-"
7460 aros_target_nostdlib_ldflags="" # We always need -lgcc
7461 aros_target_strip_flags="-R.comment"
7463 *m68k*)
7464 aros_target_cpu="m68k"
7465 aros_object_format="m68kelf"
7466 aros_flavour="standcompat"
7467 gcc_target_cpu="mc68000"
7468 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var"
7469 aros_config_aflags="$aros_config_aflags -g3 -${gcc_target_cpu}"
7470 aros_paranoia_cflags="$aros_paranoia_cflags -Wno-volatile-register-var"
7471 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
7472 target_tool_prefix="m68k-elf-"
7473 aros_target_nostdlib_ldflags="" # We always need -lgcc
7474 aros_target_strip_flags="-R.comment"
7476 *ppc*)
7477 aros_cpu="ppc"
7478 aros_flavour="native"
7479 gcc_target_cpu="ppc"
7482 as_fn_error "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7484 esac
7487 mingw*)
7488 aros_target_arch="mingw32"
7489 aros_shared_default="no"
7490 aros_flavour="emulation"
7491 aros_shared_cflags=""
7492 need_dlopen="no"
7493 rescomp="windres"
7494 case "$target_cpu" in
7495 *i?86*)
7496 aros_target_cpu="i386"
7497 aros_object_format="elf_i386"
7498 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7499 aros_default_wbdepth=8
7500 gcc_target_cpu="i386"
7501 aros_target_cc="i386-aros-gcc"
7502 aros_target_cxx="i386-aros-g++"
7503 aros_target_ld="i386-aros-ld"
7504 aros_target_as="i386-aros-as"
7505 aros_target_ar="i386-aros-ar"
7506 aros_target_ranlib="i386-aros-ranlib"
7507 aros_target_nm="i386-aros-nm"
7508 aros_target_strip="i386-aros-strip"
7509 aros_target_objcopy="i386-aros-objcopy"
7510 aros_target_objdump="i386-aros-objdump"
7511 target_tool_prefix="i386-mingw32-"
7513 *x86_64*)
7514 aros_target_cpu="x86_64"
7515 aros_object_format="elf_x86_64"
7516 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7517 aros_default_wbdepth=8
7518 gcc_target_cpu="x86_64"
7519 aros_target_cc="x86_64-aros-gcc"
7520 aros_target_cxx="x86_64-aros-g++"
7521 aros_target_ld="x86_64-aros-ld"
7522 aros_target_as="x86_64-aros-as"
7523 aros_target_ar="x86_64-aros-ar"
7524 aros_target_ranlib="x86_64-aros-ranlib"
7525 aros_target_nm="x86_64-aros-nm"
7526 aros_target_strip="x86_64-aros-strip"
7527 aros_target_objcopy="x86_64-aros-objcopy"
7528 aros_target_objdump="x86_64-aros-objdump"
7529 target_tool_prefix="x86_64-w64-mingw32-"
7531 *arm*)
7532 aros_target_cpu="arm"
7533 aros_object_format="armelf_linux_eabi"
7534 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7535 aros_arch_libs="-laeabi"
7536 aros_default_wbdepth=8
7537 gcc_target_cpu="arm"
7538 aros_target_cc="arm-aros-gcc"
7539 aros_target_cxx="arm-aros-g++"
7540 aros_target_ld="arm-aros-ld"
7541 aros_target_as="arm-aros-as"
7542 aros_target_ar="arm-aros-ar"
7543 aros_target_ranlib="arm-aros-ranlib"
7544 aros_target_nm="arm-aros-nm"
7545 aros_target_strip="arm-aros-strip"
7546 aros_target_objcopy="arm-aros-objcopy"
7547 aros_target_objdump="arm-aros-objdump"
7548 target_tool_prefix="arm-mingw32ce-"
7549 aros_default_wbwidth=160
7550 aros_default_wbheight=160
7553 as_fn_error "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7555 esac
7556 if test $host_os = "cygwin"; then
7557 aros_kernel_cflags="-mno-cygwin"
7560 pp*)
7561 aros_target_arch="pp"
7562 aros_shared_default="no"
7563 case "$target_cpu" in
7564 *m68k*)
7565 aros_target_cpu="m68k"
7566 aros_object_format="m68kelf"
7567 aros_flavour="palmnative"
7568 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7569 aros_default_wbwidth=160
7570 aros_default_wbheight=160
7571 aros_default_wbdepth=1
7572 aros_target_ar_flags="cru"
7573 aros_compiler_libs="-lgcc1"
7574 aros_shared_default=no
7575 aros_shared_cflags="-fpic"
7576 aros_shared_aflags=""
7577 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7578 aros_kernel_ldflags="-Wl,-rpath,./lib"
7579 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7580 aros_debug_aflags=""
7581 aros_debug_ldflags="$aros_symbols_debug"
7582 aros_mungwall_debug="0"
7583 aros_modules_debug="0"
7584 gcc_target_cpu="mc68000"
7585 ignore_undefined_symbols="-ius"
7588 as_fn_error "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7590 esac
7593 mac*)
7594 aros_target_arch="mac"
7595 aros_shared_default="no"
7596 case "$target_cpu" in
7597 *m68k*)
7598 aros_target_cpu="m68k"
7599 aros_object_format="m68kelf"
7600 aros_flavour="mac68knative"
7601 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7602 aros_default_wbwidth=512
7603 aros_default_wbheight=384
7604 aros_default_wbdepth=8
7605 aros_target_ar_flags="cru"
7606 aros_compiler_libs="-lgcc1"
7607 aros_shared_default=no
7608 aros_shared_cflags="-fpic"
7609 aros_shared_aflags=""
7610 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7611 aros_kernel_ldflags="-Wl,-rpath,./lib"
7612 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7613 aros_debug_aflags=""
7614 aros_debug_ldflags="$aros_symbols_debug"
7615 aros_mungwall_debug="0"
7616 aros_modules_debug="0"
7617 gcc_target_cpu="mc68000"
7618 ignore_undefined_symbols="-ius"
7621 as_fn_error "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7623 esac
7627 as_fn_error "Unsupported target architecture $target" "$LINENO" 5
7629 esac
7631 # FIXME: for cross-compiling this should point to another location
7632 if test "$aros_flavour" = "emulation"; then
7633 aros_kernel_includes="-isystem /usr/include"
7635 if test "$aros_flavour" = "emulcompat"; then
7636 aros_kernel_includes="-isystem /usr/include"
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Where to download sourcecode for external ports" >&5
7640 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
7642 # Check whether --with-portssources was given.
7643 if test "${with_portssources+set}" = set; then :
7644 withval=$with_portssources; with_portssrcdir=$withval
7645 else
7646 with_portssrcdir="default"
7649 if test "$with_portssrcdir" = "default"; then
7650 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7651 else
7652 AROS_PORTSSRCDIR="$with_portssrcdir"
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7655 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7658 $as_echo_n "checking which bootloader to use... " >&6; }
7660 # Check whether --with-bootloader was given.
7661 if test "${with_bootloader+set}" = set; then :
7662 withval=$with_bootloader; target_bootloader=$withval
7663 else
7664 target_bootloader=$target_bootloader
7667 if test "$target_bootloader" = "none"; then
7668 aros_target_bootloader=""
7669 else
7670 aros_target_bootloader="$target_bootloader"
7672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7673 $as_echo "$target_bootloader" >&6; }
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7676 $as_echo_n "checking which icon-set to use... " >&6; }
7678 # Check whether --with-iconset was given.
7679 if test "${with_iconset+set}" = set; then :
7680 withval=$with_iconset; target_iconset=$withval
7681 else
7682 target_iconset="default"
7685 if test "$target_iconset" = "default"; then
7686 aros_target_iconset="Gorilla"
7687 target_iconset="default (Gorilla)"
7688 else
7689 aros_target_iconset="$target_iconset"
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7692 $as_echo "$target_iconset" >&6; }
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7695 $as_echo_n "checking which GUI Theme to use... " >&6; }
7697 # Check whether --with-theme was given.
7698 if test "${with_theme+set}" = set; then :
7699 withval=$with_theme; target_guitheme=$withval
7700 else
7701 target_guitheme="default"
7704 if test "$target_guitheme" = "default"; then
7705 aros_target_guitheme="Ice"
7706 else
7707 aros_target_guitheme="$target_guitheme"
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7710 $as_echo "$aros_target_guitheme" >&6; }
7712 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7713 # for target code)
7714 cross_compiling=no
7715 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7716 cross_compiling=yes
7718 if test "$aros_host_cpu" == "x86_64" ; then
7719 if test "$aros_target_cpu" == "i386" ; then
7720 if test "$aros_target_arch" != "mingw32"; then
7721 cross_compiling=no
7726 # Set prefix for target compiler etc. if we're cross-compiling
7727 # (should possibly be earlier but needs to be after AC_PROG_CC)
7728 if test "$cross_compiling" = "yes" ; then
7729 if test "$target_tool_prefix" = ""; then
7730 target_tool_prefix=${target_cpu}-elf-
7732 CC=${target_tool_prefix}gcc
7733 CPP=${target_tool_prefix}cpp
7734 if test "$target_tool_version" != "default"; then
7735 CC="$CC-$target_tool_version"
7736 CPP="$CC-$target_tool_version"
7738 # Extract the first word of "$CC", so it can be a program name with args.
7739 set dummy $CC; ac_word=$2
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7741 $as_echo_n "checking for $ac_word... " >&6; }
7742 if test "${ac_cv_path_CC+set}" = set; then :
7743 $as_echo_n "(cached) " >&6
7744 else
7745 case $CC in
7746 [\\/]* | ?:[\\/]*)
7747 ac_cv_path_CC="$CC" # Let the user override the test with a path.
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7757 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
7758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7761 done
7762 done
7763 IFS=$as_save_IFS
7766 esac
7768 CC=$ac_cv_path_CC
7769 if test -n "$CC"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7771 $as_echo "$CC" >&6; }
7772 else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7778 if test "$CC" = ""; then
7779 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
7782 CC="$CC $target_tool_flags"
7784 #-----------------------------------------------------------------------------
7786 # Disable pointer-signedness warnings if the compiler recognises the option
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7789 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7790 save_cflags="$CFLAGS"
7791 CFLAGS="$CFLAGS -Wno-pointer-sign"
7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793 /* end confdefs.h. */
7796 main ()
7800 return 0;
7802 _ACEOF
7803 if ac_fn_c_try_compile "$LINENO"; then :
7804 use_no_sign_warning="yes"
7805 else
7806 use_no_sign_warning="no"
7808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7810 $as_echo "$use_no_sign_warning" >&6; }
7811 if test "x-$use_no_sign_warning" = "x-yes" ; then
7812 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
7814 CFLAGS="$save_cflags"
7816 #-----------------------------------------------------------------------------
7818 # Find all the tools we need to compile. This could be cross-compiling
7819 # though! If that is the case we use the GNU form of the target and
7820 # simply add this to the front of the binary name. This is rather simple,
7821 # but it should work under most circumstances.
7823 # The default tools are to use the same as the host, but only if the
7824 # host and target CPU are the same. With GCC this is normally enough.
7827 aros_cc_pre=""
7828 aros_shared_ld="$aros_host_ld"
7830 aros_target_mkdep="$aros_host_mkdep"
7831 aros_target_incl_def="$aros_host_incl"
7833 aros_kernel_cc="$CC"
7835 # The default tools executables to be linked to.
7836 if test "$aros_target_cc" != ""; then
7837 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
7838 set dummy $aros_target_cc; ac_word=$2
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7840 $as_echo_n "checking for $ac_word... " >&6; }
7841 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
7842 $as_echo_n "(cached) " >&6
7843 else
7844 case $aros_target_cc in
7845 [\\/]* | ?:[\\/]*)
7846 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
7849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7852 IFS=$as_save_IFS
7853 test -z "$as_dir" && as_dir=.
7854 for ac_exec_ext in '' $ac_executable_extensions; do
7855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7856 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
7857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 break 2
7860 done
7861 done
7862 IFS=$as_save_IFS
7865 esac
7867 aros_target_cc=$ac_cv_path_aros_target_cc
7868 if test -n "$aros_target_cc"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
7870 $as_echo "$aros_target_cc" >&6; }
7871 else
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7877 if test "$aros_target_cc" = ""; then
7878 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
7881 if test "$aros_target_ld" != ""; then
7882 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
7883 set dummy $aros_target_ld; ac_word=$2
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7885 $as_echo_n "checking for $ac_word... " >&6; }
7886 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
7887 $as_echo_n "(cached) " >&6
7888 else
7889 case $aros_target_ld in
7890 [\\/]* | ?:[\\/]*)
7891 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
7894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7895 for as_dir in $PATH
7897 IFS=$as_save_IFS
7898 test -z "$as_dir" && as_dir=.
7899 for ac_exec_ext in '' $ac_executable_extensions; do
7900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7901 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
7902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7903 break 2
7905 done
7906 done
7907 IFS=$as_save_IFS
7910 esac
7912 aros_target_ld=$ac_cv_path_aros_target_ld
7913 if test -n "$aros_target_ld"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
7915 $as_echo "$aros_target_ld" >&6; }
7916 else
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7918 $as_echo "no" >&6; }
7922 if test "$aros_target_ld" = ""; then
7923 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
7927 if test "$crosstools" != "yes"; then
7929 if test "$aros_target_as" = ""; then
7930 if test "$cross_compiling" = "yes" ; then
7931 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
7932 set dummy ${target_tool_prefix}as; ac_word=$2
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7934 $as_echo_n "checking for $ac_word... " >&6; }
7935 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7936 $as_echo_n "(cached) " >&6
7937 else
7938 case $aros_target_as_ln in
7939 [\\/]* | ?:[\\/]*)
7940 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7944 for as_dir in $PATH
7946 IFS=$as_save_IFS
7947 test -z "$as_dir" && as_dir=.
7948 for ac_exec_ext in '' $ac_executable_extensions; do
7949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7950 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 break 2
7954 done
7955 done
7956 IFS=$as_save_IFS
7959 esac
7961 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7962 if test -n "$aros_target_as_ln"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7964 $as_echo "$aros_target_as_ln" >&6; }
7965 else
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7971 else
7972 if test "$GCC" = "yes"; then
7973 aros_gcc_as=`$CC -print-prog-name=as`
7974 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
7975 set dummy `basename $aros_gcc_as`; ac_word=$2
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7977 $as_echo_n "checking for $ac_word... " >&6; }
7978 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
7980 else
7981 case $aros_target_as_ln in
7982 [\\/]* | ?:[\\/]*)
7983 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 for as_dir in `dirname $aros_gcc_as`
7989 IFS=$as_save_IFS
7990 test -z "$as_dir" && as_dir=.
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7993 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 break 2
7997 done
7998 done
7999 IFS=$as_save_IFS
8002 esac
8004 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8005 if test -n "$aros_target_as_ln"; then
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8007 $as_echo "$aros_target_as_ln" >&6; }
8008 else
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8010 $as_echo "no" >&6; }
8015 if test "$aros_target_as_ln" = ""; then
8016 # Extract the first word of "as", so it can be a program name with args.
8017 set dummy as; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 case $aros_target_as_ln in
8024 [\\/]* | ?:[\\/]*)
8025 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8035 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 break 2
8039 done
8040 done
8041 IFS=$as_save_IFS
8044 esac
8046 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8047 if test -n "$aros_target_as_ln"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8049 $as_echo "$aros_target_as_ln" >&6; }
8050 else
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8058 else
8059 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8060 set dummy $aros_target_as; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
8065 else
8066 case $aros_target_as_ln in
8067 [\\/]* | ?:[\\/]*)
8068 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8072 for as_dir in $PATH
8074 IFS=$as_save_IFS
8075 test -z "$as_dir" && as_dir=.
8076 for ac_exec_ext in '' $ac_executable_extensions; do
8077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8078 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8080 break 2
8082 done
8083 done
8084 IFS=$as_save_IFS
8087 esac
8089 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8090 if test -n "$aros_target_as_ln"; then
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8092 $as_echo "$aros_target_as_ln" >&6; }
8093 else
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8095 $as_echo "no" >&6; }
8101 if test "$aros_target_as_ln" = ""; then
8102 as_fn_error "as is required to build AROS. Please install and run configure again." "$LINENO" 5
8105 if test "$aros_kernel_ld" = ""; then
8106 if test "$cross_compiling" = "yes" ; then
8107 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8108 set dummy ${target_tool_prefix}ld; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 case $aros_kernel_ld in
8115 [\\/]* | ?:[\\/]*)
8116 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8126 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 break 2
8130 done
8131 done
8132 IFS=$as_save_IFS
8135 esac
8137 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8138 if test -n "$aros_kernel_ld"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8140 $as_echo "$aros_kernel_ld" >&6; }
8141 else
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8147 else
8148 if test "$GCC" = "yes"; then
8149 aros_gcc_ld=`$CC -print-prog-name=ld`
8150 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8151 set dummy `basename $aros_gcc_ld`; ac_word=$2
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153 $as_echo_n "checking for $ac_word... " >&6; }
8154 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 case $aros_kernel_ld in
8158 [\\/]* | ?:[\\/]*)
8159 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in `dirname $aros_gcc_ld`
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8173 done
8174 done
8175 IFS=$as_save_IFS
8178 esac
8180 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8181 if test -n "$aros_kernel_ld"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8183 $as_echo "$aros_kernel_ld" >&6; }
8184 else
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8191 if test "$aros_kernel_ld" = ""; then
8192 # Extract the first word of "ld", so it can be a program name with args.
8193 set dummy ld; ac_word=$2
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8195 $as_echo_n "checking for $ac_word... " >&6; }
8196 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
8198 else
8199 case $aros_kernel_ld in
8200 [\\/]* | ?:[\\/]*)
8201 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8205 for as_dir in $PATH
8207 IFS=$as_save_IFS
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8211 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 break 2
8215 done
8216 done
8217 IFS=$as_save_IFS
8220 esac
8222 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8223 if test -n "$aros_kernel_ld"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8225 $as_echo "$aros_kernel_ld" >&6; }
8226 else
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8234 else
8235 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8236 set dummy $aros_kernel_ld; ac_word=$2
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 $as_echo_n "checking for $ac_word... " >&6; }
8239 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 case $aros_kernel_ld in
8243 [\\/]* | ?:[\\/]*)
8244 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8256 break 2
8258 done
8259 done
8260 IFS=$as_save_IFS
8263 esac
8265 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8266 if test -n "$aros_kernel_ld"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8268 $as_echo "$aros_kernel_ld" >&6; }
8269 else
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8277 if test "$aros_kernel_ld" = ""; then
8278 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8281 if test "$aros_target_ar" = ""; then
8282 if test "$cross_compiling" = "yes" ; then
8283 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8284 set dummy ${target_tool_prefix}ar; ac_word=$2
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286 $as_echo_n "checking for $ac_word... " >&6; }
8287 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 case $aros_target_ar_ln in
8291 [\\/]* | ?:[\\/]*)
8292 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8306 done
8307 done
8308 IFS=$as_save_IFS
8311 esac
8313 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8314 if test -n "$aros_target_ar_ln"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8316 $as_echo "$aros_target_ar_ln" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8323 else
8324 if test "$GCC" = "yes"; then
8325 aros_gcc_ar=`$CC -print-prog-name=ar`
8326 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8327 set dummy `basename $aros_gcc_ar`; ac_word=$2
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329 $as_echo_n "checking for $ac_word... " >&6; }
8330 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8331 $as_echo_n "(cached) " >&6
8332 else
8333 case $aros_target_ar_ln in
8334 [\\/]* | ?:[\\/]*)
8335 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in `dirname $aros_gcc_ar`
8341 IFS=$as_save_IFS
8342 test -z "$as_dir" && as_dir=.
8343 for ac_exec_ext in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 break 2
8349 done
8350 done
8351 IFS=$as_save_IFS
8354 esac
8356 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8357 if test -n "$aros_target_ar_ln"; then
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8359 $as_echo "$aros_target_ar_ln" >&6; }
8360 else
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8362 $as_echo "no" >&6; }
8367 if test "$aros_target_ar_ln" = ""; then
8368 # Extract the first word of "ar", so it can be a program name with args.
8369 set dummy ar; ac_word=$2
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8371 $as_echo_n "checking for $ac_word... " >&6; }
8372 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 case $aros_target_ar_ln in
8376 [\\/]* | ?:[\\/]*)
8377 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8381 for as_dir in $PATH
8383 IFS=$as_save_IFS
8384 test -z "$as_dir" && as_dir=.
8385 for ac_exec_ext in '' $ac_executable_extensions; do
8386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8387 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8389 break 2
8391 done
8392 done
8393 IFS=$as_save_IFS
8396 esac
8398 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8399 if test -n "$aros_target_ar_ln"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8401 $as_echo "$aros_target_ar_ln" >&6; }
8402 else
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8410 else
8411 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8412 set dummy $aros_target_ar; ac_word=$2
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414 $as_echo_n "checking for $ac_word... " >&6; }
8415 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8416 $as_echo_n "(cached) " >&6
8417 else
8418 case $aros_target_ar_ln in
8419 [\\/]* | ?:[\\/]*)
8420 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8424 for as_dir in $PATH
8426 IFS=$as_save_IFS
8427 test -z "$as_dir" && as_dir=.
8428 for ac_exec_ext in '' $ac_executable_extensions; do
8429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8430 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8432 break 2
8434 done
8435 done
8436 IFS=$as_save_IFS
8439 esac
8441 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8442 if test -n "$aros_target_ar_ln"; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8444 $as_echo "$aros_target_ar_ln" >&6; }
8445 else
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8453 if test "$aros_target_ar_ln" = ""; then
8454 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8457 if test "$aros_target_nm" = ""; then
8458 if test "$cross_compiling" = "yes" ; then
8459 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8460 set dummy ${target_tool_prefix}nm; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 case $aros_target_nm_ln in
8467 [\\/]* | ?:[\\/]*)
8468 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 for as_dir in $PATH
8474 IFS=$as_save_IFS
8475 test -z "$as_dir" && as_dir=.
8476 for ac_exec_ext in '' $ac_executable_extensions; do
8477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8478 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 break 2
8482 done
8483 done
8484 IFS=$as_save_IFS
8487 esac
8489 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8490 if test -n "$aros_target_nm_ln"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8492 $as_echo "$aros_target_nm_ln" >&6; }
8493 else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8499 else
8500 if test "$GCC" = "yes"; then
8501 aros_gcc_nm=`$CC -print-prog-name=nm`
8502 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8503 set dummy `basename $aros_gcc_nm`; ac_word=$2
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8505 $as_echo_n "checking for $ac_word... " >&6; }
8506 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8507 $as_echo_n "(cached) " >&6
8508 else
8509 case $aros_target_nm_ln in
8510 [\\/]* | ?:[\\/]*)
8511 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in `dirname $aros_gcc_nm`
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8521 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8525 done
8526 done
8527 IFS=$as_save_IFS
8530 esac
8532 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8533 if test -n "$aros_target_nm_ln"; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8535 $as_echo "$aros_target_nm_ln" >&6; }
8536 else
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; }
8543 if test "$aros_target_nm_ln" = ""; then
8544 # Extract the first word of "nm", so it can be a program name with args.
8545 set dummy nm; ac_word=$2
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8547 $as_echo_n "checking for $ac_word... " >&6; }
8548 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 case $aros_target_nm_ln in
8552 [\\/]* | ?:[\\/]*)
8553 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8557 for as_dir in $PATH
8559 IFS=$as_save_IFS
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8563 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8565 break 2
8567 done
8568 done
8569 IFS=$as_save_IFS
8572 esac
8574 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8575 if test -n "$aros_target_nm_ln"; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8577 $as_echo "$aros_target_nm_ln" >&6; }
8578 else
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8580 $as_echo "no" >&6; }
8586 else
8587 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8588 set dummy $aros_target_nm; ac_word=$2
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8590 $as_echo_n "checking for $ac_word... " >&6; }
8591 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8592 $as_echo_n "(cached) " >&6
8593 else
8594 case $aros_target_nm_ln in
8595 [\\/]* | ?:[\\/]*)
8596 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8600 for as_dir in $PATH
8602 IFS=$as_save_IFS
8603 test -z "$as_dir" && as_dir=.
8604 for ac_exec_ext in '' $ac_executable_extensions; do
8605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8606 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8608 break 2
8610 done
8611 done
8612 IFS=$as_save_IFS
8615 esac
8617 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8618 if test -n "$aros_target_nm_ln"; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8620 $as_echo "$aros_target_nm_ln" >&6; }
8621 else
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8629 if test "$aros_target_nm_ln" = ""; then
8630 as_fn_error "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8633 if test "$aros_target_objcopy" = ""; then
8634 if test "$cross_compiling" = "yes" ; then
8635 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8636 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 case $aros_target_objcopy_ln in
8643 [\\/]* | ?:[\\/]*)
8644 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 for as_dir in $PATH
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 break 2
8658 done
8659 done
8660 IFS=$as_save_IFS
8663 esac
8665 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8666 if test -n "$aros_target_objcopy_ln"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8668 $as_echo "$aros_target_objcopy_ln" >&6; }
8669 else
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8675 else
8676 if test "$GCC" = "yes"; then
8677 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8678 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8679 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8681 $as_echo_n "checking for $ac_word... " >&6; }
8682 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 case $aros_target_objcopy_ln in
8686 [\\/]* | ?:[\\/]*)
8687 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8691 for as_dir in `dirname $aros_gcc_objcopy`
8693 IFS=$as_save_IFS
8694 test -z "$as_dir" && as_dir=.
8695 for ac_exec_ext in '' $ac_executable_extensions; do
8696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8697 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8699 break 2
8701 done
8702 done
8703 IFS=$as_save_IFS
8706 esac
8708 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8709 if test -n "$aros_target_objcopy_ln"; then
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8711 $as_echo "$aros_target_objcopy_ln" >&6; }
8712 else
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8714 $as_echo "no" >&6; }
8719 if test "$aros_target_objcopy_ln" = ""; then
8720 # Extract the first word of "objcopy", so it can be a program name with args.
8721 set dummy objcopy; ac_word=$2
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8723 $as_echo_n "checking for $ac_word... " >&6; }
8724 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8725 $as_echo_n "(cached) " >&6
8726 else
8727 case $aros_target_objcopy_ln in
8728 [\\/]* | ?:[\\/]*)
8729 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8733 for as_dir in $PATH
8735 IFS=$as_save_IFS
8736 test -z "$as_dir" && as_dir=.
8737 for ac_exec_ext in '' $ac_executable_extensions; do
8738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8739 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8740 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8741 break 2
8743 done
8744 done
8745 IFS=$as_save_IFS
8748 esac
8750 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8751 if test -n "$aros_target_objcopy_ln"; then
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8753 $as_echo "$aros_target_objcopy_ln" >&6; }
8754 else
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8756 $as_echo "no" >&6; }
8762 else
8763 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8764 set dummy $aros_target_objcopy; ac_word=$2
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766 $as_echo_n "checking for $ac_word... " >&6; }
8767 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8768 $as_echo_n "(cached) " >&6
8769 else
8770 case $aros_target_objcopy_ln in
8771 [\\/]* | ?:[\\/]*)
8772 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8776 for as_dir in $PATH
8778 IFS=$as_save_IFS
8779 test -z "$as_dir" && as_dir=.
8780 for ac_exec_ext in '' $ac_executable_extensions; do
8781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8782 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8784 break 2
8786 done
8787 done
8788 IFS=$as_save_IFS
8791 esac
8793 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8794 if test -n "$aros_target_objcopy_ln"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8796 $as_echo "$aros_target_objcopy_ln" >&6; }
8797 else
8798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8799 $as_echo "no" >&6; }
8805 if test "$aros_target_objcopy_ln" = ""; then
8806 as_fn_error "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
8809 if test "$aros_target_objdump" = ""; then
8810 if test "$cross_compiling" = "yes" ; then
8811 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
8812 set dummy ${target_tool_prefix}objdump; ac_word=$2
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814 $as_echo_n "checking for $ac_word... " >&6; }
8815 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 case $aros_target_objdump_ln in
8819 [\\/]* | ?:[\\/]*)
8820 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8830 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 break 2
8834 done
8835 done
8836 IFS=$as_save_IFS
8839 esac
8841 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8842 if test -n "$aros_target_objdump_ln"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8844 $as_echo "$aros_target_objdump_ln" >&6; }
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8851 else
8852 if test "$GCC" = "yes"; then
8853 aros_gcc_objdump=`$CC -print-prog-name=objdump`
8854 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
8855 set dummy `basename $aros_gcc_objdump`; ac_word=$2
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8857 $as_echo_n "checking for $ac_word... " >&6; }
8858 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8859 $as_echo_n "(cached) " >&6
8860 else
8861 case $aros_target_objdump_ln in
8862 [\\/]* | ?:[\\/]*)
8863 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8867 for as_dir in `dirname $aros_gcc_objdump`
8869 IFS=$as_save_IFS
8870 test -z "$as_dir" && as_dir=.
8871 for ac_exec_ext in '' $ac_executable_extensions; do
8872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8873 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8875 break 2
8877 done
8878 done
8879 IFS=$as_save_IFS
8882 esac
8884 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8885 if test -n "$aros_target_objdump_ln"; then
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8887 $as_echo "$aros_target_objdump_ln" >&6; }
8888 else
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8890 $as_echo "no" >&6; }
8895 if test "$aros_target_objdump_ln" = ""; then
8896 # Extract the first word of "objdump", so it can be a program name with args.
8897 set dummy objdump; ac_word=$2
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8899 $as_echo_n "checking for $ac_word... " >&6; }
8900 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8901 $as_echo_n "(cached) " >&6
8902 else
8903 case $aros_target_objdump_ln in
8904 [\\/]* | ?:[\\/]*)
8905 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 for as_dir in $PATH
8911 IFS=$as_save_IFS
8912 test -z "$as_dir" && as_dir=.
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8915 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 break 2
8919 done
8920 done
8921 IFS=$as_save_IFS
8924 esac
8926 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8927 if test -n "$aros_target_objdump_ln"; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8929 $as_echo "$aros_target_objdump_ln" >&6; }
8930 else
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8932 $as_echo "no" >&6; }
8938 else
8939 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
8940 set dummy $aros_target_objdump; ac_word=$2
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8942 $as_echo_n "checking for $ac_word... " >&6; }
8943 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8944 $as_echo_n "(cached) " >&6
8945 else
8946 case $aros_target_objdump_ln in
8947 [\\/]* | ?:[\\/]*)
8948 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8952 for as_dir in $PATH
8954 IFS=$as_save_IFS
8955 test -z "$as_dir" && as_dir=.
8956 for ac_exec_ext in '' $ac_executable_extensions; do
8957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8958 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8960 break 2
8962 done
8963 done
8964 IFS=$as_save_IFS
8967 esac
8969 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8970 if test -n "$aros_target_objdump_ln"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8972 $as_echo "$aros_target_objdump_ln" >&6; }
8973 else
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8975 $as_echo "no" >&6; }
8981 if test "$aros_target_objdump_ln" = ""; then
8982 as_fn_error "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
8985 if test "$aros_target_ranlib" = ""; then
8986 if test "$cross_compiling" = "yes" ; then
8987 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8988 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 $as_echo_n "checking for $ac_word... " >&6; }
8991 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 case $aros_target_ranlib_ln in
8995 [\\/]* | ?:[\\/]*)
8996 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000 for as_dir in $PATH
9002 IFS=$as_save_IFS
9003 test -z "$as_dir" && as_dir=.
9004 for ac_exec_ext in '' $ac_executable_extensions; do
9005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9006 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9008 break 2
9010 done
9011 done
9012 IFS=$as_save_IFS
9015 esac
9017 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9018 if test -n "$aros_target_ranlib_ln"; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9020 $as_echo "$aros_target_ranlib_ln" >&6; }
9021 else
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 $as_echo "no" >&6; }
9027 else
9028 if test "$GCC" = "yes"; then
9029 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9030 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9031 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9033 $as_echo_n "checking for $ac_word... " >&6; }
9034 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9035 $as_echo_n "(cached) " >&6
9036 else
9037 case $aros_target_ranlib_ln in
9038 [\\/]* | ?:[\\/]*)
9039 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9043 for as_dir in `dirname $aros_gcc_ranlib`
9045 IFS=$as_save_IFS
9046 test -z "$as_dir" && as_dir=.
9047 for ac_exec_ext in '' $ac_executable_extensions; do
9048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9049 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9051 break 2
9053 done
9054 done
9055 IFS=$as_save_IFS
9058 esac
9060 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9061 if test -n "$aros_target_ranlib_ln"; then
9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9063 $as_echo "$aros_target_ranlib_ln" >&6; }
9064 else
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9066 $as_echo "no" >&6; }
9071 if test "$aros_target_ranlib_ln" = ""; then
9072 # Extract the first word of "ranlib", so it can be a program name with args.
9073 set dummy ranlib; ac_word=$2
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9075 $as_echo_n "checking for $ac_word... " >&6; }
9076 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9077 $as_echo_n "(cached) " >&6
9078 else
9079 case $aros_target_ranlib_ln in
9080 [\\/]* | ?:[\\/]*)
9081 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9085 for as_dir in $PATH
9087 IFS=$as_save_IFS
9088 test -z "$as_dir" && as_dir=.
9089 for ac_exec_ext in '' $ac_executable_extensions; do
9090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9091 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9093 break 2
9095 done
9096 done
9097 IFS=$as_save_IFS
9100 esac
9102 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9103 if test -n "$aros_target_ranlib_ln"; then
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9105 $as_echo "$aros_target_ranlib_ln" >&6; }
9106 else
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108 $as_echo "no" >&6; }
9114 else
9115 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9116 set dummy $aros_target_ranlib; ac_word=$2
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9118 $as_echo_n "checking for $ac_word... " >&6; }
9119 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9120 $as_echo_n "(cached) " >&6
9121 else
9122 case $aros_target_ranlib_ln in
9123 [\\/]* | ?:[\\/]*)
9124 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128 for as_dir in $PATH
9130 IFS=$as_save_IFS
9131 test -z "$as_dir" && as_dir=.
9132 for ac_exec_ext in '' $ac_executable_extensions; do
9133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9134 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9136 break 2
9138 done
9139 done
9140 IFS=$as_save_IFS
9143 esac
9145 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9146 if test -n "$aros_target_ranlib_ln"; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9148 $as_echo "$aros_target_ranlib_ln" >&6; }
9149 else
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151 $as_echo "no" >&6; }
9157 if test "$aros_target_ranlib_ln" = ""; then
9158 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9161 if test "$aros_target_strip" = ""; then
9162 if test "$cross_compiling" = "yes" ; then
9163 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9164 set dummy ${target_tool_prefix}strip; ac_word=$2
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166 $as_echo_n "checking for $ac_word... " >&6; }
9167 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9169 else
9170 case $aros_target_strip_ln in
9171 [\\/]* | ?:[\\/]*)
9172 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176 for as_dir in $PATH
9178 IFS=$as_save_IFS
9179 test -z "$as_dir" && as_dir=.
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9182 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9184 break 2
9186 done
9187 done
9188 IFS=$as_save_IFS
9191 esac
9193 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9194 if test -n "$aros_target_strip_ln"; then
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9196 $as_echo "$aros_target_strip_ln" >&6; }
9197 else
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199 $as_echo "no" >&6; }
9203 else
9204 if test "$GCC" = "yes"; then
9205 aros_gcc_strip=`$CC -print-prog-name=strip`
9206 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9207 set dummy `basename $aros_gcc_strip`; ac_word=$2
9208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9209 $as_echo_n "checking for $ac_word... " >&6; }
9210 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9211 $as_echo_n "(cached) " >&6
9212 else
9213 case $aros_target_strip_ln in
9214 [\\/]* | ?:[\\/]*)
9215 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9219 for as_dir in `dirname $aros_gcc_strip`
9221 IFS=$as_save_IFS
9222 test -z "$as_dir" && as_dir=.
9223 for ac_exec_ext in '' $ac_executable_extensions; do
9224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9225 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9227 break 2
9229 done
9230 done
9231 IFS=$as_save_IFS
9234 esac
9236 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9237 if test -n "$aros_target_strip_ln"; then
9238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9239 $as_echo "$aros_target_strip_ln" >&6; }
9240 else
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9242 $as_echo "no" >&6; }
9247 if test "$aros_target_strip_ln" = ""; then
9248 # Extract the first word of "strip", so it can be a program name with args.
9249 set dummy strip; ac_word=$2
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9251 $as_echo_n "checking for $ac_word... " >&6; }
9252 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 case $aros_target_strip_ln in
9256 [\\/]* | ?:[\\/]*)
9257 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261 for as_dir in $PATH
9263 IFS=$as_save_IFS
9264 test -z "$as_dir" && as_dir=.
9265 for ac_exec_ext in '' $ac_executable_extensions; do
9266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9267 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9269 break 2
9271 done
9272 done
9273 IFS=$as_save_IFS
9276 esac
9278 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9279 if test -n "$aros_target_strip_ln"; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9281 $as_echo "$aros_target_strip_ln" >&6; }
9282 else
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284 $as_echo "no" >&6; }
9290 else
9291 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9292 set dummy $aros_target_strip; ac_word=$2
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9294 $as_echo_n "checking for $ac_word... " >&6; }
9295 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9296 $as_echo_n "(cached) " >&6
9297 else
9298 case $aros_target_strip_ln in
9299 [\\/]* | ?:[\\/]*)
9300 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9304 for as_dir in $PATH
9306 IFS=$as_save_IFS
9307 test -z "$as_dir" && as_dir=.
9308 for ac_exec_ext in '' $ac_executable_extensions; do
9309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9310 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9312 break 2
9314 done
9315 done
9316 IFS=$as_save_IFS
9319 esac
9321 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9322 if test -n "$aros_target_strip_ln"; then
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9324 $as_echo "$aros_target_strip_ln" >&6; }
9325 else
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9327 $as_echo "no" >&6; }
9333 if test "$aros_target_strip_ln" = ""; then
9334 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9336 if test "$aros_target_cxx" != ""; then
9337 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9338 set dummy $aros_target_cxx; ac_word=$2
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9340 $as_echo_n "checking for $ac_word... " >&6; }
9341 if test "${ac_cv_path_aros_target_cxx+set}" = set; then :
9342 $as_echo_n "(cached) " >&6
9343 else
9344 case $aros_target_cxx in
9345 [\\/]* | ?:[\\/]*)
9346 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
9349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350 for as_dir in $PATH
9352 IFS=$as_save_IFS
9353 test -z "$as_dir" && as_dir=.
9354 for ac_exec_ext in '' $ac_executable_extensions; do
9355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9356 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
9357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 break 2
9360 done
9361 done
9362 IFS=$as_save_IFS
9365 esac
9367 aros_target_cxx=$ac_cv_path_aros_target_cxx
9368 if test -n "$aros_target_cxx"; then
9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
9370 $as_echo "$aros_target_cxx" >&6; }
9371 else
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9373 $as_echo "no" >&6; }
9377 # Temporarily disabled in order to let Mingw32-hosted nightly build to work
9378 # AROS_REQUIRED(c++,$aros_target_cxx)
9380 else
9381 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
9382 aros_target_cxx=""
9385 # Build crosstools if we have no C++ - temporary thing
9386 if test "$aros_target_cxx" = ""; then
9387 crosstools_target=tools-crosstools
9390 if test "$rescomp" != ""; then
9391 if test "$cross_compiling" = "yes" ; then
9392 rescomp=${target_tool_prefix}${rescomp}
9394 # Extract the first word of "$rescomp", so it can be a program name with args.
9395 set dummy $rescomp; ac_word=$2
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9397 $as_echo_n "checking for $ac_word... " >&6; }
9398 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
9399 $as_echo_n "(cached) " >&6
9400 else
9401 case $aros_kernel_rescomp in
9402 [\\/]* | ?:[\\/]*)
9403 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
9406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9407 for as_dir in $PATH
9409 IFS=$as_save_IFS
9410 test -z "$as_dir" && as_dir=.
9411 for ac_exec_ext in '' $ac_executable_extensions; do
9412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9413 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
9414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9415 break 2
9417 done
9418 done
9419 IFS=$as_save_IFS
9422 esac
9424 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
9425 if test -n "$aros_kernel_rescomp"; then
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
9427 $as_echo "$aros_kernel_rescomp" >&6; }
9428 else
9429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9430 $as_echo "no" >&6; }
9434 if test "$aros_kernel_rescomp" = ""; then
9435 as_fn_error "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
9439 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9440 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9441 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9442 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9443 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9444 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9445 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9447 # aros_cc_pre is a variable that is added to the front of the compiler name
9448 # in the generated aros-gcc shell script. We need this to enable the cache
9449 # to work across cleaned builds. Also, support DISTCC using the correct
9450 # environment variable.
9453 if test "x${DISTCC}" != "x" ; then
9454 if test "x${CCACHE}" != "x" ; then
9455 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9456 else
9457 aros_cc_pre="${DISTCC} "
9459 else
9460 if test "x${CCACHE}" != "x" ; then
9461 aros_cc_pre="${CCACHE} "
9465 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9467 aros_target_nostdinc_cflags=-nostdinc
9469 aros_target_nostartup_ldflags=-nostartfiles
9471 aros_target_nix_ldflags=-nix
9473 aros_target_detach_ldflags=-detach
9475 aros_target_nostdlib_ldflags=-nostdlib
9478 # Target tools
9479 if test "$aros_target_cc" = ""; then
9480 orig_target_cc=$aros_kernel_cc
9481 else
9482 orig_target_cc=$aros_target_cc
9484 if test "$aros_target_ld" = ""; then
9485 orig_target_ld=$aros_kernel_ld
9486 else
9487 orig_target_ld=$aros_target_ld
9489 if test "$GCC" = "yes"; then
9490 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9492 aros_target_cc="${prefix}-gcc"
9493 aros_target_as="${prefix}-as"
9494 aros_target_ld="${prefix}-ld"
9495 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9496 aros_target_objcopy=${prefix}-objcopy
9497 aros_target_objdump=${prefix}-objdump
9498 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9499 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9500 aros_kernel_nm="${prefix}-nm"
9501 aros_target_strip=${prefix}-strip
9503 # Find the system include path. We can suggest that an alternative is
9504 # used if we don't get it correct. The default is to use /usr/include.
9505 # Which is set in the aros_target_incl_def variable.
9507 # Check whether --enable-includes was given.
9508 if test "${enable_includes+set}" = set; then :
9509 enableval=$enable_includes; aros_target_incl=$enable_includes
9510 else
9511 aros_target_incl=$aros_target_incl_def
9515 if test "$aros_kernel_includes" != "" ; then
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
9517 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
9518 if test "$aros_kernel_cc_includes" = "" ; then
9519 # Try to guess where the directory is.
9520 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
9521 if ! test -d $aros_kernel_cc_includes; then
9522 # The directory doesn't exist, we need to do some more work.
9523 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
9525 # These are the headers we're looking for.
9526 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9527 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9528 zutil.h"
9530 dirs=
9531 for h in $headers; do
9532 # Which other headers are needed by each of the above?
9533 deps=$(echo "#include <$h>" | \
9534 $aros_kernel_cc -E -M - 2>/dev/null | \
9535 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9537 # Copy all the needed headers to a directory beneath gendir.
9538 for d in $deps; do
9539 h=$(basename $d)
9540 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
9541 sed -n "s,^.*/include\(/.*\),\1,p")
9542 ! test -d $dir && mkdir -p $dir
9543 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9544 done
9545 done
9548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
9549 $as_echo "$aros_kernel_cc_includes" >&6; }
9550 # Adding -nostdinc to kernel includes as they are always used together.
9551 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9555 $as_echo_n "checking for the target compiler's include path... " >&6; }
9556 if test "$aros_target_cc_includes" = "" ; then
9557 #try to guess where the directory is
9558 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
9559 if ! test -d $aros_target_cc_includes; then
9560 #the directory doesn't exist, we need to do some more work
9561 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9563 #these are the headers we're looling for
9564 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9565 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9566 zutil.h"
9568 dirs=
9569 for h in $headers; do
9570 #which other headers each of the above headers needs?
9571 deps=$(echo "#include <$h>" | \
9572 $orig_target_cc -E -M - 2>/dev/null | \
9573 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9575 #copy all the needed headers to a directory beneath gendir
9576 for d in $deps; do
9577 h=$(basename $d)
9578 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9579 sed -n "s,^.*/include\(/.*\),\1,p")
9580 ! test -d $dir && mkdir -p $dir
9581 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9582 done
9583 done
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9587 $as_echo "$aros_target_cc_includes" >&6; }
9590 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9591 # On GCC >= 4.0 -iquote should be used
9594 save_cc="$CC"
9595 save_cflags="$CFLAGS"
9596 CFLAGS="-iquote."
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9598 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9600 /* end confdefs.h. */
9603 main ()
9607 return 0;
9609 _ACEOF
9610 if ac_fn_c_try_compile "$LINENO"; then :
9611 has_iquote="yes"
9612 else
9613 has_iquote="no"
9615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9617 $as_echo "$has_iquote" >&6; }
9618 if test "x-$has_iquote" = "x-yes" ; then
9619 host_cflags_iquote=-iquote
9620 host_cflags_iquote_end=
9621 else
9622 host_cflags_iquote=-I
9623 host_cflags_iquote_end=-I-
9625 kernel_cflags_iquote=$host_cflags_iquote
9626 kernel_cflags_iquote_end=$host_cflags_iquote_end
9627 if test "x-$cross_compiling" = "x-yes"; then
9628 CC="$aros_kernel_cc"
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9630 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9632 /* end confdefs.h. */
9635 main ()
9639 return 0;
9641 _ACEOF
9642 if ac_fn_c_try_compile "$LINENO"; then :
9643 use_no_stack_protector="yes"
9644 else
9645 use_no_stack_protector="no"
9647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9649 $as_echo "$use_no_stack_protector" >&6; }
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9651 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9656 main ()
9660 return 0;
9662 _ACEOF
9663 if ac_fn_c_try_compile "$LINENO"; then :
9664 has_iquote="yes"
9665 else
9666 has_iquote="no"
9668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9670 $as_echo "$has_iquote" >&6; }
9671 if test "x-$has_iquote" = "x-yes" ; then
9672 kernel_cflags_iquote=-iquote
9673 kernel_cflags_iquote_end=
9674 else
9675 kernel_cflags_iquote=-I
9676 kernel_cflags_iquote_end=-I-
9679 aros_cflags_iquote=$kernel_cflags_iquote
9680 aros_cflags_iquote_end=$kernel_cflags_iquote_end
9681 if test "$orig_target_cc" != "$aros_kernel_cc"; then
9682 CC="$orig_target_cc"
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9684 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686 /* end confdefs.h. */
9689 main ()
9693 return 0;
9695 _ACEOF
9696 if ac_fn_c_try_compile "$LINENO"; then :
9697 has_iquote="yes"
9698 else
9699 has_iquote="no"
9701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9703 $as_echo "$has_iquote" >&6; }
9704 if test "x-$has_iquote" = "x-yes" ; then
9705 aros_cflags_iquote=-iquote
9706 aros_cflags_iquote_end=
9707 else
9708 aros_cflags_iquote=-I
9709 aros_cflags_iquote_end=-I-
9712 if test "x-$use_no_stack_protector" = "x-yes" ; then
9713 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
9716 #-----------------------------------------------------------------------------
9718 # Check if we can explicitly choose older version of symbol hashing
9720 CFLAGS="save_cflags -Wl,--hash-style=sysv"
9721 CC="$aros_kernel_cc"
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
9723 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
9724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9725 /* end confdefs.h. */
9728 main ()
9732 return 0;
9734 _ACEOF
9735 if ac_fn_c_try_link "$LINENO"; then :
9736 use_hash_style="yes"
9737 else
9738 use_hash_style="no"
9740 rm -f core conftest.err conftest.$ac_objext \
9741 conftest$ac_exeext conftest.$ac_ext
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
9743 $as_echo "$use_hash_style" >&6; }
9744 if test "x-$use_hash_style" = "x-yes" ; then
9745 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
9747 CC="$save_cc"
9748 CFLAGS="$save_cflags"
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
9759 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
9761 # Check whether --with-resolution was given.
9762 if test "${with_resolution+set}" = set; then :
9763 withval=$with_resolution; resolution=$withval
9764 else
9765 resolution=none
9768 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9769 if test "$resolution" = "yes" ; then
9770 resolution="none"
9772 if test "$resolution" = "no" ; then
9773 resolution="none"
9775 if test "$resolution" != "none" ; then
9776 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9777 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9778 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9781 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
9782 aros_cv_default_wbwidth=$aros_default_wbwidth
9783 aros_cv_default_wbheight=$aros_default_wbheight
9784 aros_cv_default_wbdepth=$aros_default_wbdepth
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
9787 $as_echo_n "checking if serial debug is enabled... " >&6; }
9789 # Check whether --with-serial-debug was given.
9790 if test "${with_serial_debug+set}" = set; then :
9791 withval=$with_serial_debug; serial_debug=$withval
9792 else
9793 serial_debug=none
9796 if test "$aros_serial_debug" = 0 ; then
9797 serial_debug_forced=""
9798 if test "$serial_debug" = "yes" ; then
9799 serial_debug="2"
9801 if test "$serial_debug" = "no" ; then
9802 serial_debug="none"
9804 else
9805 serial_debug_forced="(forced)"
9806 serial_debug=$aros_serial_debug
9808 if test "$serial_debug" != "none" ; then
9809 aros_serial_debug=$serial_debug
9810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
9811 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
9812 else
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9814 $as_echo "no" >&6; }
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
9818 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
9819 # Check whether --enable-palm_debug_hack was given.
9820 if test "${enable_palm_debug_hack+set}" = set; then :
9821 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
9822 else
9823 palm_debug_hack="no"
9826 if test "$palm_debug_hack" = "yes" ; then
9827 aros_palm_debug_hack="1"
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
9830 $as_echo "$palm_debug_hack" >&6; }
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
9834 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
9835 # Check whether --enable-nesting_supervisor was given.
9836 if test "${enable_nesting_supervisor+set}" = set; then :
9837 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
9838 else
9839 nesting_supervisor="no"
9842 if test "$nesting_supervisor" = "yes" ; then
9843 aros_nesting_supervisor="1"
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
9846 $as_echo "$nesting_supervisor" >&6; }
9849 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9851 if test "x-$need_dlopen" != "x-no" ; then
9852 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9853 if test "x$ac_cv_func_dlopen" = x""yes; then :
9854 have_dl="yes"
9855 else
9856 have_dl="no"
9859 if test "x-$have_dl" = "x-no" ; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9861 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9862 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9863 $as_echo_n "(cached) " >&6
9864 else
9865 ac_check_lib_save_LIBS=$LIBS
9866 LIBS="-ldl $LIBS"
9867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9868 /* end confdefs.h. */
9870 /* Override any GCC internal prototype to avoid an error.
9871 Use char because int might match the return type of a GCC
9872 builtin and then its argument prototype would still apply. */
9873 #ifdef __cplusplus
9874 extern "C"
9875 #endif
9876 char dlopen ();
9878 main ()
9880 return dlopen ();
9882 return 0;
9884 _ACEOF
9885 if ac_fn_c_try_link "$LINENO"; then :
9886 ac_cv_lib_dl_dlopen=yes
9887 else
9888 ac_cv_lib_dl_dlopen=no
9890 rm -f core conftest.err conftest.$ac_objext \
9891 conftest$ac_exeext conftest.$ac_ext
9892 LIBS=$ac_check_lib_save_LIBS
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9895 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9896 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9897 have_dl="yes"
9898 aros_host_ldflags="$aros_host_ldflags -ldl"
9899 else
9900 have_dl="no"
9904 if test "x-$have_dl" = "x-no" ; then
9905 as_fn_error "dlopen() dynamic linker functions not available" "$LINENO" 5
9910 # Check whether --enable-x11_hidd was given.
9911 if test "${enable_x11_hidd+set}" = set; then :
9912 enableval=$enable_x11_hidd; x11_hidd="$enableval"
9913 else
9914 x11_hidd="auto"
9917 case "x-$x11_hidd" in
9918 x-yes|x-no|x-auto) ;;
9919 *) x11_hidd="auto" ;;
9920 esac
9922 ENABLE_X11=0
9924 if test "x-$x11_hidd" != "x-no" ; then
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9927 $as_echo_n "checking for X... " >&6; }
9930 # Check whether --with-x was given.
9931 if test "${with_x+set}" = set; then :
9932 withval=$with_x;
9935 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9936 if test "x$with_x" = xno; then
9937 # The user explicitly disabled X.
9938 have_x=disabled
9939 else
9940 case $x_includes,$x_libraries in #(
9941 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9942 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9943 $as_echo_n "(cached) " >&6
9944 else
9945 # One or both of the vars are not set, and there is no cached value.
9946 ac_x_includes=no ac_x_libraries=no
9947 rm -f -r conftest.dir
9948 if mkdir conftest.dir; then
9949 cd conftest.dir
9950 cat >Imakefile <<'_ACEOF'
9951 incroot:
9952 @echo incroot='${INCROOT}'
9953 usrlibdir:
9954 @echo usrlibdir='${USRLIBDIR}'
9955 libdir:
9956 @echo libdir='${LIBDIR}'
9957 _ACEOF
9958 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9959 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9960 for ac_var in incroot usrlibdir libdir; do
9961 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9962 done
9963 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9964 for ac_extension in a so sl dylib la dll; do
9965 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9966 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9967 ac_im_usrlibdir=$ac_im_libdir; break
9969 done
9970 # Screen out bogus values from the imake configuration. They are
9971 # bogus both because they are the default anyway, and because
9972 # using them would break gcc on systems where it needs fixed includes.
9973 case $ac_im_incroot in
9974 /usr/include) ac_x_includes= ;;
9975 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9976 esac
9977 case $ac_im_usrlibdir in
9978 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9979 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9980 esac
9982 cd ..
9983 rm -f -r conftest.dir
9986 # Standard set of common directories for X headers.
9987 # Check X11 before X11Rn because it is often a symlink to the current release.
9988 ac_x_header_dirs='
9989 /usr/X11/include
9990 /usr/X11R7/include
9991 /usr/X11R6/include
9992 /usr/X11R5/include
9993 /usr/X11R4/include
9995 /usr/include/X11
9996 /usr/include/X11R7
9997 /usr/include/X11R6
9998 /usr/include/X11R5
9999 /usr/include/X11R4
10001 /usr/local/X11/include
10002 /usr/local/X11R7/include
10003 /usr/local/X11R6/include
10004 /usr/local/X11R5/include
10005 /usr/local/X11R4/include
10007 /usr/local/include/X11
10008 /usr/local/include/X11R7
10009 /usr/local/include/X11R6
10010 /usr/local/include/X11R5
10011 /usr/local/include/X11R4
10013 /usr/X386/include
10014 /usr/x386/include
10015 /usr/XFree86/include/X11
10017 /usr/include
10018 /usr/local/include
10019 /usr/unsupported/include
10020 /usr/athena/include
10021 /usr/local/x11r5/include
10022 /usr/lpp/Xamples/include
10024 /usr/openwin/include
10025 /usr/openwin/share/include'
10027 if test "$ac_x_includes" = no; then
10028 # Guess where to find include files, by looking for Xlib.h.
10029 # First, try using that file with no special directory specified.
10030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10031 /* end confdefs.h. */
10032 #include <X11/Xlib.h>
10033 _ACEOF
10034 if ac_fn_c_try_cpp "$LINENO"; then :
10035 # We can compile using X headers with no special include directory.
10036 ac_x_includes=
10037 else
10038 for ac_dir in $ac_x_header_dirs; do
10039 if test -r "$ac_dir/X11/Xlib.h"; then
10040 ac_x_includes=$ac_dir
10041 break
10043 done
10045 rm -f conftest.err conftest.$ac_ext
10046 fi # $ac_x_includes = no
10048 if test "$ac_x_libraries" = no; then
10049 # Check for the libraries.
10050 # See if we find them without any special options.
10051 # Don't add to $LIBS permanently.
10052 ac_save_LIBS=$LIBS
10053 LIBS="-lX11 $LIBS"
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10056 #include <X11/Xlib.h>
10058 main ()
10060 XrmInitialize ()
10062 return 0;
10064 _ACEOF
10065 if ac_fn_c_try_link "$LINENO"; then :
10066 LIBS=$ac_save_LIBS
10067 # We can link X programs with no special library path.
10068 ac_x_libraries=
10069 else
10070 LIBS=$ac_save_LIBS
10071 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10073 # Don't even attempt the hair of trying to link an X program!
10074 for ac_extension in a so sl dylib la dll; do
10075 if test -r "$ac_dir/libX11.$ac_extension"; then
10076 ac_x_libraries=$ac_dir
10077 break 2
10079 done
10080 done
10082 rm -f core conftest.err conftest.$ac_objext \
10083 conftest$ac_exeext conftest.$ac_ext
10084 fi # $ac_x_libraries = no
10086 case $ac_x_includes,$ac_x_libraries in #(
10087 no,* | *,no | *\'*)
10088 # Didn't find X, or a directory has "'" in its name.
10089 ac_cv_have_x="have_x=no";; #(
10091 # Record where we found X for the cache.
10092 ac_cv_have_x="have_x=yes\
10093 ac_x_includes='$ac_x_includes'\
10094 ac_x_libraries='$ac_x_libraries'"
10095 esac
10097 ;; #(
10098 *) have_x=yes;;
10099 esac
10100 eval "$ac_cv_have_x"
10101 fi # $with_x != no
10103 if test "$have_x" != yes; then
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10105 $as_echo "$have_x" >&6; }
10106 no_x=yes
10107 else
10108 # If each of the values was on the command line, it overrides each guess.
10109 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10110 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10111 # Update the cache value to reflect the command line values.
10112 ac_cv_have_x="have_x=yes\
10113 ac_x_includes='$x_includes'\
10114 ac_x_libraries='$x_libraries'"
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10116 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10120 x_cflags=
10121 for path in $x_libraries
10123 x_cflags="$x_cflags -L$path"
10124 done
10126 for path in $x_includes
10128 x_cflags="$x_cflags -I$path"
10129 done
10131 if test "x-$no_x" = "x-yes" ; then
10133 if test "x-$x11_hidd" != "x-auto" ; then
10134 as_fn_error "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10137 else
10138 x11_hidd_target=kernel-x11gfx-kobj
10139 ENABLE_X11=1
10141 # Check whether --enable-x11_shm was given.
10142 if test "${enable_x11_shm+set}" = set; then :
10143 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10144 else
10145 x11_hidd_shm="auto"
10148 case "x-$x11_hidd_shm" in
10149 x-yes|x-no|x-auto) ;;
10150 *) x11_hidd_shm="auto" ;;
10151 esac
10153 have_xshm=no
10155 if test "x-$x11_hidd_shm" != "x-no" ; then
10157 for ac_header in sys/ipc.h
10158 do :
10159 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10160 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
10161 cat >>confdefs.h <<_ACEOF
10162 #define HAVE_SYS_IPC_H 1
10163 _ACEOF
10167 done
10169 for ac_header in sys/shm.h
10170 do :
10171 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10172 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
10173 cat >>confdefs.h <<_ACEOF
10174 #define HAVE_SYS_SHM_H 1
10175 _ACEOF
10179 done
10182 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10184 save_cflags="$CFLAGS"
10185 CFLAGS="$CFLAGS $x_cflags"
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10187 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10188 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
10189 $as_echo_n "(cached) " >&6
10190 else
10191 ac_check_lib_save_LIBS=$LIBS
10192 LIBS="-lXext $LIBS"
10193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10194 /* end confdefs.h. */
10196 /* Override any GCC internal prototype to avoid an error.
10197 Use char because int might match the return type of a GCC
10198 builtin and then its argument prototype would still apply. */
10199 #ifdef __cplusplus
10200 extern "C"
10201 #endif
10202 char XShmQueryExtension ();
10204 main ()
10206 return XShmQueryExtension ();
10208 return 0;
10210 _ACEOF
10211 if ac_fn_c_try_link "$LINENO"; then :
10212 ac_cv_lib_Xext_XShmQueryExtension=yes
10213 else
10214 ac_cv_lib_Xext_XShmQueryExtension=no
10216 rm -f core conftest.err conftest.$ac_objext \
10217 conftest$ac_exeext conftest.$ac_ext
10218 LIBS=$ac_check_lib_save_LIBS
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10221 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10222 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
10223 have_xshm=yes
10226 CFLAGS="$save_cflags"
10230 if test "x-$have_xshm" = "x-yes" ; then
10231 DO_XSHM_SUPPORT="1"
10232 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10233 as_fn_error "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10234 else
10235 DO_XSHM_SUPPORT="0"
10239 # Check whether --enable-x11_vidmode was given.
10240 if test "${enable_x11_vidmode+set}" = set; then :
10241 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10242 else
10243 x11_hidd_vidmode="auto"
10246 case "x-$x11_hidd_vidmode" in
10247 x-yes|x-no|x-auto) ;;
10248 *) x11_hidd_vidmode="auto" ;;
10249 esac
10251 have_vidmode=no
10253 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10255 save_cflags="$CFLAGS"
10256 CFLAGS="$CFLAGS $x_cflags"
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10258 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10259 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 ac_check_lib_save_LIBS=$LIBS
10263 LIBS="-lXxf86vm $LIBS"
10264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10265 /* end confdefs.h. */
10267 /* Override any GCC internal prototype to avoid an error.
10268 Use char because int might match the return type of a GCC
10269 builtin and then its argument prototype would still apply. */
10270 #ifdef __cplusplus
10271 extern "C"
10272 #endif
10273 char XF86VidModeQueryExtension ();
10275 main ()
10277 return XF86VidModeQueryExtension ();
10279 return 0;
10281 _ACEOF
10282 if ac_fn_c_try_link "$LINENO"; then :
10283 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10284 else
10285 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10287 rm -f core conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
10289 LIBS=$ac_check_lib_save_LIBS
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10292 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10293 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
10294 have_vidmode=yes
10297 CFLAGS="$save_cflags"
10300 if test "x-$have_vidmode" = "x-yes" ; then
10301 DO_VIDMODE_SUPPORT="1"
10302 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10303 as_fn_error "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10304 else
10305 DO_VIDMODE_SUPPORT="0"
10309 aros_host_x11_includes=$x_includes
10310 aros_host_x11_libdirs=$x_libraries
10314 # Check whether --enable-sdl_hidd was given.
10315 if test "${enable_sdl_hidd+set}" = set; then :
10316 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10317 else
10318 sdl_hidd="auto"
10321 case "x-$sdl_hidd" in
10322 x-yes|x-no|x-auto) ;;
10323 *) sdl_hidd="auto" ;;
10324 esac
10326 if test "x-$sdl_hidd" != "x-no" ; then
10329 # Check whether --with-sdl-prefix was given.
10330 if test "${with_sdl_prefix+set}" = set; then :
10331 withval=$with_sdl_prefix; sdl_prefix="$withval"
10332 else
10333 sdl_prefix=""
10337 # Check whether --with-sdl-exec-prefix was given.
10338 if test "${with_sdl_exec_prefix+set}" = set; then :
10339 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10340 else
10341 sdl_exec_prefix=""
10344 # Check whether --enable-sdltest was given.
10345 if test "${enable_sdltest+set}" = set; then :
10346 enableval=$enable_sdltest;
10347 else
10348 enable_sdltest=yes
10352 if test x$sdl_exec_prefix != x ; then
10353 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10354 if test x${SDL_CONFIG+set} != xset ; then
10355 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10358 if test x$sdl_prefix != x ; then
10359 sdl_args="$sdl_args --prefix=$sdl_prefix"
10360 if test x${SDL_CONFIG+set} != xset ; then
10361 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10365 if test "x$prefix" != xNONE; then
10366 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10368 # Extract the first word of "sdl-config", so it can be a program name with args.
10369 set dummy sdl-config; ac_word=$2
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10371 $as_echo_n "checking for $ac_word... " >&6; }
10372 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
10373 $as_echo_n "(cached) " >&6
10374 else
10375 case $SDL_CONFIG in
10376 [\\/]* | ?:[\\/]*)
10377 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381 for as_dir in $PATH
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 break 2
10391 done
10392 done
10393 IFS=$as_save_IFS
10395 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10397 esac
10399 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10400 if test -n "$SDL_CONFIG"; then
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10402 $as_echo "$SDL_CONFIG" >&6; }
10403 else
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10405 $as_echo "no" >&6; }
10409 min_sdl_version=1.2.10
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10411 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10412 no_sdl=""
10413 if test "$SDL_CONFIG" = "no" ; then
10414 no_sdl=yes
10415 else
10416 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10417 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10419 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10420 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10421 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10422 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10423 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10424 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10425 if test "x$enable_sdltest" = "xyes" ; then
10426 ac_save_CFLAGS="$CFLAGS"
10427 ac_save_CXXFLAGS="$CXXFLAGS"
10428 ac_save_LIBS="$LIBS"
10429 CFLAGS="$CFLAGS $SDL_CFLAGS"
10430 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10431 LIBS="$LIBS $SDL_LIBS"
10432 rm -f conf.sdltest
10433 if test "$cross_compiling" = yes; then :
10434 echo $ac_n "cross compiling; assumed OK... $ac_c"
10435 else
10436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10437 /* end confdefs.h. */
10439 #include <stdio.h>
10440 #include <stdlib.h>
10441 #include <string.h>
10442 #include "SDL.h"
10444 char*
10445 my_strdup (char *str)
10447 char *new_str;
10449 if (str)
10451 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10452 strcpy (new_str, str);
10454 else
10455 new_str = NULL;
10457 return new_str;
10460 int main (int argc, char *argv[])
10462 int major, minor, micro;
10463 char *tmp_version;
10465 /* This hangs on some systems (?)
10466 system ("touch conf.sdltest");
10468 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10470 /* HP/UX 9 (%@#!) writes to sscanf strings */
10471 tmp_version = my_strdup("$min_sdl_version");
10472 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10473 printf("%s, bad version string\n", "$min_sdl_version");
10474 exit(1);
10477 if (($sdl_major_version > major) ||
10478 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10479 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10481 return 0;
10483 else
10485 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10486 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10487 printf("*** best to upgrade to the required version.\n");
10488 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10489 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10490 printf("*** config.cache before re-running configure\n");
10491 return 1;
10496 _ACEOF
10497 if ac_fn_c_try_run "$LINENO"; then :
10499 else
10500 no_sdl=yes
10502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10503 conftest.$ac_objext conftest.beam conftest.$ac_ext
10506 CFLAGS="$ac_save_CFLAGS"
10507 CXXFLAGS="$ac_save_CXXFLAGS"
10508 LIBS="$ac_save_LIBS"
10511 if test "x$no_sdl" = x ; then
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10513 $as_echo "yes" >&6; }
10514 have_sdl="yes"
10515 else
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10518 if test "$SDL_CONFIG" = "no" ; then
10519 echo "*** The sdl-config script installed by SDL could not be found"
10520 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10521 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10522 echo "*** full path to sdl-config."
10523 else
10524 if test -f conf.sdltest ; then
10526 else
10527 echo "*** Could not run SDL test program, checking why..."
10528 CFLAGS="$CFLAGS $SDL_CFLAGS"
10529 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10530 LIBS="$LIBS $SDL_LIBS"
10531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10532 /* end confdefs.h. */
10534 #include <stdio.h>
10535 #include "SDL.h"
10537 int main(int argc, char *argv[])
10538 { return 0; }
10539 #undef main
10540 #define main K_and_R_C_main
10543 main ()
10545 return 0;
10547 return 0;
10549 _ACEOF
10550 if ac_fn_c_try_link "$LINENO"; then :
10551 echo "*** The test program compiled, but did not run. This usually means"
10552 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10553 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10554 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10555 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10556 echo "*** is required on your system"
10557 echo "***"
10558 echo "*** If you have an old version installed, it is best to remove it, although"
10559 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10560 else
10561 echo "*** The test program failed to compile or link. See the file config.log for the"
10562 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10563 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10564 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10566 rm -f core conftest.err conftest.$ac_objext \
10567 conftest$ac_exeext conftest.$ac_ext
10568 CFLAGS="$ac_save_CFLAGS"
10569 CXXFLAGS="$ac_save_CXXFLAGS"
10570 LIBS="$ac_save_LIBS"
10573 SDL_CFLAGS=""
10574 SDL_LIBS=""
10575 have_sdl="no"
10579 rm -f conf.sdltest
10582 if test "x-$have_sdl" != "x-yes" ; then
10584 if test "x-$sdl_hidd" != "x-auto" ; then
10585 as_fn_error "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10588 else
10589 sdl_hidd_target=kernel-hidd-sdl
10590 aros_host_sdl_cflags=SDL_CFLAGS
10591 aros_host_sdl_libs=SDL_LIBS
10595 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10596 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
10601 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
10602 oss_library_target=workbench-libs-oss-unix
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10608 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10609 # Check whether --enable-dbus was given.
10610 if test "${enable_dbus+set}" = set; then :
10611 enableval=$enable_dbus; dbus="yes"
10612 else
10613 dbus="no"
10616 if test "$dbus" = "yes" ; then
10617 ENABLE_DBUS=1
10618 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10619 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10620 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10621 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10622 else
10623 ENABLE_DBUS=0
10625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10626 $as_echo "$dbus" >&6; }
10630 # Generic
10640 # Host related
10663 # Target Related
10717 # Graphics Related
10734 # Native version related
10737 # Palm native version related
10740 # Unix/Hosted version related
10743 # Apple iOS related
10748 # DBUS related
10755 #X11 related
10758 # Debug related
10764 # Collect-aros stuff: "-ius" to ignore undefined symbols
10767 # C compiler related
10770 case "$aros_flavour" in
10771 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
10772 aros_flavour="emulation" ;;
10773 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
10774 aros_flavour="emulation" ;;
10775 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
10776 aros_flavour="standalone";;
10777 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
10778 aros_flavour="standalone";;
10779 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
10780 aros_flavour="native" ;;
10781 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
10782 aros_flavour="native" ;;
10783 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
10784 aros_flavour="linklib" ;;
10785 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10786 aros_flavour="palmnative" ;;
10787 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10788 aros_flavour="mac68knative" ;;
10789 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
10790 aros_flavour="ppcnative" ;;
10791 esac
10793 if test ! -d ${aros_inc_dir} ; then
10794 ${MKDIR} ${aros_inc_dir}
10796 if test ! -d ${aros_geninc_dir} ; then
10797 ${MKDIR} ${aros_geninc_dir}
10799 if test ! -d ${aros_hostcfg_dir} ; then
10800 ${MKDIR} ${aros_hostcfg_dir}
10802 if test ! -d ${aros_targetcfg_dir} ; then
10803 ${MKDIR} ${aros_targetcfg_dir}
10805 if test ! -d ${aros_tools_dir} ; then
10806 ${MKDIR} ${aros_tools_dir}
10808 if test ! -d ${aros_scripts_dir} ; then
10809 ${MKDIR} ${aros_scripts_dir}
10812 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
10815 ac_config_commands="$ac_config_commands compiler_executable"
10817 ac_config_commands="$ac_config_commands genshared_executable"
10819 ac_config_commands="$ac_config_commands genmf_executable"
10822 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_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
10825 cat >confcache <<\_ACEOF
10826 # This file is a shell script that caches the results of configure
10827 # tests run on this system so they can be shared between configure
10828 # scripts and configure runs, see configure's option --config-cache.
10829 # It is not useful on other systems. If it contains results you don't
10830 # want to keep, you may remove or edit it.
10832 # config.status only pays attention to the cache file if you give it
10833 # the --recheck option to rerun configure.
10835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10837 # following values.
10839 _ACEOF
10841 # The following way of writing the cache mishandles newlines in values,
10842 # but we know of no workaround that is simple, portable, and efficient.
10843 # So, we kill variables containing newlines.
10844 # Ultrix sh set writes to stderr and can't be redirected directly,
10845 # and sets the high bit in the cache file unless we assign to the vars.
10847 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10848 eval ac_val=\$$ac_var
10849 case $ac_val in #(
10850 *${as_nl}*)
10851 case $ac_var in #(
10852 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10853 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10854 esac
10855 case $ac_var in #(
10856 _ | IFS | as_nl) ;; #(
10857 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10858 *) { eval $ac_var=; unset $ac_var;} ;;
10859 esac ;;
10860 esac
10861 done
10863 (set) 2>&1 |
10864 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10865 *${as_nl}ac_space=\ *)
10866 # `set' does not quote correctly, so add quotes: double-quote
10867 # substitution turns \\\\ into \\, and sed turns \\ into \.
10868 sed -n \
10869 "s/'/'\\\\''/g;
10870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10871 ;; #(
10873 # `set' quotes correctly as required by POSIX, so do not add quotes.
10874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10876 esac |
10877 sort
10879 sed '
10880 /^ac_cv_env_/b end
10881 t clear
10882 :clear
10883 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10884 t end
10885 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10886 :end' >>confcache
10887 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10888 if test -w "$cache_file"; then
10889 test "x$cache_file" != "x/dev/null" &&
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10891 $as_echo "$as_me: updating cache $cache_file" >&6;}
10892 cat confcache >$cache_file
10893 else
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10895 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10898 rm -f confcache
10900 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10901 # Let make expand exec_prefix.
10902 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10904 DEFS=-DHAVE_CONFIG_H
10906 ac_libobjs=
10907 ac_ltlibobjs=
10908 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10909 # 1. Remove the extension, and $U if already installed.
10910 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10911 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10913 # will be set to the directory where LIBOBJS objects are built.
10914 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10915 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10916 done
10917 LIBOBJS=$ac_libobjs
10919 LTLIBOBJS=$ac_ltlibobjs
10923 : ${CONFIG_STATUS=./config.status}
10924 ac_write_fail=0
10925 ac_clean_files_save=$ac_clean_files
10926 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10928 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10929 as_write_fail=0
10930 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10931 #! $SHELL
10932 # Generated by $as_me.
10933 # Run this file to recreate the current configuration.
10934 # Compiler output produced by configure, useful for debugging
10935 # configure, is in config.log if it exists.
10937 debug=false
10938 ac_cs_recheck=false
10939 ac_cs_silent=false
10941 SHELL=\${CONFIG_SHELL-$SHELL}
10942 export SHELL
10943 _ASEOF
10944 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10945 ## -------------------- ##
10946 ## M4sh Initialization. ##
10947 ## -------------------- ##
10949 # Be more Bourne compatible
10950 DUALCASE=1; export DUALCASE # for MKS sh
10951 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10952 emulate sh
10953 NULLCMD=:
10954 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10955 # is contrary to our usage. Disable this feature.
10956 alias -g '${1+"$@"}'='"$@"'
10957 setopt NO_GLOB_SUBST
10958 else
10959 case `(set -o) 2>/dev/null` in #(
10960 *posix*) :
10961 set -o posix ;; #(
10962 *) :
10964 esac
10968 as_nl='
10970 export as_nl
10971 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10972 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10973 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10974 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10975 # Prefer a ksh shell builtin over an external printf program on Solaris,
10976 # but without wasting forks for bash or zsh.
10977 if test -z "$BASH_VERSION$ZSH_VERSION" \
10978 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10979 as_echo='print -r --'
10980 as_echo_n='print -rn --'
10981 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10982 as_echo='printf %s\n'
10983 as_echo_n='printf %s'
10984 else
10985 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10986 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10987 as_echo_n='/usr/ucb/echo -n'
10988 else
10989 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10990 as_echo_n_body='eval
10991 arg=$1;
10992 case $arg in #(
10993 *"$as_nl"*)
10994 expr "X$arg" : "X\\(.*\\)$as_nl";
10995 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10996 esac;
10997 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10999 export as_echo_n_body
11000 as_echo_n='sh -c $as_echo_n_body as_echo'
11002 export as_echo_body
11003 as_echo='sh -c $as_echo_body as_echo'
11006 # The user is always right.
11007 if test "${PATH_SEPARATOR+set}" != set; then
11008 PATH_SEPARATOR=:
11009 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11010 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11011 PATH_SEPARATOR=';'
11016 # IFS
11017 # We need space, tab and new line, in precisely that order. Quoting is
11018 # there to prevent editors from complaining about space-tab.
11019 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11020 # splitting by setting IFS to empty value.)
11021 IFS=" "" $as_nl"
11023 # Find who we are. Look in the path if we contain no directory separator.
11024 case $0 in #((
11025 *[\\/]* ) as_myself=$0 ;;
11026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027 for as_dir in $PATH
11029 IFS=$as_save_IFS
11030 test -z "$as_dir" && as_dir=.
11031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11032 done
11033 IFS=$as_save_IFS
11036 esac
11037 # We did not find ourselves, most probably we were run as `sh COMMAND'
11038 # in which case we are not to be found in the path.
11039 if test "x$as_myself" = x; then
11040 as_myself=$0
11042 if test ! -f "$as_myself"; then
11043 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11044 exit 1
11047 # Unset variables that we do not need and which cause bugs (e.g. in
11048 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11049 # suppresses any "Segmentation fault" message there. '((' could
11050 # trigger a bug in pdksh 5.2.14.
11051 for as_var in BASH_ENV ENV MAIL MAILPATH
11052 do eval test x\${$as_var+set} = xset \
11053 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11054 done
11055 PS1='$ '
11056 PS2='> '
11057 PS4='+ '
11059 # NLS nuisances.
11060 LC_ALL=C
11061 export LC_ALL
11062 LANGUAGE=C
11063 export LANGUAGE
11065 # CDPATH.
11066 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11069 # as_fn_error ERROR [LINENO LOG_FD]
11070 # ---------------------------------
11071 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11072 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11073 # script with status $?, using 1 if that was 0.
11074 as_fn_error ()
11076 as_status=$?; test $as_status -eq 0 && as_status=1
11077 if test "$3"; then
11078 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11079 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11081 $as_echo "$as_me: error: $1" >&2
11082 as_fn_exit $as_status
11083 } # as_fn_error
11086 # as_fn_set_status STATUS
11087 # -----------------------
11088 # Set $? to STATUS, without forking.
11089 as_fn_set_status ()
11091 return $1
11092 } # as_fn_set_status
11094 # as_fn_exit STATUS
11095 # -----------------
11096 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11097 as_fn_exit ()
11099 set +e
11100 as_fn_set_status $1
11101 exit $1
11102 } # as_fn_exit
11104 # as_fn_unset VAR
11105 # ---------------
11106 # Portably unset VAR.
11107 as_fn_unset ()
11109 { eval $1=; unset $1;}
11111 as_unset=as_fn_unset
11112 # as_fn_append VAR VALUE
11113 # ----------------------
11114 # Append the text in VALUE to the end of the definition contained in VAR. Take
11115 # advantage of any shell optimizations that allow amortized linear growth over
11116 # repeated appends, instead of the typical quadratic growth present in naive
11117 # implementations.
11118 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11119 eval 'as_fn_append ()
11121 eval $1+=\$2
11123 else
11124 as_fn_append ()
11126 eval $1=\$$1\$2
11128 fi # as_fn_append
11130 # as_fn_arith ARG...
11131 # ------------------
11132 # Perform arithmetic evaluation on the ARGs, and store the result in the
11133 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11134 # must be portable across $(()) and expr.
11135 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11136 eval 'as_fn_arith ()
11138 as_val=$(( $* ))
11140 else
11141 as_fn_arith ()
11143 as_val=`expr "$@" || test $? -eq 1`
11145 fi # as_fn_arith
11148 if expr a : '\(a\)' >/dev/null 2>&1 &&
11149 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11150 as_expr=expr
11151 else
11152 as_expr=false
11155 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11156 as_basename=basename
11157 else
11158 as_basename=false
11161 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11162 as_dirname=dirname
11163 else
11164 as_dirname=false
11167 as_me=`$as_basename -- "$0" ||
11168 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11169 X"$0" : 'X\(//\)$' \| \
11170 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11171 $as_echo X/"$0" |
11172 sed '/^.*\/\([^/][^/]*\)\/*$/{
11173 s//\1/
11176 /^X\/\(\/\/\)$/{
11177 s//\1/
11180 /^X\/\(\/\).*/{
11181 s//\1/
11184 s/.*/./; q'`
11186 # Avoid depending upon Character Ranges.
11187 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11188 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11189 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11190 as_cr_digits='0123456789'
11191 as_cr_alnum=$as_cr_Letters$as_cr_digits
11193 ECHO_C= ECHO_N= ECHO_T=
11194 case `echo -n x` in #(((((
11195 -n*)
11196 case `echo 'xy\c'` in
11197 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11198 xy) ECHO_C='\c';;
11199 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11200 ECHO_T=' ';;
11201 esac;;
11203 ECHO_N='-n';;
11204 esac
11206 rm -f conf$$ conf$$.exe conf$$.file
11207 if test -d conf$$.dir; then
11208 rm -f conf$$.dir/conf$$.file
11209 else
11210 rm -f conf$$.dir
11211 mkdir conf$$.dir 2>/dev/null
11213 if (echo >conf$$.file) 2>/dev/null; then
11214 if ln -s conf$$.file conf$$ 2>/dev/null; then
11215 as_ln_s='ln -s'
11216 # ... but there are two gotchas:
11217 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11218 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11219 # In both cases, we have to default to `cp -p'.
11220 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11221 as_ln_s='cp -p'
11222 elif ln conf$$.file conf$$ 2>/dev/null; then
11223 as_ln_s=ln
11224 else
11225 as_ln_s='cp -p'
11227 else
11228 as_ln_s='cp -p'
11230 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11231 rmdir conf$$.dir 2>/dev/null
11234 # as_fn_mkdir_p
11235 # -------------
11236 # Create "$as_dir" as a directory, including parents if necessary.
11237 as_fn_mkdir_p ()
11240 case $as_dir in #(
11241 -*) as_dir=./$as_dir;;
11242 esac
11243 test -d "$as_dir" || eval $as_mkdir_p || {
11244 as_dirs=
11245 while :; do
11246 case $as_dir in #(
11247 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11248 *) as_qdir=$as_dir;;
11249 esac
11250 as_dirs="'$as_qdir' $as_dirs"
11251 as_dir=`$as_dirname -- "$as_dir" ||
11252 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11253 X"$as_dir" : 'X\(//\)[^/]' \| \
11254 X"$as_dir" : 'X\(//\)$' \| \
11255 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11256 $as_echo X"$as_dir" |
11257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11258 s//\1/
11261 /^X\(\/\/\)[^/].*/{
11262 s//\1/
11265 /^X\(\/\/\)$/{
11266 s//\1/
11269 /^X\(\/\).*/{
11270 s//\1/
11273 s/.*/./; q'`
11274 test -d "$as_dir" && break
11275 done
11276 test -z "$as_dirs" || eval "mkdir $as_dirs"
11277 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11280 } # as_fn_mkdir_p
11281 if mkdir -p . 2>/dev/null; then
11282 as_mkdir_p='mkdir -p "$as_dir"'
11283 else
11284 test -d ./-p && rmdir ./-p
11285 as_mkdir_p=false
11288 if test -x / >/dev/null 2>&1; then
11289 as_test_x='test -x'
11290 else
11291 if ls -dL / >/dev/null 2>&1; then
11292 as_ls_L_option=L
11293 else
11294 as_ls_L_option=
11296 as_test_x='
11297 eval sh -c '\''
11298 if test -d "$1"; then
11299 test -d "$1/.";
11300 else
11301 case $1 in #(
11302 -*)set "./$1";;
11303 esac;
11304 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11305 ???[sx]*):;;*)false;;esac;fi
11306 '\'' sh
11309 as_executable_p=$as_test_x
11311 # Sed expression to map a string onto a valid CPP name.
11312 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11314 # Sed expression to map a string onto a valid variable name.
11315 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11318 exec 6>&1
11319 ## ----------------------------------- ##
11320 ## Main body of $CONFIG_STATUS script. ##
11321 ## ----------------------------------- ##
11322 _ASEOF
11323 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11325 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11326 # Save the log message, to keep $0 and so on meaningful, and to
11327 # report actual input values of CONFIG_FILES etc. instead of their
11328 # values after options handling.
11329 ac_log="
11330 This file was extended by $as_me, which was
11331 generated by GNU Autoconf 2.65. Invocation command line was
11333 CONFIG_FILES = $CONFIG_FILES
11334 CONFIG_HEADERS = $CONFIG_HEADERS
11335 CONFIG_LINKS = $CONFIG_LINKS
11336 CONFIG_COMMANDS = $CONFIG_COMMANDS
11337 $ $0 $@
11339 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11342 _ACEOF
11344 case $ac_config_files in *"
11345 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11346 esac
11348 case $ac_config_headers in *"
11349 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11350 esac
11353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11354 # Files that config.status was made for.
11355 config_files="$ac_config_files"
11356 config_headers="$ac_config_headers"
11357 config_commands="$ac_config_commands"
11359 _ACEOF
11361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11362 ac_cs_usage="\
11363 \`$as_me' instantiates files and other configuration actions
11364 from templates according to the current configuration. Unless the files
11365 and actions are specified as TAGs, all are instantiated by default.
11367 Usage: $0 [OPTION]... [TAG]...
11369 -h, --help print this help, then exit
11370 -V, --version print version number and configuration settings, then exit
11371 --config print configuration, then exit
11372 -q, --quiet, --silent
11373 do not print progress messages
11374 -d, --debug don't remove temporary files
11375 --recheck update $as_me by reconfiguring in the same conditions
11376 --file=FILE[:TEMPLATE]
11377 instantiate the configuration file FILE
11378 --header=FILE[:TEMPLATE]
11379 instantiate the configuration header FILE
11381 Configuration files:
11382 $config_files
11384 Configuration headers:
11385 $config_headers
11387 Configuration commands:
11388 $config_commands
11390 Report bugs to the package provider."
11392 _ACEOF
11393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11394 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11395 ac_cs_version="\\
11396 config.status
11397 configured by $0, generated by GNU Autoconf 2.65,
11398 with options \\"\$ac_cs_config\\"
11400 Copyright (C) 2009 Free Software Foundation, Inc.
11401 This config.status script is free software; the Free Software Foundation
11402 gives unlimited permission to copy, distribute and modify it."
11404 ac_pwd='$ac_pwd'
11405 srcdir='$srcdir'
11406 test -n "\$AWK" || AWK=awk
11407 _ACEOF
11409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11410 # The default lists apply if the user does not specify any file.
11411 ac_need_defaults=:
11412 while test $# != 0
11414 case $1 in
11415 --*=*)
11416 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11417 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11418 ac_shift=:
11421 ac_option=$1
11422 ac_optarg=$2
11423 ac_shift=shift
11425 esac
11427 case $ac_option in
11428 # Handling of the options.
11429 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11430 ac_cs_recheck=: ;;
11431 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11432 $as_echo "$ac_cs_version"; exit ;;
11433 --config | --confi | --conf | --con | --co | --c )
11434 $as_echo "$ac_cs_config"; exit ;;
11435 --debug | --debu | --deb | --de | --d | -d )
11436 debug=: ;;
11437 --file | --fil | --fi | --f )
11438 $ac_shift
11439 case $ac_optarg in
11440 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11441 esac
11442 as_fn_append CONFIG_FILES " '$ac_optarg'"
11443 ac_need_defaults=false;;
11444 --header | --heade | --head | --hea )
11445 $ac_shift
11446 case $ac_optarg in
11447 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11448 esac
11449 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11450 ac_need_defaults=false;;
11451 --he | --h)
11452 # Conflict between --help and --header
11453 as_fn_error "ambiguous option: \`$1'
11454 Try \`$0 --help' for more information.";;
11455 --help | --hel | -h )
11456 $as_echo "$ac_cs_usage"; exit ;;
11457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11458 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11459 ac_cs_silent=: ;;
11461 # This is an error.
11462 -*) as_fn_error "unrecognized option: \`$1'
11463 Try \`$0 --help' for more information." ;;
11465 *) as_fn_append ac_config_targets " $1"
11466 ac_need_defaults=false ;;
11468 esac
11469 shift
11470 done
11472 ac_configure_extra_args=
11474 if $ac_cs_silent; then
11475 exec 6>/dev/null
11476 ac_configure_extra_args="$ac_configure_extra_args --silent"
11479 _ACEOF
11480 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11481 if \$ac_cs_recheck; then
11482 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11483 shift
11484 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11485 CONFIG_SHELL='$SHELL'
11486 export CONFIG_SHELL
11487 exec "\$@"
11490 _ACEOF
11491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11492 exec 5>>config.log
11494 echo
11495 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11496 ## Running $as_me. ##
11497 _ASBOX
11498 $as_echo "$ac_log"
11499 } >&5
11501 _ACEOF
11502 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11504 # INIT-COMMANDS
11507 aros_host_exe_suffix=${aros_host_exe_suffix}
11508 aros_tools_dir=${aros_tools_dir}
11509 aros_target_cpu=${aros_target_cpu}
11510 aros_target_arch=${aros_target_arch}
11511 aros_target_suffix=${aros_target_suffix}
11512 aros_target_nm_ln=${aros_target_nm_ln}
11513 aros_target_as_ln=${aros_target_as_ln}
11514 aros_target_ar_ln=${aros_target_ar_ln}
11515 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11516 aros_target_objdump_ln=${aros_target_objdump_ln}
11517 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11518 aros_target_strip_ln=${aros_target_strip_ln}
11521 aros_scripts_dir=${aros_scripts_dir}
11523 aros_tools_dir=${aros_tools_dir}
11526 _ACEOF
11528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11530 # Handling of arguments.
11531 for ac_config_target in $ac_config_targets
11533 case $ac_config_target in
11534 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11535 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11536 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11537 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11538 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11539 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11540 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11541 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11542 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11543 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11544 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11545 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11546 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11547 "${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" ;;
11548 "${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" ;;
11549 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
11550 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11551 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11553 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11554 esac
11555 done
11558 # If the user did not use the arguments to specify the items to instantiate,
11559 # then the envvar interface is used. Set only those that are not.
11560 # We use the long form for the default assignment because of an extremely
11561 # bizarre bug on SunOS 4.1.3.
11562 if $ac_need_defaults; then
11563 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11564 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11565 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11568 # Have a temporary directory for convenience. Make it in the build tree
11569 # simply because there is no reason against having it here, and in addition,
11570 # creating and moving files from /tmp can sometimes cause problems.
11571 # Hook for its removal unless debugging.
11572 # Note that there is a small window in which the directory will not be cleaned:
11573 # after its creation but before its name has been assigned to `$tmp'.
11574 $debug ||
11576 tmp=
11577 trap 'exit_status=$?
11578 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11580 trap 'as_fn_exit 1' 1 2 13 15
11582 # Create a (secure) tmp directory for tmp files.
11585 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11586 test -n "$tmp" && test -d "$tmp"
11587 } ||
11589 tmp=./conf$$-$RANDOM
11590 (umask 077 && mkdir "$tmp")
11591 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11593 # Set up the scripts for CONFIG_FILES section.
11594 # No need to generate them if there are no CONFIG_FILES.
11595 # This happens for instance with `./config.status config.h'.
11596 if test -n "$CONFIG_FILES"; then
11599 ac_cr=`echo X | tr X '\015'`
11600 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11601 # But we know of no other shell where ac_cr would be empty at this
11602 # point, so we can use a bashism as a fallback.
11603 if test "x$ac_cr" = x; then
11604 eval ac_cr=\$\'\\r\'
11606 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11607 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11608 ac_cs_awk_cr='\r'
11609 else
11610 ac_cs_awk_cr=$ac_cr
11613 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11614 _ACEOF
11618 echo "cat >conf$$subs.awk <<_ACEOF" &&
11619 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11620 echo "_ACEOF"
11621 } >conf$$subs.sh ||
11622 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11623 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11624 ac_delim='%!_!# '
11625 for ac_last_try in false false false false false :; do
11626 . ./conf$$subs.sh ||
11627 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11629 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11630 if test $ac_delim_n = $ac_delim_num; then
11631 break
11632 elif $ac_last_try; then
11633 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11634 else
11635 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11637 done
11638 rm -f conf$$subs.sh
11640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11641 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11642 _ACEOF
11643 sed -n '
11645 s/^/S["/; s/!.*/"]=/
11648 s/^[^!]*!//
11649 :repl
11650 t repl
11651 s/'"$ac_delim"'$//
11652 t delim
11655 s/\(.\{148\}\)..*/\1/
11656 t more1
11657 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11660 b repl
11661 :more1
11662 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11665 s/.\{148\}//
11666 t nl
11667 :delim
11669 s/\(.\{148\}\)..*/\1/
11670 t more2
11671 s/["\\]/\\&/g; s/^/"/; s/$/"/
11674 :more2
11675 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11678 s/.\{148\}//
11679 t delim
11680 ' <conf$$subs.awk | sed '
11681 /^[^""]/{
11683 s/\n//
11685 ' >>$CONFIG_STATUS || ac_write_fail=1
11686 rm -f conf$$subs.awk
11687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11688 _ACAWK
11689 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11690 for (key in S) S_is_set[key] = 1
11691 FS = "\a"
11695 line = $ 0
11696 nfields = split(line, field, "@")
11697 substed = 0
11698 len = length(field[1])
11699 for (i = 2; i < nfields; i++) {
11700 key = field[i]
11701 keylen = length(key)
11702 if (S_is_set[key]) {
11703 value = S[key]
11704 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11705 len += length(value) + length(field[++i])
11706 substed = 1
11707 } else
11708 len += 1 + keylen
11711 print line
11714 _ACAWK
11715 _ACEOF
11716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11717 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11718 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11719 else
11721 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11722 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11723 _ACEOF
11725 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11726 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11727 # trailing colons and then remove the whole line if VPATH becomes empty
11728 # (actually we leave an empty line to preserve line numbers).
11729 if test "x$srcdir" = x.; then
11730 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11731 s/:*\$(srcdir):*/:/
11732 s/:*\${srcdir}:*/:/
11733 s/:*@srcdir@:*/:/
11734 s/^\([^=]*=[ ]*\):*/\1/
11735 s/:*$//
11736 s/^[^=]*=[ ]*$//
11740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11741 fi # test -n "$CONFIG_FILES"
11743 # Set up the scripts for CONFIG_HEADERS section.
11744 # No need to generate them if there are no CONFIG_HEADERS.
11745 # This happens for instance with `./config.status Makefile'.
11746 if test -n "$CONFIG_HEADERS"; then
11747 cat >"$tmp/defines.awk" <<\_ACAWK ||
11748 BEGIN {
11749 _ACEOF
11751 # Transform confdefs.h into an awk script `defines.awk', embedded as
11752 # here-document in config.status, that substitutes the proper values into
11753 # config.h.in to produce config.h.
11755 # Create a delimiter string that does not exist in confdefs.h, to ease
11756 # handling of long lines.
11757 ac_delim='%!_!# '
11758 for ac_last_try in false false :; do
11759 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11760 if test -z "$ac_t"; then
11761 break
11762 elif $ac_last_try; then
11763 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
11764 else
11765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11767 done
11769 # For the awk script, D is an array of macro values keyed by name,
11770 # likewise P contains macro parameters if any. Preserve backslash
11771 # newline sequences.
11773 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11774 sed -n '
11775 s/.\{148\}/&'"$ac_delim"'/g
11776 t rset
11777 :rset
11778 s/^[ ]*#[ ]*define[ ][ ]*/ /
11779 t def
11781 :def
11782 s/\\$//
11783 t bsnl
11784 s/["\\]/\\&/g
11785 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11786 D["\1"]=" \3"/p
11787 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11789 :bsnl
11790 s/["\\]/\\&/g
11791 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11792 D["\1"]=" \3\\\\\\n"\\/p
11793 t cont
11794 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11795 t cont
11797 :cont
11799 s/.\{148\}/&'"$ac_delim"'/g
11800 t clear
11801 :clear
11802 s/\\$//
11803 t bsnlc
11804 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11806 :bsnlc
11807 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11808 b cont
11809 ' <confdefs.h | sed '
11810 s/'"$ac_delim"'/"\\\
11811 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11813 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11814 for (key in D) D_is_set[key] = 1
11815 FS = "\a"
11817 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11818 line = \$ 0
11819 split(line, arg, " ")
11820 if (arg[1] == "#") {
11821 defundef = arg[2]
11822 mac1 = arg[3]
11823 } else {
11824 defundef = substr(arg[1], 2)
11825 mac1 = arg[2]
11827 split(mac1, mac2, "(") #)
11828 macro = mac2[1]
11829 prefix = substr(line, 1, index(line, defundef) - 1)
11830 if (D_is_set[macro]) {
11831 # Preserve the white space surrounding the "#".
11832 print prefix "define", macro P[macro] D[macro]
11833 next
11834 } else {
11835 # Replace #undef with comments. This is necessary, for example,
11836 # in the case of _POSIX_SOURCE, which is predefined and required
11837 # on some systems where configure will not decide to define it.
11838 if (defundef == "undef") {
11839 print "/*", prefix defundef, macro, "*/"
11840 next
11844 { print }
11845 _ACAWK
11846 _ACEOF
11847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11848 as_fn_error "could not setup config headers machinery" "$LINENO" 5
11849 fi # test -n "$CONFIG_HEADERS"
11852 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11853 shift
11854 for ac_tag
11856 case $ac_tag in
11857 :[FHLC]) ac_mode=$ac_tag; continue;;
11858 esac
11859 case $ac_mode$ac_tag in
11860 :[FHL]*:*);;
11861 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11862 :[FH]-) ac_tag=-:-;;
11863 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11864 esac
11865 ac_save_IFS=$IFS
11866 IFS=:
11867 set x $ac_tag
11868 IFS=$ac_save_IFS
11869 shift
11870 ac_file=$1
11871 shift
11873 case $ac_mode in
11874 :L) ac_source=$1;;
11875 :[FH])
11876 ac_file_inputs=
11877 for ac_f
11879 case $ac_f in
11880 -) ac_f="$tmp/stdin";;
11881 *) # Look for the file first in the build tree, then in the source tree
11882 # (if the path is not absolute). The absolute path cannot be DOS-style,
11883 # because $ac_f cannot contain `:'.
11884 test -f "$ac_f" ||
11885 case $ac_f in
11886 [\\/$]*) false;;
11887 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11888 esac ||
11889 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11890 esac
11891 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11892 as_fn_append ac_file_inputs " '$ac_f'"
11893 done
11895 # Let's still pretend it is `configure' which instantiates (i.e., don't
11896 # use $as_me), people would be surprised to read:
11897 # /* config.h. Generated by config.status. */
11898 configure_input='Generated from '`
11899 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11900 `' by configure.'
11901 if test x"$ac_file" != x-; then
11902 configure_input="$ac_file. $configure_input"
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11904 $as_echo "$as_me: creating $ac_file" >&6;}
11906 # Neutralize special characters interpreted by sed in replacement strings.
11907 case $configure_input in #(
11908 *\&* | *\|* | *\\* )
11909 ac_sed_conf_input=`$as_echo "$configure_input" |
11910 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11911 *) ac_sed_conf_input=$configure_input;;
11912 esac
11914 case $ac_tag in
11915 *:-:* | *:-) cat >"$tmp/stdin" \
11916 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
11917 esac
11919 esac
11921 ac_dir=`$as_dirname -- "$ac_file" ||
11922 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11923 X"$ac_file" : 'X\(//\)[^/]' \| \
11924 X"$ac_file" : 'X\(//\)$' \| \
11925 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11926 $as_echo X"$ac_file" |
11927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11928 s//\1/
11931 /^X\(\/\/\)[^/].*/{
11932 s//\1/
11935 /^X\(\/\/\)$/{
11936 s//\1/
11939 /^X\(\/\).*/{
11940 s//\1/
11943 s/.*/./; q'`
11944 as_dir="$ac_dir"; as_fn_mkdir_p
11945 ac_builddir=.
11947 case "$ac_dir" in
11948 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11950 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11951 # A ".." for each directory in $ac_dir_suffix.
11952 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11953 case $ac_top_builddir_sub in
11954 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11955 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11956 esac ;;
11957 esac
11958 ac_abs_top_builddir=$ac_pwd
11959 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11960 # for backward compatibility:
11961 ac_top_builddir=$ac_top_build_prefix
11963 case $srcdir in
11964 .) # We are building in place.
11965 ac_srcdir=.
11966 ac_top_srcdir=$ac_top_builddir_sub
11967 ac_abs_top_srcdir=$ac_pwd ;;
11968 [\\/]* | ?:[\\/]* ) # Absolute name.
11969 ac_srcdir=$srcdir$ac_dir_suffix;
11970 ac_top_srcdir=$srcdir
11971 ac_abs_top_srcdir=$srcdir ;;
11972 *) # Relative name.
11973 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11974 ac_top_srcdir=$ac_top_build_prefix$srcdir
11975 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11976 esac
11977 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11980 case $ac_mode in
11983 # CONFIG_FILE
11986 _ACEOF
11988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11989 # If the template does not know about datarootdir, expand it.
11990 # FIXME: This hack should be removed a few years after 2.60.
11991 ac_datarootdir_hack=; ac_datarootdir_seen=
11992 ac_sed_dataroot='
11993 /datarootdir/ {
11997 /@datadir@/p
11998 /@docdir@/p
11999 /@infodir@/p
12000 /@localedir@/p
12001 /@mandir@/p'
12002 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12003 *datarootdir*) ac_datarootdir_seen=yes;;
12004 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12006 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12007 _ACEOF
12008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12009 ac_datarootdir_hack='
12010 s&@datadir@&$datadir&g
12011 s&@docdir@&$docdir&g
12012 s&@infodir@&$infodir&g
12013 s&@localedir@&$localedir&g
12014 s&@mandir@&$mandir&g
12015 s&\\\${datarootdir}&$datarootdir&g' ;;
12016 esac
12017 _ACEOF
12019 # Neutralize VPATH when `$srcdir' = `.'.
12020 # Shell code in configure.ac might set extrasub.
12021 # FIXME: do we really want to maintain this feature?
12022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12023 ac_sed_extra="$ac_vpsub
12024 $extrasub
12025 _ACEOF
12026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12028 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12029 s|@configure_input@|$ac_sed_conf_input|;t t
12030 s&@top_builddir@&$ac_top_builddir_sub&;t t
12031 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12032 s&@srcdir@&$ac_srcdir&;t t
12033 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12034 s&@top_srcdir@&$ac_top_srcdir&;t t
12035 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12036 s&@builddir@&$ac_builddir&;t t
12037 s&@abs_builddir@&$ac_abs_builddir&;t t
12038 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12039 $ac_datarootdir_hack
12041 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12042 || as_fn_error "could not create $ac_file" "$LINENO" 5
12044 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12045 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12046 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12048 which seems to be undefined. Please make sure it is defined." >&5
12049 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12050 which seems to be undefined. Please make sure it is defined." >&2;}
12052 rm -f "$tmp/stdin"
12053 case $ac_file in
12054 -) cat "$tmp/out" && rm -f "$tmp/out";;
12055 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12056 esac \
12057 || as_fn_error "could not create $ac_file" "$LINENO" 5
12061 # CONFIG_HEADER
12063 if test x"$ac_file" != x-; then
12065 $as_echo "/* $configure_input */" \
12066 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12067 } >"$tmp/config.h" \
12068 || as_fn_error "could not create $ac_file" "$LINENO" 5
12069 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12071 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12072 else
12073 rm -f "$ac_file"
12074 mv "$tmp/config.h" "$ac_file" \
12075 || as_fn_error "could not create $ac_file" "$LINENO" 5
12077 else
12078 $as_echo "/* $configure_input */" \
12079 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12080 || as_fn_error "could not create -" "$LINENO" 5
12084 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12085 $as_echo "$as_me: executing $ac_file commands" >&6;}
12087 esac
12090 case $ac_file$ac_mode in
12091 "compiler_executable":C)
12092 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12093 mkdir -p $prefix
12094 prefix="${prefix}/${aros_target_cpu}-aros"
12095 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12097 echo ${prefix}
12098 echo ${prefix2}
12099 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12101 ln -sf ${prefix2}-gcc ${prefix}-gcc
12102 ln -sf ${prefix2}-ld ${prefix}-ld
12104 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12105 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12106 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12107 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12108 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12109 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12110 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12112 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12113 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12114 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12115 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12116 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12117 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12118 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12120 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
12121 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12123 esac
12124 done # for ac_tag
12127 as_fn_exit 0
12128 _ACEOF
12129 ac_clean_files=$ac_clean_files_save
12131 test $ac_write_fail = 0 ||
12132 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12135 # configure is writing to config.log, and then calls config.status.
12136 # config.status does its own redirection, appending to config.log.
12137 # Unfortunately, on DOS this fails, as config.log is still kept open
12138 # by configure, so config.status won't be able to write to it; its
12139 # output is simply discarded. So we exec the FD to /dev/null,
12140 # effectively closing config.log, so it can be properly (re)opened and
12141 # appended to by config.status. When coming back to configure, we
12142 # need to make the FD available again.
12143 if test "$no_create" != yes; then
12144 ac_cs_success=:
12145 ac_config_status_args=
12146 test "$silent" = yes &&
12147 ac_config_status_args="$ac_config_status_args --quiet"
12148 exec 5>/dev/null
12149 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12150 exec 5>>config.log
12151 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12152 # would make configure fail if this is the last instruction.
12153 $ac_cs_success || as_fn_exit $?
12155 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12157 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12162 #XXX compatability...
12163 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12165 if test -n "$aros_shared_cflags" ; then
12166 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12167 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg