Darwin's BSD based tail command can not handle '-' for stdin, gnu's tail seems to...
[AROS.git] / configure
bloba36865a6360242a29916ea6a64ec667a554b871e
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"
7750 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7752 esac
7753 case "$aros_target_variant" in
7754 android)
7756 if test "$android_ndk_arch" = ""; then
7757 as_fn_error $? "\"Unsupported CPU for Android -- $target_cpu\"" "$LINENO" 5
7760 aros_default_wbwidth=320
7761 aros_default_wbheight=480
7762 if test "$aros_android_ndk" = "none"; then
7763 aros_kernel_cflags="-mandroid"
7764 aros_kernel_ldflags="-mandroid"
7765 CFLAGS="-mandroid"
7766 else
7767 export PATH="$aros_android_ndk/toolchains/$android_tool_dir_prefix-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7768 aros_android_ndk="$aros_android_ndk/platforms/android-$aros_ndk_version/arch-$android_ndk_arch"
7769 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7770 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7771 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7772 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7774 need_x11=no
7775 x11_hidd_target=kernel-hidd-androidgfx-kobj
7776 # Disable implicit PIC mode
7777 aros_kernel_cflags="$aros_kernel_cflags -fno-pic"
7778 aros_target_cflags="$aros_target_cflags -fno-pic"
7779 kernel_tool_prefix="$android_tool_prefix-"
7781 esac
7785 aros_target_arch="pc"
7786 aros_shared_default="no"
7787 target_bootloader="grub2"
7788 case "$target_cpu" in
7789 *i?86*)
7790 aros_target_cpu="i386"
7793 if test "$aros_object_format" = "" ; then
7794 aros_object_format="elf_i386"
7796 aros_flavour="standalone"
7797 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7798 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7799 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7800 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7801 aros_config_ldflags="-m32 -march=i486"
7802 aros_kernel_ldflags="-melf_i386"
7803 aros_default_wbwidth=640
7804 aros_default_wbheight=480
7805 gcc_target_cpu="i386"
7807 *x86_64*)
7808 aros_target_cpu="x86_64"
7809 aros_serial_debug=1
7810 if test "$aros_object_format" = "" ; then
7811 aros_object_format="elf_x86_64"
7813 aros_flavour="standalone"
7814 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7815 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7816 aros_kernel_ldflags=""
7817 aros_default_wbwidth=640
7818 aros_default_wbheight=480
7821 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7823 esac
7826 prep)
7827 aros_target_arch="prep"
7828 aros_shared_default="no"
7829 aros_target_cpu="ppc"
7830 aros_object_format="elf32ppc"
7831 aros_flavour="ppcnative"
7832 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7833 aros_kernel_ldflags=""
7834 aros_default_wbwidth=640
7835 aros_default_wbheight=480
7836 gcc_target_cpu="ppc"
7839 freebsd*)
7840 aros_target_arch="freebsd"
7841 aros_target_family="unix"
7842 aros_target_cpu="i386"
7843 aros_flavour="emulation"
7844 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7845 gcc_target_cpu="i386"
7847 aros_target_strip_flags="-x"
7850 darwin*)
7851 aros_target_arch="darwin"
7852 aros_target_family="unix"
7853 aros_flavour="emulation"
7854 case "$target_cpu" in
7855 *i?86*)
7856 aros_ios_platform="iPhoneSimulator"
7857 aros_target_cpu="i386"
7858 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7859 aros_kernel_ldflags=""
7860 aros_macosx_version="10.4"
7861 aros_default_wbdepth=8
7862 gcc_target_cpu="i386"
7863 aros_object_format="elf_i386"
7864 aros_kernel_ar_flags="-cr"
7865 aros_target_strip_flags="-x"
7866 kernel_tool_flags="-m32"
7868 *x86_64*)
7869 aros_target_cpu="x86_64"
7870 aros_object_format="elf_x86_64"
7871 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7872 aros_macosx_version="10.6"
7873 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7874 aros_kernel_cflags="-m64"
7875 aros_kernel_ldflags="-m64"
7876 aros_target_cflags="-mcmodel=large"
7877 aros_default_wbdepth=8
7878 aros_kernel_ar="ar"
7879 aros_kernel_ar_flags="-cr"
7880 aros_kernel_ld="ld"
7881 aros_kernel_ranlib="ranlib"
7883 *ppc*)
7884 aros_target_cpu="ppc"
7885 aros_object_format="elf32ppc"
7886 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7887 aros_kernel_ldflags=""
7888 aros_macosx_version="10.0"
7889 aros_default_wbdepth=8
7890 gcc_target_cpu="ppc"
7891 aros_kernel_ar="ar"
7892 aros_kernel_ar_flags="-cr"
7893 aros_kernel_ld="ld -arch ppc"
7894 aros_kernel_ranlib="ranlib -arch ppc"
7895 kernel_tool_prefix="powerpc-apple-darwin10-"
7897 *arm*)
7898 aros_ios_platform="iPhoneOS"
7899 aros_target_cpu="arm"
7900 aros_object_format="armelf_linux_eabi"
7901 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7902 aros_arch_libs="-laeabi"
7903 aros_default_wbdepth=8
7904 gcc_target_cpu="arm"
7905 aros_kernel_ar="ar"
7906 aros_kernel_ar_flags="-cr"
7907 aros_kernel_ld="ld -arch arm"
7908 aros_kernel_ranlib="ranlib -arch arm"
7909 kernel_tool_prefix="arm-apple-darwin10-"
7910 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7913 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7915 esac
7916 case "$aros_target_variant" in
7917 ios)
7918 aros_ios_version="3.0"
7919 aros_default_wbwidth=320
7920 aros_default_wbheight=480
7921 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_sdk_version.sdk"
7922 kernel_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7923 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7924 need_x11=no
7925 # This is here because it may depend on iOS or SDK version
7926 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7927 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7928 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7931 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7932 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7934 esac
7937 dragonfly*)
7938 aros_target_arch="dragonfly"
7939 aros_target_family="unix"
7940 aros_flavour="emulation"
7941 case "$target_cpu" in
7942 *i?86*)
7943 aros_target_cpu="i386"
7944 aros_object_format="elf_i386"
7945 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7947 *x86_64*)
7948 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7949 aros_target_cpu="x86_64"
7950 aros_object_format="elf_x86_64"
7951 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7954 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7956 esac
7959 netbsd*)
7960 aros_target_arch="netbsd"
7961 aros_target_family="unix"
7962 case "$target_cpu" in
7963 *m68k*)
7964 aros_target_cpu="m68k"
7965 aros_object_format="m68kelf"
7966 aros_flavour="emulcompat"
7967 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7968 gcc_target_cpu="mc68000"
7970 *i?86*)
7971 aros_target_cpu="i386"
7972 aros_object_format="elf_i386"
7973 aros_flavour="emulation"
7974 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7975 aros_default_wbdepth=8
7976 gcc_target_cpu="i386"
7979 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7981 esac
7982 aros_target_genmap="-Wl,-M -Xlinker >"
7983 aros_flavour="emulation"
7984 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7987 openbsd*)
7988 aros_target_arch="openbsd"
7989 aros_target_family="unix"
7990 case "$target_cpu" in
7991 *i?86*)
7992 aros_target_cpu="i386"
7993 aros_object_format="elf_i386"
7994 aros_flavour="emulation"
7995 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7996 gcc_target_cpu="i386"
7999 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
8001 esac
8002 aros_target_genmap="-Wl,-M -Xlinker >"
8003 aros_target_nm_flags="-u"
8004 aros_flavour="emulation"
8007 solaris*)
8008 aros_target_arch="solaris"
8009 aros_target_family="unix"
8010 case "$target_cpu" in
8011 *i?86*)
8012 aros_target_cpu="i386"
8013 aros_object_format="elf_i386"
8014 aros_flavour="emulation"
8015 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8016 aros_default_wbdepth=8
8017 gcc_target_cpu="i386"
8019 *sparc*)
8020 aros_target_cpu="sparc"
8021 aros_object_format="elf_sparc"
8022 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8023 gcc_target_cpu="sparc"
8026 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
8028 esac
8029 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8030 aros_flavour="emulation"
8033 morphos*)
8034 aros_target_arch="morphos"
8035 aros_shared_default="no"
8036 aros_target_cpu="ppc"
8037 aros_object_format="elf_ppc"
8038 aros_flavour="nativecompat"
8039 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8040 gcc_target_cpu="ppc"
8043 sam440)
8044 aros_target_arch="sam440"
8045 aros_shared_default="no"
8046 aros_target_cpu="ppc"
8047 aros_object_format="elf32ppc"
8048 aros_flavour="ppcnative"
8049 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8050 aros_kernel_ldflags=""
8051 aros_default_wbwidth=1024
8052 aros_default_wbheight=768
8053 aros_default_wbdepth=24
8054 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8055 gcc_target_cpu="powerpc"
8058 efika)
8059 aros_target_arch="efika"
8060 aros_shared_default="no"
8061 aros_target_cpu="arm"
8062 aros_object_format="armelf_linux_eabi"
8063 aros_flavour="standalone"
8064 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8065 aros_kernel_ldflags=""
8066 aros_default_wbwidth=1024
8067 aros_default_wbheight=600
8068 aros_arch_libs="-laeabi"
8069 gcc_default_cpu="armv7-a"
8070 gcc_default_fpu="vfpv3"
8071 gcc_default_float_abi="softfp"
8072 aros_config_cflags="$aros_config_cflags -mtune=cortex-a8 -fno-strict-aliasing"
8073 aros_config_aflags="$aros_config_aflags -mtune=cortex-a8 -fno-strict-aliasing"
8076 chrp)
8077 aros_target_arch="chrp"
8078 aros_shared_default="no"
8079 aros_target_cpu="ppc"
8080 aros_object_format="elf32ppc"
8081 aros_flavour="ppcnative"
8082 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8083 aros_kernel_ldflags=""
8084 aros_default_wbwidth=640
8085 aros_default_wbheight=480
8086 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8087 gcc_target_cpu="powerpc"
8088 case "$aros_target_variant" in
8089 efika)
8090 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8092 esac
8095 amiga*)
8096 aros_target_arch="amiga"
8097 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8098 aros_shared_default="no"
8100 case "$target_cpu" in
8101 *m68k*)
8102 # Check whether --enable-amigaos_compliance was given.
8103 if test "${enable_amigaos_compliance+set}" = set; then :
8104 enableval=$enable_amigaos_compliance; aros_amigaos_compliance="$enableval"
8107 aros_enable_mmu=no
8108 aros_target_cpu="m68k"
8109 aros_object_format="m68kelf"
8110 aros_flavour="standcompat"
8111 gcc_target_cpu="m68000"
8112 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
8113 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
8114 # Needed to get the correct multilib
8115 aros_config_ldflags="-${gcc_target_cpu}"
8116 aros_shared_ldflags="-${gcc_target_cpu}"
8117 aros_kernel_ldflags="-${gcc_target_cpu}"
8118 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
8119 aros_target_strip_flags="-R.comment --strip-debug"
8120 aros_default_wbwidth=640
8121 aros_default_wbheight=256
8122 aros_default_wbdepth=2
8124 *ppc*)
8125 aros_cpu="ppc"
8126 aros_flavour="native"
8127 gcc_target_cpu="ppc"
8130 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
8132 esac
8135 mingw*)
8136 aros_target_arch="mingw32"
8137 aros_shared_default="no"
8138 aros_flavour="emulation"
8139 aros_shared_cflags=""
8140 need_dlopen="no"
8141 rescomp="windres"
8142 case "$target_cpu" in
8143 *i?86*)
8144 aros_target_cpu="i386"
8145 aros_object_format="elf_i386"
8146 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8147 aros_default_wbdepth=8
8148 gcc_target_cpu="i386"
8150 kernel_tool_prefix="i386-mingw32-"
8152 *x86_64*)
8153 aros_target_cpu="x86_64"
8154 aros_object_format="elf_x86_64"
8155 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8156 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
8157 aros_default_wbdepth=8
8158 kernel_tool_prefix="x86_64-w64-mingw32-"
8160 *arm*)
8161 aros_target_cpu="arm"
8162 aros_object_format="armelf_linux_eabi"
8163 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8164 aros_arch_libs="-laeabi"
8165 aros_default_wbdepth=8
8166 gcc_target_cpu="arm"
8167 gcc_default_float_abi="soft"
8168 kernel_tool_prefix="arm-mingw32ce-"
8169 aros_default_wbwidth=160
8170 aros_default_wbheight=160
8173 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
8175 esac
8176 if test $host_os = "cygwin"; then
8177 aros_kernel_cflags="-mno-cygwin"
8180 pp*)
8181 aros_target_arch="pp"
8182 aros_shared_default="no"
8183 case "$target_cpu" in
8184 *m68k*)
8185 aros_target_cpu="m68k"
8186 aros_object_format="m68kelf"
8187 aros_flavour="palmnative"
8188 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8189 aros_default_wbwidth=160
8190 aros_default_wbheight=160
8191 aros_default_wbdepth=1
8192 aros_target_ar_flags="cru"
8193 aros_compiler_libs="-lgcc1"
8194 aros_shared_default=no
8195 aros_shared_cflags="-fpic"
8196 aros_shared_aflags=""
8197 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8198 aros_kernel_ldflags="-Wl,-rpath,./lib"
8199 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8200 aros_debug_aflags=""
8201 aros_debug_ldflags="$aros_symbols_debug"
8202 aros_mungwall_debug="0"
8203 aros_modules_debug="0"
8204 gcc_target_cpu="mc68000"
8205 ignore_undefined_symbols="-ius"
8208 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
8210 esac
8213 mac*)
8214 aros_target_arch="mac"
8215 aros_shared_default="no"
8216 case "$target_cpu" in
8217 *m68k*)
8218 aros_target_cpu="m68k"
8219 aros_object_format="m68kelf"
8220 aros_flavour="mac68knative"
8221 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8222 aros_default_wbwidth=512
8223 aros_default_wbheight=384
8224 aros_default_wbdepth=8
8225 aros_target_ar_flags="cru"
8226 aros_compiler_libs="-lgcc1"
8227 aros_shared_default=no
8228 aros_shared_cflags="-fpic"
8229 aros_shared_aflags=""
8230 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8231 aros_kernel_ldflags="-Wl,-rpath,./lib"
8232 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
8233 aros_debug_aflags=""
8234 aros_debug_ldflags="$aros_symbols_debug"
8235 aros_mungwall_debug="0"
8236 aros_modules_debug="0"
8237 gcc_target_cpu="mc68000"
8238 ignore_undefined_symbols="-ius"
8241 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
8243 esac
8247 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
8249 esac
8251 #-----------------------------------------------------------------------------
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
8253 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
8255 # Check whether --with-crosstools was given.
8256 if test "${with_crosstools+set}" = set; then :
8257 withval=$with_crosstools; with_crosstools=$withval
8258 else
8259 with_crosstools="default"
8262 if test "$with_crosstools" = "default"; then
8263 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
8264 else
8265 # Disable building crosstools if we are using an external set - otherwise
8266 # we may attempt to overwrite them if the tools-crosstools target is made!
8267 crosstools=no
8268 AROS_CROSSTOOLSDIR="$with_crosstools"
8269 PATH="$AROS_CROSSTOOLSDIR:$PATH"
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
8272 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kernel tool prefix" >&5
8275 $as_echo_n "checking Kernel tool prefix... " >&6; }
8277 # Check whether --with-kernel-tool-prefix was given.
8278 if test "${with_kernel_tool_prefix+set}" = set; then :
8279 withval=$with_kernel_tool_prefix; kernel_tool_prefix="$withval"
8280 else
8281 kernel_tool_prefix="$kernel_tool_prefix"
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
8285 $as_echo "$kernel_tool_prefix" >&6; }
8287 target_tool_prefix=${target_cpu}-aros-
8289 # Now process extra architecture-specific options.
8290 # Currently this is implemented only for ARM. We can specify which minimum CPU and FPU to use,\
8291 # as well as floating-point ABI.
8292 case "$aros_target_cpu" in
8293 arm)
8294 if test "$gcc_default_cpu" = ""; then
8295 gcc_default_cpu="armv6"
8297 if test "$gcc_default_fpu" = ""; then
8298 gcc_default_fpu="vfp"
8300 if test "$gcc_default_float_abi" = ""; then
8301 gcc_default_float_abi="softfp"
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum CPU to use" >&5
8305 $as_echo_n "checking Which minimum CPU to use... " >&6; }
8307 # Check whether --with-cpu was given.
8308 if test "${with_cpu+set}" = set; then :
8309 withval=$with_cpu; aros_gcc_cpu="$withval"
8310 else
8311 aros_gcc_cpu=$gcc_default_cpu
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_cpu" >&5
8315 $as_echo "$aros_gcc_cpu" >&6; }
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which minimum FPU to use" >&5
8318 $as_echo_n "checking Which minimum FPU to use... " >&6; }
8320 # Check whether --with-fpu was given.
8321 if test "${with_fpu+set}" = set; then :
8322 withval=$with_fpu; aros_gcc_fpu="$withval"
8323 else
8324 aros_gcc_fpu=$gcc_default_fpu
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_fpu" >&5
8328 $as_echo "$aros_gcc_fpu" >&6; }
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Which floating point ABI to use" >&5
8331 $as_echo_n "checking Which floating point ABI to use... " >&6; }
8333 # Check whether --with-float was given.
8334 if test "${with_float+set}" = set; then :
8335 withval=$with_float; aros_gcc_float_abi="$withval"
8336 else
8337 aros_gcc_float_abi=$gcc_default_float_abi
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_float_abi" >&5
8341 $as_echo "$aros_gcc_float_abi" >&6; }
8343 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"
8344 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"
8346 esac
8348 # Some formats need custom ELF specs.
8349 # For example for x86_64 it is needed in order for -m32 switch to work correctly.
8350 if test -f $SRCDIR/config/${aros_object_format}-specs.in; then
8351 elf_specs_in=config/${aros_object_format}-specs.in
8352 else
8353 elf_specs_in=config/elf-specs.in
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
8357 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
8359 # Check whether --with-aros-gcc was given.
8360 if test "${with_aros_gcc+set}" = set; then :
8361 withval=$with_aros_gcc; aros_gcc_version="-$withval"
8362 else
8363 aros_gcc_version=""
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
8367 $as_echo "$aros_gcc_version" >&6; }
8369 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
8370 # Since we override specs, we may need to put these defines there
8371 if test "$gcc_target_cpu" != ""; then
8372 gcc_target_cpu="-D__${gcc_target_cpu}__"
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
8376 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
8378 # Check whether --with-portssources was given.
8379 if test "${with_portssources+set}" = set; then :
8380 withval=$with_portssources; with_portssrcdir=$withval
8381 else
8382 with_portssrcdir="default"
8385 if test "$with_portssrcdir" = "default"; then
8386 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
8387 else
8388 AROS_PORTSSRCDIR="$with_portssrcdir"
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
8391 $as_echo "$AROS_PORTSSRCDIR" >&6; }
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
8394 $as_echo_n "checking which bootloader to use... " >&6; }
8396 # Check whether --with-bootloader was given.
8397 if test "${with_bootloader+set}" = set; then :
8398 withval=$with_bootloader; target_bootloader=$withval
8399 else
8400 target_bootloader=$target_bootloader
8403 if test "$target_bootloader" = "none"; then
8404 aros_target_bootloader=""
8405 else
8406 aros_target_bootloader="$target_bootloader"
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
8409 $as_echo "$target_bootloader" >&6; }
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
8412 $as_echo_n "checking which icon-set to use... " >&6; }
8414 # Check whether --with-iconset was given.
8415 if test "${with_iconset+set}" = set; then :
8416 withval=$with_iconset; target_iconset=$withval
8417 else
8418 target_iconset="default"
8421 if test "$target_iconset" = "default"; then
8422 aros_target_iconset="Gorilla"
8423 target_iconset="default (Gorilla)"
8424 else
8425 aros_target_iconset="$target_iconset"
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
8428 $as_echo "$target_iconset" >&6; }
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
8431 $as_echo_n "checking which GUI Theme to use... " >&6; }
8433 # Check whether --with-theme was given.
8434 if test "${with_theme+set}" = set; then :
8435 withval=$with_theme; target_guitheme=$withval
8436 else
8437 target_guitheme="default"
8440 if test "$target_guitheme" = "default"; then
8441 aros_target_guitheme="Ice"
8442 else
8443 aros_target_guitheme="$target_guitheme"
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
8446 $as_echo "$aros_target_guitheme" >&6; }
8448 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
8449 # for target code)
8450 cross_compiling=no
8451 if test "$aros_host_cpu" = "$aros_target_cpu" ; then
8452 # If host = target CPU, let's try to use the
8453 # host's toolchains if no others were requested
8454 if test "$kernel_tool_prefix" = "none" ; then
8455 kernel_tool_prefix=""
8457 else
8458 cross_compiling=yes
8461 if test "$aros_host_cpu" == "x86_64" ; then
8462 if test "$aros_target_cpu" == "i386" ; then
8463 if test "$aros_target_arch" != "mingw32"; then
8464 cross_compiling=no
8465 kernel_tool_prefix=""
8470 if test "$aros_host_arch" == "darwin" ; then
8471 if test "$aros_target_arch" != "darwin" ; then
8472 cross_compiling=yes
8473 else
8474 cross_compiling=no
8475 kernel_tool_prefix=""
8479 if test "$aros_host_arch" == "mingw32" ; then
8480 if test "$aros_target_arch" != "mingw32" ; then
8481 cross_compiling=yes
8485 #######################################################################
8486 ## Compute what toolchains to use, and their paths ##
8487 #######################################################################
8489 # This takes, as input:
8490 # crosstools {yes,no}
8491 # aros_gcc_version {default,[version]}
8492 # kernel_tool_prefix {none,[some-arch-os-]}
8493 # target_tool_prefix ${target_cpu}-aros-
8495 # The output is
8496 # aros_kernel_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8497 # Where the 'kernel' binaries are located
8498 # orig_target_{cpp,cc,ar,ld,as,ranlib,nm,strip}
8499 # Where the 'target' binaries are located
8500 # (not the symlink farm - that is aros_target_*!)
8502 # The rules are:
8503 # if crosstools then
8504 # if kernel_tools_prefix = "no-kernel-prefix-"
8505 # aros_kernel_* = crosstools cc paths
8506 # aros_kernel_cc = elf cc wrapper around crosstools cc
8507 # else
8508 # VALIDATE(${kernel_tools_prefix}*)
8509 # aros_kernel_* = ${kernel_tools_prefix}*
8510 # if ${kernel_tools_prefix}cc is an AROS gcc
8511 # aros_kernel_cc = ${kernel_tools_prefix}cc
8512 # else
8513 # aros_kernel_cc = elf cc wrapper around ${kernel_tools_prefix}cc
8514 # fi
8515 # fi
8517 # orig_target_* = aros built crosstools
8518 # orig_target_cc = elf cc wrapper around crosstools cc
8519 # else
8520 # VALIDATE(${kernel_tools_prefix}*)
8522 # orig_target_* = aros_kernel_*
8523 # if aros_kernel_cc is an AROS gcc
8524 # orig_target_cc = aros_kernel_cc
8525 # else
8526 # orig_target_cc = aros cc wrapper around aros_kernel_cc
8527 # fi
8528 # fi
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use external toolchain" >&5
8532 $as_echo_n "checking whether to use external toolchain... " >&6; }
8533 if test "$kernel_tool_prefix" = "none" ; then
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8535 $as_echo "no" >&6; };
8536 if test "$crosstools" != "yes"; then
8537 as_fn_error $? "--disable-crosstools requires --with-kernel-tool-prefix= for this arch" "$LINENO" 5
8539 # We are building AROS crosstools, and no kernel
8540 # tools specified - assume target tools == kernel tools
8541 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
8542 aros_kernel_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
8543 aros_kernel_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
8544 aros_kernel_cpp="${tmp_tool_prefix}cpp"
8545 aros_kernel_ld="${tmp_tool_prefix}ld"
8546 aros_kernel_as="${tmp_tool_prefix}as"
8547 aros_kernel_ar="${tmp_tool_prefix}ar"
8548 aros_kernel_ranlib="${tmp_tool_prefix}ranlib"
8549 aros_kernel_nm="${tmp_tool_prefix}nm"
8550 aros_kernel_strip="${tmp_tool_prefix}strip"
8551 aros_kernel_objcopy="${tmp_tool_prefix}objcopy"
8552 aros_kernel_objdump="${tmp_tool_prefix}objdump"
8553 else
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8555 $as_echo "yes" >&6; };
8556 # Kernel tools specified - find them
8557 # Note that 'normally', aros_kernel_* overrides will
8558 # empty, unless specified in the per-arch sections above.
8561 if test "$aros_kernel_cpp" = ""; then
8562 if test "$cross_compiling" = "yes" ; then
8563 # Extract the first word of "${kernel_tool_prefix}cpp", so it can be a program name with args.
8564 set dummy ${kernel_tool_prefix}cpp; ac_word=$2
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566 $as_echo_n "checking for $ac_word... " >&6; }
8567 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 case $aros_kernel_cpp in
8571 [\\/]* | ?:[\\/]*)
8572 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8576 for as_dir in $PATH
8578 IFS=$as_save_IFS
8579 test -z "$as_dir" && as_dir=.
8580 for ac_exec_ext in '' $ac_executable_extensions; do
8581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8582 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8584 break 2
8586 done
8587 done
8588 IFS=$as_save_IFS
8591 esac
8593 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8594 if test -n "$aros_kernel_cpp"; then
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8596 $as_echo "$aros_kernel_cpp" >&6; }
8597 else
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8599 $as_echo "no" >&6; }
8603 else
8604 if test "$GCC" = "yes"; then
8605 aros_gcc_cpp=`$CC -print-prog-name=cpp`
8606 # Extract the first word of "`basename $aros_gcc_[cpp]`", so it can be a program name with args.
8607 set dummy `basename $aros_gcc_cpp`; ac_word=$2
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609 $as_echo_n "checking for $ac_word... " >&6; }
8610 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8611 $as_echo_n "(cached) " >&6
8612 else
8613 case $aros_kernel_cpp in
8614 [\\/]* | ?:[\\/]*)
8615 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619 for as_dir in `dirname $aros_gcc_cpp`
8621 IFS=$as_save_IFS
8622 test -z "$as_dir" && as_dir=.
8623 for ac_exec_ext in '' $ac_executable_extensions; do
8624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8625 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8627 break 2
8629 done
8630 done
8631 IFS=$as_save_IFS
8634 esac
8636 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8637 if test -n "$aros_kernel_cpp"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8639 $as_echo "$aros_kernel_cpp" >&6; }
8640 else
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642 $as_echo "no" >&6; }
8647 if test "$aros_kernel_cpp" = ""; then
8648 # Extract the first word of "cpp", so it can be a program name with args.
8649 set dummy cpp; ac_word=$2
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651 $as_echo_n "checking for $ac_word... " >&6; }
8652 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8653 $as_echo_n "(cached) " >&6
8654 else
8655 case $aros_kernel_cpp in
8656 [\\/]* | ?:[\\/]*)
8657 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 for as_dir in $PATH
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8667 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669 break 2
8671 done
8672 done
8673 IFS=$as_save_IFS
8676 esac
8678 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8679 if test -n "$aros_kernel_cpp"; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8681 $as_echo "$aros_kernel_cpp" >&6; }
8682 else
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684 $as_echo "no" >&6; }
8690 else
8691 # Extract the first word of "$aros_kernel_cpp", so it can be a program name with args.
8692 set dummy $aros_kernel_cpp; ac_word=$2
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8694 $as_echo_n "checking for $ac_word... " >&6; }
8695 if ${ac_cv_path_aros_kernel_cpp+:} false; then :
8696 $as_echo_n "(cached) " >&6
8697 else
8698 case $aros_kernel_cpp in
8699 [\\/]* | ?:[\\/]*)
8700 ac_cv_path_aros_kernel_cpp="$aros_kernel_cpp" # Let the user override the test with a path.
8703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8704 for as_dir in $PATH
8706 IFS=$as_save_IFS
8707 test -z "$as_dir" && as_dir=.
8708 for ac_exec_ext in '' $ac_executable_extensions; do
8709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8710 ac_cv_path_aros_kernel_cpp="$as_dir/$ac_word$ac_exec_ext"
8711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712 break 2
8714 done
8715 done
8716 IFS=$as_save_IFS
8719 esac
8721 aros_kernel_cpp=$ac_cv_path_aros_kernel_cpp
8722 if test -n "$aros_kernel_cpp"; then
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cpp" >&5
8724 $as_echo "$aros_kernel_cpp" >&6; }
8725 else
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8727 $as_echo "no" >&6; }
8733 if test "$aros_kernel_cpp" = ""; then
8734 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
8736 if test "x$aros_kernel_cc" = "x"; then
8737 aros_kernel_cc=${kernel_tool_prefix}gcc
8740 if test "$aros_kernel_cc${aros_gcc_version}" = ""; then
8741 if test "$cross_compiling" = "yes" ; then
8742 # Extract the first word of "${kernel_tool_prefix}cc", so it can be a program name with args.
8743 set dummy ${kernel_tool_prefix}cc; ac_word=$2
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745 $as_echo_n "checking for $ac_word... " >&6; }
8746 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 case $aros_kernel_cc in
8750 [\\/]* | ?:[\\/]*)
8751 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 for as_dir in $PATH
8757 IFS=$as_save_IFS
8758 test -z "$as_dir" && as_dir=.
8759 for ac_exec_ext in '' $ac_executable_extensions; do
8760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8761 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 break 2
8765 done
8766 done
8767 IFS=$as_save_IFS
8770 esac
8772 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8773 if test -n "$aros_kernel_cc"; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8775 $as_echo "$aros_kernel_cc" >&6; }
8776 else
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8778 $as_echo "no" >&6; }
8782 else
8783 if test "$GCC" = "yes"; then
8784 aros_gcc_cc=`$CC -print-prog-name=cc`
8785 # Extract the first word of "`basename $aros_gcc_[cc]`", so it can be a program name with args.
8786 set dummy `basename $aros_gcc_cc`; ac_word=$2
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788 $as_echo_n "checking for $ac_word... " >&6; }
8789 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 case $aros_kernel_cc in
8793 [\\/]* | ?:[\\/]*)
8794 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798 for as_dir in `dirname $aros_gcc_cc`
8800 IFS=$as_save_IFS
8801 test -z "$as_dir" && as_dir=.
8802 for ac_exec_ext in '' $ac_executable_extensions; do
8803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8804 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8806 break 2
8808 done
8809 done
8810 IFS=$as_save_IFS
8813 esac
8815 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8816 if test -n "$aros_kernel_cc"; then
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8818 $as_echo "$aros_kernel_cc" >&6; }
8819 else
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821 $as_echo "no" >&6; }
8826 if test "$aros_kernel_cc" = ""; then
8827 # Extract the first word of "cc", so it can be a program name with args.
8828 set dummy cc; ac_word=$2
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8830 $as_echo_n "checking for $ac_word... " >&6; }
8831 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8832 $as_echo_n "(cached) " >&6
8833 else
8834 case $aros_kernel_cc in
8835 [\\/]* | ?:[\\/]*)
8836 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8840 for as_dir in $PATH
8842 IFS=$as_save_IFS
8843 test -z "$as_dir" && as_dir=.
8844 for ac_exec_ext in '' $ac_executable_extensions; do
8845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8846 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8848 break 2
8850 done
8851 done
8852 IFS=$as_save_IFS
8855 esac
8857 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8858 if test -n "$aros_kernel_cc"; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8860 $as_echo "$aros_kernel_cc" >&6; }
8861 else
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8863 $as_echo "no" >&6; }
8869 else
8870 # Extract the first word of "$aros_kernel_cc${aros_gcc_version}", so it can be a program name with args.
8871 set dummy $aros_kernel_cc${aros_gcc_version}; ac_word=$2
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8873 $as_echo_n "checking for $ac_word... " >&6; }
8874 if ${ac_cv_path_aros_kernel_cc+:} false; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 case $aros_kernel_cc in
8878 [\\/]* | ?:[\\/]*)
8879 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 for as_dir in $PATH
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8889 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8893 done
8894 done
8895 IFS=$as_save_IFS
8898 esac
8900 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8901 if test -n "$aros_kernel_cc"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc" >&5
8903 $as_echo "$aros_kernel_cc" >&6; }
8904 else
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8912 if test "$aros_kernel_cc" = ""; then
8913 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
8915 if test "x$aros_kernel_cxx" = "x"; then
8916 aros_kernel_cxx=${kernel_tool_prefix}g++
8919 if test "$aros_kernel_cxx${aros_gcc_version}" = ""; then
8920 if test "$cross_compiling" = "yes" ; then
8921 # Extract the first word of "${kernel_tool_prefix}cxx", so it can be a program name with args.
8922 set dummy ${kernel_tool_prefix}cxx; ac_word=$2
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8924 $as_echo_n "checking for $ac_word... " >&6; }
8925 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
8926 $as_echo_n "(cached) " >&6
8927 else
8928 case $aros_kernel_cxx in
8929 [\\/]* | ?:[\\/]*)
8930 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
8933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8934 for as_dir in $PATH
8936 IFS=$as_save_IFS
8937 test -z "$as_dir" && as_dir=.
8938 for ac_exec_ext in '' $ac_executable_extensions; do
8939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8940 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
8941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8942 break 2
8944 done
8945 done
8946 IFS=$as_save_IFS
8949 esac
8951 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
8952 if test -n "$aros_kernel_cxx"; then
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
8954 $as_echo "$aros_kernel_cxx" >&6; }
8955 else
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957 $as_echo "no" >&6; }
8961 else
8962 if test "$GCC" = "yes"; then
8963 aros_gcc_cxx=`$CC -print-prog-name=cxx`
8964 # Extract the first word of "`basename $aros_gcc_[cxx]`", so it can be a program name with args.
8965 set dummy `basename $aros_gcc_cxx`; ac_word=$2
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8967 $as_echo_n "checking for $ac_word... " >&6; }
8968 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
8969 $as_echo_n "(cached) " >&6
8970 else
8971 case $aros_kernel_cxx in
8972 [\\/]* | ?:[\\/]*)
8973 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
8976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977 for as_dir in `dirname $aros_gcc_cxx`
8979 IFS=$as_save_IFS
8980 test -z "$as_dir" && as_dir=.
8981 for ac_exec_ext in '' $ac_executable_extensions; do
8982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8983 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
8984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 break 2
8987 done
8988 done
8989 IFS=$as_save_IFS
8992 esac
8994 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
8995 if test -n "$aros_kernel_cxx"; then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
8997 $as_echo "$aros_kernel_cxx" >&6; }
8998 else
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000 $as_echo "no" >&6; }
9005 if test "$aros_kernel_cxx" = ""; then
9006 # Extract the first word of "cxx", so it can be a program name with args.
9007 set dummy cxx; ac_word=$2
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9009 $as_echo_n "checking for $ac_word... " >&6; }
9010 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 case $aros_kernel_cxx in
9014 [\\/]* | ?:[\\/]*)
9015 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9019 for as_dir in $PATH
9021 IFS=$as_save_IFS
9022 test -z "$as_dir" && as_dir=.
9023 for ac_exec_ext in '' $ac_executable_extensions; do
9024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9025 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9027 break 2
9029 done
9030 done
9031 IFS=$as_save_IFS
9034 esac
9036 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9037 if test -n "$aros_kernel_cxx"; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9039 $as_echo "$aros_kernel_cxx" >&6; }
9040 else
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9048 else
9049 # Extract the first word of "$aros_kernel_cxx${aros_gcc_version}", so it can be a program name with args.
9050 set dummy $aros_kernel_cxx${aros_gcc_version}; ac_word=$2
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9052 $as_echo_n "checking for $ac_word... " >&6; }
9053 if ${ac_cv_path_aros_kernel_cxx+:} false; then :
9054 $as_echo_n "(cached) " >&6
9055 else
9056 case $aros_kernel_cxx in
9057 [\\/]* | ?:[\\/]*)
9058 ac_cv_path_aros_kernel_cxx="$aros_kernel_cxx" # Let the user override the test with a path.
9061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9062 for as_dir in $PATH
9064 IFS=$as_save_IFS
9065 test -z "$as_dir" && as_dir=.
9066 for ac_exec_ext in '' $ac_executable_extensions; do
9067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9068 ac_cv_path_aros_kernel_cxx="$as_dir/$ac_word$ac_exec_ext"
9069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9070 break 2
9072 done
9073 done
9074 IFS=$as_save_IFS
9077 esac
9079 aros_kernel_cxx=$ac_cv_path_aros_kernel_cxx
9080 if test -n "$aros_kernel_cxx"; then
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cxx" >&5
9082 $as_echo "$aros_kernel_cxx" >&6; }
9083 else
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9085 $as_echo "no" >&6; }
9091 # If it's set, make sure it's really there
9092 if test "x$aros_kernel_cxx" != "x" ; then
9093 if test "$aros_kernel_cxx" = ""; then
9094 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
9098 if test "$aros_kernel_ld" = ""; then
9099 if test "$cross_compiling" = "yes" ; then
9100 # Extract the first word of "${kernel_tool_prefix}ld", so it can be a program name with args.
9101 set dummy ${kernel_tool_prefix}ld; ac_word=$2
9102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9103 $as_echo_n "checking for $ac_word... " >&6; }
9104 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9105 $as_echo_n "(cached) " >&6
9106 else
9107 case $aros_kernel_ld in
9108 [\\/]* | ?:[\\/]*)
9109 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9113 for as_dir in $PATH
9115 IFS=$as_save_IFS
9116 test -z "$as_dir" && as_dir=.
9117 for ac_exec_ext in '' $ac_executable_extensions; do
9118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9119 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9121 break 2
9123 done
9124 done
9125 IFS=$as_save_IFS
9128 esac
9130 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9131 if test -n "$aros_kernel_ld"; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9133 $as_echo "$aros_kernel_ld" >&6; }
9134 else
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9136 $as_echo "no" >&6; }
9140 else
9141 if test "$GCC" = "yes"; then
9142 aros_gcc_ld=`$CC -print-prog-name=ld`
9143 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9144 set dummy `basename $aros_gcc_ld`; ac_word=$2
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9146 $as_echo_n "checking for $ac_word... " >&6; }
9147 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9148 $as_echo_n "(cached) " >&6
9149 else
9150 case $aros_kernel_ld in
9151 [\\/]* | ?:[\\/]*)
9152 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9156 for as_dir in `dirname $aros_gcc_ld`
9158 IFS=$as_save_IFS
9159 test -z "$as_dir" && as_dir=.
9160 for ac_exec_ext in '' $ac_executable_extensions; do
9161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9162 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9164 break 2
9166 done
9167 done
9168 IFS=$as_save_IFS
9171 esac
9173 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9174 if test -n "$aros_kernel_ld"; then
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9176 $as_echo "$aros_kernel_ld" >&6; }
9177 else
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9179 $as_echo "no" >&6; }
9184 if test "$aros_kernel_ld" = ""; then
9185 # Extract the first word of "ld", so it can be a program name with args.
9186 set dummy ld; ac_word=$2
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9188 $as_echo_n "checking for $ac_word... " >&6; }
9189 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9190 $as_echo_n "(cached) " >&6
9191 else
9192 case $aros_kernel_ld in
9193 [\\/]* | ?:[\\/]*)
9194 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9198 for as_dir in $PATH
9200 IFS=$as_save_IFS
9201 test -z "$as_dir" && as_dir=.
9202 for ac_exec_ext in '' $ac_executable_extensions; do
9203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9204 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9206 break 2
9208 done
9209 done
9210 IFS=$as_save_IFS
9213 esac
9215 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9216 if test -n "$aros_kernel_ld"; then
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9218 $as_echo "$aros_kernel_ld" >&6; }
9219 else
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9221 $as_echo "no" >&6; }
9227 else
9228 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9229 set dummy $aros_kernel_ld; ac_word=$2
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9231 $as_echo_n "checking for $ac_word... " >&6; }
9232 if ${ac_cv_path_aros_kernel_ld+:} false; then :
9233 $as_echo_n "(cached) " >&6
9234 else
9235 case $aros_kernel_ld in
9236 [\\/]* | ?:[\\/]*)
9237 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9241 for as_dir in $PATH
9243 IFS=$as_save_IFS
9244 test -z "$as_dir" && as_dir=.
9245 for ac_exec_ext in '' $ac_executable_extensions; do
9246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9247 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9249 break 2
9251 done
9252 done
9253 IFS=$as_save_IFS
9256 esac
9258 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9259 if test -n "$aros_kernel_ld"; then
9260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
9261 $as_echo "$aros_kernel_ld" >&6; }
9262 else
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9264 $as_echo "no" >&6; }
9270 if test "$aros_kernel_ld" = ""; then
9271 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9274 if test "$aros_kernel_as" = ""; then
9275 if test "$cross_compiling" = "yes" ; then
9276 # Extract the first word of "${kernel_tool_prefix}as", so it can be a program name with args.
9277 set dummy ${kernel_tool_prefix}as; ac_word=$2
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9279 $as_echo_n "checking for $ac_word... " >&6; }
9280 if ${ac_cv_path_aros_kernel_as+:} false; then :
9281 $as_echo_n "(cached) " >&6
9282 else
9283 case $aros_kernel_as in
9284 [\\/]* | ?:[\\/]*)
9285 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289 for as_dir in $PATH
9291 IFS=$as_save_IFS
9292 test -z "$as_dir" && as_dir=.
9293 for ac_exec_ext in '' $ac_executable_extensions; do
9294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9295 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9297 break 2
9299 done
9300 done
9301 IFS=$as_save_IFS
9304 esac
9306 aros_kernel_as=$ac_cv_path_aros_kernel_as
9307 if test -n "$aros_kernel_as"; then
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9309 $as_echo "$aros_kernel_as" >&6; }
9310 else
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9312 $as_echo "no" >&6; }
9316 else
9317 if test "$GCC" = "yes"; then
9318 aros_gcc_as=`$CC -print-prog-name=as`
9319 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9320 set dummy `basename $aros_gcc_as`; ac_word=$2
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9322 $as_echo_n "checking for $ac_word... " >&6; }
9323 if ${ac_cv_path_aros_kernel_as+:} false; then :
9324 $as_echo_n "(cached) " >&6
9325 else
9326 case $aros_kernel_as in
9327 [\\/]* | ?:[\\/]*)
9328 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 for as_dir in `dirname $aros_gcc_as`
9334 IFS=$as_save_IFS
9335 test -z "$as_dir" && as_dir=.
9336 for ac_exec_ext in '' $ac_executable_extensions; do
9337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9338 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9340 break 2
9342 done
9343 done
9344 IFS=$as_save_IFS
9347 esac
9349 aros_kernel_as=$ac_cv_path_aros_kernel_as
9350 if test -n "$aros_kernel_as"; then
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9352 $as_echo "$aros_kernel_as" >&6; }
9353 else
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9355 $as_echo "no" >&6; }
9360 if test "$aros_kernel_as" = ""; then
9361 # Extract the first word of "as", so it can be a program name with args.
9362 set dummy as; ac_word=$2
9363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9364 $as_echo_n "checking for $ac_word... " >&6; }
9365 if ${ac_cv_path_aros_kernel_as+:} false; then :
9366 $as_echo_n "(cached) " >&6
9367 else
9368 case $aros_kernel_as in
9369 [\\/]* | ?:[\\/]*)
9370 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9374 for as_dir in $PATH
9376 IFS=$as_save_IFS
9377 test -z "$as_dir" && as_dir=.
9378 for ac_exec_ext in '' $ac_executable_extensions; do
9379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9380 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9382 break 2
9384 done
9385 done
9386 IFS=$as_save_IFS
9389 esac
9391 aros_kernel_as=$ac_cv_path_aros_kernel_as
9392 if test -n "$aros_kernel_as"; then
9393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9394 $as_echo "$aros_kernel_as" >&6; }
9395 else
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9397 $as_echo "no" >&6; }
9403 else
9404 # Extract the first word of "$aros_kernel_as", so it can be a program name with args.
9405 set dummy $aros_kernel_as; ac_word=$2
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9407 $as_echo_n "checking for $ac_word... " >&6; }
9408 if ${ac_cv_path_aros_kernel_as+:} false; then :
9409 $as_echo_n "(cached) " >&6
9410 else
9411 case $aros_kernel_as in
9412 [\\/]* | ?:[\\/]*)
9413 ac_cv_path_aros_kernel_as="$aros_kernel_as" # Let the user override the test with a path.
9416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9417 for as_dir in $PATH
9419 IFS=$as_save_IFS
9420 test -z "$as_dir" && as_dir=.
9421 for ac_exec_ext in '' $ac_executable_extensions; do
9422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9423 ac_cv_path_aros_kernel_as="$as_dir/$ac_word$ac_exec_ext"
9424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9425 break 2
9427 done
9428 done
9429 IFS=$as_save_IFS
9432 esac
9434 aros_kernel_as=$ac_cv_path_aros_kernel_as
9435 if test -n "$aros_kernel_as"; then
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_as" >&5
9437 $as_echo "$aros_kernel_as" >&6; }
9438 else
9439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9440 $as_echo "no" >&6; }
9446 if test "$aros_kernel_as" = ""; then
9447 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
9450 if test "$aros_kernel_ar" = ""; then
9451 if test "$cross_compiling" = "yes" ; then
9452 # Extract the first word of "${kernel_tool_prefix}ar", so it can be a program name with args.
9453 set dummy ${kernel_tool_prefix}ar; ac_word=$2
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455 $as_echo_n "checking for $ac_word... " >&6; }
9456 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 case $aros_kernel_ar in
9460 [\\/]* | ?:[\\/]*)
9461 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9465 for as_dir in $PATH
9467 IFS=$as_save_IFS
9468 test -z "$as_dir" && as_dir=.
9469 for ac_exec_ext in '' $ac_executable_extensions; do
9470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9471 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9473 break 2
9475 done
9476 done
9477 IFS=$as_save_IFS
9480 esac
9482 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9483 if test -n "$aros_kernel_ar"; then
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9485 $as_echo "$aros_kernel_ar" >&6; }
9486 else
9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9488 $as_echo "no" >&6; }
9492 else
9493 if test "$GCC" = "yes"; then
9494 aros_gcc_ar=`$CC -print-prog-name=ar`
9495 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9496 set dummy `basename $aros_gcc_ar`; ac_word=$2
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9498 $as_echo_n "checking for $ac_word... " >&6; }
9499 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9500 $as_echo_n "(cached) " >&6
9501 else
9502 case $aros_kernel_ar in
9503 [\\/]* | ?:[\\/]*)
9504 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9508 for as_dir in `dirname $aros_gcc_ar`
9510 IFS=$as_save_IFS
9511 test -z "$as_dir" && as_dir=.
9512 for ac_exec_ext in '' $ac_executable_extensions; do
9513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9514 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9516 break 2
9518 done
9519 done
9520 IFS=$as_save_IFS
9523 esac
9525 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9526 if test -n "$aros_kernel_ar"; then
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9528 $as_echo "$aros_kernel_ar" >&6; }
9529 else
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531 $as_echo "no" >&6; }
9536 if test "$aros_kernel_ar" = ""; then
9537 # Extract the first word of "ar", so it can be a program name with args.
9538 set dummy ar; ac_word=$2
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9540 $as_echo_n "checking for $ac_word... " >&6; }
9541 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9542 $as_echo_n "(cached) " >&6
9543 else
9544 case $aros_kernel_ar in
9545 [\\/]* | ?:[\\/]*)
9546 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550 for as_dir in $PATH
9552 IFS=$as_save_IFS
9553 test -z "$as_dir" && as_dir=.
9554 for ac_exec_ext in '' $ac_executable_extensions; do
9555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9556 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9558 break 2
9560 done
9561 done
9562 IFS=$as_save_IFS
9565 esac
9567 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9568 if test -n "$aros_kernel_ar"; then
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9570 $as_echo "$aros_kernel_ar" >&6; }
9571 else
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9573 $as_echo "no" >&6; }
9579 else
9580 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
9581 set dummy $aros_kernel_ar; ac_word=$2
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9583 $as_echo_n "checking for $ac_word... " >&6; }
9584 if ${ac_cv_path_aros_kernel_ar+:} false; then :
9585 $as_echo_n "(cached) " >&6
9586 else
9587 case $aros_kernel_ar in
9588 [\\/]* | ?:[\\/]*)
9589 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
9592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9593 for as_dir in $PATH
9595 IFS=$as_save_IFS
9596 test -z "$as_dir" && as_dir=.
9597 for ac_exec_ext in '' $ac_executable_extensions; do
9598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9599 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
9600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9601 break 2
9603 done
9604 done
9605 IFS=$as_save_IFS
9608 esac
9610 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
9611 if test -n "$aros_kernel_ar"; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
9613 $as_echo "$aros_kernel_ar" >&6; }
9614 else
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9616 $as_echo "no" >&6; }
9622 if test "$aros_kernel_ar" = ""; then
9623 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9626 if test "$aros_kernel_ranlib" = ""; then
9627 if test "$cross_compiling" = "yes" ; then
9628 # Extract the first word of "${kernel_tool_prefix}ranlib", so it can be a program name with args.
9629 set dummy ${kernel_tool_prefix}ranlib; ac_word=$2
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9631 $as_echo_n "checking for $ac_word... " >&6; }
9632 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 case $aros_kernel_ranlib in
9636 [\\/]* | ?:[\\/]*)
9637 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 for as_dir in $PATH
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
9645 for ac_exec_ext in '' $ac_executable_extensions; do
9646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9647 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649 break 2
9651 done
9652 done
9653 IFS=$as_save_IFS
9656 esac
9658 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9659 if test -n "$aros_kernel_ranlib"; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9661 $as_echo "$aros_kernel_ranlib" >&6; }
9662 else
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; }
9668 else
9669 if test "$GCC" = "yes"; then
9670 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9671 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9672 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9674 $as_echo_n "checking for $ac_word... " >&6; }
9675 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9676 $as_echo_n "(cached) " >&6
9677 else
9678 case $aros_kernel_ranlib in
9679 [\\/]* | ?:[\\/]*)
9680 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9684 for as_dir in `dirname $aros_gcc_ranlib`
9686 IFS=$as_save_IFS
9687 test -z "$as_dir" && as_dir=.
9688 for ac_exec_ext in '' $ac_executable_extensions; do
9689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9690 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9692 break 2
9694 done
9695 done
9696 IFS=$as_save_IFS
9699 esac
9701 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9702 if test -n "$aros_kernel_ranlib"; then
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9704 $as_echo "$aros_kernel_ranlib" >&6; }
9705 else
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9707 $as_echo "no" >&6; }
9712 if test "$aros_kernel_ranlib" = ""; then
9713 # Extract the first word of "ranlib", so it can be a program name with args.
9714 set dummy ranlib; ac_word=$2
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9716 $as_echo_n "checking for $ac_word... " >&6; }
9717 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9718 $as_echo_n "(cached) " >&6
9719 else
9720 case $aros_kernel_ranlib in
9721 [\\/]* | ?:[\\/]*)
9722 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726 for as_dir in $PATH
9728 IFS=$as_save_IFS
9729 test -z "$as_dir" && as_dir=.
9730 for ac_exec_ext in '' $ac_executable_extensions; do
9731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9732 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9734 break 2
9736 done
9737 done
9738 IFS=$as_save_IFS
9741 esac
9743 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9744 if test -n "$aros_kernel_ranlib"; then
9745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9746 $as_echo "$aros_kernel_ranlib" >&6; }
9747 else
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9749 $as_echo "no" >&6; }
9755 else
9756 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
9757 set dummy $aros_kernel_ranlib; ac_word=$2
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759 $as_echo_n "checking for $ac_word... " >&6; }
9760 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
9761 $as_echo_n "(cached) " >&6
9762 else
9763 case $aros_kernel_ranlib in
9764 [\\/]* | ?:[\\/]*)
9765 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
9768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 for as_dir in $PATH
9771 IFS=$as_save_IFS
9772 test -z "$as_dir" && as_dir=.
9773 for ac_exec_ext in '' $ac_executable_extensions; do
9774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9775 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
9776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9777 break 2
9779 done
9780 done
9781 IFS=$as_save_IFS
9784 esac
9786 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
9787 if test -n "$aros_kernel_ranlib"; then
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
9789 $as_echo "$aros_kernel_ranlib" >&6; }
9790 else
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9792 $as_echo "no" >&6; }
9798 if test "$aros_kernel_ranlib" = ""; then
9799 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9802 if test "$aros_kernel_nm" = ""; then
9803 if test "$cross_compiling" = "yes" ; then
9804 # Extract the first word of "${kernel_tool_prefix}nm", so it can be a program name with args.
9805 set dummy ${kernel_tool_prefix}nm; ac_word=$2
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9807 $as_echo_n "checking for $ac_word... " >&6; }
9808 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9809 $as_echo_n "(cached) " >&6
9810 else
9811 case $aros_kernel_nm in
9812 [\\/]* | ?:[\\/]*)
9813 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9817 for as_dir in $PATH
9819 IFS=$as_save_IFS
9820 test -z "$as_dir" && as_dir=.
9821 for ac_exec_ext in '' $ac_executable_extensions; do
9822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9823 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9825 break 2
9827 done
9828 done
9829 IFS=$as_save_IFS
9832 esac
9834 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9835 if test -n "$aros_kernel_nm"; then
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9837 $as_echo "$aros_kernel_nm" >&6; }
9838 else
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9840 $as_echo "no" >&6; }
9844 else
9845 if test "$GCC" = "yes"; then
9846 aros_gcc_nm=`$CC -print-prog-name=nm`
9847 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9848 set dummy `basename $aros_gcc_nm`; ac_word=$2
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9850 $as_echo_n "checking for $ac_word... " >&6; }
9851 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9852 $as_echo_n "(cached) " >&6
9853 else
9854 case $aros_kernel_nm in
9855 [\\/]* | ?:[\\/]*)
9856 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860 for as_dir in `dirname $aros_gcc_nm`
9862 IFS=$as_save_IFS
9863 test -z "$as_dir" && as_dir=.
9864 for ac_exec_ext in '' $ac_executable_extensions; do
9865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9866 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9868 break 2
9870 done
9871 done
9872 IFS=$as_save_IFS
9875 esac
9877 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9878 if test -n "$aros_kernel_nm"; then
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9880 $as_echo "$aros_kernel_nm" >&6; }
9881 else
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883 $as_echo "no" >&6; }
9888 if test "$aros_kernel_nm" = ""; then
9889 # Extract the first word of "nm", so it can be a program name with args.
9890 set dummy nm; ac_word=$2
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9892 $as_echo_n "checking for $ac_word... " >&6; }
9893 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9896 case $aros_kernel_nm in
9897 [\\/]* | ?:[\\/]*)
9898 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9902 for as_dir in $PATH
9904 IFS=$as_save_IFS
9905 test -z "$as_dir" && as_dir=.
9906 for ac_exec_ext in '' $ac_executable_extensions; do
9907 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9908 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9910 break 2
9912 done
9913 done
9914 IFS=$as_save_IFS
9917 esac
9919 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9920 if test -n "$aros_kernel_nm"; then
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9922 $as_echo "$aros_kernel_nm" >&6; }
9923 else
9924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9925 $as_echo "no" >&6; }
9931 else
9932 # Extract the first word of "$aros_kernel_nm", so it can be a program name with args.
9933 set dummy $aros_kernel_nm; ac_word=$2
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9935 $as_echo_n "checking for $ac_word... " >&6; }
9936 if ${ac_cv_path_aros_kernel_nm+:} false; then :
9937 $as_echo_n "(cached) " >&6
9938 else
9939 case $aros_kernel_nm in
9940 [\\/]* | ?:[\\/]*)
9941 ac_cv_path_aros_kernel_nm="$aros_kernel_nm" # Let the user override the test with a path.
9944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9945 for as_dir in $PATH
9947 IFS=$as_save_IFS
9948 test -z "$as_dir" && as_dir=.
9949 for ac_exec_ext in '' $ac_executable_extensions; do
9950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9951 ac_cv_path_aros_kernel_nm="$as_dir/$ac_word$ac_exec_ext"
9952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9953 break 2
9955 done
9956 done
9957 IFS=$as_save_IFS
9960 esac
9962 aros_kernel_nm=$ac_cv_path_aros_kernel_nm
9963 if test -n "$aros_kernel_nm"; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_nm" >&5
9965 $as_echo "$aros_kernel_nm" >&6; }
9966 else
9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9968 $as_echo "no" >&6; }
9974 if test "$aros_kernel_nm" = ""; then
9975 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9978 if test "$aros_kernel_strip" = ""; then
9979 if test "$cross_compiling" = "yes" ; then
9980 # Extract the first word of "${kernel_tool_prefix}strip", so it can be a program name with args.
9981 set dummy ${kernel_tool_prefix}strip; ac_word=$2
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9983 $as_echo_n "checking for $ac_word... " >&6; }
9984 if ${ac_cv_path_aros_kernel_strip+:} false; then :
9985 $as_echo_n "(cached) " >&6
9986 else
9987 case $aros_kernel_strip in
9988 [\\/]* | ?:[\\/]*)
9989 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
9992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9993 for as_dir in $PATH
9995 IFS=$as_save_IFS
9996 test -z "$as_dir" && as_dir=.
9997 for ac_exec_ext in '' $ac_executable_extensions; do
9998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9999 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10001 break 2
10003 done
10004 done
10005 IFS=$as_save_IFS
10008 esac
10010 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10011 if test -n "$aros_kernel_strip"; then
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10013 $as_echo "$aros_kernel_strip" >&6; }
10014 else
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10016 $as_echo "no" >&6; }
10020 else
10021 if test "$GCC" = "yes"; then
10022 aros_gcc_strip=`$CC -print-prog-name=strip`
10023 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10024 set dummy `basename $aros_gcc_strip`; ac_word=$2
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10026 $as_echo_n "checking for $ac_word... " >&6; }
10027 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10028 $as_echo_n "(cached) " >&6
10029 else
10030 case $aros_kernel_strip in
10031 [\\/]* | ?:[\\/]*)
10032 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10036 for as_dir in `dirname $aros_gcc_strip`
10038 IFS=$as_save_IFS
10039 test -z "$as_dir" && as_dir=.
10040 for ac_exec_ext in '' $ac_executable_extensions; do
10041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10042 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10044 break 2
10046 done
10047 done
10048 IFS=$as_save_IFS
10051 esac
10053 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10054 if test -n "$aros_kernel_strip"; then
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10056 $as_echo "$aros_kernel_strip" >&6; }
10057 else
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10059 $as_echo "no" >&6; }
10064 if test "$aros_kernel_strip" = ""; then
10065 # Extract the first word of "strip", so it can be a program name with args.
10066 set dummy strip; ac_word=$2
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10068 $as_echo_n "checking for $ac_word... " >&6; }
10069 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10070 $as_echo_n "(cached) " >&6
10071 else
10072 case $aros_kernel_strip in
10073 [\\/]* | ?:[\\/]*)
10074 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10078 for as_dir in $PATH
10080 IFS=$as_save_IFS
10081 test -z "$as_dir" && as_dir=.
10082 for ac_exec_ext in '' $ac_executable_extensions; do
10083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10084 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10086 break 2
10088 done
10089 done
10090 IFS=$as_save_IFS
10093 esac
10095 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10096 if test -n "$aros_kernel_strip"; then
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10098 $as_echo "$aros_kernel_strip" >&6; }
10099 else
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10101 $as_echo "no" >&6; }
10107 else
10108 # Extract the first word of "$aros_kernel_strip", so it can be a program name with args.
10109 set dummy $aros_kernel_strip; ac_word=$2
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10111 $as_echo_n "checking for $ac_word... " >&6; }
10112 if ${ac_cv_path_aros_kernel_strip+:} false; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 case $aros_kernel_strip in
10116 [\\/]* | ?:[\\/]*)
10117 ac_cv_path_aros_kernel_strip="$aros_kernel_strip" # Let the user override the test with a path.
10120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10121 for as_dir in $PATH
10123 IFS=$as_save_IFS
10124 test -z "$as_dir" && as_dir=.
10125 for ac_exec_ext in '' $ac_executable_extensions; do
10126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10127 ac_cv_path_aros_kernel_strip="$as_dir/$ac_word$ac_exec_ext"
10128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10129 break 2
10131 done
10132 done
10133 IFS=$as_save_IFS
10136 esac
10138 aros_kernel_strip=$ac_cv_path_aros_kernel_strip
10139 if test -n "$aros_kernel_strip"; then
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_strip" >&5
10141 $as_echo "$aros_kernel_strip" >&6; }
10142 else
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10144 $as_echo "no" >&6; }
10150 if test "$aros_kernel_strip" = ""; then
10151 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10154 # Objcopy and objdump are not required for the kernel
10155 # toolchain on many architectures.
10156 # So we'll look for them, but not make them strictly required.
10158 if test "$aros_kernel_objcopy" = ""; then
10159 if test "$cross_compiling" = "yes" ; then
10160 # Extract the first word of "${kernel_tool_prefix}objcopy", so it can be a program name with args.
10161 set dummy ${kernel_tool_prefix}objcopy; ac_word=$2
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10163 $as_echo_n "checking for $ac_word... " >&6; }
10164 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10165 $as_echo_n "(cached) " >&6
10166 else
10167 case $aros_kernel_objcopy in
10168 [\\/]* | ?:[\\/]*)
10169 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10173 for as_dir in $PATH
10175 IFS=$as_save_IFS
10176 test -z "$as_dir" && as_dir=.
10177 for ac_exec_ext in '' $ac_executable_extensions; do
10178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10179 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10181 break 2
10183 done
10184 done
10185 IFS=$as_save_IFS
10188 esac
10190 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10191 if test -n "$aros_kernel_objcopy"; then
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10193 $as_echo "$aros_kernel_objcopy" >&6; }
10194 else
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196 $as_echo "no" >&6; }
10200 else
10201 if test "$GCC" = "yes"; then
10202 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10203 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10204 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10206 $as_echo_n "checking for $ac_word... " >&6; }
10207 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10208 $as_echo_n "(cached) " >&6
10209 else
10210 case $aros_kernel_objcopy in
10211 [\\/]* | ?:[\\/]*)
10212 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10216 for as_dir in `dirname $aros_gcc_objcopy`
10218 IFS=$as_save_IFS
10219 test -z "$as_dir" && as_dir=.
10220 for ac_exec_ext in '' $ac_executable_extensions; do
10221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10222 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10224 break 2
10226 done
10227 done
10228 IFS=$as_save_IFS
10231 esac
10233 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10234 if test -n "$aros_kernel_objcopy"; then
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10236 $as_echo "$aros_kernel_objcopy" >&6; }
10237 else
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10244 if test "$aros_kernel_objcopy" = ""; then
10245 # Extract the first word of "objcopy", so it can be a program name with args.
10246 set dummy objcopy; ac_word=$2
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10248 $as_echo_n "checking for $ac_word... " >&6; }
10249 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10250 $as_echo_n "(cached) " >&6
10251 else
10252 case $aros_kernel_objcopy in
10253 [\\/]* | ?:[\\/]*)
10254 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10260 IFS=$as_save_IFS
10261 test -z "$as_dir" && as_dir=.
10262 for ac_exec_ext in '' $ac_executable_extensions; do
10263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10264 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10266 break 2
10268 done
10269 done
10270 IFS=$as_save_IFS
10273 esac
10275 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10276 if test -n "$aros_kernel_objcopy"; then
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10278 $as_echo "$aros_kernel_objcopy" >&6; }
10279 else
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281 $as_echo "no" >&6; }
10287 else
10288 # Extract the first word of "$aros_kernel_objcopy", so it can be a program name with args.
10289 set dummy $aros_kernel_objcopy; ac_word=$2
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10291 $as_echo_n "checking for $ac_word... " >&6; }
10292 if ${ac_cv_path_aros_kernel_objcopy+:} false; then :
10293 $as_echo_n "(cached) " >&6
10294 else
10295 case $aros_kernel_objcopy in
10296 [\\/]* | ?:[\\/]*)
10297 ac_cv_path_aros_kernel_objcopy="$aros_kernel_objcopy" # Let the user override the test with a path.
10300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10301 for as_dir in $PATH
10303 IFS=$as_save_IFS
10304 test -z "$as_dir" && as_dir=.
10305 for ac_exec_ext in '' $ac_executable_extensions; do
10306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10307 ac_cv_path_aros_kernel_objcopy="$as_dir/$ac_word$ac_exec_ext"
10308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10309 break 2
10311 done
10312 done
10313 IFS=$as_save_IFS
10316 esac
10318 aros_kernel_objcopy=$ac_cv_path_aros_kernel_objcopy
10319 if test -n "$aros_kernel_objcopy"; then
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objcopy" >&5
10321 $as_echo "$aros_kernel_objcopy" >&6; }
10322 else
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324 $as_echo "no" >&6; }
10331 if test "$aros_kernel_objdump" = ""; then
10332 if test "$cross_compiling" = "yes" ; then
10333 # Extract the first word of "${kernel_tool_prefix}objdump", so it can be a program name with args.
10334 set dummy ${kernel_tool_prefix}objdump; ac_word=$2
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10336 $as_echo_n "checking for $ac_word... " >&6; }
10337 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10338 $as_echo_n "(cached) " >&6
10339 else
10340 case $aros_kernel_objdump in
10341 [\\/]* | ?:[\\/]*)
10342 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346 for as_dir in $PATH
10348 IFS=$as_save_IFS
10349 test -z "$as_dir" && as_dir=.
10350 for ac_exec_ext in '' $ac_executable_extensions; do
10351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10352 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10354 break 2
10356 done
10357 done
10358 IFS=$as_save_IFS
10361 esac
10363 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10364 if test -n "$aros_kernel_objdump"; then
10365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10366 $as_echo "$aros_kernel_objdump" >&6; }
10367 else
10368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10369 $as_echo "no" >&6; }
10373 else
10374 if test "$GCC" = "yes"; then
10375 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10376 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10377 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10379 $as_echo_n "checking for $ac_word... " >&6; }
10380 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10381 $as_echo_n "(cached) " >&6
10382 else
10383 case $aros_kernel_objdump in
10384 [\\/]* | ?:[\\/]*)
10385 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10389 for as_dir in `dirname $aros_gcc_objdump`
10391 IFS=$as_save_IFS
10392 test -z "$as_dir" && as_dir=.
10393 for ac_exec_ext in '' $ac_executable_extensions; do
10394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10395 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10397 break 2
10399 done
10400 done
10401 IFS=$as_save_IFS
10404 esac
10406 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10407 if test -n "$aros_kernel_objdump"; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10409 $as_echo "$aros_kernel_objdump" >&6; }
10410 else
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10417 if test "$aros_kernel_objdump" = ""; then
10418 # Extract the first word of "objdump", so it can be a program name with args.
10419 set dummy objdump; ac_word=$2
10420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10421 $as_echo_n "checking for $ac_word... " >&6; }
10422 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10423 $as_echo_n "(cached) " >&6
10424 else
10425 case $aros_kernel_objdump in
10426 [\\/]* | ?:[\\/]*)
10427 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10431 for as_dir in $PATH
10433 IFS=$as_save_IFS
10434 test -z "$as_dir" && as_dir=.
10435 for ac_exec_ext in '' $ac_executable_extensions; do
10436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10437 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10439 break 2
10441 done
10442 done
10443 IFS=$as_save_IFS
10446 esac
10448 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10449 if test -n "$aros_kernel_objdump"; then
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10451 $as_echo "$aros_kernel_objdump" >&6; }
10452 else
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10454 $as_echo "no" >&6; }
10460 else
10461 # Extract the first word of "$aros_kernel_objdump", so it can be a program name with args.
10462 set dummy $aros_kernel_objdump; ac_word=$2
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10464 $as_echo_n "checking for $ac_word... " >&6; }
10465 if ${ac_cv_path_aros_kernel_objdump+:} false; then :
10466 $as_echo_n "(cached) " >&6
10467 else
10468 case $aros_kernel_objdump in
10469 [\\/]* | ?:[\\/]*)
10470 ac_cv_path_aros_kernel_objdump="$aros_kernel_objdump" # Let the user override the test with a path.
10473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474 for as_dir in $PATH
10476 IFS=$as_save_IFS
10477 test -z "$as_dir" && as_dir=.
10478 for ac_exec_ext in '' $ac_executable_extensions; do
10479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10480 ac_cv_path_aros_kernel_objdump="$as_dir/$ac_word$ac_exec_ext"
10481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482 break 2
10484 done
10485 done
10486 IFS=$as_save_IFS
10489 esac
10491 aros_kernel_objdump=$ac_cv_path_aros_kernel_objdump
10492 if test -n "$aros_kernel_objdump"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_objdump" >&5
10494 $as_echo "$aros_kernel_objdump" >&6; }
10495 else
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497 $as_echo "no" >&6; }
10503 if test "x${crosstools}" != "xyes" ; then
10504 if test "$aros_kernel_objcopy" = ""; then
10505 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10507 if test "$aros_kernel_objdump" = ""; then
10508 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which target tools" >&5
10514 $as_echo_n "checking which target tools... " >&6; }
10515 if test "$crosstools" = "yes"; then
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_prefix" >&5
10517 $as_echo "$target_tool_prefix" >&6; }
10518 # We are are building AROS crosstools
10519 tmp_tool_prefix="$AROS_CROSSTOOLSDIR/${target_tool_prefix}"
10520 orig_target_cc="${tmp_tool_prefix}gcc${aros_gcc_version}"
10521 orig_target_cxx="${tmp_tool_prefix}g++${aros_gcc_version}"
10522 orig_target_cpp="${tmp_tool_prefix}cpp"
10523 orig_target_ld="${tmp_tool_prefix}ld"
10524 orig_target_as="${tmp_tool_prefix}as"
10525 orig_target_ar="${tmp_tool_prefix}ar"
10526 orig_target_ranlib="${tmp_tool_prefix}ranlib"
10527 orig_target_nm="${tmp_tool_prefix}nm"
10528 orig_target_strip="${tmp_tool_prefix}strip"
10529 orig_target_objcopy="${tmp_tool_prefix}objcopy"
10530 orig_target_objdump="${tmp_tool_prefix}objdump"
10531 else
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernel_tool_prefix" >&5
10533 $as_echo "$kernel_tool_prefix" >&6; }
10534 # We are *not* building AROS crosstools - use the kernel tools
10535 orig_target_cpp="${aros_kernel_cpp}"
10536 if test "$orig_target_cpp" = ""; then
10537 as_fn_error $? "cpp is required to build AROS. Please install and run configure again." "$LINENO" 5
10539 orig_target_cc="${aros_kernel_cc}"
10540 if test "$orig_target_cc" = ""; then
10541 as_fn_error $? "cc is required to build AROS. Please install and run configure again." "$LINENO" 5
10543 orig_target_cxx="${aros_kernel_cxx}"
10544 if test "x$orig_target_cxx" != "x" ; then
10545 if test "$orig_target_cxx" = ""; then
10546 as_fn_error $? "cxx is required to build AROS. Please install and run configure again." "$LINENO" 5
10549 orig_target_ld="${aros_kernel_ld}"
10550 if test "$orig_target_ld" = ""; then
10551 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10553 orig_target_as="${aros_kernel_as}"
10554 if test "$orig_target_as" = ""; then
10555 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
10557 orig_target_ar="${aros_kernel_ar}"
10558 if test "$orig_target_ar" = ""; then
10559 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
10561 orig_target_ranlib="${aros_kernel_ranlib}"
10562 if test "$orig_target_ranlib" = ""; then
10563 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
10565 orig_target_nm="${aros_kernel_nm}"
10566 if test "$orig_target_nm" = ""; then
10567 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
10569 orig_target_strip="${aros_kernel_strip}"
10570 if test "$orig_target_strip" = ""; then
10571 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
10573 orig_target_objcopy="${aros_kernel_objcopy}"
10574 if test "$orig_target_objcopy" = ""; then
10575 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
10577 orig_target_objdump="${aros_kernel_objdump}"
10578 if test "$orig_target_objdump" = ""; then
10579 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
10583 # At this point, all aros_kernel_* and aros_target_*
10584 # tools should be set up correctly
10586 CC="$aros_kernel_cc $kernel_tool_flags"
10587 CPP="$aros_kernel_cpp"
10589 #-----------------------------------------------------------------------------
10591 # Disable pointer-signedness warnings if the compiler recognises the option
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
10594 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
10595 save_cflags="$CFLAGS"
10596 if test "$crosstools" != "yes" ; then
10597 CFLAGS="$CFLAGS -Wno-pointer-sign"
10598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10599 /* end confdefs.h. */
10602 main ()
10606 return 0;
10608 _ACEOF
10609 if ac_fn_c_try_compile "$LINENO"; then :
10610 use_no_sign_warning="yes"
10611 else
10612 use_no_sign_warning="no"
10614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10615 else
10616 # we do know it is supported for the smallest version of gcc we are going to build
10617 # we assume it's also supported by later versions
10618 use_no_sign_warning=yes
10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
10621 $as_echo "$use_no_sign_warning" >&6; }
10622 if test "x-$use_no_sign_warning" = "x-yes" ; then
10623 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
10625 CFLAGS="$save_cflags"
10627 #-----------------------------------------------------------------------------
10629 # Find all the tools we need to compile. This could be cross-compiling
10630 # though! If that is the case we use the GNU form of the target and
10631 # simply add this to the front of the binary name. This is rather simple,
10632 # but it should work under most circumstances.
10634 # The default tools are to use the same as the host, but only if the
10635 # host and target CPU are the same. With GCC this is normally enough.
10638 aros_cc_pre=""
10639 aros_shared_ld="$aros_host_ld"
10641 aros_target_mkdep="$aros_host_mkdep"
10643 # The default tools executables to be linked to.
10644 if test "$rescomp" != ""; then
10646 if test "" = ""; then
10647 if test "$cross_compiling" = "yes" ; then
10648 # Extract the first word of "${kernel_tool_prefix}$rescomp", so it can be a program name with args.
10649 set dummy ${kernel_tool_prefix}$rescomp; ac_word=$2
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651 $as_echo_n "checking for $ac_word... " >&6; }
10652 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 case $aros_kernel_rescomp in
10656 [\\/]* | ?:[\\/]*)
10657 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10661 for as_dir in $PATH
10663 IFS=$as_save_IFS
10664 test -z "$as_dir" && as_dir=.
10665 for ac_exec_ext in '' $ac_executable_extensions; do
10666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10667 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10669 break 2
10671 done
10672 done
10673 IFS=$as_save_IFS
10676 esac
10678 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10679 if test -n "$aros_kernel_rescomp"; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10681 $as_echo "$aros_kernel_rescomp" >&6; }
10682 else
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684 $as_echo "no" >&6; }
10688 else
10689 if test "$GCC" = "yes"; then
10690 aros_gcc_$rescomp=`$CC -print-prog-name=$rescomp`
10691 # Extract the first word of "`basename $aros_gcc_[$rescomp]`", so it can be a program name with args.
10692 set dummy `basename $aros_gcc_$rescomp`; ac_word=$2
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694 $as_echo_n "checking for $ac_word... " >&6; }
10695 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10696 $as_echo_n "(cached) " >&6
10697 else
10698 case $aros_kernel_rescomp in
10699 [\\/]* | ?:[\\/]*)
10700 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10704 for as_dir in `dirname $aros_gcc_$rescomp`
10706 IFS=$as_save_IFS
10707 test -z "$as_dir" && as_dir=.
10708 for ac_exec_ext in '' $ac_executable_extensions; do
10709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10710 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10712 break 2
10714 done
10715 done
10716 IFS=$as_save_IFS
10719 esac
10721 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10722 if test -n "$aros_kernel_rescomp"; then
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10724 $as_echo "$aros_kernel_rescomp" >&6; }
10725 else
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10727 $as_echo "no" >&6; }
10732 if test "$aros_kernel_rescomp" = ""; then
10733 # Extract the first word of "$rescomp", so it can be a program name with args.
10734 set dummy $rescomp; ac_word=$2
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10736 $as_echo_n "checking for $ac_word... " >&6; }
10737 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10738 $as_echo_n "(cached) " >&6
10739 else
10740 case $aros_kernel_rescomp in
10741 [\\/]* | ?:[\\/]*)
10742 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10746 for as_dir in $PATH
10748 IFS=$as_save_IFS
10749 test -z "$as_dir" && as_dir=.
10750 for ac_exec_ext in '' $ac_executable_extensions; do
10751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10752 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10754 break 2
10756 done
10757 done
10758 IFS=$as_save_IFS
10761 esac
10763 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10764 if test -n "$aros_kernel_rescomp"; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10766 $as_echo "$aros_kernel_rescomp" >&6; }
10767 else
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10769 $as_echo "no" >&6; }
10775 else
10776 # Extract the first word of "", so it can be a program name with args.
10777 set dummy ; ac_word=$2
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10779 $as_echo_n "checking for $ac_word... " >&6; }
10780 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
10781 $as_echo_n "(cached) " >&6
10782 else
10783 case $aros_kernel_rescomp in
10784 [\\/]* | ?:[\\/]*)
10785 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10789 for as_dir in $PATH
10791 IFS=$as_save_IFS
10792 test -z "$as_dir" && as_dir=.
10793 for ac_exec_ext in '' $ac_executable_extensions; do
10794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10795 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10797 break 2
10799 done
10800 done
10801 IFS=$as_save_IFS
10804 esac
10806 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10807 if test -n "$aros_kernel_rescomp"; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
10809 $as_echo "$aros_kernel_rescomp" >&6; }
10810 else
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10812 $as_echo "no" >&6; }
10818 if test "$aros_kernel_rescomp" = ""; then
10819 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
10823 # Set up the sources for the symlink farm
10824 if test "$crosstools" = "yes"; then
10825 crosstools_target=tools-crosstools
10826 else
10827 crosstools_cxx_target=tools-crosstools
10830 aros_kernel_cc="$aros_kernel_cc $kernel_tool_flags"
10831 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10834 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10835 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10836 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10837 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10838 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10839 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10840 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10842 # aros_cc_pre is a variable that is added to the front of the compiler name
10843 # in the generated aros-gcc shell script. We need this to enable the cache
10844 # to work across cleaned builds. Also, support DISTCC using the correct
10845 # environment variable.
10848 if test "x${DISTCC}" != "x" ; then
10849 if test "x${CCACHE}" != "x" ; then
10850 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10851 else
10852 aros_cc_pre="${DISTCC} "
10854 else
10855 if test "x${CCACHE}" != "x" ; then
10856 aros_cc_pre="${CCACHE} "
10860 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-"
10862 aros_target_nostdinc_cflags=-nostdinc
10864 aros_target_nostartup_ldflags=-nostartfiles
10866 aros_target_nix_ldflags=-nix
10868 aros_target_detach_ldflags=-detach
10870 aros_target_nostdlib_ldflags=-nostdlib
10873 # Target tools
10874 if test "$crosstools" != "yes"; then
10875 if test "$GCC" = "yes"; then
10876 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10878 else
10879 # We do not know which gcc version we are going to build and what we need to know
10880 # here is different for different versions so this will be set later during the
10881 # build of crosstools.
10882 aros_target_cc_path=@aros_target_cc_path@
10884 aros_target_cpp="${prefix}cpp"
10885 aros_target_cc="${prefix}gcc"
10886 aros_target_cxx="${prefix}g++"
10887 aros_target_as="${prefix}as"
10888 aros_target_ld="${prefix}ld"
10889 aros_target_ar="${prefix}ar $aros_target_ar_flags"
10890 aros_target_objcopy="${prefix}objcopy"
10891 aros_target_objdump="${prefix}objdump"
10892 aros_target_ranlib="${prefix}ranlib $aros_target_ranlib_flags"
10893 aros_target_nm="${prefix}nm $aros_target_nm_flags"
10894 aros_target_strip="${prefix}strip"
10895 aros_plain_nm="${prefix}nm"
10896 aros_plain_ar="${prefix}ar"
10898 if test "$aros_kernel_includes" != "" ; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10900 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10901 if test "$aros_kernel_cc_includes" = "" ; then
10902 # Try to guess where the directory is.
10903 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
10904 if test -d $aros_kernel_cc_includes; then
10905 # Check if there is also an include-fixed directory and add it
10906 # to kernel compiler's include path as it may contain some of
10907 # the headers we need.
10908 if test -d "$aros_kernel_cc_includes"-fixed; then
10909 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
10911 # Check for specific includes directory. Neede for Ubuntu 11.10
10912 if test -d "/usr/include/i386-linux-gnu"; then
10913 aros_kernel_cc_includes+=" -isystem /usr/include/i386-linux-gnu"
10915 else
10916 # The directory doesn't exist, we need to do some more work.
10917 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
10919 # These are the headers we're looking for.
10920 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10921 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10922 zutil.h stdint.h"
10924 dirs=
10925 for h in $headers; do
10926 # Which other headers are needed by each of the above?
10927 deps=$(echo "#include <$h>" | \
10928 $aros_kernel_cc -E -M - 2>/dev/null | \
10929 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10931 # Copy all the needed headers to a directory beneath gendir.
10932 for d in $deps; do
10933 h=$(basename $d)
10934 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
10935 sed -n "s,^.*/include\(/.*\),\1,p")
10936 ! test -d $dir && mkdir -p $dir
10937 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10938 done
10939 done
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10943 $as_echo "$aros_kernel_cc_includes" >&6; }
10944 # Adding -nostdinc to kernel includes as they are always used together.
10945 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10948 if test "$crosstools" != "yes"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10950 $as_echo_n "checking for the target compiler's include path... " >&6; }
10951 if test "$aros_target_cc_includes" = "" ; then
10952 #try to guess where the directory is
10953 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10954 if ! test -d $aros_target_cc_includes; then
10955 #the directory doesn't exist, we need to do some more work
10956 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10958 #these are the headers we're looking for
10959 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10960 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10961 zutil.h"
10963 dirs=
10964 for h in $headers; do
10965 #which other headers each of the above headers needs?
10966 deps=$(echo "#include <$h>" | \
10967 $orig_target_cc -E -M - 2>/dev/null | \
10968 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10970 #copy all the needed headers to a directory beneath gendir
10971 for d in $deps; do
10972 h=$(basename $d)
10973 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10974 sed -n "s,^.*/include\(/.*\),\1,p")
10975 ! test -d $dir && mkdir -p $dir
10976 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10977 done
10978 done
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
10982 $as_echo "$aros_target_cc_includes" >&6; }
10983 else
10984 # We do not know which gcc version we are going to build and what we need to know
10985 # here is different for different versions so this will be set later during the
10986 # build of crosstools.
10987 aros_target_cc_includes=@aros_target_cc_includes@
10991 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10992 # On GCC >= 4.0 -iquote should be used
10995 save_cc="$CC"
10996 save_cflags="$CFLAGS"
10997 CFLAGS="-iquote."
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10999 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11000 if test "x-$crosstools" != "x-yes"; then
11001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11002 /* end confdefs.h. */
11005 main ()
11009 return 0;
11011 _ACEOF
11012 if ac_fn_c_try_compile "$LINENO"; then :
11013 has_iquote="yes"
11014 else
11015 has_iquote="no"
11017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11018 else
11019 # we do know it is supported for the smallest version of gcc we are going to build
11020 # we assume it's also supported by later versions
11021 has_iquote=yes
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11024 $as_echo "$has_iquote" >&6; }
11025 if test "x-$has_iquote" = "x-yes" ; then
11026 host_cflags_iquote=-iquote
11027 host_cflags_iquote_end=
11028 else
11029 host_cflags_iquote=-I
11030 host_cflags_iquote_end=-I-
11032 kernel_cflags_iquote=$host_cflags_iquote
11033 kernel_cflags_iquote_end=$host_cflags_iquote_end
11034 if test "x-$cross_compiling" = "x-yes"; then
11035 CC="$aros_kernel_cc"
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
11037 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
11038 if test "x-$crosstools" != "x-yes"; then
11039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11040 /* end confdefs.h. */
11043 main ()
11047 return 0;
11049 _ACEOF
11050 if ac_fn_c_try_compile "$LINENO"; then :
11051 use_no_stack_protector="yes"
11052 else
11053 use_no_stack_protector="no"
11055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11056 else
11057 # we do know it is supported for the smallest version of gcc we are going to build
11058 # we assume it's also supported by later versions
11059 use_no_stack_protector=yes
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
11062 $as_echo "$use_no_stack_protector" >&6; }
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11064 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11065 if test "x-$crosstools" != "x-yes"; then
11066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11067 /* end confdefs.h. */
11070 main ()
11074 return 0;
11076 _ACEOF
11077 if ac_fn_c_try_compile "$LINENO"; then :
11078 has_iquote="yes"
11079 else
11080 has_iquote="no"
11082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11083 else
11084 # we do know it is supported for the smallest version of gcc we are going to build
11085 # we assume it's also supported by later versions
11086 has_iquote=yes
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11089 $as_echo "$has_iquote" >&6; }
11090 if test "x-$has_iquote" = "x-yes" ; then
11091 kernel_cflags_iquote=-iquote
11092 kernel_cflags_iquote_end=
11093 else
11094 kernel_cflags_iquote=-I
11095 kernel_cflags_iquote_end=-I-
11098 aros_cflags_iquote=$kernel_cflags_iquote
11099 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11100 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11101 CC="$orig_target_cc"
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
11103 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
11104 if test "x-$crosstools" != "x-yes"; then
11105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* end confdefs.h. */
11109 main ()
11113 return 0;
11115 _ACEOF
11116 if ac_fn_c_try_compile "$LINENO"; then :
11117 has_iquote="yes"
11118 else
11119 has_iquote="no"
11121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122 else
11123 # we do know it is supported for the smallest version of gcc we are going to build
11124 # we assume it's also supported by later versions
11125 has_iquote=yes
11127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
11128 $as_echo "$has_iquote" >&6; }
11129 if test "x-$has_iquote" = "x-yes" ; then
11130 aros_cflags_iquote=-iquote
11131 aros_cflags_iquote_end=
11132 else
11133 aros_cflags_iquote=-I
11134 aros_cflags_iquote_end=-I-
11137 if test "x-$use_no_stack_protector" = "x-yes" ; then
11138 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11142 #-----------------------------------------------------------------------------
11144 # Check if the target compiler supports some options used for delinting:
11145 # -Wunused-but-set-variable
11146 # -Warray-bounds
11147 # -Wenum-compare
11148 # -Wstrict-overflow
11149 # -Wformat-security
11151 if test "x-$crosstools" != "x-yes"; then
11152 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11153 CC="$orig_target_cc"
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wunused-but-set-variable" >&5
11156 $as_echo_n "checking whether ${CC} accepts -Wunused-but-set-variable... " >&6; }
11157 CFLAGS=-Wunused-but-set-variable
11158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11159 /* end confdefs.h. */
11162 main ()
11166 return 0;
11168 _ACEOF
11169 if ac_fn_c_try_compile "$LINENO"; then :
11170 aros_unused_but_set_variable="yes"
11171 else
11172 aros_unused_but_set_variable="no"
11174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_unused_but_set_variable" >&5
11176 $as_echo "$aros_unused_but_set_variable" >&6; }
11177 if test "x-$aros_unused_but_set_variable" = "x-yes" ; then
11178 aros_cflags_unused_but_set_variable=-Wno-unused-but-set-variable
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Warray-bounds" >&5
11182 $as_echo_n "checking whether ${CC} accepts -Warray-bounds... " >&6; }
11183 CFLAGS=-Warray-bounds
11184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11185 /* end confdefs.h. */
11188 main ()
11192 return 0;
11194 _ACEOF
11195 if ac_fn_c_try_compile "$LINENO"; then :
11196 aros_array_bounds="yes"
11197 else
11198 aros_array_bounds="no"
11200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_array_bounds" >&5
11202 $as_echo "$aros_array_bounds" >&6; }
11203 if test "x-$aros_array_bounds" = "x-yes" ; then
11204 aros_cflags_array_bounds=-Wno-array-bounds
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wenum-compare" >&5
11208 $as_echo_n "checking whether ${CC} accepts -Wenum-compare... " >&6; }
11209 CFLAGS=-Wenum-compare
11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11214 main ()
11218 return 0;
11220 _ACEOF
11221 if ac_fn_c_try_compile "$LINENO"; then :
11222 aros_enum_compare="yes"
11223 else
11224 aros_enum_compare="no"
11226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enum_compare" >&5
11228 $as_echo "$aros_enum_compare" >&6; }
11229 if test "x-$aros_enum_compare" = "x-yes" ; then
11230 aros_cflags_enum_compare=-Wno-enum-compare
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wstrict-overflow" >&5
11234 $as_echo_n "checking whether ${CC} accepts -Wstrict-overflow... " >&6; }
11235 CFLAGS=-Wstrict-overflow
11236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11240 main ()
11244 return 0;
11246 _ACEOF
11247 if ac_fn_c_try_compile "$LINENO"; then :
11248 aros_strict_overflow="yes"
11249 else
11250 aros_strict_overflow="no"
11252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_strict_overflow" >&5
11254 $as_echo "$aros_strict_overflow" >&6; }
11255 if test "x-$aros_strict_overflow" = "x-yes" ; then
11256 aros_cflags_strict_overflow=-Wno-strict-overflow
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wformat-security" >&5
11260 $as_echo_n "checking whether ${CC} accepts -Wformat-security... " >&6; }
11261 CFLAGS=-Wformat-security
11262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11263 /* end confdefs.h. */
11266 main ()
11270 return 0;
11272 _ACEOF
11273 if ac_fn_c_try_compile "$LINENO"; then :
11274 aros_format_security="yes"
11275 else
11276 aros_format_security="no"
11278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_format_security" >&5
11280 $as_echo "$aros_format_security" >&6; }
11281 if test "x-$aros_format_security" = "x-yes" ; then
11282 aros_cflags_format_security=-Wno-format-security
11284 else
11285 # We do not know which gcc version we are going to build and what we need to know
11286 # here is different for different versions so this will be set later during the
11287 # build of crosstools.
11288 aros_cflags_unused_but_set_variable=@aros_cflags_unused_but_set_variable@
11289 aros_cflags_array_bounds=@aros_cflags_array_bounds@
11290 aros_cflags_enum_compare=@aros_cflags_enum_compare@
11291 aros_cflags_strict_overflow=@aros_cflags_strict_overflow@
11292 aros_cflags_format_security=@aros_cflags_format_security@
11295 #-----------------------------------------------------------------------------
11297 # Check if we can explicitly choose older version of symbol hashing
11299 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11300 CC="$aros_kernel_cc"
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11302 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
11303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11307 main ()
11311 return 0;
11313 _ACEOF
11314 if ac_fn_c_try_link "$LINENO"; then :
11315 use_hash_style="yes"
11316 else
11317 use_hash_style="no"
11319 rm -f core conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
11322 $as_echo "$use_hash_style" >&6; }
11323 if test "x-$use_hash_style" = "x-yes" ; then
11324 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11326 CC="$save_cc"
11327 CFLAGS="$save_cflags"
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
11338 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
11340 # Check whether --with-resolution was given.
11341 if test "${with_resolution+set}" = set; then :
11342 withval=$with_resolution; resolution=$withval
11343 else
11344 resolution=none
11347 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11348 if test "$resolution" = "yes" ; then
11349 resolution="none"
11351 if test "$resolution" = "no" ; then
11352 resolution="none"
11354 if test "$resolution" != "none" ; then
11355 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11356 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11357 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11360 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11361 aros_cv_default_wbwidth=$aros_default_wbwidth
11362 aros_cv_default_wbheight=$aros_default_wbheight
11363 aros_cv_default_wbdepth=$aros_default_wbdepth
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
11366 $as_echo_n "checking if serial debug is enabled... " >&6; }
11368 # Check whether --with-serial-debug was given.
11369 if test "${with_serial_debug+set}" = set; then :
11370 withval=$with_serial_debug; serial_debug=$withval
11371 else
11372 serial_debug=none
11375 if test "$aros_serial_debug" = 0 ; then
11376 serial_debug_forced=""
11377 if test "$serial_debug" = "yes" ; then
11378 serial_debug="1"
11380 if test "$serial_debug" = "no" ; then
11381 serial_debug="none"
11383 else
11384 serial_debug_forced="(forced)"
11385 serial_debug=$aros_serial_debug
11387 if test "$serial_debug" != "none" ; then
11388 aros_serial_debug=$serial_debug
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
11390 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
11391 else
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11393 $as_echo "no" >&6; }
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
11397 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
11398 # Check whether --enable-palm_debug_hack was given.
11399 if test "${enable_palm_debug_hack+set}" = set; then :
11400 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11401 else
11402 palm_debug_hack="no"
11405 if test "$palm_debug_hack" = "yes" ; then
11406 aros_palm_debug_hack="1"
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
11409 $as_echo "$palm_debug_hack" >&6; }
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
11412 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
11413 # Check whether --enable-usb30_code was given.
11414 if test "${enable_usb30_code+set}" = set; then :
11415 enableval=$enable_usb30_code; usb30_code="yes"
11416 else
11417 usb30_code="no"
11420 if test "$usb30_code" = "yes" ; then
11421 aros_config_cflags="$aros_config_cflags -DAROS_USB30_CODE"
11422 aros_kernel_cflags="$aros_kernel_cflags -DAROS_USB30_CODE"
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
11425 $as_echo "$usb30_code" >&6; }
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
11428 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
11429 # Check whether --enable-nesting_supervisor was given.
11430 if test "${enable_nesting_supervisor+set}" = set; then :
11431 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11432 else
11433 nesting_supervisor="no"
11436 if test "$nesting_supervisor" = "yes" ; then
11437 aros_nesting_supervisor="1"
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
11440 $as_echo "$nesting_supervisor" >&6; }
11442 if test "$aros_enable_mmu" = "" ; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
11444 $as_echo_n "checking if MMU support is enabled... " >&6; }
11445 # Check whether --enable-mmu was given.
11446 if test "${enable_mmu+set}" = set; then :
11447 enableval=$enable_mmu; aros_enable_mmu=$enableval
11448 else
11449 aros_enable_mmu="yes"
11452 if test "$aros_enable_mmu" = "" ; then
11453 aros_enable_mmu="yes"
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
11456 $as_echo "$aros_enable_mmu" >&6; }
11458 if test "$aros_enable_mmu" = "no" ; then
11459 aros_enable_mmu="0"
11460 else
11461 aros_enable_mmu="1"
11465 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11467 if test "x-$need_dlopen" != "x-no" ; then
11468 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11469 if test "x$ac_cv_func_dlopen" = xyes; then :
11470 have_dl="yes"
11471 else
11472 have_dl="no"
11475 if test "x-$have_dl" = "x-no" ; then
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11477 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11478 if ${ac_cv_lib_dl_dlopen+:} false; then :
11479 $as_echo_n "(cached) " >&6
11480 else
11481 ac_check_lib_save_LIBS=$LIBS
11482 LIBS="-ldl $LIBS"
11483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11484 /* end confdefs.h. */
11486 /* Override any GCC internal prototype to avoid an error.
11487 Use char because int might match the return type of a GCC
11488 builtin and then its argument prototype would still apply. */
11489 #ifdef __cplusplus
11490 extern "C"
11491 #endif
11492 char dlopen ();
11494 main ()
11496 return dlopen ();
11498 return 0;
11500 _ACEOF
11501 if ac_fn_c_try_link "$LINENO"; then :
11502 ac_cv_lib_dl_dlopen=yes
11503 else
11504 ac_cv_lib_dl_dlopen=no
11506 rm -f core conftest.err conftest.$ac_objext \
11507 conftest$ac_exeext conftest.$ac_ext
11508 LIBS=$ac_check_lib_save_LIBS
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11511 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11512 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11513 have_dl="yes"
11514 aros_host_ldflags="$aros_host_ldflags -ldl"
11515 else
11516 have_dl="no"
11520 if test "x-$have_dl" = "x-no" ; then
11521 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
11526 # Check whether --enable-x11_hidd was given.
11527 if test "${enable_x11_hidd+set}" = set; then :
11528 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11529 else
11530 x11_hidd="$need_x11"
11533 case "x-$x11_hidd" in
11534 x-yes|x-no|x-auto) ;;
11535 *) x11_hidd="$need_x11" ;;
11536 esac
11538 ENABLE_X11=0
11540 if test "x-$x11_hidd" != "x-no" ; then
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
11543 $as_echo_n "checking for X... " >&6; }
11546 # Check whether --with-x was given.
11547 if test "${with_x+set}" = set; then :
11548 withval=$with_x;
11551 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11552 if test "x$with_x" = xno; then
11553 # The user explicitly disabled X.
11554 have_x=disabled
11555 else
11556 case $x_includes,$x_libraries in #(
11557 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
11558 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
11559 $as_echo_n "(cached) " >&6
11560 else
11561 # One or both of the vars are not set, and there is no cached value.
11562 ac_x_includes=no ac_x_libraries=no
11563 rm -f -r conftest.dir
11564 if mkdir conftest.dir; then
11565 cd conftest.dir
11566 cat >Imakefile <<'_ACEOF'
11567 incroot:
11568 @echo incroot='${INCROOT}'
11569 usrlibdir:
11570 @echo usrlibdir='${USRLIBDIR}'
11571 libdir:
11572 @echo libdir='${LIBDIR}'
11573 _ACEOF
11574 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11575 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
11576 for ac_var in incroot usrlibdir libdir; do
11577 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11578 done
11579 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11580 for ac_extension in a so sl dylib la dll; do
11581 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11582 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11583 ac_im_usrlibdir=$ac_im_libdir; break
11585 done
11586 # Screen out bogus values from the imake configuration. They are
11587 # bogus both because they are the default anyway, and because
11588 # using them would break gcc on systems where it needs fixed includes.
11589 case $ac_im_incroot in
11590 /usr/include) ac_x_includes= ;;
11591 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11592 esac
11593 case $ac_im_usrlibdir in
11594 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
11595 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11596 esac
11598 cd ..
11599 rm -f -r conftest.dir
11602 # Standard set of common directories for X headers.
11603 # Check X11 before X11Rn because it is often a symlink to the current release.
11604 ac_x_header_dirs='
11605 /usr/X11/include
11606 /usr/X11R7/include
11607 /usr/X11R6/include
11608 /usr/X11R5/include
11609 /usr/X11R4/include
11611 /usr/include/X11
11612 /usr/include/X11R7
11613 /usr/include/X11R6
11614 /usr/include/X11R5
11615 /usr/include/X11R4
11617 /usr/local/X11/include
11618 /usr/local/X11R7/include
11619 /usr/local/X11R6/include
11620 /usr/local/X11R5/include
11621 /usr/local/X11R4/include
11623 /usr/local/include/X11
11624 /usr/local/include/X11R7
11625 /usr/local/include/X11R6
11626 /usr/local/include/X11R5
11627 /usr/local/include/X11R4
11629 /usr/X386/include
11630 /usr/x386/include
11631 /usr/XFree86/include/X11
11633 /usr/include
11634 /usr/local/include
11635 /usr/unsupported/include
11636 /usr/athena/include
11637 /usr/local/x11r5/include
11638 /usr/lpp/Xamples/include
11640 /usr/openwin/include
11641 /usr/openwin/share/include'
11643 if test "$ac_x_includes" = no; then
11644 # Guess where to find include files, by looking for Xlib.h.
11645 # First, try using that file with no special directory specified.
11646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11647 /* end confdefs.h. */
11648 #include <X11/Xlib.h>
11649 _ACEOF
11650 if ac_fn_c_try_cpp "$LINENO"; then :
11651 # We can compile using X headers with no special include directory.
11652 ac_x_includes=
11653 else
11654 for ac_dir in $ac_x_header_dirs; do
11655 if test -r "$ac_dir/X11/Xlib.h"; then
11656 ac_x_includes=$ac_dir
11657 break
11659 done
11661 rm -f conftest.err conftest.i conftest.$ac_ext
11662 fi # $ac_x_includes = no
11664 if test "$ac_x_libraries" = no; then
11665 # Check for the libraries.
11666 # See if we find them without any special options.
11667 # Don't add to $LIBS permanently.
11668 ac_save_LIBS=$LIBS
11669 LIBS="-lX11 $LIBS"
11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11672 #include <X11/Xlib.h>
11674 main ()
11676 XrmInitialize ()
11678 return 0;
11680 _ACEOF
11681 if ac_fn_c_try_link "$LINENO"; then :
11682 LIBS=$ac_save_LIBS
11683 # We can link X programs with no special library path.
11684 ac_x_libraries=
11685 else
11686 LIBS=$ac_save_LIBS
11687 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11689 # Don't even attempt the hair of trying to link an X program!
11690 for ac_extension in a so sl dylib la dll; do
11691 if test -r "$ac_dir/libX11.$ac_extension"; then
11692 ac_x_libraries=$ac_dir
11693 break 2
11695 done
11696 done
11698 rm -f core conftest.err conftest.$ac_objext \
11699 conftest$ac_exeext conftest.$ac_ext
11700 fi # $ac_x_libraries = no
11702 case $ac_x_includes,$ac_x_libraries in #(
11703 no,* | *,no | *\'*)
11704 # Didn't find X, or a directory has "'" in its name.
11705 ac_cv_have_x="have_x=no";; #(
11707 # Record where we found X for the cache.
11708 ac_cv_have_x="have_x=yes\
11709 ac_x_includes='$ac_x_includes'\
11710 ac_x_libraries='$ac_x_libraries'"
11711 esac
11713 ;; #(
11714 *) have_x=yes;;
11715 esac
11716 eval "$ac_cv_have_x"
11717 fi # $with_x != no
11719 if test "$have_x" != yes; then
11720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
11721 $as_echo "$have_x" >&6; }
11722 no_x=yes
11723 else
11724 # If each of the values was on the command line, it overrides each guess.
11725 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11726 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11727 # Update the cache value to reflect the command line values.
11728 ac_cv_have_x="have_x=yes\
11729 ac_x_includes='$x_includes'\
11730 ac_x_libraries='$x_libraries'"
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
11732 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
11736 x_cflags=
11737 for path in $x_libraries
11739 x_cflags="$x_cflags -L$path"
11740 done
11742 for path in $x_includes
11744 x_cflags="$x_cflags -I$path"
11745 done
11747 if test "x-$no_x" = "x-yes" ; then
11749 if test "x-$x11_hidd" != "x-auto" ; then
11750 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
11753 else
11754 x11_hidd_target=kernel-x11gfx-kobj
11755 ENABLE_X11=1
11757 # Check whether --enable-x11_shm was given.
11758 if test "${enable_x11_shm+set}" = set; then :
11759 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11760 else
11761 x11_hidd_shm="auto"
11764 case "x-$x11_hidd_shm" in
11765 x-yes|x-no|x-auto) ;;
11766 *) x11_hidd_shm="auto" ;;
11767 esac
11769 have_xshm=no
11771 if test "x-$x11_hidd_shm" != "x-no" ; then
11773 for ac_header in sys/ipc.h
11774 do :
11775 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
11776 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
11777 cat >>confdefs.h <<_ACEOF
11778 #define HAVE_SYS_IPC_H 1
11779 _ACEOF
11783 done
11785 for ac_header in sys/shm.h
11786 do :
11787 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
11788 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
11789 cat >>confdefs.h <<_ACEOF
11790 #define HAVE_SYS_SHM_H 1
11791 _ACEOF
11795 done
11798 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11800 save_cflags="$CFLAGS"
11801 CFLAGS="$CFLAGS $x_cflags"
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
11803 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
11804 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
11805 $as_echo_n "(cached) " >&6
11806 else
11807 ac_check_lib_save_LIBS=$LIBS
11808 LIBS="-lXext $LIBS"
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11812 /* Override any GCC internal prototype to avoid an error.
11813 Use char because int might match the return type of a GCC
11814 builtin and then its argument prototype would still apply. */
11815 #ifdef __cplusplus
11816 extern "C"
11817 #endif
11818 char XShmQueryExtension ();
11820 main ()
11822 return XShmQueryExtension ();
11824 return 0;
11826 _ACEOF
11827 if ac_fn_c_try_link "$LINENO"; then :
11828 ac_cv_lib_Xext_XShmQueryExtension=yes
11829 else
11830 ac_cv_lib_Xext_XShmQueryExtension=no
11832 rm -f core conftest.err conftest.$ac_objext \
11833 conftest$ac_exeext conftest.$ac_ext
11834 LIBS=$ac_check_lib_save_LIBS
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11837 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11838 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
11839 have_xshm=yes
11842 CFLAGS="$save_cflags"
11846 if test "x-$have_xshm" = "x-yes" ; then
11847 DO_XSHM_SUPPORT="1"
11848 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11849 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
11850 else
11851 DO_XSHM_SUPPORT="0"
11855 # Check whether --enable-x11_vidmode was given.
11856 if test "${enable_x11_vidmode+set}" = set; then :
11857 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11858 else
11859 x11_hidd_vidmode="auto"
11862 case "x-$x11_hidd_vidmode" in
11863 x-yes|x-no|x-auto) ;;
11864 *) x11_hidd_vidmode="auto" ;;
11865 esac
11867 have_vidmode=no
11869 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11871 save_cflags="$CFLAGS"
11872 CFLAGS="$CFLAGS $x_cflags"
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11874 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11875 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
11876 $as_echo_n "(cached) " >&6
11877 else
11878 ac_check_lib_save_LIBS=$LIBS
11879 LIBS="-lXxf86vm $LIBS"
11880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11881 /* end confdefs.h. */
11883 /* Override any GCC internal prototype to avoid an error.
11884 Use char because int might match the return type of a GCC
11885 builtin and then its argument prototype would still apply. */
11886 #ifdef __cplusplus
11887 extern "C"
11888 #endif
11889 char XF86VidModeQueryExtension ();
11891 main ()
11893 return XF86VidModeQueryExtension ();
11895 return 0;
11897 _ACEOF
11898 if ac_fn_c_try_link "$LINENO"; then :
11899 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11900 else
11901 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11903 rm -f core conftest.err conftest.$ac_objext \
11904 conftest$ac_exeext conftest.$ac_ext
11905 LIBS=$ac_check_lib_save_LIBS
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11908 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11909 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
11910 have_vidmode=yes
11913 CFLAGS="$save_cflags"
11916 if test "x-$have_vidmode" = "x-yes" ; then
11917 DO_VIDMODE_SUPPORT="1"
11918 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11919 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11920 else
11921 DO_VIDMODE_SUPPORT="0"
11925 aros_host_x11_includes=$x_includes
11926 aros_host_x11_libdirs=$x_libraries
11930 # Check whether --enable-sdl_hidd was given.
11931 if test "${enable_sdl_hidd+set}" = set; then :
11932 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11933 else
11934 sdl_hidd="auto"
11937 case "x-$sdl_hidd" in
11938 x-yes|x-no|x-auto) ;;
11939 *) sdl_hidd="auto" ;;
11940 esac
11942 if test "x-$sdl_hidd" != "x-no" ; then
11945 # Check whether --with-sdl-prefix was given.
11946 if test "${with_sdl_prefix+set}" = set; then :
11947 withval=$with_sdl_prefix; sdl_prefix="$withval"
11948 else
11949 sdl_prefix=""
11953 # Check whether --with-sdl-exec-prefix was given.
11954 if test "${with_sdl_exec_prefix+set}" = set; then :
11955 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11956 else
11957 sdl_exec_prefix=""
11960 # Check whether --enable-sdltest was given.
11961 if test "${enable_sdltest+set}" = set; then :
11962 enableval=$enable_sdltest;
11963 else
11964 enable_sdltest=yes
11968 if test x$sdl_exec_prefix != x ; then
11969 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11970 if test x${SDL_CONFIG+set} != xset ; then
11971 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11974 if test x$sdl_prefix != x ; then
11975 sdl_args="$sdl_args --prefix=$sdl_prefix"
11976 if test x${SDL_CONFIG+set} != xset ; then
11977 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11981 if test "x$prefix" != xNONE; then
11982 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11984 # Extract the first word of "sdl-config", so it can be a program name with args.
11985 set dummy sdl-config; ac_word=$2
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if ${ac_cv_path_SDL_CONFIG+:} false; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 case $SDL_CONFIG in
11992 [\\/]* | ?:[\\/]*)
11993 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11997 for as_dir in $PATH
11999 IFS=$as_save_IFS
12000 test -z "$as_dir" && as_dir=.
12001 for ac_exec_ext in '' $ac_executable_extensions; do
12002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12003 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12005 break 2
12007 done
12008 done
12009 IFS=$as_save_IFS
12011 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12013 esac
12015 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12016 if test -n "$SDL_CONFIG"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
12018 $as_echo "$SDL_CONFIG" >&6; }
12019 else
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12025 min_sdl_version=1.2.10
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
12027 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
12028 no_sdl=""
12029 if test "$SDL_CONFIG" = "no" ; then
12030 no_sdl=yes
12031 else
12032 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12033 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12035 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12036 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12037 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12038 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12039 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12040 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12041 if test "x$enable_sdltest" = "xyes" ; then
12042 ac_save_CFLAGS="$CFLAGS"
12043 ac_save_CXXFLAGS="$CXXFLAGS"
12044 ac_save_LIBS="$LIBS"
12045 CFLAGS="$CFLAGS $SDL_CFLAGS"
12046 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12047 LIBS="$LIBS $SDL_LIBS"
12048 rm -f conf.sdltest
12049 if test "$cross_compiling" = yes; then :
12050 echo $ac_n "cross compiling; assumed OK... $ac_c"
12051 else
12052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12053 /* end confdefs.h. */
12055 #include <stdio.h>
12056 #include <stdlib.h>
12057 #include <string.h>
12058 #include "SDL.h"
12060 char*
12061 my_strdup (char *str)
12063 char *new_str;
12065 if (str)
12067 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12068 strcpy (new_str, str);
12070 else
12071 new_str = NULL;
12073 return new_str;
12076 int main (int argc, char *argv[])
12078 int major, minor, micro;
12079 char *tmp_version;
12081 /* This hangs on some systems (?)
12082 system ("touch conf.sdltest");
12084 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12086 /* HP/UX 9 (%@#!) writes to sscanf strings */
12087 tmp_version = my_strdup("$min_sdl_version");
12088 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12089 printf("%s, bad version string\n", "$min_sdl_version");
12090 exit(1);
12093 if (($sdl_major_version > major) ||
12094 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12095 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12097 return 0;
12099 else
12101 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12102 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12103 printf("*** best to upgrade to the required version.\n");
12104 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12105 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12106 printf("*** config.cache before re-running configure\n");
12107 return 1;
12112 _ACEOF
12113 if ac_fn_c_try_run "$LINENO"; then :
12115 else
12116 no_sdl=yes
12118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12119 conftest.$ac_objext conftest.beam conftest.$ac_ext
12122 CFLAGS="$ac_save_CFLAGS"
12123 CXXFLAGS="$ac_save_CXXFLAGS"
12124 LIBS="$ac_save_LIBS"
12127 if test "x$no_sdl" = x ; then
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12129 $as_echo "yes" >&6; }
12130 have_sdl="yes"
12131 else
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12133 $as_echo "no" >&6; }
12134 if test "$SDL_CONFIG" = "no" ; then
12135 echo "*** The sdl-config script installed by SDL could not be found"
12136 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12137 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12138 echo "*** full path to sdl-config."
12139 else
12140 if test -f conf.sdltest ; then
12142 else
12143 echo "*** Could not run SDL test program, checking why..."
12144 CFLAGS="$CFLAGS $SDL_CFLAGS"
12145 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12146 LIBS="$LIBS $SDL_LIBS"
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12150 #include <stdio.h>
12151 #include "SDL.h"
12153 int main(int argc, char *argv[])
12154 { return 0; }
12155 #undef main
12156 #define main K_and_R_C_main
12159 main ()
12161 return 0;
12163 return 0;
12165 _ACEOF
12166 if ac_fn_c_try_link "$LINENO"; then :
12167 echo "*** The test program compiled, but did not run. This usually means"
12168 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12169 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12170 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12171 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12172 echo "*** is required on your system"
12173 echo "***"
12174 echo "*** If you have an old version installed, it is best to remove it, although"
12175 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12176 else
12177 echo "*** The test program failed to compile or link. See the file config.log for the"
12178 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12179 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12180 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12182 rm -f core conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12184 CFLAGS="$ac_save_CFLAGS"
12185 CXXFLAGS="$ac_save_CXXFLAGS"
12186 LIBS="$ac_save_LIBS"
12189 SDL_CFLAGS=""
12190 SDL_LIBS=""
12191 have_sdl="no"
12195 rm -f conf.sdltest
12198 if test "x-$have_sdl" != "x-yes" ; then
12200 if test "x-$sdl_hidd" != "x-auto" ; then
12201 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
12204 else
12205 sdl_hidd_target=kernel-hidd-sdl
12206 aros_host_sdl_cflags=SDL_CFLAGS
12207 aros_host_sdl_libs=SDL_LIBS
12211 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
12212 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
12217 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
12218 oss_library_target=workbench-libs-oss-unix
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
12224 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
12225 # Check whether --enable-dbus was given.
12226 if test "${enable_dbus+set}" = set; then :
12227 enableval=$enable_dbus; dbus="yes"
12228 else
12229 dbus="no"
12232 if test "$dbus" = "yes" ; then
12233 ENABLE_DBUS=1
12234 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12235 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12236 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12237 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12238 else
12239 ENABLE_DBUS=0
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
12242 $as_echo "$dbus" >&6; }
12244 if test "$use_kernel_cc_wrapper" = "yes" ; then
12245 aros_kernel_cc="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf-gcc"
12248 if test "${crosstools}" != "yes" ; then
12249 aros_target_toolchain=no
12250 else
12251 aros_target_toolchain=yes
12255 # Generic
12267 # Compatability with other Amiga-like operation systems
12270 # Host related
12298 # Target Related
12362 # Delinting target compiler flags
12369 # Graphics Related
12386 # Native version related
12389 # Palm native version related
12392 # USB3.0 code
12395 # Unix/Hosted version related
12398 # MMU related
12401 # Apple iOS related
12406 # Android related
12410 # DBUS related
12417 #X11 related
12420 # Debug related
12426 # Collect-aros stuff: "-ius" to ignore undefined symbols
12429 # C compiler related
12432 case "$aros_flavour" in
12433 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12434 aros_flavour="emulation" ;;
12435 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12436 aros_flavour="emulation" ;;
12437 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12438 aros_flavour="standalone";;
12439 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12440 aros_flavour="standalone";;
12441 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12442 aros_flavour="native" ;;
12443 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12444 aros_flavour="native" ;;
12445 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12446 aros_flavour="linklib" ;;
12447 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12448 aros_flavour="palmnative" ;;
12449 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12450 aros_flavour="mac68knative" ;;
12451 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12452 aros_flavour="ppcnative" ;;
12453 esac
12455 if test ! -d ${aros_inc_dir} ; then
12456 ${MKDIR} ${aros_inc_dir}
12458 if test ! -d ${aros_geninc_dir} ; then
12459 ${MKDIR} ${aros_geninc_dir}
12461 if test ! -d ${aros_hostcfg_dir} ; then
12462 ${MKDIR} ${aros_hostcfg_dir}
12464 if test ! -d ${aros_targetcfg_dir} ; then
12465 ${MKDIR} ${aros_targetcfg_dir}
12467 if test ! -d ${aros_tools_dir} ; then
12468 ${MKDIR} ${aros_tools_dir}
12470 if test ! -d ${aros_scripts_dir} ; then
12471 ${MKDIR} ${aros_scripts_dir}
12474 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12477 ac_config_commands="$ac_config_commands compiler_executable"
12479 ac_config_commands="$ac_config_commands genmf_executable"
12482 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"
12485 cat >confcache <<\_ACEOF
12486 # This file is a shell script that caches the results of configure
12487 # tests run on this system so they can be shared between configure
12488 # scripts and configure runs, see configure's option --config-cache.
12489 # It is not useful on other systems. If it contains results you don't
12490 # want to keep, you may remove or edit it.
12492 # config.status only pays attention to the cache file if you give it
12493 # the --recheck option to rerun configure.
12495 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12496 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12497 # following values.
12499 _ACEOF
12501 # The following way of writing the cache mishandles newlines in values,
12502 # but we know of no workaround that is simple, portable, and efficient.
12503 # So, we kill variables containing newlines.
12504 # Ultrix sh set writes to stderr and can't be redirected directly,
12505 # and sets the high bit in the cache file unless we assign to the vars.
12507 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12508 eval ac_val=\$$ac_var
12509 case $ac_val in #(
12510 *${as_nl}*)
12511 case $ac_var in #(
12512 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12513 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12514 esac
12515 case $ac_var in #(
12516 _ | IFS | as_nl) ;; #(
12517 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12518 *) { eval $ac_var=; unset $ac_var;} ;;
12519 esac ;;
12520 esac
12521 done
12523 (set) 2>&1 |
12524 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12525 *${as_nl}ac_space=\ *)
12526 # `set' does not quote correctly, so add quotes: double-quote
12527 # substitution turns \\\\ into \\, and sed turns \\ into \.
12528 sed -n \
12529 "s/'/'\\\\''/g;
12530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12531 ;; #(
12533 # `set' quotes correctly as required by POSIX, so do not add quotes.
12534 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12536 esac |
12537 sort
12539 sed '
12540 /^ac_cv_env_/b end
12541 t clear
12542 :clear
12543 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12544 t end
12545 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12546 :end' >>confcache
12547 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12548 if test -w "$cache_file"; then
12549 if test "x$cache_file" != "x/dev/null"; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12551 $as_echo "$as_me: updating cache $cache_file" >&6;}
12552 if test ! -f "$cache_file" || test -h "$cache_file"; then
12553 cat confcache >"$cache_file"
12554 else
12555 case $cache_file in #(
12556 */* | ?:*)
12557 mv -f confcache "$cache_file"$$ &&
12558 mv -f "$cache_file"$$ "$cache_file" ;; #(
12560 mv -f confcache "$cache_file" ;;
12561 esac
12564 else
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12566 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12569 rm -f confcache
12571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12572 # Let make expand exec_prefix.
12573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12575 DEFS=-DHAVE_CONFIG_H
12577 ac_libobjs=
12578 ac_ltlibobjs=
12580 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12581 # 1. Remove the extension, and $U if already installed.
12582 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12583 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12584 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12585 # will be set to the directory where LIBOBJS objects are built.
12586 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12587 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12588 done
12589 LIBOBJS=$ac_libobjs
12591 LTLIBOBJS=$ac_ltlibobjs
12595 : "${CONFIG_STATUS=./config.status}"
12596 ac_write_fail=0
12597 ac_clean_files_save=$ac_clean_files
12598 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12600 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12601 as_write_fail=0
12602 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12603 #! $SHELL
12604 # Generated by $as_me.
12605 # Run this file to recreate the current configuration.
12606 # Compiler output produced by configure, useful for debugging
12607 # configure, is in config.log if it exists.
12609 debug=false
12610 ac_cs_recheck=false
12611 ac_cs_silent=false
12613 SHELL=\${CONFIG_SHELL-$SHELL}
12614 export SHELL
12615 _ASEOF
12616 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12617 ## -------------------- ##
12618 ## M4sh Initialization. ##
12619 ## -------------------- ##
12621 # Be more Bourne compatible
12622 DUALCASE=1; export DUALCASE # for MKS sh
12623 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12624 emulate sh
12625 NULLCMD=:
12626 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12627 # is contrary to our usage. Disable this feature.
12628 alias -g '${1+"$@"}'='"$@"'
12629 setopt NO_GLOB_SUBST
12630 else
12631 case `(set -o) 2>/dev/null` in #(
12632 *posix*) :
12633 set -o posix ;; #(
12634 *) :
12636 esac
12640 as_nl='
12642 export as_nl
12643 # Printing a long string crashes Solaris 7 /usr/bin/printf.
12644 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12645 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12646 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12647 # Prefer a ksh shell builtin over an external printf program on Solaris,
12648 # but without wasting forks for bash or zsh.
12649 if test -z "$BASH_VERSION$ZSH_VERSION" \
12650 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12651 as_echo='print -r --'
12652 as_echo_n='print -rn --'
12653 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12654 as_echo='printf %s\n'
12655 as_echo_n='printf %s'
12656 else
12657 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12658 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12659 as_echo_n='/usr/ucb/echo -n'
12660 else
12661 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12662 as_echo_n_body='eval
12663 arg=$1;
12664 case $arg in #(
12665 *"$as_nl"*)
12666 expr "X$arg" : "X\\(.*\\)$as_nl";
12667 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12668 esac;
12669 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12671 export as_echo_n_body
12672 as_echo_n='sh -c $as_echo_n_body as_echo'
12674 export as_echo_body
12675 as_echo='sh -c $as_echo_body as_echo'
12678 # The user is always right.
12679 if test "${PATH_SEPARATOR+set}" != set; then
12680 PATH_SEPARATOR=:
12681 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12682 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12683 PATH_SEPARATOR=';'
12688 # IFS
12689 # We need space, tab and new line, in precisely that order. Quoting is
12690 # there to prevent editors from complaining about space-tab.
12691 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12692 # splitting by setting IFS to empty value.)
12693 IFS=" "" $as_nl"
12695 # Find who we are. Look in the path if we contain no directory separator.
12696 as_myself=
12697 case $0 in #((
12698 *[\\/]* ) as_myself=$0 ;;
12699 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12700 for as_dir in $PATH
12702 IFS=$as_save_IFS
12703 test -z "$as_dir" && as_dir=.
12704 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12705 done
12706 IFS=$as_save_IFS
12709 esac
12710 # We did not find ourselves, most probably we were run as `sh COMMAND'
12711 # in which case we are not to be found in the path.
12712 if test "x$as_myself" = x; then
12713 as_myself=$0
12715 if test ! -f "$as_myself"; then
12716 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12717 exit 1
12720 # Unset variables that we do not need and which cause bugs (e.g. in
12721 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12722 # suppresses any "Segmentation fault" message there. '((' could
12723 # trigger a bug in pdksh 5.2.14.
12724 for as_var in BASH_ENV ENV MAIL MAILPATH
12725 do eval test x\${$as_var+set} = xset \
12726 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12727 done
12728 PS1='$ '
12729 PS2='> '
12730 PS4='+ '
12732 # NLS nuisances.
12733 LC_ALL=C
12734 export LC_ALL
12735 LANGUAGE=C
12736 export LANGUAGE
12738 # CDPATH.
12739 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12742 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12743 # ----------------------------------------
12744 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12745 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12746 # script with STATUS, using 1 if that was 0.
12747 as_fn_error ()
12749 as_status=$1; test $as_status -eq 0 && as_status=1
12750 if test "$4"; then
12751 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12752 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12754 $as_echo "$as_me: error: $2" >&2
12755 as_fn_exit $as_status
12756 } # as_fn_error
12759 # as_fn_set_status STATUS
12760 # -----------------------
12761 # Set $? to STATUS, without forking.
12762 as_fn_set_status ()
12764 return $1
12765 } # as_fn_set_status
12767 # as_fn_exit STATUS
12768 # -----------------
12769 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12770 as_fn_exit ()
12772 set +e
12773 as_fn_set_status $1
12774 exit $1
12775 } # as_fn_exit
12777 # as_fn_unset VAR
12778 # ---------------
12779 # Portably unset VAR.
12780 as_fn_unset ()
12782 { eval $1=; unset $1;}
12784 as_unset=as_fn_unset
12785 # as_fn_append VAR VALUE
12786 # ----------------------
12787 # Append the text in VALUE to the end of the definition contained in VAR. Take
12788 # advantage of any shell optimizations that allow amortized linear growth over
12789 # repeated appends, instead of the typical quadratic growth present in naive
12790 # implementations.
12791 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12792 eval 'as_fn_append ()
12794 eval $1+=\$2
12796 else
12797 as_fn_append ()
12799 eval $1=\$$1\$2
12801 fi # as_fn_append
12803 # as_fn_arith ARG...
12804 # ------------------
12805 # Perform arithmetic evaluation on the ARGs, and store the result in the
12806 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12807 # must be portable across $(()) and expr.
12808 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12809 eval 'as_fn_arith ()
12811 as_val=$(( $* ))
12813 else
12814 as_fn_arith ()
12816 as_val=`expr "$@" || test $? -eq 1`
12818 fi # as_fn_arith
12821 if expr a : '\(a\)' >/dev/null 2>&1 &&
12822 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12823 as_expr=expr
12824 else
12825 as_expr=false
12828 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12829 as_basename=basename
12830 else
12831 as_basename=false
12834 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12835 as_dirname=dirname
12836 else
12837 as_dirname=false
12840 as_me=`$as_basename -- "$0" ||
12841 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12842 X"$0" : 'X\(//\)$' \| \
12843 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12844 $as_echo X/"$0" |
12845 sed '/^.*\/\([^/][^/]*\)\/*$/{
12846 s//\1/
12849 /^X\/\(\/\/\)$/{
12850 s//\1/
12853 /^X\/\(\/\).*/{
12854 s//\1/
12857 s/.*/./; q'`
12859 # Avoid depending upon Character Ranges.
12860 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12861 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12862 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12863 as_cr_digits='0123456789'
12864 as_cr_alnum=$as_cr_Letters$as_cr_digits
12866 ECHO_C= ECHO_N= ECHO_T=
12867 case `echo -n x` in #(((((
12868 -n*)
12869 case `echo 'xy\c'` in
12870 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12871 xy) ECHO_C='\c';;
12872 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12873 ECHO_T=' ';;
12874 esac;;
12876 ECHO_N='-n';;
12877 esac
12879 rm -f conf$$ conf$$.exe conf$$.file
12880 if test -d conf$$.dir; then
12881 rm -f conf$$.dir/conf$$.file
12882 else
12883 rm -f conf$$.dir
12884 mkdir conf$$.dir 2>/dev/null
12886 if (echo >conf$$.file) 2>/dev/null; then
12887 if ln -s conf$$.file conf$$ 2>/dev/null; then
12888 as_ln_s='ln -s'
12889 # ... but there are two gotchas:
12890 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12891 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12892 # In both cases, we have to default to `cp -p'.
12893 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12894 as_ln_s='cp -p'
12895 elif ln conf$$.file conf$$ 2>/dev/null; then
12896 as_ln_s=ln
12897 else
12898 as_ln_s='cp -p'
12900 else
12901 as_ln_s='cp -p'
12903 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12904 rmdir conf$$.dir 2>/dev/null
12907 # as_fn_mkdir_p
12908 # -------------
12909 # Create "$as_dir" as a directory, including parents if necessary.
12910 as_fn_mkdir_p ()
12913 case $as_dir in #(
12914 -*) as_dir=./$as_dir;;
12915 esac
12916 test -d "$as_dir" || eval $as_mkdir_p || {
12917 as_dirs=
12918 while :; do
12919 case $as_dir in #(
12920 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12921 *) as_qdir=$as_dir;;
12922 esac
12923 as_dirs="'$as_qdir' $as_dirs"
12924 as_dir=`$as_dirname -- "$as_dir" ||
12925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12926 X"$as_dir" : 'X\(//\)[^/]' \| \
12927 X"$as_dir" : 'X\(//\)$' \| \
12928 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12929 $as_echo X"$as_dir" |
12930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12931 s//\1/
12934 /^X\(\/\/\)[^/].*/{
12935 s//\1/
12938 /^X\(\/\/\)$/{
12939 s//\1/
12942 /^X\(\/\).*/{
12943 s//\1/
12946 s/.*/./; q'`
12947 test -d "$as_dir" && break
12948 done
12949 test -z "$as_dirs" || eval "mkdir $as_dirs"
12950 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12953 } # as_fn_mkdir_p
12954 if mkdir -p . 2>/dev/null; then
12955 as_mkdir_p='mkdir -p "$as_dir"'
12956 else
12957 test -d ./-p && rmdir ./-p
12958 as_mkdir_p=false
12961 if test -x / >/dev/null 2>&1; then
12962 as_test_x='test -x'
12963 else
12964 if ls -dL / >/dev/null 2>&1; then
12965 as_ls_L_option=L
12966 else
12967 as_ls_L_option=
12969 as_test_x='
12970 eval sh -c '\''
12971 if test -d "$1"; then
12972 test -d "$1/.";
12973 else
12974 case $1 in #(
12975 -*)set "./$1";;
12976 esac;
12977 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12978 ???[sx]*):;;*)false;;esac;fi
12979 '\'' sh
12982 as_executable_p=$as_test_x
12984 # Sed expression to map a string onto a valid CPP name.
12985 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12987 # Sed expression to map a string onto a valid variable name.
12988 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12991 exec 6>&1
12992 ## ----------------------------------- ##
12993 ## Main body of $CONFIG_STATUS script. ##
12994 ## ----------------------------------- ##
12995 _ASEOF
12996 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12999 # Save the log message, to keep $0 and so on meaningful, and to
13000 # report actual input values of CONFIG_FILES etc. instead of their
13001 # values after options handling.
13002 ac_log="
13003 This file was extended by $as_me, which was
13004 generated by GNU Autoconf 2.68. Invocation command line was
13006 CONFIG_FILES = $CONFIG_FILES
13007 CONFIG_HEADERS = $CONFIG_HEADERS
13008 CONFIG_LINKS = $CONFIG_LINKS
13009 CONFIG_COMMANDS = $CONFIG_COMMANDS
13010 $ $0 $@
13012 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13015 _ACEOF
13017 case $ac_config_files in *"
13018 "*) set x $ac_config_files; shift; ac_config_files=$*;;
13019 esac
13021 case $ac_config_headers in *"
13022 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13023 esac
13026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13027 # Files that config.status was made for.
13028 config_files="$ac_config_files"
13029 config_headers="$ac_config_headers"
13030 config_commands="$ac_config_commands"
13032 _ACEOF
13034 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13035 ac_cs_usage="\
13036 \`$as_me' instantiates files and other configuration actions
13037 from templates according to the current configuration. Unless the files
13038 and actions are specified as TAGs, all are instantiated by default.
13040 Usage: $0 [OPTION]... [TAG]...
13042 -h, --help print this help, then exit
13043 -V, --version print version number and configuration settings, then exit
13044 --config print configuration, then exit
13045 -q, --quiet, --silent
13046 do not print progress messages
13047 -d, --debug don't remove temporary files
13048 --recheck update $as_me by reconfiguring in the same conditions
13049 --file=FILE[:TEMPLATE]
13050 instantiate the configuration file FILE
13051 --header=FILE[:TEMPLATE]
13052 instantiate the configuration header FILE
13054 Configuration files:
13055 $config_files
13057 Configuration headers:
13058 $config_headers
13060 Configuration commands:
13061 $config_commands
13063 Report bugs to the package provider."
13065 _ACEOF
13066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13067 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13068 ac_cs_version="\\
13069 config.status
13070 configured by $0, generated by GNU Autoconf 2.68,
13071 with options \\"\$ac_cs_config\\"
13073 Copyright (C) 2010 Free Software Foundation, Inc.
13074 This config.status script is free software; the Free Software Foundation
13075 gives unlimited permission to copy, distribute and modify it."
13077 ac_pwd='$ac_pwd'
13078 srcdir='$srcdir'
13079 test -n "\$AWK" || AWK=awk
13080 _ACEOF
13082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13083 # The default lists apply if the user does not specify any file.
13084 ac_need_defaults=:
13085 while test $# != 0
13087 case $1 in
13088 --*=?*)
13089 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13090 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13091 ac_shift=:
13093 --*=)
13094 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13095 ac_optarg=
13096 ac_shift=:
13099 ac_option=$1
13100 ac_optarg=$2
13101 ac_shift=shift
13103 esac
13105 case $ac_option in
13106 # Handling of the options.
13107 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13108 ac_cs_recheck=: ;;
13109 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13110 $as_echo "$ac_cs_version"; exit ;;
13111 --config | --confi | --conf | --con | --co | --c )
13112 $as_echo "$ac_cs_config"; exit ;;
13113 --debug | --debu | --deb | --de | --d | -d )
13114 debug=: ;;
13115 --file | --fil | --fi | --f )
13116 $ac_shift
13117 case $ac_optarg in
13118 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13119 '') as_fn_error $? "missing file argument" ;;
13120 esac
13121 as_fn_append CONFIG_FILES " '$ac_optarg'"
13122 ac_need_defaults=false;;
13123 --header | --heade | --head | --hea )
13124 $ac_shift
13125 case $ac_optarg in
13126 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13127 esac
13128 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13129 ac_need_defaults=false;;
13130 --he | --h)
13131 # Conflict between --help and --header
13132 as_fn_error $? "ambiguous option: \`$1'
13133 Try \`$0 --help' for more information.";;
13134 --help | --hel | -h )
13135 $as_echo "$ac_cs_usage"; exit ;;
13136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13137 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13138 ac_cs_silent=: ;;
13140 # This is an error.
13141 -*) as_fn_error $? "unrecognized option: \`$1'
13142 Try \`$0 --help' for more information." ;;
13144 *) as_fn_append ac_config_targets " $1"
13145 ac_need_defaults=false ;;
13147 esac
13148 shift
13149 done
13151 ac_configure_extra_args=
13153 if $ac_cs_silent; then
13154 exec 6>/dev/null
13155 ac_configure_extra_args="$ac_configure_extra_args --silent"
13158 _ACEOF
13159 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13160 if \$ac_cs_recheck; then
13161 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13162 shift
13163 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13164 CONFIG_SHELL='$SHELL'
13165 export CONFIG_SHELL
13166 exec "\$@"
13169 _ACEOF
13170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13171 exec 5>>config.log
13173 echo
13174 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13175 ## Running $as_me. ##
13176 _ASBOX
13177 $as_echo "$ac_log"
13178 } >&5
13180 _ACEOF
13181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13183 # INIT-COMMANDS
13186 aros_host_exe_suffix=${aros_host_exe_suffix}
13187 aros_tools_dir=${aros_tools_dir}
13188 aros_target_cpu=${aros_target_cpu}
13189 aros_target_arch=${aros_target_arch}
13190 aros_target_suffix=${aros_target_suffix}
13191 orig_target_nm=${orig_target_nm}
13192 orig_target_as=${orig_target_as}
13193 orig_target_ar=${orig_target_ar}
13194 orig_target_ranlib=${orig_target_ranlib}
13195 orig_target_objdump=${orig_target_objdump}
13196 orig_target_objcopy=${orig_target_objcopy}
13197 orig_target_strip=${orig_target_strip}
13198 aros_kernel_ld=${aros_kernel_ld}
13201 aros_tools_dir=${aros_tools_dir}
13204 _ACEOF
13206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13208 # Handling of arguments.
13209 for ac_config_target in $ac_config_targets
13211 case $ac_config_target in
13212 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13213 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13214 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13215 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13216 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13217 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13218 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13219 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13220 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13221 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13222 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13223 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13224 "${aros_targetcfg_dir}/elf-specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/elf-specs:${elf_specs_in}" ;;
13225 "${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" ;;
13226 "${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" ;;
13227 "${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" ;;
13228 "${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" ;;
13229 "${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" ;;
13230 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13231 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13232 "${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" ;;
13234 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13235 esac
13236 done
13239 # If the user did not use the arguments to specify the items to instantiate,
13240 # then the envvar interface is used. Set only those that are not.
13241 # We use the long form for the default assignment because of an extremely
13242 # bizarre bug on SunOS 4.1.3.
13243 if $ac_need_defaults; then
13244 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13245 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13246 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13249 # Have a temporary directory for convenience. Make it in the build tree
13250 # simply because there is no reason against having it here, and in addition,
13251 # creating and moving files from /tmp can sometimes cause problems.
13252 # Hook for its removal unless debugging.
13253 # Note that there is a small window in which the directory will not be cleaned:
13254 # after its creation but before its name has been assigned to `$tmp'.
13255 $debug ||
13257 tmp= ac_tmp=
13258 trap 'exit_status=$?
13259 : "${ac_tmp:=$tmp}"
13260 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13262 trap 'as_fn_exit 1' 1 2 13 15
13264 # Create a (secure) tmp directory for tmp files.
13267 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13268 test -d "$tmp"
13269 } ||
13271 tmp=./conf$$-$RANDOM
13272 (umask 077 && mkdir "$tmp")
13273 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13274 ac_tmp=$tmp
13276 # Set up the scripts for CONFIG_FILES section.
13277 # No need to generate them if there are no CONFIG_FILES.
13278 # This happens for instance with `./config.status config.h'.
13279 if test -n "$CONFIG_FILES"; then
13282 ac_cr=`echo X | tr X '\015'`
13283 # On cygwin, bash can eat \r inside `` if the user requested igncr.
13284 # But we know of no other shell where ac_cr would be empty at this
13285 # point, so we can use a bashism as a fallback.
13286 if test "x$ac_cr" = x; then
13287 eval ac_cr=\$\'\\r\'
13289 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13290 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13291 ac_cs_awk_cr='\\r'
13292 else
13293 ac_cs_awk_cr=$ac_cr
13296 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13297 _ACEOF
13301 echo "cat >conf$$subs.awk <<_ACEOF" &&
13302 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13303 echo "_ACEOF"
13304 } >conf$$subs.sh ||
13305 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13306 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13307 ac_delim='%!_!# '
13308 for ac_last_try in false false false false false :; do
13309 . ./conf$$subs.sh ||
13310 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13312 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13313 if test $ac_delim_n = $ac_delim_num; then
13314 break
13315 elif $ac_last_try; then
13316 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13317 else
13318 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13320 done
13321 rm -f conf$$subs.sh
13323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13324 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13325 _ACEOF
13326 sed -n '
13328 s/^/S["/; s/!.*/"]=/
13331 s/^[^!]*!//
13332 :repl
13333 t repl
13334 s/'"$ac_delim"'$//
13335 t delim
13338 s/\(.\{148\}\)..*/\1/
13339 t more1
13340 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13343 b repl
13344 :more1
13345 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13348 s/.\{148\}//
13349 t nl
13350 :delim
13352 s/\(.\{148\}\)..*/\1/
13353 t more2
13354 s/["\\]/\\&/g; s/^/"/; s/$/"/
13357 :more2
13358 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13361 s/.\{148\}//
13362 t delim
13363 ' <conf$$subs.awk | sed '
13364 /^[^""]/{
13366 s/\n//
13368 ' >>$CONFIG_STATUS || ac_write_fail=1
13369 rm -f conf$$subs.awk
13370 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13371 _ACAWK
13372 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
13373 for (key in S) S_is_set[key] = 1
13374 FS = "\a"
13378 line = $ 0
13379 nfields = split(line, field, "@")
13380 substed = 0
13381 len = length(field[1])
13382 for (i = 2; i < nfields; i++) {
13383 key = field[i]
13384 keylen = length(key)
13385 if (S_is_set[key]) {
13386 value = S[key]
13387 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13388 len += length(value) + length(field[++i])
13389 substed = 1
13390 } else
13391 len += 1 + keylen
13394 print line
13397 _ACAWK
13398 _ACEOF
13399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13400 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13401 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13402 else
13404 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13405 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
13406 _ACEOF
13408 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13409 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
13410 # trailing colons and then remove the whole line if VPATH becomes empty
13411 # (actually we leave an empty line to preserve line numbers).
13412 if test "x$srcdir" = x.; then
13413 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13415 s///
13416 s/^/:/
13417 s/[ ]*$/:/
13418 s/:\$(srcdir):/:/g
13419 s/:\${srcdir}:/:/g
13420 s/:@srcdir@:/:/g
13421 s/^:*//
13422 s/:*$//
13424 s/\(=[ ]*\).*/\1/
13426 s/\n//
13427 s/^[^=]*=[ ]*$//
13431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13432 fi # test -n "$CONFIG_FILES"
13434 # Set up the scripts for CONFIG_HEADERS section.
13435 # No need to generate them if there are no CONFIG_HEADERS.
13436 # This happens for instance with `./config.status Makefile'.
13437 if test -n "$CONFIG_HEADERS"; then
13438 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
13439 BEGIN {
13440 _ACEOF
13442 # Transform confdefs.h into an awk script `defines.awk', embedded as
13443 # here-document in config.status, that substitutes the proper values into
13444 # config.h.in to produce config.h.
13446 # Create a delimiter string that does not exist in confdefs.h, to ease
13447 # handling of long lines.
13448 ac_delim='%!_!# '
13449 for ac_last_try in false false :; do
13450 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13451 if test -z "$ac_tt"; then
13452 break
13453 elif $ac_last_try; then
13454 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13455 else
13456 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13458 done
13460 # For the awk script, D is an array of macro values keyed by name,
13461 # likewise P contains macro parameters if any. Preserve backslash
13462 # newline sequences.
13464 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13465 sed -n '
13466 s/.\{148\}/&'"$ac_delim"'/g
13467 t rset
13468 :rset
13469 s/^[ ]*#[ ]*define[ ][ ]*/ /
13470 t def
13472 :def
13473 s/\\$//
13474 t bsnl
13475 s/["\\]/\\&/g
13476 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13477 D["\1"]=" \3"/p
13478 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13480 :bsnl
13481 s/["\\]/\\&/g
13482 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13483 D["\1"]=" \3\\\\\\n"\\/p
13484 t cont
13485 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13486 t cont
13488 :cont
13490 s/.\{148\}/&'"$ac_delim"'/g
13491 t clear
13492 :clear
13493 s/\\$//
13494 t bsnlc
13495 s/["\\]/\\&/g; s/^/"/; s/$/"/p
13497 :bsnlc
13498 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13499 b cont
13500 ' <confdefs.h | sed '
13501 s/'"$ac_delim"'/"\\\
13502 "/g' >>$CONFIG_STATUS || ac_write_fail=1
13504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13505 for (key in D) D_is_set[key] = 1
13506 FS = "\a"
13508 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13509 line = \$ 0
13510 split(line, arg, " ")
13511 if (arg[1] == "#") {
13512 defundef = arg[2]
13513 mac1 = arg[3]
13514 } else {
13515 defundef = substr(arg[1], 2)
13516 mac1 = arg[2]
13518 split(mac1, mac2, "(") #)
13519 macro = mac2[1]
13520 prefix = substr(line, 1, index(line, defundef) - 1)
13521 if (D_is_set[macro]) {
13522 # Preserve the white space surrounding the "#".
13523 print prefix "define", macro P[macro] D[macro]
13524 next
13525 } else {
13526 # Replace #undef with comments. This is necessary, for example,
13527 # in the case of _POSIX_SOURCE, which is predefined and required
13528 # on some systems where configure will not decide to define it.
13529 if (defundef == "undef") {
13530 print "/*", prefix defundef, macro, "*/"
13531 next
13535 { print }
13536 _ACAWK
13537 _ACEOF
13538 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13539 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13540 fi # test -n "$CONFIG_HEADERS"
13543 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13544 shift
13545 for ac_tag
13547 case $ac_tag in
13548 :[FHLC]) ac_mode=$ac_tag; continue;;
13549 esac
13550 case $ac_mode$ac_tag in
13551 :[FHL]*:*);;
13552 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13553 :[FH]-) ac_tag=-:-;;
13554 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13555 esac
13556 ac_save_IFS=$IFS
13557 IFS=:
13558 set x $ac_tag
13559 IFS=$ac_save_IFS
13560 shift
13561 ac_file=$1
13562 shift
13564 case $ac_mode in
13565 :L) ac_source=$1;;
13566 :[FH])
13567 ac_file_inputs=
13568 for ac_f
13570 case $ac_f in
13571 -) ac_f="$ac_tmp/stdin";;
13572 *) # Look for the file first in the build tree, then in the source tree
13573 # (if the path is not absolute). The absolute path cannot be DOS-style,
13574 # because $ac_f cannot contain `:'.
13575 test -f "$ac_f" ||
13576 case $ac_f in
13577 [\\/$]*) false;;
13578 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13579 esac ||
13580 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13581 esac
13582 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13583 as_fn_append ac_file_inputs " '$ac_f'"
13584 done
13586 # Let's still pretend it is `configure' which instantiates (i.e., don't
13587 # use $as_me), people would be surprised to read:
13588 # /* config.h. Generated by config.status. */
13589 configure_input='Generated from '`
13590 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13591 `' by configure.'
13592 if test x"$ac_file" != x-; then
13593 configure_input="$ac_file. $configure_input"
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13595 $as_echo "$as_me: creating $ac_file" >&6;}
13597 # Neutralize special characters interpreted by sed in replacement strings.
13598 case $configure_input in #(
13599 *\&* | *\|* | *\\* )
13600 ac_sed_conf_input=`$as_echo "$configure_input" |
13601 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13602 *) ac_sed_conf_input=$configure_input;;
13603 esac
13605 case $ac_tag in
13606 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13607 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13608 esac
13610 esac
13612 ac_dir=`$as_dirname -- "$ac_file" ||
13613 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13614 X"$ac_file" : 'X\(//\)[^/]' \| \
13615 X"$ac_file" : 'X\(//\)$' \| \
13616 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13617 $as_echo X"$ac_file" |
13618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13619 s//\1/
13622 /^X\(\/\/\)[^/].*/{
13623 s//\1/
13626 /^X\(\/\/\)$/{
13627 s//\1/
13630 /^X\(\/\).*/{
13631 s//\1/
13634 s/.*/./; q'`
13635 as_dir="$ac_dir"; as_fn_mkdir_p
13636 ac_builddir=.
13638 case "$ac_dir" in
13639 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13641 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13642 # A ".." for each directory in $ac_dir_suffix.
13643 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13644 case $ac_top_builddir_sub in
13645 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13646 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13647 esac ;;
13648 esac
13649 ac_abs_top_builddir=$ac_pwd
13650 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13651 # for backward compatibility:
13652 ac_top_builddir=$ac_top_build_prefix
13654 case $srcdir in
13655 .) # We are building in place.
13656 ac_srcdir=.
13657 ac_top_srcdir=$ac_top_builddir_sub
13658 ac_abs_top_srcdir=$ac_pwd ;;
13659 [\\/]* | ?:[\\/]* ) # Absolute name.
13660 ac_srcdir=$srcdir$ac_dir_suffix;
13661 ac_top_srcdir=$srcdir
13662 ac_abs_top_srcdir=$srcdir ;;
13663 *) # Relative name.
13664 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13665 ac_top_srcdir=$ac_top_build_prefix$srcdir
13666 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13667 esac
13668 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13671 case $ac_mode in
13674 # CONFIG_FILE
13677 _ACEOF
13679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13680 # If the template does not know about datarootdir, expand it.
13681 # FIXME: This hack should be removed a few years after 2.60.
13682 ac_datarootdir_hack=; ac_datarootdir_seen=
13683 ac_sed_dataroot='
13684 /datarootdir/ {
13688 /@datadir@/p
13689 /@docdir@/p
13690 /@infodir@/p
13691 /@localedir@/p
13692 /@mandir@/p'
13693 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13694 *datarootdir*) ac_datarootdir_seen=yes;;
13695 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13697 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13698 _ACEOF
13699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13700 ac_datarootdir_hack='
13701 s&@datadir@&$datadir&g
13702 s&@docdir@&$docdir&g
13703 s&@infodir@&$infodir&g
13704 s&@localedir@&$localedir&g
13705 s&@mandir@&$mandir&g
13706 s&\\\${datarootdir}&$datarootdir&g' ;;
13707 esac
13708 _ACEOF
13710 # Neutralize VPATH when `$srcdir' = `.'.
13711 # Shell code in configure.ac might set extrasub.
13712 # FIXME: do we really want to maintain this feature?
13713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13714 ac_sed_extra="$ac_vpsub
13715 $extrasub
13716 _ACEOF
13717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13719 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13720 s|@configure_input@|$ac_sed_conf_input|;t t
13721 s&@top_builddir@&$ac_top_builddir_sub&;t t
13722 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13723 s&@srcdir@&$ac_srcdir&;t t
13724 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13725 s&@top_srcdir@&$ac_top_srcdir&;t t
13726 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13727 s&@builddir@&$ac_builddir&;t t
13728 s&@abs_builddir@&$ac_abs_builddir&;t t
13729 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13730 $ac_datarootdir_hack
13732 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13733 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13735 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13736 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13737 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13738 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13740 which seems to be undefined. Please make sure it is defined" >&5
13741 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13742 which seems to be undefined. Please make sure it is defined" >&2;}
13744 rm -f "$ac_tmp/stdin"
13745 case $ac_file in
13746 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13747 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13748 esac \
13749 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13753 # CONFIG_HEADER
13755 if test x"$ac_file" != x-; then
13757 $as_echo "/* $configure_input */" \
13758 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13759 } >"$ac_tmp/config.h" \
13760 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13761 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13763 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13764 else
13765 rm -f "$ac_file"
13766 mv "$ac_tmp/config.h" "$ac_file" \
13767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13769 else
13770 $as_echo "/* $configure_input */" \
13771 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13772 || as_fn_error $? "could not create -" "$LINENO" 5
13776 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13777 $as_echo "$as_me: executing $ac_file commands" >&6;}
13779 esac
13782 case $ac_file$ac_mode in
13783 "compiler_executable":C)
13784 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13785 mkdir -p $prefix
13786 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13787 prefix3=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-elf
13789 echo ${prefix2}
13790 echo ${prefix3}
13791 chmod a+x ${prefix2}-gcc ${prefix2}-g++ ${prefix2}-ld ${prefix2}-cpp ${prefix3}-gcc
13793 ln -sf $orig_target_as$aros_host_exe_suffix ${prefix2}-as$aros_host_exe_suffix
13794 ln -sf $orig_target_nm$aros_host_exe_suffix ${prefix2}-nm$aros_host_exe_suffix
13795 ln -sf $orig_target_ar$aros_host_exe_suffix ${prefix2}-ar$aros_host_exe_suffix
13796 ln -sf $orig_target_ranlib$aros_host_exe_suffix ${prefix2}-ranlib$aros_host_exe_suffix
13797 ln -sf $orig_target_objcopy$aros_host_exe_suffix ${prefix2}-objcopy$aros_host_exe_suffix
13798 ln -sf $orig_target_objdump$aros_host_exe_suffix ${prefix2}-objdump$aros_host_exe_suffix
13799 ln -sf $orig_target_strip$aros_host_exe_suffix ${prefix2}-strip$aros_host_exe_suffix
13801 ln -sf $aros_kernel_ld$aros_host_exe_suffix ${prefix3}-ld$aros_host_exe_suffix
13803 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13805 esac
13806 done # for ac_tag
13809 as_fn_exit 0
13810 _ACEOF
13811 ac_clean_files=$ac_clean_files_save
13813 test $ac_write_fail = 0 ||
13814 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13817 # configure is writing to config.log, and then calls config.status.
13818 # config.status does its own redirection, appending to config.log.
13819 # Unfortunately, on DOS this fails, as config.log is still kept open
13820 # by configure, so config.status won't be able to write to it; its
13821 # output is simply discarded. So we exec the FD to /dev/null,
13822 # effectively closing config.log, so it can be properly (re)opened and
13823 # appended to by config.status. When coming back to configure, we
13824 # need to make the FD available again.
13825 if test "$no_create" != yes; then
13826 ac_cs_success=:
13827 ac_config_status_args=
13828 test "$silent" = yes &&
13829 ac_config_status_args="$ac_config_status_args --quiet"
13830 exec 5>/dev/null
13831 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13832 exec 5>>config.log
13833 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13834 # would make configure fail if this is the last instruction.
13835 $ac_cs_success || as_fn_exit 1
13837 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13839 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13844 #XXX compatability...
13845 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13847 if test -n "$aros_shared_cflags" ; then
13848 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13849 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg