Improved debug messages and added missing properties.
[AROS.git] / configure
blob83abc1a59417a70e4e5150709397f16f6118db20
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
565 ac_unique_file="mmakefile"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_header_list=
603 ac_subst_vars='LTLIBOBJS
604 gcc_target_cpu
605 ignore_undefined_symbols
606 aros_modules_debug
607 aros_stack_debug
608 aros_mungwall_debug
609 aros_debug
610 ENABLE_X11
611 KERNEL_DBUS_INCLUDES
612 KERNEL_DBUS_KOBJ
613 DBUS_LIBFLAGS
614 DBUS_CFLAGS
615 ENABLE_DBUS
616 aros_android_level
617 aros_ios_sdk
618 aros_ios_version
619 aros_ios_platform
620 aros_enable_mmu
621 aros_nesting_supervisor
622 aros_usb30_code
623 aros_palm_debug_hack
624 aros_serial_debug
625 aros_host_sdl_libs
626 aros_host_sdl_cflags
627 aros_host_x11_libdirs
628 aros_host_x11_includes
629 DO_VIDMODE_SUPPORT
630 DO_XSHM_SUPPORT
631 aros_default_wbdepth
632 aros_default_wbheight
633 aros_default_wbwidth
634 oss_library_target
635 pci_hidd_target
636 sdl_hidd_target
637 x11_hidd_target
638 aros_cflags_format_security
639 aros_cflags_strict_overflow
640 aros_cflags_enum_compare
641 aros_cflags_array_bounds
642 aros_cflags_unused_but_set_variable
643 crosstools_cxx_target
644 crosstools_target
645 aros_target_strip_flags
646 aros_target_genmap
647 aros_debug_ldflags
648 aros_debug_aflags
649 aros_debug_cflags
650 aros_target_cflags
651 aros_kernel_ldflags
652 aros_kernel_objcflags
653 aros_kernel_includes
654 aros_kernel_cflags
655 aros_shared_ldflags
656 aros_shared_aflags
657 aros_shared_cflags
658 aros_config_ldflags
659 aros_config_aflags
660 aros_config_cflags
661 aros_arch_libs
662 aros_compiler_libs
663 aros_object_format
664 aros_shared_ld
665 aros_shared_default
666 aros_target_nm
667 aros_target_strip
668 aros_target_objcopy
669 aros_target_objdump
670 aros_target_cc_path
671 aros_target_cc_includes
672 aros_target_ld
673 orig_target_ld
674 aros_target_as
675 orig_target_as
676 aros_target_cpp
677 orig_target_cpp
678 aros_target_cxx
679 orig_target_cxx
680 aros_target_cc
681 orig_target_cc
682 aros_plain_ar
683 aros_plain_nm
684 aros_target_ranlib
685 aros_target_ar
686 aros_target_suffix
687 aros_target_variant
688 aros_target_cpu
689 aros_target_family
690 aros_target_arch
691 aros_target_bootloader
692 aros_target_iconset
693 aros_target_guitheme
694 aros_tools_dir
695 aros_host_lib_suffix
696 aros_host_exe_suffix
697 aros_host_mkargs
698 aros_host_mkdep
699 aros_host_debug
700 aros_host_ldflags
701 gnu89_inline
702 aros_host_cxxflags
703 aros_host_cflags
704 aros_host_make
705 aros_host_cxx
706 aros_host_cc
707 aros_host_cpp
708 aros_host_cpu
709 aros_host_arch
710 aros_cc_pre
711 aros_amigaos_compliance
712 AROS_PORTSSRCDIR
713 AROS_CROSSTOOLSDIR
714 SRCDIR
715 AROS_BUILDDIR_UNIX
716 AROS_BUILDDIR
717 aros_target_toolchain
718 aros_flavour_uc
719 aros_flavour
720 aros_cpu
721 aros_arch
722 SDL_LIBS
723 SDL_CFLAGS
724 SDL_CONFIG
725 XMKMF
726 aros_cflags_iquote_end
727 aros_cflags_iquote
728 kernel_cflags_iquote_end
729 kernel_cflags_iquote
730 host_cflags_iquote_end
731 host_cflags_iquote
732 aros_target_nostdlib_ldflags
733 aros_target_detach_ldflags
734 aros_target_nix_ldflags
735 aros_target_nostartup_ldflags
736 aros_target_nostdinc_cflags
737 aros_kernel_rescomp
738 aros_kernel_objdump
739 aros_kernel_objcopy
740 aros_kernel_strip
741 aros_kernel_nm
742 aros_kernel_ranlib
743 aros_kernel_ar
744 aros_kernel_as
745 aros_kernel_ld
746 aros_kernel_cxx
747 aros_kernel_cc
748 aros_kernel_cpp
750 android_tool
751 CCACHE
752 DISTCC
753 LIBOBJS
754 EGREP
755 GREP
757 TEST
760 pkgpyexecdir
761 pyexecdir
762 pkgpythondir
763 pythondir
764 PYTHON_PLATFORM
765 PYTHON_EXEC_PREFIX
766 PYTHON_PREFIX
767 PYTHON_VERSION
768 PYTHON
769 PATCH
770 CHMOD
772 PPMTOILBM
773 PNGTOPNM
774 FLEX
775 BISON
778 UNIQ
779 SORT
780 TOUCH
781 MKDIR
782 ECHO
786 aros_host_strip
787 aros_host_ranlib
788 aros_host_ar
789 aros_host_automake
790 aros_host_autoheader
791 aros_host_autoconf
792 aros_host_aclocal
793 aros_host_ld
794 MMAKE
797 ac_ct_CXX
798 CXXFLAGS
800 OBJEXT
801 EXEEXT
802 ac_ct_CC
803 CPPFLAGS
804 LDFLAGS
805 CFLAGS
807 host_os
808 host_vendor
809 host_cpu
810 host
811 build_os
812 build_vendor
813 build_cpu
814 build
815 target_alias
816 host_alias
817 build_alias
818 LIBS
819 ECHO_T
820 ECHO_N
821 ECHO_C
822 DEFS
823 mandir
824 localedir
825 libdir
826 psdir
827 pdfdir
828 dvidir
829 htmldir
830 infodir
831 docdir
832 oldincludedir
833 includedir
834 localstatedir
835 sharedstatedir
836 sysconfdir
837 datadir
838 datarootdir
839 libexecdir
840 sbindir
841 bindir
842 program_transform_name
843 prefix
844 exec_prefix
845 PACKAGE_URL
846 PACKAGE_BUGREPORT
847 PACKAGE_STRING
848 PACKAGE_VERSION
849 PACKAGE_TARNAME
850 PACKAGE_NAME
851 PATH_SEPARATOR
852 SHELL'
853 ac_subst_files=''
854 ac_user_opts='
855 enable_option_checking
856 enable_build_type
857 enable_debug
858 enable_crosstools
859 enable_distcc
860 enable_ccache
861 with_gcc_version
862 with_optimization
863 with_paranoia
864 enable_target_variant
865 with_xcode
866 with_sdk_version
867 with_sdk
868 with_ndk
869 with_ndk_version
870 enable_amigaos_compliance
871 with_crosstools
872 with_kernel_tool_prefix
873 with_cpu
874 with_fpu
875 with_float
876 with_aros_gcc
877 with_portssources
878 with_bootloader
879 with_iconset
880 with_theme
881 with_resolution
882 with_serial_debug
883 enable_palm_debug_hack
884 enable_usb30_code
885 enable_nesting_supervisor
886 enable_mmu
887 enable_x11_hidd
888 with_x
889 enable_x11_shm
890 enable_x11_vidmode
891 enable_sdl_hidd
892 with_sdl_prefix
893 with_sdl_exec_prefix
894 enable_sdltest
895 enable_dbus
897 ac_precious_vars='build_alias
898 host_alias
899 target_alias
901 CFLAGS
902 LDFLAGS
903 LIBS
904 CPPFLAGS
906 CXXFLAGS
909 XMKMF'
912 # Initialize some variables set by options.
913 ac_init_help=
914 ac_init_version=false
915 ac_unrecognized_opts=
916 ac_unrecognized_sep=
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
919 cache_file=/dev/null
920 exec_prefix=NONE
921 no_create=
922 no_recursion=
923 prefix=NONE
924 program_prefix=NONE
925 program_suffix=NONE
926 program_transform_name=s,x,x,
927 silent=
928 site=
929 srcdir=
930 verbose=
931 x_includes=NONE
932 x_libraries=NONE
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir='${exec_prefix}/bin'
941 sbindir='${exec_prefix}/sbin'
942 libexecdir='${exec_prefix}/libexec'
943 datarootdir='${prefix}/share'
944 datadir='${datarootdir}'
945 sysconfdir='${prefix}/etc'
946 sharedstatedir='${prefix}/com'
947 localstatedir='${prefix}/var'
948 includedir='${prefix}/include'
949 oldincludedir='/usr/include'
950 docdir='${datarootdir}/doc/${PACKAGE}'
951 infodir='${datarootdir}/info'
952 htmldir='${docdir}'
953 dvidir='${docdir}'
954 pdfdir='${docdir}'
955 psdir='${docdir}'
956 libdir='${exec_prefix}/lib'
957 localedir='${datarootdir}/locale'
958 mandir='${datarootdir}/man'
960 ac_prev=
961 ac_dashdash=
962 for ac_option
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\$ac_option
967 ac_prev=
968 continue
971 case $ac_option in
972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 *=) ac_optarg= ;;
974 *) ac_optarg=yes ;;
975 esac
977 # Accept the important Cygnus configure options, so we can diagnose typos.
979 case $ac_dashdash$ac_option in
981 ac_dashdash=yes ;;
983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 ac_prev=bindir ;;
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
986 bindir=$ac_optarg ;;
988 -build | --build | --buil | --bui | --bu)
989 ac_prev=build_alias ;;
990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
991 build_alias=$ac_optarg ;;
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
998 cache_file=$ac_optarg ;;
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
1003 -datadir | --datadir | --datadi | --datad)
1004 ac_prev=datadir ;;
1005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1006 datadir=$ac_optarg ;;
1008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1015 -disable-* | --disable-*)
1016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1019 as_fn_error $? "invalid feature name: $ac_useropt"
1020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1024 "enable_$ac_useropt"
1025 "*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=no ;;
1031 -docdir | --docdir | --docdi | --doc | --do)
1032 ac_prev=docdir ;;
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037 ac_prev=dvidir ;;
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
1041 -enable-* | --enable-*)
1042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1045 as_fn_error $? "invalid feature name: $ac_useropt"
1046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_$ac_useropt"
1051 "*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=\$ac_optarg ;;
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
1064 exec_prefix=$ac_optarg ;;
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1068 with_gas=yes ;;
1070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
1077 -host | --host | --hos | --ho)
1078 ac_prev=host_alias ;;
1079 -host=* | --host=* | --hos=* | --ho=*)
1080 host_alias=$ac_optarg ;;
1082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 ac_prev=htmldir ;;
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 | --ht=*)
1086 htmldir=$ac_optarg ;;
1088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
1093 includedir=$ac_optarg ;;
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 ac_prev=infodir ;;
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1098 infodir=$ac_optarg ;;
1100 -libdir | --libdir | --libdi | --libd)
1101 ac_prev=libdir ;;
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1103 libdir=$ac_optarg ;;
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
1110 libexecdir=$ac_optarg ;;
1112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1117 -localstatedir | --localstatedir | --localstatedi | --localstated \
1118 | --localstate | --localstat | --localsta | --localst | --locals)
1119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1122 localstatedir=$ac_optarg ;;
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 ac_prev=mandir ;;
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1127 mandir=$ac_optarg ;;
1129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1131 with_fp=no ;;
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1134 | --no-cr | --no-c | -n)
1135 no_create=yes ;;
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 no_recursion=yes ;;
1141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1148 oldincludedir=$ac_optarg ;;
1150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 ac_prev=prefix ;;
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1153 prefix=$ac_optarg ;;
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1160 program_prefix=$ac_optarg ;;
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1167 program_suffix=$ac_optarg ;;
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
1184 program_transform_name=$ac_optarg ;;
1186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 ac_prev=pdfdir ;;
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1191 -psdir | --psdir | --psdi | --psd | --ps)
1192 ac_prev=psdir ;;
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 psdir=$ac_optarg ;;
1196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1198 silent=yes ;;
1200 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201 ac_prev=sbindir ;;
1202 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203 | --sbi=* | --sb=*)
1204 sbindir=$ac_optarg ;;
1206 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1207 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1208 | --sharedst | --shareds | --shared | --share | --shar \
1209 | --sha | --sh)
1210 ac_prev=sharedstatedir ;;
1211 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1212 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1213 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214 | --sha=* | --sh=*)
1215 sharedstatedir=$ac_optarg ;;
1217 -site | --site | --sit)
1218 ac_prev=site ;;
1219 -site=* | --site=* | --sit=*)
1220 site=$ac_optarg ;;
1222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223 ac_prev=srcdir ;;
1224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1225 srcdir=$ac_optarg ;;
1227 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1228 | --syscon | --sysco | --sysc | --sys | --sy)
1229 ac_prev=sysconfdir ;;
1230 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1231 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1232 sysconfdir=$ac_optarg ;;
1234 -target | --target | --targe | --targ | --tar | --ta | --t)
1235 ac_prev=target_alias ;;
1236 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1237 target_alias=$ac_optarg ;;
1239 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1240 verbose=yes ;;
1242 -version | --version | --versio | --versi | --vers | -V)
1243 ac_init_version=: ;;
1245 -with-* | --with-*)
1246 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1249 as_fn_error $? "invalid package name: $ac_useropt"
1250 ac_useropt_orig=$ac_useropt
1251 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1254 "with_$ac_useropt"
1255 "*) ;;
1256 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257 ac_unrecognized_sep=', ';;
1258 esac
1259 eval with_$ac_useropt=\$ac_optarg ;;
1261 -without-* | --without-*)
1262 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265 as_fn_error $? "invalid package name: $ac_useropt"
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1270 "with_$ac_useropt"
1271 "*) ;;
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1274 esac
1275 eval with_$ac_useropt=no ;;
1277 --x)
1278 # Obsolete; use --with-x.
1279 with_x=yes ;;
1281 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1282 | --x-incl | --x-inc | --x-in | --x-i)
1283 ac_prev=x_includes ;;
1284 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1285 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1286 x_includes=$ac_optarg ;;
1288 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1289 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1290 ac_prev=x_libraries ;;
1291 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1292 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1293 x_libraries=$ac_optarg ;;
1295 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1296 Try \`$0 --help' for more information"
1299 *=*)
1300 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1301 # Reject names that are not valid shell variable names.
1302 case $ac_envvar in #(
1303 '' | [0-9]* | *[!_$as_cr_alnum]* )
1304 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1305 esac
1306 eval $ac_envvar=\$ac_optarg
1307 export $ac_envvar ;;
1310 # FIXME: should be removed in autoconf 3.0.
1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1317 esac
1318 done
1320 if test -n "$ac_prev"; then
1321 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1322 as_fn_error $? "missing argument to $ac_option"
1325 if test -n "$ac_unrecognized_opts"; then
1326 case $enable_option_checking in
1327 no) ;;
1328 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330 esac
1333 # Check all directory arguments for consistency.
1334 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
1339 eval ac_val=\$$ac_var
1340 # Remove trailing slashes.
1341 case $ac_val in
1342 */ )
1343 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344 eval $ac_var=\$ac_val;;
1345 esac
1346 # Be sure to have absolute directory names.
1347 case $ac_val in
1348 [\\/$]* | ?:[\\/]* ) continue;;
1349 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1350 esac
1351 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1352 done
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1357 build=$build_alias
1358 host=$host_alias
1359 target=$target_alias
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x; then
1363 if test "x$build_alias" = x; then
1364 cross_compiling=maybe
1365 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1366 If a cross compiler is detected then cross compile mode will be used" >&2
1367 elif test "x$build_alias" != "x$host_alias"; then
1368 cross_compiling=yes
1372 ac_tool_prefix=
1373 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1375 test "$silent" = yes && exec 6>/dev/null
1378 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di=`ls -di .` &&
1380 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $? "working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $? "pwd does not report name of working directory"
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 $as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 s//\1/
1400 /^X\(\/\/\)[^/].*/{
1401 s//\1/
1404 /^X\(\/\/\)$/{
1405 s//\1/
1408 /^X\(\/\).*/{
1409 s//\1/
1412 s/.*/./; q'`
1413 srcdir=$ac_confdir
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 srcdir=..
1417 else
1418 ac_srcdir_defaulted=no
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1422 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1424 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 ac_abs_confdir=`(
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427 pwd)`
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 srcdir=.
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1435 case $srcdir in
1436 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 esac
1438 for ac_var in $ac_precious_vars; do
1439 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_${ac_var}_value=\$${ac_var}
1441 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1443 done
1446 # Report the --help message.
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1451 cat <<_ACEOF
1452 \`configure' configures this package to adapt to many kinds of systems.
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1459 Defaults for the options are specified in brackets.
1461 Configuration:
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 [PREFIX]
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1483 For better control, use the options below.
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1505 _ACEOF
1507 cat <<\_ACEOF
1509 X features:
1510 --x-includes=DIR X include files are in DIR
1511 --x-libraries=DIR X library files are in DIR
1513 System types:
1514 --build=BUILD configure for building on BUILD [guessed]
1515 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1516 _ACEOF
1519 if test -n "$ac_init_help"; then
1521 cat <<\_ACEOF
1523 Optional Features:
1524 --disable-option-checking ignore unrecognized --enable/--with options
1525 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1526 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1527 --enable-build-type=TYPE
1528 Select the build type. Available types are:
1529 personal, nightly, snapshot, milestone, release. Do
1530 NOT use this option unless you know what you are
1531 doing! (default=personal)
1532 --enable-debug=list Enable different types of debug. Commas or
1533 whitespaces can be used to separate the items in the
1534 list. Available types of debug are: all, none,
1535 messages, stack, mungwall, modules, symbols. If no
1536 list is provided then "all" is assumed.
1537 (default=none)
1538 --disable-crosstools Do not build cross-compiler toolchain
1539 --enable-distcc Use distcc as a front end to the compiler
1540 (default=no).
1541 --enable-ccache Use ccache as a front end to the compiler
1542 (default=no).
1543 --enable-target-variant=NAME
1544 Enable a specific target variant(default=none)
1545 --enable-amigaos-compliance=VERSION
1546 Enforce userspace AmigaOS compliance to a specific
1547 KickStart version (default=none).
1548 --enable-palm-debug-hack
1549 Enable palm debug output hack in palm native
1550 (default=no)
1551 --enable-usb30-code Enable usb3.0 code (default=no)
1552 --enable-nesting-supervisor
1553 Enable nesting supervisor support in unix
1554 (default=no)
1555 --disable-mmu Disable MMU support (default=enabled)
1556 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1557 --enable-x11-shm use X11 shared memory (default=auto)
1558 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1559 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1560 --disable-sdltest Do not try to compile and run a test SDL program
1561 --enable-dbus Enable DBUS support via dbus.library (default=no)
1563 Optional Packages:
1564 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1565 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1566 --with-kernel-gcc-version=VERSION
1567 Use host gcc-VERSION for building AROS
1568 --with-gcc-version=VERSION
1569 Use host gcc-VERSION for building AROS
1570 --with-optimization=FLAGS
1571 Use optimization flags FLAGS (default=-O2).
1572 --with-paranoia=FLAGS CC flags to enable paranoia
1573 --with-xcode=PATH Specify XCode path for iOS targets
1574 (default=/Developer).
1575 --with-sdk-version=VERSION
1576 Use iOS SDK version VERSION (default=4.1).
1577 --with-sdk=PATH Specify Android SDK path
1578 (default=$default_android_sdk).
1579 --with-ndk=PATH Specify Android NDK path (default=none).
1580 --with-sdk-version=LEVEL
1581 Use Android SDK for API LEVEL (default=12).
1582 --with-ndk-version=LEVEL
1583 Use Android NDK for API LEVEL (default=9).
1584 --with-crosstools=DIR Where to install or search for cross tools binaries
1585 --with-kernel-tool-prefix=...
1586 Specify crosscompile toolchain prefix for kernel
1587 objects
1588 --with-cpu=<spec> Specify minumum CPU (default=$gcc_default_cpu).
1589 --with-fpu=<spec> Specify minumum FPU (default=$gcc_default_fpu).
1590 --with-float=<spec> Specify floating point ABI
1591 (default=$gcc_default_float_abi).
1592 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1593 --with-portssources=DIR Where to download sourcecode for external ports
1594 --with-bootloader=NAME Use a specific bootloader
1595 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1596 --with-theme=NAME Use a specific GUI Theme
1597 --with-resolution=XRESxYRESxDEPTH
1598 Default resolution of the initial WorkbenchScreen
1599 --with-serial-debug Enable serial debug output in native (default=no)
1600 --with-x use the X Window System
1601 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1602 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1604 Some influential environment variables:
1605 CC C compiler command
1606 CFLAGS C compiler flags
1607 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1608 nonstandard directory <lib dir>
1609 LIBS libraries to pass to the linker, e.g. -l<library>
1610 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1611 you have headers in a nonstandard directory <include dir>
1612 CXX C++ compiler command
1613 CXXFLAGS C++ compiler flags
1614 CPP C preprocessor
1615 XMKMF Path to xmkmf, Makefile generator for X Window System
1617 Use these variables to override the choices made by `configure' or to help
1618 it to find libraries and programs with nonstandard names/locations.
1620 Report bugs to the package provider.
1621 _ACEOF
1622 ac_status=$?
1625 if test "$ac_init_help" = "recursive"; then
1626 # If there are subdirs, report their specific --help.
1627 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1628 test -d "$ac_dir" ||
1629 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1630 continue
1631 ac_builddir=.
1633 case "$ac_dir" in
1634 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1637 # A ".." for each directory in $ac_dir_suffix.
1638 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1639 case $ac_top_builddir_sub in
1640 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1641 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1642 esac ;;
1643 esac
1644 ac_abs_top_builddir=$ac_pwd
1645 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1646 # for backward compatibility:
1647 ac_top_builddir=$ac_top_build_prefix
1649 case $srcdir in
1650 .) # We are building in place.
1651 ac_srcdir=.
1652 ac_top_srcdir=$ac_top_builddir_sub
1653 ac_abs_top_srcdir=$ac_pwd ;;
1654 [\\/]* | ?:[\\/]* ) # Absolute name.
1655 ac_srcdir=$srcdir$ac_dir_suffix;
1656 ac_top_srcdir=$srcdir
1657 ac_abs_top_srcdir=$srcdir ;;
1658 *) # Relative name.
1659 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1660 ac_top_srcdir=$ac_top_build_prefix$srcdir
1661 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1662 esac
1663 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1665 cd "$ac_dir" || { ac_status=$?; continue; }
1666 # Check for guested configure.
1667 if test -f "$ac_srcdir/configure.gnu"; then
1668 echo &&
1669 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1670 elif test -f "$ac_srcdir/configure"; then
1671 echo &&
1672 $SHELL "$ac_srcdir/configure" --help=recursive
1673 else
1674 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1675 fi || ac_status=$?
1676 cd "$ac_pwd" || { ac_status=$?; break; }
1677 done
1680 test -n "$ac_init_help" && exit $ac_status
1681 if $ac_init_version; then
1682 cat <<\_ACEOF
1683 configure
1684 generated by GNU Autoconf 2.68
1686 Copyright (C) 2010 Free Software Foundation, Inc.
1687 This configure script is free software; the Free Software Foundation
1688 gives unlimited permission to copy, distribute and modify it.
1689 _ACEOF
1690 exit
1693 ## ------------------------ ##
1694 ## Autoconf initialization. ##
1695 ## ------------------------ ##
1697 # ac_fn_c_try_compile LINENO
1698 # --------------------------
1699 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_compile ()
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext
1704 if { { ac_try="$ac_compile"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 $as_echo "$ac_try_echo"; } >&5
1711 (eval "$ac_compile") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest.$ac_objext; then :
1723 ac_retval=0
1724 else
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=1
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1731 as_fn_set_status $ac_retval
1733 } # ac_fn_c_try_compile
1735 # ac_fn_cxx_try_compile LINENO
1736 # ----------------------------
1737 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_cxx_try_compile ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 rm -f conftest.$ac_objext
1742 if { { ac_try="$ac_compile"
1743 case "(($ac_try" in
1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1745 *) ac_try_echo=$ac_try;;
1746 esac
1747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_compile") 2>conftest.err
1750 ac_status=$?
1751 if test -s conftest.err; then
1752 grep -v '^ *+' conftest.err >conftest.er1
1753 cat conftest.er1 >&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } && {
1758 test -z "$ac_cxx_werror_flag" ||
1759 test ! -s conftest.err
1760 } && test -s conftest.$ac_objext; then :
1761 ac_retval=0
1762 else
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.$ac_ext >&5
1766 ac_retval=1
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status $ac_retval
1771 } # ac_fn_cxx_try_compile
1773 # ac_fn_c_try_cpp LINENO
1774 # ----------------------
1775 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1776 ac_fn_c_try_cpp ()
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_cpp conftest.$ac_ext"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1787 ac_status=$?
1788 if test -s conftest.err; then
1789 grep -v '^ *+' conftest.err >conftest.er1
1790 cat conftest.er1 >&5
1791 mv -f conftest.er1 conftest.err
1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1794 test $ac_status = 0; } > conftest.i && {
1795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1796 test ! -s conftest.err
1797 }; then :
1798 ac_retval=0
1799 else
1800 $as_echo "$as_me: failed program was:" >&5
1801 sed 's/^/| /' conftest.$ac_ext >&5
1803 ac_retval=1
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806 as_fn_set_status $ac_retval
1808 } # ac_fn_c_try_cpp
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1814 # accordingly.
1815 ac_fn_c_check_header_mongrel ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if eval \${$3+:} false; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1824 eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 else
1828 # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_header_compiler=yes
1838 else
1839 ac_header_compiler=no
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 #include <$2>
1851 _ACEOF
1852 if ac_fn_c_try_cpp "$LINENO"; then :
1853 ac_header_preproc=yes
1854 else
1855 ac_header_preproc=no
1857 rm -f conftest.err conftest.i conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1861 # So? What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863 yes:no: )
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 no:yes:* )
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881 esac
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if eval \${$3+:} false; then :
1885 $as_echo_n "(cached) " >&6
1886 else
1887 eval "$3=\$ac_header_compiler"
1889 eval ac_res=\$$3
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1891 $as_echo "$ac_res" >&6; }
1893 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 } # ac_fn_c_check_header_mongrel
1897 # ac_fn_c_try_run LINENO
1898 # ----------------------
1899 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1900 # that executables *can* be run.
1901 ac_fn_c_try_run ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 if { { ac_try="$ac_link"
1905 case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908 esac
1909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910 $as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_link") 2>&5
1912 ac_status=$?
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1915 { { case "(($ac_try" in
1916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917 *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_try") 2>&5
1922 ac_status=$?
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; }; }; then :
1925 ac_retval=0
1926 else
1927 $as_echo "$as_me: program exited with status $ac_status" >&5
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1931 ac_retval=$ac_status
1933 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935 as_fn_set_status $ac_retval
1937 } # ac_fn_c_try_run
1939 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1940 # -------------------------------------------------------
1941 # Tests whether HEADER exists and can be compiled using the include files in
1942 # INCLUDES, setting the cache variable VAR accordingly.
1943 ac_fn_c_check_header_compile ()
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1947 $as_echo_n "checking for $2... " >&6; }
1948 if eval \${$3+:} false; then :
1949 $as_echo_n "(cached) " >&6
1950 else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1954 #include <$2>
1955 _ACEOF
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 eval "$3=yes"
1958 else
1959 eval "$3=no"
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963 eval ac_res=\$$3
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 } # ac_fn_c_check_header_compile
1970 # ac_fn_c_try_link LINENO
1971 # -----------------------
1972 # Try to link conftest.$ac_ext, and return whether this succeeded.
1973 ac_fn_c_try_link ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 rm -f conftest.$ac_objext conftest$ac_exeext
1977 if { { ac_try="$ac_link"
1978 case "(($ac_try" in
1979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1980 *) ac_try_echo=$ac_try;;
1981 esac
1982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1983 $as_echo "$ac_try_echo"; } >&5
1984 (eval "$ac_link") 2>conftest.err
1985 ac_status=$?
1986 if test -s conftest.err; then
1987 grep -v '^ *+' conftest.err >conftest.er1
1988 cat conftest.er1 >&5
1989 mv -f conftest.er1 conftest.err
1991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1992 test $ac_status = 0; } && {
1993 test -z "$ac_c_werror_flag" ||
1994 test ! -s conftest.err
1995 } && test -s conftest$ac_exeext && {
1996 test "$cross_compiling" = yes ||
1997 $as_test_x conftest$ac_exeext
1998 }; then :
1999 ac_retval=0
2000 else
2001 $as_echo "$as_me: failed program was:" >&5
2002 sed 's/^/| /' conftest.$ac_ext >&5
2004 ac_retval=1
2006 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2007 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2008 # interfere with the next link command; also delete a directory that is
2009 # left behind by Apple's compiler. We do this before executing the actions.
2010 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2014 } # ac_fn_c_try_link
2016 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2017 # ----------------------------------------------------
2018 # Tries to find if the field MEMBER exists in type AGGR, after including
2019 # INCLUDES, setting cache variable VAR accordingly.
2020 ac_fn_c_check_member ()
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2024 $as_echo_n "checking for $2.$3... " >&6; }
2025 if eval \${$4+:} false; then :
2026 $as_echo_n "(cached) " >&6
2027 else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2032 main ()
2034 static $2 ac_aggr;
2035 if (ac_aggr.$3)
2036 return 0;
2038 return 0;
2040 _ACEOF
2041 if ac_fn_c_try_compile "$LINENO"; then :
2042 eval "$4=yes"
2043 else
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045 /* end confdefs.h. */
2048 main ()
2050 static $2 ac_aggr;
2051 if (sizeof ac_aggr.$3)
2052 return 0;
2054 return 0;
2056 _ACEOF
2057 if ac_fn_c_try_compile "$LINENO"; then :
2058 eval "$4=yes"
2059 else
2060 eval "$4=no"
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066 eval ac_res=\$$4
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2069 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071 } # ac_fn_c_check_member
2073 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2074 # ---------------------------------------------
2075 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2076 # accordingly.
2077 ac_fn_c_check_decl ()
2079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2080 as_decl_name=`echo $2|sed 's/ *(.*//'`
2081 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2083 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2084 if eval \${$3+:} false; then :
2085 $as_echo_n "(cached) " >&6
2086 else
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2091 main ()
2093 #ifndef $as_decl_name
2094 #ifdef __cplusplus
2095 (void) $as_decl_use;
2096 #else
2097 (void) $as_decl_name;
2098 #endif
2099 #endif
2102 return 0;
2104 _ACEOF
2105 if ac_fn_c_try_compile "$LINENO"; then :
2106 eval "$3=yes"
2107 else
2108 eval "$3=no"
2110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2112 eval ac_res=\$$3
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2114 $as_echo "$ac_res" >&6; }
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 } # ac_fn_c_check_decl
2119 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2120 # -------------------------------------------
2121 # Tests whether TYPE exists after having included INCLUDES, setting cache
2122 # variable VAR accordingly.
2123 ac_fn_c_check_type ()
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2127 $as_echo_n "checking for $2... " >&6; }
2128 if eval \${$3+:} false; then :
2129 $as_echo_n "(cached) " >&6
2130 else
2131 eval "$3=no"
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2136 main ()
2138 if (sizeof ($2))
2139 return 0;
2141 return 0;
2143 _ACEOF
2144 if ac_fn_c_try_compile "$LINENO"; then :
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2149 main ()
2151 if (sizeof (($2)))
2152 return 0;
2154 return 0;
2156 _ACEOF
2157 if ac_fn_c_try_compile "$LINENO"; then :
2159 else
2160 eval "$3=yes"
2162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 eval ac_res=\$$3
2167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2168 $as_echo "$ac_res" >&6; }
2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2171 } # ac_fn_c_check_type
2173 # ac_fn_c_check_func LINENO FUNC VAR
2174 # ----------------------------------
2175 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2176 ac_fn_c_check_func ()
2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2180 $as_echo_n "checking for $2... " >&6; }
2181 if eval \${$3+:} false; then :
2182 $as_echo_n "(cached) " >&6
2183 else
2184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2185 /* end confdefs.h. */
2186 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2187 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2188 #define $2 innocuous_$2
2190 /* System header to define __stub macros and hopefully few prototypes,
2191 which can conflict with char $2 (); below.
2192 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2193 <limits.h> exists even on freestanding compilers. */
2195 #ifdef __STDC__
2196 # include <limits.h>
2197 #else
2198 # include <assert.h>
2199 #endif
2201 #undef $2
2203 /* Override any GCC internal prototype to avoid an error.
2204 Use char because int might match the return type of a GCC
2205 builtin and then its argument prototype would still apply. */
2206 #ifdef __cplusplus
2207 extern "C"
2208 #endif
2209 char $2 ();
2210 /* The GNU C library defines this for functions which it implements
2211 to always fail with ENOSYS. Some functions are actually named
2212 something starting with __ and the normal name is an alias. */
2213 #if defined __stub_$2 || defined __stub___$2
2214 choke me
2215 #endif
2218 main ()
2220 return $2 ();
2222 return 0;
2224 _ACEOF
2225 if ac_fn_c_try_link "$LINENO"; then :
2226 eval "$3=yes"
2227 else
2228 eval "$3=no"
2230 rm -f core conftest.err conftest.$ac_objext \
2231 conftest$ac_exeext conftest.$ac_ext
2233 eval ac_res=\$$3
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235 $as_echo "$ac_res" >&6; }
2236 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2238 } # ac_fn_c_check_func
2239 cat >config.log <<_ACEOF
2240 This file contains any messages produced by compilers while
2241 running configure, to aid debugging if configure makes a mistake.
2243 It was created by $as_me, which was
2244 generated by GNU Autoconf 2.68. Invocation command line was
2246 $ $0 $@
2248 _ACEOF
2249 exec 5>>config.log
2251 cat <<_ASUNAME
2252 ## --------- ##
2253 ## Platform. ##
2254 ## --------- ##
2256 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2257 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2258 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2259 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2260 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2262 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2263 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2265 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2266 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2267 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2268 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2269 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2270 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2271 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2273 _ASUNAME
2275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276 for as_dir in $PATH
2278 IFS=$as_save_IFS
2279 test -z "$as_dir" && as_dir=.
2280 $as_echo "PATH: $as_dir"
2281 done
2282 IFS=$as_save_IFS
2284 } >&5
2286 cat >&5 <<_ACEOF
2289 ## ----------- ##
2290 ## Core tests. ##
2291 ## ----------- ##
2293 _ACEOF
2296 # Keep a trace of the command line.
2297 # Strip out --no-create and --no-recursion so they do not pile up.
2298 # Strip out --silent because we don't want to record it for future runs.
2299 # Also quote any args containing shell meta-characters.
2300 # Make two passes to allow for proper duplicate-argument suppression.
2301 ac_configure_args=
2302 ac_configure_args0=
2303 ac_configure_args1=
2304 ac_must_keep_next=false
2305 for ac_pass in 1 2
2307 for ac_arg
2309 case $ac_arg in
2310 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2312 | -silent | --silent | --silen | --sile | --sil)
2313 continue ;;
2314 *\'*)
2315 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2316 esac
2317 case $ac_pass in
2318 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2320 as_fn_append ac_configure_args1 " '$ac_arg'"
2321 if test $ac_must_keep_next = true; then
2322 ac_must_keep_next=false # Got value, back to normal.
2323 else
2324 case $ac_arg in
2325 *=* | --config-cache | -C | -disable-* | --disable-* \
2326 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2327 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2328 | -with-* | --with-* | -without-* | --without-* | --x)
2329 case "$ac_configure_args0 " in
2330 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2331 esac
2333 -* ) ac_must_keep_next=true ;;
2334 esac
2336 as_fn_append ac_configure_args " '$ac_arg'"
2338 esac
2339 done
2340 done
2341 { ac_configure_args0=; unset ac_configure_args0;}
2342 { ac_configure_args1=; unset ac_configure_args1;}
2344 # When interrupted or exit'd, cleanup temporary files, and complete
2345 # config.log. We remove comments because anyway the quotes in there
2346 # would cause problems or look ugly.
2347 # WARNING: Use '\'' to represent an apostrophe within the trap.
2348 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2349 trap 'exit_status=$?
2350 # Save into config.log some information that might help in debugging.
2352 echo
2354 $as_echo "## ---------------- ##
2355 ## Cache variables. ##
2356 ## ---------------- ##"
2357 echo
2358 # The following way of writing the cache mishandles newlines in values,
2360 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2361 eval ac_val=\$$ac_var
2362 case $ac_val in #(
2363 *${as_nl}*)
2364 case $ac_var in #(
2365 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2366 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2367 esac
2368 case $ac_var in #(
2369 _ | IFS | as_nl) ;; #(
2370 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2371 *) { eval $ac_var=; unset $ac_var;} ;;
2372 esac ;;
2373 esac
2374 done
2375 (set) 2>&1 |
2376 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2377 *${as_nl}ac_space=\ *)
2378 sed -n \
2379 "s/'\''/'\''\\\\'\'''\''/g;
2380 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2381 ;; #(
2383 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2385 esac |
2386 sort
2388 echo
2390 $as_echo "## ----------------- ##
2391 ## Output variables. ##
2392 ## ----------------- ##"
2393 echo
2394 for ac_var in $ac_subst_vars
2396 eval ac_val=\$$ac_var
2397 case $ac_val in
2398 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2399 esac
2400 $as_echo "$ac_var='\''$ac_val'\''"
2401 done | sort
2402 echo
2404 if test -n "$ac_subst_files"; then
2405 $as_echo "## ------------------- ##
2406 ## File substitutions. ##
2407 ## ------------------- ##"
2408 echo
2409 for ac_var in $ac_subst_files
2411 eval ac_val=\$$ac_var
2412 case $ac_val in
2413 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2414 esac
2415 $as_echo "$ac_var='\''$ac_val'\''"
2416 done | sort
2417 echo
2420 if test -s confdefs.h; then
2421 $as_echo "## ----------- ##
2422 ## confdefs.h. ##
2423 ## ----------- ##"
2424 echo
2425 cat confdefs.h
2426 echo
2428 test "$ac_signal" != 0 &&
2429 $as_echo "$as_me: caught signal $ac_signal"
2430 $as_echo "$as_me: exit $exit_status"
2431 } >&5
2432 rm -f core *.core core.conftest.* &&
2433 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2434 exit $exit_status
2436 for ac_signal in 1 2 13 15; do
2437 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2438 done
2439 ac_signal=0
2441 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2442 rm -f -r conftest* confdefs.h
2444 $as_echo "/* confdefs.h */" > confdefs.h
2446 # Predefined preprocessor variables.
2448 cat >>confdefs.h <<_ACEOF
2449 #define PACKAGE_NAME "$PACKAGE_NAME"
2450 _ACEOF
2452 cat >>confdefs.h <<_ACEOF
2453 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2454 _ACEOF
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2458 _ACEOF
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_STRING "$PACKAGE_STRING"
2462 _ACEOF
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2466 _ACEOF
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_URL "$PACKAGE_URL"
2470 _ACEOF
2473 # Let the site file select an alternate cache file if it wants to.
2474 # Prefer an explicitly selected file to automatically selected ones.
2475 ac_site_file1=NONE
2476 ac_site_file2=NONE
2477 if test -n "$CONFIG_SITE"; then
2478 # We do not want a PATH search for config.site.
2479 case $CONFIG_SITE in #((
2480 -*) ac_site_file1=./$CONFIG_SITE;;
2481 */*) ac_site_file1=$CONFIG_SITE;;
2482 *) ac_site_file1=./$CONFIG_SITE;;
2483 esac
2484 elif test "x$prefix" != xNONE; then
2485 ac_site_file1=$prefix/share/config.site
2486 ac_site_file2=$prefix/etc/config.site
2487 else
2488 ac_site_file1=$ac_default_prefix/share/config.site
2489 ac_site_file2=$ac_default_prefix/etc/config.site
2491 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2493 test "x$ac_site_file" = xNONE && continue
2494 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2496 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2497 sed 's/^/| /' "$ac_site_file" >&5
2498 . "$ac_site_file" \
2499 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501 as_fn_error $? "failed to load site script $ac_site_file
2502 See \`config.log' for more details" "$LINENO" 5; }
2504 done
2506 if test -r "$cache_file"; then
2507 # Some versions of bash will fail to source /dev/null (special files
2508 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2509 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2511 $as_echo "$as_me: loading cache $cache_file" >&6;}
2512 case $cache_file in
2513 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2514 *) . "./$cache_file";;
2515 esac
2517 else
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2519 $as_echo "$as_me: creating cache $cache_file" >&6;}
2520 >$cache_file
2523 as_fn_append ac_header_list " stdlib.h"
2524 as_fn_append ac_header_list " unistd.h"
2525 as_fn_append ac_header_list " sys/param.h"
2526 # Check that the precious variables saved in the cache have kept the same
2527 # value.
2528 ac_cache_corrupted=false
2529 for ac_var in $ac_precious_vars; do
2530 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2531 eval ac_new_set=\$ac_env_${ac_var}_set
2532 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2533 eval ac_new_val=\$ac_env_${ac_var}_value
2534 case $ac_old_set,$ac_new_set in
2535 set,)
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2537 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2538 ac_cache_corrupted=: ;;
2539 ,set)
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2541 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2542 ac_cache_corrupted=: ;;
2543 ,);;
2545 if test "x$ac_old_val" != "x$ac_new_val"; then
2546 # differences in whitespace do not lead to failure.
2547 ac_old_val_w=`echo x $ac_old_val`
2548 ac_new_val_w=`echo x $ac_new_val`
2549 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2551 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2552 ac_cache_corrupted=:
2553 else
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2555 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2556 eval $ac_var=\$ac_old_val
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2559 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2561 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2562 fi;;
2563 esac
2564 # Pass precious variables to config.status.
2565 if test "$ac_new_set" = set; then
2566 case $ac_new_val in
2567 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2568 *) ac_arg=$ac_var=$ac_new_val ;;
2569 esac
2570 case " $ac_configure_args " in
2571 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2572 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2573 esac
2575 done
2576 if $ac_cache_corrupted; then
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2580 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2581 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2583 ## -------------------- ##
2584 ## Main body of script. ##
2585 ## -------------------- ##
2587 ac_ext=c
2588 ac_cpp='$CPP $CPPFLAGS'
2589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2595 ac_aux_dir=
2596 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2597 if test -f "$ac_dir/install-sh"; then
2598 ac_aux_dir=$ac_dir
2599 ac_install_sh="$ac_aux_dir/install-sh -c"
2600 break
2601 elif test -f "$ac_dir/install.sh"; then
2602 ac_aux_dir=$ac_dir
2603 ac_install_sh="$ac_aux_dir/install.sh -c"
2604 break
2605 elif test -f "$ac_dir/shtool"; then
2606 ac_aux_dir=$ac_dir
2607 ac_install_sh="$ac_aux_dir/shtool install -c"
2608 break
2610 done
2611 if test -z "$ac_aux_dir"; then
2612 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2625 # Check what host we are running on.
2626 # If a target is not suggested, we use this one.
2627 # Note that what we call a target, Autoconf calls a host.
2628 # Make sure we can run config.sub.
2629 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2630 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2633 $as_echo_n "checking build system type... " >&6; }
2634 if ${ac_cv_build+:} false; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 ac_build_alias=$build_alias
2638 test "x$ac_build_alias" = x &&
2639 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2640 test "x$ac_build_alias" = x &&
2641 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2642 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2647 $as_echo "$ac_cv_build" >&6; }
2648 case $ac_cv_build in
2649 *-*-*) ;;
2650 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2651 esac
2652 build=$ac_cv_build
2653 ac_save_IFS=$IFS; IFS='-'
2654 set x $ac_cv_build
2655 shift
2656 build_cpu=$1
2657 build_vendor=$2
2658 shift; shift
2659 # Remember, the first character of IFS is used to create $*,
2660 # except with old shells:
2661 build_os=$*
2662 IFS=$ac_save_IFS
2663 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2667 $as_echo_n "checking host system type... " >&6; }
2668 if ${ac_cv_host+:} false; then :
2669 $as_echo_n "(cached) " >&6
2670 else
2671 if test "x$host_alias" = x; then
2672 ac_cv_host=$ac_cv_build
2673 else
2674 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2675 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2680 $as_echo "$ac_cv_host" >&6; }
2681 case $ac_cv_host in
2682 *-*-*) ;;
2683 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2684 esac
2685 host=$ac_cv_host
2686 ac_save_IFS=$IFS; IFS='-'
2687 set x $ac_cv_host
2688 shift
2689 host_cpu=$1
2690 host_vendor=$2
2691 shift; shift
2692 # Remember, the first character of IFS is used to create $*,
2693 # except with old shells:
2694 host_os=$*
2695 IFS=$ac_save_IFS
2696 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2700 # The AROS target is slightly different to the normal GNU style
2701 # format. We don't have the middle part, and we reverse the order
2702 # of the $(CPU) and $(OS) bits.
2704 # Don't strip the version of the target yet, it might be
2705 # useful on some systems.
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2708 $as_echo_n "checking for AROS style target... " >&6; }
2710 if test "$target" = "NONE" ; then
2711 target=$host_os-$host_cpu
2712 else
2713 if test "$target" = "" ; then
2714 target=$host_os-$host_cpu
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2718 $as_echo "$target" >&6; }
2720 if test "$host_os" = "mingw32" ; then
2721 PWDCMD="pwd -W"
2724 #don't know where else to put this...
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2726 $as_echo_n "checking building AROS in... " >&6; }
2727 AROS_BUILDDIR=`${PWDCMD-pwd}`
2728 AROS_BUILDDIR_UNIX=${PWD}
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2730 $as_echo "$AROS_BUILDDIR" >&6; }
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2733 $as_echo_n "checking AROS source in... " >&6; }
2734 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2735 SRCDIR=${srcpwd}
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2737 $as_echo "$SRCDIR" >&6; }
2739 # Parse the target field into something useful.
2741 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2742 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2745 aros_default_wbwidth=800
2746 aros_default_wbheight=600
2747 aros_default_wbdepth=4
2750 # The first step is to find the host binaries.
2751 # Check for a compiler.
2752 ac_ext=c
2753 ac_cpp='$CPP $CPPFLAGS'
2754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2757 if test -n "$ac_tool_prefix"; then
2758 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2759 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2761 $as_echo_n "checking for $ac_word... " >&6; }
2762 if ${ac_cv_prog_CC+:} false; then :
2763 $as_echo_n "(cached) " >&6
2764 else
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2771 IFS=$as_save_IFS
2772 test -z "$as_dir" && as_dir=.
2773 for ac_exec_ext in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777 break 2
2779 done
2780 done
2781 IFS=$as_save_IFS
2785 CC=$ac_cv_prog_CC
2786 if test -n "$CC"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2788 $as_echo "$CC" >&6; }
2789 else
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2791 $as_echo "no" >&6; }
2796 if test -z "$ac_cv_prog_CC"; then
2797 ac_ct_CC=$CC
2798 # Extract the first word of "gcc", so it can be a program name with args.
2799 set dummy gcc; ac_word=$2
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 $as_echo_n "checking for $ac_word... " >&6; }
2802 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test -n "$ac_ct_CC"; then
2806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2807 else
2808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809 for as_dir in $PATH
2811 IFS=$as_save_IFS
2812 test -z "$as_dir" && as_dir=.
2813 for ac_exec_ext in '' $ac_executable_extensions; do
2814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815 ac_cv_prog_ac_ct_CC="gcc"
2816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 break 2
2819 done
2820 done
2821 IFS=$as_save_IFS
2825 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2826 if test -n "$ac_ct_CC"; then
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2828 $as_echo "$ac_ct_CC" >&6; }
2829 else
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 $as_echo "no" >&6; }
2834 if test "x$ac_ct_CC" = x; then
2835 CC=""
2836 else
2837 case $cross_compiling:$ac_tool_warned in
2838 yes:)
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2841 ac_tool_warned=yes ;;
2842 esac
2843 CC=$ac_ct_CC
2845 else
2846 CC="$ac_cv_prog_CC"
2849 if test -z "$CC"; then
2850 if test -n "$ac_tool_prefix"; then
2851 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2852 set dummy ${ac_tool_prefix}cc; ac_word=$2
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2854 $as_echo_n "checking for $ac_word... " >&6; }
2855 if ${ac_cv_prog_CC+:} false; then :
2856 $as_echo_n "(cached) " >&6
2857 else
2858 if test -n "$CC"; then
2859 ac_cv_prog_CC="$CC" # Let the user override the test.
2860 else
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862 for as_dir in $PATH
2864 IFS=$as_save_IFS
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_CC="${ac_tool_prefix}cc"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2872 done
2873 done
2874 IFS=$as_save_IFS
2878 CC=$ac_cv_prog_CC
2879 if test -n "$CC"; then
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2881 $as_echo "$CC" >&6; }
2882 else
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2884 $as_echo "no" >&6; }
2890 if test -z "$CC"; then
2891 # Extract the first word of "cc", so it can be a program name with args.
2892 set dummy cc; ac_word=$2
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2894 $as_echo_n "checking for $ac_word... " >&6; }
2895 if ${ac_cv_prog_CC+:} false; then :
2896 $as_echo_n "(cached) " >&6
2897 else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900 else
2901 ac_prog_rejected=no
2902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2903 for as_dir in $PATH
2905 IFS=$as_save_IFS
2906 test -z "$as_dir" && as_dir=.
2907 for ac_exec_ext in '' $ac_executable_extensions; do
2908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2910 ac_prog_rejected=yes
2911 continue
2913 ac_cv_prog_CC="cc"
2914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2915 break 2
2917 done
2918 done
2919 IFS=$as_save_IFS
2921 if test $ac_prog_rejected = yes; then
2922 # We found a bogon in the path, so make sure we never use it.
2923 set dummy $ac_cv_prog_CC
2924 shift
2925 if test $# != 0; then
2926 # We chose a different compiler from the bogus one.
2927 # However, it has the same basename, so the bogon will be chosen
2928 # first if we set CC to just the basename; use the full file name.
2929 shift
2930 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2935 CC=$ac_cv_prog_CC
2936 if test -n "$CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2938 $as_echo "$CC" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2946 if test -z "$CC"; then
2947 if test -n "$ac_tool_prefix"; then
2948 for ac_prog in cl.exe
2950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if ${ac_cv_prog_CC+:} false; then :
2955 $as_echo_n "(cached) " >&6
2956 else
2957 if test -n "$CC"; then
2958 ac_cv_prog_CC="$CC" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2971 done
2972 done
2973 IFS=$as_save_IFS
2977 CC=$ac_cv_prog_CC
2978 if test -n "$CC"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2980 $as_echo "$CC" >&6; }
2981 else
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2987 test -n "$CC" && break
2988 done
2990 if test -z "$CC"; then
2991 ac_ct_CC=$CC
2992 for ac_prog in cl.exe
2994 # Extract the first word of "$ac_prog", so it can be a program name with args.
2995 set dummy $ac_prog; ac_word=$2
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2997 $as_echo_n "checking for $ac_word... " >&6; }
2998 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if test -n "$ac_ct_CC"; then
3002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3003 else
3004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3005 for as_dir in $PATH
3007 IFS=$as_save_IFS
3008 test -z "$as_dir" && as_dir=.
3009 for ac_exec_ext in '' $ac_executable_extensions; do
3010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3011 ac_cv_prog_ac_ct_CC="$ac_prog"
3012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3013 break 2
3015 done
3016 done
3017 IFS=$as_save_IFS
3021 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3022 if test -n "$ac_ct_CC"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3024 $as_echo "$ac_ct_CC" >&6; }
3025 else
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3027 $as_echo "no" >&6; }
3031 test -n "$ac_ct_CC" && break
3032 done
3034 if test "x$ac_ct_CC" = x; then
3035 CC=""
3036 else
3037 case $cross_compiling:$ac_tool_warned in
3038 yes:)
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041 ac_tool_warned=yes ;;
3042 esac
3043 CC=$ac_ct_CC
3050 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 as_fn_error $? "no acceptable C compiler found in \$PATH
3053 See \`config.log' for more details" "$LINENO" 5; }
3055 # Provide some information about the compiler.
3056 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3057 set X $ac_compile
3058 ac_compiler=$2
3059 for ac_option in --version -v -V -qversion; do
3060 { { ac_try="$ac_compiler $ac_option >&5"
3061 case "(($ac_try" in
3062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3063 *) ac_try_echo=$ac_try;;
3064 esac
3065 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3066 $as_echo "$ac_try_echo"; } >&5
3067 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3068 ac_status=$?
3069 if test -s conftest.err; then
3070 sed '10a\
3071 ... rest of stderr output deleted ...
3072 10q' conftest.err >conftest.er1
3073 cat conftest.er1 >&5
3075 rm -f conftest.er1 conftest.err
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077 test $ac_status = 0; }
3078 done
3080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081 /* end confdefs.h. */
3084 main ()
3088 return 0;
3090 _ACEOF
3091 ac_clean_files_save=$ac_clean_files
3092 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3093 # Try to create an executable without -o first, disregard a.out.
3094 # It will help us diagnose broken compilers, and finding out an intuition
3095 # of exeext.
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3097 $as_echo_n "checking whether the C compiler works... " >&6; }
3098 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3100 # The possible output files:
3101 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3103 ac_rmfiles=
3104 for ac_file in $ac_files
3106 case $ac_file in
3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3108 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3109 esac
3110 done
3111 rm -f $ac_rmfiles
3113 if { { ac_try="$ac_link_default"
3114 case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3117 esac
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_link_default") 2>&5
3121 ac_status=$?
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }; then :
3124 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3125 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3126 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3127 # so that the user can short-circuit this test for compilers unknown to
3128 # Autoconf.
3129 for ac_file in $ac_files ''
3131 test -f "$ac_file" || continue
3132 case $ac_file in
3133 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3135 [ab].out )
3136 # We found the default executable, but exeext='' is most
3137 # certainly right.
3138 break;;
3139 *.* )
3140 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3141 then :; else
3142 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3144 # We set ac_cv_exeext here because the later test for it is not
3145 # safe: cross compilers may not add the suffix if given an `-o'
3146 # argument, so we may need to know it at that point already.
3147 # Even if this section looks crufty: it has the advantage of
3148 # actually working.
3149 break;;
3151 break;;
3152 esac
3153 done
3154 test "$ac_cv_exeext" = no && ac_cv_exeext=
3156 else
3157 ac_file=''
3159 if test -z "$ac_file"; then :
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161 $as_echo "no" >&6; }
3162 $as_echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3167 as_fn_error 77 "C compiler cannot create executables
3168 See \`config.log' for more details" "$LINENO" 5; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3171 $as_echo "yes" >&6; }
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3174 $as_echo_n "checking for C compiler default output file name... " >&6; }
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3176 $as_echo "$ac_file" >&6; }
3177 ac_exeext=$ac_cv_exeext
3179 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3180 ac_clean_files=$ac_clean_files_save
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3182 $as_echo_n "checking for suffix of executables... " >&6; }
3183 if { { ac_try="$ac_link"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3189 $as_echo "$ac_try_echo"; } >&5
3190 (eval "$ac_link") 2>&5
3191 ac_status=$?
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }; then :
3194 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3195 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3196 # work properly (i.e., refer to `conftest.exe'), while it won't with
3197 # `rm'.
3198 for ac_file in conftest.exe conftest conftest.*; do
3199 test -f "$ac_file" || continue
3200 case $ac_file in
3201 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3202 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3203 break;;
3204 * ) break;;
3205 esac
3206 done
3207 else
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3211 See \`config.log' for more details" "$LINENO" 5; }
3213 rm -f conftest conftest$ac_cv_exeext
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3215 $as_echo "$ac_cv_exeext" >&6; }
3217 rm -f conftest.$ac_ext
3218 EXEEXT=$ac_cv_exeext
3219 ac_exeext=$EXEEXT
3220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3221 /* end confdefs.h. */
3222 #include <stdio.h>
3224 main ()
3226 FILE *f = fopen ("conftest.out", "w");
3227 return ferror (f) || fclose (f) != 0;
3230 return 0;
3232 _ACEOF
3233 ac_clean_files="$ac_clean_files conftest.out"
3234 # Check that the compiler produces executables we can run. If not, either
3235 # the compiler is broken, or we cross compile.
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3237 $as_echo_n "checking whether we are cross compiling... " >&6; }
3238 if test "$cross_compiling" != yes; then
3239 { { ac_try="$ac_link"
3240 case "(($ac_try" in
3241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3242 *) ac_try_echo=$ac_try;;
3243 esac
3244 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3245 $as_echo "$ac_try_echo"; } >&5
3246 (eval "$ac_link") 2>&5
3247 ac_status=$?
3248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3249 test $ac_status = 0; }
3250 if { ac_try='./conftest$ac_cv_exeext'
3251 { { case "(($ac_try" in
3252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3253 *) ac_try_echo=$ac_try;;
3254 esac
3255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3256 $as_echo "$ac_try_echo"; } >&5
3257 (eval "$ac_try") 2>&5
3258 ac_status=$?
3259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3260 test $ac_status = 0; }; }; then
3261 cross_compiling=no
3262 else
3263 if test "$cross_compiling" = maybe; then
3264 cross_compiling=yes
3265 else
3266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3268 as_fn_error $? "cannot run C compiled programs.
3269 If you meant to cross compile, use \`--host'.
3270 See \`config.log' for more details" "$LINENO" 5; }
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3275 $as_echo "$cross_compiling" >&6; }
3277 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3278 ac_clean_files=$ac_clean_files_save
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3280 $as_echo_n "checking for suffix of object files... " >&6; }
3281 if ${ac_cv_objext+:} false; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3288 main ()
3292 return 0;
3294 _ACEOF
3295 rm -f conftest.o conftest.obj
3296 if { { ac_try="$ac_compile"
3297 case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300 esac
3301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302 $as_echo "$ac_try_echo"; } >&5
3303 (eval "$ac_compile") 2>&5
3304 ac_status=$?
3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }; then :
3307 for ac_file in conftest.o conftest.obj conftest.*; do
3308 test -f "$ac_file" || continue;
3309 case $ac_file in
3310 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3311 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3312 break;;
3313 esac
3314 done
3315 else
3316 $as_echo "$as_me: failed program was:" >&5
3317 sed 's/^/| /' conftest.$ac_ext >&5
3319 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3321 as_fn_error $? "cannot compute suffix of object files: cannot compile
3322 See \`config.log' for more details" "$LINENO" 5; }
3324 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3327 $as_echo "$ac_cv_objext" >&6; }
3328 OBJEXT=$ac_cv_objext
3329 ac_objext=$OBJEXT
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3331 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3332 if ${ac_cv_c_compiler_gnu+:} false; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3339 main ()
3341 #ifndef __GNUC__
3342 choke me
3343 #endif
3346 return 0;
3348 _ACEOF
3349 if ac_fn_c_try_compile "$LINENO"; then :
3350 ac_compiler_gnu=yes
3351 else
3352 ac_compiler_gnu=no
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3359 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3360 if test $ac_compiler_gnu = yes; then
3361 GCC=yes
3362 else
3363 GCC=
3365 ac_test_CFLAGS=${CFLAGS+set}
3366 ac_save_CFLAGS=$CFLAGS
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3368 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3369 if ${ac_cv_prog_cc_g+:} false; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 ac_save_c_werror_flag=$ac_c_werror_flag
3373 ac_c_werror_flag=yes
3374 ac_cv_prog_cc_g=no
3375 CFLAGS="-g"
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3380 main ()
3384 return 0;
3386 _ACEOF
3387 if ac_fn_c_try_compile "$LINENO"; then :
3388 ac_cv_prog_cc_g=yes
3389 else
3390 CFLAGS=""
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3395 main ()
3399 return 0;
3401 _ACEOF
3402 if ac_fn_c_try_compile "$LINENO"; then :
3404 else
3405 ac_c_werror_flag=$ac_save_c_werror_flag
3406 CFLAGS="-g"
3407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3408 /* end confdefs.h. */
3411 main ()
3415 return 0;
3417 _ACEOF
3418 if ac_fn_c_try_compile "$LINENO"; then :
3419 ac_cv_prog_cc_g=yes
3421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3426 ac_c_werror_flag=$ac_save_c_werror_flag
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3429 $as_echo "$ac_cv_prog_cc_g" >&6; }
3430 if test "$ac_test_CFLAGS" = set; then
3431 CFLAGS=$ac_save_CFLAGS
3432 elif test $ac_cv_prog_cc_g = yes; then
3433 if test "$GCC" = yes; then
3434 CFLAGS="-g -O2"
3435 else
3436 CFLAGS="-g"
3438 else
3439 if test "$GCC" = yes; then
3440 CFLAGS="-O2"
3441 else
3442 CFLAGS=
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3446 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3447 if ${ac_cv_prog_cc_c89+:} false; then :
3448 $as_echo_n "(cached) " >&6
3449 else
3450 ac_cv_prog_cc_c89=no
3451 ac_save_CC=$CC
3452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454 #include <stdarg.h>
3455 #include <stdio.h>
3456 #include <sys/types.h>
3457 #include <sys/stat.h>
3458 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3459 struct buf { int x; };
3460 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3461 static char *e (p, i)
3462 char **p;
3463 int i;
3465 return p[i];
3467 static char *f (char * (*g) (char **, int), char **p, ...)
3469 char *s;
3470 va_list v;
3471 va_start (v,p);
3472 s = g (p, va_arg (v,int));
3473 va_end (v);
3474 return s;
3477 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3478 function prototypes and stuff, but not '\xHH' hex character constants.
3479 These don't provoke an error unfortunately, instead are silently treated
3480 as 'x'. The following induces an error, until -std is added to get
3481 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3482 array size at least. It's necessary to write '\x00'==0 to get something
3483 that's true only with -std. */
3484 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3486 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3487 inside strings and character constants. */
3488 #define FOO(x) 'x'
3489 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3491 int test (int i, double x);
3492 struct s1 {int (*f) (int a);};
3493 struct s2 {int (*f) (double a);};
3494 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3495 int argc;
3496 char **argv;
3498 main ()
3500 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3502 return 0;
3504 _ACEOF
3505 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3506 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3508 CC="$ac_save_CC $ac_arg"
3509 if ac_fn_c_try_compile "$LINENO"; then :
3510 ac_cv_prog_cc_c89=$ac_arg
3512 rm -f core conftest.err conftest.$ac_objext
3513 test "x$ac_cv_prog_cc_c89" != "xno" && break
3514 done
3515 rm -f conftest.$ac_ext
3516 CC=$ac_save_CC
3519 # AC_CACHE_VAL
3520 case "x$ac_cv_prog_cc_c89" in
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3523 $as_echo "none needed" >&6; } ;;
3524 xno)
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3526 $as_echo "unsupported" >&6; } ;;
3528 CC="$CC $ac_cv_prog_cc_c89"
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3530 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3531 esac
3532 if test "x$ac_cv_prog_cc_c89" != xno; then :
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 case $ac_cv_prog_cc_stdc in #(
3543 no) :
3544 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3545 *) :
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3547 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3548 if ${ac_cv_prog_cc_c99+:} false; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 ac_cv_prog_cc_c99=no
3552 ac_save_CC=$CC
3553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554 /* end confdefs.h. */
3555 #include <stdarg.h>
3556 #include <stdbool.h>
3557 #include <stdlib.h>
3558 #include <wchar.h>
3559 #include <stdio.h>
3561 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3562 #define debug(...) fprintf (stderr, __VA_ARGS__)
3563 #define showlist(...) puts (#__VA_ARGS__)
3564 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3565 static void
3566 test_varargs_macros (void)
3568 int x = 1234;
3569 int y = 5678;
3570 debug ("Flag");
3571 debug ("X = %d\n", x);
3572 showlist (The first, second, and third items.);
3573 report (x>y, "x is %d but y is %d", x, y);
3576 // Check long long types.
3577 #define BIG64 18446744073709551615ull
3578 #define BIG32 4294967295ul
3579 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3580 #if !BIG_OK
3581 your preprocessor is broken;
3582 #endif
3583 #if BIG_OK
3584 #else
3585 your preprocessor is broken;
3586 #endif
3587 static long long int bignum = -9223372036854775807LL;
3588 static unsigned long long int ubignum = BIG64;
3590 struct incomplete_array
3592 int datasize;
3593 double data[];
3596 struct named_init {
3597 int number;
3598 const wchar_t *name;
3599 double average;
3602 typedef const char *ccp;
3604 static inline int
3605 test_restrict (ccp restrict text)
3607 // See if C++-style comments work.
3608 // Iterate through items via the restricted pointer.
3609 // Also check for declarations in for loops.
3610 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3611 continue;
3612 return 0;
3615 // Check varargs and va_copy.
3616 static void
3617 test_varargs (const char *format, ...)
3619 va_list args;
3620 va_start (args, format);
3621 va_list args_copy;
3622 va_copy (args_copy, args);
3624 const char *str;
3625 int number;
3626 float fnumber;
3628 while (*format)
3630 switch (*format++)
3632 case 's': // string
3633 str = va_arg (args_copy, const char *);
3634 break;
3635 case 'd': // int
3636 number = va_arg (args_copy, int);
3637 break;
3638 case 'f': // float
3639 fnumber = va_arg (args_copy, double);
3640 break;
3641 default:
3642 break;
3645 va_end (args_copy);
3646 va_end (args);
3650 main ()
3653 // Check bool.
3654 _Bool success = false;
3656 // Check restrict.
3657 if (test_restrict ("String literal") == 0)
3658 success = true;
3659 char *restrict newvar = "Another string";
3661 // Check varargs.
3662 test_varargs ("s, d' f .", "string", 65, 34.234);
3663 test_varargs_macros ();
3665 // Check flexible array members.
3666 struct incomplete_array *ia =
3667 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3668 ia->datasize = 10;
3669 for (int i = 0; i < ia->datasize; ++i)
3670 ia->data[i] = i * 1.234;
3672 // Check named initializers.
3673 struct named_init ni = {
3674 .number = 34,
3675 .name = L"Test wide string",
3676 .average = 543.34343,
3679 ni.number = 58;
3681 int dynamic_array[ni.number];
3682 dynamic_array[ni.number - 1] = 543;
3684 // work around unused variable warnings
3685 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3686 || dynamic_array[ni.number - 1] != 543);
3689 return 0;
3691 _ACEOF
3692 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3694 CC="$ac_save_CC $ac_arg"
3695 if ac_fn_c_try_compile "$LINENO"; then :
3696 ac_cv_prog_cc_c99=$ac_arg
3698 rm -f core conftest.err conftest.$ac_objext
3699 test "x$ac_cv_prog_cc_c99" != "xno" && break
3700 done
3701 rm -f conftest.$ac_ext
3702 CC=$ac_save_CC
3705 # AC_CACHE_VAL
3706 case "x$ac_cv_prog_cc_c99" in
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3709 $as_echo "none needed" >&6; } ;;
3710 xno)
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3712 $as_echo "unsupported" >&6; } ;;
3714 CC="$CC $ac_cv_prog_cc_c99"
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3716 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3717 esac
3718 if test "x$ac_cv_prog_cc_c99" != xno; then :
3719 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3720 else
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3722 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3723 if ${ac_cv_prog_cc_c89+:} false; then :
3724 $as_echo_n "(cached) " >&6
3725 else
3726 ac_cv_prog_cc_c89=no
3727 ac_save_CC=$CC
3728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3729 /* end confdefs.h. */
3730 #include <stdarg.h>
3731 #include <stdio.h>
3732 #include <sys/types.h>
3733 #include <sys/stat.h>
3734 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3735 struct buf { int x; };
3736 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3737 static char *e (p, i)
3738 char **p;
3739 int i;
3741 return p[i];
3743 static char *f (char * (*g) (char **, int), char **p, ...)
3745 char *s;
3746 va_list v;
3747 va_start (v,p);
3748 s = g (p, va_arg (v,int));
3749 va_end (v);
3750 return s;
3753 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3754 function prototypes and stuff, but not '\xHH' hex character constants.
3755 These don't provoke an error unfortunately, instead are silently treated
3756 as 'x'. The following induces an error, until -std is added to get
3757 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3758 array size at least. It's necessary to write '\x00'==0 to get something
3759 that's true only with -std. */
3760 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3762 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3763 inside strings and character constants. */
3764 #define FOO(x) 'x'
3765 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3767 int test (int i, double x);
3768 struct s1 {int (*f) (int a);};
3769 struct s2 {int (*f) (double a);};
3770 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3771 int argc;
3772 char **argv;
3774 main ()
3776 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3778 return 0;
3780 _ACEOF
3781 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3782 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3784 CC="$ac_save_CC $ac_arg"
3785 if ac_fn_c_try_compile "$LINENO"; then :
3786 ac_cv_prog_cc_c89=$ac_arg
3788 rm -f core conftest.err conftest.$ac_objext
3789 test "x$ac_cv_prog_cc_c89" != "xno" && break
3790 done
3791 rm -f conftest.$ac_ext
3792 CC=$ac_save_CC
3795 # AC_CACHE_VAL
3796 case "x$ac_cv_prog_cc_c89" in
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3799 $as_echo "none needed" >&6; } ;;
3800 xno)
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3802 $as_echo "unsupported" >&6; } ;;
3804 CC="$CC $ac_cv_prog_cc_c89"
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3806 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3807 esac
3808 if test "x$ac_cv_prog_cc_c89" != xno; then :
3809 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3810 else
3811 ac_cv_prog_cc_stdc=no
3816 esac
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3818 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3819 if ${ac_cv_prog_cc_stdc+:} false; then :
3820 $as_echo_n "(cached) " >&6
3823 case $ac_cv_prog_cc_stdc in #(
3824 no) :
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3826 $as_echo "unsupported" >&6; } ;; #(
3827 '') :
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3829 $as_echo "none needed" >&6; } ;; #(
3830 *) :
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3832 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3833 esac
3835 ac_ext=cpp
3836 ac_cpp='$CXXCPP $CPPFLAGS'
3837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3840 if test -z "$CXX"; then
3841 if test -n "$CCC"; then
3842 CXX=$CCC
3843 else
3844 if test -n "$ac_tool_prefix"; then
3845 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3847 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3848 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850 $as_echo_n "checking for $ac_word... " >&6; }
3851 if ${ac_cv_prog_CXX+:} false; then :
3852 $as_echo_n "(cached) " >&6
3853 else
3854 if test -n "$CXX"; then
3855 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3870 IFS=$as_save_IFS
3874 CXX=$ac_cv_prog_CXX
3875 if test -n "$CXX"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3877 $as_echo "$CXX" >&6; }
3878 else
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3884 test -n "$CXX" && break
3885 done
3887 if test -z "$CXX"; then
3888 ac_ct_CXX=$CXX
3889 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3896 $as_echo_n "(cached) " >&6
3897 else
3898 if test -n "$ac_ct_CXX"; then
3899 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3900 else
3901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 for as_dir in $PATH
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
3907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3908 ac_cv_prog_ac_ct_CXX="$ac_prog"
3909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 break 2
3912 done
3913 done
3914 IFS=$as_save_IFS
3918 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3919 if test -n "$ac_ct_CXX"; then
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3921 $as_echo "$ac_ct_CXX" >&6; }
3922 else
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3928 test -n "$ac_ct_CXX" && break
3929 done
3931 if test "x$ac_ct_CXX" = x; then
3932 CXX="g++"
3933 else
3934 case $cross_compiling:$ac_tool_warned in
3935 yes:)
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3938 ac_tool_warned=yes ;;
3939 esac
3940 CXX=$ac_ct_CXX
3946 # Provide some information about the compiler.
3947 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3948 set X $ac_compile
3949 ac_compiler=$2
3950 for ac_option in --version -v -V -qversion; do
3951 { { ac_try="$ac_compiler $ac_option >&5"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3957 $as_echo "$ac_try_echo"; } >&5
3958 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3959 ac_status=$?
3960 if test -s conftest.err; then
3961 sed '10a\
3962 ... rest of stderr output deleted ...
3963 10q' conftest.err >conftest.er1
3964 cat conftest.er1 >&5
3966 rm -f conftest.er1 conftest.err
3967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3968 test $ac_status = 0; }
3969 done
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3972 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3973 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3974 $as_echo_n "(cached) " >&6
3975 else
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3980 main ()
3982 #ifndef __GNUC__
3983 choke me
3984 #endif
3987 return 0;
3989 _ACEOF
3990 if ac_fn_cxx_try_compile "$LINENO"; then :
3991 ac_compiler_gnu=yes
3992 else
3993 ac_compiler_gnu=no
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3996 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4000 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4001 if test $ac_compiler_gnu = yes; then
4002 GXX=yes
4003 else
4004 GXX=
4006 ac_test_CXXFLAGS=${CXXFLAGS+set}
4007 ac_save_CXXFLAGS=$CXXFLAGS
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4009 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4010 if ${ac_cv_prog_cxx_g+:} false; then :
4011 $as_echo_n "(cached) " >&6
4012 else
4013 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4014 ac_cxx_werror_flag=yes
4015 ac_cv_prog_cxx_g=no
4016 CXXFLAGS="-g"
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4021 main ()
4025 return 0;
4027 _ACEOF
4028 if ac_fn_cxx_try_compile "$LINENO"; then :
4029 ac_cv_prog_cxx_g=yes
4030 else
4031 CXXFLAGS=""
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4036 main ()
4040 return 0;
4042 _ACEOF
4043 if ac_fn_cxx_try_compile "$LINENO"; then :
4045 else
4046 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4047 CXXFLAGS="-g"
4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4049 /* end confdefs.h. */
4052 main ()
4056 return 0;
4058 _ACEOF
4059 if ac_fn_cxx_try_compile "$LINENO"; then :
4060 ac_cv_prog_cxx_g=yes
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4070 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4071 if test "$ac_test_CXXFLAGS" = set; then
4072 CXXFLAGS=$ac_save_CXXFLAGS
4073 elif test $ac_cv_prog_cxx_g = yes; then
4074 if test "$GXX" = yes; then
4075 CXXFLAGS="-g -O2"
4076 else
4077 CXXFLAGS="-g"
4079 else
4080 if test "$GXX" = yes; then
4081 CXXFLAGS="-O2"
4082 else
4083 CXXFLAGS=
4086 ac_ext=c
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4092 ac_ext=c
4093 ac_cpp='$CPP $CPPFLAGS'
4094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4098 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4099 # On Suns, sometimes $CPP names a directory.
4100 if test -n "$CPP" && test -d "$CPP"; then
4101 CPP=
4103 if test -z "$CPP"; then
4104 if ${ac_cv_prog_CPP+:} false; then :
4105 $as_echo_n "(cached) " >&6
4106 else
4107 # Double quotes because CPP needs to be expanded
4108 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4110 ac_preproc_ok=false
4111 for ac_c_preproc_warn_flag in '' yes
4113 # Use a header file that comes with gcc, so configuring glibc
4114 # with a fresh cross-compiler works.
4115 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4116 # <limits.h> exists even on freestanding compilers.
4117 # On the NeXT, cc -E runs the code through the compiler's parser,
4118 # not just through cpp. "Syntax error" is here to catch this case.
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4121 #ifdef __STDC__
4122 # include <limits.h>
4123 #else
4124 # include <assert.h>
4125 #endif
4126 Syntax error
4127 _ACEOF
4128 if ac_fn_c_try_cpp "$LINENO"; then :
4130 else
4131 # Broken: fails on valid input.
4132 continue
4134 rm -f conftest.err conftest.i conftest.$ac_ext
4136 # OK, works on sane cases. Now check whether nonexistent headers
4137 # can be detected and how.
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4140 #include <ac_nonexistent.h>
4141 _ACEOF
4142 if ac_fn_c_try_cpp "$LINENO"; then :
4143 # Broken: success on invalid input.
4144 continue
4145 else
4146 # Passes both tests.
4147 ac_preproc_ok=:
4148 break
4150 rm -f conftest.err conftest.i conftest.$ac_ext
4152 done
4153 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4154 rm -f conftest.i conftest.err conftest.$ac_ext
4155 if $ac_preproc_ok; then :
4156 break
4159 done
4160 ac_cv_prog_CPP=$CPP
4163 CPP=$ac_cv_prog_CPP
4164 else
4165 ac_cv_prog_CPP=$CPP
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4168 $as_echo "$CPP" >&6; }
4169 ac_preproc_ok=false
4170 for ac_c_preproc_warn_flag in '' yes
4172 # Use a header file that comes with gcc, so configuring glibc
4173 # with a fresh cross-compiler works.
4174 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4175 # <limits.h> exists even on freestanding compilers.
4176 # On the NeXT, cc -E runs the code through the compiler's parser,
4177 # not just through cpp. "Syntax error" is here to catch this case.
4178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4179 /* end confdefs.h. */
4180 #ifdef __STDC__
4181 # include <limits.h>
4182 #else
4183 # include <assert.h>
4184 #endif
4185 Syntax error
4186 _ACEOF
4187 if ac_fn_c_try_cpp "$LINENO"; then :
4189 else
4190 # Broken: fails on valid input.
4191 continue
4193 rm -f conftest.err conftest.i conftest.$ac_ext
4195 # OK, works on sane cases. Now check whether nonexistent headers
4196 # can be detected and how.
4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4198 /* end confdefs.h. */
4199 #include <ac_nonexistent.h>
4200 _ACEOF
4201 if ac_fn_c_try_cpp "$LINENO"; then :
4202 # Broken: success on invalid input.
4203 continue
4204 else
4205 # Passes both tests.
4206 ac_preproc_ok=:
4207 break
4209 rm -f conftest.err conftest.i conftest.$ac_ext
4211 done
4212 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4213 rm -f conftest.i conftest.err conftest.$ac_ext
4214 if $ac_preproc_ok; then :
4216 else
4217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4219 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4220 See \`config.log' for more details" "$LINENO" 5; }
4223 ac_ext=c
4224 ac_cpp='$CPP $CPPFLAGS'
4225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4230 # Check for a compatible awk
4231 for ac_prog in gawk nawk
4233 # Extract the first word of "$ac_prog", so it can be a program name with args.
4234 set dummy $ac_prog; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_prog_AWK+:} false; then :
4238 $as_echo_n "(cached) " >&6
4239 else
4240 if test -n "$AWK"; then
4241 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4242 else
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 ac_cv_prog_AWK="$ac_prog"
4251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4252 break 2
4254 done
4255 done
4256 IFS=$as_save_IFS
4260 AWK=$ac_cv_prog_AWK
4261 if test -n "$AWK"; then
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4263 $as_echo "$AWK" >&6; }
4264 else
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 $as_echo "no" >&6; }
4270 test -n "$AWK" && break
4271 done
4273 if test "$AWK" = ""; then
4274 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
4276 # Extract the first word of "mmake", so it can be a program name with args.
4277 set dummy mmake; ac_word=$2
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4279 $as_echo_n "checking for $ac_word... " >&6; }
4280 if ${ac_cv_prog_MMAKE+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 if test -n "$MMAKE"; then
4284 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
4285 else
4286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287 for as_dir in $PATH
4289 IFS=$as_save_IFS
4290 test -z "$as_dir" && as_dir=.
4291 for ac_exec_ext in '' $ac_executable_extensions; do
4292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293 ac_cv_prog_MMAKE="mmake "
4294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295 break 2
4297 done
4298 done
4299 IFS=$as_save_IFS
4303 MMAKE=$ac_cv_prog_MMAKE
4304 if test -n "$MMAKE"; then
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
4306 $as_echo "$MMAKE" >&6; }
4307 else
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4309 $as_echo "no" >&6; }
4314 # Perform some default variable assignments. Note all of these will be
4315 # Regenerated from the script, so there is no need to cache them.
4317 aros_host_cpp="$CPP"
4318 aros_host_cc="$CC"
4319 aros_host_cxx="$CXX"
4320 if test "$GCC" = "yes"; then
4321 aros_gcc_ld=`$CC -print-prog-name=ld`
4322 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
4323 set dummy `basename $aros_gcc_ld`; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if ${ac_cv_path_aros_host_ld+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 case $aros_host_ld in
4330 [\\/]* | ?:[\\/]*)
4331 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in `dirname $aros_gcc_ld`
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_exec_ext in '' $ac_executable_extensions; do
4340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4341 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 break 2
4345 done
4346 done
4347 IFS=$as_save_IFS
4350 esac
4352 aros_host_ld=$ac_cv_path_aros_host_ld
4353 if test -n "$aros_host_ld"; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4355 $as_echo "$aros_host_ld" >&6; }
4356 else
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4363 if test "$aros_host_ld" = ""; then
4364 # Extract the first word of "ld", so it can be a program name with args.
4365 set dummy ld; ac_word=$2
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367 $as_echo_n "checking for $ac_word... " >&6; }
4368 if ${ac_cv_path_aros_host_ld+:} false; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 case $aros_host_ld in
4372 [\\/]* | ?:[\\/]*)
4373 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4379 IFS=$as_save_IFS
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4385 break 2
4387 done
4388 done
4389 IFS=$as_save_IFS
4392 esac
4394 aros_host_ld=$ac_cv_path_aros_host_ld
4395 if test -n "$aros_host_ld"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4397 $as_echo "$aros_host_ld" >&6; }
4398 else
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4405 if test "$aros_host_ld" = ""; then
4406 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4408 aros_host_make="make"
4409 aros_host_cflags=$CFLAGS
4410 aros_host_cxxflags=$CXXFLAGS
4411 aros_host_ldflags=$LDFLAGS
4412 aros_host_debug="-g -O0"
4413 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4414 aros_host_mkargs="--no-print-directory"
4415 aros_host_exe_suffix="$EXEEXT"
4416 aros_host_lib_suffix=""
4418 # Ignore all compliance, AROS ROMs = 0
4419 # KickStart v1.0 = 30
4420 # KickStart v1.3 = 34
4421 # KickStart v2.0 = 37
4422 # KickStart v3.0 = 39
4423 # KickStart v3.1 = 40
4424 # AmigaOS v3.5 = 44
4425 aros_amigaos_compliance=0
4427 for ac_prog in aclocal aclocal19 aclocal-1.9
4429 # Extract the first word of "$ac_prog", so it can be a program name with args.
4430 set dummy $ac_prog; ac_word=$2
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4432 $as_echo_n "checking for $ac_word... " >&6; }
4433 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4434 $as_echo_n "(cached) " >&6
4435 else
4436 if test -n "$aros_host_aclocal"; then
4437 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4438 else
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 for as_dir in $PATH
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_exec_ext in '' $ac_executable_extensions; do
4445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4446 ac_cv_prog_aros_host_aclocal="$ac_prog"
4447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 break 2
4450 done
4451 done
4452 IFS=$as_save_IFS
4456 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4457 if test -n "$aros_host_aclocal"; then
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4459 $as_echo "$aros_host_aclocal" >&6; }
4460 else
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4462 $as_echo "no" >&6; }
4466 test -n "$aros_host_aclocal" && break
4467 done
4469 for ac_prog in autoconf autoconf259 autoconf253
4471 # Extract the first word of "$ac_prog", so it can be a program name with args.
4472 set dummy $ac_prog; ac_word=$2
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4474 $as_echo_n "checking for $ac_word... " >&6; }
4475 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4476 $as_echo_n "(cached) " >&6
4477 else
4478 if test -n "$aros_host_autoconf"; then
4479 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4480 else
4481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 for as_dir in $PATH
4484 IFS=$as_save_IFS
4485 test -z "$as_dir" && as_dir=.
4486 for ac_exec_ext in '' $ac_executable_extensions; do
4487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4488 ac_cv_prog_aros_host_autoconf="$ac_prog"
4489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 break 2
4492 done
4493 done
4494 IFS=$as_save_IFS
4498 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4499 if test -n "$aros_host_autoconf"; then
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4501 $as_echo "$aros_host_autoconf" >&6; }
4502 else
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 $as_echo "no" >&6; }
4508 test -n "$aros_host_autoconf" && break
4509 done
4511 for ac_prog in autoheader autoheader259 autoheader253
4513 # Extract the first word of "$ac_prog", so it can be a program name with args.
4514 set dummy $ac_prog; ac_word=$2
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4516 $as_echo_n "checking for $ac_word... " >&6; }
4517 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 if test -n "$aros_host_autoheader"; then
4521 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4522 else
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4530 ac_cv_prog_aros_host_autoheader="$ac_prog"
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4534 done
4535 done
4536 IFS=$as_save_IFS
4540 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4541 if test -n "$aros_host_autoheader"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4543 $as_echo "$aros_host_autoheader" >&6; }
4544 else
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4550 test -n "$aros_host_autoheader" && break
4551 done
4553 for ac_prog in automake automake19 automake-1.9
4555 # Extract the first word of "$ac_prog", so it can be a program name with args.
4556 set dummy $ac_prog; ac_word=$2
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 $as_echo_n "checking for $ac_word... " >&6; }
4559 if ${ac_cv_prog_aros_host_automake+:} false; then :
4560 $as_echo_n "(cached) " >&6
4561 else
4562 if test -n "$aros_host_automake"; then
4563 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4564 else
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH
4568 IFS=$as_save_IFS
4569 test -z "$as_dir" && as_dir=.
4570 for ac_exec_ext in '' $ac_executable_extensions; do
4571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4572 ac_cv_prog_aros_host_automake="$ac_prog"
4573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4574 break 2
4576 done
4577 done
4578 IFS=$as_save_IFS
4582 aros_host_automake=$ac_cv_prog_aros_host_automake
4583 if test -n "$aros_host_automake"; then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4585 $as_echo "$aros_host_automake" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo "no" >&6; }
4592 test -n "$aros_host_automake" && break
4593 done
4596 if test "$aros_host_aclocal" = ""; then
4597 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4599 if test "$aros_host_automake" = ""; then
4600 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4603 case "$aros_host_cc" in
4604 *gcc*)
4605 aros_host_cc_pipe="-pipe"
4607 icc)
4608 aros_host_cc_pipe=""
4611 aros_host_cc_pipe=""
4613 esac
4615 aros_kernel_cc_includes=""
4616 aros_target_cc_includes=""
4618 # ----------------------------------------------------------------------------------------
4619 # Host-specific defaults
4621 # This is the main host configuration section. It is where the host
4622 # can change the values of any variables it needs to change. We do
4623 # not look at anything that compiles to the target yet, we'll get
4624 # to that later.
4626 case "$host_os" in
4627 aros*)
4628 aros_host_arch="aros"
4629 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4630 case "$host_cpu" in
4631 *i?86*)
4632 aros_host_cpu="i386"
4634 *x86_64*)
4635 aros_host_cpu="x86_64"
4637 *powerpc*)
4638 aros_host_cpu="ppc"
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4642 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4643 aros_host_cpu="$host_cpu"
4645 esac
4648 linux*)
4649 aros_host_arch="linux"
4650 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4651 android_build_os="linux-x86"
4652 android_tool="android"
4653 default_android_sdk="/opt/android-sdk-linux_x86"
4654 case "$host_cpu" in
4655 *i?86*)
4656 aros_host_cpu="i386"
4658 *x86_64*)
4659 aros_host_cpu="x86_64"
4661 *m68k*)
4662 aros_host_cpu="m68k"
4664 *powerpc*)
4665 aros_host_cpu="ppc"
4667 *arm*)
4668 aros_host_cpu="arm"
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4672 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4673 aros_host_cpu="$host_cpu"
4675 esac
4678 freebsd*)
4679 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4680 aros_host_make="gmake"
4681 aros_host_arch="freebsd"
4682 aros_host_cpu="i386"
4684 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4686 case $host_os in
4687 freebsd[234]*)
4688 aros_object_format="elf_i386"
4692 aros_object_format="elf_i386_fbsd"
4694 esac
4698 darwin*)
4699 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4700 aros_host_arch="darwin"
4701 android_build_os="darwin-x86"
4702 android_tool="android"
4703 default_android_sdk="/android-sdk-mac_x86"
4704 case "$host_cpu" in
4705 *i?86*)
4706 aros_host_cpu="i386"
4708 *x86_64*)
4709 aros_host_cpu="x86_64"
4711 *powerpc*)
4712 aros_host_cpu="ppc"
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4716 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4717 aros_host_cpu="$host_cpu"
4719 esac
4721 aros_host_ldflags="$aros_host_ldflags -liconv"
4725 dragonfly*)
4726 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4727 aros_host_make="gmake"
4728 aros_host_arch="dragonfly"
4729 case $host_cpu in
4730 *i?86*)
4731 aros_host_cpu="i386"
4733 *amd64*)
4734 aros_host_cpu="x86_64"
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4738 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4739 aros_host_cpu="$host_cpu"
4741 esac
4744 netbsd*)
4745 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4746 aros_host_make="gmake"
4747 aros_host_arch="netbsd"
4748 case "$host_cpu" in
4749 *i?86*)
4750 aros_host_cpu="i386"
4752 *m68k*)
4753 aros_host_cpu="m68k"
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4757 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4758 aros_host_cpu="$host_cpu"
4760 esac
4761 aros_host_lib_suffix=".0.0"
4764 openbsd*)
4765 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4766 aros_host_make="gmake"
4767 aros_host_arch="openbsd"
4768 case "$host_cpu" in
4769 *i?86*)
4770 aros_host_cpu="i386"
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4774 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4775 aros_host_cpu="$host_cpu"
4777 esac
4780 solaris*)
4781 aros_host_arch="solaris"
4782 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4783 case "$host_cpu" in
4784 *i?86*)
4785 aros_host_cpu="i386"
4787 *sparc*)
4788 aros_host_cpu="sparc"
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4792 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4793 aros_host_cpu="$host_cpu"
4795 esac
4798 morphos*)
4799 aros_host_arch="morphos"
4800 aros_host_cpu="ppc"
4803 amiga*)
4804 aros_host_arch="amiga"
4805 SORT="/gg/bin/sort"
4806 TEST="/gg/bin/test"
4807 UNIQ="/gg/bin/uniq"
4808 FOR="for"
4809 TOUCH="/gg/bin/touch"
4810 case "$host_cpu" in
4811 *m68k*)
4812 aros_host_cpu="m68k"
4814 *powerpc*)
4815 aros_host_cpu="ppc"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4819 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4820 aros_host_cpu="$host_cpu"
4822 esac
4825 cygwin*)
4826 aros_host_arch="cygwin"
4827 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4828 android_build_os="windows"
4829 android_tool="android.bat"
4830 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4832 case "$host_cpu" in
4833 *i?86*)
4834 aros_host_cpu="i386"
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4838 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4839 aros_host_cpu="$host_cpu"
4841 esac
4844 mingw32*)
4845 aros_host_arch="mingw32"
4846 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4847 android_build_os="windows"
4848 android_tool="android.bat"
4849 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4851 case "$host_cpu" in
4852 *i?86*)
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Windows native gcc target" >&5
4855 $as_echo_n "checking for Windows native gcc target... " >&6; }
4856 host_cpu=`gcc -dumpmachine`
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $host_cpu" >&5
4858 $as_echo "$host_cpu" >&6; }
4861 esac
4863 case "$host_cpu" in
4864 *i?86*)
4865 aros_host_cpu="i386"
4868 *x86_64*)
4869 aros_host_cpu="x86_64"
4870 aros_host_cflags="$aros_host_cflags -isystem /mingw/include"
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4875 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4876 aros_host_cpu="$host_cpu"
4878 esac
4881 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4883 esac
4885 # Extract the first word of "ar", so it can be a program name with args.
4886 set dummy ar; ac_word=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4888 $as_echo_n "checking for $ac_word... " >&6; }
4889 if ${ac_cv_prog_aros_host_ar+:} false; then :
4890 $as_echo_n "(cached) " >&6
4891 else
4892 if test -n "$aros_host_ar"; then
4893 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4894 else
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4896 for as_dir in $PATH
4898 IFS=$as_save_IFS
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4902 ac_cv_prog_aros_host_ar="ar cr"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4904 break 2
4906 done
4907 done
4908 IFS=$as_save_IFS
4912 aros_host_ar=$ac_cv_prog_aros_host_ar
4913 if test -n "$aros_host_ar"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4915 $as_echo "$aros_host_ar" >&6; }
4916 else
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 $as_echo "no" >&6; }
4922 if test "$aros_host_ar" = ""; then
4923 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4925 # Extract the first word of "ranlib", so it can be a program name with args.
4926 set dummy ranlib; ac_word=$2
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4928 $as_echo_n "checking for $ac_word... " >&6; }
4929 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4930 $as_echo_n "(cached) " >&6
4931 else
4932 if test -n "$aros_host_ranlib"; then
4933 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 for ac_exec_ext in '' $ac_executable_extensions; do
4941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4942 ac_cv_prog_aros_host_ranlib="ranlib "
4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4944 break 2
4946 done
4947 done
4948 IFS=$as_save_IFS
4952 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4953 if test -n "$aros_host_ranlib"; then
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4955 $as_echo "$aros_host_ranlib" >&6; }
4956 else
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4958 $as_echo "no" >&6; }
4962 if test "$aros_host_ranlib" = ""; then
4963 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4965 # Extract the first word of "strip", so it can be a program name with args.
4966 set dummy strip; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if ${ac_cv_prog_aros_host_strip+:} false; then :
4970 $as_echo_n "(cached) " >&6
4971 else
4972 if test -n "$aros_host_strip"; then
4973 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_prog_aros_host_strip="strip "
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 break 2
4986 done
4987 done
4988 IFS=$as_save_IFS
4992 aros_host_strip=$ac_cv_prog_aros_host_strip
4993 if test -n "$aros_host_strip"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4995 $as_echo "$aros_host_strip" >&6; }
4996 else
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5002 if test "$aros_host_strip" = ""; then
5003 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
5006 # Extract the first word of "rm", so it can be a program name with args.
5007 set dummy rm; ac_word=$2
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5009 $as_echo_n "checking for $ac_word... " >&6; }
5010 if ${ac_cv_prog_RM+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -n "$RM"; then
5014 ac_cv_prog_RM="$RM" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_RM="rm -rf"
5024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5027 done
5028 done
5029 IFS=$as_save_IFS
5033 RM=$ac_cv_prog_RM
5034 if test -n "$RM"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5036 $as_echo "$RM" >&6; }
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5043 if test "$RM" = ""; then
5044 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
5046 # Extract the first word of "cp", so it can be a program name with args.
5047 set dummy cp; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_CP+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$CP"; then
5054 ac_cv_prog_CP="$CP" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_CP="cp "
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5067 done
5068 done
5069 IFS=$as_save_IFS
5073 CP=$ac_cv_prog_CP
5074 if test -n "$CP"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5076 $as_echo "$CP" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5083 if test "$CP" = ""; then
5084 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
5086 # Extract the first word of "mv", so it can be a program name with args.
5087 set dummy mv; ac_word=$2
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5089 $as_echo_n "checking for $ac_word... " >&6; }
5090 if ${ac_cv_prog_MV+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -n "$MV"; then
5094 ac_cv_prog_MV="$MV" # Let the user override the test.
5095 else
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103 ac_cv_prog_MV="mv "
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5107 done
5108 done
5109 IFS=$as_save_IFS
5113 MV=$ac_cv_prog_MV
5114 if test -n "$MV"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5116 $as_echo "$MV" >&6; }
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5123 if test "$MV" = ""; then
5124 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
5126 # Extract the first word of "echo", so it can be a program name with args.
5127 set dummy echo; ac_word=$2
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5129 $as_echo_n "checking for $ac_word... " >&6; }
5130 if ${ac_cv_prog_ECHO+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if test -n "$ECHO"; then
5134 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
5135 else
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137 for as_dir in $PATH
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
5141 for ac_exec_ext in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_prog_ECHO="echo "
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5145 break 2
5147 done
5148 done
5149 IFS=$as_save_IFS
5153 ECHO=$ac_cv_prog_ECHO
5154 if test -n "$ECHO"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5156 $as_echo "$ECHO" >&6; }
5157 else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5163 if test "$ECHO" = ""; then
5164 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
5166 # Extract the first word of "mkdir", so it can be a program name with args.
5167 set dummy mkdir; ac_word=$2
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5169 $as_echo_n "checking for $ac_word... " >&6; }
5170 if ${ac_cv_prog_MKDIR+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 if test -n "$MKDIR"; then
5174 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
5175 else
5176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5177 for as_dir in $PATH
5179 IFS=$as_save_IFS
5180 test -z "$as_dir" && as_dir=.
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183 ac_cv_prog_MKDIR="mkdir -p"
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5185 break 2
5187 done
5188 done
5189 IFS=$as_save_IFS
5193 MKDIR=$ac_cv_prog_MKDIR
5194 if test -n "$MKDIR"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5196 $as_echo "$MKDIR" >&6; }
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5203 if test "$MKDIR" = ""; then
5204 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
5206 # Extract the first word of "touch", so it can be a program name with args.
5207 set dummy touch; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if ${ac_cv_prog_TOUCH+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if test -n "$TOUCH"; then
5214 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
5215 else
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 for as_dir in $PATH
5219 IFS=$as_save_IFS
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_TOUCH="touch "
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5225 break 2
5227 done
5228 done
5229 IFS=$as_save_IFS
5233 TOUCH=$ac_cv_prog_TOUCH
5234 if test -n "$TOUCH"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5236 $as_echo "$TOUCH" >&6; }
5237 else
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5243 if test "$TOUCH" = ""; then
5244 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
5246 # Extract the first word of "sort", so it can be a program name with args.
5247 set dummy sort; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if ${ac_cv_prog_SORT+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if test -n "$SORT"; then
5254 ac_cv_prog_SORT="$SORT" # Let the user override the test.
5255 else
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_SORT="sort "
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5267 done
5268 done
5269 IFS=$as_save_IFS
5273 SORT=$ac_cv_prog_SORT
5274 if test -n "$SORT"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
5276 $as_echo "$SORT" >&6; }
5277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5283 if test "$SORT" = ""; then
5284 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
5286 # Extract the first word of "uniq", so it can be a program name with args.
5287 set dummy uniq; ac_word=$2
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5289 $as_echo_n "checking for $ac_word... " >&6; }
5290 if ${ac_cv_prog_UNIQ+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 if test -n "$UNIQ"; then
5294 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
5295 else
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_prog_UNIQ="uniq "
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
5313 UNIQ=$ac_cv_prog_UNIQ
5314 if test -n "$UNIQ"; then
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
5316 $as_echo "$UNIQ" >&6; }
5317 else
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319 $as_echo "no" >&6; }
5323 if test "$UNIQ" = ""; then
5324 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
5326 # Extract the first word of "true", so it can be a program name with args.
5327 set dummy true; ac_word=$2
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5329 $as_echo_n "checking for $ac_word... " >&6; }
5330 if ${ac_cv_prog_NOP+:} false; then :
5331 $as_echo_n "(cached) " >&6
5332 else
5333 if test -n "$NOP"; then
5334 ac_cv_prog_NOP="$NOP" # Let the user override the test.
5335 else
5336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5337 for as_dir in $PATH
5339 IFS=$as_save_IFS
5340 test -z "$as_dir" && as_dir=.
5341 for ac_exec_ext in '' $ac_executable_extensions; do
5342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343 ac_cv_prog_NOP="true "
5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5345 break 2
5347 done
5348 done
5349 IFS=$as_save_IFS
5353 NOP=$ac_cv_prog_NOP
5354 if test -n "$NOP"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5356 $as_echo "$NOP" >&6; }
5357 else
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5363 if test "$NOP" = ""; then
5364 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5366 # Extract the first word of "cat", so it can be a program name with args.
5367 set dummy cat; ac_word=$2
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5369 $as_echo_n "checking for $ac_word... " >&6; }
5370 if ${ac_cv_prog_CAT+:} false; then :
5371 $as_echo_n "(cached) " >&6
5372 else
5373 if test -n "$CAT"; then
5374 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5375 else
5376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5377 for as_dir in $PATH
5379 IFS=$as_save_IFS
5380 test -z "$as_dir" && as_dir=.
5381 for ac_exec_ext in '' $ac_executable_extensions; do
5382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5383 ac_cv_prog_CAT="cat "
5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5385 break 2
5387 done
5388 done
5389 IFS=$as_save_IFS
5393 CAT=$ac_cv_prog_CAT
5394 if test -n "$CAT"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5396 $as_echo "$CAT" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5403 if test "$CAT" = ""; then
5404 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5406 # Extract the first word of "bison", so it can be a program name with args.
5407 set dummy bison; ac_word=$2
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5409 $as_echo_n "checking for $ac_word... " >&6; }
5410 if ${ac_cv_prog_BISON+:} false; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 if test -n "$BISON"; then
5414 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5415 else
5416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5417 for as_dir in $PATH
5419 IFS=$as_save_IFS
5420 test -z "$as_dir" && as_dir=.
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423 ac_cv_prog_BISON="bison "
5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5425 break 2
5427 done
5428 done
5429 IFS=$as_save_IFS
5433 BISON=$ac_cv_prog_BISON
5434 if test -n "$BISON"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5436 $as_echo "$BISON" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5443 if test "$BISON" = ""; then
5444 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5446 # Extract the first word of "flex", so it can be a program name with args.
5447 set dummy flex; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if ${ac_cv_prog_FLEX+:} false; then :
5451 $as_echo_n "(cached) " >&6
5452 else
5453 if test -n "$FLEX"; then
5454 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5455 else
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457 for as_dir in $PATH
5459 IFS=$as_save_IFS
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463 ac_cv_prog_FLEX="flex "
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5465 break 2
5467 done
5468 done
5469 IFS=$as_save_IFS
5473 FLEX=$ac_cv_prog_FLEX
5474 if test -n "$FLEX"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5476 $as_echo "$FLEX" >&6; }
5477 else
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5483 if test "$FLEX" = ""; then
5484 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5486 # Extract the first word of "pngtopnm", so it can be a program name with args.
5487 set dummy pngtopnm; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492 else
5493 if test -n "$PNGTOPNM"; then
5494 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5495 else
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 for as_dir in $PATH
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_prog_PNGTOPNM="pngtopnm "
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5507 done
5508 done
5509 IFS=$as_save_IFS
5513 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5514 if test -n "$PNGTOPNM"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5516 $as_echo "$PNGTOPNM" >&6; }
5517 else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5523 if test "$PNGTOPNM" = ""; then
5524 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5526 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5527 set dummy ppmtoilbm; ac_word=$2
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 $as_echo_n "checking for $ac_word... " >&6; }
5530 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5531 $as_echo_n "(cached) " >&6
5532 else
5533 if test -n "$PPMTOILBM"; then
5534 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5535 else
5536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537 for as_dir in $PATH
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5543 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 break 2
5547 done
5548 done
5549 IFS=$as_save_IFS
5553 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5554 if test -n "$PPMTOILBM"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5556 $as_echo "$PPMTOILBM" >&6; }
5557 else
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5563 if test "$PPMTOILBM" = ""; then
5564 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5566 # Extract the first word of "sed", so it can be a program name with args.
5567 set dummy sed; ac_word=$2
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5569 $as_echo_n "checking for $ac_word... " >&6; }
5570 if ${ac_cv_prog_SED+:} false; then :
5571 $as_echo_n "(cached) " >&6
5572 else
5573 if test -n "$SED"; then
5574 ac_cv_prog_SED="$SED" # Let the user override the test.
5575 else
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 for as_dir in $PATH
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583 ac_cv_prog_SED="sed "
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5587 done
5588 done
5589 IFS=$as_save_IFS
5593 SED=$ac_cv_prog_SED
5594 if test -n "$SED"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5596 $as_echo "$SED" >&6; }
5597 else
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5603 if test "$SED" = ""; then
5604 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5606 # Extract the first word of "chmod", so it can be a program name with args.
5607 set dummy chmod; ac_word=$2
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5609 $as_echo_n "checking for $ac_word... " >&6; }
5610 if ${ac_cv_prog_CHMOD+:} false; then :
5611 $as_echo_n "(cached) " >&6
5612 else
5613 if test -n "$CHMOD"; then
5614 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5615 else
5616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5619 IFS=$as_save_IFS
5620 test -z "$as_dir" && as_dir=.
5621 for ac_exec_ext in '' $ac_executable_extensions; do
5622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5623 ac_cv_prog_CHMOD="chmod "
5624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625 break 2
5627 done
5628 done
5629 IFS=$as_save_IFS
5633 CHMOD=$ac_cv_prog_CHMOD
5634 if test -n "$CHMOD"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5636 $as_echo "$CHMOD" >&6; }
5637 else
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }
5643 if test "$CHMOD" = ""; then
5644 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5646 # Extract the first word of "patch", so it can be a program name with args.
5647 set dummy patch; ac_word=$2
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649 $as_echo_n "checking for $ac_word... " >&6; }
5650 if ${ac_cv_prog_PATCH+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 if test -n "$PATCH"; then
5654 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5655 else
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5659 IFS=$as_save_IFS
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5663 ac_cv_prog_PATCH="patch "
5664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 break 2
5667 done
5668 done
5669 IFS=$as_save_IFS
5673 PATCH=$ac_cv_prog_PATCH
5674 if test -n "$PATCH"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5676 $as_echo "$PATCH" >&6; }
5677 else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5683 if test "$PATCH" = ""; then
5684 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5691 if test -n "$PYTHON"; then
5692 # If the user set $PYTHON, use it and don't search something else.
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5694 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5695 prog="import sys, string
5696 # split strings by '.' and convert to numeric. Append some zeros
5697 # because we need at least 4 digits for the hex conversion.
5698 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5699 minverhex = 0
5700 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5701 sys.exit(sys.hexversion < minverhex)"
5702 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5703 ($PYTHON -c "$prog") >&5 2>&5
5704 ac_status=$?
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); }; then :
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5708 $as_echo "yes" >&6; }
5709 else
5710 as_fn_error $? "too old" "$LINENO" 5
5712 am_display_PYTHON=$PYTHON
5713 else
5714 # Otherwise, try each interpreter until we find one that satisfies
5715 # VERSION.
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5717 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5718 if ${am_cv_pathless_PYTHON+:} false; then :
5719 $as_echo_n "(cached) " >&6
5720 else
5722 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
5723 test "$am_cv_pathless_PYTHON" = none && break
5724 prog="import sys, string
5725 # split strings by '.' and convert to numeric. Append some zeros
5726 # because we need at least 4 digits for the hex conversion.
5727 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5728 minverhex = 0
5729 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5730 sys.exit(sys.hexversion < minverhex)"
5731 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5732 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5733 ac_status=$?
5734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735 (exit $ac_status); }; then :
5736 break
5738 done
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5741 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5742 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5743 if test "$am_cv_pathless_PYTHON" = none; then
5744 PYTHON=:
5745 else
5746 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5747 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749 $as_echo_n "checking for $ac_word... " >&6; }
5750 if ${ac_cv_path_PYTHON+:} false; then :
5751 $as_echo_n "(cached) " >&6
5752 else
5753 case $PYTHON in
5754 [\\/]* | ?:[\\/]*)
5755 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759 for as_dir in $PATH
5761 IFS=$as_save_IFS
5762 test -z "$as_dir" && as_dir=.
5763 for ac_exec_ext in '' $ac_executable_extensions; do
5764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5765 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 break 2
5769 done
5770 done
5771 IFS=$as_save_IFS
5774 esac
5776 PYTHON=$ac_cv_path_PYTHON
5777 if test -n "$PYTHON"; then
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5779 $as_echo "$PYTHON" >&6; }
5780 else
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5782 $as_echo "no" >&6; }
5787 am_display_PYTHON=$am_cv_pathless_PYTHON
5791 if test "$PYTHON" = :; then
5792 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5793 else
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5797 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5798 if ${am_cv_python_version+:} false; then :
5799 $as_echo_n "(cached) " >&6
5800 else
5801 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5804 $as_echo "$am_cv_python_version" >&6; }
5805 PYTHON_VERSION=$am_cv_python_version
5809 PYTHON_PREFIX='${prefix}'
5811 PYTHON_EXEC_PREFIX='${exec_prefix}'
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5816 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5817 if ${am_cv_python_platform+:} false; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5823 $as_echo "$am_cv_python_platform" >&6; }
5824 PYTHON_PLATFORM=$am_cv_python_platform
5829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5830 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5831 if ${am_cv_python_pythondir+:} false; then :
5832 $as_echo_n "(cached) " >&6
5833 else
5834 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5835 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5838 $as_echo "$am_cv_python_pythondir" >&6; }
5839 pythondir=$am_cv_python_pythondir
5843 pkgpythondir=\${pythondir}/$PACKAGE
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5847 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5848 if ${am_cv_python_pyexecdir+:} false; then :
5849 $as_echo_n "(cached) " >&6
5850 else
5851 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5852 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5855 $as_echo "$am_cv_python_pyexecdir" >&6; }
5856 pyexecdir=$am_cv_python_pyexecdir
5860 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5868 FOR=for
5870 IF=if
5872 TEST=test
5874 CMP=cmp
5878 # Check for some includes for the X11 HIDD and the kernel
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5882 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5883 if ${ac_cv_path_GREP+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 if test -z "$GREP"; then
5887 ac_path_GREP_found=false
5888 # Loop through the user's path and test for each of PROGNAME-LIST
5889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5890 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5892 IFS=$as_save_IFS
5893 test -z "$as_dir" && as_dir=.
5894 for ac_prog in grep ggrep; do
5895 for ac_exec_ext in '' $ac_executable_extensions; do
5896 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5897 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5898 # Check for GNU ac_path_GREP and select it if it is found.
5899 # Check for GNU $ac_path_GREP
5900 case `"$ac_path_GREP" --version 2>&1` in
5901 *GNU*)
5902 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5904 ac_count=0
5905 $as_echo_n 0123456789 >"conftest.in"
5906 while :
5908 cat "conftest.in" "conftest.in" >"conftest.tmp"
5909 mv "conftest.tmp" "conftest.in"
5910 cp "conftest.in" "conftest.nl"
5911 $as_echo 'GREP' >> "conftest.nl"
5912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5913 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5914 as_fn_arith $ac_count + 1 && ac_count=$as_val
5915 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5916 # Best one so far, save it but keep looking for a better one
5917 ac_cv_path_GREP="$ac_path_GREP"
5918 ac_path_GREP_max=$ac_count
5920 # 10*(2^10) chars as input seems more than enough
5921 test $ac_count -gt 10 && break
5922 done
5923 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5924 esac
5926 $ac_path_GREP_found && break 3
5927 done
5928 done
5929 done
5930 IFS=$as_save_IFS
5931 if test -z "$ac_cv_path_GREP"; then
5932 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5934 else
5935 ac_cv_path_GREP=$GREP
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5940 $as_echo "$ac_cv_path_GREP" >&6; }
5941 GREP="$ac_cv_path_GREP"
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5945 $as_echo_n "checking for egrep... " >&6; }
5946 if ${ac_cv_path_EGREP+:} false; then :
5947 $as_echo_n "(cached) " >&6
5948 else
5949 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5950 then ac_cv_path_EGREP="$GREP -E"
5951 else
5952 if test -z "$EGREP"; then
5953 ac_path_EGREP_found=false
5954 # Loop through the user's path and test for each of PROGNAME-LIST
5955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5956 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5958 IFS=$as_save_IFS
5959 test -z "$as_dir" && as_dir=.
5960 for ac_prog in egrep; do
5961 for ac_exec_ext in '' $ac_executable_extensions; do
5962 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5963 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5964 # Check for GNU ac_path_EGREP and select it if it is found.
5965 # Check for GNU $ac_path_EGREP
5966 case `"$ac_path_EGREP" --version 2>&1` in
5967 *GNU*)
5968 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5970 ac_count=0
5971 $as_echo_n 0123456789 >"conftest.in"
5972 while :
5974 cat "conftest.in" "conftest.in" >"conftest.tmp"
5975 mv "conftest.tmp" "conftest.in"
5976 cp "conftest.in" "conftest.nl"
5977 $as_echo 'EGREP' >> "conftest.nl"
5978 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5979 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5980 as_fn_arith $ac_count + 1 && ac_count=$as_val
5981 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5982 # Best one so far, save it but keep looking for a better one
5983 ac_cv_path_EGREP="$ac_path_EGREP"
5984 ac_path_EGREP_max=$ac_count
5986 # 10*(2^10) chars as input seems more than enough
5987 test $ac_count -gt 10 && break
5988 done
5989 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5990 esac
5992 $ac_path_EGREP_found && break 3
5993 done
5994 done
5995 done
5996 IFS=$as_save_IFS
5997 if test -z "$ac_cv_path_EGREP"; then
5998 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6000 else
6001 ac_cv_path_EGREP=$EGREP
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6007 $as_echo "$ac_cv_path_EGREP" >&6; }
6008 EGREP="$ac_cv_path_EGREP"
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6012 $as_echo_n "checking for ANSI C header files... " >&6; }
6013 if ${ac_cv_header_stdc+:} false; then :
6014 $as_echo_n "(cached) " >&6
6015 else
6016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017 /* end confdefs.h. */
6018 #include <stdlib.h>
6019 #include <stdarg.h>
6020 #include <string.h>
6021 #include <float.h>
6024 main ()
6028 return 0;
6030 _ACEOF
6031 if ac_fn_c_try_compile "$LINENO"; then :
6032 ac_cv_header_stdc=yes
6033 else
6034 ac_cv_header_stdc=no
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 if test $ac_cv_header_stdc = yes; then
6039 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6041 /* end confdefs.h. */
6042 #include <string.h>
6044 _ACEOF
6045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6046 $EGREP "memchr" >/dev/null 2>&1; then :
6048 else
6049 ac_cv_header_stdc=no
6051 rm -f conftest*
6055 if test $ac_cv_header_stdc = yes; then
6056 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6059 #include <stdlib.h>
6061 _ACEOF
6062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6063 $EGREP "free" >/dev/null 2>&1; then :
6065 else
6066 ac_cv_header_stdc=no
6068 rm -f conftest*
6072 if test $ac_cv_header_stdc = yes; then
6073 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6074 if test "$cross_compiling" = yes; then :
6076 else
6077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6078 /* end confdefs.h. */
6079 #include <ctype.h>
6080 #include <stdlib.h>
6081 #if ((' ' & 0x0FF) == 0x020)
6082 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6083 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6084 #else
6085 # define ISLOWER(c) \
6086 (('a' <= (c) && (c) <= 'i') \
6087 || ('j' <= (c) && (c) <= 'r') \
6088 || ('s' <= (c) && (c) <= 'z'))
6089 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6090 #endif
6092 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6094 main ()
6096 int i;
6097 for (i = 0; i < 256; i++)
6098 if (XOR (islower (i), ISLOWER (i))
6099 || toupper (i) != TOUPPER (i))
6100 return 2;
6101 return 0;
6103 _ACEOF
6104 if ac_fn_c_try_run "$LINENO"; then :
6106 else
6107 ac_cv_header_stdc=no
6109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6110 conftest.$ac_objext conftest.beam conftest.$ac_ext
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6116 $as_echo "$ac_cv_header_stdc" >&6; }
6117 if test $ac_cv_header_stdc = yes; then
6119 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6123 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6124 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6125 inttypes.h stdint.h unistd.h
6126 do :
6127 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6128 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6130 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6131 cat >>confdefs.h <<_ACEOF
6132 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6133 _ACEOF
6137 done
6140 for ac_header in sys/ipc.h sys/shm.h \
6141 sys/mmap.h sys/mman.h sysexits.h \
6142 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
6144 do :
6145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6146 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6147 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6148 cat >>confdefs.h <<_ACEOF
6149 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6150 _ACEOF
6154 done
6157 for ac_header in sys/mount.h
6158 do :
6159 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
6161 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
6162 cat >>confdefs.h <<_ACEOF
6163 #define HAVE_SYS_MOUNT_H 1
6164 _ACEOF
6168 done
6171 ac_header_dirent=no
6172 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6173 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6175 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6176 if eval \${$as_ac_Header+:} false; then :
6177 $as_echo_n "(cached) " >&6
6178 else
6179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6180 /* end confdefs.h. */
6181 #include <sys/types.h>
6182 #include <$ac_hdr>
6185 main ()
6187 if ((DIR *) 0)
6188 return 0;
6190 return 0;
6192 _ACEOF
6193 if ac_fn_c_try_compile "$LINENO"; then :
6194 eval "$as_ac_Header=yes"
6195 else
6196 eval "$as_ac_Header=no"
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 eval ac_res=\$$as_ac_Header
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6202 $as_echo "$ac_res" >&6; }
6203 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6204 cat >>confdefs.h <<_ACEOF
6205 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6206 _ACEOF
6208 ac_header_dirent=$ac_hdr; break
6211 done
6212 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6213 if test $ac_header_dirent = dirent.h; then
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6215 $as_echo_n "checking for library containing opendir... " >&6; }
6216 if ${ac_cv_search_opendir+:} false; then :
6217 $as_echo_n "(cached) " >&6
6218 else
6219 ac_func_search_save_LIBS=$LIBS
6220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221 /* end confdefs.h. */
6223 /* Override any GCC internal prototype to avoid an error.
6224 Use char because int might match the return type of a GCC
6225 builtin and then its argument prototype would still apply. */
6226 #ifdef __cplusplus
6227 extern "C"
6228 #endif
6229 char opendir ();
6231 main ()
6233 return opendir ();
6235 return 0;
6237 _ACEOF
6238 for ac_lib in '' dir; do
6239 if test -z "$ac_lib"; then
6240 ac_res="none required"
6241 else
6242 ac_res=-l$ac_lib
6243 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6245 if ac_fn_c_try_link "$LINENO"; then :
6246 ac_cv_search_opendir=$ac_res
6248 rm -f core conftest.err conftest.$ac_objext \
6249 conftest$ac_exeext
6250 if ${ac_cv_search_opendir+:} false; then :
6251 break
6253 done
6254 if ${ac_cv_search_opendir+:} false; then :
6256 else
6257 ac_cv_search_opendir=no
6259 rm conftest.$ac_ext
6260 LIBS=$ac_func_search_save_LIBS
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6263 $as_echo "$ac_cv_search_opendir" >&6; }
6264 ac_res=$ac_cv_search_opendir
6265 if test "$ac_res" != no; then :
6266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6270 else
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6272 $as_echo_n "checking for library containing opendir... " >&6; }
6273 if ${ac_cv_search_opendir+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 ac_func_search_save_LIBS=$LIBS
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6280 /* Override any GCC internal prototype to avoid an error.
6281 Use char because int might match the return type of a GCC
6282 builtin and then its argument prototype would still apply. */
6283 #ifdef __cplusplus
6284 extern "C"
6285 #endif
6286 char opendir ();
6288 main ()
6290 return opendir ();
6292 return 0;
6294 _ACEOF
6295 for ac_lib in '' x; do
6296 if test -z "$ac_lib"; then
6297 ac_res="none required"
6298 else
6299 ac_res=-l$ac_lib
6300 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6302 if ac_fn_c_try_link "$LINENO"; then :
6303 ac_cv_search_opendir=$ac_res
6305 rm -f core conftest.err conftest.$ac_objext \
6306 conftest$ac_exeext
6307 if ${ac_cv_search_opendir+:} false; then :
6308 break
6310 done
6311 if ${ac_cv_search_opendir+:} false; then :
6313 else
6314 ac_cv_search_opendir=no
6316 rm conftest.$ac_ext
6317 LIBS=$ac_func_search_save_LIBS
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6320 $as_echo "$ac_cv_search_opendir" >&6; }
6321 ac_res=$ac_cv_search_opendir
6322 if test "$ac_res" != no; then :
6323 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
6330 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
6331 if ${ac_cv_header_stat_broken+:} false; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6335 /* end confdefs.h. */
6336 #include <sys/types.h>
6337 #include <sys/stat.h>
6339 #if defined S_ISBLK && defined S_IFDIR
6340 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6341 #endif
6343 #if defined S_ISBLK && defined S_IFCHR
6344 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6345 #endif
6347 #if defined S_ISLNK && defined S_IFREG
6348 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6349 #endif
6351 #if defined S_ISSOCK && defined S_IFREG
6352 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6353 #endif
6355 _ACEOF
6356 if ac_fn_c_try_compile "$LINENO"; then :
6357 ac_cv_header_stat_broken=no
6358 else
6359 ac_cv_header_stat_broken=yes
6361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6364 $as_echo "$ac_cv_header_stat_broken" >&6; }
6365 if test $ac_cv_header_stat_broken = yes; then
6367 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6372 $as_echo_n "checking for ANSI C header files... " >&6; }
6373 if ${ac_cv_header_stdc+:} false; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6378 #include <stdlib.h>
6379 #include <stdarg.h>
6380 #include <string.h>
6381 #include <float.h>
6384 main ()
6388 return 0;
6390 _ACEOF
6391 if ac_fn_c_try_compile "$LINENO"; then :
6392 ac_cv_header_stdc=yes
6393 else
6394 ac_cv_header_stdc=no
6396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398 if test $ac_cv_header_stdc = yes; then
6399 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401 /* end confdefs.h. */
6402 #include <string.h>
6404 _ACEOF
6405 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6406 $EGREP "memchr" >/dev/null 2>&1; then :
6408 else
6409 ac_cv_header_stdc=no
6411 rm -f conftest*
6415 if test $ac_cv_header_stdc = yes; then
6416 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6418 /* end confdefs.h. */
6419 #include <stdlib.h>
6421 _ACEOF
6422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6423 $EGREP "free" >/dev/null 2>&1; then :
6425 else
6426 ac_cv_header_stdc=no
6428 rm -f conftest*
6432 if test $ac_cv_header_stdc = yes; then
6433 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6434 if test "$cross_compiling" = yes; then :
6436 else
6437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6438 /* end confdefs.h. */
6439 #include <ctype.h>
6440 #include <stdlib.h>
6441 #if ((' ' & 0x0FF) == 0x020)
6442 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6443 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6444 #else
6445 # define ISLOWER(c) \
6446 (('a' <= (c) && (c) <= 'i') \
6447 || ('j' <= (c) && (c) <= 'r') \
6448 || ('s' <= (c) && (c) <= 'z'))
6449 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6450 #endif
6452 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6454 main ()
6456 int i;
6457 for (i = 0; i < 256; i++)
6458 if (XOR (islower (i), ISLOWER (i))
6459 || toupper (i) != TOUPPER (i))
6460 return 2;
6461 return 0;
6463 _ACEOF
6464 if ac_fn_c_try_run "$LINENO"; then :
6466 else
6467 ac_cv_header_stdc=no
6469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6470 conftest.$ac_objext conftest.beam conftest.$ac_ext
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6476 $as_echo "$ac_cv_header_stdc" >&6; }
6477 if test $ac_cv_header_stdc = yes; then
6479 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6484 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6485 if ${ac_cv_header_sys_wait_h+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6489 /* end confdefs.h. */
6490 #include <sys/types.h>
6491 #include <sys/wait.h>
6492 #ifndef WEXITSTATUS
6493 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6494 #endif
6495 #ifndef WIFEXITED
6496 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6497 #endif
6500 main ()
6502 int s;
6503 wait (&s);
6504 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6506 return 0;
6508 _ACEOF
6509 if ac_fn_c_try_compile "$LINENO"; then :
6510 ac_cv_header_sys_wait_h=yes
6511 else
6512 ac_cv_header_sys_wait_h=no
6514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6517 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6518 if test $ac_cv_header_sys_wait_h = yes; then
6520 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6525 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6526 if ${ac_cv_header_time+:} false; then :
6527 $as_echo_n "(cached) " >&6
6528 else
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6530 /* end confdefs.h. */
6531 #include <sys/types.h>
6532 #include <sys/time.h>
6533 #include <time.h>
6536 main ()
6538 if ((struct tm *) 0)
6539 return 0;
6541 return 0;
6543 _ACEOF
6544 if ac_fn_c_try_compile "$LINENO"; then :
6545 ac_cv_header_time=yes
6546 else
6547 ac_cv_header_time=no
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6552 $as_echo "$ac_cv_header_time" >&6; }
6553 if test $ac_cv_header_time = yes; then
6555 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6559 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6560 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6562 cat >>confdefs.h <<_ACEOF
6563 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6564 _ACEOF
6567 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6572 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6573 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6575 cat >>confdefs.h <<_ACEOF
6576 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6577 _ACEOF
6580 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6582 else
6583 case " $LIBOBJS " in
6584 *" fileblocks.$ac_objext "* ) ;;
6585 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6587 esac
6592 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6593 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6595 cat >>confdefs.h <<_ACEOF
6596 #define HAVE_STRUCT_STAT_ST_RDEV 1
6597 _ACEOF
6600 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6606 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6607 if ${ac_cv_struct_tm+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609 else
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6612 #include <sys/types.h>
6613 #include <time.h>
6616 main ()
6618 struct tm tm;
6619 int *p = &tm.tm_sec;
6620 return !p;
6622 return 0;
6624 _ACEOF
6625 if ac_fn_c_try_compile "$LINENO"; then :
6626 ac_cv_struct_tm=time.h
6627 else
6628 ac_cv_struct_tm=sys/time.h
6630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6633 $as_echo "$ac_cv_struct_tm" >&6; }
6634 if test $ac_cv_struct_tm = sys/time.h; then
6636 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6640 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6641 #include <$ac_cv_struct_tm>
6644 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6646 cat >>confdefs.h <<_ACEOF
6647 #define HAVE_STRUCT_TM_TM_ZONE 1
6648 _ACEOF
6653 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6655 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6657 else
6658 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6660 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6661 ac_have_decl=1
6662 else
6663 ac_have_decl=0
6666 cat >>confdefs.h <<_ACEOF
6667 #define HAVE_DECL_TZNAME $ac_have_decl
6668 _ACEOF
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6671 $as_echo_n "checking for tzname... " >&6; }
6672 if ${ac_cv_var_tzname+:} false; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6676 /* end confdefs.h. */
6677 #include <time.h>
6678 #if !HAVE_DECL_TZNAME
6679 extern char *tzname[];
6680 #endif
6683 main ()
6685 return tzname[0][0];
6687 return 0;
6689 _ACEOF
6690 if ac_fn_c_try_link "$LINENO"; then :
6691 ac_cv_var_tzname=yes
6692 else
6693 ac_cv_var_tzname=no
6695 rm -f core conftest.err conftest.$ac_objext \
6696 conftest$ac_exeext conftest.$ac_ext
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6699 $as_echo "$ac_cv_var_tzname" >&6; }
6700 if test $ac_cv_var_tzname = yes; then
6702 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6707 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6708 if test "x$ac_cv_type_off_t" = xyes; then :
6710 else
6712 cat >>confdefs.h <<_ACEOF
6713 #define off_t long int
6714 _ACEOF
6718 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6719 if test "x$ac_cv_type_pid_t" = xyes; then :
6721 else
6723 cat >>confdefs.h <<_ACEOF
6724 #define pid_t int
6725 _ACEOF
6729 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6730 if test "x$ac_cv_type_size_t" = xyes; then :
6732 else
6734 cat >>confdefs.h <<_ACEOF
6735 #define size_t unsigned int
6736 _ACEOF
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6741 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6742 if ${ac_cv_type_uid_t+:} false; then :
6743 $as_echo_n "(cached) " >&6
6744 else
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6747 #include <sys/types.h>
6749 _ACEOF
6750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6751 $EGREP "uid_t" >/dev/null 2>&1; then :
6752 ac_cv_type_uid_t=yes
6753 else
6754 ac_cv_type_uid_t=no
6756 rm -f conftest*
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6760 $as_echo "$ac_cv_type_uid_t" >&6; }
6761 if test $ac_cv_type_uid_t = no; then
6763 $as_echo "#define uid_t int" >>confdefs.h
6766 $as_echo "#define gid_t int" >>confdefs.h
6771 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6772 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6774 cat >>confdefs.h <<_ACEOF
6775 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6776 _ACEOF
6782 # Look for some functions
6783 for ac_func in getpagesize kqueue statfs statvfs \
6784 clone kse_create rfork_thread thr_create sa_register \
6785 getcontext makecontext setcontext sigaltstack swapcontext
6786 do :
6787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6788 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6789 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6790 cat >>confdefs.h <<_ACEOF
6791 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6792 _ACEOF
6795 done
6801 for ac_header in $ac_header_list
6802 do :
6803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6804 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6806 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6807 cat >>confdefs.h <<_ACEOF
6808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6809 _ACEOF
6813 done
6822 for ac_func in getpagesize
6823 do :
6824 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6825 if test "x$ac_cv_func_getpagesize" = xyes; then :
6826 cat >>confdefs.h <<_ACEOF
6827 #define HAVE_GETPAGESIZE 1
6828 _ACEOF
6831 done
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6834 $as_echo_n "checking for working mmap... " >&6; }
6835 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 if test "$cross_compiling" = yes; then :
6839 ac_cv_func_mmap_fixed_mapped=no
6840 else
6841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6842 /* end confdefs.h. */
6843 $ac_includes_default
6844 /* malloc might have been renamed as rpl_malloc. */
6845 #undef malloc
6847 /* Thanks to Mike Haertel and Jim Avera for this test.
6848 Here is a matrix of mmap possibilities:
6849 mmap private not fixed
6850 mmap private fixed at somewhere currently unmapped
6851 mmap private fixed at somewhere already mapped
6852 mmap shared not fixed
6853 mmap shared fixed at somewhere currently unmapped
6854 mmap shared fixed at somewhere already mapped
6855 For private mappings, we should verify that changes cannot be read()
6856 back from the file, nor mmap's back from the file at a different
6857 address. (There have been systems where private was not correctly
6858 implemented like the infamous i386 svr4.0, and systems where the
6859 VM page cache was not coherent with the file system buffer cache
6860 like early versions of FreeBSD and possibly contemporary NetBSD.)
6861 For shared mappings, we should conversely verify that changes get
6862 propagated back to all the places they're supposed to be.
6864 Grep wants private fixed already mapped.
6865 The main things grep needs to know about mmap are:
6866 * does it exist and is it safe to write into the mmap'd area
6867 * how to use it (BSD variants) */
6869 #include <fcntl.h>
6870 #include <sys/mman.h>
6872 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6873 char *malloc ();
6874 #endif
6876 /* This mess was copied from the GNU getpagesize.h. */
6877 #ifndef HAVE_GETPAGESIZE
6878 # ifdef _SC_PAGESIZE
6879 # define getpagesize() sysconf(_SC_PAGESIZE)
6880 # else /* no _SC_PAGESIZE */
6881 # ifdef HAVE_SYS_PARAM_H
6882 # include <sys/param.h>
6883 # ifdef EXEC_PAGESIZE
6884 # define getpagesize() EXEC_PAGESIZE
6885 # else /* no EXEC_PAGESIZE */
6886 # ifdef NBPG
6887 # define getpagesize() NBPG * CLSIZE
6888 # ifndef CLSIZE
6889 # define CLSIZE 1
6890 # endif /* no CLSIZE */
6891 # else /* no NBPG */
6892 # ifdef NBPC
6893 # define getpagesize() NBPC
6894 # else /* no NBPC */
6895 # ifdef PAGESIZE
6896 # define getpagesize() PAGESIZE
6897 # endif /* PAGESIZE */
6898 # endif /* no NBPC */
6899 # endif /* no NBPG */
6900 # endif /* no EXEC_PAGESIZE */
6901 # else /* no HAVE_SYS_PARAM_H */
6902 # define getpagesize() 8192 /* punt totally */
6903 # endif /* no HAVE_SYS_PARAM_H */
6904 # endif /* no _SC_PAGESIZE */
6906 #endif /* no HAVE_GETPAGESIZE */
6909 main ()
6911 char *data, *data2, *data3;
6912 const char *cdata2;
6913 int i, pagesize;
6914 int fd, fd2;
6916 pagesize = getpagesize ();
6918 /* First, make a file with some known garbage in it. */
6919 data = (char *) malloc (pagesize);
6920 if (!data)
6921 return 1;
6922 for (i = 0; i < pagesize; ++i)
6923 *(data + i) = rand ();
6924 umask (0);
6925 fd = creat ("conftest.mmap", 0600);
6926 if (fd < 0)
6927 return 2;
6928 if (write (fd, data, pagesize) != pagesize)
6929 return 3;
6930 close (fd);
6932 /* Next, check that the tail of a page is zero-filled. File must have
6933 non-zero length, otherwise we risk SIGBUS for entire page. */
6934 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6935 if (fd2 < 0)
6936 return 4;
6937 cdata2 = "";
6938 if (write (fd2, cdata2, 1) != 1)
6939 return 5;
6940 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6941 if (data2 == MAP_FAILED)
6942 return 6;
6943 for (i = 0; i < pagesize; ++i)
6944 if (*(data2 + i))
6945 return 7;
6946 close (fd2);
6947 if (munmap (data2, pagesize))
6948 return 8;
6950 /* Next, try to mmap the file at a fixed address which already has
6951 something else allocated at it. If we can, also make sure that
6952 we see the same garbage. */
6953 fd = open ("conftest.mmap", O_RDWR);
6954 if (fd < 0)
6955 return 9;
6956 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6957 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6958 return 10;
6959 for (i = 0; i < pagesize; ++i)
6960 if (*(data + i) != *(data2 + i))
6961 return 11;
6963 /* Finally, make sure that changes to the mapped area do not
6964 percolate back to the file as seen by read(). (This is a bug on
6965 some variants of i386 svr4.0.) */
6966 for (i = 0; i < pagesize; ++i)
6967 *(data2 + i) = *(data2 + i) + 1;
6968 data3 = (char *) malloc (pagesize);
6969 if (!data3)
6970 return 12;
6971 if (read (fd, data3, pagesize) != pagesize)
6972 return 13;
6973 for (i = 0; i < pagesize; ++i)
6974 if (*(data + i) != *(data3 + i))
6975 return 14;
6976 close (fd);
6977 return 0;
6979 _ACEOF
6980 if ac_fn_c_try_run "$LINENO"; then :
6981 ac_cv_func_mmap_fixed_mapped=yes
6982 else
6983 ac_cv_func_mmap_fixed_mapped=no
6985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6986 conftest.$ac_objext conftest.beam conftest.$ac_ext
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6991 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6992 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6994 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6997 rm -f conftest.mmap conftest.txt
7002 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7003 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7004 aros_config_ldflags=""
7006 aros_shared_default=yes
7008 aros_shared_cflags="-fPIC"
7009 aros_shared_aflags=""
7010 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7011 aros_kernel_ldflags="-Wl,-rpath,./lib"
7013 aros_kernel_ar_flags="cr"
7014 aros_target_ar_flags="cr"
7015 aros_target_nm_flags="-C -ul"
7016 aros_target_strip_flags="--strip-unneeded -R.comment"
7018 aros_compiler_libs=
7019 aros_arch_libs=
7021 aros_target_genmap="-Wl,-Map -Xlinker"
7023 # Native flavour stuff
7024 aros_serial_debug="0"
7026 # Palm native flavour stuff
7027 aros_palm_debug_hack="0"
7029 # Unix flavour stuff
7030 aros_nesting_supervisor="0"
7032 # Collect-aros stuff: "-ius" to ignore undefined symbols
7033 ignore_undefined_symbols=""
7035 # Check for X11 by default
7036 need_x11="auto"
7038 # Leave at 'none' for no external toolchain
7039 kernel_tool_prefix="none"
7041 #-----------------------------------------------------------------------------
7044 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7045 # it switched on by default, and we use the host compiler, so it compiles AROS
7046 # code with this enabled resulting in link failures as we don't have support
7047 # for it.
7049 # We use two methods to disable it. For the host compiler (used to compile
7050 # some hosted modules), we test to see if the compiler supports stack
7051 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7052 # work on all platforms.
7054 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7055 # (this is done unconditionally, as it should have no effect on compilers
7056 # without the stack protection feature). This may be specific to the way that
7057 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7058 # strong enough to disable it in a generic way though, so we'll live with it
7059 # until another vendor ships GCC with it enabled in a different way, and deal
7060 # with it then.
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
7064 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
7065 save_cflags="$CFLAGS"
7066 CFLAGS="$CFLAGS -fno-stack-protector"
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068 /* end confdefs.h. */
7071 main ()
7075 return 0;
7077 _ACEOF
7078 if ac_fn_c_try_compile "$LINENO"; then :
7079 use_no_stack_protector="yes"
7080 else
7081 use_no_stack_protector="no"
7083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
7085 $as_echo "$use_no_stack_protector" >&6; }
7086 if test "x-$use_no_stack_protector" = "x-yes" ; then
7087 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7089 CFLAGS="$save_cflags"
7091 #-----------------------------------------------------------------------------
7093 # Disable pointer-signedness warnings if the compiler recognises the option
7094 # (this only works for the host compiler at the moment)
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7097 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7098 save_cflags="$CFLAGS"
7099 CFLAGS="$CFLAGS -Wno-pointer-sign"
7100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7101 /* end confdefs.h. */
7104 main ()
7108 return 0;
7110 _ACEOF
7111 if ac_fn_c_try_compile "$LINENO"; then :
7112 use_no_sign_warning="yes"
7113 else
7114 use_no_sign_warning="no"
7116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7118 $as_echo "$use_no_sign_warning" >&6; }
7119 if test "x-$use_no_sign_warning" = "x-yes" ; then
7120 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
7122 CFLAGS="$save_cflags"
7124 #-----------------------------------------------------------------------------
7126 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
7129 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
7130 save_cflags="$CFLAGS"
7131 CFLAGS="$CFLAGS -fgnu89-inline"
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7133 /* end confdefs.h. */
7136 main ()
7140 return 0;
7142 _ACEOF
7143 if ac_fn_c_try_compile "$LINENO"; then :
7144 use_gnu89_inline="yes"
7145 else
7146 use_gnu89_inline="no"
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
7150 $as_echo "$use_gnu89_inline" >&6; }
7151 if test "x-$use_gnu89_inline" = "x-yes" ; then
7152 gnu89_inline="-fgnu89-inline"
7154 CFLAGS="$save_cflags"
7156 #-----------------------------------------------------------------------------
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
7159 $as_echo_n "checking for type of build... " >&6; }
7160 # Check whether --enable-build_type was given.
7161 if test "${enable_build_type+set}" = set; then :
7162 enableval=$enable_build_type; build_type=$enableval
7163 else
7164 build_type="personal"
7168 if test "$build_type" = "nightly"; then
7169 build_type_string="NIGHTLY"
7170 elif test "$build_type" = "snapshot"; then
7171 build_type_string="SNAPSHOT"
7172 elif test "$build_type" = "milestone"; then
7173 build_type_string="MILESTONE"
7174 elif test "$build_type" = "release"; then
7175 build_type_string="RELEASE"
7176 else
7177 build_type_string="PERSONAL"
7178 build_type="personal"
7181 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
7184 $as_echo "$build_type" >&6; }
7186 #-----------------------------------------------------------------------------
7187 all_debug_types="messages stack modules mungwall symbols"
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
7190 $as_echo_n "checking which debug types to enable... " >&6; }
7191 # Check whether --enable-debug was given.
7192 if test "${enable_debug+set}" = set; then :
7193 enableval=$enable_debug; debug="$enableval"
7194 else
7195 debug=""
7199 if test "$debug" = "" -o "$debug" = "no"; then
7200 debug="none"
7201 elif test "$debug" = "yes"; then
7202 debug="all"
7205 if test "$debug" = "all" ; then
7206 debug="messages stack modules symbols"
7207 for d in $all_debug_types; do
7208 export aros_${d}_debug="1"
7209 done
7210 else
7211 for d in $all_debug_types; do
7212 export aros_${d}_debug="0"
7213 done
7216 if test "$debug" != "none"; then
7217 debug=`echo $debug | sed s/,/\ /g`
7218 for d in $debug; do
7219 found="0"
7220 for d2 in $all_debug_types; do
7221 if test "$d2" = "$d"; then
7222 found="1"
7223 break
7225 done
7226 if test "$found" = "0"; then
7227 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
7229 export aros_${d}_debug="1"
7230 done
7231 aros_debug="yes"
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
7234 $as_echo "$debug" >&6; }
7236 if test "$aros_messages_debug" = "1"; then
7237 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7238 else
7239 aros_messages_debug=""
7241 if test "$aros_symbols_debug" = "1"; then
7242 aros_symbols_debug="-g"
7243 else
7244 aros_symbols_debug=""
7247 # These are the flags to pass when compiling debugged programs
7248 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7249 aros_debug_aflags=""
7250 aros_debug_ldflags="$aros_symbols_debug"
7252 #-----------------------------------------------------------------------------
7253 # Checking if we should build crosstools..
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
7255 $as_echo_n "checking whether to build crosstools... " >&6; }
7256 # Check whether --enable-crosstools was given.
7257 if test "${enable_crosstools+set}" = set; then :
7258 enableval=$enable_crosstools; crosstools="$enableval"
7259 else
7260 crosstools="yes"
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
7264 $as_echo "$crosstools" >&6; }
7266 #-----------------------------------------------------------------------------
7267 # Checking for distcc and ccache.
7269 # Always apply the transforms in this particular order. Basically you should
7270 # always run 'ccache distcc compiler' in that order for the best performance.
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
7273 $as_echo_n "checking whether to enable distcc... " >&6; }
7274 # Check whether --enable-distcc was given.
7275 if test "${enable_distcc+set}" = set; then :
7276 enableval=$enable_distcc; distcc="$enableval"
7277 else
7278 distcc="no"
7281 if test "$distcc" != "" -a "$distcc" != "no"; then
7282 # AC_CHECK_PROG will print out the result in this case
7283 # Extract the first word of "distcc", so it can be a program name with args.
7284 set dummy distcc; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if ${ac_cv_path_DISTCC+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 case $DISTCC in
7291 [\\/]* | ?:[\\/]*)
7292 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7302 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7306 done
7307 done
7308 IFS=$as_save_IFS
7310 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7312 esac
7314 DISTCC=$ac_cv_path_DISTCC
7315 if test -n "$DISTCC"; then
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
7317 $as_echo "$DISTCC" >&6; }
7318 else
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320 $as_echo "no" >&6; }
7324 else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
7330 $as_echo_n "checking whether to enable ccache... " >&6; }
7331 # Check whether --enable-ccache was given.
7332 if test "${enable_ccache+set}" = set; then :
7333 enableval=$enable_ccache; ccache="$enableval"
7334 else
7335 ccache="no"
7338 if test "$ccache" != "" -a "$ccache" != "no"; then
7339 # AC_CHECK_PROG will print out the result in this case
7340 # Extract the first word of "ccache", so it can be a program name with args.
7341 set dummy ccache; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_CCACHE+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 if test -n "$CCACHE"; then
7348 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_prog_CCACHE="ccache"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7361 done
7362 done
7363 IFS=$as_save_IFS
7367 CCACHE=$ac_cv_prog_CCACHE
7368 if test -n "$CCACHE"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7370 $as_echo "$CCACHE" >&6; }
7371 else
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7377 else
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7379 $as_echo "no" >&6; }
7382 #-----------------------------------------------------------------------------
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7384 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7386 # Check whether --with-gcc-version was given.
7387 if test "${with_gcc_version+set}" = set; then :
7388 withval=$with_gcc_version; kernel_tool_version="$withval"
7389 else
7390 kernel_tool_version="default"
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_version" >&5
7394 $as_echo "$kernel_tool_version" >&6; }
7396 #-----------------------------------------------------------------------------
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific target gcc version to use" >&5
7398 $as_echo_n "checking what specific target gcc version to use... " >&6; }
7400 # Check whether --with-gcc-version was given.
7401 if test "${with_gcc_version+set}" = set; then :
7402 withval=$with_gcc_version; target_tool_version="$withval"
7403 else
7404 target_tool_version="default"
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7408 $as_echo "$target_tool_version" >&6; }
7410 #-----------------------------------------------------------------------------
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7412 $as_echo_n "checking what optimization flags to use... " >&6; }
7414 # Check whether --with-optimization was given.
7415 if test "${with_optimization+set}" = set; then :
7416 withval=$with_optimization; optimization="$withval"
7417 else
7418 optimization="unknown"
7421 if test "$optimization" = "unknown"; then
7422 if test "$debug" != "none"; then
7423 optimization="-O0"
7424 else
7425 optimization="-O2"
7428 aros_config_cflags="$aros_config_cflags $optimization"
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7430 $as_echo "$optimization" >&6; }
7432 #-----------------------------------------------------------------------------
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7434 $as_echo_n "checking what paranoia flags to use... " >&6; }
7436 # Check whether --with-paranoia was given.
7437 if test "${with_paranoia+set}" = set; then :
7438 withval=$with_paranoia; paranoia_flags="$withval"
7439 else
7440 paranoia_flags="default"
7443 if test "$paranoia_flags" = "default"; then
7444 paranoia_flags=""
7445 else if test "$paranoia_flags" = "yes"; then
7446 paranoia_flags="-Wall -Werror"
7447 fi fi
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7449 $as_echo "$paranoia_flags" >&6; }
7450 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7452 #-----------------------------------------------------------------------------
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7454 $as_echo_n "checking what target variant to enable... " >&6; }
7455 # Check whether --enable-target_variant was given.
7456 if test "${enable_target_variant+set}" = set; then :
7457 enableval=$enable_target_variant; target_variant=$enableval
7458 else
7459 target_variant=""
7462 if test "$target_variant" = ""; then
7463 aros_target_variant=""
7464 aros_target_suffix=""
7465 enableval="none"
7466 else
7467 aros_target_variant="$target_variant"
7468 aros_target_suffix="-$target_variant"
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7471 $as_echo "$enableval" >&6; }
7473 #-----------------------------------------------------------------------------
7474 # Target-specific defaults. You can override then on a per-target basis.
7476 # Bootloader name. Currently used by PC target.
7477 target_bootloader="none"
7479 #-----------------------------------------------------------------------------
7480 # Additional options for some specific targets
7482 case "$aros_target_variant" in
7483 ios)
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7485 $as_echo_n "checking XCode path... " >&6; }
7487 # Check whether --with-xcode was given.
7488 if test "${with_xcode+set}" = set; then :
7489 withval=$with_xcode; aros_xcode_path="$withval"
7490 else
7491 aros_xcode_path="/Developer"
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7495 $as_echo "$aros_xcode_path" >&6; }
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7498 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7500 # Check whether --with-sdk-version was given.
7501 if test "${with_sdk_version+set}" = set; then :
7502 withval=$with_sdk_version; aros_sdk_version="$withval"
7503 else
7504 aros_sdk_version="4.1"
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7508 $as_echo "$aros_sdk_version" >&6; }
7512 "android")
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7514 $as_echo_n "checking Android SDK path... " >&6; }
7516 # Check whether --with-sdk was given.
7517 if test "${with_sdk+set}" = set; then :
7518 withval=$with_sdk; aros_android_sdk="$withval"
7519 else
7520 aros_android_sdk=$default_android_sdk
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7524 $as_echo "$aros_android_sdk" >&6; }
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7527 $as_echo_n "checking Android NDK path... " >&6; }
7529 # Check whether --with-ndk was given.
7530 if test "${with_ndk+set}" = set; then :
7531 withval=$with_ndk; aros_android_ndk="$withval"
7532 else
7533 aros_android_ndk="none"
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7537 $as_echo "$aros_android_ndk" >&6; }
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android SDK version to use" >&5
7540 $as_echo_n "checking what Android SDK version to use... " >&6; }
7542 # Check whether --with-sdk-version was given.
7543 if test "${with_sdk_version+set}" = set; then :
7544 withval=$with_sdk_version; aros_sdk_version="$withval"
7545 else
7546 aros_sdk_version="12"
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_sdk_version" >&5
7550 $as_echo "$aros_sdk_version" >&6; }
7552 if test "$aros_android_ndk" != "none"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android NDK version to use" >&5
7554 $as_echo_n "checking what Android NDK version to use... " >&6; }
7556 # Check whether --with-ndk-version was given.
7557 if test "${with_ndk_version+set}" = set; then :
7558 withval=$with_ndk_version; aros_ndk_version="$withval"
7559 else
7560 aros_ndk_version="9"
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ndk_version" >&5
7564 $as_echo "$aros_ndk_version" >&6; }
7567 export PATH="$aros_android_sdk/tools:$PATH"
7568 # Extract the first word of "$android_tool", so it can be a program name with args.
7569 set dummy $android_tool; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if ${ac_cv_path_android_tool+:} false; then :
7573 $as_echo_n "(cached) " >&6
7574 else
7575 case $android_tool in
7576 [\\/]* | ?:[\\/]*)
7577 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7587 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 break 2
7591 done
7592 done
7593 IFS=$as_save_IFS
7596 esac
7598 android_tool=$ac_cv_path_android_tool
7599 if test -n "$android_tool"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7601 $as_echo "$android_tool" >&6; }
7602 else
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7608 if test "$android_tool" = ""; then
7609 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7612 aros_android_level=android-$aros_sdk_version
7613 if test ! -d $aros_android_sdk/platforms/$aros_android_level; then
7614 echo "Platform $aros_android_level is not installed in your SDK"
7615 echo "Use --with-sdk-version=<API level number> to select another platform version"
7616 echo "You can check what plaform versions are installed in your SDK"
7617 echo "by examining contents of $aros_android_sdk/platforms directory"
7618 as_fn_error $? "Android platform $aros_android_level is not installed" "$LINENO" 5
7621 # Extract the first word of "ant", so it can be a program name with args.
7622 set dummy ant; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if ${ac_cv_path_ant+:} false; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 case $ant in
7629 [\\/]* | ?:[\\/]*)
7630 ac_cv_path_ant="$ant" # Let the user override the test with a path.
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7640 ac_cv_path_ant="$as_dir/$ac_word$ac_exec_ext"
7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 break 2
7644 done
7645 done
7646 IFS=$as_save_IFS
7649 esac
7651 ant=$ac_cv_path_ant
7652 if test -n "$ant"; then
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ant" >&5
7654 $as_echo "$ant" >&6; }
7655 else
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7657 $as_echo "no" >&6; }
7661 if test "$ant" = ""; then
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&5
7663 $as_echo "$as_me: WARNING: Apache Ant is missing, Java bootstrap can't be built automatically" >&2;}
7666 if test "$host_os" = "mingw32"; then
7667 android_tool="cmd //c $android_tool"
7671 esac
7673 #-----------------------------------------------------------------------------
7675 # This is the target configuration switch.
7676 case "$target_os" in
7677 linux*)
7678 aros_target_arch="linux"
7679 aros_target_family="unix"
7680 case "$target_cpu" in
7681 *m68k*)
7682 aros_target_cpu="m68k"
7683 aros_object_format="m68kelf"
7684 aros_flavour="emulcompat"
7685 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7686 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7687 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7688 gcc_target_cpu="mc68000"
7690 *i?86*)
7691 aros_target_cpu="i386"
7692 aros_object_format="elf_i386"
7693 aros_flavour="emulation"
7694 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7695 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7696 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7697 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7698 aros_config_ldflags="-m32 -march=i486"
7699 aros_kernel_ldflags="-melf_i386"
7700 aros_default_wbdepth=8
7701 gcc_target_cpu="i386"
7702 pci_hidd_target="hidd-pci-linux"
7703 android_tool_dir_prefix="x86"
7704 android_tool_prefix="i686-android-linux"
7705 android_ndk_arch="x86"
7707 *x86_64*)
7708 aros_target_cpu="x86_64"
7709 aros_object_format="elf_x86_64"
7710 aros_flavour="emulation"
7711 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7712 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7713 aros_default_wbdepth=8
7714 pci_hidd_target="hidd-pci-linux"
7716 *powerpc*)
7717 aros_target_cpu="ppc"
7718 aros_object_format="elf32ppc"
7719 aros_flavour="emulation"
7720 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7721 aros_default_wbdepth=8
7722 gcc_target_cpu="ppc"
7724 # TODO
7725 # Same as powerpc, but I need this for the nightly build to work again.
7726 # Actually, the nightly should be made working with powerpc target.
7727 # That just was too much work for the moment, another week or two.
7728 *ppc*)
7729 aros_target_cpu="ppc"
7730 aros_object_format="elf32ppc"
7731 aros_flavour="emulation"
7732 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7733 aros_default_wbdepth=8
7734 gcc_target_cpu="ppc"
7736 *arm*)
7737 aros_target_cpu="arm"
7738 aros_object_format="armelf_linux_eabi"
7739 aros_flavour="emulation"
7740 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7741 gcc_target_cpu="arm"
7742 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -fno-omit-frame-pointer"
7743 aros_config_aflags="$aros_config_aflags -fno-strict-aliasing"
7744 aros_arch_libs="-laeabi"
7745 android_tool_dir_prefix="arm-linux-androideabi"
7746 android_tool_prefix="arm-linux-androideabi"
7747 android_ndk_arch="arm"
7748 if test "$aros_host_cpu" != "arm" ; then
7749 kernel_tool_prefix="arm-linux-gnueabi-"
7753 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7755 esac
7756 case "$aros_target_variant" in
7757 android)
7759 if test "$android_ndk_arch" = ""; then
7760 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7763 aros_default_wbwidth=320
7764 aros_default_wbheight=480
7765 if test "$aros_android_ndk" = "none"; then
7766 aros_kernel_cflags="-mandroid"
7767 aros_kernel_ldflags="-mandroid"
7768 CFLAGS="-mandroid"
7769 else
7770 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7771 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7772 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7773 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7774 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7775 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7777 need_x11=no
7778 x11_hidd_target=kernel-hidd-androidgfx-kobj
7779 # Disable implicit PIC mode
7780 aros_kernel_cflags="$aros_kernel_cflags -fno-pic"
7781 aros_target_cflags="$aros_target_cflags -fno-pic"
7782 kernel_tool_prefix="$android_tool_prefix-"
7784 esac
7788 aros_target_arch="pc"
7789 aros_shared_default="no"
7790 target_bootloader="grub2"
7791 case "$target_cpu" in
7792 *i?86*)
7793 aros_target_cpu="i386"
7796 if test "$aros_object_format" = "" ; then
7797 aros_object_format="elf_i386"
7799 aros_flavour="standalone"
7800 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7801 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7802 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7803 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7804 aros_config_ldflags="-m32 -march=i486"
7805 aros_kernel_ldflags="-melf_i386"
7806 aros_default_wbwidth=640
7807 aros_default_wbheight=480
7808 gcc_target_cpu="i386"
7810 *x86_64*)
7811 aros_target_cpu="x86_64"
7812 aros_serial_debug=1
7813 if test "$aros_object_format" = "" ; then
7814 aros_object_format="elf_x86_64"
7816 aros_flavour="standalone"
7817 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7818 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7819 aros_kernel_ldflags=""
7820 aros_default_wbwidth=640
7821 aros_default_wbheight=480
7824 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7826 esac
7829 prep)
7830 aros_target_arch="prep"
7831 aros_shared_default="no"
7832 aros_target_cpu="ppc"
7833 aros_object_format="elf32ppc"
7834 aros_flavour="ppcnative"
7835 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7836 aros_kernel_ldflags=""
7837 aros_default_wbwidth=640
7838 aros_default_wbheight=480
7839 gcc_target_cpu="ppc"
7842 freebsd*)
7843 aros_target_arch="freebsd"
7844 aros_target_family="unix"
7845 aros_target_cpu="i386"
7846 aros_flavour="emulation"
7847 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7848 gcc_target_cpu="i386"
7850 aros_target_strip_flags="-x"
7853 darwin*)
7854 aros_target_arch="darwin"
7855 aros_target_family="unix"
7856 aros_flavour="emulation"
7857 case "$target_cpu" in
7858 *i?86*)
7859 aros_ios_platform="iPhoneSimulator"
7860 aros_target_cpu="i386"
7861 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7862 aros_kernel_ldflags=""
7863 aros_macosx_version="10.4"
7864 aros_default_wbdepth=8
7865 gcc_target_cpu="i386"
7866 aros_object_format="elf_i386"
7867 aros_kernel_ar_flags="-cr"
7868 aros_target_strip_flags="-x"
7869 kernel_tool_flags="-m32"
7871 *x86_64*)
7872 aros_target_cpu="x86_64"
7873 aros_object_format="elf_x86_64"
7874 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7875 aros_macosx_version="10.6"
7876 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7877 aros_kernel_cflags="-m64"
7878 aros_kernel_ldflags="-m64"
7879 aros_target_cflags="-mcmodel=large"
7880 aros_default_wbdepth=8
7881 aros_kernel_ar="ar"
7882 aros_kernel_ar_flags="-cr"
7883 aros_kernel_ld="ld"
7884 aros_kernel_ranlib="ranlib"
7886 *ppc*)
7887 aros_target_cpu="ppc"
7888 aros_object_format="elf32ppc"
7889 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7890 aros_kernel_ldflags=""
7891 aros_macosx_version="10.0"
7892 aros_default_wbdepth=8
7893 gcc_target_cpu="ppc"
7894 aros_kernel_ar="ar"
7895 aros_kernel_ar_flags="-cr"
7896 aros_kernel_ld="ld -arch ppc"
7897 aros_kernel_ranlib="ranlib -arch ppc"
7898 kernel_tool_prefix="powerpc-apple-darwin10-"
7900 *arm*)
7901 aros_ios_platform="iPhoneOS"
7902 aros_target_cpu="arm"
7903 aros_object_format="armelf_linux_eabi"
7904 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7905 aros_arch_libs="-laeabi"
7906 aros_default_wbdepth=8
7907 gcc_target_cpu="arm"
7908 aros_kernel_ar="ar"
7909 aros_kernel_ar_flags="-cr"
7910 aros_kernel_ld="ld -arch arm"
7911 aros_kernel_ranlib="ranlib -arch arm"
7912 kernel_tool_prefix="arm-apple-darwin10-"
7913 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7916 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7918 esac
7919 case "$aros_target_variant" in
7920 ios)
7921 aros_ios_version="3.0"
7922 aros_default_wbwidth=320
7923 aros_default_wbheight=480
7924 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7925 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7926 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7927 need_x11=no
7928 # This is here because it may depend on iOS or SDK version
7929 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7930 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7931 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7934 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7935 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7937 esac
7940 dragonfly*)
7941 aros_target_arch="dragonfly"
7942 aros_target_family="unix"
7943 aros_flavour="emulation"
7944 case "$target_cpu" in
7945 *i?86*)
7946 aros_target_cpu="i386"
7947 aros_object_format="elf_i386"
7948 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7950 *x86_64*)
7951 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7952 aros_target_cpu="x86_64"
7953 aros_object_format="elf_x86_64"
7954 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7957 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7959 esac
7962 netbsd*)
7963 aros_target_arch="netbsd"
7964 aros_target_family="unix"
7965 case "$target_cpu" in
7966 *m68k*)
7967 aros_target_cpu="m68k"
7968 aros_object_format="m68kelf"
7969 aros_flavour="emulcompat"
7970 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7971 gcc_target_cpu="mc68000"
7973 *i?86*)
7974 aros_target_cpu="i386"
7975 aros_object_format="elf_i386"
7976 aros_flavour="emulation"
7977 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7978 aros_default_wbdepth=8
7979 gcc_target_cpu="i386"
7982 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7984 esac
7985 aros_target_genmap="-Wl,-M -Xlinker >"
7986 aros_flavour="emulation"
7987 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7990 openbsd*)
7991 aros_target_arch="openbsd"
7992 aros_target_family="unix"
7993 case "$target_cpu" in
7994 *i?86*)
7995 aros_target_cpu="i386"
7996 aros_object_format="elf_i386"
7997 aros_flavour="emulation"
7998 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7999 gcc_target_cpu="i386"
8002 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8004 esac
8005 aros_target_genmap="-Wl,-M -Xlinker >"
8006 aros_target_nm_flags="-u"
8007 aros_flavour="emulation"
8010 solaris*)
8011 aros_target_arch="solaris"
8012 aros_target_family="unix"
8013 case "$target_cpu" in
8014 *i?86*)
8015 aros_target_cpu="i386"
8016 aros_object_format="elf_i386"
8017 aros_flavour="emulation"
8018 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8019 aros_default_wbdepth=8
8020 gcc_target_cpu="i386"
8022 *sparc*)
8023 aros_target_cpu="sparc"
8024 aros_object_format="elf_sparc"
8025 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8026 gcc_target_cpu="sparc"
8029 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8031 esac
8032 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8033 aros_flavour="emulation"
8036 morphos*)
8037 aros_target_arch="morphos"
8038 aros_shared_default="no"
8039 aros_target_cpu="ppc"
8040 aros_object_format="elf_ppc"
8041 aros_flavour="nativecompat"
8042 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8043 gcc_target_cpu="ppc"
8046 sam440)
8047 aros_target_arch="sam440"
8048 aros_shared_default="no"
8049 aros_target_cpu="ppc"
8050 aros_object_format="elf32ppc"
8051 aros_flavour="ppcnative"
8052 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8053 aros_kernel_ldflags=""
8054 aros_default_wbwidth=1024
8055 aros_default_wbheight=768
8056 aros_default_wbdepth=24
8057 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8058 gcc_target_cpu="powerpc"
8061 efika)
8062 aros_target_arch="efika"
8063 aros_shared_default="no"
8064 aros_target_cpu="arm"
8065 aros_object_format="armelf_linux_eabi"
8066 aros_flavour="standalone"
8067 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8068 aros_kernel_ldflags=""
8069 aros_default_wbwidth=1024
8070 aros_default_wbheight=600
8071 aros_arch_libs="-laeabi"
8072 gcc_default_cpu="armv7-a"
8073 gcc_default_fpu="vfpv3"
8074 gcc_default_float_abi="softfp"
8075 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8076 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8079 chrp)
8080 aros_target_arch="chrp"
8081 aros_shared_default="no"
8082 aros_target_cpu="ppc"
8083 aros_object_format="elf32ppc"
8084 aros_flavour="ppcnative"
8085 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8086 aros_kernel_ldflags=""
8087 aros_default_wbwidth=640
8088 aros_default_wbheight=480
8089 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8090 gcc_target_cpu="powerpc"
8091 case "$aros_target_variant" in
8092 efika)
8093 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8095 esac
8098 amiga*)
8099 aros_target_arch="amiga"
8100 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8101 aros_shared_default="no"
8103 case "$target_cpu" in
8104 *m68k*)
8105 # Check whether --enable-amigaos_compliance was given.
8106 if test "${enable_amigaos_compliance+set}" = set; then :
8107 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8110 aros_enable_mmu=no
8111 aros_target_cpu="m68k"
8112 aros_object_format="m68kelf"
8113 aros_flavour="standcompat"
8114 gcc_target_cpu="m68000"
8115 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
8116 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
8117 # Needed to get the correct multilib
8118 aros_config_ldflags="-${gcc_target_cpu}"
8119 aros_shared_ldflags="-${gcc_target_cpu}"
8120 aros_kernel_ldflags="-${gcc_target_cpu}"
8121 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
8122 aros_target_strip_flags="-R.comment --strip-debug"
8123 aros_default_wbwidth=640
8124 aros_default_wbheight=256
8125 aros_default_wbdepth=2
8127 *ppc*)
8128 aros_cpu="ppc"
8129 aros_flavour="native"
8130 gcc_target_cpu="ppc"
8133 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8135 esac
8138 mingw*)
8139 aros_target_arch="mingw32"
8140 aros_shared_default="no"
8141 aros_flavour="emulation"
8142 aros_shared_cflags=""
8143 need_dlopen="no"
8144 rescomp="windres"
8145 case "$target_cpu" in
8146 *i?86*)
8147 aros_target_cpu="i386"
8148 aros_object_format="elf_i386"
8149 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8150 aros_default_wbdepth=8
8151 gcc_target_cpu="i386"
8153 kernel_tool_prefix="i386-mingw32-"
8155 *x86_64*)
8156 aros_target_cpu="x86_64"
8157 aros_object_format="elf_x86_64"
8158 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8159 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8160 aros_default_wbdepth=8
8161 kernel_tool_prefix="x86_64-w64-mingw32-"
8163 *arm*)
8164 aros_target_cpu="arm"
8165 aros_object_format="armelf_linux_eabi"
8166 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8167 aros_arch_libs="-laeabi"
8168 aros_default_wbdepth=8
8169 gcc_target_cpu="arm"
8170 gcc_default_float_abi="soft"
8171 kernel_tool_prefix="arm-mingw32ce-"
8172 aros_default_wbwidth=160
8173 aros_default_wbheight=160
8176 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8178 esac
8179 if test $host_os = "cygwin"; then
8180 aros_kernel_cflags="-mno-cygwin"
8183 pp*)
8184 aros_target_arch="pp"
8185 aros_shared_default="no"
8186 case "$target_cpu" in
8187 *m68k*)
8188 aros_target_cpu="m68k"
8189 aros_object_format="m68kelf"
8190 aros_flavour="palmnative"
8191 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8192 aros_default_wbwidth=160
8193 aros_default_wbheight=160
8194 aros_default_wbdepth=1
8195 aros_target_ar_flags="cru"
8196 aros_compiler_libs="-lgcc1"
8197 aros_shared_default=no
8198 aros_shared_cflags="-fpic"
8199 aros_shared_aflags=""
8200 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8201 aros_kernel_ldflags="-Wl,-rpath,./lib"
8202 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8203 aros_debug_aflags=""
8204 aros_debug_ldflags="$aros_symbols_debug"
8205 aros_mungwall_debug="0"
8206 aros_modules_debug="0"
8207 gcc_target_cpu="mc68000"
8208 ignore_undefined_symbols="-ius"
8211 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8213 esac
8216 mac*)
8217 aros_target_arch="mac"
8218 aros_shared_default="no"
8219 case "$target_cpu" in
8220 *m68k*)
8221 aros_target_cpu="m68k"
8222 aros_object_format="m68kelf"
8223 aros_flavour="mac68knative"
8224 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8225 aros_default_wbwidth=512
8226 aros_default_wbheight=384
8227 aros_default_wbdepth=8
8228 aros_target_ar_flags="cru"
8229 aros_compiler_libs="-lgcc1"
8230 aros_shared_default=no
8231 aros_shared_cflags="-fpic"
8232 aros_shared_aflags=""
8233 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8234 aros_kernel_ldflags="-Wl,-rpath,./lib"
8235 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
8236 aros_debug_aflags=""
8237 aros_debug_ldflags="$aros_symbols_debug"
8238 aros_mungwall_debug="0"
8239 aros_modules_debug="0"
8240 gcc_target_cpu="mc68000"
8241 ignore_undefined_symbols="-ius"
8244 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8246 esac
8250 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8252 esac
8254 #-----------------------------------------------------------------------------
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
8256 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
8258 # Check whether --with-crosstools was given.
8259 if test "${with_crosstools+set}" = set; then :
8260 withval=$with_crosstools; with_crosstools=$withval
8261 else
8262 with_crosstools="default"
8265 if test "$with_crosstools" = "default"; then
8266 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8267 else
8268 # Disable building crosstools if we are using an external set - otherwise
8269 # we may attempt to overwrite them if the tools-crosstools target is made!
8270 crosstools=no
8271 AROS_CROSSTOOLSDIR="$with_crosstools"
8272 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8275 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel tool prefix" >&5
8278 $as_echo_n "checking Kernel tool prefix... " >&6; }
8280 # Check whether --with-kernel-tool-prefix was given.
8281 if test "${with_kernel_tool_prefix+set}" = set; then :
8282 withval=$with_kernel_tool_prefix; kernel_tool_prefix="$withval"
8283 else
8284 kernel_tool_prefix="$kernel_tool_prefix"
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8288 $as_echo "$kernel_tool_prefix" >&6; }
8290 target_tool_prefix=${target_cpu}-aros-
8292 # Now process extra architecture-specific options.
8293 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8294 # as well as floating-point ABI.
8295 case "$aros_target_cpu" in
8296 arm)
8297 if test "$gcc_default_cpu" = ""; then
8298 gcc_default_cpu="armv6"
8300 if test "$gcc_default_fpu" = ""; then
8301 gcc_default_fpu="vfp"
8303 if test "$gcc_default_float_abi" = ""; then
8304 gcc_default_float_abi="softfp"
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8308 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8310 # Check whether --with-cpu was given.
8311 if test "${with_cpu+set}" = set; then :
8312 withval=$with_cpu; aros_gcc_cpu="$withval"
8313 else
8314 aros_gcc_cpu=$gcc_default_cpu
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8318 $as_echo "$aros_gcc_cpu" >&6; }
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8321 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8323 # Check whether --with-fpu was given.
8324 if test "${with_fpu+set}" = set; then :
8325 withval=$with_fpu; aros_gcc_fpu="$withval"
8326 else
8327 aros_gcc_fpu=$gcc_default_fpu
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8331 $as_echo "$aros_gcc_fpu" >&6; }
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8334 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8336 # Check whether --with-float was given.
8337 if test "${with_float+set}" = set; then :
8338 withval=$with_float; aros_gcc_float_abi="$withval"
8339 else
8340 aros_gcc_float_abi=$gcc_default_float_abi
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8344 $as_echo "$aros_gcc_float_abi" >&6; }
8346 aros_config_cflags="$aros_config_cflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8347 aros_config_aflags="$aros_config_aflags -marm -mthumb-interwork -march=$aros_gcc_cpu -mfpu=$aros_gcc_fpu -mfloat-abi=$aros_gcc_float_abi -fno-asynchronous-unwind-tables -fno-exceptions"
8349 esac
8351 # Some formats need custom ELF specs.
8352 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8353 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8354 elf_specs_in=config/${aros_object_format}-specs.in
8355 else
8356 elf_specs_in=config/elf-specs.in
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8360 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8362 # Check whether --with-aros-gcc was given.
8363 if test "${with_aros_gcc+set}" = set; then :
8364 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8365 else
8366 aros_gcc_version=""
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8370 $as_echo "$aros_gcc_version" >&6; }
8372 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8373 # Since we override specs, we may need to put these defines there
8374 if test "$gcc_target_cpu" != ""; then
8375 gcc_target_cpu="-D__${gcc_target_cpu}__"
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8379 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8381 # Check whether --with-portssources was given.
8382 if test "${with_portssources+set}" = set; then :
8383 withval=$with_portssources; with_portssrcdir=$withval
8384 else
8385 with_portssrcdir="default"
8388 if test "$with_portssrcdir" = "default"; then
8389 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8390 else
8391 AROS_PORTSSRCDIR="$with_portssrcdir"
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8394 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8397 $as_echo_n "checking which bootloader to use... " >&6; }
8399 # Check whether --with-bootloader was given.
8400 if test "${with_bootloader+set}" = set; then :
8401 withval=$with_bootloader; target_bootloader=$withval
8402 else
8403 target_bootloader=$target_bootloader
8406 if test "$target_bootloader" = "none"; then
8407 aros_target_bootloader=""
8408 else
8409 aros_target_bootloader="$target_bootloader"
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8412 $as_echo "$target_bootloader" >&6; }
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8415 $as_echo_n "checking which icon-set to use... " >&6; }
8417 # Check whether --with-iconset was given.
8418 if test "${with_iconset+set}" = set; then :
8419 withval=$with_iconset; target_iconset=$withval
8420 else
8421 target_iconset="default"
8424 if test "$target_iconset" = "default"; then
8425 aros_target_iconset="Gorilla"
8426 target_iconset="default (Gorilla)"
8427 else
8428 aros_target_iconset="$target_iconset"
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8431 $as_echo "$target_iconset" >&6; }
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8434 $as_echo_n "checking which GUI Theme to use... " >&6; }
8436 # Check whether --with-theme was given.
8437 if test "${with_theme+set}" = set; then :
8438 withval=$with_theme; target_guitheme=$withval
8439 else
8440 target_guitheme="default"
8443 if test "$target_guitheme" = "default"; then
8444 aros_target_guitheme="Ice"
8445 else
8446 aros_target_guitheme="$target_guitheme"
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8449 $as_echo "$aros_target_guitheme" >&6; }
8451 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8452 # for target code)
8453 cross_compiling=no
8454 if test "$aros_host_cpu" = "$aros_target_cpu" ; then
8455 # If host = target CPU, let's try to use the
8456 # host's toolchains if no others were requested
8457 if test "$kernel_tool_prefix" = "none" ; then
8458 kernel_tool_prefix=""
8460 else
8461 cross_compiling=yes
8464 if test "$aros_host_cpu" == "x86_64" ; then
8465 if test "$aros_target_cpu" == "i386" ; then
8466 if test "$aros_target_arch" != "mingw32"; then
8467 cross_compiling=no
8468 kernel_tool_prefix=""
8473 if test "$aros_host_arch" == "darwin" ; then
8474 if test "$aros_target_arch" != "darwin" ; then
8475 cross_compiling=yes
8476 else
8477 cross_compiling=no
8478 kernel_tool_prefix=""
8482 if test "$aros_host_arch" == "mingw32" ; then
8483 if test "$aros_target_arch" != "mingw32" ; then
8484 cross_compiling=yes
8488 #######################################################################
8489 ## Compute what toolchains to use, and their paths ##
8490 #######################################################################
8492 # This takes, as input:
8493 # crosstools {yes,no}
8494 # aros_gcc_version {default,[version]}
8495 # kernel_tool_prefix {none,[some-arch-os-]}
8496 # target_tool_prefix ${target_cpu}-aros-
8498 # The output is
8499 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8500 # Where the 'kernel' binaries are located
8501 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8502 # Where the 'target' binaries are located
8503 # (not the symlink farm - that is aros_target_*!)
8505 # The rules are:
8506 # if crosstools then
8507 # if kernel_tools_prefix = "no-kernel-prefix-"
8508 # aros_kernel_* = crosstools cc paths
8509 # aros_kernel_cc = elf cc wrapper around crosstools cc
8510 # else
8511 # VALIDATE(${kernel_tools_prefix}*)
8512 # aros_kernel_* = ${kernel_tools_prefix}*
8513 # if ${kernel_tools_prefix}cc is an AROS gcc
8514 # aros_kernel_cc = ${kernel_tools_prefix}cc
8515 # else
8516 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8517 # fi
8518 # fi
8520 # orig_target_* = aros built crosstools
8521 # orig_target_cc = elf cc wrapper around crosstools cc
8522 # else
8523 # VALIDATE(${kernel_tools_prefix}*)
8525 # orig_target_* = aros_kernel_*
8526 # if aros_kernel_cc is an AROS gcc
8527 # orig_target_cc = aros_kernel_cc
8528 # else
8529 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8530 # fi
8531 # fi
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use external toolchain" >&5
8535 $as_echo_n "checking whether to use external toolchain... " >&6; }
8536 if test "$kernel_tool_prefix" = "none" ; then
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8538 $as_echo "no" >&6; };
8539 if test "$crosstools" != "yes"; then
8540 as_fn_error $? "--disable-crosstools requires --with-kernel-tool-prefix= for this arch" "$LINENO" 5
8542 # We are building AROS crosstools, and no kernel
8543 # tools specified - assume target tools == kernel tools
8544 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
8545 aros_kernel_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
8546 aros_kernel_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
8547 aros_kernel_cpp="${tmp_tool_prefix}cpp"
8548 aros_kernel_ld="${tmp_tool_prefix}ld"
8549 aros_kernel_as="${tmp_tool_prefix}as"
8550 aros_kernel_ar="${tmp_tool_prefix}ar"
8551 aros_kernel_ranlib="${tmp_tool_prefix}ranlib"
8552 aros_kernel_nm="${tmp_tool_prefix}nm"
8553 aros_kernel_strip="${tmp_tool_prefix}strip"
8554 aros_kernel_objcopy="${tmp_tool_prefix}objcopy"
8555 aros_kernel_objdump="${tmp_tool_prefix}objdump"
8556 else
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8558 $as_echo "yes" >&6; };
8559 # Kernel tools specified - find them
8560 # Note that 'normally', aros_kernel_* overrides will
8561 # empty, unless specified in the per-arch sections above.
8564 if test "$aros_kernel_cpp" = ""; then
8565 if test "$cross_compiling" = "yes" ; then
8566 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8567 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569 $as_echo_n "checking for $ac_word... " >&6; }
8570 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8571 $as_echo_n "(cached) " >&6
8572 else
8573 case $aros_kernel_cpp in
8574 [\\/]* | ?:[\\/]*)
8575 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8581 IFS=$as_save_IFS
8582 test -z "$as_dir" && as_dir=.
8583 for ac_exec_ext in '' $ac_executable_extensions; do
8584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8585 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587 break 2
8589 done
8590 done
8591 IFS=$as_save_IFS
8594 esac
8596 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8597 if test -n "$aros_kernel_cpp"; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8599 $as_echo "$aros_kernel_cpp" >&6; }
8600 else
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8606 else
8607 if test "$GCC" = "yes"; then
8608 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8609 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8610 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 $as_echo_n "checking for $ac_word... " >&6; }
8613 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616 case $aros_kernel_cpp in
8617 [\\/]* | ?:[\\/]*)
8618 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622 for as_dir in `dirname $aros_gcc_cpp`
8624 IFS=$as_save_IFS
8625 test -z "$as_dir" && as_dir=.
8626 for ac_exec_ext in '' $ac_executable_extensions; do
8627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8628 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8630 break 2
8632 done
8633 done
8634 IFS=$as_save_IFS
8637 esac
8639 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8640 if test -n "$aros_kernel_cpp"; then
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8642 $as_echo "$aros_kernel_cpp" >&6; }
8643 else
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645 $as_echo "no" >&6; }
8650 if test "$aros_kernel_cpp" = ""; then
8651 # Extract the first word of "cpp", so it can be a program name with args.
8652 set dummy cpp; ac_word=$2
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8654 $as_echo_n "checking for $ac_word... " >&6; }
8655 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8656 $as_echo_n "(cached) " >&6
8657 else
8658 case $aros_kernel_cpp in
8659 [\\/]* | ?:[\\/]*)
8660 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8664 for as_dir in $PATH
8666 IFS=$as_save_IFS
8667 test -z "$as_dir" && as_dir=.
8668 for ac_exec_ext in '' $ac_executable_extensions; do
8669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8670 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8672 break 2
8674 done
8675 done
8676 IFS=$as_save_IFS
8679 esac
8681 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8682 if test -n "$aros_kernel_cpp"; then
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8684 $as_echo "$aros_kernel_cpp" >&6; }
8685 else
8686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8687 $as_echo "no" >&6; }
8693 else
8694 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8695 set dummy $aros_kernel_cpp; ac_word=$2
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8697 $as_echo_n "checking for $ac_word... " >&6; }
8698 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8699 $as_echo_n "(cached) " >&6
8700 else
8701 case $aros_kernel_cpp in
8702 [\\/]* | ?:[\\/]*)
8703 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707 for as_dir in $PATH
8709 IFS=$as_save_IFS
8710 test -z "$as_dir" && as_dir=.
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8713 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715 break 2
8717 done
8718 done
8719 IFS=$as_save_IFS
8722 esac
8724 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8725 if test -n "$aros_kernel_cpp"; then
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8727 $as_echo "$aros_kernel_cpp" >&6; }
8728 else
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8730 $as_echo "no" >&6; }
8736 if test "$aros_kernel_cpp" = ""; then
8737 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8739 if test "x$aros_kernel_cc" = "x"; then
8740 aros_kernel_cc=${kernel_tool_prefix}gcc
8743 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8744 if test "$cross_compiling" = "yes" ; then
8745 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8746 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8748 $as_echo_n "checking for $ac_word... " >&6; }
8749 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8750 $as_echo_n "(cached) " >&6
8751 else
8752 case $aros_kernel_cc in
8753 [\\/]* | ?:[\\/]*)
8754 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8758 for as_dir in $PATH
8760 IFS=$as_save_IFS
8761 test -z "$as_dir" && as_dir=.
8762 for ac_exec_ext in '' $ac_executable_extensions; do
8763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8764 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8766 break 2
8768 done
8769 done
8770 IFS=$as_save_IFS
8773 esac
8775 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8776 if test -n "$aros_kernel_cc"; then
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8778 $as_echo "$aros_kernel_cc" >&6; }
8779 else
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8781 $as_echo "no" >&6; }
8785 else
8786 if test "$GCC" = "yes"; then
8787 aros_gcc_cc=`$CC -print-prog-name=cc`
8788 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8789 set dummy `basename $aros_gcc_cc`; ac_word=$2
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791 $as_echo_n "checking for $ac_word... " >&6; }
8792 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8793 $as_echo_n "(cached) " >&6
8794 else
8795 case $aros_kernel_cc in
8796 [\\/]* | ?:[\\/]*)
8797 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8801 for as_dir in `dirname $aros_gcc_cc`
8803 IFS=$as_save_IFS
8804 test -z "$as_dir" && as_dir=.
8805 for ac_exec_ext in '' $ac_executable_extensions; do
8806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8807 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8809 break 2
8811 done
8812 done
8813 IFS=$as_save_IFS
8816 esac
8818 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8819 if test -n "$aros_kernel_cc"; then
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8821 $as_echo "$aros_kernel_cc" >&6; }
8822 else
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8824 $as_echo "no" >&6; }
8829 if test "$aros_kernel_cc" = ""; then
8830 # Extract the first word of "cc", so it can be a program name with args.
8831 set dummy cc; ac_word=$2
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8833 $as_echo_n "checking for $ac_word... " >&6; }
8834 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8835 $as_echo_n "(cached) " >&6
8836 else
8837 case $aros_kernel_cc in
8838 [\\/]* | ?:[\\/]*)
8839 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8843 for as_dir in $PATH
8845 IFS=$as_save_IFS
8846 test -z "$as_dir" && as_dir=.
8847 for ac_exec_ext in '' $ac_executable_extensions; do
8848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8849 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8851 break 2
8853 done
8854 done
8855 IFS=$as_save_IFS
8858 esac
8860 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8861 if test -n "$aros_kernel_cc"; then
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8863 $as_echo "$aros_kernel_cc" >&6; }
8864 else
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8866 $as_echo "no" >&6; }
8872 else
8873 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8874 set dummy $aros_kernel_cc${aros_gcc_version}; ac_word=$2
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8876 $as_echo_n "checking for $ac_word... " >&6; }
8877 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8878 $as_echo_n "(cached) " >&6
8879 else
8880 case $aros_kernel_cc in
8881 [\\/]* | ?:[\\/]*)
8882 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8886 for as_dir in $PATH
8888 IFS=$as_save_IFS
8889 test -z "$as_dir" && as_dir=.
8890 for ac_exec_ext in '' $ac_executable_extensions; do
8891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8892 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8894 break 2
8896 done
8897 done
8898 IFS=$as_save_IFS
8901 esac
8903 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8904 if test -n "$aros_kernel_cc"; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8906 $as_echo "$aros_kernel_cc" >&6; }
8907 else
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8909 $as_echo "no" >&6; }
8915 if test "$aros_kernel_cc" = ""; then
8916 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
8918 if test "x$aros_kernel_cxx" = "x"; then
8919 aros_kernel_cxx=${kernel_tool_prefix}g++
8922 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
8923 if test "$cross_compiling" = "yes" ; then
8924 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
8925 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
8926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8927 $as_echo_n "checking for $ac_word... " >&6; }
8928 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
8929 $as_echo_n "(cached) " >&6
8930 else
8931 case $aros_kernel_cxx in
8932 [\\/]* | ?:[\\/]*)
8933 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
8936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937 for as_dir in $PATH
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8943 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
8944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 break 2
8947 done
8948 done
8949 IFS=$as_save_IFS
8952 esac
8954 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
8955 if test -n "$aros_kernel_cxx"; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
8957 $as_echo "$aros_kernel_cxx" >&6; }
8958 else
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8960 $as_echo "no" >&6; }
8964 else
8965 if test "$GCC" = "yes"; then
8966 aros_gcc_cxx=`$CC -print-prog-name=cxx`
8967 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
8968 set dummy `basename $aros_gcc_cxx`; ac_word=$2
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970 $as_echo_n "checking for $ac_word... " >&6; }
8971 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
8972 $as_echo_n "(cached) " >&6
8973 else
8974 case $aros_kernel_cxx in
8975 [\\/]* | ?:[\\/]*)
8976 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980 for as_dir in `dirname $aros_gcc_cxx`
8982 IFS=$as_save_IFS
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8986 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8988 break 2
8990 done
8991 done
8992 IFS=$as_save_IFS
8995 esac
8997 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
8998 if test -n "$aros_kernel_cxx"; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9000 $as_echo "$aros_kernel_cxx" >&6; }
9001 else
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9008 if test "$aros_kernel_cxx" = ""; then
9009 # Extract the first word of "cxx", so it can be a program name with args.
9010 set dummy cxx; ac_word=$2
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012 $as_echo_n "checking for $ac_word... " >&6; }
9013 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9014 $as_echo_n "(cached) " >&6
9015 else
9016 case $aros_kernel_cxx in
9017 [\\/]* | ?:[\\/]*)
9018 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9022 for as_dir in $PATH
9024 IFS=$as_save_IFS
9025 test -z "$as_dir" && as_dir=.
9026 for ac_exec_ext in '' $ac_executable_extensions; do
9027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9028 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 break 2
9032 done
9033 done
9034 IFS=$as_save_IFS
9037 esac
9039 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9040 if test -n "$aros_kernel_cxx"; then
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9042 $as_echo "$aros_kernel_cxx" >&6; }
9043 else
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9045 $as_echo "no" >&6; }
9051 else
9052 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9053 set dummy $aros_kernel_cxx${aros_gcc_version}; ac_word=$2
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9055 $as_echo_n "checking for $ac_word... " >&6; }
9056 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9057 $as_echo_n "(cached) " >&6
9058 else
9059 case $aros_kernel_cxx in
9060 [\\/]* | ?:[\\/]*)
9061 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9065 for as_dir in $PATH
9067 IFS=$as_save_IFS
9068 test -z "$as_dir" && as_dir=.
9069 for ac_exec_ext in '' $ac_executable_extensions; do
9070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9071 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9073 break 2
9075 done
9076 done
9077 IFS=$as_save_IFS
9080 esac
9082 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9083 if test -n "$aros_kernel_cxx"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9085 $as_echo "$aros_kernel_cxx" >&6; }
9086 else
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9094 # If it's set, make sure it's really there
9095 if test "x$aros_kernel_cxx" != "x" ; then
9096 if test "$aros_kernel_cxx" = ""; then
9097 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9101 if test "$aros_kernel_ld" = ""; then
9102 if test "$cross_compiling" = "yes" ; then
9103 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9104 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9106 $as_echo_n "checking for $ac_word... " >&6; }
9107 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9108 $as_echo_n "(cached) " >&6
9109 else
9110 case $aros_kernel_ld in
9111 [\\/]* | ?:[\\/]*)
9112 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 for as_dir in $PATH
9118 IFS=$as_save_IFS
9119 test -z "$as_dir" && as_dir=.
9120 for ac_exec_ext in '' $ac_executable_extensions; do
9121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9122 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9124 break 2
9126 done
9127 done
9128 IFS=$as_save_IFS
9131 esac
9133 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9134 if test -n "$aros_kernel_ld"; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9136 $as_echo "$aros_kernel_ld" >&6; }
9137 else
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 $as_echo "no" >&6; }
9143 else
9144 if test "$GCC" = "yes"; then
9145 aros_gcc_ld=`$CC -print-prog-name=ld`
9146 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9147 set dummy `basename $aros_gcc_ld`; ac_word=$2
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 $as_echo_n "checking for $ac_word... " >&6; }
9150 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9151 $as_echo_n "(cached) " >&6
9152 else
9153 case $aros_kernel_ld in
9154 [\\/]* | ?:[\\/]*)
9155 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9159 for as_dir in `dirname $aros_gcc_ld`
9161 IFS=$as_save_IFS
9162 test -z "$as_dir" && as_dir=.
9163 for ac_exec_ext in '' $ac_executable_extensions; do
9164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9165 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9167 break 2
9169 done
9170 done
9171 IFS=$as_save_IFS
9174 esac
9176 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9177 if test -n "$aros_kernel_ld"; then
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9179 $as_echo "$aros_kernel_ld" >&6; }
9180 else
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9182 $as_echo "no" >&6; }
9187 if test "$aros_kernel_ld" = ""; then
9188 # Extract the first word of "ld", so it can be a program name with args.
9189 set dummy ld; ac_word=$2
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9191 $as_echo_n "checking for $ac_word... " >&6; }
9192 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9193 $as_echo_n "(cached) " >&6
9194 else
9195 case $aros_kernel_ld in
9196 [\\/]* | ?:[\\/]*)
9197 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201 for as_dir in $PATH
9203 IFS=$as_save_IFS
9204 test -z "$as_dir" && as_dir=.
9205 for ac_exec_ext in '' $ac_executable_extensions; do
9206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9207 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9209 break 2
9211 done
9212 done
9213 IFS=$as_save_IFS
9216 esac
9218 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9219 if test -n "$aros_kernel_ld"; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9221 $as_echo "$aros_kernel_ld" >&6; }
9222 else
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224 $as_echo "no" >&6; }
9230 else
9231 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9232 set dummy $aros_kernel_ld; ac_word=$2
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9234 $as_echo_n "checking for $ac_word... " >&6; }
9235 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 case $aros_kernel_ld in
9239 [\\/]* | ?:[\\/]*)
9240 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9244 for as_dir in $PATH
9246 IFS=$as_save_IFS
9247 test -z "$as_dir" && as_dir=.
9248 for ac_exec_ext in '' $ac_executable_extensions; do
9249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9250 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9252 break 2
9254 done
9255 done
9256 IFS=$as_save_IFS
9259 esac
9261 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9262 if test -n "$aros_kernel_ld"; then
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9264 $as_echo "$aros_kernel_ld" >&6; }
9265 else
9266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9267 $as_echo "no" >&6; }
9273 if test "$aros_kernel_ld" = ""; then
9274 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9277 if test "$aros_kernel_as" = ""; then
9278 if test "$cross_compiling" = "yes" ; then
9279 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9280 set dummy ${kernel_tool_prefix}as; ac_word=$2
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282 $as_echo_n "checking for $ac_word... " >&6; }
9283 if ${ac_cv_path_aros_kernel_as+:} false; then :
9284 $as_echo_n "(cached) " >&6
9285 else
9286 case $aros_kernel_as in
9287 [\\/]* | ?:[\\/]*)
9288 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292 for as_dir in $PATH
9294 IFS=$as_save_IFS
9295 test -z "$as_dir" && as_dir=.
9296 for ac_exec_ext in '' $ac_executable_extensions; do
9297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9298 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9300 break 2
9302 done
9303 done
9304 IFS=$as_save_IFS
9307 esac
9309 aros_kernel_as=$ac_cv_path_aros_kernel_as
9310 if test -n "$aros_kernel_as"; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9312 $as_echo "$aros_kernel_as" >&6; }
9313 else
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9315 $as_echo "no" >&6; }
9319 else
9320 if test "$GCC" = "yes"; then
9321 aros_gcc_as=`$CC -print-prog-name=as`
9322 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9323 set dummy `basename $aros_gcc_as`; ac_word=$2
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9325 $as_echo_n "checking for $ac_word... " >&6; }
9326 if ${ac_cv_path_aros_kernel_as+:} false; then :
9327 $as_echo_n "(cached) " >&6
9328 else
9329 case $aros_kernel_as in
9330 [\\/]* | ?:[\\/]*)
9331 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9335 for as_dir in `dirname $aros_gcc_as`
9337 IFS=$as_save_IFS
9338 test -z "$as_dir" && as_dir=.
9339 for ac_exec_ext in '' $ac_executable_extensions; do
9340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9341 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9343 break 2
9345 done
9346 done
9347 IFS=$as_save_IFS
9350 esac
9352 aros_kernel_as=$ac_cv_path_aros_kernel_as
9353 if test -n "$aros_kernel_as"; then
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9355 $as_echo "$aros_kernel_as" >&6; }
9356 else
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9358 $as_echo "no" >&6; }
9363 if test "$aros_kernel_as" = ""; then
9364 # Extract the first word of "as", so it can be a program name with args.
9365 set dummy as; ac_word=$2
9366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9367 $as_echo_n "checking for $ac_word... " >&6; }
9368 if ${ac_cv_path_aros_kernel_as+:} false; then :
9369 $as_echo_n "(cached) " >&6
9370 else
9371 case $aros_kernel_as in
9372 [\\/]* | ?:[\\/]*)
9373 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9377 for as_dir in $PATH
9379 IFS=$as_save_IFS
9380 test -z "$as_dir" && as_dir=.
9381 for ac_exec_ext in '' $ac_executable_extensions; do
9382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9383 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9385 break 2
9387 done
9388 done
9389 IFS=$as_save_IFS
9392 esac
9394 aros_kernel_as=$ac_cv_path_aros_kernel_as
9395 if test -n "$aros_kernel_as"; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9397 $as_echo "$aros_kernel_as" >&6; }
9398 else
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9400 $as_echo "no" >&6; }
9406 else
9407 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9408 set dummy $aros_kernel_as; ac_word=$2
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9410 $as_echo_n "checking for $ac_word... " >&6; }
9411 if ${ac_cv_path_aros_kernel_as+:} false; then :
9412 $as_echo_n "(cached) " >&6
9413 else
9414 case $aros_kernel_as in
9415 [\\/]* | ?:[\\/]*)
9416 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9420 for as_dir in $PATH
9422 IFS=$as_save_IFS
9423 test -z "$as_dir" && as_dir=.
9424 for ac_exec_ext in '' $ac_executable_extensions; do
9425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9426 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9428 break 2
9430 done
9431 done
9432 IFS=$as_save_IFS
9435 esac
9437 aros_kernel_as=$ac_cv_path_aros_kernel_as
9438 if test -n "$aros_kernel_as"; then
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9440 $as_echo "$aros_kernel_as" >&6; }
9441 else
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9443 $as_echo "no" >&6; }
9449 if test "$aros_kernel_as" = ""; then
9450 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9453 if test "$aros_kernel_ar" = ""; then
9454 if test "$cross_compiling" = "yes" ; then
9455 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9456 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9458 $as_echo_n "checking for $ac_word... " >&6; }
9459 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9460 $as_echo_n "(cached) " >&6
9461 else
9462 case $aros_kernel_ar in
9463 [\\/]* | ?:[\\/]*)
9464 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9468 for as_dir in $PATH
9470 IFS=$as_save_IFS
9471 test -z "$as_dir" && as_dir=.
9472 for ac_exec_ext in '' $ac_executable_extensions; do
9473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9474 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9476 break 2
9478 done
9479 done
9480 IFS=$as_save_IFS
9483 esac
9485 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9486 if test -n "$aros_kernel_ar"; then
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9488 $as_echo "$aros_kernel_ar" >&6; }
9489 else
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491 $as_echo "no" >&6; }
9495 else
9496 if test "$GCC" = "yes"; then
9497 aros_gcc_ar=`$CC -print-prog-name=ar`
9498 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9499 set dummy `basename $aros_gcc_ar`; ac_word=$2
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9501 $as_echo_n "checking for $ac_word... " >&6; }
9502 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9503 $as_echo_n "(cached) " >&6
9504 else
9505 case $aros_kernel_ar in
9506 [\\/]* | ?:[\\/]*)
9507 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9511 for as_dir in `dirname $aros_gcc_ar`
9513 IFS=$as_save_IFS
9514 test -z "$as_dir" && as_dir=.
9515 for ac_exec_ext in '' $ac_executable_extensions; do
9516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9517 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9519 break 2
9521 done
9522 done
9523 IFS=$as_save_IFS
9526 esac
9528 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9529 if test -n "$aros_kernel_ar"; then
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9531 $as_echo "$aros_kernel_ar" >&6; }
9532 else
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 $as_echo "no" >&6; }
9539 if test "$aros_kernel_ar" = ""; then
9540 # Extract the first word of "ar", so it can be a program name with args.
9541 set dummy ar; ac_word=$2
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9543 $as_echo_n "checking for $ac_word... " >&6; }
9544 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 case $aros_kernel_ar in
9548 [\\/]* | ?:[\\/]*)
9549 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9553 for as_dir in $PATH
9555 IFS=$as_save_IFS
9556 test -z "$as_dir" && as_dir=.
9557 for ac_exec_ext in '' $ac_executable_extensions; do
9558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9559 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9561 break 2
9563 done
9564 done
9565 IFS=$as_save_IFS
9568 esac
9570 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9571 if test -n "$aros_kernel_ar"; then
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9573 $as_echo "$aros_kernel_ar" >&6; }
9574 else
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9576 $as_echo "no" >&6; }
9582 else
9583 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9584 set dummy $aros_kernel_ar; ac_word=$2
9585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9586 $as_echo_n "checking for $ac_word... " >&6; }
9587 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9588 $as_echo_n "(cached) " >&6
9589 else
9590 case $aros_kernel_ar in
9591 [\\/]* | ?:[\\/]*)
9592 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9596 for as_dir in $PATH
9598 IFS=$as_save_IFS
9599 test -z "$as_dir" && as_dir=.
9600 for ac_exec_ext in '' $ac_executable_extensions; do
9601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9602 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9604 break 2
9606 done
9607 done
9608 IFS=$as_save_IFS
9611 esac
9613 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9614 if test -n "$aros_kernel_ar"; then
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9616 $as_echo "$aros_kernel_ar" >&6; }
9617 else
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9625 if test "$aros_kernel_ar" = ""; then
9626 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9629 if test "$aros_kernel_ranlib" = ""; then
9630 if test "$cross_compiling" = "yes" ; then
9631 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9632 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634 $as_echo_n "checking for $ac_word... " >&6; }
9635 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 case $aros_kernel_ranlib in
9639 [\\/]* | ?:[\\/]*)
9640 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 for as_dir in $PATH
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9650 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 break 2
9654 done
9655 done
9656 IFS=$as_save_IFS
9659 esac
9661 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9662 if test -n "$aros_kernel_ranlib"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9664 $as_echo "$aros_kernel_ranlib" >&6; }
9665 else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9671 else
9672 if test "$GCC" = "yes"; then
9673 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9674 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9675 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677 $as_echo_n "checking for $ac_word... " >&6; }
9678 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9679 $as_echo_n "(cached) " >&6
9680 else
9681 case $aros_kernel_ranlib in
9682 [\\/]* | ?:[\\/]*)
9683 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in `dirname $aros_gcc_ranlib`
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 break 2
9697 done
9698 done
9699 IFS=$as_save_IFS
9702 esac
9704 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9705 if test -n "$aros_kernel_ranlib"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9707 $as_echo "$aros_kernel_ranlib" >&6; }
9708 else
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9715 if test "$aros_kernel_ranlib" = ""; then
9716 # Extract the first word of "ranlib", so it can be a program name with args.
9717 set dummy ranlib; ac_word=$2
9718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9719 $as_echo_n "checking for $ac_word... " >&6; }
9720 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9721 $as_echo_n "(cached) " >&6
9722 else
9723 case $aros_kernel_ranlib in
9724 [\\/]* | ?:[\\/]*)
9725 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9729 for as_dir in $PATH
9731 IFS=$as_save_IFS
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9735 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9737 break 2
9739 done
9740 done
9741 IFS=$as_save_IFS
9744 esac
9746 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9747 if test -n "$aros_kernel_ranlib"; then
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9749 $as_echo "$aros_kernel_ranlib" >&6; }
9750 else
9751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9752 $as_echo "no" >&6; }
9758 else
9759 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9760 set dummy $aros_kernel_ranlib; ac_word=$2
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9762 $as_echo_n "checking for $ac_word... " >&6; }
9763 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9764 $as_echo_n "(cached) " >&6
9765 else
9766 case $aros_kernel_ranlib in
9767 [\\/]* | ?:[\\/]*)
9768 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9772 for as_dir in $PATH
9774 IFS=$as_save_IFS
9775 test -z "$as_dir" && as_dir=.
9776 for ac_exec_ext in '' $ac_executable_extensions; do
9777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9778 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9780 break 2
9782 done
9783 done
9784 IFS=$as_save_IFS
9787 esac
9789 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9790 if test -n "$aros_kernel_ranlib"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9792 $as_echo "$aros_kernel_ranlib" >&6; }
9793 else
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 $as_echo "no" >&6; }
9801 if test "$aros_kernel_ranlib" = ""; then
9802 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9805 if test "$aros_kernel_nm" = ""; then
9806 if test "$cross_compiling" = "yes" ; then
9807 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9808 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9810 $as_echo_n "checking for $ac_word... " >&6; }
9811 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9812 $as_echo_n "(cached) " >&6
9813 else
9814 case $aros_kernel_nm in
9815 [\\/]* | ?:[\\/]*)
9816 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820 for as_dir in $PATH
9822 IFS=$as_save_IFS
9823 test -z "$as_dir" && as_dir=.
9824 for ac_exec_ext in '' $ac_executable_extensions; do
9825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9826 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9828 break 2
9830 done
9831 done
9832 IFS=$as_save_IFS
9835 esac
9837 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9838 if test -n "$aros_kernel_nm"; then
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9840 $as_echo "$aros_kernel_nm" >&6; }
9841 else
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9843 $as_echo "no" >&6; }
9847 else
9848 if test "$GCC" = "yes"; then
9849 aros_gcc_nm=`$CC -print-prog-name=nm`
9850 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9851 set dummy `basename $aros_gcc_nm`; ac_word=$2
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9853 $as_echo_n "checking for $ac_word... " >&6; }
9854 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9855 $as_echo_n "(cached) " >&6
9856 else
9857 case $aros_kernel_nm in
9858 [\\/]* | ?:[\\/]*)
9859 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9863 for as_dir in `dirname $aros_gcc_nm`
9865 IFS=$as_save_IFS
9866 test -z "$as_dir" && as_dir=.
9867 for ac_exec_ext in '' $ac_executable_extensions; do
9868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9869 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9871 break 2
9873 done
9874 done
9875 IFS=$as_save_IFS
9878 esac
9880 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9881 if test -n "$aros_kernel_nm"; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9883 $as_echo "$aros_kernel_nm" >&6; }
9884 else
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886 $as_echo "no" >&6; }
9891 if test "$aros_kernel_nm" = ""; then
9892 # Extract the first word of "nm", so it can be a program name with args.
9893 set dummy nm; ac_word=$2
9894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9895 $as_echo_n "checking for $ac_word... " >&6; }
9896 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9897 $as_echo_n "(cached) " >&6
9898 else
9899 case $aros_kernel_nm in
9900 [\\/]* | ?:[\\/]*)
9901 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905 for as_dir in $PATH
9907 IFS=$as_save_IFS
9908 test -z "$as_dir" && as_dir=.
9909 for ac_exec_ext in '' $ac_executable_extensions; do
9910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9911 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9913 break 2
9915 done
9916 done
9917 IFS=$as_save_IFS
9920 esac
9922 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9923 if test -n "$aros_kernel_nm"; then
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9925 $as_echo "$aros_kernel_nm" >&6; }
9926 else
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9928 $as_echo "no" >&6; }
9934 else
9935 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
9936 set dummy $aros_kernel_nm; ac_word=$2
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9938 $as_echo_n "checking for $ac_word... " >&6; }
9939 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9940 $as_echo_n "(cached) " >&6
9941 else
9942 case $aros_kernel_nm in
9943 [\\/]* | ?:[\\/]*)
9944 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948 for as_dir in $PATH
9950 IFS=$as_save_IFS
9951 test -z "$as_dir" && as_dir=.
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9954 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9956 break 2
9958 done
9959 done
9960 IFS=$as_save_IFS
9963 esac
9965 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9966 if test -n "$aros_kernel_nm"; then
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9968 $as_echo "$aros_kernel_nm" >&6; }
9969 else
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9971 $as_echo "no" >&6; }
9977 if test "$aros_kernel_nm" = ""; then
9978 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9981 if test "$aros_kernel_strip" = ""; then
9982 if test "$cross_compiling" = "yes" ; then
9983 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
9984 set dummy ${kernel_tool_prefix}strip; ac_word=$2
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9986 $as_echo_n "checking for $ac_word... " >&6; }
9987 if ${ac_cv_path_aros_kernel_strip+:} false; then :
9988 $as_echo_n "(cached) " >&6
9989 else
9990 case $aros_kernel_strip in
9991 [\\/]* | ?:[\\/]*)
9992 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
9995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9996 for as_dir in $PATH
9998 IFS=$as_save_IFS
9999 test -z "$as_dir" && as_dir=.
10000 for ac_exec_ext in '' $ac_executable_extensions; do
10001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10002 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10004 break 2
10006 done
10007 done
10008 IFS=$as_save_IFS
10011 esac
10013 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10014 if test -n "$aros_kernel_strip"; then
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10016 $as_echo "$aros_kernel_strip" >&6; }
10017 else
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10019 $as_echo "no" >&6; }
10023 else
10024 if test "$GCC" = "yes"; then
10025 aros_gcc_strip=`$CC -print-prog-name=strip`
10026 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10027 set dummy `basename $aros_gcc_strip`; ac_word=$2
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10029 $as_echo_n "checking for $ac_word... " >&6; }
10030 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10031 $as_echo_n "(cached) " >&6
10032 else
10033 case $aros_kernel_strip in
10034 [\\/]* | ?:[\\/]*)
10035 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10039 for as_dir in `dirname $aros_gcc_strip`
10041 IFS=$as_save_IFS
10042 test -z "$as_dir" && as_dir=.
10043 for ac_exec_ext in '' $ac_executable_extensions; do
10044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10045 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10047 break 2
10049 done
10050 done
10051 IFS=$as_save_IFS
10054 esac
10056 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10057 if test -n "$aros_kernel_strip"; then
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10059 $as_echo "$aros_kernel_strip" >&6; }
10060 else
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10062 $as_echo "no" >&6; }
10067 if test "$aros_kernel_strip" = ""; then
10068 # Extract the first word of "strip", so it can be a program name with args.
10069 set dummy strip; ac_word=$2
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10071 $as_echo_n "checking for $ac_word... " >&6; }
10072 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10073 $as_echo_n "(cached) " >&6
10074 else
10075 case $aros_kernel_strip in
10076 [\\/]* | ?:[\\/]*)
10077 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10081 for as_dir in $PATH
10083 IFS=$as_save_IFS
10084 test -z "$as_dir" && as_dir=.
10085 for ac_exec_ext in '' $ac_executable_extensions; do
10086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10087 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10089 break 2
10091 done
10092 done
10093 IFS=$as_save_IFS
10096 esac
10098 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10099 if test -n "$aros_kernel_strip"; then
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10101 $as_echo "$aros_kernel_strip" >&6; }
10102 else
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10104 $as_echo "no" >&6; }
10110 else
10111 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10112 set dummy $aros_kernel_strip; ac_word=$2
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10114 $as_echo_n "checking for $ac_word... " >&6; }
10115 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10116 $as_echo_n "(cached) " >&6
10117 else
10118 case $aros_kernel_strip in
10119 [\\/]* | ?:[\\/]*)
10120 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10124 for as_dir in $PATH
10126 IFS=$as_save_IFS
10127 test -z "$as_dir" && as_dir=.
10128 for ac_exec_ext in '' $ac_executable_extensions; do
10129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10130 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10132 break 2
10134 done
10135 done
10136 IFS=$as_save_IFS
10139 esac
10141 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10142 if test -n "$aros_kernel_strip"; then
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10144 $as_echo "$aros_kernel_strip" >&6; }
10145 else
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147 $as_echo "no" >&6; }
10153 if test "$aros_kernel_strip" = ""; then
10154 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10157 # Objcopy and objdump are not required for the kernel
10158 # toolchain on many architectures.
10159 # So we'll look for them, but not make them strictly required.
10161 if test "$aros_kernel_objcopy" = ""; then
10162 if test "$cross_compiling" = "yes" ; then
10163 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10164 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10166 $as_echo_n "checking for $ac_word... " >&6; }
10167 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10168 $as_echo_n "(cached) " >&6
10169 else
10170 case $aros_kernel_objcopy in
10171 [\\/]* | ?:[\\/]*)
10172 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10176 for as_dir in $PATH
10178 IFS=$as_save_IFS
10179 test -z "$as_dir" && as_dir=.
10180 for ac_exec_ext in '' $ac_executable_extensions; do
10181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10182 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10184 break 2
10186 done
10187 done
10188 IFS=$as_save_IFS
10191 esac
10193 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10194 if test -n "$aros_kernel_objcopy"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10196 $as_echo "$aros_kernel_objcopy" >&6; }
10197 else
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10199 $as_echo "no" >&6; }
10203 else
10204 if test "$GCC" = "yes"; then
10205 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10206 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10207 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209 $as_echo_n "checking for $ac_word... " >&6; }
10210 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10211 $as_echo_n "(cached) " >&6
10212 else
10213 case $aros_kernel_objcopy in
10214 [\\/]* | ?:[\\/]*)
10215 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219 for as_dir in `dirname $aros_gcc_objcopy`
10221 IFS=$as_save_IFS
10222 test -z "$as_dir" && as_dir=.
10223 for ac_exec_ext in '' $ac_executable_extensions; do
10224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10225 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10227 break 2
10229 done
10230 done
10231 IFS=$as_save_IFS
10234 esac
10236 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10237 if test -n "$aros_kernel_objcopy"; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10239 $as_echo "$aros_kernel_objcopy" >&6; }
10240 else
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242 $as_echo "no" >&6; }
10247 if test "$aros_kernel_objcopy" = ""; then
10248 # Extract the first word of "objcopy", so it can be a program name with args.
10249 set dummy objcopy; ac_word=$2
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10251 $as_echo_n "checking for $ac_word... " >&6; }
10252 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10253 $as_echo_n "(cached) " >&6
10254 else
10255 case $aros_kernel_objcopy in
10256 [\\/]* | ?:[\\/]*)
10257 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10261 for as_dir in $PATH
10263 IFS=$as_save_IFS
10264 test -z "$as_dir" && as_dir=.
10265 for ac_exec_ext in '' $ac_executable_extensions; do
10266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10267 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10269 break 2
10271 done
10272 done
10273 IFS=$as_save_IFS
10276 esac
10278 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10279 if test -n "$aros_kernel_objcopy"; then
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10281 $as_echo "$aros_kernel_objcopy" >&6; }
10282 else
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10284 $as_echo "no" >&6; }
10290 else
10291 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10292 set dummy $aros_kernel_objcopy; ac_word=$2
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10294 $as_echo_n "checking for $ac_word... " >&6; }
10295 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10296 $as_echo_n "(cached) " >&6
10297 else
10298 case $aros_kernel_objcopy in
10299 [\\/]* | ?:[\\/]*)
10300 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304 for as_dir in $PATH
10306 IFS=$as_save_IFS
10307 test -z "$as_dir" && as_dir=.
10308 for ac_exec_ext in '' $ac_executable_extensions; do
10309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10310 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10312 break 2
10314 done
10315 done
10316 IFS=$as_save_IFS
10319 esac
10321 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10322 if test -n "$aros_kernel_objcopy"; then
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10324 $as_echo "$aros_kernel_objcopy" >&6; }
10325 else
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10327 $as_echo "no" >&6; }
10334 if test "$aros_kernel_objdump" = ""; then
10335 if test "$cross_compiling" = "yes" ; then
10336 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10337 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10339 $as_echo_n "checking for $ac_word... " >&6; }
10340 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10341 $as_echo_n "(cached) " >&6
10342 else
10343 case $aros_kernel_objdump in
10344 [\\/]* | ?:[\\/]*)
10345 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349 for as_dir in $PATH
10351 IFS=$as_save_IFS
10352 test -z "$as_dir" && as_dir=.
10353 for ac_exec_ext in '' $ac_executable_extensions; do
10354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10355 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10357 break 2
10359 done
10360 done
10361 IFS=$as_save_IFS
10364 esac
10366 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10367 if test -n "$aros_kernel_objdump"; then
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10369 $as_echo "$aros_kernel_objdump" >&6; }
10370 else
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10372 $as_echo "no" >&6; }
10376 else
10377 if test "$GCC" = "yes"; then
10378 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10379 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10380 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10382 $as_echo_n "checking for $ac_word... " >&6; }
10383 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 case $aros_kernel_objdump in
10387 [\\/]* | ?:[\\/]*)
10388 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in `dirname $aros_gcc_objdump`
10394 IFS=$as_save_IFS
10395 test -z "$as_dir" && as_dir=.
10396 for ac_exec_ext in '' $ac_executable_extensions; do
10397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10398 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10400 break 2
10402 done
10403 done
10404 IFS=$as_save_IFS
10407 esac
10409 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10410 if test -n "$aros_kernel_objdump"; then
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10412 $as_echo "$aros_kernel_objdump" >&6; }
10413 else
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10415 $as_echo "no" >&6; }
10420 if test "$aros_kernel_objdump" = ""; then
10421 # Extract the first word of "objdump", so it can be a program name with args.
10422 set dummy objdump; ac_word=$2
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10424 $as_echo_n "checking for $ac_word... " >&6; }
10425 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10426 $as_echo_n "(cached) " >&6
10427 else
10428 case $aros_kernel_objdump in
10429 [\\/]* | ?:[\\/]*)
10430 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10434 for as_dir in $PATH
10436 IFS=$as_save_IFS
10437 test -z "$as_dir" && as_dir=.
10438 for ac_exec_ext in '' $ac_executable_extensions; do
10439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10440 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10442 break 2
10444 done
10445 done
10446 IFS=$as_save_IFS
10449 esac
10451 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10452 if test -n "$aros_kernel_objdump"; then
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10454 $as_echo "$aros_kernel_objdump" >&6; }
10455 else
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10457 $as_echo "no" >&6; }
10463 else
10464 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10465 set dummy $aros_kernel_objdump; ac_word=$2
10466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467 $as_echo_n "checking for $ac_word... " >&6; }
10468 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10469 $as_echo_n "(cached) " >&6
10470 else
10471 case $aros_kernel_objdump in
10472 [\\/]* | ?:[\\/]*)
10473 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477 for as_dir in $PATH
10479 IFS=$as_save_IFS
10480 test -z "$as_dir" && as_dir=.
10481 for ac_exec_ext in '' $ac_executable_extensions; do
10482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10483 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 break 2
10487 done
10488 done
10489 IFS=$as_save_IFS
10492 esac
10494 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10495 if test -n "$aros_kernel_objdump"; then
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10497 $as_echo "$aros_kernel_objdump" >&6; }
10498 else
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500 $as_echo "no" >&6; }
10506 if test "x${crosstools}" != "xyes" ; then
10507 if test "$aros_kernel_objcopy" = ""; then
10508 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10510 if test "$aros_kernel_objdump" = ""; then
10511 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools" >&5
10517 $as_echo_n "checking which target tools... " >&6; }
10518 if test "$crosstools" = "yes"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10520 $as_echo "$target_tool_prefix" >&6; }
10521 # We are are building AROS crosstools
10522 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10523 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10524 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10525 orig_target_cpp="${tmp_tool_prefix}cpp"
10526 orig_target_ld="${tmp_tool_prefix}ld"
10527 orig_target_as="${tmp_tool_prefix}as"
10528 orig_target_ar="${tmp_tool_prefix}ar"
10529 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10530 orig_target_nm="${tmp_tool_prefix}nm"
10531 orig_target_strip="${tmp_tool_prefix}strip"
10532 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10533 orig_target_objdump="${tmp_tool_prefix}objdump"
10534 else
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
10536 $as_echo "$kernel_tool_prefix" >&6; }
10537 # We are *not* building AROS crosstools - use the kernel tools
10538 orig_target_cpp="${aros_kernel_cpp}"
10539 if test "$orig_target_cpp" = ""; then
10540 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10542 orig_target_cc="${aros_kernel_cc}"
10543 if test "$orig_target_cc" = ""; then
10544 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10546 orig_target_cxx="${aros_kernel_cxx}"
10547 if test "x$orig_target_cxx" != "x" ; then
10548 if test "$orig_target_cxx" = ""; then
10549 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10552 orig_target_ld="${aros_kernel_ld}"
10553 if test "$orig_target_ld" = ""; then
10554 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10556 orig_target_as="${aros_kernel_as}"
10557 if test "$orig_target_as" = ""; then
10558 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10560 orig_target_ar="${aros_kernel_ar}"
10561 if test "$orig_target_ar" = ""; then
10562 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10564 orig_target_ranlib="${aros_kernel_ranlib}"
10565 if test "$orig_target_ranlib" = ""; then
10566 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10568 orig_target_nm="${aros_kernel_nm}"
10569 if test "$orig_target_nm" = ""; then
10570 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10572 orig_target_strip="${aros_kernel_strip}"
10573 if test "$orig_target_strip" = ""; then
10574 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10576 orig_target_objcopy="${aros_kernel_objcopy}"
10577 if test "$orig_target_objcopy" = ""; then
10578 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10580 orig_target_objdump="${aros_kernel_objdump}"
10581 if test "$orig_target_objdump" = ""; then
10582 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10586 # At this point, all aros_kernel_* and aros_target_*
10587 # tools should be set up correctly
10589 CC="$aros_kernel_cc $kernel_tool_flags"
10590 CPP="$aros_kernel_cpp"
10592 #-----------------------------------------------------------------------------
10594 # Disable pointer-signedness warnings if the compiler recognises the option
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
10597 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
10598 save_cflags="$CFLAGS"
10599 if test "$crosstools" != "yes" ; then
10600 CFLAGS="$CFLAGS -Wno-pointer-sign"
10601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10602 /* end confdefs.h. */
10605 main ()
10609 return 0;
10611 _ACEOF
10612 if ac_fn_c_try_compile "$LINENO"; then :
10613 use_no_sign_warning="yes"
10614 else
10615 use_no_sign_warning="no"
10617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10618 else
10619 # we do know it is supported for the smallest version of gcc we are going to build
10620 # we assume it's also supported by later versions
10621 use_no_sign_warning=yes
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
10624 $as_echo "$use_no_sign_warning" >&6; }
10625 if test "x-$use_no_sign_warning" = "x-yes" ; then
10626 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
10628 CFLAGS="$save_cflags"
10630 #-----------------------------------------------------------------------------
10632 # Find all the tools we need to compile. This could be cross-compiling
10633 # though! If that is the case we use the GNU form of the target and
10634 # simply add this to the front of the binary name. This is rather simple,
10635 # but it should work under most circumstances.
10637 # The default tools are to use the same as the host, but only if the
10638 # host and target CPU are the same. With GCC this is normally enough.
10641 aros_cc_pre=""
10642 aros_shared_ld="$aros_host_ld"
10644 aros_target_mkdep="$aros_host_mkdep"
10646 # The default tools executables to be linked to.
10647 if test "$rescomp" != ""; then
10649 if test "" = ""; then
10650 if test "$cross_compiling" = "yes" ; then
10651 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
10652 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10654 $as_echo_n "checking for $ac_word... " >&6; }
10655 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10656 $as_echo_n "(cached) " >&6
10657 else
10658 case $aros_kernel_rescomp in
10659 [\\/]* | ?:[\\/]*)
10660 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664 for as_dir in $PATH
10666 IFS=$as_save_IFS
10667 test -z "$as_dir" && as_dir=.
10668 for ac_exec_ext in '' $ac_executable_extensions; do
10669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10670 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10672 break 2
10674 done
10675 done
10676 IFS=$as_save_IFS
10679 esac
10681 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10682 if test -n "$aros_kernel_rescomp"; then
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10684 $as_echo "$aros_kernel_rescomp" >&6; }
10685 else
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10687 $as_echo "no" >&6; }
10691 else
10692 if test "$GCC" = "yes"; then
10693 aros_gcc_$rescomp=`$CC -print-prog-name=$rescomp`
10694 # Extract the first word of "`basename $aros_gcc_[$rescomp]`", so it can be a program name with args.
10695 set dummy `basename $aros_gcc_$rescomp`; ac_word=$2
10696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10697 $as_echo_n "checking for $ac_word... " >&6; }
10698 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10699 $as_echo_n "(cached) " >&6
10700 else
10701 case $aros_kernel_rescomp in
10702 [\\/]* | ?:[\\/]*)
10703 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10707 for as_dir in `dirname $aros_gcc_$rescomp`
10709 IFS=$as_save_IFS
10710 test -z "$as_dir" && as_dir=.
10711 for ac_exec_ext in '' $ac_executable_extensions; do
10712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10713 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10715 break 2
10717 done
10718 done
10719 IFS=$as_save_IFS
10722 esac
10724 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10725 if test -n "$aros_kernel_rescomp"; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10727 $as_echo "$aros_kernel_rescomp" >&6; }
10728 else
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730 $as_echo "no" >&6; }
10735 if test "$aros_kernel_rescomp" = ""; then
10736 # Extract the first word of "$rescomp", so it can be a program name with args.
10737 set dummy $rescomp; ac_word=$2
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10739 $as_echo_n "checking for $ac_word... " >&6; }
10740 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10741 $as_echo_n "(cached) " >&6
10742 else
10743 case $aros_kernel_rescomp in
10744 [\\/]* | ?:[\\/]*)
10745 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749 for as_dir in $PATH
10751 IFS=$as_save_IFS
10752 test -z "$as_dir" && as_dir=.
10753 for ac_exec_ext in '' $ac_executable_extensions; do
10754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10755 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10757 break 2
10759 done
10760 done
10761 IFS=$as_save_IFS
10764 esac
10766 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10767 if test -n "$aros_kernel_rescomp"; then
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10769 $as_echo "$aros_kernel_rescomp" >&6; }
10770 else
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10772 $as_echo "no" >&6; }
10778 else
10779 # Extract the first word of "", so it can be a program name with args.
10780 set dummy ; ac_word=$2
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10782 $as_echo_n "checking for $ac_word... " >&6; }
10783 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10784 $as_echo_n "(cached) " >&6
10785 else
10786 case $aros_kernel_rescomp in
10787 [\\/]* | ?:[\\/]*)
10788 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792 for as_dir in $PATH
10794 IFS=$as_save_IFS
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10798 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10800 break 2
10802 done
10803 done
10804 IFS=$as_save_IFS
10807 esac
10809 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10810 if test -n "$aros_kernel_rescomp"; then
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10812 $as_echo "$aros_kernel_rescomp" >&6; }
10813 else
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10815 $as_echo "no" >&6; }
10821 if test "$aros_kernel_rescomp" = ""; then
10822 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
10826 # Set up the sources for the symlink farm
10827 if test "$crosstools" = "yes"; then
10828 crosstools_target=tools-crosstools
10829 else
10830 crosstools_cxx_target=tools-crosstools
10833 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
10834 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10837 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10838 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10839 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10840 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10841 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10842 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10843 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10845 # aros_cc_pre is a variable that is added to the front of the compiler name
10846 # in the generated aros-gcc shell script. We need this to enable the cache
10847 # to work across cleaned builds. Also, support DISTCC using the correct
10848 # environment variable.
10851 if test "x${DISTCC}" != "x" ; then
10852 if test "x${CCACHE}" != "x" ; then
10853 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10854 else
10855 aros_cc_pre="${DISTCC} "
10857 else
10858 if test "x${CCACHE}" != "x" ; then
10859 aros_cc_pre="${CCACHE} "
10863 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
10865 aros_target_nostdinc_cflags=-nostdinc
10867 aros_target_nostartup_ldflags=-nostartfiles
10869 aros_target_nix_ldflags=-nix
10871 aros_target_detach_ldflags=-detach
10873 aros_target_nostdlib_ldflags=-nostdlib
10876 # Target tools
10877 if test "$crosstools" != "yes"; then
10878 if test "$GCC" = "yes"; then
10879 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10881 else
10882 # We do not know which gcc version we are going to build and what we need to know
10883 # here is different for different versions so this will be set later during the
10884 # build of crosstools.
10885 aros_target_cc_path=@aros_target_cc_path@
10887 aros_target_cpp="${prefix}cpp"
10888 aros_target_cc="${prefix}gcc"
10889 aros_target_cxx="${prefix}g++"
10890 aros_target_as="${prefix}as"
10891 aros_target_ld="${prefix}ld"
10892 aros_target_ar="${prefix}ar $aros_target_ar_flags"
10893 aros_target_objcopy="${prefix}objcopy"
10894 aros_target_objdump="${prefix}objdump"
10895 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
10896 aros_target_nm="${prefix}nm $aros_target_nm_flags"
10897 aros_target_strip="${prefix}strip"
10898 aros_plain_nm="${prefix}nm"
10899 aros_plain_ar="${prefix}ar"
10901 if test "$aros_kernel_includes" != "" ; then
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10903 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10904 if test "$aros_kernel_cc_includes" = "" ; then
10905 # Try to guess where the directory is.
10906 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
10907 if test -d $aros_kernel_cc_includes; then
10908 # Check if there is also an include-fixed directory and add it
10909 # to kernel compiler's include path as it may contain some of
10910 # the headers we need.
10911 if test -d "$aros_kernel_cc_includes"-fixed; then
10912 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
10914 # Check for specific includes directory. Neede for Ubuntu 11.10
10915 if test -d "/usr/include/i386-linux-gnu"; then
10916 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
10918 else
10919 # The directory doesn't exist, we need to do some more work.
10920 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
10922 # These are the headers we're looking for.
10923 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10924 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10925 zutil.h stdint.h"
10927 dirs=
10928 for h in $headers; do
10929 # Which other headers are needed by each of the above?
10930 deps=$(echo "#include <$h>" | \
10931 $aros_kernel_cc -E -M - 2>/dev/null | \
10932 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10934 # Copy all the needed headers to a directory beneath gendir.
10935 for d in $deps; do
10936 h=$(basename $d)
10937 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
10938 sed -n "s,^.*/include\(/.*\),\1,p")
10939 ! test -d $dir && mkdir -p $dir
10940 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10941 done
10942 done
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10946 $as_echo "$aros_kernel_cc_includes" >&6; }
10947 # Adding -nostdinc to kernel includes as they are always used together.
10948 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10951 if test "$crosstools" != "yes"; then
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10953 $as_echo_n "checking for the target compiler's include path... " >&6; }
10954 if test "$aros_target_cc_includes" = "" ; then
10955 #try to guess where the directory is
10956 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10957 if ! test -d $aros_target_cc_includes; then
10958 #the directory doesn't exist, we need to do some more work
10959 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10961 #these are the headers we're looking for
10962 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10963 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10964 zutil.h"
10966 dirs=
10967 for h in $headers; do
10968 #which other headers each of the above headers needs?
10969 deps=$(echo "#include <$h>" | \
10970 $orig_target_cc -E -M - 2>/dev/null | \
10971 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10973 #copy all the needed headers to a directory beneath gendir
10974 for d in $deps; do
10975 h=$(basename $d)
10976 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10977 sed -n "s,^.*/include\(/.*\),\1,p")
10978 ! test -d $dir && mkdir -p $dir
10979 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10980 done
10981 done
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
10985 $as_echo "$aros_target_cc_includes" >&6; }
10986 else
10987 # We do not know which gcc version we are going to build and what we need to know
10988 # here is different for different versions so this will be set later during the
10989 # build of crosstools.
10990 aros_target_cc_includes=@aros_target_cc_includes@
10994 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10995 # On GCC >= 4.0 -iquote should be used
10998 save_cc="$CC"
10999 save_cflags="$CFLAGS"
11000 CFLAGS="-iquote."
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11002 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11003 if test "x-$crosstools" != "x-yes"; then
11004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11005 /* end confdefs.h. */
11008 main ()
11012 return 0;
11014 _ACEOF
11015 if ac_fn_c_try_compile "$LINENO"; then :
11016 has_iquote="yes"
11017 else
11018 has_iquote="no"
11020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11021 else
11022 # we do know it is supported for the smallest version of gcc we are going to build
11023 # we assume it's also supported by later versions
11024 has_iquote=yes
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11027 $as_echo "$has_iquote" >&6; }
11028 if test "x-$has_iquote" = "x-yes" ; then
11029 host_cflags_iquote=-iquote
11030 host_cflags_iquote_end=
11031 else
11032 host_cflags_iquote=-I
11033 host_cflags_iquote_end=-I-
11035 kernel_cflags_iquote=$host_cflags_iquote
11036 kernel_cflags_iquote_end=$host_cflags_iquote_end
11037 if test "x-$cross_compiling" = "x-yes"; then
11038 CC="$aros_kernel_cc"
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
11040 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11041 if test "x-$crosstools" != "x-yes"; then
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11046 main ()
11050 return 0;
11052 _ACEOF
11053 if ac_fn_c_try_compile "$LINENO"; then :
11054 use_no_stack_protector="yes"
11055 else
11056 use_no_stack_protector="no"
11058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11059 else
11060 # we do know it is supported for the smallest version of gcc we are going to build
11061 # we assume it's also supported by later versions
11062 use_no_stack_protector=yes
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11065 $as_echo "$use_no_stack_protector" >&6; }
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11067 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11068 if test "x-$crosstools" != "x-yes"; then
11069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11070 /* end confdefs.h. */
11073 main ()
11077 return 0;
11079 _ACEOF
11080 if ac_fn_c_try_compile "$LINENO"; then :
11081 has_iquote="yes"
11082 else
11083 has_iquote="no"
11085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11086 else
11087 # we do know it is supported for the smallest version of gcc we are going to build
11088 # we assume it's also supported by later versions
11089 has_iquote=yes
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11092 $as_echo "$has_iquote" >&6; }
11093 if test "x-$has_iquote" = "x-yes" ; then
11094 kernel_cflags_iquote=-iquote
11095 kernel_cflags_iquote_end=
11096 else
11097 kernel_cflags_iquote=-I
11098 kernel_cflags_iquote_end=-I-
11101 aros_cflags_iquote=$kernel_cflags_iquote
11102 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11103 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11104 CC="$orig_target_cc"
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11106 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11107 if test "x-$crosstools" != "x-yes"; then
11108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109 /* end confdefs.h. */
11112 main ()
11116 return 0;
11118 _ACEOF
11119 if ac_fn_c_try_compile "$LINENO"; then :
11120 has_iquote="yes"
11121 else
11122 has_iquote="no"
11124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11125 else
11126 # we do know it is supported for the smallest version of gcc we are going to build
11127 # we assume it's also supported by later versions
11128 has_iquote=yes
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11131 $as_echo "$has_iquote" >&6; }
11132 if test "x-$has_iquote" = "x-yes" ; then
11133 aros_cflags_iquote=-iquote
11134 aros_cflags_iquote_end=
11135 else
11136 aros_cflags_iquote=-I
11137 aros_cflags_iquote_end=-I-
11140 if test "x-$use_no_stack_protector" = "x-yes" ; then
11141 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11145 #-----------------------------------------------------------------------------
11147 # Check if the target compiler supports some options used for delinting:
11148 # -Wunused-but-set-variable
11149 # -Warray-bounds
11150 # -Wenum-compare
11151 # -Wstrict-overflow
11152 # -Wformat-security
11154 if test "x-$crosstools" != "x-yes"; then
11155 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11156 CC="$orig_target_cc"
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
11159 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
11160 CFLAGS=-Wunused-but-set-variable
11161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11162 /* end confdefs.h. */
11165 main ()
11169 return 0;
11171 _ACEOF
11172 if ac_fn_c_try_compile "$LINENO"; then :
11173 aros_unused_but_set_variable="yes"
11174 else
11175 aros_unused_but_set_variable="no"
11177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
11179 $as_echo "$aros_unused_but_set_variable" >&6; }
11180 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
11181 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
11185 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
11186 CFLAGS=-Warray-bounds
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188 /* end confdefs.h. */
11191 main ()
11195 return 0;
11197 _ACEOF
11198 if ac_fn_c_try_compile "$LINENO"; then :
11199 aros_array_bounds="yes"
11200 else
11201 aros_array_bounds="no"
11203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
11205 $as_echo "$aros_array_bounds" >&6; }
11206 if test "x-$aros_array_bounds" = "x-yes" ; then
11207 aros_cflags_array_bounds=-Wno-array-bounds
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
11211 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
11212 CFLAGS=-Wenum-compare
11213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11214 /* end confdefs.h. */
11217 main ()
11221 return 0;
11223 _ACEOF
11224 if ac_fn_c_try_compile "$LINENO"; then :
11225 aros_enum_compare="yes"
11226 else
11227 aros_enum_compare="no"
11229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
11231 $as_echo "$aros_enum_compare" >&6; }
11232 if test "x-$aros_enum_compare" = "x-yes" ; then
11233 aros_cflags_enum_compare=-Wno-enum-compare
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
11237 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
11238 CFLAGS=-Wstrict-overflow
11239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11240 /* end confdefs.h. */
11243 main ()
11247 return 0;
11249 _ACEOF
11250 if ac_fn_c_try_compile "$LINENO"; then :
11251 aros_strict_overflow="yes"
11252 else
11253 aros_strict_overflow="no"
11255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
11257 $as_echo "$aros_strict_overflow" >&6; }
11258 if test "x-$aros_strict_overflow" = "x-yes" ; then
11259 aros_cflags_strict_overflow=-Wno-strict-overflow
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
11263 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
11264 CFLAGS=-Wformat-security
11265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11266 /* end confdefs.h. */
11269 main ()
11273 return 0;
11275 _ACEOF
11276 if ac_fn_c_try_compile "$LINENO"; then :
11277 aros_format_security="yes"
11278 else
11279 aros_format_security="no"
11281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
11283 $as_echo "$aros_format_security" >&6; }
11284 if test "x-$aros_format_security" = "x-yes" ; then
11285 aros_cflags_format_security=-Wno-format-security
11287 else
11288 # We do not know which gcc version we are going to build and what we need to know
11289 # here is different for different versions so this will be set later during the
11290 # build of crosstools.
11291 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
11292 aros_cflags_array_bounds=@aros_cflags_array_bounds@
11293 aros_cflags_enum_compare=@aros_cflags_enum_compare@
11294 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
11295 aros_cflags_format_security=@aros_cflags_format_security@
11298 #-----------------------------------------------------------------------------
11300 # Check if we can explicitly choose older version of symbol hashing
11302 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11303 CC="$aros_kernel_cc"
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11305 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11307 /* end confdefs.h. */
11310 main ()
11314 return 0;
11316 _ACEOF
11317 if ac_fn_c_try_link "$LINENO"; then :
11318 use_hash_style="yes"
11319 else
11320 use_hash_style="no"
11322 rm -f core conftest.err conftest.$ac_objext \
11323 conftest$ac_exeext conftest.$ac_ext
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11325 $as_echo "$use_hash_style" >&6; }
11326 if test "x-$use_hash_style" = "x-yes" ; then
11327 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11329 CC="$save_cc"
11330 CFLAGS="$save_cflags"
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11341 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11343 # Check whether --with-resolution was given.
11344 if test "${with_resolution+set}" = set; then :
11345 withval=$with_resolution; resolution=$withval
11346 else
11347 resolution=none
11350 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11351 if test "$resolution" = "yes" ; then
11352 resolution="none"
11354 if test "$resolution" = "no" ; then
11355 resolution="none"
11357 if test "$resolution" != "none" ; then
11358 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11359 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11360 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11363 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11364 aros_cv_default_wbwidth=$aros_default_wbwidth
11365 aros_cv_default_wbheight=$aros_default_wbheight
11366 aros_cv_default_wbdepth=$aros_default_wbdepth
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11369 $as_echo_n "checking if serial debug is enabled... " >&6; }
11371 # Check whether --with-serial-debug was given.
11372 if test "${with_serial_debug+set}" = set; then :
11373 withval=$with_serial_debug; serial_debug=$withval
11374 else
11375 serial_debug=none
11378 if test "$aros_serial_debug" = 0 ; then
11379 serial_debug_forced=""
11380 if test "$serial_debug" = "yes" ; then
11381 serial_debug="1"
11383 if test "$serial_debug" = "no" ; then
11384 serial_debug="none"
11386 else
11387 serial_debug_forced="(forced)"
11388 serial_debug=$aros_serial_debug
11390 if test "$serial_debug" != "none" ; then
11391 aros_serial_debug=$serial_debug
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11393 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11394 else
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11396 $as_echo "no" >&6; }
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11400 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11401 # Check whether --enable-palm_debug_hack was given.
11402 if test "${enable_palm_debug_hack+set}" = set; then :
11403 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11404 else
11405 palm_debug_hack="no"
11408 if test "$palm_debug_hack" = "yes" ; then
11409 aros_palm_debug_hack="1"
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11412 $as_echo "$palm_debug_hack" >&6; }
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11415 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11416 # Check whether --enable-usb30_code was given.
11417 if test "${enable_usb30_code+set}" = set; then :
11418 enableval=$enable_usb30_code; usb30_code="yes"
11419 else
11420 usb30_code="no"
11423 if test "$usb30_code" = "yes" ; then
11424 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
11425 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11428 $as_echo "$usb30_code" >&6; }
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11431 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11432 # Check whether --enable-nesting_supervisor was given.
11433 if test "${enable_nesting_supervisor+set}" = set; then :
11434 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11435 else
11436 nesting_supervisor="no"
11439 if test "$nesting_supervisor" = "yes" ; then
11440 aros_nesting_supervisor="1"
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11443 $as_echo "$nesting_supervisor" >&6; }
11445 if test "$aros_enable_mmu" = "" ; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11447 $as_echo_n "checking if MMU support is enabled... " >&6; }
11448 # Check whether --enable-mmu was given.
11449 if test "${enable_mmu+set}" = set; then :
11450 enableval=$enable_mmu; aros_enable_mmu=$enableval
11451 else
11452 aros_enable_mmu="yes"
11455 if test "$aros_enable_mmu" = "" ; then
11456 aros_enable_mmu="yes"
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11459 $as_echo "$aros_enable_mmu" >&6; }
11461 if test "$aros_enable_mmu" = "no" ; then
11462 aros_enable_mmu="0"
11463 else
11464 aros_enable_mmu="1"
11468 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11470 if test "x-$need_dlopen" != "x-no" ; then
11471 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11472 if test "x$ac_cv_func_dlopen" = xyes; then :
11473 have_dl="yes"
11474 else
11475 have_dl="no"
11478 if test "x-$have_dl" = "x-no" ; then
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11480 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11481 if ${ac_cv_lib_dl_dlopen+:} false; then :
11482 $as_echo_n "(cached) " >&6
11483 else
11484 ac_check_lib_save_LIBS=$LIBS
11485 LIBS="-ldl $LIBS"
11486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11487 /* end confdefs.h. */
11489 /* Override any GCC internal prototype to avoid an error.
11490 Use char because int might match the return type of a GCC
11491 builtin and then its argument prototype would still apply. */
11492 #ifdef __cplusplus
11493 extern "C"
11494 #endif
11495 char dlopen ();
11497 main ()
11499 return dlopen ();
11501 return 0;
11503 _ACEOF
11504 if ac_fn_c_try_link "$LINENO"; then :
11505 ac_cv_lib_dl_dlopen=yes
11506 else
11507 ac_cv_lib_dl_dlopen=no
11509 rm -f core conftest.err conftest.$ac_objext \
11510 conftest$ac_exeext conftest.$ac_ext
11511 LIBS=$ac_check_lib_save_LIBS
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11514 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11515 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11516 have_dl="yes"
11517 aros_host_ldflags="$aros_host_ldflags -ldl"
11518 else
11519 have_dl="no"
11523 if test "x-$have_dl" = "x-no" ; then
11524 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
11529 # Check whether --enable-x11_hidd was given.
11530 if test "${enable_x11_hidd+set}" = set; then :
11531 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11532 else
11533 x11_hidd="$need_x11"
11536 case "x-$x11_hidd" in
11537 x-yes|x-no|x-auto) ;;
11538 *) x11_hidd="$need_x11" ;;
11539 esac
11541 ENABLE_X11=0
11543 if test "x-$x11_hidd" != "x-no" ; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11546 $as_echo_n "checking for X... " >&6; }
11549 # Check whether --with-x was given.
11550 if test "${with_x+set}" = set; then :
11551 withval=$with_x;
11554 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11555 if test "x$with_x" = xno; then
11556 # The user explicitly disabled X.
11557 have_x=disabled
11558 else
11559 case $x_includes,$x_libraries in #(
11560 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
11561 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11562 $as_echo_n "(cached) " >&6
11563 else
11564 # One or both of the vars are not set, and there is no cached value.
11565 ac_x_includes=no ac_x_libraries=no
11566 rm -f -r conftest.dir
11567 if mkdir conftest.dir; then
11568 cd conftest.dir
11569 cat >Imakefile <<'_ACEOF'
11570 incroot:
11571 @echo incroot='${INCROOT}'
11572 usrlibdir:
11573 @echo usrlibdir='${USRLIBDIR}'
11574 libdir:
11575 @echo libdir='${LIBDIR}'
11576 _ACEOF
11577 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11578 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11579 for ac_var in incroot usrlibdir libdir; do
11580 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11581 done
11582 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11583 for ac_extension in a so sl dylib la dll; do
11584 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11585 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11586 ac_im_usrlibdir=$ac_im_libdir; break
11588 done
11589 # Screen out bogus values from the imake configuration. They are
11590 # bogus both because they are the default anyway, and because
11591 # using them would break gcc on systems where it needs fixed includes.
11592 case $ac_im_incroot in
11593 /usr/include) ac_x_includes= ;;
11594 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11595 esac
11596 case $ac_im_usrlibdir in
11597 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11598 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11599 esac
11601 cd ..
11602 rm -f -r conftest.dir
11605 # Standard set of common directories for X headers.
11606 # Check X11 before X11Rn because it is often a symlink to the current release.
11607 ac_x_header_dirs='
11608 /usr/X11/include
11609 /usr/X11R7/include
11610 /usr/X11R6/include
11611 /usr/X11R5/include
11612 /usr/X11R4/include
11614 /usr/include/X11
11615 /usr/include/X11R7
11616 /usr/include/X11R6
11617 /usr/include/X11R5
11618 /usr/include/X11R4
11620 /usr/local/X11/include
11621 /usr/local/X11R7/include
11622 /usr/local/X11R6/include
11623 /usr/local/X11R5/include
11624 /usr/local/X11R4/include
11626 /usr/local/include/X11
11627 /usr/local/include/X11R7
11628 /usr/local/include/X11R6
11629 /usr/local/include/X11R5
11630 /usr/local/include/X11R4
11632 /usr/X386/include
11633 /usr/x386/include
11634 /usr/XFree86/include/X11
11636 /usr/include
11637 /usr/local/include
11638 /usr/unsupported/include
11639 /usr/athena/include
11640 /usr/local/x11r5/include
11641 /usr/lpp/Xamples/include
11643 /usr/openwin/include
11644 /usr/openwin/share/include'
11646 if test "$ac_x_includes" = no; then
11647 # Guess where to find include files, by looking for Xlib.h.
11648 # First, try using that file with no special directory specified.
11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650 /* end confdefs.h. */
11651 #include <X11/Xlib.h>
11652 _ACEOF
11653 if ac_fn_c_try_cpp "$LINENO"; then :
11654 # We can compile using X headers with no special include directory.
11655 ac_x_includes=
11656 else
11657 for ac_dir in $ac_x_header_dirs; do
11658 if test -r "$ac_dir/X11/Xlib.h"; then
11659 ac_x_includes=$ac_dir
11660 break
11662 done
11664 rm -f conftest.err conftest.i conftest.$ac_ext
11665 fi # $ac_x_includes = no
11667 if test "$ac_x_libraries" = no; then
11668 # Check for the libraries.
11669 # See if we find them without any special options.
11670 # Don't add to $LIBS permanently.
11671 ac_save_LIBS=$LIBS
11672 LIBS="-lX11 $LIBS"
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11675 #include <X11/Xlib.h>
11677 main ()
11679 XrmInitialize ()
11681 return 0;
11683 _ACEOF
11684 if ac_fn_c_try_link "$LINENO"; then :
11685 LIBS=$ac_save_LIBS
11686 # We can link X programs with no special library path.
11687 ac_x_libraries=
11688 else
11689 LIBS=$ac_save_LIBS
11690 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11692 # Don't even attempt the hair of trying to link an X program!
11693 for ac_extension in a so sl dylib la dll; do
11694 if test -r "$ac_dir/libX11.$ac_extension"; then
11695 ac_x_libraries=$ac_dir
11696 break 2
11698 done
11699 done
11701 rm -f core conftest.err conftest.$ac_objext \
11702 conftest$ac_exeext conftest.$ac_ext
11703 fi # $ac_x_libraries = no
11705 case $ac_x_includes,$ac_x_libraries in #(
11706 no,* | *,no | *\'*)
11707 # Didn't find X, or a directory has "'" in its name.
11708 ac_cv_have_x="have_x=no";; #(
11710 # Record where we found X for the cache.
11711 ac_cv_have_x="have_x=yes\
11712 ac_x_includes='$ac_x_includes'\
11713 ac_x_libraries='$ac_x_libraries'"
11714 esac
11716 ;; #(
11717 *) have_x=yes;;
11718 esac
11719 eval "$ac_cv_have_x"
11720 fi # $with_x != no
11722 if test "$have_x" != yes; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11724 $as_echo "$have_x" >&6; }
11725 no_x=yes
11726 else
11727 # If each of the values was on the command line, it overrides each guess.
11728 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11729 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11730 # Update the cache value to reflect the command line values.
11731 ac_cv_have_x="have_x=yes\
11732 ac_x_includes='$x_includes'\
11733 ac_x_libraries='$x_libraries'"
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11735 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11739 x_cflags=
11740 for path in $x_libraries
11742 x_cflags="$x_cflags -L$path"
11743 done
11745 for path in $x_includes
11747 x_cflags="$x_cflags -I$path"
11748 done
11750 if test "x-$no_x" = "x-yes" ; then
11752 if test "x-$x11_hidd" != "x-auto" ; then
11753 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11756 else
11757 x11_hidd_target=kernel-x11gfx-kobj
11758 ENABLE_X11=1
11760 # Check whether --enable-x11_shm was given.
11761 if test "${enable_x11_shm+set}" = set; then :
11762 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11763 else
11764 x11_hidd_shm="auto"
11767 case "x-$x11_hidd_shm" in
11768 x-yes|x-no|x-auto) ;;
11769 *) x11_hidd_shm="auto" ;;
11770 esac
11772 have_xshm=no
11774 if test "x-$x11_hidd_shm" != "x-no" ; then
11776 for ac_header in sys/ipc.h
11777 do :
11778 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11779 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
11780 cat >>confdefs.h <<_ACEOF
11781 #define HAVE_SYS_IPC_H 1
11782 _ACEOF
11786 done
11788 for ac_header in sys/shm.h
11789 do :
11790 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11791 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
11792 cat >>confdefs.h <<_ACEOF
11793 #define HAVE_SYS_SHM_H 1
11794 _ACEOF
11798 done
11801 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11803 save_cflags="$CFLAGS"
11804 CFLAGS="$CFLAGS $x_cflags"
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
11806 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11807 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
11808 $as_echo_n "(cached) " >&6
11809 else
11810 ac_check_lib_save_LIBS=$LIBS
11811 LIBS="-lXext $LIBS"
11812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813 /* end confdefs.h. */
11815 /* Override any GCC internal prototype to avoid an error.
11816 Use char because int might match the return type of a GCC
11817 builtin and then its argument prototype would still apply. */
11818 #ifdef __cplusplus
11819 extern "C"
11820 #endif
11821 char XShmQueryExtension ();
11823 main ()
11825 return XShmQueryExtension ();
11827 return 0;
11829 _ACEOF
11830 if ac_fn_c_try_link "$LINENO"; then :
11831 ac_cv_lib_Xext_XShmQueryExtension=yes
11832 else
11833 ac_cv_lib_Xext_XShmQueryExtension=no
11835 rm -f core conftest.err conftest.$ac_objext \
11836 conftest$ac_exeext conftest.$ac_ext
11837 LIBS=$ac_check_lib_save_LIBS
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11840 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11841 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
11842 have_xshm=yes
11845 CFLAGS="$save_cflags"
11849 if test "x-$have_xshm" = "x-yes" ; then
11850 DO_XSHM_SUPPORT="1"
11851 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11852 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11853 else
11854 DO_XSHM_SUPPORT="0"
11858 # Check whether --enable-x11_vidmode was given.
11859 if test "${enable_x11_vidmode+set}" = set; then :
11860 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11861 else
11862 x11_hidd_vidmode="auto"
11865 case "x-$x11_hidd_vidmode" in
11866 x-yes|x-no|x-auto) ;;
11867 *) x11_hidd_vidmode="auto" ;;
11868 esac
11870 have_vidmode=no
11872 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11874 save_cflags="$CFLAGS"
11875 CFLAGS="$CFLAGS $x_cflags"
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11877 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11878 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
11879 $as_echo_n "(cached) " >&6
11880 else
11881 ac_check_lib_save_LIBS=$LIBS
11882 LIBS="-lXxf86vm $LIBS"
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11886 /* Override any GCC internal prototype to avoid an error.
11887 Use char because int might match the return type of a GCC
11888 builtin and then its argument prototype would still apply. */
11889 #ifdef __cplusplus
11890 extern "C"
11891 #endif
11892 char XF86VidModeQueryExtension ();
11894 main ()
11896 return XF86VidModeQueryExtension ();
11898 return 0;
11900 _ACEOF
11901 if ac_fn_c_try_link "$LINENO"; then :
11902 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11903 else
11904 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11906 rm -f core conftest.err conftest.$ac_objext \
11907 conftest$ac_exeext conftest.$ac_ext
11908 LIBS=$ac_check_lib_save_LIBS
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11911 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11912 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
11913 have_vidmode=yes
11916 CFLAGS="$save_cflags"
11919 if test "x-$have_vidmode" = "x-yes" ; then
11920 DO_VIDMODE_SUPPORT="1"
11921 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11922 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11923 else
11924 DO_VIDMODE_SUPPORT="0"
11928 aros_host_x11_includes=$x_includes
11929 aros_host_x11_libdirs=$x_libraries
11933 # Check whether --enable-sdl_hidd was given.
11934 if test "${enable_sdl_hidd+set}" = set; then :
11935 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11936 else
11937 sdl_hidd="auto"
11940 case "x-$sdl_hidd" in
11941 x-yes|x-no|x-auto) ;;
11942 *) sdl_hidd="auto" ;;
11943 esac
11945 if test "x-$sdl_hidd" != "x-no" ; then
11948 # Check whether --with-sdl-prefix was given.
11949 if test "${with_sdl_prefix+set}" = set; then :
11950 withval=$with_sdl_prefix; sdl_prefix="$withval"
11951 else
11952 sdl_prefix=""
11956 # Check whether --with-sdl-exec-prefix was given.
11957 if test "${with_sdl_exec_prefix+set}" = set; then :
11958 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11959 else
11960 sdl_exec_prefix=""
11963 # Check whether --enable-sdltest was given.
11964 if test "${enable_sdltest+set}" = set; then :
11965 enableval=$enable_sdltest;
11966 else
11967 enable_sdltest=yes
11971 if test x$sdl_exec_prefix != x ; then
11972 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11973 if test x${SDL_CONFIG+set} != xset ; then
11974 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11977 if test x$sdl_prefix != x ; then
11978 sdl_args="$sdl_args --prefix=$sdl_prefix"
11979 if test x${SDL_CONFIG+set} != xset ; then
11980 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11984 if test "x$prefix" != xNONE; then
11985 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11987 # Extract the first word of "sdl-config", so it can be a program name with args.
11988 set dummy sdl-config; ac_word=$2
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11990 $as_echo_n "checking for $ac_word... " >&6; }
11991 if ${ac_cv_path_SDL_CONFIG+:} false; then :
11992 $as_echo_n "(cached) " >&6
11993 else
11994 case $SDL_CONFIG in
11995 [\\/]* | ?:[\\/]*)
11996 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12002 IFS=$as_save_IFS
12003 test -z "$as_dir" && as_dir=.
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12006 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12008 break 2
12010 done
12011 done
12012 IFS=$as_save_IFS
12014 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12016 esac
12018 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12019 if test -n "$SDL_CONFIG"; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
12021 $as_echo "$SDL_CONFIG" >&6; }
12022 else
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12024 $as_echo "no" >&6; }
12028 min_sdl_version=1.2.10
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
12030 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12031 no_sdl=""
12032 if test "$SDL_CONFIG" = "no" ; then
12033 no_sdl=yes
12034 else
12035 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12036 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12038 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12039 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12040 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12041 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12042 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12043 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12044 if test "x$enable_sdltest" = "xyes" ; then
12045 ac_save_CFLAGS="$CFLAGS"
12046 ac_save_CXXFLAGS="$CXXFLAGS"
12047 ac_save_LIBS="$LIBS"
12048 CFLAGS="$CFLAGS $SDL_CFLAGS"
12049 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12050 LIBS="$LIBS $SDL_LIBS"
12051 rm -f conf.sdltest
12052 if test "$cross_compiling" = yes; then :
12053 echo $ac_n "cross compiling; assumed OK... $ac_c"
12054 else
12055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12056 /* end confdefs.h. */
12058 #include <stdio.h>
12059 #include <stdlib.h>
12060 #include <string.h>
12061 #include "SDL.h"
12063 char*
12064 my_strdup (char *str)
12066 char *new_str;
12068 if (str)
12070 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12071 strcpy (new_str, str);
12073 else
12074 new_str = NULL;
12076 return new_str;
12079 int main (int argc, char *argv[])
12081 int major, minor, micro;
12082 char *tmp_version;
12084 /* This hangs on some systems (?)
12085 system ("touch conf.sdltest");
12087 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12089 /* HP/UX 9 (%@#!) writes to sscanf strings */
12090 tmp_version = my_strdup("$min_sdl_version");
12091 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12092 printf("%s, bad version string\n", "$min_sdl_version");
12093 exit(1);
12096 if (($sdl_major_version > major) ||
12097 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12098 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12100 return 0;
12102 else
12104 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12105 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12106 printf("*** best to upgrade to the required version.\n");
12107 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12108 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12109 printf("*** config.cache before re-running configure\n");
12110 return 1;
12115 _ACEOF
12116 if ac_fn_c_try_run "$LINENO"; then :
12118 else
12119 no_sdl=yes
12121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12122 conftest.$ac_objext conftest.beam conftest.$ac_ext
12125 CFLAGS="$ac_save_CFLAGS"
12126 CXXFLAGS="$ac_save_CXXFLAGS"
12127 LIBS="$ac_save_LIBS"
12130 if test "x$no_sdl" = x ; then
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12132 $as_echo "yes" >&6; }
12133 have_sdl="yes"
12134 else
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136 $as_echo "no" >&6; }
12137 if test "$SDL_CONFIG" = "no" ; then
12138 echo "*** The sdl-config script installed by SDL could not be found"
12139 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12140 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12141 echo "*** full path to sdl-config."
12142 else
12143 if test -f conf.sdltest ; then
12145 else
12146 echo "*** Could not run SDL test program, checking why..."
12147 CFLAGS="$CFLAGS $SDL_CFLAGS"
12148 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12149 LIBS="$LIBS $SDL_LIBS"
12150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12151 /* end confdefs.h. */
12153 #include <stdio.h>
12154 #include "SDL.h"
12156 int main(int argc, char *argv[])
12157 { return 0; }
12158 #undef main
12159 #define main K_and_R_C_main
12162 main ()
12164 return 0;
12166 return 0;
12168 _ACEOF
12169 if ac_fn_c_try_link "$LINENO"; then :
12170 echo "*** The test program compiled, but did not run. This usually means"
12171 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12172 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12173 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12174 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12175 echo "*** is required on your system"
12176 echo "***"
12177 echo "*** If you have an old version installed, it is best to remove it, although"
12178 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12179 else
12180 echo "*** The test program failed to compile or link. See the file config.log for the"
12181 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12182 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12183 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12185 rm -f core conftest.err conftest.$ac_objext \
12186 conftest$ac_exeext conftest.$ac_ext
12187 CFLAGS="$ac_save_CFLAGS"
12188 CXXFLAGS="$ac_save_CXXFLAGS"
12189 LIBS="$ac_save_LIBS"
12192 SDL_CFLAGS=""
12193 SDL_LIBS=""
12194 have_sdl="no"
12198 rm -f conf.sdltest
12201 if test "x-$have_sdl" != "x-yes" ; then
12203 if test "x-$sdl_hidd" != "x-auto" ; then
12204 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12207 else
12208 sdl_hidd_target=kernel-hidd-sdl
12209 aros_host_sdl_cflags=SDL_CFLAGS
12210 aros_host_sdl_libs=SDL_LIBS
12214 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12215 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12220 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12221 oss_library_target=workbench-libs-oss-unix
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12227 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12228 # Check whether --enable-dbus was given.
12229 if test "${enable_dbus+set}" = set; then :
12230 enableval=$enable_dbus; dbus="yes"
12231 else
12232 dbus="no"
12235 if test "$dbus" = "yes" ; then
12236 ENABLE_DBUS=1
12237 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12238 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12239 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12240 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12241 else
12242 ENABLE_DBUS=0
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12245 $as_echo "$dbus" >&6; }
12247 if test "$use_kernel_cc_wrapper" = "yes" ; then
12248 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12251 if test "${crosstools}" != "yes" ; then
12252 aros_target_toolchain=no
12253 else
12254 aros_target_toolchain=yes
12258 # Generic
12270 # Compatability with other Amiga-like operation systems
12273 # Host related
12301 # Target Related
12365 # Delinting target compiler flags
12372 # Graphics Related
12389 # Native version related
12392 # Palm native version related
12395 # USB3.0 code
12398 # Unix/Hosted version related
12401 # MMU related
12404 # Apple iOS related
12409 # Android related
12413 # DBUS related
12420 #X11 related
12423 # Debug related
12429 # Collect-aros stuff: "-ius" to ignore undefined symbols
12432 # C compiler related
12435 case "$aros_flavour" in
12436 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12437 aros_flavour="emulation" ;;
12438 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12439 aros_flavour="emulation" ;;
12440 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12441 aros_flavour="standalone";;
12442 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12443 aros_flavour="standalone";;
12444 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12445 aros_flavour="native" ;;
12446 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12447 aros_flavour="native" ;;
12448 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12449 aros_flavour="linklib" ;;
12450 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12451 aros_flavour="palmnative" ;;
12452 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12453 aros_flavour="mac68knative" ;;
12454 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12455 aros_flavour="ppcnative" ;;
12456 esac
12458 if test ! -d ${aros_inc_dir} ; then
12459 ${MKDIR} ${aros_inc_dir}
12461 if test ! -d ${aros_geninc_dir} ; then
12462 ${MKDIR} ${aros_geninc_dir}
12464 if test ! -d ${aros_hostcfg_dir} ; then
12465 ${MKDIR} ${aros_hostcfg_dir}
12467 if test ! -d ${aros_targetcfg_dir} ; then
12468 ${MKDIR} ${aros_targetcfg_dir}
12470 if test ! -d ${aros_tools_dir} ; then
12471 ${MKDIR} ${aros_tools_dir}
12473 if test ! -d ${aros_scripts_dir} ; then
12474 ${MKDIR} ${aros_scripts_dir}
12477 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12480 ac_config_commands="$ac_config_commands compiler_executable"
12482 ac_config_commands="$ac_config_commands genmf_executable"
12485 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_targetcfg_dir}/elf-specs:${elf_specs_in} ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
12488 cat >confcache <<\_ACEOF
12489 # This file is a shell script that caches the results of configure
12490 # tests run on this system so they can be shared between configure
12491 # scripts and configure runs, see configure's option --config-cache.
12492 # It is not useful on other systems. If it contains results you don't
12493 # want to keep, you may remove or edit it.
12495 # config.status only pays attention to the cache file if you give it
12496 # the --recheck option to rerun configure.
12498 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12499 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12500 # following values.
12502 _ACEOF
12504 # The following way of writing the cache mishandles newlines in values,
12505 # but we know of no workaround that is simple, portable, and efficient.
12506 # So, we kill variables containing newlines.
12507 # Ultrix sh set writes to stderr and can't be redirected directly,
12508 # and sets the high bit in the cache file unless we assign to the vars.
12510 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12511 eval ac_val=\$$ac_var
12512 case $ac_val in #(
12513 *${as_nl}*)
12514 case $ac_var in #(
12515 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12516 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12517 esac
12518 case $ac_var in #(
12519 _ | IFS | as_nl) ;; #(
12520 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12521 *) { eval $ac_var=; unset $ac_var;} ;;
12522 esac ;;
12523 esac
12524 done
12526 (set) 2>&1 |
12527 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12528 *${as_nl}ac_space=\ *)
12529 # `set' does not quote correctly, so add quotes: double-quote
12530 # substitution turns \\\\ into \\, and sed turns \\ into \.
12531 sed -n \
12532 "s/'/'\\\\''/g;
12533 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12534 ;; #(
12536 # `set' quotes correctly as required by POSIX, so do not add quotes.
12537 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12539 esac |
12540 sort
12542 sed '
12543 /^ac_cv_env_/b end
12544 t clear
12545 :clear
12546 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12547 t end
12548 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12549 :end' >>confcache
12550 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12551 if test -w "$cache_file"; then
12552 if test "x$cache_file" != "x/dev/null"; then
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12554 $as_echo "$as_me: updating cache $cache_file" >&6;}
12555 if test ! -f "$cache_file" || test -h "$cache_file"; then
12556 cat confcache >"$cache_file"
12557 else
12558 case $cache_file in #(
12559 */* | ?:*)
12560 mv -f confcache "$cache_file"$$ &&
12561 mv -f "$cache_file"$$ "$cache_file" ;; #(
12563 mv -f confcache "$cache_file" ;;
12564 esac
12567 else
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12569 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12572 rm -f confcache
12574 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12575 # Let make expand exec_prefix.
12576 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12578 DEFS=-DHAVE_CONFIG_H
12580 ac_libobjs=
12581 ac_ltlibobjs=
12583 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12584 # 1. Remove the extension, and $U if already installed.
12585 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12586 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12587 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12588 # will be set to the directory where LIBOBJS objects are built.
12589 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12590 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12591 done
12592 LIBOBJS=$ac_libobjs
12594 LTLIBOBJS=$ac_ltlibobjs
12598 : "${CONFIG_STATUS=./config.status}"
12599 ac_write_fail=0
12600 ac_clean_files_save=$ac_clean_files
12601 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12603 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12604 as_write_fail=0
12605 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12606 #! $SHELL
12607 # Generated by $as_me.
12608 # Run this file to recreate the current configuration.
12609 # Compiler output produced by configure, useful for debugging
12610 # configure, is in config.log if it exists.
12612 debug=false
12613 ac_cs_recheck=false
12614 ac_cs_silent=false
12616 SHELL=\${CONFIG_SHELL-$SHELL}
12617 export SHELL
12618 _ASEOF
12619 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12620 ## -------------------- ##
12621 ## M4sh Initialization. ##
12622 ## -------------------- ##
12624 # Be more Bourne compatible
12625 DUALCASE=1; export DUALCASE # for MKS sh
12626 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12627 emulate sh
12628 NULLCMD=:
12629 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12630 # is contrary to our usage. Disable this feature.
12631 alias -g '${1+"$@"}'='"$@"'
12632 setopt NO_GLOB_SUBST
12633 else
12634 case `(set -o) 2>/dev/null` in #(
12635 *posix*) :
12636 set -o posix ;; #(
12637 *) :
12639 esac
12643 as_nl='
12645 export as_nl
12646 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12647 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12648 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12649 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12650 # Prefer a ksh shell builtin over an external printf program on Solaris,
12651 # but without wasting forks for bash or zsh.
12652 if test -z "$BASH_VERSION$ZSH_VERSION" \
12653 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12654 as_echo='print -r --'
12655 as_echo_n='print -rn --'
12656 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12657 as_echo='printf %s\n'
12658 as_echo_n='printf %s'
12659 else
12660 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12661 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12662 as_echo_n='/usr/ucb/echo -n'
12663 else
12664 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12665 as_echo_n_body='eval
12666 arg=$1;
12667 case $arg in #(
12668 *"$as_nl"*)
12669 expr "X$arg" : "X\\(.*\\)$as_nl";
12670 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12671 esac;
12672 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12674 export as_echo_n_body
12675 as_echo_n='sh -c $as_echo_n_body as_echo'
12677 export as_echo_body
12678 as_echo='sh -c $as_echo_body as_echo'
12681 # The user is always right.
12682 if test "${PATH_SEPARATOR+set}" != set; then
12683 PATH_SEPARATOR=:
12684 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12685 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12686 PATH_SEPARATOR=';'
12691 # IFS
12692 # We need space, tab and new line, in precisely that order. Quoting is
12693 # there to prevent editors from complaining about space-tab.
12694 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12695 # splitting by setting IFS to empty value.)
12696 IFS=" "" $as_nl"
12698 # Find who we are. Look in the path if we contain no directory separator.
12699 as_myself=
12700 case $0 in #((
12701 *[\\/]* ) as_myself=$0 ;;
12702 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703 for as_dir in $PATH
12705 IFS=$as_save_IFS
12706 test -z "$as_dir" && as_dir=.
12707 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12708 done
12709 IFS=$as_save_IFS
12712 esac
12713 # We did not find ourselves, most probably we were run as `sh COMMAND'
12714 # in which case we are not to be found in the path.
12715 if test "x$as_myself" = x; then
12716 as_myself=$0
12718 if test ! -f "$as_myself"; then
12719 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12720 exit 1
12723 # Unset variables that we do not need and which cause bugs (e.g. in
12724 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12725 # suppresses any "Segmentation fault" message there. '((' could
12726 # trigger a bug in pdksh 5.2.14.
12727 for as_var in BASH_ENV ENV MAIL MAILPATH
12728 do eval test x\${$as_var+set} = xset \
12729 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12730 done
12731 PS1='$ '
12732 PS2='> '
12733 PS4='+ '
12735 # NLS nuisances.
12736 LC_ALL=C
12737 export LC_ALL
12738 LANGUAGE=C
12739 export LANGUAGE
12741 # CDPATH.
12742 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12745 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12746 # ----------------------------------------
12747 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12748 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12749 # script with STATUS, using 1 if that was 0.
12750 as_fn_error ()
12752 as_status=$1; test $as_status -eq 0 && as_status=1
12753 if test "$4"; then
12754 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12755 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12757 $as_echo "$as_me: error: $2" >&2
12758 as_fn_exit $as_status
12759 } # as_fn_error
12762 # as_fn_set_status STATUS
12763 # -----------------------
12764 # Set $? to STATUS, without forking.
12765 as_fn_set_status ()
12767 return $1
12768 } # as_fn_set_status
12770 # as_fn_exit STATUS
12771 # -----------------
12772 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12773 as_fn_exit ()
12775 set +e
12776 as_fn_set_status $1
12777 exit $1
12778 } # as_fn_exit
12780 # as_fn_unset VAR
12781 # ---------------
12782 # Portably unset VAR.
12783 as_fn_unset ()
12785 { eval $1=; unset $1;}
12787 as_unset=as_fn_unset
12788 # as_fn_append VAR VALUE
12789 # ----------------------
12790 # Append the text in VALUE to the end of the definition contained in VAR. Take
12791 # advantage of any shell optimizations that allow amortized linear growth over
12792 # repeated appends, instead of the typical quadratic growth present in naive
12793 # implementations.
12794 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12795 eval 'as_fn_append ()
12797 eval $1+=\$2
12799 else
12800 as_fn_append ()
12802 eval $1=\$$1\$2
12804 fi # as_fn_append
12806 # as_fn_arith ARG...
12807 # ------------------
12808 # Perform arithmetic evaluation on the ARGs, and store the result in the
12809 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12810 # must be portable across $(()) and expr.
12811 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12812 eval 'as_fn_arith ()
12814 as_val=$(( $* ))
12816 else
12817 as_fn_arith ()
12819 as_val=`expr "$@" || test $? -eq 1`
12821 fi # as_fn_arith
12824 if expr a : '\(a\)' >/dev/null 2>&1 &&
12825 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12826 as_expr=expr
12827 else
12828 as_expr=false
12831 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12832 as_basename=basename
12833 else
12834 as_basename=false
12837 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12838 as_dirname=dirname
12839 else
12840 as_dirname=false
12843 as_me=`$as_basename -- "$0" ||
12844 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12845 X"$0" : 'X\(//\)$' \| \
12846 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12847 $as_echo X/"$0" |
12848 sed '/^.*\/\([^/][^/]*\)\/*$/{
12849 s//\1/
12852 /^X\/\(\/\/\)$/{
12853 s//\1/
12856 /^X\/\(\/\).*/{
12857 s//\1/
12860 s/.*/./; q'`
12862 # Avoid depending upon Character Ranges.
12863 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12864 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12865 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12866 as_cr_digits='0123456789'
12867 as_cr_alnum=$as_cr_Letters$as_cr_digits
12869 ECHO_C= ECHO_N= ECHO_T=
12870 case `echo -n x` in #(((((
12871 -n*)
12872 case `echo 'xy\c'` in
12873 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12874 xy) ECHO_C='\c';;
12875 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12876 ECHO_T=' ';;
12877 esac;;
12879 ECHO_N='-n';;
12880 esac
12882 rm -f conf$$ conf$$.exe conf$$.file
12883 if test -d conf$$.dir; then
12884 rm -f conf$$.dir/conf$$.file
12885 else
12886 rm -f conf$$.dir
12887 mkdir conf$$.dir 2>/dev/null
12889 if (echo >conf$$.file) 2>/dev/null; then
12890 if ln -s conf$$.file conf$$ 2>/dev/null; then
12891 as_ln_s='ln -s'
12892 # ... but there are two gotchas:
12893 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12894 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12895 # In both cases, we have to default to `cp -p'.
12896 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12897 as_ln_s='cp -p'
12898 elif ln conf$$.file conf$$ 2>/dev/null; then
12899 as_ln_s=ln
12900 else
12901 as_ln_s='cp -p'
12903 else
12904 as_ln_s='cp -p'
12906 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12907 rmdir conf$$.dir 2>/dev/null
12910 # as_fn_mkdir_p
12911 # -------------
12912 # Create "$as_dir" as a directory, including parents if necessary.
12913 as_fn_mkdir_p ()
12916 case $as_dir in #(
12917 -*) as_dir=./$as_dir;;
12918 esac
12919 test -d "$as_dir" || eval $as_mkdir_p || {
12920 as_dirs=
12921 while :; do
12922 case $as_dir in #(
12923 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12924 *) as_qdir=$as_dir;;
12925 esac
12926 as_dirs="'$as_qdir' $as_dirs"
12927 as_dir=`$as_dirname -- "$as_dir" ||
12928 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12929 X"$as_dir" : 'X\(//\)[^/]' \| \
12930 X"$as_dir" : 'X\(//\)$' \| \
12931 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12932 $as_echo X"$as_dir" |
12933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12934 s//\1/
12937 /^X\(\/\/\)[^/].*/{
12938 s//\1/
12941 /^X\(\/\/\)$/{
12942 s//\1/
12945 /^X\(\/\).*/{
12946 s//\1/
12949 s/.*/./; q'`
12950 test -d "$as_dir" && break
12951 done
12952 test -z "$as_dirs" || eval "mkdir $as_dirs"
12953 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12956 } # as_fn_mkdir_p
12957 if mkdir -p . 2>/dev/null; then
12958 as_mkdir_p='mkdir -p "$as_dir"'
12959 else
12960 test -d ./-p && rmdir ./-p
12961 as_mkdir_p=false
12964 if test -x / >/dev/null 2>&1; then
12965 as_test_x='test -x'
12966 else
12967 if ls -dL / >/dev/null 2>&1; then
12968 as_ls_L_option=L
12969 else
12970 as_ls_L_option=
12972 as_test_x='
12973 eval sh -c '\''
12974 if test -d "$1"; then
12975 test -d "$1/.";
12976 else
12977 case $1 in #(
12978 -*)set "./$1";;
12979 esac;
12980 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12981 ???[sx]*):;;*)false;;esac;fi
12982 '\'' sh
12985 as_executable_p=$as_test_x
12987 # Sed expression to map a string onto a valid CPP name.
12988 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12990 # Sed expression to map a string onto a valid variable name.
12991 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12994 exec 6>&1
12995 ## ----------------------------------- ##
12996 ## Main body of $CONFIG_STATUS script. ##
12997 ## ----------------------------------- ##
12998 _ASEOF
12999 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13001 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13002 # Save the log message, to keep $0 and so on meaningful, and to
13003 # report actual input values of CONFIG_FILES etc. instead of their
13004 # values after options handling.
13005 ac_log="
13006 This file was extended by $as_me, which was
13007 generated by GNU Autoconf 2.68. Invocation command line was
13009 CONFIG_FILES = $CONFIG_FILES
13010 CONFIG_HEADERS = $CONFIG_HEADERS
13011 CONFIG_LINKS = $CONFIG_LINKS
13012 CONFIG_COMMANDS = $CONFIG_COMMANDS
13013 $ $0 $@
13015 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13018 _ACEOF
13020 case $ac_config_files in *"
13021 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13022 esac
13024 case $ac_config_headers in *"
13025 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13026 esac
13029 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13030 # Files that config.status was made for.
13031 config_files="$ac_config_files"
13032 config_headers="$ac_config_headers"
13033 config_commands="$ac_config_commands"
13035 _ACEOF
13037 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13038 ac_cs_usage="\
13039 \`$as_me' instantiates files and other configuration actions
13040 from templates according to the current configuration. Unless the files
13041 and actions are specified as TAGs, all are instantiated by default.
13043 Usage: $0 [OPTION]... [TAG]...
13045 -h, --help print this help, then exit
13046 -V, --version print version number and configuration settings, then exit
13047 --config print configuration, then exit
13048 -q, --quiet, --silent
13049 do not print progress messages
13050 -d, --debug don't remove temporary files
13051 --recheck update $as_me by reconfiguring in the same conditions
13052 --file=FILE[:TEMPLATE]
13053 instantiate the configuration file FILE
13054 --header=FILE[:TEMPLATE]
13055 instantiate the configuration header FILE
13057 Configuration files:
13058 $config_files
13060 Configuration headers:
13061 $config_headers
13063 Configuration commands:
13064 $config_commands
13066 Report bugs to the package provider."
13068 _ACEOF
13069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13070 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13071 ac_cs_version="\\
13072 config.status
13073 configured by $0, generated by GNU Autoconf 2.68,
13074 with options \\"\$ac_cs_config\\"
13076 Copyright (C) 2010 Free Software Foundation, Inc.
13077 This config.status script is free software; the Free Software Foundation
13078 gives unlimited permission to copy, distribute and modify it."
13080 ac_pwd='$ac_pwd'
13081 srcdir='$srcdir'
13082 test -n "\$AWK" || AWK=awk
13083 _ACEOF
13085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13086 # The default lists apply if the user does not specify any file.
13087 ac_need_defaults=:
13088 while test $# != 0
13090 case $1 in
13091 --*=?*)
13092 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13093 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13094 ac_shift=:
13096 --*=)
13097 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13098 ac_optarg=
13099 ac_shift=:
13102 ac_option=$1
13103 ac_optarg=$2
13104 ac_shift=shift
13106 esac
13108 case $ac_option in
13109 # Handling of the options.
13110 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13111 ac_cs_recheck=: ;;
13112 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13113 $as_echo "$ac_cs_version"; exit ;;
13114 --config | --confi | --conf | --con | --co | --c )
13115 $as_echo "$ac_cs_config"; exit ;;
13116 --debug | --debu | --deb | --de | --d | -d )
13117 debug=: ;;
13118 --file | --fil | --fi | --f )
13119 $ac_shift
13120 case $ac_optarg in
13121 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13122 '') as_fn_error $? "missing file argument" ;;
13123 esac
13124 as_fn_append CONFIG_FILES " '$ac_optarg'"
13125 ac_need_defaults=false;;
13126 --header | --heade | --head | --hea )
13127 $ac_shift
13128 case $ac_optarg in
13129 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13130 esac
13131 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13132 ac_need_defaults=false;;
13133 --he | --h)
13134 # Conflict between --help and --header
13135 as_fn_error $? "ambiguous option: \`$1'
13136 Try \`$0 --help' for more information.";;
13137 --help | --hel | -h )
13138 $as_echo "$ac_cs_usage"; exit ;;
13139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13140 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13141 ac_cs_silent=: ;;
13143 # This is an error.
13144 -*) as_fn_error $? "unrecognized option: \`$1'
13145 Try \`$0 --help' for more information." ;;
13147 *) as_fn_append ac_config_targets " $1"
13148 ac_need_defaults=false ;;
13150 esac
13151 shift
13152 done
13154 ac_configure_extra_args=
13156 if $ac_cs_silent; then
13157 exec 6>/dev/null
13158 ac_configure_extra_args="$ac_configure_extra_args --silent"
13161 _ACEOF
13162 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13163 if \$ac_cs_recheck; then
13164 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13165 shift
13166 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13167 CONFIG_SHELL='$SHELL'
13168 export CONFIG_SHELL
13169 exec "\$@"
13172 _ACEOF
13173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13174 exec 5>>config.log
13176 echo
13177 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13178 ## Running $as_me. ##
13179 _ASBOX
13180 $as_echo "$ac_log"
13181 } >&5
13183 _ACEOF
13184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13186 # INIT-COMMANDS
13189 aros_host_exe_suffix=${aros_host_exe_suffix}
13190 aros_tools_dir=${aros_tools_dir}
13191 aros_target_cpu=${aros_target_cpu}
13192 aros_target_arch=${aros_target_arch}
13193 aros_target_suffix=${aros_target_suffix}
13194 orig_target_nm=${orig_target_nm}
13195 orig_target_as=${orig_target_as}
13196 orig_target_ar=${orig_target_ar}
13197 orig_target_ranlib=${orig_target_ranlib}
13198 orig_target_objdump=${orig_target_objdump}
13199 orig_target_objcopy=${orig_target_objcopy}
13200 orig_target_strip=${orig_target_strip}
13201 aros_kernel_ld=${aros_kernel_ld}
13204 aros_tools_dir=${aros_tools_dir}
13207 _ACEOF
13209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13211 # Handling of arguments.
13212 for ac_config_target in $ac_config_targets
13214 case $ac_config_target in
13215 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13216 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13217 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13218 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13219 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13220 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13221 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13222 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13223 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13224 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13225 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13226 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13227 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
13228 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-cpp:scripts/aros-cpp.in" ;;
13229 "${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" ;;
13230 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-g++:scripts/aros-g++.in" ;;
13231 "${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc:scripts/elf-gcc.in" ;;
13232 "${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" ;;
13233 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13234 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13235 "${aros_gendir}/arch/all-android/bootstrap/app/default.properties") CONFIG_FILES="$CONFIG_FILES ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in" ;;
13237 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13238 esac
13239 done
13242 # If the user did not use the arguments to specify the items to instantiate,
13243 # then the envvar interface is used. Set only those that are not.
13244 # We use the long form for the default assignment because of an extremely
13245 # bizarre bug on SunOS 4.1.3.
13246 if $ac_need_defaults; then
13247 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13248 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13249 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13252 # Have a temporary directory for convenience. Make it in the build tree
13253 # simply because there is no reason against having it here, and in addition,
13254 # creating and moving files from /tmp can sometimes cause problems.
13255 # Hook for its removal unless debugging.
13256 # Note that there is a small window in which the directory will not be cleaned:
13257 # after its creation but before its name has been assigned to `$tmp'.
13258 $debug ||
13260 tmp= ac_tmp=
13261 trap 'exit_status=$?
13262 : "${ac_tmp:=$tmp}"
13263 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13265 trap 'as_fn_exit 1' 1 2 13 15
13267 # Create a (secure) tmp directory for tmp files.
13270 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13271 test -d "$tmp"
13272 } ||
13274 tmp=./conf$$-$RANDOM
13275 (umask 077 && mkdir "$tmp")
13276 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13277 ac_tmp=$tmp
13279 # Set up the scripts for CONFIG_FILES section.
13280 # No need to generate them if there are no CONFIG_FILES.
13281 # This happens for instance with `./config.status config.h'.
13282 if test -n "$CONFIG_FILES"; then
13285 ac_cr=`echo X | tr X '\015'`
13286 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13287 # But we know of no other shell where ac_cr would be empty at this
13288 # point, so we can use a bashism as a fallback.
13289 if test "x$ac_cr" = x; then
13290 eval ac_cr=\$\'\\r\'
13292 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13293 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13294 ac_cs_awk_cr='\\r'
13295 else
13296 ac_cs_awk_cr=$ac_cr
13299 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13300 _ACEOF
13304 echo "cat >conf$$subs.awk <<_ACEOF" &&
13305 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13306 echo "_ACEOF"
13307 } >conf$$subs.sh ||
13308 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13309 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13310 ac_delim='%!_!# '
13311 for ac_last_try in false false false false false :; do
13312 . ./conf$$subs.sh ||
13313 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13315 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13316 if test $ac_delim_n = $ac_delim_num; then
13317 break
13318 elif $ac_last_try; then
13319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13320 else
13321 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13323 done
13324 rm -f conf$$subs.sh
13326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13327 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13328 _ACEOF
13329 sed -n '
13331 s/^/S["/; s/!.*/"]=/
13334 s/^[^!]*!//
13335 :repl
13336 t repl
13337 s/'"$ac_delim"'$//
13338 t delim
13341 s/\(.\{148\}\)..*/\1/
13342 t more1
13343 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13346 b repl
13347 :more1
13348 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13351 s/.\{148\}//
13352 t nl
13353 :delim
13355 s/\(.\{148\}\)..*/\1/
13356 t more2
13357 s/["\\]/\\&/g; s/^/"/; s/$/"/
13360 :more2
13361 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13364 s/.\{148\}//
13365 t delim
13366 ' <conf$$subs.awk | sed '
13367 /^[^""]/{
13369 s/\n//
13371 ' >>$CONFIG_STATUS || ac_write_fail=1
13372 rm -f conf$$subs.awk
13373 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13374 _ACAWK
13375 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13376 for (key in S) S_is_set[key] = 1
13377 FS = "\a"
13381 line = $ 0
13382 nfields = split(line, field, "@")
13383 substed = 0
13384 len = length(field[1])
13385 for (i = 2; i < nfields; i++) {
13386 key = field[i]
13387 keylen = length(key)
13388 if (S_is_set[key]) {
13389 value = S[key]
13390 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13391 len += length(value) + length(field[++i])
13392 substed = 1
13393 } else
13394 len += 1 + keylen
13397 print line
13400 _ACAWK
13401 _ACEOF
13402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13403 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13404 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13405 else
13407 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13408 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13409 _ACEOF
13411 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13412 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13413 # trailing colons and then remove the whole line if VPATH becomes empty
13414 # (actually we leave an empty line to preserve line numbers).
13415 if test "x$srcdir" = x.; then
13416 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13418 s///
13419 s/^/:/
13420 s/[ ]*$/:/
13421 s/:\$(srcdir):/:/g
13422 s/:\${srcdir}:/:/g
13423 s/:@srcdir@:/:/g
13424 s/^:*//
13425 s/:*$//
13427 s/\(=[ ]*\).*/\1/
13429 s/\n//
13430 s/^[^=]*=[ ]*$//
13434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13435 fi # test -n "$CONFIG_FILES"
13437 # Set up the scripts for CONFIG_HEADERS section.
13438 # No need to generate them if there are no CONFIG_HEADERS.
13439 # This happens for instance with `./config.status Makefile'.
13440 if test -n "$CONFIG_HEADERS"; then
13441 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13442 BEGIN {
13443 _ACEOF
13445 # Transform confdefs.h into an awk script `defines.awk', embedded as
13446 # here-document in config.status, that substitutes the proper values into
13447 # config.h.in to produce config.h.
13449 # Create a delimiter string that does not exist in confdefs.h, to ease
13450 # handling of long lines.
13451 ac_delim='%!_!# '
13452 for ac_last_try in false false :; do
13453 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13454 if test -z "$ac_tt"; then
13455 break
13456 elif $ac_last_try; then
13457 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13458 else
13459 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13461 done
13463 # For the awk script, D is an array of macro values keyed by name,
13464 # likewise P contains macro parameters if any. Preserve backslash
13465 # newline sequences.
13467 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13468 sed -n '
13469 s/.\{148\}/&'"$ac_delim"'/g
13470 t rset
13471 :rset
13472 s/^[ ]*#[ ]*define[ ][ ]*/ /
13473 t def
13475 :def
13476 s/\\$//
13477 t bsnl
13478 s/["\\]/\\&/g
13479 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13480 D["\1"]=" \3"/p
13481 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13483 :bsnl
13484 s/["\\]/\\&/g
13485 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13486 D["\1"]=" \3\\\\\\n"\\/p
13487 t cont
13488 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13489 t cont
13491 :cont
13493 s/.\{148\}/&'"$ac_delim"'/g
13494 t clear
13495 :clear
13496 s/\\$//
13497 t bsnlc
13498 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13500 :bsnlc
13501 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13502 b cont
13503 ' <confdefs.h | sed '
13504 s/'"$ac_delim"'/"\\\
13505 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13508 for (key in D) D_is_set[key] = 1
13509 FS = "\a"
13511 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13512 line = \$ 0
13513 split(line, arg, " ")
13514 if (arg[1] == "#") {
13515 defundef = arg[2]
13516 mac1 = arg[3]
13517 } else {
13518 defundef = substr(arg[1], 2)
13519 mac1 = arg[2]
13521 split(mac1, mac2, "(") #)
13522 macro = mac2[1]
13523 prefix = substr(line, 1, index(line, defundef) - 1)
13524 if (D_is_set[macro]) {
13525 # Preserve the white space surrounding the "#".
13526 print prefix "define", macro P[macro] D[macro]
13527 next
13528 } else {
13529 # Replace #undef with comments. This is necessary, for example,
13530 # in the case of _POSIX_SOURCE, which is predefined and required
13531 # on some systems where configure will not decide to define it.
13532 if (defundef == "undef") {
13533 print "/*", prefix defundef, macro, "*/"
13534 next
13538 { print }
13539 _ACAWK
13540 _ACEOF
13541 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13542 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13543 fi # test -n "$CONFIG_HEADERS"
13546 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13547 shift
13548 for ac_tag
13550 case $ac_tag in
13551 :[FHLC]) ac_mode=$ac_tag; continue;;
13552 esac
13553 case $ac_mode$ac_tag in
13554 :[FHL]*:*);;
13555 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13556 :[FH]-) ac_tag=-:-;;
13557 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13558 esac
13559 ac_save_IFS=$IFS
13560 IFS=:
13561 set x $ac_tag
13562 IFS=$ac_save_IFS
13563 shift
13564 ac_file=$1
13565 shift
13567 case $ac_mode in
13568 :L) ac_source=$1;;
13569 :[FH])
13570 ac_file_inputs=
13571 for ac_f
13573 case $ac_f in
13574 -) ac_f="$ac_tmp/stdin";;
13575 *) # Look for the file first in the build tree, then in the source tree
13576 # (if the path is not absolute). The absolute path cannot be DOS-style,
13577 # because $ac_f cannot contain `:'.
13578 test -f "$ac_f" ||
13579 case $ac_f in
13580 [\\/$]*) false;;
13581 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13582 esac ||
13583 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13584 esac
13585 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13586 as_fn_append ac_file_inputs " '$ac_f'"
13587 done
13589 # Let's still pretend it is `configure' which instantiates (i.e., don't
13590 # use $as_me), people would be surprised to read:
13591 # /* config.h. Generated by config.status. */
13592 configure_input='Generated from '`
13593 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13594 `' by configure.'
13595 if test x"$ac_file" != x-; then
13596 configure_input="$ac_file. $configure_input"
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13598 $as_echo "$as_me: creating $ac_file" >&6;}
13600 # Neutralize special characters interpreted by sed in replacement strings.
13601 case $configure_input in #(
13602 *\&* | *\|* | *\\* )
13603 ac_sed_conf_input=`$as_echo "$configure_input" |
13604 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13605 *) ac_sed_conf_input=$configure_input;;
13606 esac
13608 case $ac_tag in
13609 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13610 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13611 esac
13613 esac
13615 ac_dir=`$as_dirname -- "$ac_file" ||
13616 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13617 X"$ac_file" : 'X\(//\)[^/]' \| \
13618 X"$ac_file" : 'X\(//\)$' \| \
13619 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13620 $as_echo X"$ac_file" |
13621 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13622 s//\1/
13625 /^X\(\/\/\)[^/].*/{
13626 s//\1/
13629 /^X\(\/\/\)$/{
13630 s//\1/
13633 /^X\(\/\).*/{
13634 s//\1/
13637 s/.*/./; q'`
13638 as_dir="$ac_dir"; as_fn_mkdir_p
13639 ac_builddir=.
13641 case "$ac_dir" in
13642 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13644 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13645 # A ".." for each directory in $ac_dir_suffix.
13646 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13647 case $ac_top_builddir_sub in
13648 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13649 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13650 esac ;;
13651 esac
13652 ac_abs_top_builddir=$ac_pwd
13653 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13654 # for backward compatibility:
13655 ac_top_builddir=$ac_top_build_prefix
13657 case $srcdir in
13658 .) # We are building in place.
13659 ac_srcdir=.
13660 ac_top_srcdir=$ac_top_builddir_sub
13661 ac_abs_top_srcdir=$ac_pwd ;;
13662 [\\/]* | ?:[\\/]* ) # Absolute name.
13663 ac_srcdir=$srcdir$ac_dir_suffix;
13664 ac_top_srcdir=$srcdir
13665 ac_abs_top_srcdir=$srcdir ;;
13666 *) # Relative name.
13667 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13668 ac_top_srcdir=$ac_top_build_prefix$srcdir
13669 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13670 esac
13671 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13674 case $ac_mode in
13677 # CONFIG_FILE
13680 _ACEOF
13682 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13683 # If the template does not know about datarootdir, expand it.
13684 # FIXME: This hack should be removed a few years after 2.60.
13685 ac_datarootdir_hack=; ac_datarootdir_seen=
13686 ac_sed_dataroot='
13687 /datarootdir/ {
13691 /@datadir@/p
13692 /@docdir@/p
13693 /@infodir@/p
13694 /@localedir@/p
13695 /@mandir@/p'
13696 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13697 *datarootdir*) ac_datarootdir_seen=yes;;
13698 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13700 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13701 _ACEOF
13702 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13703 ac_datarootdir_hack='
13704 s&@datadir@&$datadir&g
13705 s&@docdir@&$docdir&g
13706 s&@infodir@&$infodir&g
13707 s&@localedir@&$localedir&g
13708 s&@mandir@&$mandir&g
13709 s&\\\${datarootdir}&$datarootdir&g' ;;
13710 esac
13711 _ACEOF
13713 # Neutralize VPATH when `$srcdir' = `.'.
13714 # Shell code in configure.ac might set extrasub.
13715 # FIXME: do we really want to maintain this feature?
13716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13717 ac_sed_extra="$ac_vpsub
13718 $extrasub
13719 _ACEOF
13720 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13722 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13723 s|@configure_input@|$ac_sed_conf_input|;t t
13724 s&@top_builddir@&$ac_top_builddir_sub&;t t
13725 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13726 s&@srcdir@&$ac_srcdir&;t t
13727 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13728 s&@top_srcdir@&$ac_top_srcdir&;t t
13729 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13730 s&@builddir@&$ac_builddir&;t t
13731 s&@abs_builddir@&$ac_abs_builddir&;t t
13732 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13733 $ac_datarootdir_hack
13735 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13736 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13738 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13739 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13740 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13741 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13743 which seems to be undefined. Please make sure it is defined" >&5
13744 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13745 which seems to be undefined. Please make sure it is defined" >&2;}
13747 rm -f "$ac_tmp/stdin"
13748 case $ac_file in
13749 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13750 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13751 esac \
13752 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13756 # CONFIG_HEADER
13758 if test x"$ac_file" != x-; then
13760 $as_echo "/* $configure_input */" \
13761 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13762 } >"$ac_tmp/config.h" \
13763 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13764 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13766 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13767 else
13768 rm -f "$ac_file"
13769 mv "$ac_tmp/config.h" "$ac_file" \
13770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13772 else
13773 $as_echo "/* $configure_input */" \
13774 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13775 || as_fn_error $? "could not create -" "$LINENO" 5
13779 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13780 $as_echo "$as_me: executing $ac_file commands" >&6;}
13782 esac
13785 case $ac_file$ac_mode in
13786 "compiler_executable":C)
13787 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13788 mkdir -p $prefix
13789 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13790 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13792 echo ${prefix2}
13793 echo ${prefix3}
13794 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
13796 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13797 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13798 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13799 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13800 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13801 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13802 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13804 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13806 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13808 esac
13809 done # for ac_tag
13812 as_fn_exit 0
13813 _ACEOF
13814 ac_clean_files=$ac_clean_files_save
13816 test $ac_write_fail = 0 ||
13817 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13820 # configure is writing to config.log, and then calls config.status.
13821 # config.status does its own redirection, appending to config.log.
13822 # Unfortunately, on DOS this fails, as config.log is still kept open
13823 # by configure, so config.status won't be able to write to it; its
13824 # output is simply discarded. So we exec the FD to /dev/null,
13825 # effectively closing config.log, so it can be properly (re)opened and
13826 # appended to by config.status. When coming back to configure, we
13827 # need to make the FD available again.
13828 if test "$no_create" != yes; then
13829 ac_cs_success=:
13830 ac_config_status_args=
13831 test "$silent" = yes &&
13832 ac_config_status_args="$ac_config_status_args --quiet"
13833 exec 5>/dev/null
13834 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13835 exec 5>>config.log
13836 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13837 # would make configure fail if this is the last instruction.
13838 $ac_cs_success || as_fn_exit 1
13840 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13842 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13847 #XXX compatability...
13848 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13850 if test -n "$aros_shared_cflags" ; then
13851 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13852 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg