cross compilation tools are put in bin/HOST_ARCH-HOST-CPU
[AROS.git] / configure
blob29d04e512b096ac4e93cb0d83d07aac935415bd6
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_palm_debug_hack
623 aros_serial_debug
624 aros_host_sdl_libs
625 aros_host_sdl_cflags
626 aros_host_x11_libdirs
627 aros_host_x11_includes
628 DO_VIDMODE_SUPPORT
629 DO_XSHM_SUPPORT
630 aros_default_wbdepth
631 aros_default_wbheight
632 aros_default_wbwidth
633 oss_library_target
634 pci_hidd_target
635 sdl_hidd_target
636 x11_hidd_target
637 crosstools_target
638 aros_target_strip_flags
639 aros_target_genmap
640 aros_paranoia_cflags
641 aros_debug_ldflags
642 aros_debug_aflags
643 aros_debug_cflags
644 aros_target_cflags
645 aros_kernel_ldflags
646 aros_kernel_objcflags
647 aros_kernel_includes
648 aros_kernel_cflags
649 aros_shared_ldflags
650 aros_shared_aflags
651 aros_shared_cflags
652 aros_config_ldflags
653 aros_config_aflags
654 aros_config_cflags
655 aros_arch_libs
656 aros_compiler_libs
657 aros_object_format
658 aros_shared_ld
659 aros_shared_default
660 aros_target_nm
661 aros_target_strip
662 aros_target_objcopy
663 aros_target_objdump
664 aros_target_cc_path
665 aros_target_cc_includes
666 orig_target_ld
667 aros_target_as
668 aros_kernel_cc
669 orig_target_cc
670 aros_kernel_nm
671 aros_target_ranlib
672 aros_target_ar
673 aros_target_incl
674 aros_target_suffix
675 aros_target_variant
676 aros_target_cpu
677 aros_target_family
678 aros_target_arch
679 aros_target_bootloader
680 aros_target_iconset
681 aros_target_guitheme
682 aros_tools_dir
683 aros_host_lib_suffix
684 aros_host_exe_suffix
685 aros_host_mkargs
686 aros_host_mkdep
687 aros_host_debug
688 aros_host_ldflags
689 gnu89_inline
690 aros_host_cflags
691 aros_host_make
692 aros_host_cc
693 aros_host_cpu
694 aros_host_arch
695 aros_cc_pre
696 AROS_PORTSSRCDIR
697 SRCDIR
698 AROS_BUILDDIR_UNIX
699 AROS_BUILDDIR
700 aros_flavour_uc
701 aros_flavour
702 aros_cpu
703 aros_arch
704 SDL_LIBS
705 SDL_CFLAGS
706 SDL_CONFIG
707 XMKMF
708 aros_cflags_iquote_end
709 aros_cflags_iquote
710 kernel_cflags_iquote_end
711 kernel_cflags_iquote
712 host_cflags_iquote_end
713 host_cflags_iquote
714 aros_target_nostdlib_ldflags
715 aros_target_detach_ldflags
716 aros_target_nix_ldflags
717 aros_target_nostartup_ldflags
718 aros_target_nostdinc_cflags
719 aros_target_ld
720 aros_target_cc
721 aros_target_cxx
722 aros_target_strip_ln
723 aros_target_ranlib_ln
724 aros_target_objdump_ln
725 aros_target_objcopy_ln
726 aros_target_nm_ln
727 aros_target_ar_ln
728 aros_target_as_ln
729 aros_kernel_ld
730 aros_kernel_rescomp
731 android_tool
732 CCACHE
733 DISTCC
734 LIBOBJS
735 EGREP
736 GREP
738 TEST
741 pkgpyexecdir
742 pyexecdir
743 pkgpythondir
744 pythondir
745 PYTHON_PLATFORM
746 PYTHON_EXEC_PREFIX
747 PYTHON_PREFIX
748 PYTHON_VERSION
749 PYTHON
750 PATCH
751 CHMOD
753 PPMTOILBM
754 PNGTOPNM
755 FLEX
756 BISON
759 UNIQ
760 SORT
761 TOUCH
762 MKDIR
763 ECHO
767 aros_host_strip
768 aros_host_ranlib
769 aros_host_ar
770 aros_host_automake
771 aros_host_autoheader
772 aros_host_autoconf
773 aros_host_aclocal
774 aros_host_ld
775 MMAKE
778 OBJEXT
779 EXEEXT
780 ac_ct_CC
781 CPPFLAGS
782 LDFLAGS
783 CFLAGS
785 host_os
786 host_vendor
787 host_cpu
788 host
789 build_os
790 build_vendor
791 build_cpu
792 build
793 target_alias
794 host_alias
795 build_alias
796 LIBS
797 ECHO_T
798 ECHO_N
799 ECHO_C
800 DEFS
801 mandir
802 localedir
803 libdir
804 psdir
805 pdfdir
806 dvidir
807 htmldir
808 infodir
809 docdir
810 oldincludedir
811 includedir
812 localstatedir
813 sharedstatedir
814 sysconfdir
815 datadir
816 datarootdir
817 libexecdir
818 sbindir
819 bindir
820 program_transform_name
821 prefix
822 exec_prefix
823 PACKAGE_URL
824 PACKAGE_BUGREPORT
825 PACKAGE_STRING
826 PACKAGE_VERSION
827 PACKAGE_TARNAME
828 PACKAGE_NAME
829 PATH_SEPARATOR
830 SHELL'
831 ac_subst_files=''
832 ac_user_opts='
833 enable_option_checking
834 enable_build_type
835 enable_debug
836 enable_crosstools
837 enable_distcc
838 enable_ccache
839 with_gcc_version
840 with_optimization
841 with_paranoia
842 enable_target_variant
843 with_xcode
844 with_ios_version
845 with_ios_sdk
846 with_sdk
847 with_ndk
848 with_android_version
849 with_aros_gcc
850 with_portssources
851 with_bootloader
852 with_iconset
853 with_theme
854 enable_includes
855 with_resolution
856 with_serial_debug
857 enable_palm_debug_hack
858 enable_nesting_supervisor
859 enable_mmu
860 enable_x11_hidd
861 with_x
862 enable_x11_shm
863 enable_x11_vidmode
864 enable_sdl_hidd
865 with_sdl_prefix
866 with_sdl_exec_prefix
867 enable_sdltest
868 enable_dbus
870 ac_precious_vars='build_alias
871 host_alias
872 target_alias
874 CFLAGS
875 LDFLAGS
876 LIBS
877 CPPFLAGS
879 CPPFLAGS
880 XMKMF'
883 # Initialize some variables set by options.
884 ac_init_help=
885 ac_init_version=false
886 ac_unrecognized_opts=
887 ac_unrecognized_sep=
888 # The variables have the same names as the options, with
889 # dashes changed to underlines.
890 cache_file=/dev/null
891 exec_prefix=NONE
892 no_create=
893 no_recursion=
894 prefix=NONE
895 program_prefix=NONE
896 program_suffix=NONE
897 program_transform_name=s,x,x,
898 silent=
899 site=
900 srcdir=
901 verbose=
902 x_includes=NONE
903 x_libraries=NONE
905 # Installation directory options.
906 # These are left unexpanded so users can "make install exec_prefix=/foo"
907 # and all the variables that are supposed to be based on exec_prefix
908 # by default will actually change.
909 # Use braces instead of parens because sh, perl, etc. also accept them.
910 # (The list follows the same order as the GNU Coding Standards.)
911 bindir='${exec_prefix}/bin'
912 sbindir='${exec_prefix}/sbin'
913 libexecdir='${exec_prefix}/libexec'
914 datarootdir='${prefix}/share'
915 datadir='${datarootdir}'
916 sysconfdir='${prefix}/etc'
917 sharedstatedir='${prefix}/com'
918 localstatedir='${prefix}/var'
919 includedir='${prefix}/include'
920 oldincludedir='/usr/include'
921 docdir='${datarootdir}/doc/${PACKAGE}'
922 infodir='${datarootdir}/info'
923 htmldir='${docdir}'
924 dvidir='${docdir}'
925 pdfdir='${docdir}'
926 psdir='${docdir}'
927 libdir='${exec_prefix}/lib'
928 localedir='${datarootdir}/locale'
929 mandir='${datarootdir}/man'
931 ac_prev=
932 ac_dashdash=
933 for ac_option
935 # If the previous option needs an argument, assign it.
936 if test -n "$ac_prev"; then
937 eval $ac_prev=\$ac_option
938 ac_prev=
939 continue
942 case $ac_option in
943 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
944 *=) ac_optarg= ;;
945 *) ac_optarg=yes ;;
946 esac
948 # Accept the important Cygnus configure options, so we can diagnose typos.
950 case $ac_dashdash$ac_option in
952 ac_dashdash=yes ;;
954 -bindir | --bindir | --bindi | --bind | --bin | --bi)
955 ac_prev=bindir ;;
956 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
957 bindir=$ac_optarg ;;
959 -build | --build | --buil | --bui | --bu)
960 ac_prev=build_alias ;;
961 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
962 build_alias=$ac_optarg ;;
964 -cache-file | --cache-file | --cache-fil | --cache-fi \
965 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
966 ac_prev=cache_file ;;
967 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
968 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
969 cache_file=$ac_optarg ;;
971 --config-cache | -C)
972 cache_file=config.cache ;;
974 -datadir | --datadir | --datadi | --datad)
975 ac_prev=datadir ;;
976 -datadir=* | --datadir=* | --datadi=* | --datad=*)
977 datadir=$ac_optarg ;;
979 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
980 | --dataroo | --dataro | --datar)
981 ac_prev=datarootdir ;;
982 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
983 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
984 datarootdir=$ac_optarg ;;
986 -disable-* | --disable-*)
987 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
988 # Reject names that are not valid shell variable names.
989 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
990 as_fn_error $? "invalid feature name: $ac_useropt"
991 ac_useropt_orig=$ac_useropt
992 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
993 case $ac_user_opts in
995 "enable_$ac_useropt"
996 "*) ;;
997 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
998 ac_unrecognized_sep=', ';;
999 esac
1000 eval enable_$ac_useropt=no ;;
1002 -docdir | --docdir | --docdi | --doc | --do)
1003 ac_prev=docdir ;;
1004 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1005 docdir=$ac_optarg ;;
1007 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1008 ac_prev=dvidir ;;
1009 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1010 dvidir=$ac_optarg ;;
1012 -enable-* | --enable-*)
1013 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1016 as_fn_error $? "invalid feature name: $ac_useropt"
1017 ac_useropt_orig=$ac_useropt
1018 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1021 "enable_$ac_useropt"
1022 "*) ;;
1023 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1024 ac_unrecognized_sep=', ';;
1025 esac
1026 eval enable_$ac_useropt=\$ac_optarg ;;
1028 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1029 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1030 | --exec | --exe | --ex)
1031 ac_prev=exec_prefix ;;
1032 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1033 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1034 | --exec=* | --exe=* | --ex=*)
1035 exec_prefix=$ac_optarg ;;
1037 -gas | --gas | --ga | --g)
1038 # Obsolete; use --with-gas.
1039 with_gas=yes ;;
1041 -help | --help | --hel | --he | -h)
1042 ac_init_help=long ;;
1043 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1044 ac_init_help=recursive ;;
1045 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1046 ac_init_help=short ;;
1048 -host | --host | --hos | --ho)
1049 ac_prev=host_alias ;;
1050 -host=* | --host=* | --hos=* | --ho=*)
1051 host_alias=$ac_optarg ;;
1053 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1054 ac_prev=htmldir ;;
1055 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1056 | --ht=*)
1057 htmldir=$ac_optarg ;;
1059 -includedir | --includedir | --includedi | --included | --include \
1060 | --includ | --inclu | --incl | --inc)
1061 ac_prev=includedir ;;
1062 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1063 | --includ=* | --inclu=* | --incl=* | --inc=*)
1064 includedir=$ac_optarg ;;
1066 -infodir | --infodir | --infodi | --infod | --info | --inf)
1067 ac_prev=infodir ;;
1068 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1069 infodir=$ac_optarg ;;
1071 -libdir | --libdir | --libdi | --libd)
1072 ac_prev=libdir ;;
1073 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1074 libdir=$ac_optarg ;;
1076 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1077 | --libexe | --libex | --libe)
1078 ac_prev=libexecdir ;;
1079 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1080 | --libexe=* | --libex=* | --libe=*)
1081 libexecdir=$ac_optarg ;;
1083 -localedir | --localedir | --localedi | --localed | --locale)
1084 ac_prev=localedir ;;
1085 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1086 localedir=$ac_optarg ;;
1088 -localstatedir | --localstatedir | --localstatedi | --localstated \
1089 | --localstate | --localstat | --localsta | --localst | --locals)
1090 ac_prev=localstatedir ;;
1091 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1092 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1093 localstatedir=$ac_optarg ;;
1095 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1096 ac_prev=mandir ;;
1097 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1098 mandir=$ac_optarg ;;
1100 -nfp | --nfp | --nf)
1101 # Obsolete; use --without-fp.
1102 with_fp=no ;;
1104 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1105 | --no-cr | --no-c | -n)
1106 no_create=yes ;;
1108 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1109 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1110 no_recursion=yes ;;
1112 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1113 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1114 | --oldin | --oldi | --old | --ol | --o)
1115 ac_prev=oldincludedir ;;
1116 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1117 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1118 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1119 oldincludedir=$ac_optarg ;;
1121 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1122 ac_prev=prefix ;;
1123 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1124 prefix=$ac_optarg ;;
1126 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1127 | --program-pre | --program-pr | --program-p)
1128 ac_prev=program_prefix ;;
1129 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1130 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1131 program_prefix=$ac_optarg ;;
1133 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1134 | --program-suf | --program-su | --program-s)
1135 ac_prev=program_suffix ;;
1136 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1137 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1138 program_suffix=$ac_optarg ;;
1140 -program-transform-name | --program-transform-name \
1141 | --program-transform-nam | --program-transform-na \
1142 | --program-transform-n | --program-transform- \
1143 | --program-transform | --program-transfor \
1144 | --program-transfo | --program-transf \
1145 | --program-trans | --program-tran \
1146 | --progr-tra | --program-tr | --program-t)
1147 ac_prev=program_transform_name ;;
1148 -program-transform-name=* | --program-transform-name=* \
1149 | --program-transform-nam=* | --program-transform-na=* \
1150 | --program-transform-n=* | --program-transform-=* \
1151 | --program-transform=* | --program-transfor=* \
1152 | --program-transfo=* | --program-transf=* \
1153 | --program-trans=* | --program-tran=* \
1154 | --progr-tra=* | --program-tr=* | --program-t=*)
1155 program_transform_name=$ac_optarg ;;
1157 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1158 ac_prev=pdfdir ;;
1159 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1160 pdfdir=$ac_optarg ;;
1162 -psdir | --psdir | --psdi | --psd | --ps)
1163 ac_prev=psdir ;;
1164 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1165 psdir=$ac_optarg ;;
1167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1168 | -silent | --silent | --silen | --sile | --sil)
1169 silent=yes ;;
1171 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1172 ac_prev=sbindir ;;
1173 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1174 | --sbi=* | --sb=*)
1175 sbindir=$ac_optarg ;;
1177 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1178 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1179 | --sharedst | --shareds | --shared | --share | --shar \
1180 | --sha | --sh)
1181 ac_prev=sharedstatedir ;;
1182 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1183 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1184 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1185 | --sha=* | --sh=*)
1186 sharedstatedir=$ac_optarg ;;
1188 -site | --site | --sit)
1189 ac_prev=site ;;
1190 -site=* | --site=* | --sit=*)
1191 site=$ac_optarg ;;
1193 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1194 ac_prev=srcdir ;;
1195 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1196 srcdir=$ac_optarg ;;
1198 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1199 | --syscon | --sysco | --sysc | --sys | --sy)
1200 ac_prev=sysconfdir ;;
1201 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1202 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1203 sysconfdir=$ac_optarg ;;
1205 -target | --target | --targe | --targ | --tar | --ta | --t)
1206 ac_prev=target_alias ;;
1207 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1208 target_alias=$ac_optarg ;;
1210 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1211 verbose=yes ;;
1213 -version | --version | --versio | --versi | --vers | -V)
1214 ac_init_version=: ;;
1216 -with-* | --with-*)
1217 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1218 # Reject names that are not valid shell variable names.
1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1220 as_fn_error $? "invalid package name: $ac_useropt"
1221 ac_useropt_orig=$ac_useropt
1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1223 case $ac_user_opts in
1225 "with_$ac_useropt"
1226 "*) ;;
1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1228 ac_unrecognized_sep=', ';;
1229 esac
1230 eval with_$ac_useropt=\$ac_optarg ;;
1232 -without-* | --without-*)
1233 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234 # Reject names that are not valid shell variable names.
1235 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1236 as_fn_error $? "invalid package name: $ac_useropt"
1237 ac_useropt_orig=$ac_useropt
1238 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1239 case $ac_user_opts in
1241 "with_$ac_useropt"
1242 "*) ;;
1243 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1244 ac_unrecognized_sep=', ';;
1245 esac
1246 eval with_$ac_useropt=no ;;
1248 --x)
1249 # Obsolete; use --with-x.
1250 with_x=yes ;;
1252 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1253 | --x-incl | --x-inc | --x-in | --x-i)
1254 ac_prev=x_includes ;;
1255 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1256 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1257 x_includes=$ac_optarg ;;
1259 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1260 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1261 ac_prev=x_libraries ;;
1262 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1263 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1264 x_libraries=$ac_optarg ;;
1266 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1267 Try \`$0 --help' for more information"
1270 *=*)
1271 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1272 # Reject names that are not valid shell variable names.
1273 case $ac_envvar in #(
1274 '' | [0-9]* | *[!_$as_cr_alnum]* )
1275 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1276 esac
1277 eval $ac_envvar=\$ac_optarg
1278 export $ac_envvar ;;
1281 # FIXME: should be removed in autoconf 3.0.
1282 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1283 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1284 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1285 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1288 esac
1289 done
1291 if test -n "$ac_prev"; then
1292 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1293 as_fn_error $? "missing argument to $ac_option"
1296 if test -n "$ac_unrecognized_opts"; then
1297 case $enable_option_checking in
1298 no) ;;
1299 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1300 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1301 esac
1304 # Check all directory arguments for consistency.
1305 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1306 datadir sysconfdir sharedstatedir localstatedir includedir \
1307 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1308 libdir localedir mandir
1310 eval ac_val=\$$ac_var
1311 # Remove trailing slashes.
1312 case $ac_val in
1313 */ )
1314 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1315 eval $ac_var=\$ac_val;;
1316 esac
1317 # Be sure to have absolute directory names.
1318 case $ac_val in
1319 [\\/$]* | ?:[\\/]* ) continue;;
1320 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1321 esac
1322 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1323 done
1325 # There might be people who depend on the old broken behavior: `$host'
1326 # used to hold the argument of --host etc.
1327 # FIXME: To remove some day.
1328 build=$build_alias
1329 host=$host_alias
1330 target=$target_alias
1332 # FIXME: To remove some day.
1333 if test "x$host_alias" != x; then
1334 if test "x$build_alias" = x; then
1335 cross_compiling=maybe
1336 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1337 If a cross compiler is detected then cross compile mode will be used" >&2
1338 elif test "x$build_alias" != "x$host_alias"; then
1339 cross_compiling=yes
1343 ac_tool_prefix=
1344 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1346 test "$silent" = yes && exec 6>/dev/null
1349 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1350 ac_ls_di=`ls -di .` &&
1351 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1352 as_fn_error $? "working directory cannot be determined"
1353 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1354 as_fn_error $? "pwd does not report name of working directory"
1357 # Find the source files, if location was not specified.
1358 if test -z "$srcdir"; then
1359 ac_srcdir_defaulted=yes
1360 # Try the directory containing this script, then the parent directory.
1361 ac_confdir=`$as_dirname -- "$as_myself" ||
1362 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1363 X"$as_myself" : 'X\(//\)[^/]' \| \
1364 X"$as_myself" : 'X\(//\)$' \| \
1365 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1366 $as_echo X"$as_myself" |
1367 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1368 s//\1/
1371 /^X\(\/\/\)[^/].*/{
1372 s//\1/
1375 /^X\(\/\/\)$/{
1376 s//\1/
1379 /^X\(\/\).*/{
1380 s//\1/
1383 s/.*/./; q'`
1384 srcdir=$ac_confdir
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 srcdir=..
1388 else
1389 ac_srcdir_defaulted=no
1391 if test ! -r "$srcdir/$ac_unique_file"; then
1392 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1393 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1395 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396 ac_abs_confdir=`(
1397 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1398 pwd)`
1399 # When building in place, set srcdir=.
1400 if test "$ac_abs_confdir" = "$ac_pwd"; then
1401 srcdir=.
1403 # Remove unnecessary trailing slashes from srcdir.
1404 # Double slashes in file names in object file debugging info
1405 # mess up M-x gdb in Emacs.
1406 case $srcdir in
1407 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1408 esac
1409 for ac_var in $ac_precious_vars; do
1410 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1411 eval ac_env_${ac_var}_value=\$${ac_var}
1412 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1413 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1414 done
1417 # Report the --help message.
1419 if test "$ac_init_help" = "long"; then
1420 # Omit some internal or obsolete options to make the list less imposing.
1421 # This message is too long to be a string in the A/UX 3.1 sh.
1422 cat <<_ACEOF
1423 \`configure' configures this package to adapt to many kinds of systems.
1425 Usage: $0 [OPTION]... [VAR=VALUE]...
1427 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1428 VAR=VALUE. See below for descriptions of some of the useful variables.
1430 Defaults for the options are specified in brackets.
1432 Configuration:
1433 -h, --help display this help and exit
1434 --help=short display options specific to this package
1435 --help=recursive display the short help of all the included packages
1436 -V, --version display version information and exit
1437 -q, --quiet, --silent do not print \`checking ...' messages
1438 --cache-file=FILE cache test results in FILE [disabled]
1439 -C, --config-cache alias for \`--cache-file=config.cache'
1440 -n, --no-create do not create output files
1441 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443 Installation directories:
1444 --prefix=PREFIX install architecture-independent files in PREFIX
1445 [$ac_default_prefix]
1446 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1447 [PREFIX]
1449 By default, \`make install' will install all the files in
1450 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1451 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1452 for instance \`--prefix=\$HOME'.
1454 For better control, use the options below.
1456 Fine tuning of the installation directories:
1457 --bindir=DIR user executables [EPREFIX/bin]
1458 --sbindir=DIR system admin executables [EPREFIX/sbin]
1459 --libexecdir=DIR program executables [EPREFIX/libexec]
1460 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1461 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1462 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1463 --libdir=DIR object code libraries [EPREFIX/lib]
1464 --includedir=DIR C header files [PREFIX/include]
1465 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1466 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1467 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1468 --infodir=DIR info documentation [DATAROOTDIR/info]
1469 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1470 --mandir=DIR man documentation [DATAROOTDIR/man]
1471 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1472 --htmldir=DIR html documentation [DOCDIR]
1473 --dvidir=DIR dvi documentation [DOCDIR]
1474 --pdfdir=DIR pdf documentation [DOCDIR]
1475 --psdir=DIR ps documentation [DOCDIR]
1476 _ACEOF
1478 cat <<\_ACEOF
1480 X features:
1481 --x-includes=DIR X include files are in DIR
1482 --x-libraries=DIR X library files are in DIR
1484 System types:
1485 --build=BUILD configure for building on BUILD [guessed]
1486 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1487 _ACEOF
1490 if test -n "$ac_init_help"; then
1492 cat <<\_ACEOF
1494 Optional Features:
1495 --disable-option-checking ignore unrecognized --enable/--with options
1496 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1497 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1498 --enable-build-type=TYPE
1499 Select the build type. Available types are:
1500 personal, nightly, snapshot, milestone, release. Do
1501 NOT use this option unless you know what you are
1502 doing! (default=personal)
1503 --enable-debug=list Enable different types of debug. Commas or
1504 whitespaces can be used to separate the items in the
1505 list. Available types of debug are: all, none,
1506 messages, stack, mungwall, modules, symbols. If no
1507 list is provided then "all" is assumed.
1508 (default=none)
1509 --enable-crosstools Build cross-compiler toolchains if necessary
1510 (default=no).
1511 --enable-distcc Use distcc as a front end to the compiler
1512 (default=no).
1513 --enable-ccache Use ccache as a front end to the compiler
1514 (default=no).
1515 --enable-target-variant=NAME
1516 Enable a specific target variant(default=none)
1517 --enable-includes=dir Alternative system include directory
1518 --enable-palm-debug-hack
1519 Enable palm debug output hack in palm native
1520 (default=no)
1521 --enable-nesting-supervisor
1522 Enable nesting supervisor support in unix
1523 (default=no)
1524 --disable-mmu Disable MMU support (default=enabled)
1525 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1526 --enable-x11-shm use X11 shared memory (default=auto)
1527 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1528 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1529 --disable-sdltest Do not try to compile and run a test SDL program
1530 --enable-dbus Enable DBUS support via dbus.library (default=no)
1532 Optional Packages:
1533 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1534 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1535 --with-gcc-version=VERSION
1536 Use host gcc-VERSION for building AROS
1537 --with-optimization=FLAGS
1538 Use optimization flags FLAGS (default=-O2).
1539 --with-paranoia=FLAGS CC flags to enable paranoia
1540 --with-xcode=PATH Specify XCode path for iOS targets
1541 (default=/Developer).
1542 --with-ios-version=VERSION
1543 Specify minimum supported iOS version (default=3.0).
1544 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1545 --with-sdk=PATH Specify Android SDK path
1546 (default=$default_android_sdk).
1547 --with-ndk=PATH Specify Android NDK path
1548 (default=$default_android_ndk).
1549 --with-android-version=VERSION
1550 Use Android platform VERSION (default=2.2).
1551 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1552 --with-portssources=DIR Where to download sourcecode for external ports
1553 --with-bootloader=NAME Use a specific bootloader
1554 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1555 --with-theme=NAME Use a specific GUI Theme
1556 --with-resolution=XRESxYRESxDEPTH
1557 Default resolution of the initial WorkbenchScreen
1558 --with-serial-debug Enable serial debug output in native (default=no)
1559 --with-x use the X Window System
1560 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1561 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1563 Some influential environment variables:
1564 CC C compiler command
1565 CFLAGS C compiler flags
1566 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1567 nonstandard directory <lib dir>
1568 LIBS libraries to pass to the linker, e.g. -l<library>
1569 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1570 you have headers in a nonstandard directory <include dir>
1571 CPP C preprocessor
1572 XMKMF Path to xmkmf, Makefile generator for X Window System
1574 Use these variables to override the choices made by `configure' or to help
1575 it to find libraries and programs with nonstandard names/locations.
1577 Report bugs to the package provider.
1578 _ACEOF
1579 ac_status=$?
1582 if test "$ac_init_help" = "recursive"; then
1583 # If there are subdirs, report their specific --help.
1584 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1585 test -d "$ac_dir" ||
1586 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1587 continue
1588 ac_builddir=.
1590 case "$ac_dir" in
1591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1594 # A ".." for each directory in $ac_dir_suffix.
1595 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1596 case $ac_top_builddir_sub in
1597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1599 esac ;;
1600 esac
1601 ac_abs_top_builddir=$ac_pwd
1602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1603 # for backward compatibility:
1604 ac_top_builddir=$ac_top_build_prefix
1606 case $srcdir in
1607 .) # We are building in place.
1608 ac_srcdir=.
1609 ac_top_srcdir=$ac_top_builddir_sub
1610 ac_abs_top_srcdir=$ac_pwd ;;
1611 [\\/]* | ?:[\\/]* ) # Absolute name.
1612 ac_srcdir=$srcdir$ac_dir_suffix;
1613 ac_top_srcdir=$srcdir
1614 ac_abs_top_srcdir=$srcdir ;;
1615 *) # Relative name.
1616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1617 ac_top_srcdir=$ac_top_build_prefix$srcdir
1618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1619 esac
1620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1622 cd "$ac_dir" || { ac_status=$?; continue; }
1623 # Check for guested configure.
1624 if test -f "$ac_srcdir/configure.gnu"; then
1625 echo &&
1626 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1627 elif test -f "$ac_srcdir/configure"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure" --help=recursive
1630 else
1631 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1632 fi || ac_status=$?
1633 cd "$ac_pwd" || { ac_status=$?; break; }
1634 done
1637 test -n "$ac_init_help" && exit $ac_status
1638 if $ac_init_version; then
1639 cat <<\_ACEOF
1640 configure
1641 generated by GNU Autoconf 2.68
1643 Copyright (C) 2010 Free Software Foundation, Inc.
1644 This configure script is free software; the Free Software Foundation
1645 gives unlimited permission to copy, distribute and modify it.
1646 _ACEOF
1647 exit
1650 ## ------------------------ ##
1651 ## Autoconf initialization. ##
1652 ## ------------------------ ##
1654 # ac_fn_c_try_compile LINENO
1655 # --------------------------
1656 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1657 ac_fn_c_try_compile ()
1659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1660 rm -f conftest.$ac_objext
1661 if { { ac_try="$ac_compile"
1662 case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_compile") 2>conftest.err
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } && {
1677 test -z "$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1679 } && test -s conftest.$ac_objext; then :
1680 ac_retval=0
1681 else
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1685 ac_retval=1
1687 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1688 as_fn_set_status $ac_retval
1690 } # ac_fn_c_try_compile
1692 # ac_fn_c_try_cpp LINENO
1693 # ----------------------
1694 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_cpp ()
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } > conftest.i && {
1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1722 ac_retval=1
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1725 as_fn_set_status $ac_retval
1727 } # ac_fn_c_try_cpp
1729 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1732 # the include files in INCLUDES and setting the cache variable VAR
1733 # accordingly.
1734 ac_fn_c_check_header_mongrel ()
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if eval \${$3+:} false; then :
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1743 eval ac_res=\$$3
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 else
1747 # Is the header compilable?
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1749 $as_echo_n "checking $2 usability... " >&6; }
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1753 #include <$2>
1754 _ACEOF
1755 if ac_fn_c_try_compile "$LINENO"; then :
1756 ac_header_compiler=yes
1757 else
1758 ac_header_compiler=no
1760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1762 $as_echo "$ac_header_compiler" >&6; }
1764 # Is the header present?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1766 $as_echo_n "checking $2 presence... " >&6; }
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_c_try_cpp "$LINENO"; then :
1772 ac_header_preproc=yes
1773 else
1774 ac_header_preproc=no
1776 rm -f conftest.err conftest.i conftest.$ac_ext
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1778 $as_echo "$ac_header_preproc" >&6; }
1780 # So? What about this header?
1781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1782 yes:no: )
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1784 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1788 no:yes:* )
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1790 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1792 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1794 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1796 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1800 esac
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1805 else
1806 eval "$3=\$ac_header_compiler"
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1814 } # ac_fn_c_check_header_mongrel
1816 # ac_fn_c_try_run LINENO
1817 # ----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1819 # that executables *can* be run.
1820 ac_fn_c_try_run ()
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>&5
1831 ac_status=$?
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1834 { { case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_try") 2>&5
1841 ac_status=$?
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; }; }; then :
1844 ac_retval=0
1845 else
1846 $as_echo "$as_me: program exited with status $ac_status" >&5
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1850 ac_retval=$ac_status
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1856 } # ac_fn_c_try_run
1858 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1859 # -------------------------------------------------------
1860 # Tests whether HEADER exists and can be compiled using the include files in
1861 # INCLUDES, setting the cache variable VAR accordingly.
1862 ac_fn_c_check_header_compile ()
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if eval \${$3+:} false; then :
1868 $as_echo_n "(cached) " >&6
1869 else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1873 #include <$2>
1874 _ACEOF
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876 eval "$3=yes"
1877 else
1878 eval "$3=no"
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 eval ac_res=\$$3
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 } # ac_fn_c_check_header_compile
1889 # ac_fn_c_try_link LINENO
1890 # -----------------------
1891 # Try to link conftest.$ac_ext, and return whether this succeeded.
1892 ac_fn_c_try_link ()
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 rm -f conftest.$ac_objext conftest$ac_exeext
1896 if { { ac_try="$ac_link"
1897 case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900 esac
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>conftest.err
1904 ac_status=$?
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_c_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest$ac_exeext && {
1915 test "$cross_compiling" = yes ||
1916 $as_test_x conftest$ac_exeext
1917 }; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=1
1925 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1926 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1927 # interfere with the next link command; also delete a directory that is
1928 # left behind by Apple's compiler. We do this before executing the actions.
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
1933 } # ac_fn_c_try_link
1935 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1936 # ----------------------------------------------------
1937 # Tries to find if the field MEMBER exists in type AGGR, after including
1938 # INCLUDES, setting cache variable VAR accordingly.
1939 ac_fn_c_check_member ()
1941 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1943 $as_echo_n "checking for $2.$3... " >&6; }
1944 if eval \${$4+:} false; then :
1945 $as_echo_n "(cached) " >&6
1946 else
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1951 main ()
1953 static $2 ac_aggr;
1954 if (ac_aggr.$3)
1955 return 0;
1957 return 0;
1959 _ACEOF
1960 if ac_fn_c_try_compile "$LINENO"; then :
1961 eval "$4=yes"
1962 else
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1967 main ()
1969 static $2 ac_aggr;
1970 if (sizeof ac_aggr.$3)
1971 return 0;
1973 return 0;
1975 _ACEOF
1976 if ac_fn_c_try_compile "$LINENO"; then :
1977 eval "$4=yes"
1978 else
1979 eval "$4=no"
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 eval ac_res=\$$4
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1990 } # ac_fn_c_check_member
1992 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1993 # ---------------------------------------------
1994 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1995 # accordingly.
1996 ac_fn_c_check_decl ()
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 as_decl_name=`echo $2|sed 's/ *(.*//'`
2000 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2002 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2003 if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2005 else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2010 main ()
2012 #ifndef $as_decl_name
2013 #ifdef __cplusplus
2014 (void) $as_decl_use;
2015 #else
2016 (void) $as_decl_name;
2017 #endif
2018 #endif
2021 return 0;
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025 eval "$3=yes"
2026 else
2027 eval "$3=no"
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 eval ac_res=\$$3
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2036 } # ac_fn_c_check_decl
2038 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2039 # -------------------------------------------
2040 # Tests whether TYPE exists after having included INCLUDES, setting cache
2041 # variable VAR accordingly.
2042 ac_fn_c_check_type ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if eval \${$3+:} false; then :
2048 $as_echo_n "(cached) " >&6
2049 else
2050 eval "$3=no"
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2055 main ()
2057 if (sizeof ($2))
2058 return 0;
2060 return 0;
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 if (sizeof (($2)))
2071 return 0;
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2078 else
2079 eval "$3=yes"
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 eval ac_res=\$$3
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 } # ac_fn_c_check_type
2092 # ac_fn_c_check_func LINENO FUNC VAR
2093 # ----------------------------------
2094 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2095 ac_fn_c_check_func ()
2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2099 $as_echo_n "checking for $2... " >&6; }
2100 if eval \${$3+:} false; then :
2101 $as_echo_n "(cached) " >&6
2102 else
2103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2104 /* end confdefs.h. */
2105 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2106 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2107 #define $2 innocuous_$2
2109 /* System header to define __stub macros and hopefully few prototypes,
2110 which can conflict with char $2 (); below.
2111 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2112 <limits.h> exists even on freestanding compilers. */
2114 #ifdef __STDC__
2115 # include <limits.h>
2116 #else
2117 # include <assert.h>
2118 #endif
2120 #undef $2
2122 /* Override any GCC internal prototype to avoid an error.
2123 Use char because int might match the return type of a GCC
2124 builtin and then its argument prototype would still apply. */
2125 #ifdef __cplusplus
2126 extern "C"
2127 #endif
2128 char $2 ();
2129 /* The GNU C library defines this for functions which it implements
2130 to always fail with ENOSYS. Some functions are actually named
2131 something starting with __ and the normal name is an alias. */
2132 #if defined __stub_$2 || defined __stub___$2
2133 choke me
2134 #endif
2137 main ()
2139 return $2 ();
2141 return 0;
2143 _ACEOF
2144 if ac_fn_c_try_link "$LINENO"; then :
2145 eval "$3=yes"
2146 else
2147 eval "$3=no"
2149 rm -f core conftest.err conftest.$ac_objext \
2150 conftest$ac_exeext conftest.$ac_ext
2152 eval ac_res=\$$3
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157 } # ac_fn_c_check_func
2158 cat >config.log <<_ACEOF
2159 This file contains any messages produced by compilers while
2160 running configure, to aid debugging if configure makes a mistake.
2162 It was created by $as_me, which was
2163 generated by GNU Autoconf 2.68. Invocation command line was
2165 $ $0 $@
2167 _ACEOF
2168 exec 5>>config.log
2170 cat <<_ASUNAME
2171 ## --------- ##
2172 ## Platform. ##
2173 ## --------- ##
2175 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2176 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2177 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2178 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2179 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2181 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2182 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2184 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2185 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2186 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2187 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2188 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2189 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2190 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2192 _ASUNAME
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2195 for as_dir in $PATH
2197 IFS=$as_save_IFS
2198 test -z "$as_dir" && as_dir=.
2199 $as_echo "PATH: $as_dir"
2200 done
2201 IFS=$as_save_IFS
2203 } >&5
2205 cat >&5 <<_ACEOF
2208 ## ----------- ##
2209 ## Core tests. ##
2210 ## ----------- ##
2212 _ACEOF
2215 # Keep a trace of the command line.
2216 # Strip out --no-create and --no-recursion so they do not pile up.
2217 # Strip out --silent because we don't want to record it for future runs.
2218 # Also quote any args containing shell meta-characters.
2219 # Make two passes to allow for proper duplicate-argument suppression.
2220 ac_configure_args=
2221 ac_configure_args0=
2222 ac_configure_args1=
2223 ac_must_keep_next=false
2224 for ac_pass in 1 2
2226 for ac_arg
2228 case $ac_arg in
2229 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2231 | -silent | --silent | --silen | --sile | --sil)
2232 continue ;;
2233 *\'*)
2234 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2235 esac
2236 case $ac_pass in
2237 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2239 as_fn_append ac_configure_args1 " '$ac_arg'"
2240 if test $ac_must_keep_next = true; then
2241 ac_must_keep_next=false # Got value, back to normal.
2242 else
2243 case $ac_arg in
2244 *=* | --config-cache | -C | -disable-* | --disable-* \
2245 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2246 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2247 | -with-* | --with-* | -without-* | --without-* | --x)
2248 case "$ac_configure_args0 " in
2249 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2250 esac
2252 -* ) ac_must_keep_next=true ;;
2253 esac
2255 as_fn_append ac_configure_args " '$ac_arg'"
2257 esac
2258 done
2259 done
2260 { ac_configure_args0=; unset ac_configure_args0;}
2261 { ac_configure_args1=; unset ac_configure_args1;}
2263 # When interrupted or exit'd, cleanup temporary files, and complete
2264 # config.log. We remove comments because anyway the quotes in there
2265 # would cause problems or look ugly.
2266 # WARNING: Use '\'' to represent an apostrophe within the trap.
2267 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2268 trap 'exit_status=$?
2269 # Save into config.log some information that might help in debugging.
2271 echo
2273 $as_echo "## ---------------- ##
2274 ## Cache variables. ##
2275 ## ---------------- ##"
2276 echo
2277 # The following way of writing the cache mishandles newlines in values,
2279 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2280 eval ac_val=\$$ac_var
2281 case $ac_val in #(
2282 *${as_nl}*)
2283 case $ac_var in #(
2284 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2285 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2286 esac
2287 case $ac_var in #(
2288 _ | IFS | as_nl) ;; #(
2289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2290 *) { eval $ac_var=; unset $ac_var;} ;;
2291 esac ;;
2292 esac
2293 done
2294 (set) 2>&1 |
2295 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2296 *${as_nl}ac_space=\ *)
2297 sed -n \
2298 "s/'\''/'\''\\\\'\'''\''/g;
2299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2300 ;; #(
2302 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2304 esac |
2305 sort
2307 echo
2309 $as_echo "## ----------------- ##
2310 ## Output variables. ##
2311 ## ----------------- ##"
2312 echo
2313 for ac_var in $ac_subst_vars
2315 eval ac_val=\$$ac_var
2316 case $ac_val in
2317 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2318 esac
2319 $as_echo "$ac_var='\''$ac_val'\''"
2320 done | sort
2321 echo
2323 if test -n "$ac_subst_files"; then
2324 $as_echo "## ------------------- ##
2325 ## File substitutions. ##
2326 ## ------------------- ##"
2327 echo
2328 for ac_var in $ac_subst_files
2330 eval ac_val=\$$ac_var
2331 case $ac_val in
2332 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2333 esac
2334 $as_echo "$ac_var='\''$ac_val'\''"
2335 done | sort
2336 echo
2339 if test -s confdefs.h; then
2340 $as_echo "## ----------- ##
2341 ## confdefs.h. ##
2342 ## ----------- ##"
2343 echo
2344 cat confdefs.h
2345 echo
2347 test "$ac_signal" != 0 &&
2348 $as_echo "$as_me: caught signal $ac_signal"
2349 $as_echo "$as_me: exit $exit_status"
2350 } >&5
2351 rm -f core *.core core.conftest.* &&
2352 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2353 exit $exit_status
2355 for ac_signal in 1 2 13 15; do
2356 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2357 done
2358 ac_signal=0
2360 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2361 rm -f -r conftest* confdefs.h
2363 $as_echo "/* confdefs.h */" > confdefs.h
2365 # Predefined preprocessor variables.
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_NAME "$PACKAGE_NAME"
2369 _ACEOF
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2373 _ACEOF
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2377 _ACEOF
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_STRING "$PACKAGE_STRING"
2381 _ACEOF
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2385 _ACEOF
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_URL "$PACKAGE_URL"
2389 _ACEOF
2392 # Let the site file select an alternate cache file if it wants to.
2393 # Prefer an explicitly selected file to automatically selected ones.
2394 ac_site_file1=NONE
2395 ac_site_file2=NONE
2396 if test -n "$CONFIG_SITE"; then
2397 # We do not want a PATH search for config.site.
2398 case $CONFIG_SITE in #((
2399 -*) ac_site_file1=./$CONFIG_SITE;;
2400 */*) ac_site_file1=$CONFIG_SITE;;
2401 *) ac_site_file1=./$CONFIG_SITE;;
2402 esac
2403 elif test "x$prefix" != xNONE; then
2404 ac_site_file1=$prefix/share/config.site
2405 ac_site_file2=$prefix/etc/config.site
2406 else
2407 ac_site_file1=$ac_default_prefix/share/config.site
2408 ac_site_file2=$ac_default_prefix/etc/config.site
2410 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2412 test "x$ac_site_file" = xNONE && continue
2413 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2415 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2416 sed 's/^/| /' "$ac_site_file" >&5
2417 . "$ac_site_file" \
2418 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2420 as_fn_error $? "failed to load site script $ac_site_file
2421 See \`config.log' for more details" "$LINENO" 5; }
2423 done
2425 if test -r "$cache_file"; then
2426 # Some versions of bash will fail to source /dev/null (special files
2427 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2428 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2430 $as_echo "$as_me: loading cache $cache_file" >&6;}
2431 case $cache_file in
2432 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2433 *) . "./$cache_file";;
2434 esac
2436 else
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2438 $as_echo "$as_me: creating cache $cache_file" >&6;}
2439 >$cache_file
2442 as_fn_append ac_header_list " stdlib.h"
2443 as_fn_append ac_header_list " unistd.h"
2444 as_fn_append ac_header_list " sys/param.h"
2445 # Check that the precious variables saved in the cache have kept the same
2446 # value.
2447 ac_cache_corrupted=false
2448 for ac_var in $ac_precious_vars; do
2449 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2450 eval ac_new_set=\$ac_env_${ac_var}_set
2451 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2452 eval ac_new_val=\$ac_env_${ac_var}_value
2453 case $ac_old_set,$ac_new_set in
2454 set,)
2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2456 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2457 ac_cache_corrupted=: ;;
2458 ,set)
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2460 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2461 ac_cache_corrupted=: ;;
2462 ,);;
2464 if test "x$ac_old_val" != "x$ac_new_val"; then
2465 # differences in whitespace do not lead to failure.
2466 ac_old_val_w=`echo x $ac_old_val`
2467 ac_new_val_w=`echo x $ac_new_val`
2468 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2470 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2471 ac_cache_corrupted=:
2472 else
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2474 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2475 eval $ac_var=\$ac_old_val
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2478 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2480 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2481 fi;;
2482 esac
2483 # Pass precious variables to config.status.
2484 if test "$ac_new_set" = set; then
2485 case $ac_new_val in
2486 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2487 *) ac_arg=$ac_var=$ac_new_val ;;
2488 esac
2489 case " $ac_configure_args " in
2490 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2491 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2492 esac
2494 done
2495 if $ac_cache_corrupted; then
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2499 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2500 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2502 ## -------------------- ##
2503 ## Main body of script. ##
2504 ## -------------------- ##
2506 ac_ext=c
2507 ac_cpp='$CPP $CPPFLAGS'
2508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514 ac_aux_dir=
2515 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2516 if test -f "$ac_dir/install-sh"; then
2517 ac_aux_dir=$ac_dir
2518 ac_install_sh="$ac_aux_dir/install-sh -c"
2519 break
2520 elif test -f "$ac_dir/install.sh"; then
2521 ac_aux_dir=$ac_dir
2522 ac_install_sh="$ac_aux_dir/install.sh -c"
2523 break
2524 elif test -f "$ac_dir/shtool"; then
2525 ac_aux_dir=$ac_dir
2526 ac_install_sh="$ac_aux_dir/shtool install -c"
2527 break
2529 done
2530 if test -z "$ac_aux_dir"; then
2531 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2534 # These three variables are undocumented and unsupported,
2535 # and are intended to be withdrawn in a future Autoconf release.
2536 # They can cause serious problems if a builder's source tree is in a directory
2537 # whose full name contains unusual characters.
2538 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2539 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2540 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2544 # Check what host we are running on.
2545 # If a target is not suggested, we use this one.
2546 # Note that what we call a target, Autoconf calls a host.
2547 # Make sure we can run config.sub.
2548 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2549 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2552 $as_echo_n "checking build system type... " >&6; }
2553 if ${ac_cv_build+:} false; then :
2554 $as_echo_n "(cached) " >&6
2555 else
2556 ac_build_alias=$build_alias
2557 test "x$ac_build_alias" = x &&
2558 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2559 test "x$ac_build_alias" = x &&
2560 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2561 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2562 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2566 $as_echo "$ac_cv_build" >&6; }
2567 case $ac_cv_build in
2568 *-*-*) ;;
2569 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2570 esac
2571 build=$ac_cv_build
2572 ac_save_IFS=$IFS; IFS='-'
2573 set x $ac_cv_build
2574 shift
2575 build_cpu=$1
2576 build_vendor=$2
2577 shift; shift
2578 # Remember, the first character of IFS is used to create $*,
2579 # except with old shells:
2580 build_os=$*
2581 IFS=$ac_save_IFS
2582 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2586 $as_echo_n "checking host system type... " >&6; }
2587 if ${ac_cv_host+:} false; then :
2588 $as_echo_n "(cached) " >&6
2589 else
2590 if test "x$host_alias" = x; then
2591 ac_cv_host=$ac_cv_build
2592 else
2593 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2594 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2599 $as_echo "$ac_cv_host" >&6; }
2600 case $ac_cv_host in
2601 *-*-*) ;;
2602 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2603 esac
2604 host=$ac_cv_host
2605 ac_save_IFS=$IFS; IFS='-'
2606 set x $ac_cv_host
2607 shift
2608 host_cpu=$1
2609 host_vendor=$2
2610 shift; shift
2611 # Remember, the first character of IFS is used to create $*,
2612 # except with old shells:
2613 host_os=$*
2614 IFS=$ac_save_IFS
2615 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2619 # The AROS target is slightly different to the normal GNU style
2620 # format. We don't have the middle part, and we reverse the order
2621 # of the $(CPU) and $(OS) bits.
2623 # Don't strip the version of the target yet, it might be
2624 # useful on some systems.
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2627 $as_echo_n "checking for AROS style target... " >&6; }
2629 if test "$target" = "NONE" ; then
2630 target=$host_os-$host_cpu
2631 else
2632 if test "$target" = "" ; then
2633 target=$host_os-$host_cpu
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2637 $as_echo "$target" >&6; }
2639 if test "$host_os" = "mingw32" ; then
2640 PWDCMD="pwd -W"
2643 #don't know where else to put this...
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Building AROS in .. " >&5
2645 $as_echo_n "checking Building AROS in .. ... " >&6; }
2646 AROS_BUILDDIR=`${PWDCMD-pwd}`
2647 AROS_BUILDDIR_UNIX=${PWD}
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2649 $as_echo "$AROS_BUILDDIR" >&6; }
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS Source in .. " >&5
2652 $as_echo_n "checking AROS Source in .. ... " >&6; }
2653 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2654 SRCDIR=${srcpwd}
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2656 $as_echo "$SRCDIR" >&6; }
2658 # Parse the target field into something useful.
2660 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2661 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2664 aros_default_wbwidth=800
2665 aros_default_wbheight=600
2666 aros_default_wbdepth=4
2669 # The first step is to find the host binaries.
2670 # Check for a compiler.
2671 ac_ext=c
2672 ac_cpp='$CPP $CPPFLAGS'
2673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2676 if test -n "$ac_tool_prefix"; then
2677 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2678 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2680 $as_echo_n "checking for $ac_word... " >&6; }
2681 if ${ac_cv_prog_CC+:} false; then :
2682 $as_echo_n "(cached) " >&6
2683 else
2684 if test -n "$CC"; then
2685 ac_cv_prog_CC="$CC" # Let the user override the test.
2686 else
2687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2688 for as_dir in $PATH
2690 IFS=$as_save_IFS
2691 test -z "$as_dir" && as_dir=.
2692 for ac_exec_ext in '' $ac_executable_extensions; do
2693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2694 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2696 break 2
2698 done
2699 done
2700 IFS=$as_save_IFS
2704 CC=$ac_cv_prog_CC
2705 if test -n "$CC"; then
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2707 $as_echo "$CC" >&6; }
2708 else
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2710 $as_echo "no" >&6; }
2715 if test -z "$ac_cv_prog_CC"; then
2716 ac_ct_CC=$CC
2717 # Extract the first word of "gcc", so it can be a program name with args.
2718 set dummy gcc; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2722 $as_echo_n "(cached) " >&6
2723 else
2724 if test -n "$ac_ct_CC"; then
2725 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2726 else
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2728 for as_dir in $PATH
2730 IFS=$as_save_IFS
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_ac_ct_CC="gcc"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 break 2
2738 done
2739 done
2740 IFS=$as_save_IFS
2744 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2745 if test -n "$ac_ct_CC"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2747 $as_echo "$ac_ct_CC" >&6; }
2748 else
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2753 if test "x$ac_ct_CC" = x; then
2754 CC=""
2755 else
2756 case $cross_compiling:$ac_tool_warned in
2757 yes:)
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2760 ac_tool_warned=yes ;;
2761 esac
2762 CC=$ac_ct_CC
2764 else
2765 CC="$ac_cv_prog_CC"
2768 if test -z "$CC"; then
2769 if test -n "$ac_tool_prefix"; then
2770 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2771 set dummy ${ac_tool_prefix}cc; ac_word=$2
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2773 $as_echo_n "checking for $ac_word... " >&6; }
2774 if ${ac_cv_prog_CC+:} false; then :
2775 $as_echo_n "(cached) " >&6
2776 else
2777 if test -n "$CC"; then
2778 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 else
2780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 for as_dir in $PATH
2783 IFS=$as_save_IFS
2784 test -z "$as_dir" && as_dir=.
2785 for ac_exec_ext in '' $ac_executable_extensions; do
2786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2787 ac_cv_prog_CC="${ac_tool_prefix}cc"
2788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 break 2
2791 done
2792 done
2793 IFS=$as_save_IFS
2797 CC=$ac_cv_prog_CC
2798 if test -n "$CC"; then
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2800 $as_echo "$CC" >&6; }
2801 else
2802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2803 $as_echo "no" >&6; }
2809 if test -z "$CC"; then
2810 # Extract the first word of "cc", so it can be a program name with args.
2811 set dummy cc; ac_word=$2
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813 $as_echo_n "checking for $ac_word... " >&6; }
2814 if ${ac_cv_prog_CC+:} false; then :
2815 $as_echo_n "(cached) " >&6
2816 else
2817 if test -n "$CC"; then
2818 ac_cv_prog_CC="$CC" # Let the user override the test.
2819 else
2820 ac_prog_rejected=no
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2829 ac_prog_rejected=yes
2830 continue
2832 ac_cv_prog_CC="cc"
2833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2836 done
2837 done
2838 IFS=$as_save_IFS
2840 if test $ac_prog_rejected = yes; then
2841 # We found a bogon in the path, so make sure we never use it.
2842 set dummy $ac_cv_prog_CC
2843 shift
2844 if test $# != 0; then
2845 # We chose a different compiler from the bogus one.
2846 # However, it has the same basename, so the bogon will be chosen
2847 # first if we set CC to just the basename; use the full file name.
2848 shift
2849 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2854 CC=$ac_cv_prog_CC
2855 if test -n "$CC"; then
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2857 $as_echo "$CC" >&6; }
2858 else
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2860 $as_echo "no" >&6; }
2865 if test -z "$CC"; then
2866 if test -n "$ac_tool_prefix"; then
2867 for ac_prog in cl.exe
2869 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2870 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2872 $as_echo_n "checking for $ac_word... " >&6; }
2873 if ${ac_cv_prog_CC+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if test -n "$CC"; then
2877 ac_cv_prog_CC="$CC" # Let the user override the test.
2878 else
2879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2880 for as_dir in $PATH
2882 IFS=$as_save_IFS
2883 test -z "$as_dir" && as_dir=.
2884 for ac_exec_ext in '' $ac_executable_extensions; do
2885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2886 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2888 break 2
2890 done
2891 done
2892 IFS=$as_save_IFS
2896 CC=$ac_cv_prog_CC
2897 if test -n "$CC"; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2899 $as_echo "$CC" >&6; }
2900 else
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2902 $as_echo "no" >&6; }
2906 test -n "$CC" && break
2907 done
2909 if test -z "$CC"; then
2910 ac_ct_CC=$CC
2911 for ac_prog in cl.exe
2913 # Extract the first word of "$ac_prog", so it can be a program name with args.
2914 set dummy $ac_prog; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2918 $as_echo_n "(cached) " >&6
2919 else
2920 if test -n "$ac_ct_CC"; then
2921 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930 ac_cv_prog_ac_ct_CC="$ac_prog"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2934 done
2935 done
2936 IFS=$as_save_IFS
2940 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2941 if test -n "$ac_ct_CC"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2943 $as_echo "$ac_ct_CC" >&6; }
2944 else
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2950 test -n "$ac_ct_CC" && break
2951 done
2953 if test "x$ac_ct_CC" = x; then
2954 CC=""
2955 else
2956 case $cross_compiling:$ac_tool_warned in
2957 yes:)
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2960 ac_tool_warned=yes ;;
2961 esac
2962 CC=$ac_ct_CC
2969 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2971 as_fn_error $? "no acceptable C compiler found in \$PATH
2972 See \`config.log' for more details" "$LINENO" 5; }
2974 # Provide some information about the compiler.
2975 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2976 set X $ac_compile
2977 ac_compiler=$2
2978 for ac_option in --version -v -V -qversion; do
2979 { { ac_try="$ac_compiler $ac_option >&5"
2980 case "(($ac_try" in
2981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2982 *) ac_try_echo=$ac_try;;
2983 esac
2984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2985 $as_echo "$ac_try_echo"; } >&5
2986 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2987 ac_status=$?
2988 if test -s conftest.err; then
2989 sed '10a\
2990 ... rest of stderr output deleted ...
2991 10q' conftest.err >conftest.er1
2992 cat conftest.er1 >&5
2994 rm -f conftest.er1 conftest.err
2995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2996 test $ac_status = 0; }
2997 done
2999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000 /* end confdefs.h. */
3003 main ()
3007 return 0;
3009 _ACEOF
3010 ac_clean_files_save=$ac_clean_files
3011 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3012 # Try to create an executable without -o first, disregard a.out.
3013 # It will help us diagnose broken compilers, and finding out an intuition
3014 # of exeext.
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3016 $as_echo_n "checking whether the C compiler works... " >&6; }
3017 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3019 # The possible output files:
3020 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3022 ac_rmfiles=
3023 for ac_file in $ac_files
3025 case $ac_file in
3026 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3027 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3028 esac
3029 done
3030 rm -f $ac_rmfiles
3032 if { { ac_try="$ac_link_default"
3033 case "(($ac_try" in
3034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3036 esac
3037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3038 $as_echo "$ac_try_echo"; } >&5
3039 (eval "$ac_link_default") 2>&5
3040 ac_status=$?
3041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3042 test $ac_status = 0; }; then :
3043 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3044 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3045 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3046 # so that the user can short-circuit this test for compilers unknown to
3047 # Autoconf.
3048 for ac_file in $ac_files ''
3050 test -f "$ac_file" || continue
3051 case $ac_file in
3052 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3054 [ab].out )
3055 # We found the default executable, but exeext='' is most
3056 # certainly right.
3057 break;;
3058 *.* )
3059 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3060 then :; else
3061 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3063 # We set ac_cv_exeext here because the later test for it is not
3064 # safe: cross compilers may not add the suffix if given an `-o'
3065 # argument, so we may need to know it at that point already.
3066 # Even if this section looks crufty: it has the advantage of
3067 # actually working.
3068 break;;
3070 break;;
3071 esac
3072 done
3073 test "$ac_cv_exeext" = no && ac_cv_exeext=
3075 else
3076 ac_file=''
3078 if test -z "$ac_file"; then :
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3081 $as_echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 as_fn_error 77 "C compiler cannot create executables
3087 See \`config.log' for more details" "$LINENO" 5; }
3088 else
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090 $as_echo "yes" >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3093 $as_echo_n "checking for C compiler default output file name... " >&6; }
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3095 $as_echo "$ac_file" >&6; }
3096 ac_exeext=$ac_cv_exeext
3098 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3099 ac_clean_files=$ac_clean_files_save
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3101 $as_echo_n "checking for suffix of executables... " >&6; }
3102 if { { ac_try="$ac_link"
3103 case "(($ac_try" in
3104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3105 *) ac_try_echo=$ac_try;;
3106 esac
3107 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3108 $as_echo "$ac_try_echo"; } >&5
3109 (eval "$ac_link") 2>&5
3110 ac_status=$?
3111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3112 test $ac_status = 0; }; then :
3113 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3114 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3115 # work properly (i.e., refer to `conftest.exe'), while it won't with
3116 # `rm'.
3117 for ac_file in conftest.exe conftest conftest.*; do
3118 test -f "$ac_file" || continue
3119 case $ac_file in
3120 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3121 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3122 break;;
3123 * ) break;;
3124 esac
3125 done
3126 else
3127 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3128 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3129 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3130 See \`config.log' for more details" "$LINENO" 5; }
3132 rm -f conftest conftest$ac_cv_exeext
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3134 $as_echo "$ac_cv_exeext" >&6; }
3136 rm -f conftest.$ac_ext
3137 EXEEXT=$ac_cv_exeext
3138 ac_exeext=$EXEEXT
3139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3140 /* end confdefs.h. */
3141 #include <stdio.h>
3143 main ()
3145 FILE *f = fopen ("conftest.out", "w");
3146 return ferror (f) || fclose (f) != 0;
3149 return 0;
3151 _ACEOF
3152 ac_clean_files="$ac_clean_files conftest.out"
3153 # Check that the compiler produces executables we can run. If not, either
3154 # the compiler is broken, or we cross compile.
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3156 $as_echo_n "checking whether we are cross compiling... " >&6; }
3157 if test "$cross_compiling" != yes; then
3158 { { ac_try="$ac_link"
3159 case "(($ac_try" in
3160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3161 *) ac_try_echo=$ac_try;;
3162 esac
3163 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3164 $as_echo "$ac_try_echo"; } >&5
3165 (eval "$ac_link") 2>&5
3166 ac_status=$?
3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3168 test $ac_status = 0; }
3169 if { ac_try='./conftest$ac_cv_exeext'
3170 { { case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176 (eval "$ac_try") 2>&5
3177 ac_status=$?
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179 test $ac_status = 0; }; }; then
3180 cross_compiling=no
3181 else
3182 if test "$cross_compiling" = maybe; then
3183 cross_compiling=yes
3184 else
3185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3187 as_fn_error $? "cannot run C compiled programs.
3188 If you meant to cross compile, use \`--host'.
3189 See \`config.log' for more details" "$LINENO" 5; }
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3194 $as_echo "$cross_compiling" >&6; }
3196 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3197 ac_clean_files=$ac_clean_files_save
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3199 $as_echo_n "checking for suffix of object files... " >&6; }
3200 if ${ac_cv_objext+:} false; then :
3201 $as_echo_n "(cached) " >&6
3202 else
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3207 main ()
3211 return 0;
3213 _ACEOF
3214 rm -f conftest.o conftest.obj
3215 if { { ac_try="$ac_compile"
3216 case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219 esac
3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221 $as_echo "$ac_try_echo"; } >&5
3222 (eval "$ac_compile") 2>&5
3223 ac_status=$?
3224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }; then :
3226 for ac_file in conftest.o conftest.obj conftest.*; do
3227 test -f "$ac_file" || continue;
3228 case $ac_file in
3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3230 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3231 break;;
3232 esac
3233 done
3234 else
3235 $as_echo "$as_me: failed program was:" >&5
3236 sed 's/^/| /' conftest.$ac_ext >&5
3238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3240 as_fn_error $? "cannot compute suffix of object files: cannot compile
3241 See \`config.log' for more details" "$LINENO" 5; }
3243 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3246 $as_echo "$ac_cv_objext" >&6; }
3247 OBJEXT=$ac_cv_objext
3248 ac_objext=$OBJEXT
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3250 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3251 if ${ac_cv_c_compiler_gnu+:} false; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3255 /* end confdefs.h. */
3258 main ()
3260 #ifndef __GNUC__
3261 choke me
3262 #endif
3265 return 0;
3267 _ACEOF
3268 if ac_fn_c_try_compile "$LINENO"; then :
3269 ac_compiler_gnu=yes
3270 else
3271 ac_compiler_gnu=no
3273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3274 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3278 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3279 if test $ac_compiler_gnu = yes; then
3280 GCC=yes
3281 else
3282 GCC=
3284 ac_test_CFLAGS=${CFLAGS+set}
3285 ac_save_CFLAGS=$CFLAGS
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3287 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3288 if ${ac_cv_prog_cc_g+:} false; then :
3289 $as_echo_n "(cached) " >&6
3290 else
3291 ac_save_c_werror_flag=$ac_c_werror_flag
3292 ac_c_werror_flag=yes
3293 ac_cv_prog_cc_g=no
3294 CFLAGS="-g"
3295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h. */
3299 main ()
3303 return 0;
3305 _ACEOF
3306 if ac_fn_c_try_compile "$LINENO"; then :
3307 ac_cv_prog_cc_g=yes
3308 else
3309 CFLAGS=""
3310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3311 /* end confdefs.h. */
3314 main ()
3318 return 0;
3320 _ACEOF
3321 if ac_fn_c_try_compile "$LINENO"; then :
3323 else
3324 ac_c_werror_flag=$ac_save_c_werror_flag
3325 CFLAGS="-g"
3326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3327 /* end confdefs.h. */
3330 main ()
3334 return 0;
3336 _ACEOF
3337 if ac_fn_c_try_compile "$LINENO"; then :
3338 ac_cv_prog_cc_g=yes
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_c_werror_flag=$ac_save_c_werror_flag
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3348 $as_echo "$ac_cv_prog_cc_g" >&6; }
3349 if test "$ac_test_CFLAGS" = set; then
3350 CFLAGS=$ac_save_CFLAGS
3351 elif test $ac_cv_prog_cc_g = yes; then
3352 if test "$GCC" = yes; then
3353 CFLAGS="-g -O2"
3354 else
3355 CFLAGS="-g"
3357 else
3358 if test "$GCC" = yes; then
3359 CFLAGS="-O2"
3360 else
3361 CFLAGS=
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3365 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3366 if ${ac_cv_prog_cc_c89+:} false; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 ac_cv_prog_cc_c89=no
3370 ac_save_CC=$CC
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3373 #include <stdarg.h>
3374 #include <stdio.h>
3375 #include <sys/types.h>
3376 #include <sys/stat.h>
3377 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3378 struct buf { int x; };
3379 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3380 static char *e (p, i)
3381 char **p;
3382 int i;
3384 return p[i];
3386 static char *f (char * (*g) (char **, int), char **p, ...)
3388 char *s;
3389 va_list v;
3390 va_start (v,p);
3391 s = g (p, va_arg (v,int));
3392 va_end (v);
3393 return s;
3396 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3397 function prototypes and stuff, but not '\xHH' hex character constants.
3398 These don't provoke an error unfortunately, instead are silently treated
3399 as 'x'. The following induces an error, until -std is added to get
3400 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3401 array size at least. It's necessary to write '\x00'==0 to get something
3402 that's true only with -std. */
3403 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3405 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3406 inside strings and character constants. */
3407 #define FOO(x) 'x'
3408 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3410 int test (int i, double x);
3411 struct s1 {int (*f) (int a);};
3412 struct s2 {int (*f) (double a);};
3413 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3414 int argc;
3415 char **argv;
3417 main ()
3419 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3421 return 0;
3423 _ACEOF
3424 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3425 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3427 CC="$ac_save_CC $ac_arg"
3428 if ac_fn_c_try_compile "$LINENO"; then :
3429 ac_cv_prog_cc_c89=$ac_arg
3431 rm -f core conftest.err conftest.$ac_objext
3432 test "x$ac_cv_prog_cc_c89" != "xno" && break
3433 done
3434 rm -f conftest.$ac_ext
3435 CC=$ac_save_CC
3438 # AC_CACHE_VAL
3439 case "x$ac_cv_prog_cc_c89" in
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3442 $as_echo "none needed" >&6; } ;;
3443 xno)
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3445 $as_echo "unsupported" >&6; } ;;
3447 CC="$CC $ac_cv_prog_cc_c89"
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3449 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3450 esac
3451 if test "x$ac_cv_prog_cc_c89" != xno; then :
3455 ac_ext=c
3456 ac_cpp='$CPP $CPPFLAGS'
3457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461 case $ac_cv_prog_cc_stdc in #(
3462 no) :
3463 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3464 *) :
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3466 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3467 if ${ac_cv_prog_cc_c99+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 ac_cv_prog_cc_c99=no
3471 ac_save_CC=$CC
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474 #include <stdarg.h>
3475 #include <stdbool.h>
3476 #include <stdlib.h>
3477 #include <wchar.h>
3478 #include <stdio.h>
3480 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3481 #define debug(...) fprintf (stderr, __VA_ARGS__)
3482 #define showlist(...) puts (#__VA_ARGS__)
3483 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3484 static void
3485 test_varargs_macros (void)
3487 int x = 1234;
3488 int y = 5678;
3489 debug ("Flag");
3490 debug ("X = %d\n", x);
3491 showlist (The first, second, and third items.);
3492 report (x>y, "x is %d but y is %d", x, y);
3495 // Check long long types.
3496 #define BIG64 18446744073709551615ull
3497 #define BIG32 4294967295ul
3498 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3499 #if !BIG_OK
3500 your preprocessor is broken;
3501 #endif
3502 #if BIG_OK
3503 #else
3504 your preprocessor is broken;
3505 #endif
3506 static long long int bignum = -9223372036854775807LL;
3507 static unsigned long long int ubignum = BIG64;
3509 struct incomplete_array
3511 int datasize;
3512 double data[];
3515 struct named_init {
3516 int number;
3517 const wchar_t *name;
3518 double average;
3521 typedef const char *ccp;
3523 static inline int
3524 test_restrict (ccp restrict text)
3526 // See if C++-style comments work.
3527 // Iterate through items via the restricted pointer.
3528 // Also check for declarations in for loops.
3529 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3530 continue;
3531 return 0;
3534 // Check varargs and va_copy.
3535 static void
3536 test_varargs (const char *format, ...)
3538 va_list args;
3539 va_start (args, format);
3540 va_list args_copy;
3541 va_copy (args_copy, args);
3543 const char *str;
3544 int number;
3545 float fnumber;
3547 while (*format)
3549 switch (*format++)
3551 case 's': // string
3552 str = va_arg (args_copy, const char *);
3553 break;
3554 case 'd': // int
3555 number = va_arg (args_copy, int);
3556 break;
3557 case 'f': // float
3558 fnumber = va_arg (args_copy, double);
3559 break;
3560 default:
3561 break;
3564 va_end (args_copy);
3565 va_end (args);
3569 main ()
3572 // Check bool.
3573 _Bool success = false;
3575 // Check restrict.
3576 if (test_restrict ("String literal") == 0)
3577 success = true;
3578 char *restrict newvar = "Another string";
3580 // Check varargs.
3581 test_varargs ("s, d' f .", "string", 65, 34.234);
3582 test_varargs_macros ();
3584 // Check flexible array members.
3585 struct incomplete_array *ia =
3586 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3587 ia->datasize = 10;
3588 for (int i = 0; i < ia->datasize; ++i)
3589 ia->data[i] = i * 1.234;
3591 // Check named initializers.
3592 struct named_init ni = {
3593 .number = 34,
3594 .name = L"Test wide string",
3595 .average = 543.34343,
3598 ni.number = 58;
3600 int dynamic_array[ni.number];
3601 dynamic_array[ni.number - 1] = 543;
3603 // work around unused variable warnings
3604 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3605 || dynamic_array[ni.number - 1] != 543);
3608 return 0;
3610 _ACEOF
3611 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3613 CC="$ac_save_CC $ac_arg"
3614 if ac_fn_c_try_compile "$LINENO"; then :
3615 ac_cv_prog_cc_c99=$ac_arg
3617 rm -f core conftest.err conftest.$ac_objext
3618 test "x$ac_cv_prog_cc_c99" != "xno" && break
3619 done
3620 rm -f conftest.$ac_ext
3621 CC=$ac_save_CC
3624 # AC_CACHE_VAL
3625 case "x$ac_cv_prog_cc_c99" in
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3628 $as_echo "none needed" >&6; } ;;
3629 xno)
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3631 $as_echo "unsupported" >&6; } ;;
3633 CC="$CC $ac_cv_prog_cc_c99"
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3635 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3636 esac
3637 if test "x$ac_cv_prog_cc_c99" != xno; then :
3638 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3639 else
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3641 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3642 if ${ac_cv_prog_cc_c89+:} false; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 ac_cv_prog_cc_c89=no
3646 ac_save_CC=$CC
3647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3648 /* end confdefs.h. */
3649 #include <stdarg.h>
3650 #include <stdio.h>
3651 #include <sys/types.h>
3652 #include <sys/stat.h>
3653 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3654 struct buf { int x; };
3655 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3656 static char *e (p, i)
3657 char **p;
3658 int i;
3660 return p[i];
3662 static char *f (char * (*g) (char **, int), char **p, ...)
3664 char *s;
3665 va_list v;
3666 va_start (v,p);
3667 s = g (p, va_arg (v,int));
3668 va_end (v);
3669 return s;
3672 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3673 function prototypes and stuff, but not '\xHH' hex character constants.
3674 These don't provoke an error unfortunately, instead are silently treated
3675 as 'x'. The following induces an error, until -std is added to get
3676 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3677 array size at least. It's necessary to write '\x00'==0 to get something
3678 that's true only with -std. */
3679 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3681 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3682 inside strings and character constants. */
3683 #define FOO(x) 'x'
3684 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3686 int test (int i, double x);
3687 struct s1 {int (*f) (int a);};
3688 struct s2 {int (*f) (double a);};
3689 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3690 int argc;
3691 char **argv;
3693 main ()
3695 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3697 return 0;
3699 _ACEOF
3700 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3701 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3703 CC="$ac_save_CC $ac_arg"
3704 if ac_fn_c_try_compile "$LINENO"; then :
3705 ac_cv_prog_cc_c89=$ac_arg
3707 rm -f core conftest.err conftest.$ac_objext
3708 test "x$ac_cv_prog_cc_c89" != "xno" && break
3709 done
3710 rm -f conftest.$ac_ext
3711 CC=$ac_save_CC
3714 # AC_CACHE_VAL
3715 case "x$ac_cv_prog_cc_c89" in
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3718 $as_echo "none needed" >&6; } ;;
3719 xno)
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3721 $as_echo "unsupported" >&6; } ;;
3723 CC="$CC $ac_cv_prog_cc_c89"
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3725 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3726 esac
3727 if test "x$ac_cv_prog_cc_c89" != xno; then :
3728 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3729 else
3730 ac_cv_prog_cc_stdc=no
3735 esac
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3737 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3738 if ${ac_cv_prog_cc_stdc+:} false; then :
3739 $as_echo_n "(cached) " >&6
3742 case $ac_cv_prog_cc_stdc in #(
3743 no) :
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3745 $as_echo "unsupported" >&6; } ;; #(
3746 '') :
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3748 $as_echo "none needed" >&6; } ;; #(
3749 *) :
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3751 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3752 esac
3754 ac_ext=c
3755 ac_cpp='$CPP $CPPFLAGS'
3756 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3760 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3761 # On Suns, sometimes $CPP names a directory.
3762 if test -n "$CPP" && test -d "$CPP"; then
3763 CPP=
3765 if test -z "$CPP"; then
3766 if ${ac_cv_prog_CPP+:} false; then :
3767 $as_echo_n "(cached) " >&6
3768 else
3769 # Double quotes because CPP needs to be expanded
3770 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3772 ac_preproc_ok=false
3773 for ac_c_preproc_warn_flag in '' yes
3775 # Use a header file that comes with gcc, so configuring glibc
3776 # with a fresh cross-compiler works.
3777 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3778 # <limits.h> exists even on freestanding compilers.
3779 # On the NeXT, cc -E runs the code through the compiler's parser,
3780 # not just through cpp. "Syntax error" is here to catch this case.
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3783 #ifdef __STDC__
3784 # include <limits.h>
3785 #else
3786 # include <assert.h>
3787 #endif
3788 Syntax error
3789 _ACEOF
3790 if ac_fn_c_try_cpp "$LINENO"; then :
3792 else
3793 # Broken: fails on valid input.
3794 continue
3796 rm -f conftest.err conftest.i conftest.$ac_ext
3798 # OK, works on sane cases. Now check whether nonexistent headers
3799 # can be detected and how.
3800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3801 /* end confdefs.h. */
3802 #include <ac_nonexistent.h>
3803 _ACEOF
3804 if ac_fn_c_try_cpp "$LINENO"; then :
3805 # Broken: success on invalid input.
3806 continue
3807 else
3808 # Passes both tests.
3809 ac_preproc_ok=:
3810 break
3812 rm -f conftest.err conftest.i conftest.$ac_ext
3814 done
3815 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3816 rm -f conftest.i conftest.err conftest.$ac_ext
3817 if $ac_preproc_ok; then :
3818 break
3821 done
3822 ac_cv_prog_CPP=$CPP
3825 CPP=$ac_cv_prog_CPP
3826 else
3827 ac_cv_prog_CPP=$CPP
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3830 $as_echo "$CPP" >&6; }
3831 ac_preproc_ok=false
3832 for ac_c_preproc_warn_flag in '' yes
3834 # Use a header file that comes with gcc, so configuring glibc
3835 # with a fresh cross-compiler works.
3836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3837 # <limits.h> exists even on freestanding compilers.
3838 # On the NeXT, cc -E runs the code through the compiler's parser,
3839 # not just through cpp. "Syntax error" is here to catch this case.
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h. */
3842 #ifdef __STDC__
3843 # include <limits.h>
3844 #else
3845 # include <assert.h>
3846 #endif
3847 Syntax error
3848 _ACEOF
3849 if ac_fn_c_try_cpp "$LINENO"; then :
3851 else
3852 # Broken: fails on valid input.
3853 continue
3855 rm -f conftest.err conftest.i conftest.$ac_ext
3857 # OK, works on sane cases. Now check whether nonexistent headers
3858 # can be detected and how.
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3861 #include <ac_nonexistent.h>
3862 _ACEOF
3863 if ac_fn_c_try_cpp "$LINENO"; then :
3864 # Broken: success on invalid input.
3865 continue
3866 else
3867 # Passes both tests.
3868 ac_preproc_ok=:
3869 break
3871 rm -f conftest.err conftest.i conftest.$ac_ext
3873 done
3874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3875 rm -f conftest.i conftest.err conftest.$ac_ext
3876 if $ac_preproc_ok; then :
3878 else
3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3881 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3882 See \`config.log' for more details" "$LINENO" 5; }
3885 ac_ext=c
3886 ac_cpp='$CPP $CPPFLAGS'
3887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3892 # Check for a compatible awk
3893 for ac_prog in gawk nawk
3895 # Extract the first word of "$ac_prog", so it can be a program name with args.
3896 set dummy $ac_prog; ac_word=$2
3897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898 $as_echo_n "checking for $ac_word... " >&6; }
3899 if ${ac_cv_prog_AWK+:} false; then :
3900 $as_echo_n "(cached) " >&6
3901 else
3902 if test -n "$AWK"; then
3903 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3904 else
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 for as_dir in $PATH
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
3911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3912 ac_cv_prog_AWK="$ac_prog"
3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
3916 done
3917 done
3918 IFS=$as_save_IFS
3922 AWK=$ac_cv_prog_AWK
3923 if test -n "$AWK"; then
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3925 $as_echo "$AWK" >&6; }
3926 else
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928 $as_echo "no" >&6; }
3932 test -n "$AWK" && break
3933 done
3935 if test "$AWK" = ""; then
3936 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3938 # Extract the first word of "mmake", so it can be a program name with args.
3939 set dummy mmake; ac_word=$2
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if ${ac_cv_prog_MMAKE+:} false; then :
3943 $as_echo_n "(cached) " >&6
3944 else
3945 if test -n "$MMAKE"; then
3946 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_prog_MMAKE="mmake "
3956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3959 done
3960 done
3961 IFS=$as_save_IFS
3965 MMAKE=$ac_cv_prog_MMAKE
3966 if test -n "$MMAKE"; then
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3968 $as_echo "$MMAKE" >&6; }
3969 else
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 $as_echo "no" >&6; }
3976 # Perform some default variable assignments. Note all of these will be
3977 # Regenerated from the script, so there is no need to cache them.
3979 aros_host_cc="$CC"
3980 if test "$GCC" = "yes"; then
3981 aros_gcc_ld=`$CC -print-prog-name=ld`
3982 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3983 set dummy `basename $aros_gcc_ld`; ac_word=$2
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3985 $as_echo_n "checking for $ac_word... " >&6; }
3986 if ${ac_cv_path_aros_host_ld+:} false; then :
3987 $as_echo_n "(cached) " >&6
3988 else
3989 case $aros_host_ld in
3990 [\\/]* | ?:[\\/]*)
3991 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 for as_dir in `dirname $aros_gcc_ld`
3997 IFS=$as_save_IFS
3998 test -z "$as_dir" && as_dir=.
3999 for ac_exec_ext in '' $ac_executable_extensions; do
4000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4001 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 break 2
4005 done
4006 done
4007 IFS=$as_save_IFS
4010 esac
4012 aros_host_ld=$ac_cv_path_aros_host_ld
4013 if test -n "$aros_host_ld"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4015 $as_echo "$aros_host_ld" >&6; }
4016 else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4023 if test "$aros_host_ld" = ""; then
4024 # Extract the first word of "ld", so it can be a program name with args.
4025 set dummy ld; ac_word=$2
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027 $as_echo_n "checking for $ac_word... " >&6; }
4028 if ${ac_cv_path_aros_host_ld+:} false; then :
4029 $as_echo_n "(cached) " >&6
4030 else
4031 case $aros_host_ld in
4032 [\\/]* | ?:[\\/]*)
4033 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4043 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4047 done
4048 done
4049 IFS=$as_save_IFS
4052 esac
4054 aros_host_ld=$ac_cv_path_aros_host_ld
4055 if test -n "$aros_host_ld"; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4057 $as_echo "$aros_host_ld" >&6; }
4058 else
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4065 if test "$aros_host_ld" = ""; then
4066 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4068 aros_host_make="make"
4069 aros_host_cflags=$CFLAGS
4070 aros_host_ldflags=$LDFLAGS
4071 aros_host_debug="-g -O0"
4072 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4073 aros_host_mkargs="--no-print-directory"
4074 aros_host_incl="/usr/include"
4075 aros_host_exe_suffix="$EXEEXT"
4076 aros_host_lib_suffix=""
4078 for ac_prog in aclocal aclocal19 aclocal-1.9
4080 # Extract the first word of "$ac_prog", so it can be a program name with args.
4081 set dummy $ac_prog; ac_word=$2
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 if test -n "$aros_host_aclocal"; then
4088 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4097 ac_cv_prog_aros_host_aclocal="$ac_prog"
4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4101 done
4102 done
4103 IFS=$as_save_IFS
4107 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4108 if test -n "$aros_host_aclocal"; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4110 $as_echo "$aros_host_aclocal" >&6; }
4111 else
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4117 test -n "$aros_host_aclocal" && break
4118 done
4120 for ac_prog in autoconf autoconf259 autoconf253
4122 # Extract the first word of "$ac_prog", so it can be a program name with args.
4123 set dummy $ac_prog; ac_word=$2
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125 $as_echo_n "checking for $ac_word... " >&6; }
4126 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4127 $as_echo_n "(cached) " >&6
4128 else
4129 if test -n "$aros_host_autoconf"; then
4130 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4131 else
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 for as_dir in $PATH
4135 IFS=$as_save_IFS
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 ac_cv_prog_aros_host_autoconf="$ac_prog"
4140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 break 2
4143 done
4144 done
4145 IFS=$as_save_IFS
4149 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4150 if test -n "$aros_host_autoconf"; then
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4152 $as_echo "$aros_host_autoconf" >&6; }
4153 else
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4155 $as_echo "no" >&6; }
4159 test -n "$aros_host_autoconf" && break
4160 done
4162 for ac_prog in autoheader autoheader259 autoheader253
4164 # Extract the first word of "$ac_prog", so it can be a program name with args.
4165 set dummy $ac_prog; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4169 $as_echo_n "(cached) " >&6
4170 else
4171 if test -n "$aros_host_autoheader"; then
4172 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4177 IFS=$as_save_IFS
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_prog_aros_host_autoheader="$ac_prog"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 break 2
4185 done
4186 done
4187 IFS=$as_save_IFS
4191 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4192 if test -n "$aros_host_autoheader"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4194 $as_echo "$aros_host_autoheader" >&6; }
4195 else
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4201 test -n "$aros_host_autoheader" && break
4202 done
4204 for ac_prog in automake automake19 automake-1.9
4206 # Extract the first word of "$ac_prog", so it can be a program name with args.
4207 set dummy $ac_prog; ac_word=$2
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if ${ac_cv_prog_aros_host_automake+:} false; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 if test -n "$aros_host_automake"; then
4214 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_prog_aros_host_automake="$ac_prog"
4224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4227 done
4228 done
4229 IFS=$as_save_IFS
4233 aros_host_automake=$ac_cv_prog_aros_host_automake
4234 if test -n "$aros_host_automake"; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4236 $as_echo "$aros_host_automake" >&6; }
4237 else
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4243 test -n "$aros_host_automake" && break
4244 done
4247 if test "$aros_host_aclocal" = ""; then
4248 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4250 if test "$aros_host_automake" = ""; then
4251 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4254 case "$aros_host_cc" in
4255 *gcc*)
4256 aros_host_cc_pipe="-pipe"
4258 icc)
4259 aros_host_cc_pipe=""
4262 aros_host_cc_pipe=""
4264 esac
4266 aros_kernel_cc_includes=""
4267 aros_target_cc_includes=""
4269 # ----------------------------------------------------------------------------------------
4270 # Host-specific defaults
4272 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4273 # instead of a wrapper script.
4274 # Useful for non-ELF hosts (like Windows and Darwin).
4275 # Can also be overriden in target section below
4276 use_aros_gcc="no"
4278 # This is the main host configuration section. It is where the host
4279 # can change the values of any variables it needs to change. We do
4280 # not look at anything that compiles to the target yet, we'll get
4281 # to that later.
4283 case "$host_os" in
4284 aros*)
4285 aros_host_arch="aros"
4286 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4287 case "$host_cpu" in
4288 *i?86*)
4289 aros_host_cpu="i386"
4291 *x86_64*)
4292 aros_host_cpu="x86_64"
4294 *powerpc*)
4295 aros_host_cpu="ppc"
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4299 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4300 aros_host_cpu="$host_cpu"
4302 esac
4305 linux*)
4306 aros_host_arch="linux"
4307 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4308 case "$host_cpu" in
4309 *i?86*)
4310 aros_host_cpu="i386"
4312 *x86_64*)
4313 aros_host_cpu="x86_64"
4315 *m68k*)
4316 aros_host_cpu="m68k"
4318 *powerpc*)
4319 aros_host_cpu="ppc"
4321 *arm*)
4322 aros_host_cpu="arm"
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4326 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4327 aros_host_cpu="$host_cpu"
4329 esac
4332 freebsd*)
4333 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4334 aros_host_make="gmake"
4335 aros_host_arch="freebsd"
4336 aros_host_cpu="i386"
4338 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4340 case $host_os in
4341 freebsd[234]*)
4342 aros_object_format="elf_i386"
4346 aros_object_format="elf_i386_fbsd"
4348 esac
4352 darwin*)
4353 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4354 aros_host_arch="darwin"
4355 use_aros_gcc="yes"
4356 android_build_os="darwin-x86"
4357 android_tool="android"
4358 default_android_sdk="/android-sdk-mac_x86"
4359 default_android_ndk="/android-ndk-r5b"
4360 case "$host_cpu" in
4361 *i?86*)
4362 aros_host_cpu="i386"
4364 *x86_64*)
4365 aros_host_cpu="x86_64"
4367 *powerpc*)
4368 aros_host_cpu="ppc"
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4372 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4373 aros_host_cpu="$host_cpu"
4375 esac
4377 aros_host_ldflags="$aros_host_ldflags -liconv"
4381 dragonfly*)
4382 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4383 aros_host_make="gmake"
4384 aros_host_arch="dragonfly"
4385 case $host_cpu in
4386 *i?86*)
4387 aros_host_cpu="i386"
4389 *amd64*)
4390 aros_host_cpu="x86_64"
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4394 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4395 aros_host_cpu="$host_cpu"
4397 esac
4400 netbsd*)
4401 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4402 aros_host_make="gmake"
4403 aros_host_arch="netbsd"
4404 case "$host_cpu" in
4405 *i?86*)
4406 aros_host_cpu="i386"
4408 *m68k*)
4409 aros_host_cpu="m68k"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4413 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4414 aros_host_cpu="$host_cpu"
4416 esac
4417 aros_host_lib_suffix=".0.0"
4420 openbsd*)
4421 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4422 aros_host_make="gmake"
4423 aros_host_arch="openbsd"
4424 case "$host_cpu" in
4425 *i?86*)
4426 aros_host_cpu="i386"
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4430 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4431 aros_host_cpu="$host_cpu"
4433 esac
4436 solaris*)
4437 aros_host_arch="solaris"
4438 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4439 case "$host_cpu" in
4440 *i?86*)
4441 aros_host_cpu="i386"
4443 *sparc*)
4444 aros_host_cpu="sparc"
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4448 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4449 aros_host_cpu="$host_cpu"
4451 esac
4454 morphos*)
4455 aros_host_arch="morphos"
4456 aros_host_cpu="ppc"
4459 amiga*)
4460 aros_host_arch="amiga"
4461 SORT="/gg/bin/sort"
4462 TEST="/gg/bin/test"
4463 UNIQ="/gg/bin/uniq"
4464 FOR="for"
4465 TOUCH="/gg/bin/touch"
4466 case "$host_cpu" in
4467 *m68k*)
4468 aros_host_cpu="m68k"
4470 *powerpc*)
4471 aros_host_cpu="ppc"
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4475 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4476 aros_host_cpu="$host_cpu"
4478 esac
4481 cygwin*)
4482 aros_host_arch="cygwin"
4483 use_aros_gcc="yes"
4484 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4485 android_build_os="windows"
4486 android_tool="android.bat"
4487 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4489 case "$host_cpu" in
4490 *i?86*)
4491 aros_host_cpu="i386"
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4495 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4496 aros_host_cpu="$host_cpu"
4498 esac
4501 mingw32*)
4502 aros_host_arch="mingw32"
4503 use_aros_gcc="yes"
4504 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4505 android_build_os="windows"
4506 android_tool="android.bat"
4507 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4509 case "$host_cpu" in
4510 *i?86*)
4511 aros_host_cpu="i386"
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4515 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4516 aros_host_cpu="$host_cpu"
4518 esac
4521 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4523 esac
4525 # Extract the first word of "ar", so it can be a program name with args.
4526 set dummy ar; ac_word=$2
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 $as_echo_n "checking for $ac_word... " >&6; }
4529 if ${ac_cv_prog_aros_host_ar+:} false; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 if test -n "$aros_host_ar"; then
4533 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4534 else
4535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4536 for as_dir in $PATH
4538 IFS=$as_save_IFS
4539 test -z "$as_dir" && as_dir=.
4540 for ac_exec_ext in '' $ac_executable_extensions; do
4541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4542 ac_cv_prog_aros_host_ar="ar cr"
4543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 break 2
4546 done
4547 done
4548 IFS=$as_save_IFS
4552 aros_host_ar=$ac_cv_prog_aros_host_ar
4553 if test -n "$aros_host_ar"; then
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4555 $as_echo "$aros_host_ar" >&6; }
4556 else
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4558 $as_echo "no" >&6; }
4562 if test "$aros_host_ar" = ""; then
4563 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4565 # Extract the first word of "ranlib", so it can be a program name with args.
4566 set dummy ranlib; ac_word=$2
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4568 $as_echo_n "checking for $ac_word... " >&6; }
4569 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 if test -n "$aros_host_ranlib"; then
4573 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 ac_cv_prog_aros_host_ranlib="ranlib "
4583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4586 done
4587 done
4588 IFS=$as_save_IFS
4592 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4593 if test -n "$aros_host_ranlib"; then
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4595 $as_echo "$aros_host_ranlib" >&6; }
4596 else
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4602 if test "$aros_host_ranlib" = ""; then
4603 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4605 # Extract the first word of "strip", so it can be a program name with args.
4606 set dummy strip; ac_word=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if ${ac_cv_prog_aros_host_strip+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 if test -n "$aros_host_strip"; then
4613 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4614 else
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 for as_dir in $PATH
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4622 ac_cv_prog_aros_host_strip="strip "
4623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4624 break 2
4626 done
4627 done
4628 IFS=$as_save_IFS
4632 aros_host_strip=$ac_cv_prog_aros_host_strip
4633 if test -n "$aros_host_strip"; then
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4635 $as_echo "$aros_host_strip" >&6; }
4636 else
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4638 $as_echo "no" >&6; }
4642 if test "$aros_host_strip" = ""; then
4643 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4646 # Extract the first word of "rm", so it can be a program name with args.
4647 set dummy rm; ac_word=$2
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 $as_echo_n "checking for $ac_word... " >&6; }
4650 if ${ac_cv_prog_RM+:} false; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if test -n "$RM"; then
4654 ac_cv_prog_RM="$RM" # Let the user override the test.
4655 else
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH
4659 IFS=$as_save_IFS
4660 test -z "$as_dir" && as_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4663 ac_cv_prog_RM="rm -rf"
4664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4665 break 2
4667 done
4668 done
4669 IFS=$as_save_IFS
4673 RM=$ac_cv_prog_RM
4674 if test -n "$RM"; then
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4676 $as_echo "$RM" >&6; }
4677 else
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4679 $as_echo "no" >&6; }
4683 if test "$RM" = ""; then
4684 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4686 # Extract the first word of "cp", so it can be a program name with args.
4687 set dummy cp; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_CP+:} false; then :
4691 $as_echo_n "(cached) " >&6
4692 else
4693 if test -n "$CP"; then
4694 ac_cv_prog_CP="$CP" # Let the user override the test.
4695 else
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4697 for as_dir in $PATH
4699 IFS=$as_save_IFS
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4703 ac_cv_prog_CP="cp "
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4705 break 2
4707 done
4708 done
4709 IFS=$as_save_IFS
4713 CP=$ac_cv_prog_CP
4714 if test -n "$CP"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4716 $as_echo "$CP" >&6; }
4717 else
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4723 if test "$CP" = ""; then
4724 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4726 # Extract the first word of "mv", so it can be a program name with args.
4727 set dummy mv; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if ${ac_cv_prog_MV+:} false; then :
4731 $as_echo_n "(cached) " >&6
4732 else
4733 if test -n "$MV"; then
4734 ac_cv_prog_MV="$MV" # Let the user override the test.
4735 else
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 ac_cv_prog_MV="mv "
4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4747 done
4748 done
4749 IFS=$as_save_IFS
4753 MV=$ac_cv_prog_MV
4754 if test -n "$MV"; then
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4756 $as_echo "$MV" >&6; }
4757 else
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4759 $as_echo "no" >&6; }
4763 if test "$MV" = ""; then
4764 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4766 # Extract the first word of "echo", so it can be a program name with args.
4767 set dummy echo; ac_word=$2
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4769 $as_echo_n "checking for $ac_word... " >&6; }
4770 if ${ac_cv_prog_ECHO+:} false; then :
4771 $as_echo_n "(cached) " >&6
4772 else
4773 if test -n "$ECHO"; then
4774 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4775 else
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4783 ac_cv_prog_ECHO="echo "
4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4787 done
4788 done
4789 IFS=$as_save_IFS
4793 ECHO=$ac_cv_prog_ECHO
4794 if test -n "$ECHO"; then
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4796 $as_echo "$ECHO" >&6; }
4797 else
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4799 $as_echo "no" >&6; }
4803 if test "$ECHO" = ""; then
4804 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4806 # Extract the first word of "mkdir", so it can be a program name with args.
4807 set dummy mkdir; ac_word=$2
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4809 $as_echo_n "checking for $ac_word... " >&6; }
4810 if ${ac_cv_prog_MKDIR+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 if test -n "$MKDIR"; then
4814 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4815 else
4816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4817 for as_dir in $PATH
4819 IFS=$as_save_IFS
4820 test -z "$as_dir" && as_dir=.
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4823 ac_cv_prog_MKDIR="mkdir -p"
4824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4825 break 2
4827 done
4828 done
4829 IFS=$as_save_IFS
4833 MKDIR=$ac_cv_prog_MKDIR
4834 if test -n "$MKDIR"; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4836 $as_echo "$MKDIR" >&6; }
4837 else
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839 $as_echo "no" >&6; }
4843 if test "$MKDIR" = ""; then
4844 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4846 # Extract the first word of "touch", so it can be a program name with args.
4847 set dummy touch; ac_word=$2
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4849 $as_echo_n "checking for $ac_word... " >&6; }
4850 if ${ac_cv_prog_TOUCH+:} false; then :
4851 $as_echo_n "(cached) " >&6
4852 else
4853 if test -n "$TOUCH"; then
4854 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4855 else
4856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857 for as_dir in $PATH
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
4861 for ac_exec_ext in '' $ac_executable_extensions; do
4862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4863 ac_cv_prog_TOUCH="touch "
4864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4865 break 2
4867 done
4868 done
4869 IFS=$as_save_IFS
4873 TOUCH=$ac_cv_prog_TOUCH
4874 if test -n "$TOUCH"; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4876 $as_echo "$TOUCH" >&6; }
4877 else
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4879 $as_echo "no" >&6; }
4883 if test "$TOUCH" = ""; then
4884 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4886 # Extract the first word of "sort", so it can be a program name with args.
4887 set dummy sort; ac_word=$2
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889 $as_echo_n "checking for $ac_word... " >&6; }
4890 if ${ac_cv_prog_SORT+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 if test -n "$SORT"; then
4894 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4895 else
4896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4897 for as_dir in $PATH
4899 IFS=$as_save_IFS
4900 test -z "$as_dir" && as_dir=.
4901 for ac_exec_ext in '' $ac_executable_extensions; do
4902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4903 ac_cv_prog_SORT="sort "
4904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4905 break 2
4907 done
4908 done
4909 IFS=$as_save_IFS
4913 SORT=$ac_cv_prog_SORT
4914 if test -n "$SORT"; then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4916 $as_echo "$SORT" >&6; }
4917 else
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4919 $as_echo "no" >&6; }
4923 if test "$SORT" = ""; then
4924 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4926 # Extract the first word of "uniq", so it can be a program name with args.
4927 set dummy uniq; ac_word=$2
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4929 $as_echo_n "checking for $ac_word... " >&6; }
4930 if ${ac_cv_prog_UNIQ+:} false; then :
4931 $as_echo_n "(cached) " >&6
4932 else
4933 if test -n "$UNIQ"; then
4934 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4935 else
4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4937 for as_dir in $PATH
4939 IFS=$as_save_IFS
4940 test -z "$as_dir" && as_dir=.
4941 for ac_exec_ext in '' $ac_executable_extensions; do
4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4943 ac_cv_prog_UNIQ="uniq "
4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4945 break 2
4947 done
4948 done
4949 IFS=$as_save_IFS
4953 UNIQ=$ac_cv_prog_UNIQ
4954 if test -n "$UNIQ"; then
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4956 $as_echo "$UNIQ" >&6; }
4957 else
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4959 $as_echo "no" >&6; }
4963 if test "$UNIQ" = ""; then
4964 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4966 # Extract the first word of "true", so it can be a program name with args.
4967 set dummy true; ac_word=$2
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4969 $as_echo_n "checking for $ac_word... " >&6; }
4970 if ${ac_cv_prog_NOP+:} false; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -n "$NOP"; then
4974 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4979 IFS=$as_save_IFS
4980 test -z "$as_dir" && as_dir=.
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_prog_NOP="true "
4984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4985 break 2
4987 done
4988 done
4989 IFS=$as_save_IFS
4993 NOP=$ac_cv_prog_NOP
4994 if test -n "$NOP"; then
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4996 $as_echo "$NOP" >&6; }
4997 else
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4999 $as_echo "no" >&6; }
5003 if test "$NOP" = ""; then
5004 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5006 # Extract the first word of "cat", so it can be a program name with args.
5007 set dummy cat; 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_CAT+:} false; then :
5011 $as_echo_n "(cached) " >&6
5012 else
5013 if test -n "$CAT"; then
5014 ac_cv_prog_CAT="$CAT" # 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_CAT="cat "
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 CAT=$ac_cv_prog_CAT
5034 if test -n "$CAT"; then
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5036 $as_echo "$CAT" >&6; }
5037 else
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5039 $as_echo "no" >&6; }
5043 if test "$CAT" = ""; then
5044 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5046 # Extract the first word of "bison", so it can be a program name with args.
5047 set dummy bison; 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_BISON+:} false; then :
5051 $as_echo_n "(cached) " >&6
5052 else
5053 if test -n "$BISON"; then
5054 ac_cv_prog_BISON="$BISON" # 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_BISON="bison "
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 BISON=$ac_cv_prog_BISON
5074 if test -n "$BISON"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5076 $as_echo "$BISON" >&6; }
5077 else
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5083 if test "$BISON" = ""; then
5084 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5086 # Extract the first word of "flex", so it can be a program name with args.
5087 set dummy flex; 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_FLEX+:} false; then :
5091 $as_echo_n "(cached) " >&6
5092 else
5093 if test -n "$FLEX"; then
5094 ac_cv_prog_FLEX="$FLEX" # 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_FLEX="flex "
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 FLEX=$ac_cv_prog_FLEX
5114 if test -n "$FLEX"; then
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5116 $as_echo "$FLEX" >&6; }
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5123 if test "$FLEX" = ""; then
5124 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5126 # Extract the first word of "pngtopnm", so it can be a program name with args.
5127 set dummy pngtopnm; 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_PNGTOPNM+:} false; then :
5131 $as_echo_n "(cached) " >&6
5132 else
5133 if test -n "$PNGTOPNM"; then
5134 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # 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_PNGTOPNM="pngtopnm "
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 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5154 if test -n "$PNGTOPNM"; then
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5156 $as_echo "$PNGTOPNM" >&6; }
5157 else
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5159 $as_echo "no" >&6; }
5163 if test "$PNGTOPNM" = ""; then
5164 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5166 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5167 set dummy ppmtoilbm; 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_PPMTOILBM+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172 else
5173 if test -n "$PPMTOILBM"; then
5174 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # 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_PPMTOILBM="ppmtoilbm "
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 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5194 if test -n "$PPMTOILBM"; then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5196 $as_echo "$PPMTOILBM" >&6; }
5197 else
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5199 $as_echo "no" >&6; }
5203 if test "$PPMTOILBM" = ""; then
5204 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5206 # Extract the first word of "sed", so it can be a program name with args.
5207 set dummy sed; 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_SED+:} false; then :
5211 $as_echo_n "(cached) " >&6
5212 else
5213 if test -n "$SED"; then
5214 ac_cv_prog_SED="$SED" # 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_SED="sed "
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 SED=$ac_cv_prog_SED
5234 if test -n "$SED"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5236 $as_echo "$SED" >&6; }
5237 else
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5243 if test "$SED" = ""; then
5244 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5246 # Extract the first word of "chmod", so it can be a program name with args.
5247 set dummy chmod; 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_CHMOD+:} false; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 if test -n "$CHMOD"; then
5254 ac_cv_prog_CHMOD="$CHMOD" # 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_CHMOD="chmod "
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 CHMOD=$ac_cv_prog_CHMOD
5274 if test -n "$CHMOD"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5276 $as_echo "$CHMOD" >&6; }
5277 else
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5283 if test "$CHMOD" = ""; then
5284 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5286 # Extract the first word of "patch", so it can be a program name with args.
5287 set dummy patch; 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_PATCH+:} false; then :
5291 $as_echo_n "(cached) " >&6
5292 else
5293 if test -n "$PATCH"; then
5294 ac_cv_prog_PATCH="$PATCH" # 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_PATCH="patch "
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 PATCH=$ac_cv_prog_PATCH
5314 if test -n "$PATCH"; then
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5316 $as_echo "$PATCH" >&6; }
5317 else
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319 $as_echo "no" >&6; }
5323 if test "$PATCH" = ""; then
5324 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5331 if test -n "$PYTHON"; then
5332 # If the user set $PYTHON, use it and don't search something else.
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5334 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5335 prog="import sys, string
5336 # split strings by '.' and convert to numeric. Append some zeros
5337 # because we need at least 4 digits for the hex conversion.
5338 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5339 minverhex = 0
5340 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5341 sys.exit(sys.hexversion < minverhex)"
5342 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5343 ($PYTHON -c "$prog") >&5 2>&5
5344 ac_status=$?
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; then :
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5348 $as_echo "yes" >&6; }
5349 else
5350 as_fn_error $? "too old" "$LINENO" 5
5352 am_display_PYTHON=$PYTHON
5353 else
5354 # Otherwise, try each interpreter until we find one that satisfies
5355 # VERSION.
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5357 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5358 if ${am_cv_pathless_PYTHON+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5362 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
5363 test "$am_cv_pathless_PYTHON" = none && break
5364 prog="import sys, string
5365 # split strings by '.' and convert to numeric. Append some zeros
5366 # because we need at least 4 digits for the hex conversion.
5367 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5368 minverhex = 0
5369 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5370 sys.exit(sys.hexversion < minverhex)"
5371 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5372 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); }; then :
5376 break
5378 done
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5381 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5382 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5383 if test "$am_cv_pathless_PYTHON" = none; then
5384 PYTHON=:
5385 else
5386 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5387 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5389 $as_echo_n "checking for $ac_word... " >&6; }
5390 if ${ac_cv_path_PYTHON+:} false; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 case $PYTHON in
5394 [\\/]* | ?:[\\/]*)
5395 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399 for as_dir in $PATH
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5405 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5407 break 2
5409 done
5410 done
5411 IFS=$as_save_IFS
5414 esac
5416 PYTHON=$ac_cv_path_PYTHON
5417 if test -n "$PYTHON"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5419 $as_echo "$PYTHON" >&6; }
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5427 am_display_PYTHON=$am_cv_pathless_PYTHON
5431 if test "$PYTHON" = :; then
5432 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5433 else
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5437 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5438 if ${am_cv_python_version+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440 else
5441 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5444 $as_echo "$am_cv_python_version" >&6; }
5445 PYTHON_VERSION=$am_cv_python_version
5449 PYTHON_PREFIX='${prefix}'
5451 PYTHON_EXEC_PREFIX='${exec_prefix}'
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5456 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5457 if ${am_cv_python_platform+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5463 $as_echo "$am_cv_python_platform" >&6; }
5464 PYTHON_PLATFORM=$am_cv_python_platform
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5470 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5471 if ${am_cv_python_pythondir+:} false; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5475 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5478 $as_echo "$am_cv_python_pythondir" >&6; }
5479 pythondir=$am_cv_python_pythondir
5483 pkgpythondir=\${pythondir}/$PACKAGE
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5487 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5488 if ${am_cv_python_pyexecdir+:} false; then :
5489 $as_echo_n "(cached) " >&6
5490 else
5491 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5492 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5495 $as_echo "$am_cv_python_pyexecdir" >&6; }
5496 pyexecdir=$am_cv_python_pyexecdir
5500 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5508 FOR=for
5510 IF=if
5512 TEST=test
5514 CMP=cmp
5518 # Check for some includes for the X11 HIDD and the kernel
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5522 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5523 if ${ac_cv_path_GREP+:} false; then :
5524 $as_echo_n "(cached) " >&6
5525 else
5526 if test -z "$GREP"; then
5527 ac_path_GREP_found=false
5528 # Loop through the user's path and test for each of PROGNAME-LIST
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5530 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5532 IFS=$as_save_IFS
5533 test -z "$as_dir" && as_dir=.
5534 for ac_prog in grep ggrep; do
5535 for ac_exec_ext in '' $ac_executable_extensions; do
5536 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5537 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5538 # Check for GNU ac_path_GREP and select it if it is found.
5539 # Check for GNU $ac_path_GREP
5540 case `"$ac_path_GREP" --version 2>&1` in
5541 *GNU*)
5542 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5544 ac_count=0
5545 $as_echo_n 0123456789 >"conftest.in"
5546 while :
5548 cat "conftest.in" "conftest.in" >"conftest.tmp"
5549 mv "conftest.tmp" "conftest.in"
5550 cp "conftest.in" "conftest.nl"
5551 $as_echo 'GREP' >> "conftest.nl"
5552 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5553 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5554 as_fn_arith $ac_count + 1 && ac_count=$as_val
5555 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5556 # Best one so far, save it but keep looking for a better one
5557 ac_cv_path_GREP="$ac_path_GREP"
5558 ac_path_GREP_max=$ac_count
5560 # 10*(2^10) chars as input seems more than enough
5561 test $ac_count -gt 10 && break
5562 done
5563 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5564 esac
5566 $ac_path_GREP_found && break 3
5567 done
5568 done
5569 done
5570 IFS=$as_save_IFS
5571 if test -z "$ac_cv_path_GREP"; then
5572 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5574 else
5575 ac_cv_path_GREP=$GREP
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5580 $as_echo "$ac_cv_path_GREP" >&6; }
5581 GREP="$ac_cv_path_GREP"
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5585 $as_echo_n "checking for egrep... " >&6; }
5586 if ${ac_cv_path_EGREP+:} false; then :
5587 $as_echo_n "(cached) " >&6
5588 else
5589 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5590 then ac_cv_path_EGREP="$GREP -E"
5591 else
5592 if test -z "$EGREP"; then
5593 ac_path_EGREP_found=false
5594 # Loop through the user's path and test for each of PROGNAME-LIST
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5598 IFS=$as_save_IFS
5599 test -z "$as_dir" && as_dir=.
5600 for ac_prog in egrep; do
5601 for ac_exec_ext in '' $ac_executable_extensions; do
5602 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5603 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5604 # Check for GNU ac_path_EGREP and select it if it is found.
5605 # Check for GNU $ac_path_EGREP
5606 case `"$ac_path_EGREP" --version 2>&1` in
5607 *GNU*)
5608 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5610 ac_count=0
5611 $as_echo_n 0123456789 >"conftest.in"
5612 while :
5614 cat "conftest.in" "conftest.in" >"conftest.tmp"
5615 mv "conftest.tmp" "conftest.in"
5616 cp "conftest.in" "conftest.nl"
5617 $as_echo 'EGREP' >> "conftest.nl"
5618 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5620 as_fn_arith $ac_count + 1 && ac_count=$as_val
5621 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5622 # Best one so far, save it but keep looking for a better one
5623 ac_cv_path_EGREP="$ac_path_EGREP"
5624 ac_path_EGREP_max=$ac_count
5626 # 10*(2^10) chars as input seems more than enough
5627 test $ac_count -gt 10 && break
5628 done
5629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5630 esac
5632 $ac_path_EGREP_found && break 3
5633 done
5634 done
5635 done
5636 IFS=$as_save_IFS
5637 if test -z "$ac_cv_path_EGREP"; then
5638 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5640 else
5641 ac_cv_path_EGREP=$EGREP
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5647 $as_echo "$ac_cv_path_EGREP" >&6; }
5648 EGREP="$ac_cv_path_EGREP"
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5652 $as_echo_n "checking for ANSI C header files... " >&6; }
5653 if ${ac_cv_header_stdc+:} false; then :
5654 $as_echo_n "(cached) " >&6
5655 else
5656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5657 /* end confdefs.h. */
5658 #include <stdlib.h>
5659 #include <stdarg.h>
5660 #include <string.h>
5661 #include <float.h>
5664 main ()
5668 return 0;
5670 _ACEOF
5671 if ac_fn_c_try_compile "$LINENO"; then :
5672 ac_cv_header_stdc=yes
5673 else
5674 ac_cv_header_stdc=no
5676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 if test $ac_cv_header_stdc = yes; then
5679 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5681 /* end confdefs.h. */
5682 #include <string.h>
5684 _ACEOF
5685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5686 $EGREP "memchr" >/dev/null 2>&1; then :
5688 else
5689 ac_cv_header_stdc=no
5691 rm -f conftest*
5695 if test $ac_cv_header_stdc = yes; then
5696 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5698 /* end confdefs.h. */
5699 #include <stdlib.h>
5701 _ACEOF
5702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5703 $EGREP "free" >/dev/null 2>&1; then :
5705 else
5706 ac_cv_header_stdc=no
5708 rm -f conftest*
5712 if test $ac_cv_header_stdc = yes; then
5713 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5714 if test "$cross_compiling" = yes; then :
5716 else
5717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5718 /* end confdefs.h. */
5719 #include <ctype.h>
5720 #include <stdlib.h>
5721 #if ((' ' & 0x0FF) == 0x020)
5722 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5723 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5724 #else
5725 # define ISLOWER(c) \
5726 (('a' <= (c) && (c) <= 'i') \
5727 || ('j' <= (c) && (c) <= 'r') \
5728 || ('s' <= (c) && (c) <= 'z'))
5729 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5730 #endif
5732 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5734 main ()
5736 int i;
5737 for (i = 0; i < 256; i++)
5738 if (XOR (islower (i), ISLOWER (i))
5739 || toupper (i) != TOUPPER (i))
5740 return 2;
5741 return 0;
5743 _ACEOF
5744 if ac_fn_c_try_run "$LINENO"; then :
5746 else
5747 ac_cv_header_stdc=no
5749 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5750 conftest.$ac_objext conftest.beam conftest.$ac_ext
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5756 $as_echo "$ac_cv_header_stdc" >&6; }
5757 if test $ac_cv_header_stdc = yes; then
5759 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5763 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5764 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5765 inttypes.h stdint.h unistd.h
5766 do :
5767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5768 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5770 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5771 cat >>confdefs.h <<_ACEOF
5772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5773 _ACEOF
5777 done
5780 for ac_header in sys/ipc.h sys/shm.h \
5781 sys/mmap.h sys/mman.h sysexits.h \
5782 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5784 do :
5785 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5786 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5787 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5788 cat >>confdefs.h <<_ACEOF
5789 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5790 _ACEOF
5794 done
5797 for ac_header in sys/mount.h
5798 do :
5799 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5801 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5802 cat >>confdefs.h <<_ACEOF
5803 #define HAVE_SYS_MOUNT_H 1
5804 _ACEOF
5808 done
5811 ac_header_dirent=no
5812 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5813 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5815 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5816 if eval \${$as_ac_Header+:} false; then :
5817 $as_echo_n "(cached) " >&6
5818 else
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820 /* end confdefs.h. */
5821 #include <sys/types.h>
5822 #include <$ac_hdr>
5825 main ()
5827 if ((DIR *) 0)
5828 return 0;
5830 return 0;
5832 _ACEOF
5833 if ac_fn_c_try_compile "$LINENO"; then :
5834 eval "$as_ac_Header=yes"
5835 else
5836 eval "$as_ac_Header=no"
5838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840 eval ac_res=\$$as_ac_Header
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5842 $as_echo "$ac_res" >&6; }
5843 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5844 cat >>confdefs.h <<_ACEOF
5845 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5846 _ACEOF
5848 ac_header_dirent=$ac_hdr; break
5851 done
5852 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5853 if test $ac_header_dirent = dirent.h; then
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5855 $as_echo_n "checking for library containing opendir... " >&6; }
5856 if ${ac_cv_search_opendir+:} false; then :
5857 $as_echo_n "(cached) " >&6
5858 else
5859 ac_func_search_save_LIBS=$LIBS
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5863 /* Override any GCC internal prototype to avoid an error.
5864 Use char because int might match the return type of a GCC
5865 builtin and then its argument prototype would still apply. */
5866 #ifdef __cplusplus
5867 extern "C"
5868 #endif
5869 char opendir ();
5871 main ()
5873 return opendir ();
5875 return 0;
5877 _ACEOF
5878 for ac_lib in '' dir; do
5879 if test -z "$ac_lib"; then
5880 ac_res="none required"
5881 else
5882 ac_res=-l$ac_lib
5883 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5885 if ac_fn_c_try_link "$LINENO"; then :
5886 ac_cv_search_opendir=$ac_res
5888 rm -f core conftest.err conftest.$ac_objext \
5889 conftest$ac_exeext
5890 if ${ac_cv_search_opendir+:} false; then :
5891 break
5893 done
5894 if ${ac_cv_search_opendir+:} false; then :
5896 else
5897 ac_cv_search_opendir=no
5899 rm conftest.$ac_ext
5900 LIBS=$ac_func_search_save_LIBS
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5903 $as_echo "$ac_cv_search_opendir" >&6; }
5904 ac_res=$ac_cv_search_opendir
5905 if test "$ac_res" != no; then :
5906 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5910 else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5912 $as_echo_n "checking for library containing opendir... " >&6; }
5913 if ${ac_cv_search_opendir+:} false; then :
5914 $as_echo_n "(cached) " >&6
5915 else
5916 ac_func_search_save_LIBS=$LIBS
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5920 /* Override any GCC internal prototype to avoid an error.
5921 Use char because int might match the return type of a GCC
5922 builtin and then its argument prototype would still apply. */
5923 #ifdef __cplusplus
5924 extern "C"
5925 #endif
5926 char opendir ();
5928 main ()
5930 return opendir ();
5932 return 0;
5934 _ACEOF
5935 for ac_lib in '' x; do
5936 if test -z "$ac_lib"; then
5937 ac_res="none required"
5938 else
5939 ac_res=-l$ac_lib
5940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5942 if ac_fn_c_try_link "$LINENO"; then :
5943 ac_cv_search_opendir=$ac_res
5945 rm -f core conftest.err conftest.$ac_objext \
5946 conftest$ac_exeext
5947 if ${ac_cv_search_opendir+:} false; then :
5948 break
5950 done
5951 if ${ac_cv_search_opendir+:} false; then :
5953 else
5954 ac_cv_search_opendir=no
5956 rm conftest.$ac_ext
5957 LIBS=$ac_func_search_save_LIBS
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5960 $as_echo "$ac_cv_search_opendir" >&6; }
5961 ac_res=$ac_cv_search_opendir
5962 if test "$ac_res" != no; then :
5963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5970 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5971 if ${ac_cv_header_stat_broken+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5975 /* end confdefs.h. */
5976 #include <sys/types.h>
5977 #include <sys/stat.h>
5979 #if defined S_ISBLK && defined S_IFDIR
5980 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5981 #endif
5983 #if defined S_ISBLK && defined S_IFCHR
5984 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5985 #endif
5987 #if defined S_ISLNK && defined S_IFREG
5988 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5989 #endif
5991 #if defined S_ISSOCK && defined S_IFREG
5992 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5993 #endif
5995 _ACEOF
5996 if ac_fn_c_try_compile "$LINENO"; then :
5997 ac_cv_header_stat_broken=no
5998 else
5999 ac_cv_header_stat_broken=yes
6001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6004 $as_echo "$ac_cv_header_stat_broken" >&6; }
6005 if test $ac_cv_header_stat_broken = yes; then
6007 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6124 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6125 if ${ac_cv_header_sys_wait_h+:} false; then :
6126 $as_echo_n "(cached) " >&6
6127 else
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129 /* end confdefs.h. */
6130 #include <sys/types.h>
6131 #include <sys/wait.h>
6132 #ifndef WEXITSTATUS
6133 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6134 #endif
6135 #ifndef WIFEXITED
6136 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6137 #endif
6140 main ()
6142 int s;
6143 wait (&s);
6144 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6146 return 0;
6148 _ACEOF
6149 if ac_fn_c_try_compile "$LINENO"; then :
6150 ac_cv_header_sys_wait_h=yes
6151 else
6152 ac_cv_header_sys_wait_h=no
6154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6157 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6158 if test $ac_cv_header_sys_wait_h = yes; then
6160 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6165 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6166 if ${ac_cv_header_time+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6170 /* end confdefs.h. */
6171 #include <sys/types.h>
6172 #include <sys/time.h>
6173 #include <time.h>
6176 main ()
6178 if ((struct tm *) 0)
6179 return 0;
6181 return 0;
6183 _ACEOF
6184 if ac_fn_c_try_compile "$LINENO"; then :
6185 ac_cv_header_time=yes
6186 else
6187 ac_cv_header_time=no
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6192 $as_echo "$ac_cv_header_time" >&6; }
6193 if test $ac_cv_header_time = yes; then
6195 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6199 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6200 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6202 cat >>confdefs.h <<_ACEOF
6203 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6204 _ACEOF
6207 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6212 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6213 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6215 cat >>confdefs.h <<_ACEOF
6216 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6217 _ACEOF
6220 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6222 else
6223 case " $LIBOBJS " in
6224 *" fileblocks.$ac_objext "* ) ;;
6225 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6227 esac
6232 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6233 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6235 cat >>confdefs.h <<_ACEOF
6236 #define HAVE_STRUCT_STAT_ST_RDEV 1
6237 _ACEOF
6240 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6246 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6247 if ${ac_cv_struct_tm+:} false; then :
6248 $as_echo_n "(cached) " >&6
6249 else
6250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6251 /* end confdefs.h. */
6252 #include <sys/types.h>
6253 #include <time.h>
6256 main ()
6258 struct tm tm;
6259 int *p = &tm.tm_sec;
6260 return !p;
6262 return 0;
6264 _ACEOF
6265 if ac_fn_c_try_compile "$LINENO"; then :
6266 ac_cv_struct_tm=time.h
6267 else
6268 ac_cv_struct_tm=sys/time.h
6270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6273 $as_echo "$ac_cv_struct_tm" >&6; }
6274 if test $ac_cv_struct_tm = sys/time.h; then
6276 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6280 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6281 #include <$ac_cv_struct_tm>
6284 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6286 cat >>confdefs.h <<_ACEOF
6287 #define HAVE_STRUCT_TM_TM_ZONE 1
6288 _ACEOF
6293 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6295 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6297 else
6298 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6300 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6301 ac_have_decl=1
6302 else
6303 ac_have_decl=0
6306 cat >>confdefs.h <<_ACEOF
6307 #define HAVE_DECL_TZNAME $ac_have_decl
6308 _ACEOF
6310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6311 $as_echo_n "checking for tzname... " >&6; }
6312 if ${ac_cv_var_tzname+:} false; then :
6313 $as_echo_n "(cached) " >&6
6314 else
6315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316 /* end confdefs.h. */
6317 #include <time.h>
6318 #if !HAVE_DECL_TZNAME
6319 extern char *tzname[];
6320 #endif
6323 main ()
6325 return tzname[0][0];
6327 return 0;
6329 _ACEOF
6330 if ac_fn_c_try_link "$LINENO"; then :
6331 ac_cv_var_tzname=yes
6332 else
6333 ac_cv_var_tzname=no
6335 rm -f core conftest.err conftest.$ac_objext \
6336 conftest$ac_exeext conftest.$ac_ext
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6339 $as_echo "$ac_cv_var_tzname" >&6; }
6340 if test $ac_cv_var_tzname = yes; then
6342 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6347 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6348 if test "x$ac_cv_type_off_t" = xyes; then :
6350 else
6352 cat >>confdefs.h <<_ACEOF
6353 #define off_t long int
6354 _ACEOF
6358 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6359 if test "x$ac_cv_type_pid_t" = xyes; then :
6361 else
6363 cat >>confdefs.h <<_ACEOF
6364 #define pid_t int
6365 _ACEOF
6369 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6370 if test "x$ac_cv_type_size_t" = xyes; then :
6372 else
6374 cat >>confdefs.h <<_ACEOF
6375 #define size_t unsigned int
6376 _ACEOF
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6381 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6382 if ${ac_cv_type_uid_t+:} false; then :
6383 $as_echo_n "(cached) " >&6
6384 else
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 #include <sys/types.h>
6389 _ACEOF
6390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6391 $EGREP "uid_t" >/dev/null 2>&1; then :
6392 ac_cv_type_uid_t=yes
6393 else
6394 ac_cv_type_uid_t=no
6396 rm -f conftest*
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6400 $as_echo "$ac_cv_type_uid_t" >&6; }
6401 if test $ac_cv_type_uid_t = no; then
6403 $as_echo "#define uid_t int" >>confdefs.h
6406 $as_echo "#define gid_t int" >>confdefs.h
6411 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6412 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6414 cat >>confdefs.h <<_ACEOF
6415 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6416 _ACEOF
6422 # Look for some functions
6423 for ac_func in getpagesize kqueue statfs statvfs \
6424 clone kse_create rfork_thread thr_create sa_register \
6425 getcontext makecontext setcontext sigaltstack swapcontext
6426 do :
6427 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6428 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6429 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6430 cat >>confdefs.h <<_ACEOF
6431 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6432 _ACEOF
6435 done
6441 for ac_header in $ac_header_list
6442 do :
6443 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6444 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6446 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6447 cat >>confdefs.h <<_ACEOF
6448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6449 _ACEOF
6453 done
6462 for ac_func in getpagesize
6463 do :
6464 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6465 if test "x$ac_cv_func_getpagesize" = xyes; then :
6466 cat >>confdefs.h <<_ACEOF
6467 #define HAVE_GETPAGESIZE 1
6468 _ACEOF
6471 done
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6474 $as_echo_n "checking for working mmap... " >&6; }
6475 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6478 if test "$cross_compiling" = yes; then :
6479 ac_cv_func_mmap_fixed_mapped=no
6480 else
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6483 $ac_includes_default
6484 /* malloc might have been renamed as rpl_malloc. */
6485 #undef malloc
6487 /* Thanks to Mike Haertel and Jim Avera for this test.
6488 Here is a matrix of mmap possibilities:
6489 mmap private not fixed
6490 mmap private fixed at somewhere currently unmapped
6491 mmap private fixed at somewhere already mapped
6492 mmap shared not fixed
6493 mmap shared fixed at somewhere currently unmapped
6494 mmap shared fixed at somewhere already mapped
6495 For private mappings, we should verify that changes cannot be read()
6496 back from the file, nor mmap's back from the file at a different
6497 address. (There have been systems where private was not correctly
6498 implemented like the infamous i386 svr4.0, and systems where the
6499 VM page cache was not coherent with the file system buffer cache
6500 like early versions of FreeBSD and possibly contemporary NetBSD.)
6501 For shared mappings, we should conversely verify that changes get
6502 propagated back to all the places they're supposed to be.
6504 Grep wants private fixed already mapped.
6505 The main things grep needs to know about mmap are:
6506 * does it exist and is it safe to write into the mmap'd area
6507 * how to use it (BSD variants) */
6509 #include <fcntl.h>
6510 #include <sys/mman.h>
6512 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6513 char *malloc ();
6514 #endif
6516 /* This mess was copied from the GNU getpagesize.h. */
6517 #ifndef HAVE_GETPAGESIZE
6518 # ifdef _SC_PAGESIZE
6519 # define getpagesize() sysconf(_SC_PAGESIZE)
6520 # else /* no _SC_PAGESIZE */
6521 # ifdef HAVE_SYS_PARAM_H
6522 # include <sys/param.h>
6523 # ifdef EXEC_PAGESIZE
6524 # define getpagesize() EXEC_PAGESIZE
6525 # else /* no EXEC_PAGESIZE */
6526 # ifdef NBPG
6527 # define getpagesize() NBPG * CLSIZE
6528 # ifndef CLSIZE
6529 # define CLSIZE 1
6530 # endif /* no CLSIZE */
6531 # else /* no NBPG */
6532 # ifdef NBPC
6533 # define getpagesize() NBPC
6534 # else /* no NBPC */
6535 # ifdef PAGESIZE
6536 # define getpagesize() PAGESIZE
6537 # endif /* PAGESIZE */
6538 # endif /* no NBPC */
6539 # endif /* no NBPG */
6540 # endif /* no EXEC_PAGESIZE */
6541 # else /* no HAVE_SYS_PARAM_H */
6542 # define getpagesize() 8192 /* punt totally */
6543 # endif /* no HAVE_SYS_PARAM_H */
6544 # endif /* no _SC_PAGESIZE */
6546 #endif /* no HAVE_GETPAGESIZE */
6549 main ()
6551 char *data, *data2, *data3;
6552 const char *cdata2;
6553 int i, pagesize;
6554 int fd, fd2;
6556 pagesize = getpagesize ();
6558 /* First, make a file with some known garbage in it. */
6559 data = (char *) malloc (pagesize);
6560 if (!data)
6561 return 1;
6562 for (i = 0; i < pagesize; ++i)
6563 *(data + i) = rand ();
6564 umask (0);
6565 fd = creat ("conftest.mmap", 0600);
6566 if (fd < 0)
6567 return 2;
6568 if (write (fd, data, pagesize) != pagesize)
6569 return 3;
6570 close (fd);
6572 /* Next, check that the tail of a page is zero-filled. File must have
6573 non-zero length, otherwise we risk SIGBUS for entire page. */
6574 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6575 if (fd2 < 0)
6576 return 4;
6577 cdata2 = "";
6578 if (write (fd2, cdata2, 1) != 1)
6579 return 5;
6580 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6581 if (data2 == MAP_FAILED)
6582 return 6;
6583 for (i = 0; i < pagesize; ++i)
6584 if (*(data2 + i))
6585 return 7;
6586 close (fd2);
6587 if (munmap (data2, pagesize))
6588 return 8;
6590 /* Next, try to mmap the file at a fixed address which already has
6591 something else allocated at it. If we can, also make sure that
6592 we see the same garbage. */
6593 fd = open ("conftest.mmap", O_RDWR);
6594 if (fd < 0)
6595 return 9;
6596 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6597 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6598 return 10;
6599 for (i = 0; i < pagesize; ++i)
6600 if (*(data + i) != *(data2 + i))
6601 return 11;
6603 /* Finally, make sure that changes to the mapped area do not
6604 percolate back to the file as seen by read(). (This is a bug on
6605 some variants of i386 svr4.0.) */
6606 for (i = 0; i < pagesize; ++i)
6607 *(data2 + i) = *(data2 + i) + 1;
6608 data3 = (char *) malloc (pagesize);
6609 if (!data3)
6610 return 12;
6611 if (read (fd, data3, pagesize) != pagesize)
6612 return 13;
6613 for (i = 0; i < pagesize; ++i)
6614 if (*(data + i) != *(data3 + i))
6615 return 14;
6616 close (fd);
6617 return 0;
6619 _ACEOF
6620 if ac_fn_c_try_run "$LINENO"; then :
6621 ac_cv_func_mmap_fixed_mapped=yes
6622 else
6623 ac_cv_func_mmap_fixed_mapped=no
6625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6626 conftest.$ac_objext conftest.beam conftest.$ac_ext
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6631 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6632 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6634 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6637 rm -f conftest.mmap conftest.txt
6642 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6643 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6644 aros_config_ldflags=""
6646 aros_shared_default=yes
6648 aros_shared_cflags="-fPIC"
6649 aros_shared_aflags=""
6650 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6651 aros_kernel_ldflags="-Wl,-rpath,./lib"
6653 aros_target_ar_flags="cr"
6654 aros_target_nm_flags="-C -ul"
6655 aros_target_strip_flags="--strip-unneeded -R.comment"
6657 aros_compiler_libs=
6658 aros_arch_libs=
6660 aros_target_genmap="-Wl,-Map -Xlinker"
6662 # Native flavour stuff
6663 aros_serial_debug="0"
6665 # Palm native flavour stuff
6666 aros_palm_debug_hack="0"
6668 # Unix flavour stuff
6669 aros_nesting_supervisor="0"
6671 # Collect-aros stuff: "-ius" to ignore undefined symbols
6672 ignore_undefined_symbols=""
6674 # Check for X11 by default
6675 need_x11="auto"
6677 #-----------------------------------------------------------------------------
6680 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6681 # it switched on by default, and we use the host compiler, so it compiles AROS
6682 # code with this enabled resulting in link failures as we don't have support
6683 # for it.
6685 # We use two methods to disable it. For the host compiler (used to compile
6686 # some hosted modules), we test to see if the compiler supports stack
6687 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6688 # work on all platforms.
6690 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6691 # (this is done unconditionally, as it should have no effect on compilers
6692 # without the stack protection feature). This may be specific to the way that
6693 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6694 # strong enough to disable it in a generic way though, so we'll live with it
6695 # until another vendor ships GCC with it enabled in a different way, and deal
6696 # with it then.
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6700 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6701 save_cflags="$CFLAGS"
6702 CFLAGS="$CFLAGS -fno-stack-protector"
6703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6704 /* end confdefs.h. */
6707 main ()
6711 return 0;
6713 _ACEOF
6714 if ac_fn_c_try_compile "$LINENO"; then :
6715 use_no_stack_protector="yes"
6716 else
6717 use_no_stack_protector="no"
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6721 $as_echo "$use_no_stack_protector" >&6; }
6722 if test "x-$use_no_stack_protector" = "x-yes" ; then
6723 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6725 CFLAGS="$save_cflags"
6727 #-----------------------------------------------------------------------------
6729 # Disable pointer-signedness warnings if the compiler recognises the option
6730 # (this only works for the host compiler at the moment)
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6733 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6734 save_cflags="$CFLAGS"
6735 CFLAGS="$CFLAGS -Wno-pointer-sign"
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6740 main ()
6744 return 0;
6746 _ACEOF
6747 if ac_fn_c_try_compile "$LINENO"; then :
6748 use_no_sign_warning="yes"
6749 else
6750 use_no_sign_warning="no"
6752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6754 $as_echo "$use_no_sign_warning" >&6; }
6755 if test "x-$use_no_sign_warning" = "x-yes" ; then
6756 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6758 CFLAGS="$save_cflags"
6760 #-----------------------------------------------------------------------------
6762 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6765 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6766 save_cflags="$CFLAGS"
6767 CFLAGS="$CFLAGS -fgnu89-inline"
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6772 main ()
6776 return 0;
6778 _ACEOF
6779 if ac_fn_c_try_compile "$LINENO"; then :
6780 use_gnu89_inline="yes"
6781 else
6782 use_gnu89_inline="no"
6784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6786 $as_echo "$use_gnu89_inline" >&6; }
6787 if test "x-$use_gnu89_inline" = "x-yes" ; then
6788 gnu89_inline="-fgnu89-inline"
6790 CFLAGS="$save_cflags"
6792 #-----------------------------------------------------------------------------
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6795 $as_echo_n "checking for type of build... " >&6; }
6796 # Check whether --enable-build_type was given.
6797 if test "${enable_build_type+set}" = set; then :
6798 enableval=$enable_build_type; build_type=$enableval
6799 else
6800 build_type="personal"
6804 if test "$build_type" = "nightly"; then
6805 build_type_string="NIGHTLY"
6806 elif test "$build_type" = "snapshot"; then
6807 build_type_string="SNAPSHOT"
6808 elif test "$build_type" = "milestone"; then
6809 build_type_string="MILESTONE"
6810 elif test "$build_type" = "release"; then
6811 build_type_string="RELEASE"
6812 else
6813 build_type_string="PERSONAL"
6814 build_type="personal"
6817 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6820 $as_echo "$build_type" >&6; }
6822 #-----------------------------------------------------------------------------
6823 all_debug_types="messages stack modules mungwall symbols"
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6826 $as_echo_n "checking which debug types to enable... " >&6; }
6827 # Check whether --enable-debug was given.
6828 if test "${enable_debug+set}" = set; then :
6829 enableval=$enable_debug; debug="$enableval"
6830 else
6831 debug=""
6835 if test "$debug" = "" -o "$debug" = "no"; then
6836 debug="none"
6837 elif test "$debug" = "yes"; then
6838 debug="all"
6841 if test "$debug" = "all" ; then
6842 debug="messages stack modules symbols"
6843 for d in $all_debug_types; do
6844 export aros_${d}_debug="1"
6845 done
6846 else
6847 for d in $all_debug_types; do
6848 export aros_${d}_debug="0"
6849 done
6852 if test "$debug" != "none"; then
6853 debug=`echo $debug | sed s/,/\ /g`
6854 for d in $debug; do
6855 found="0"
6856 for d2 in $all_debug_types; do
6857 if test "$d2" = "$d"; then
6858 found="1"
6859 break
6861 done
6862 if test "$found" = "0"; then
6863 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6865 export aros_${d}_debug="1"
6866 done
6867 aros_debug="yes"
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6870 $as_echo "$debug" >&6; }
6872 if test "$aros_messages_debug" = "1"; then
6873 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6874 else
6875 aros_messages_debug=""
6877 if test "$aros_symbols_debug" = "1"; then
6878 aros_symbols_debug="-g"
6879 else
6880 aros_symbols_debug=""
6883 # These are the flags to pass when compiling debugged programs
6884 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6885 aros_debug_aflags=""
6886 aros_debug_ldflags="$aros_symbols_debug"
6888 aros_crosstools="no"
6890 #-----------------------------------------------------------------------------
6891 # Checking if we should build crosstools..
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6893 $as_echo_n "checking whether to build crosstools... " >&6; }
6894 # Check whether --enable-crosstools was given.
6895 if test "${enable_crosstools+set}" = set; then :
6896 enableval=$enable_crosstools; crosstools="$enableval"
6897 else
6898 crosstools="no"
6901 if test "$crosstools" != "" -a "$crosstools" != "no"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6903 $as_echo "yes" >&6; }
6904 aros_crosstools="yes"
6905 else
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6910 #-----------------------------------------------------------------------------
6911 # Checking for distcc and ccache.
6913 # Always apply the transforms in this particular order. Basically you should
6914 # always run 'ccache distcc compiler' in that order for the best performance.
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6917 $as_echo_n "checking whether to enable distcc... " >&6; }
6918 # Check whether --enable-distcc was given.
6919 if test "${enable_distcc+set}" = set; then :
6920 enableval=$enable_distcc; distcc="$enableval"
6921 else
6922 distcc="no"
6925 if test "$distcc" != "" -a "$distcc" != "no"; then
6926 # AC_CHECK_PROG will print out the result in this case
6927 # Extract the first word of "distcc", so it can be a program name with args.
6928 set dummy distcc; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6930 $as_echo_n "checking for $ac_word... " >&6; }
6931 if ${ac_cv_path_DISTCC+:} false; then :
6932 $as_echo_n "(cached) " >&6
6933 else
6934 case $DISTCC in
6935 [\\/]* | ?:[\\/]*)
6936 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6946 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6950 done
6951 done
6952 IFS=$as_save_IFS
6954 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6956 esac
6958 DISTCC=$ac_cv_path_DISTCC
6959 if test -n "$DISTCC"; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6961 $as_echo "$DISTCC" >&6; }
6962 else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6968 else
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6970 $as_echo "no" >&6; }
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6974 $as_echo_n "checking whether to enable ccache... " >&6; }
6975 # Check whether --enable-ccache was given.
6976 if test "${enable_ccache+set}" = set; then :
6977 enableval=$enable_ccache; ccache="$enableval"
6978 else
6979 ccache="no"
6982 if test "$ccache" != "" -a "$ccache" != "no"; then
6983 # AC_CHECK_PROG will print out the result in this case
6984 # Extract the first word of "ccache", so it can be a program name with args.
6985 set dummy ccache; ac_word=$2
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987 $as_echo_n "checking for $ac_word... " >&6; }
6988 if ${ac_cv_prog_CCACHE+:} false; then :
6989 $as_echo_n "(cached) " >&6
6990 else
6991 if test -n "$CCACHE"; then
6992 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6993 else
6994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995 for as_dir in $PATH
6997 IFS=$as_save_IFS
6998 test -z "$as_dir" && as_dir=.
6999 for ac_exec_ext in '' $ac_executable_extensions; do
7000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7001 ac_cv_prog_CCACHE="ccache"
7002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003 break 2
7005 done
7006 done
7007 IFS=$as_save_IFS
7011 CCACHE=$ac_cv_prog_CCACHE
7012 if test -n "$CCACHE"; then
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7014 $as_echo "$CCACHE" >&6; }
7015 else
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017 $as_echo "no" >&6; }
7021 else
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7023 $as_echo "no" >&6; }
7026 #-----------------------------------------------------------------------------
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7028 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7030 # Check whether --with-gcc-version was given.
7031 if test "${with_gcc_version+set}" = set; then :
7032 withval=$with_gcc_version; target_tool_version="$withval"
7033 else
7034 target_tool_version="default"
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7038 $as_echo "$target_tool_version" >&6; }
7040 #-----------------------------------------------------------------------------
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7042 $as_echo_n "checking what optimization flags to use... " >&6; }
7044 # Check whether --with-optimization was given.
7045 if test "${with_optimization+set}" = set; then :
7046 withval=$with_optimization; optimization="$withval"
7047 else
7048 optimization="unknown"
7051 if test "$optimization" = "unknown"; then
7052 if test "$debug" != "none"; then
7053 optimization="-O0"
7054 else
7055 optimization="-O2"
7058 aros_config_cflags="$aros_config_cflags $optimization"
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7060 $as_echo "$optimization" >&6; }
7062 #-----------------------------------------------------------------------------
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7064 $as_echo_n "checking what paranoia flags to use... " >&6; }
7066 # Check whether --with-paranoia was given.
7067 if test "${with_paranoia+set}" = set; then :
7068 withval=$with_paranoia; paranoia_flags="$withval"
7069 else
7070 paranoia_flags="default"
7073 if test "$paranoia_flags" = "default"; then
7074 paranoia_flags=""
7075 else if test "$paranoia_flags" = "yes"; then
7076 paranoia_flags="-Wall -Werror"
7077 fi fi
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7079 $as_echo "$paranoia_flags" >&6; }
7080 aros_paranoia_cflags="$paranoia_flags"
7082 #-----------------------------------------------------------------------------
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7084 $as_echo_n "checking what target variant to enable... " >&6; }
7085 # Check whether --enable-target_variant was given.
7086 if test "${enable_target_variant+set}" = set; then :
7087 enableval=$enable_target_variant; target_variant=$enableval
7088 else
7089 target_variant=""
7092 if test "$target_variant" = ""; then
7093 aros_target_variant=""
7094 aros_target_suffix=""
7095 enableval="none"
7096 else
7097 aros_target_variant="$target_variant"
7098 aros_target_suffix="-$target_variant"
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7101 $as_echo "$enableval" >&6; }
7103 #-----------------------------------------------------------------------------
7104 # Target-specific defaults. You can override then on a per-target basis.
7106 # Bootloader name. Currently used by PC target.
7107 target_bootloader="none"
7109 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7110 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7111 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7112 target_tool_prefix=${target_cpu}-elf-
7114 #-----------------------------------------------------------------------------
7115 # Additional options for some specific targets
7117 case "$aros_target_variant" in
7118 ios)
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7120 $as_echo_n "checking XCode path... " >&6; }
7122 # Check whether --with-xcode was given.
7123 if test "${with_xcode+set}" = set; then :
7124 withval=$with_xcode; aros_xcode_path="$withval"
7125 else
7126 aros_xcode_path="/Developer"
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7130 $as_echo "$aros_xcode_path" >&6; }
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7133 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7135 # Check whether --with-ios-version was given.
7136 if test "${with_ios_version+set}" = set; then :
7137 withval=$with_ios_version; aros_ios_version="$withval"
7138 else
7139 aros_ios_version="3.0"
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7143 $as_echo "$aros_ios_version" >&6; }
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7146 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7148 # Check whether --with-ios-sdk was given.
7149 if test "${with_ios_sdk+set}" = set; then :
7150 withval=$with_ios_sdk; aros_ios_sdk="$withval"
7151 else
7152 aros_ios_sdk="4.1"
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7156 $as_echo "$aros_ios_sdk" >&6; }
7160 "android")
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7162 $as_echo_n "checking Android SDK path... " >&6; }
7164 # Check whether --with-sdk was given.
7165 if test "${with_sdk+set}" = set; then :
7166 withval=$with_sdk; aros_android_sdk="$withval"
7167 else
7168 aros_android_sdk=$default_android_sdk
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7172 $as_echo "$aros_android_sdk" >&6; }
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7175 $as_echo_n "checking Android NDK path... " >&6; }
7177 # Check whether --with-ndk was given.
7178 if test "${with_ndk+set}" = set; then :
7179 withval=$with_ndk; aros_android_ndk="$withval"
7180 else
7181 aros_android_ndk="$default_android_ndk"
7184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7185 $as_echo "$aros_android_ndk" >&6; }
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android version to use" >&5
7188 $as_echo_n "checking what Android version to use... " >&6; }
7190 # Check whether --with-android-version was given.
7191 if test "${with_android_version+set}" = set; then :
7192 withval=$with_android_version; aros_android_version="$withval"
7193 else
7194 aros_android_version="2.2"
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_version" >&5
7198 $as_echo "$aros_android_version" >&6; }
7200 export PATH="$aros_android_sdk/tools:$PATH"
7201 # Extract the first word of "$android_tool", so it can be a program name with args.
7202 set dummy $android_tool; ac_word=$2
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7204 $as_echo_n "checking for $ac_word... " >&6; }
7205 if ${ac_cv_path_android_tool+:} false; then :
7206 $as_echo_n "(cached) " >&6
7207 else
7208 case $android_tool in
7209 [\\/]* | ?:[\\/]*)
7210 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7216 IFS=$as_save_IFS
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 break 2
7224 done
7225 done
7226 IFS=$as_save_IFS
7229 esac
7231 android_tool=$ac_cv_path_android_tool
7232 if test -n "$android_tool"; then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7234 $as_echo "$android_tool" >&6; }
7235 else
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7241 if test "$android_tool" = ""; then
7242 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7245 if test $host_os = "mingw32"; then
7246 android_tool="cmd //c $android_tool"
7250 esac
7252 #-----------------------------------------------------------------------------
7253 # This is the target configuration switch.
7254 case "$target_os" in
7255 linux*)
7256 aros_target_arch="linux"
7257 aros_target_family="unix"
7258 case "$target_cpu" in
7259 *m68k*)
7260 aros_target_cpu="m68k"
7261 aros_object_format="m68kelf"
7262 aros_flavour="emulcompat"
7263 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7264 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7265 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7266 gcc_target_cpu="mc68000"
7268 *i?86*)
7269 aros_target_cpu="i386"
7270 aros_object_format="elf_i386"
7271 aros_flavour="emulation"
7272 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7273 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7274 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7275 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7276 aros_config_ldflags="-m32 -march=i486"
7277 aros_kernel_ldflags="-melf_i386"
7278 aros_default_wbdepth=8
7279 gcc_target_cpu="i386"
7280 pci_hidd_target="hidd-pci-linux"
7282 *x86_64*)
7283 aros_target_cpu="x86_64"
7284 aros_object_format="elf_x86_64"
7285 aros_flavour="emulation"
7286 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7287 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7288 aros_default_wbdepth=8
7289 pci_hidd_target="hidd-pci-linux"
7291 *powerpc*)
7292 aros_target_cpu="ppc"
7293 aros_object_format="elf32ppc"
7294 aros_flavour="emulation"
7295 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7296 aros_default_wbdepth=8
7297 gcc_target_cpu="ppc"
7299 # TODO
7300 # Same as powerpc, but I need this for the nightly build to work again.
7301 # Actually, the nightly should be made working with powerpc target.
7302 # That just was too much work for the moment, another week or two.
7303 *ppc*)
7304 aros_target_cpu="ppc"
7305 aros_object_format="elf32ppc"
7306 aros_flavour="emulation"
7307 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7308 aros_default_wbdepth=8
7309 gcc_target_cpu="ppc"
7311 *arm*)
7312 aros_target_cpu="arm"
7313 aros_object_format="armelf_linux_eabi"
7314 aros_flavour="emulation"
7315 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7316 gcc_target_cpu="arm"
7317 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7318 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7319 aros_arch_libs="-laeabi"
7322 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7324 esac
7325 case "$aros_target_variant" in
7326 android)
7327 case "$aros_android_version" in
7328 2.2)
7329 aros_android_level=android-8
7332 aros_android_level=android-9
7334 esac
7335 aros_default_wbwidth=320
7336 aros_default_wbheight=480
7337 use_aros_gcc="yes"
7338 if test "$aros_android_ndk" = ""; then
7339 aros_kernel_cflags="-mandroid"
7340 aros_kernel_ldflags="-mandroid"
7341 CFLAGS="-mandroid"
7342 else
7343 export PATH="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7344 aros_android_ndk="$aros_android_ndk/platforms/$aros_android_level/arch-arm"
7345 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7346 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7347 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7348 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7350 need_x11=no
7351 target_tool_prefix="arm-linux-androideabi-"
7353 esac
7357 aros_target_arch="pc"
7358 aros_shared_default="no"
7359 target_bootloader="grub2"
7360 case "$target_cpu" in
7361 *i?86*)
7362 aros_target_cpu="i386"
7365 if test "$aros_object_format" = "" ; then
7366 aros_object_format="elf_i386"
7368 aros_flavour="standalone"
7369 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7370 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7371 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7372 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7373 aros_config_ldflags="-m32 -march=i486"
7374 aros_kernel_ldflags="-melf_i386"
7375 aros_default_wbwidth=640
7376 aros_default_wbheight=480
7377 gcc_target_cpu="i386"
7379 *x86_64*)
7380 aros_target_cpu="x86_64"
7381 aros_serial_debug=1
7382 if test "$aros_object_format" = "" ; then
7383 aros_object_format="elf_x86_64"
7385 aros_flavour="standalone"
7386 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7387 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7388 aros_kernel_ldflags=""
7389 aros_default_wbwidth=640
7390 aros_default_wbheight=480
7393 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7395 esac
7398 prep)
7399 aros_target_arch="prep"
7400 aros_shared_default="no"
7401 aros_target_cpu="ppc"
7402 aros_object_format="elf32ppc"
7403 aros_flavour="ppcnative"
7404 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7405 aros_kernel_ldflags=""
7406 aros_default_wbwidth=640
7407 aros_default_wbheight=480
7408 gcc_target_cpu="ppc"
7411 freebsd*)
7412 aros_target_arch="freebsd"
7413 aros_target_family="unix"
7414 aros_target_cpu="i386"
7415 aros_flavour="emulation"
7416 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7417 gcc_target_cpu="i386"
7419 aros_target_strip_flags="-x"
7422 darwin*)
7423 aros_target_arch="darwin"
7424 aros_target_family="unix"
7425 aros_flavour="emulation"
7426 case "$target_cpu" in
7427 *i?86*)
7428 aros_ios_platform="iPhoneSimulator"
7429 aros_target_cpu="i386"
7430 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7431 aros_kernel_ldflags=""
7432 aros_macosx_version="10.4"
7433 aros_default_wbdepth=8
7434 gcc_target_cpu="i386"
7435 aros_object_format="elf_i386"
7436 aros_target_strip_flags="-x"
7437 target_tool_prefix="i686-apple-darwin10-"
7438 target_tool_flags="-m32"
7440 *x86_64*)
7441 aros_target_cpu="x86_64"
7442 aros_object_format="elf_x86_64"
7443 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7444 aros_macosx_version="10.6"
7445 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7446 aros_kernel_cflags="-m64"
7447 aros_kernel_ldflags="-m64"
7448 aros_target_cflags="-mcmodel=large"
7449 aros_default_wbdepth=8
7450 aros_kernel_ld="ld"
7451 target_tool_prefix="i686-apple-darwin10-"
7453 *ppc*)
7454 aros_target_cpu="ppc"
7455 aros_object_format="elf32ppc"
7456 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7457 aros_kernel_ldflags=""
7458 aros_macosx_version="10.0"
7459 aros_default_wbdepth=8
7460 gcc_target_cpu="ppc"
7461 aros_kernel_ld="ld -arch ppc"
7462 target_tool_prefix="powerpc-apple-darwin10-"
7464 *arm*)
7465 aros_ios_platform="iPhoneOS"
7466 aros_target_cpu="arm"
7467 aros_object_format="armelf_linux_eabi"
7468 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7469 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7470 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7471 aros_arch_libs="-laeabi"
7472 aros_default_wbdepth=8
7473 gcc_target_cpu="arm"
7474 target_tool_prefix="arm-apple-darwin10-"
7475 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7478 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7480 esac
7481 case "$aros_target_variant" in
7482 ios)
7483 aros_default_wbwidth=320
7484 aros_default_wbheight=480
7485 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7486 target_tool_flags="$target_tool_flags --sysroot $aros_ios_sdk"
7487 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7488 need_x11=no
7489 # This is here because it may depend on iOS or SDK version
7490 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7491 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7492 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7495 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7496 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7498 esac
7501 dragonfly*)
7502 aros_target_arch="dragonfly"
7503 aros_target_family="unix"
7504 aros_flavour="emulation"
7505 case "$target_cpu" in
7506 *i?86*)
7507 aros_target_cpu="i386"
7508 aros_object_format="elf_i386"
7509 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7511 *x86_64*)
7512 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7513 aros_target_cpu="x86_64"
7514 aros_object_format="elf_x86_64"
7515 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7518 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7520 esac
7523 netbsd*)
7524 aros_target_arch="netbsd"
7525 aros_target_family="unix"
7526 case "$target_cpu" in
7527 *m68k*)
7528 aros_target_cpu="m68k"
7529 aros_object_format="m68kelf"
7530 aros_flavour="emulcompat"
7531 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7532 gcc_target_cpu="mc68000"
7534 *i?86*)
7535 aros_target_cpu="i386"
7536 aros_object_format="elf_i386"
7537 aros_flavour="emulation"
7538 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7539 aros_default_wbdepth=8
7540 gcc_target_cpu="i386"
7543 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7545 esac
7546 aros_target_genmap="-Wl,-M -Xlinker >"
7547 aros_flavour="emulation"
7548 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7551 openbsd*)
7552 aros_target_arch="openbsd"
7553 aros_target_family="unix"
7554 case "$target_cpu" in
7555 *i?86*)
7556 aros_target_cpu="i386"
7557 aros_object_format="elf_i386"
7558 aros_flavour="emulation"
7559 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7560 gcc_target_cpu="i386"
7563 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7565 esac
7566 aros_target_genmap="-Wl,-M -Xlinker >"
7567 aros_target_nm_flags="-u"
7568 aros_flavour="emulation"
7571 solaris*)
7572 aros_target_arch="solaris"
7573 aros_target_family="unix"
7574 case "$target_cpu" in
7575 *i?86*)
7576 aros_target_cpu="i386"
7577 aros_object_format="elf_i386"
7578 aros_flavour="emulation"
7579 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7580 aros_default_wbdepth=8
7581 gcc_target_cpu="i386"
7583 *sparc*)
7584 aros_target_cpu="sparc"
7585 aros_object_format="elf_sparc"
7586 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7587 gcc_target_cpu="sparc"
7590 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7592 esac
7593 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7594 aros_flavour="emulation"
7597 morphos*)
7598 aros_target_arch="morphos"
7599 aros_shared_default="no"
7600 aros_target_cpu="ppc"
7601 aros_object_format="elf_ppc"
7602 aros_flavour="nativecompat"
7603 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7604 gcc_target_cpu="ppc"
7607 sam440)
7608 aros_target_arch="sam440"
7609 aros_shared_default="no"
7610 aros_target_cpu="ppc"
7611 aros_object_format="elf32ppc"
7612 aros_flavour="ppcnative"
7613 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7614 aros_kernel_ldflags=""
7615 aros_default_wbwidth=1024
7616 aros_default_wbheight=768
7617 aros_default_wbdepth=24
7618 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7619 gcc_target_cpu="powerpc"
7622 efika)
7623 aros_target_arch="efika"
7624 aros_shared_default="no"
7625 aros_target_cpu="arm"
7626 aros_object_format="armelf_linux_eabi"
7627 aros_flavour="standalone"
7628 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7629 aros_kernel_ldflags=""
7630 aros_default_wbwidth=1024
7631 aros_default_wbheight=600
7632 aros_arch_libs="-laeabi"
7633 aros_config_cflags="$aros_config_cflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7634 aros_config_aflags="$aros_config_aflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7637 chrp)
7638 aros_target_arch="chrp"
7639 aros_shared_default="no"
7640 aros_target_cpu="ppc"
7641 aros_object_format="elf32ppc"
7642 aros_flavour="ppcnative"
7643 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7644 aros_kernel_ldflags=""
7645 aros_default_wbwidth=640
7646 aros_default_wbheight=480
7647 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7648 gcc_target_cpu="powerpc"
7649 case "$aros_target_variant" in
7650 efika)
7651 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7653 esac
7656 amiga*)
7657 aros_target_arch="amiga"
7658 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7659 aros_shared_default="no"
7661 case "$target_cpu" in
7662 *m68k*)
7663 aros_enable_mmu=no
7664 aros_target_cpu="m68k"
7665 aros_object_format="m68kelf"
7666 aros_flavour="standcompat"
7667 gcc_target_cpu="m68000"
7668 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -DAROS_DOS_PACKETS"
7669 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7670 aros_paranoia_cflags="$aros_paranoia_cflags -Wno-volatile-register-var"
7671 aros_debug_cflags="$aros_debug_cflags -Wall -Wno-volatile-register-var"
7672 target_tool_prefix="m68k-elf-"
7673 # Needed to get the correct multilib
7674 aros_config_ldflags="-${gcc_target_cpu}"
7675 aros_shared_ldflags="-${gcc_target_cpu}"
7676 aros_kernel_ldflags="-${gcc_target_cpu}"
7677 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7678 aros_target_strip_flags="-R.comment --strip-debug"
7679 aros_default_wbwidth=640
7680 aros_default_wbheight=256
7681 aros_default_wbdepth=2
7683 *ppc*)
7684 aros_cpu="ppc"
7685 aros_flavour="native"
7686 gcc_target_cpu="ppc"
7689 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7691 esac
7694 mingw*)
7695 aros_target_arch="mingw32"
7696 aros_shared_default="no"
7697 aros_flavour="emulation"
7698 aros_shared_cflags=""
7699 need_dlopen="no"
7700 rescomp="windres"
7701 case "$target_cpu" in
7702 *i?86*)
7703 aros_target_cpu="i386"
7704 aros_object_format="elf_i386"
7705 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7706 aros_default_wbdepth=8
7707 gcc_target_cpu="i386"
7709 aros_target_as="i386-aros-as"
7710 aros_target_ar="i386-aros-ar"
7711 aros_target_ranlib="i386-aros-ranlib"
7712 aros_target_nm="i386-aros-nm"
7713 aros_target_strip="i386-aros-strip"
7714 aros_target_objcopy="i386-aros-objcopy"
7715 aros_target_objdump="i386-aros-objdump"
7717 target_tool_prefix="i386-mingw32-"
7719 *x86_64*)
7720 aros_target_cpu="x86_64"
7721 aros_object_format="elf_x86_64"
7722 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7723 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7724 aros_default_wbdepth=8
7725 target_tool_prefix="x86_64-w64-mingw32-"
7727 *arm*)
7728 aros_target_cpu="arm"
7729 aros_object_format="armelf_linux_eabi"
7730 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7731 aros_arch_libs="-laeabi"
7732 aros_default_wbdepth=8
7733 gcc_target_cpu="arm"
7734 target_tool_prefix="arm-mingw32ce-"
7735 aros_default_wbwidth=160
7736 aros_default_wbheight=160
7739 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7741 esac
7742 if test $host_os = "cygwin"; then
7743 aros_kernel_cflags="-mno-cygwin"
7746 pp*)
7747 aros_target_arch="pp"
7748 aros_shared_default="no"
7749 case "$target_cpu" in
7750 *m68k*)
7751 aros_target_cpu="m68k"
7752 aros_object_format="m68kelf"
7753 aros_flavour="palmnative"
7754 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7755 aros_default_wbwidth=160
7756 aros_default_wbheight=160
7757 aros_default_wbdepth=1
7758 aros_target_ar_flags="cru"
7759 aros_compiler_libs="-lgcc1"
7760 aros_shared_default=no
7761 aros_shared_cflags="-fpic"
7762 aros_shared_aflags=""
7763 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7764 aros_kernel_ldflags="-Wl,-rpath,./lib"
7765 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7766 aros_debug_aflags=""
7767 aros_debug_ldflags="$aros_symbols_debug"
7768 aros_mungwall_debug="0"
7769 aros_modules_debug="0"
7770 gcc_target_cpu="mc68000"
7771 ignore_undefined_symbols="-ius"
7774 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7776 esac
7779 mac*)
7780 aros_target_arch="mac"
7781 aros_shared_default="no"
7782 case "$target_cpu" in
7783 *m68k*)
7784 aros_target_cpu="m68k"
7785 aros_object_format="m68kelf"
7786 aros_flavour="mac68knative"
7787 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7788 aros_default_wbwidth=512
7789 aros_default_wbheight=384
7790 aros_default_wbdepth=8
7791 aros_target_ar_flags="cru"
7792 aros_compiler_libs="-lgcc1"
7793 aros_shared_default=no
7794 aros_shared_cflags="-fpic"
7795 aros_shared_aflags=""
7796 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7797 aros_kernel_ldflags="-Wl,-rpath,./lib"
7798 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7799 aros_debug_aflags=""
7800 aros_debug_ldflags="$aros_symbols_debug"
7801 aros_mungwall_debug="0"
7802 aros_modules_debug="0"
7803 gcc_target_cpu="mc68000"
7804 ignore_undefined_symbols="-ius"
7807 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7809 esac
7813 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7815 esac
7817 #-----------------------------------------------------------------------------
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7819 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7821 # Check whether --with-aros-gcc was given.
7822 if test "${with_aros_gcc+set}" = set; then :
7823 withval=$with_aros_gcc; aros_gcc_version="$withval"
7824 else
7825 aros_gcc_version="$use_aros_gcc"
7828 case "$aros_gcc_version" in
7829 yes)
7830 aros_gcc_version="default"
7833 aros_gcc_version="none"
7835 esac
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7837 $as_echo "$aros_gcc_version" >&6; }
7839 if test "$aros_gcc_version" != "none"; then
7840 if test "$aros_gcc_version" != "default"; then
7841 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7842 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
7843 else
7844 aros_target_cc="$aros_target_cpu-aros-gcc"
7845 aros_target_cxx="$aros_target_cpu-aros-g++"
7848 aros_target_ld="$aros_target_cpu-aros-ld"
7849 aros_target_as="$aros_target_cpu-aros-as"
7850 aros_target_ar="$aros_target_cpu-aros-ar"
7851 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
7852 aros_target_nm="$aros_target_cpu-aros-nm"
7853 aros_target_strip="$aros_target_cpu-aros-strip"
7854 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
7855 aros_target_objdump="$aros_target_cpu-aros-objdump"
7858 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
7859 # Since we override specs, we may need to put these defines there
7860 if test "$gcc_target_cpu" != ""; then
7861 gcc_target_cpu="-D__${gcc_target_cpu}__"
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Where to download sourcecode for external ports" >&5
7865 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
7867 # Check whether --with-portssources was given.
7868 if test "${with_portssources+set}" = set; then :
7869 withval=$with_portssources; with_portssrcdir=$withval
7870 else
7871 with_portssrcdir="default"
7874 if test "$with_portssrcdir" = "default"; then
7875 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7876 else
7877 AROS_PORTSSRCDIR="$with_portssrcdir"
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7880 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7883 $as_echo_n "checking which bootloader to use... " >&6; }
7885 # Check whether --with-bootloader was given.
7886 if test "${with_bootloader+set}" = set; then :
7887 withval=$with_bootloader; target_bootloader=$withval
7888 else
7889 target_bootloader=$target_bootloader
7892 if test "$target_bootloader" = "none"; then
7893 aros_target_bootloader=""
7894 else
7895 aros_target_bootloader="$target_bootloader"
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7898 $as_echo "$target_bootloader" >&6; }
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7901 $as_echo_n "checking which icon-set to use... " >&6; }
7903 # Check whether --with-iconset was given.
7904 if test "${with_iconset+set}" = set; then :
7905 withval=$with_iconset; target_iconset=$withval
7906 else
7907 target_iconset="default"
7910 if test "$target_iconset" = "default"; then
7911 aros_target_iconset="Gorilla"
7912 target_iconset="default (Gorilla)"
7913 else
7914 aros_target_iconset="$target_iconset"
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7917 $as_echo "$target_iconset" >&6; }
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7920 $as_echo_n "checking which GUI Theme to use... " >&6; }
7922 # Check whether --with-theme was given.
7923 if test "${with_theme+set}" = set; then :
7924 withval=$with_theme; target_guitheme=$withval
7925 else
7926 target_guitheme="default"
7929 if test "$target_guitheme" = "default"; then
7930 aros_target_guitheme="Ice"
7931 else
7932 aros_target_guitheme="$target_guitheme"
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7935 $as_echo "$aros_target_guitheme" >&6; }
7937 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7938 # for target code)
7939 cross_compiling=no
7940 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7941 cross_compiling=yes
7944 if test "$aros_host_cpu" == "x86_64" ; then
7945 if test "$aros_target_cpu" == "i386" ; then
7946 if test "$aros_target_arch" != "mingw32"; then
7947 cross_compiling=no
7952 if test "$aros_host_arch" == "darwin" ; then
7953 if test "$aros_target_arch" != "darwin" ; then
7954 cross_compiling=yes
7958 # Set prefix for target compiler etc. if we're cross-compiling
7959 # (should possibly be earlier but needs to be after AC_PROG_CC)
7960 if test "$cross_compiling" = "yes" ; then
7961 CC=${target_tool_prefix}gcc
7962 CPP=${target_tool_prefix}cpp
7963 if test "$target_tool_version" != "default"; then
7964 CC="$CC-$target_tool_version"
7965 CPP="$CC-$target_tool_version"
7967 # Extract the first word of "$CC", so it can be a program name with args.
7968 set dummy $CC; ac_word=$2
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7970 $as_echo_n "checking for $ac_word... " >&6; }
7971 if ${ac_cv_path_CC+:} false; then :
7972 $as_echo_n "(cached) " >&6
7973 else
7974 case $CC in
7975 [\\/]* | ?:[\\/]*)
7976 ac_cv_path_CC="$CC" # Let the user override the test with a path.
7979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7980 for as_dir in $PATH
7982 IFS=$as_save_IFS
7983 test -z "$as_dir" && as_dir=.
7984 for ac_exec_ext in '' $ac_executable_extensions; do
7985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7986 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
7987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7988 break 2
7990 done
7991 done
7992 IFS=$as_save_IFS
7995 esac
7997 CC=$ac_cv_path_CC
7998 if test -n "$CC"; then
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8000 $as_echo "$CC" >&6; }
8001 else
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8003 $as_echo "no" >&6; }
8007 if test "$CC" = ""; then
8008 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8011 CC="$CC $target_tool_flags"
8013 #-----------------------------------------------------------------------------
8015 # Disable pointer-signedness warnings if the compiler recognises the option
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8018 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8019 save_cflags="$CFLAGS"
8020 CFLAGS="$CFLAGS -Wno-pointer-sign"
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8025 main ()
8029 return 0;
8031 _ACEOF
8032 if ac_fn_c_try_compile "$LINENO"; then :
8033 use_no_sign_warning="yes"
8034 else
8035 use_no_sign_warning="no"
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8039 $as_echo "$use_no_sign_warning" >&6; }
8040 if test "x-$use_no_sign_warning" = "x-yes" ; then
8041 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8043 CFLAGS="$save_cflags"
8045 #-----------------------------------------------------------------------------
8047 # Find all the tools we need to compile. This could be cross-compiling
8048 # though! If that is the case we use the GNU form of the target and
8049 # simply add this to the front of the binary name. This is rather simple,
8050 # but it should work under most circumstances.
8052 # The default tools are to use the same as the host, but only if the
8053 # host and target CPU are the same. With GCC this is normally enough.
8056 aros_cc_pre=""
8057 aros_shared_ld="$aros_host_ld"
8059 aros_target_mkdep="$aros_host_mkdep"
8060 aros_target_incl_def="$aros_host_incl"
8062 aros_kernel_cc="$CC"
8064 # The default tools executables to be linked to.
8065 if test "$rescomp" != ""; then
8066 if test "$cross_compiling" = "yes" ; then
8067 rescomp=${target_tool_prefix}${rescomp}
8069 # Extract the first word of "$rescomp", so it can be a program name with args.
8070 set dummy $rescomp; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 case $aros_kernel_rescomp in
8077 [\\/]* | ?:[\\/]*)
8078 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8088 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8092 done
8093 done
8094 IFS=$as_save_IFS
8097 esac
8099 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8100 if test -n "$aros_kernel_rescomp"; then
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8102 $as_echo "$aros_kernel_rescomp" >&6; }
8103 else
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }
8109 if test "$aros_kernel_rescomp" = ""; then
8110 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8114 if test "$crosstools" != "yes"; then
8116 if test "$aros_kernel_ld" = ""; then
8117 if test "$cross_compiling" = "yes" ; then
8118 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8119 set dummy ${target_tool_prefix}ld; ac_word=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 case $aros_kernel_ld in
8126 [\\/]* | ?:[\\/]*)
8127 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 for as_dir in $PATH
8133 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=.
8135 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8137 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 break 2
8141 done
8142 done
8143 IFS=$as_save_IFS
8146 esac
8148 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8149 if test -n "$aros_kernel_ld"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8151 $as_echo "$aros_kernel_ld" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8158 else
8159 if test "$GCC" = "yes"; then
8160 aros_gcc_ld=`$CC -print-prog-name=ld`
8161 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8162 set dummy `basename $aros_gcc_ld`; ac_word=$2
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8164 $as_echo_n "checking for $ac_word... " >&6; }
8165 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 case $aros_kernel_ld in
8169 [\\/]* | ?:[\\/]*)
8170 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 for as_dir in `dirname $aros_gcc_ld`
8176 IFS=$as_save_IFS
8177 test -z "$as_dir" && as_dir=.
8178 for ac_exec_ext in '' $ac_executable_extensions; do
8179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8180 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8182 break 2
8184 done
8185 done
8186 IFS=$as_save_IFS
8189 esac
8191 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8192 if test -n "$aros_kernel_ld"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8194 $as_echo "$aros_kernel_ld" >&6; }
8195 else
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8202 if test "$aros_kernel_ld" = ""; then
8203 # Extract the first word of "ld", so it can be a program name with args.
8204 set dummy ld; ac_word=$2
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206 $as_echo_n "checking for $ac_word... " >&6; }
8207 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8208 $as_echo_n "(cached) " >&6
8209 else
8210 case $aros_kernel_ld in
8211 [\\/]* | ?:[\\/]*)
8212 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8216 for as_dir in $PATH
8218 IFS=$as_save_IFS
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8222 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8224 break 2
8226 done
8227 done
8228 IFS=$as_save_IFS
8231 esac
8233 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8234 if test -n "$aros_kernel_ld"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8236 $as_echo "$aros_kernel_ld" >&6; }
8237 else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8245 else
8246 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8247 set dummy $aros_kernel_ld; ac_word=$2
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8251 $as_echo_n "(cached) " >&6
8252 else
8253 case $aros_kernel_ld in
8254 [\\/]* | ?:[\\/]*)
8255 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259 for as_dir in $PATH
8261 IFS=$as_save_IFS
8262 test -z "$as_dir" && as_dir=.
8263 for ac_exec_ext in '' $ac_executable_extensions; do
8264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8265 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8267 break 2
8269 done
8270 done
8271 IFS=$as_save_IFS
8274 esac
8276 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8277 if test -n "$aros_kernel_ld"; then
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8279 $as_echo "$aros_kernel_ld" >&6; }
8280 else
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8282 $as_echo "no" >&6; }
8288 if test "$aros_kernel_ld" = ""; then
8289 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8292 if test "$target_tool_prefix" != "${target_cpu}-elf-" ; then
8293 target_tool_prefix=${target_cpu}-elf-
8294 if test "$aros_target_cc" == ""; then
8295 aros_target_cc="${target_tool_prefix}gcc"
8297 if test "$aros_target_ld" == ""; then
8298 aros_target_ld="${target_tool_prefix}ld"
8302 if test "$aros_target_as" = ""; then
8303 if test "$cross_compiling" = "yes" ; then
8304 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8305 set dummy ${target_tool_prefix}as; ac_word=$2
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 $as_echo_n "checking for $ac_word... " >&6; }
8308 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8309 $as_echo_n "(cached) " >&6
8310 else
8311 case $aros_target_as_ln in
8312 [\\/]* | ?:[\\/]*)
8313 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 for as_dir in $PATH
8319 IFS=$as_save_IFS
8320 test -z "$as_dir" && as_dir=.
8321 for ac_exec_ext in '' $ac_executable_extensions; do
8322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8323 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8325 break 2
8327 done
8328 done
8329 IFS=$as_save_IFS
8332 esac
8334 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8335 if test -n "$aros_target_as_ln"; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8337 $as_echo "$aros_target_as_ln" >&6; }
8338 else
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8344 else
8345 if test "$GCC" = "yes"; then
8346 aros_gcc_as=`$CC -print-prog-name=as`
8347 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8348 set dummy `basename $aros_gcc_as`; ac_word=$2
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8350 $as_echo_n "checking for $ac_word... " >&6; }
8351 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8352 $as_echo_n "(cached) " >&6
8353 else
8354 case $aros_target_as_ln in
8355 [\\/]* | ?:[\\/]*)
8356 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in `dirname $aros_gcc_as`
8362 IFS=$as_save_IFS
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8366 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8368 break 2
8370 done
8371 done
8372 IFS=$as_save_IFS
8375 esac
8377 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8378 if test -n "$aros_target_as_ln"; then
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8380 $as_echo "$aros_target_as_ln" >&6; }
8381 else
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8383 $as_echo "no" >&6; }
8388 if test "$aros_target_as_ln" = ""; then
8389 # Extract the first word of "as", so it can be a program name with args.
8390 set dummy as; ac_word=$2
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8392 $as_echo_n "checking for $ac_word... " >&6; }
8393 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8394 $as_echo_n "(cached) " >&6
8395 else
8396 case $aros_target_as_ln in
8397 [\\/]* | ?:[\\/]*)
8398 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8402 for as_dir in $PATH
8404 IFS=$as_save_IFS
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8408 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 break 2
8412 done
8413 done
8414 IFS=$as_save_IFS
8417 esac
8419 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8420 if test -n "$aros_target_as_ln"; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8422 $as_echo "$aros_target_as_ln" >&6; }
8423 else
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8431 else
8432 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8433 set dummy $aros_target_as; ac_word=$2
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435 $as_echo_n "checking for $ac_word... " >&6; }
8436 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8437 $as_echo_n "(cached) " >&6
8438 else
8439 case $aros_target_as_ln in
8440 [\\/]* | ?:[\\/]*)
8441 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8445 for as_dir in $PATH
8447 IFS=$as_save_IFS
8448 test -z "$as_dir" && as_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8451 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8453 break 2
8455 done
8456 done
8457 IFS=$as_save_IFS
8460 esac
8462 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8463 if test -n "$aros_target_as_ln"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8465 $as_echo "$aros_target_as_ln" >&6; }
8466 else
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8474 if test "$aros_target_as_ln" = ""; then
8475 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
8478 if test "$aros_target_ar" = ""; then
8479 if test "$cross_compiling" = "yes" ; then
8480 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8481 set dummy ${target_tool_prefix}ar; ac_word=$2
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8483 $as_echo_n "checking for $ac_word... " >&6; }
8484 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
8485 $as_echo_n "(cached) " >&6
8486 else
8487 case $aros_target_ar_ln in
8488 [\\/]* | ?:[\\/]*)
8489 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 for as_dir in $PATH
8495 IFS=$as_save_IFS
8496 test -z "$as_dir" && as_dir=.
8497 for ac_exec_ext in '' $ac_executable_extensions; do
8498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8499 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8501 break 2
8503 done
8504 done
8505 IFS=$as_save_IFS
8508 esac
8510 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8511 if test -n "$aros_target_ar_ln"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8513 $as_echo "$aros_target_ar_ln" >&6; }
8514 else
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8520 else
8521 if test "$GCC" = "yes"; then
8522 aros_gcc_ar=`$CC -print-prog-name=ar`
8523 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8524 set dummy `basename $aros_gcc_ar`; ac_word=$2
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8526 $as_echo_n "checking for $ac_word... " >&6; }
8527 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
8528 $as_echo_n "(cached) " >&6
8529 else
8530 case $aros_target_ar_ln in
8531 [\\/]* | ?:[\\/]*)
8532 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8536 for as_dir in `dirname $aros_gcc_ar`
8538 IFS=$as_save_IFS
8539 test -z "$as_dir" && as_dir=.
8540 for ac_exec_ext in '' $ac_executable_extensions; do
8541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8542 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 break 2
8546 done
8547 done
8548 IFS=$as_save_IFS
8551 esac
8553 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8554 if test -n "$aros_target_ar_ln"; then
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8556 $as_echo "$aros_target_ar_ln" >&6; }
8557 else
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8559 $as_echo "no" >&6; }
8564 if test "$aros_target_ar_ln" = ""; then
8565 # Extract the first word of "ar", so it can be a program name with args.
8566 set dummy ar; ac_word=$2
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8568 $as_echo_n "checking for $ac_word... " >&6; }
8569 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
8570 $as_echo_n "(cached) " >&6
8571 else
8572 case $aros_target_ar_ln in
8573 [\\/]* | ?:[\\/]*)
8574 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8578 for as_dir in $PATH
8580 IFS=$as_save_IFS
8581 test -z "$as_dir" && as_dir=.
8582 for ac_exec_ext in '' $ac_executable_extensions; do
8583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8584 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8586 break 2
8588 done
8589 done
8590 IFS=$as_save_IFS
8593 esac
8595 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8596 if test -n "$aros_target_ar_ln"; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8598 $as_echo "$aros_target_ar_ln" >&6; }
8599 else
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8601 $as_echo "no" >&6; }
8607 else
8608 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8609 set dummy $aros_target_ar; ac_word=$2
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8611 $as_echo_n "checking for $ac_word... " >&6; }
8612 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
8613 $as_echo_n "(cached) " >&6
8614 else
8615 case $aros_target_ar_ln in
8616 [\\/]* | ?:[\\/]*)
8617 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8621 for as_dir in $PATH
8623 IFS=$as_save_IFS
8624 test -z "$as_dir" && as_dir=.
8625 for ac_exec_ext in '' $ac_executable_extensions; do
8626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8627 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8629 break 2
8631 done
8632 done
8633 IFS=$as_save_IFS
8636 esac
8638 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8639 if test -n "$aros_target_ar_ln"; then
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8641 $as_echo "$aros_target_ar_ln" >&6; }
8642 else
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8644 $as_echo "no" >&6; }
8650 if test "$aros_target_ar_ln" = ""; then
8651 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8654 if test "$aros_target_nm" = ""; then
8655 if test "$cross_compiling" = "yes" ; then
8656 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8657 set dummy ${target_tool_prefix}nm; ac_word=$2
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8659 $as_echo_n "checking for $ac_word... " >&6; }
8660 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
8661 $as_echo_n "(cached) " >&6
8662 else
8663 case $aros_target_nm_ln in
8664 [\\/]* | ?:[\\/]*)
8665 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8669 for as_dir in $PATH
8671 IFS=$as_save_IFS
8672 test -z "$as_dir" && as_dir=.
8673 for ac_exec_ext in '' $ac_executable_extensions; do
8674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8675 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8677 break 2
8679 done
8680 done
8681 IFS=$as_save_IFS
8684 esac
8686 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8687 if test -n "$aros_target_nm_ln"; then
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8689 $as_echo "$aros_target_nm_ln" >&6; }
8690 else
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8692 $as_echo "no" >&6; }
8696 else
8697 if test "$GCC" = "yes"; then
8698 aros_gcc_nm=`$CC -print-prog-name=nm`
8699 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8700 set dummy `basename $aros_gcc_nm`; ac_word=$2
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8702 $as_echo_n "checking for $ac_word... " >&6; }
8703 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
8704 $as_echo_n "(cached) " >&6
8705 else
8706 case $aros_target_nm_ln in
8707 [\\/]* | ?:[\\/]*)
8708 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8712 for as_dir in `dirname $aros_gcc_nm`
8714 IFS=$as_save_IFS
8715 test -z "$as_dir" && as_dir=.
8716 for ac_exec_ext in '' $ac_executable_extensions; do
8717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8718 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8720 break 2
8722 done
8723 done
8724 IFS=$as_save_IFS
8727 esac
8729 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8730 if test -n "$aros_target_nm_ln"; then
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8732 $as_echo "$aros_target_nm_ln" >&6; }
8733 else
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8735 $as_echo "no" >&6; }
8740 if test "$aros_target_nm_ln" = ""; then
8741 # Extract the first word of "nm", so it can be a program name with args.
8742 set dummy nm; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 case $aros_target_nm_ln in
8749 [\\/]* | ?:[\\/]*)
8750 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8754 for as_dir in $PATH
8756 IFS=$as_save_IFS
8757 test -z "$as_dir" && as_dir=.
8758 for ac_exec_ext in '' $ac_executable_extensions; do
8759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8760 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8762 break 2
8764 done
8765 done
8766 IFS=$as_save_IFS
8769 esac
8771 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8772 if test -n "$aros_target_nm_ln"; then
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8774 $as_echo "$aros_target_nm_ln" >&6; }
8775 else
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8777 $as_echo "no" >&6; }
8783 else
8784 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8785 set dummy $aros_target_nm; ac_word=$2
8786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8787 $as_echo_n "checking for $ac_word... " >&6; }
8788 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
8789 $as_echo_n "(cached) " >&6
8790 else
8791 case $aros_target_nm_ln in
8792 [\\/]* | ?:[\\/]*)
8793 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8797 for as_dir in $PATH
8799 IFS=$as_save_IFS
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8803 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8805 break 2
8807 done
8808 done
8809 IFS=$as_save_IFS
8812 esac
8814 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8815 if test -n "$aros_target_nm_ln"; then
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8817 $as_echo "$aros_target_nm_ln" >&6; }
8818 else
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8826 if test "$aros_target_nm_ln" = ""; then
8827 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8830 if test "$aros_target_objcopy" = ""; then
8831 if test "$cross_compiling" = "yes" ; then
8832 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8833 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8835 $as_echo_n "checking for $ac_word... " >&6; }
8836 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 case $aros_target_objcopy_ln in
8840 [\\/]* | ?:[\\/]*)
8841 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8851 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853 break 2
8855 done
8856 done
8857 IFS=$as_save_IFS
8860 esac
8862 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8863 if test -n "$aros_target_objcopy_ln"; then
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8865 $as_echo "$aros_target_objcopy_ln" >&6; }
8866 else
8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8868 $as_echo "no" >&6; }
8872 else
8873 if test "$GCC" = "yes"; then
8874 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8875 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8876 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8878 $as_echo_n "checking for $ac_word... " >&6; }
8879 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
8880 $as_echo_n "(cached) " >&6
8881 else
8882 case $aros_target_objcopy_ln in
8883 [\\/]* | ?:[\\/]*)
8884 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8888 for as_dir in `dirname $aros_gcc_objcopy`
8890 IFS=$as_save_IFS
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8894 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8896 break 2
8898 done
8899 done
8900 IFS=$as_save_IFS
8903 esac
8905 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8906 if test -n "$aros_target_objcopy_ln"; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8908 $as_echo "$aros_target_objcopy_ln" >&6; }
8909 else
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8911 $as_echo "no" >&6; }
8916 if test "$aros_target_objcopy_ln" = ""; then
8917 # Extract the first word of "objcopy", so it can be a program name with args.
8918 set dummy objcopy; ac_word=$2
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 $as_echo_n "checking for $ac_word... " >&6; }
8921 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
8922 $as_echo_n "(cached) " >&6
8923 else
8924 case $aros_target_objcopy_ln in
8925 [\\/]* | ?:[\\/]*)
8926 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8930 for as_dir in $PATH
8932 IFS=$as_save_IFS
8933 test -z "$as_dir" && as_dir=.
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8936 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 break 2
8940 done
8941 done
8942 IFS=$as_save_IFS
8945 esac
8947 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8948 if test -n "$aros_target_objcopy_ln"; then
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8950 $as_echo "$aros_target_objcopy_ln" >&6; }
8951 else
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8953 $as_echo "no" >&6; }
8959 else
8960 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8961 set dummy $aros_target_objcopy; ac_word=$2
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8963 $as_echo_n "checking for $ac_word... " >&6; }
8964 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 case $aros_target_objcopy_ln in
8968 [\\/]* | ?:[\\/]*)
8969 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8975 IFS=$as_save_IFS
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8979 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981 break 2
8983 done
8984 done
8985 IFS=$as_save_IFS
8988 esac
8990 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8991 if test -n "$aros_target_objcopy_ln"; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8993 $as_echo "$aros_target_objcopy_ln" >&6; }
8994 else
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
9002 if test "$aros_target_objcopy_ln" = ""; then
9003 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9006 if test "$aros_target_objdump" = ""; then
9007 if test "$cross_compiling" = "yes" ; then
9008 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9009 set dummy ${target_tool_prefix}objdump; ac_word=$2
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9011 $as_echo_n "checking for $ac_word... " >&6; }
9012 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9013 $as_echo_n "(cached) " >&6
9014 else
9015 case $aros_target_objdump_ln in
9016 [\\/]* | ?:[\\/]*)
9017 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9021 for as_dir in $PATH
9023 IFS=$as_save_IFS
9024 test -z "$as_dir" && as_dir=.
9025 for ac_exec_ext in '' $ac_executable_extensions; do
9026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9027 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9029 break 2
9031 done
9032 done
9033 IFS=$as_save_IFS
9036 esac
9038 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9039 if test -n "$aros_target_objdump_ln"; then
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9041 $as_echo "$aros_target_objdump_ln" >&6; }
9042 else
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9044 $as_echo "no" >&6; }
9048 else
9049 if test "$GCC" = "yes"; then
9050 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9051 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9052 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9054 $as_echo_n "checking for $ac_word... " >&6; }
9055 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9056 $as_echo_n "(cached) " >&6
9057 else
9058 case $aros_target_objdump_ln in
9059 [\\/]* | ?:[\\/]*)
9060 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9064 for as_dir in `dirname $aros_gcc_objdump`
9066 IFS=$as_save_IFS
9067 test -z "$as_dir" && as_dir=.
9068 for ac_exec_ext in '' $ac_executable_extensions; do
9069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9070 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9072 break 2
9074 done
9075 done
9076 IFS=$as_save_IFS
9079 esac
9081 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9082 if test -n "$aros_target_objdump_ln"; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9084 $as_echo "$aros_target_objdump_ln" >&6; }
9085 else
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9087 $as_echo "no" >&6; }
9092 if test "$aros_target_objdump_ln" = ""; then
9093 # Extract the first word of "objdump", so it can be a program name with args.
9094 set dummy objdump; ac_word=$2
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9096 $as_echo_n "checking for $ac_word... " >&6; }
9097 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9098 $as_echo_n "(cached) " >&6
9099 else
9100 case $aros_target_objdump_ln in
9101 [\\/]* | ?:[\\/]*)
9102 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9106 for as_dir in $PATH
9108 IFS=$as_save_IFS
9109 test -z "$as_dir" && as_dir=.
9110 for ac_exec_ext in '' $ac_executable_extensions; do
9111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9112 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9114 break 2
9116 done
9117 done
9118 IFS=$as_save_IFS
9121 esac
9123 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9124 if test -n "$aros_target_objdump_ln"; then
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9126 $as_echo "$aros_target_objdump_ln" >&6; }
9127 else
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9129 $as_echo "no" >&6; }
9135 else
9136 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9137 set dummy $aros_target_objdump; ac_word=$2
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9139 $as_echo_n "checking for $ac_word... " >&6; }
9140 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9141 $as_echo_n "(cached) " >&6
9142 else
9143 case $aros_target_objdump_ln in
9144 [\\/]* | ?:[\\/]*)
9145 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9149 for as_dir in $PATH
9151 IFS=$as_save_IFS
9152 test -z "$as_dir" && as_dir=.
9153 for ac_exec_ext in '' $ac_executable_extensions; do
9154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9155 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9157 break 2
9159 done
9160 done
9161 IFS=$as_save_IFS
9164 esac
9166 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9167 if test -n "$aros_target_objdump_ln"; then
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9169 $as_echo "$aros_target_objdump_ln" >&6; }
9170 else
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9172 $as_echo "no" >&6; }
9178 if test "$aros_target_objdump_ln" = ""; then
9179 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9182 if test "$aros_target_ranlib" = ""; then
9183 if test "$cross_compiling" = "yes" ; then
9184 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9185 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9187 $as_echo_n "checking for $ac_word... " >&6; }
9188 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9189 $as_echo_n "(cached) " >&6
9190 else
9191 case $aros_target_ranlib_ln in
9192 [\\/]* | ?:[\\/]*)
9193 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9197 for as_dir in $PATH
9199 IFS=$as_save_IFS
9200 test -z "$as_dir" && as_dir=.
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9203 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9205 break 2
9207 done
9208 done
9209 IFS=$as_save_IFS
9212 esac
9214 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9215 if test -n "$aros_target_ranlib_ln"; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9217 $as_echo "$aros_target_ranlib_ln" >&6; }
9218 else
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220 $as_echo "no" >&6; }
9224 else
9225 if test "$GCC" = "yes"; then
9226 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9227 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9228 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9230 $as_echo_n "checking for $ac_word... " >&6; }
9231 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9232 $as_echo_n "(cached) " >&6
9233 else
9234 case $aros_target_ranlib_ln in
9235 [\\/]* | ?:[\\/]*)
9236 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 for as_dir in `dirname $aros_gcc_ranlib`
9242 IFS=$as_save_IFS
9243 test -z "$as_dir" && as_dir=.
9244 for ac_exec_ext in '' $ac_executable_extensions; do
9245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9246 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9248 break 2
9250 done
9251 done
9252 IFS=$as_save_IFS
9255 esac
9257 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9258 if test -n "$aros_target_ranlib_ln"; then
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9260 $as_echo "$aros_target_ranlib_ln" >&6; }
9261 else
9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9263 $as_echo "no" >&6; }
9268 if test "$aros_target_ranlib_ln" = ""; then
9269 # Extract the first word of "ranlib", so it can be a program name with args.
9270 set dummy ranlib; ac_word=$2
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9272 $as_echo_n "checking for $ac_word... " >&6; }
9273 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9274 $as_echo_n "(cached) " >&6
9275 else
9276 case $aros_target_ranlib_ln in
9277 [\\/]* | ?:[\\/]*)
9278 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282 for as_dir in $PATH
9284 IFS=$as_save_IFS
9285 test -z "$as_dir" && as_dir=.
9286 for ac_exec_ext in '' $ac_executable_extensions; do
9287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9288 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9290 break 2
9292 done
9293 done
9294 IFS=$as_save_IFS
9297 esac
9299 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9300 if test -n "$aros_target_ranlib_ln"; then
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9302 $as_echo "$aros_target_ranlib_ln" >&6; }
9303 else
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9305 $as_echo "no" >&6; }
9311 else
9312 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9313 set dummy $aros_target_ranlib; ac_word=$2
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9315 $as_echo_n "checking for $ac_word... " >&6; }
9316 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 case $aros_target_ranlib_ln in
9320 [\\/]* | ?:[\\/]*)
9321 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9327 IFS=$as_save_IFS
9328 test -z "$as_dir" && as_dir=.
9329 for ac_exec_ext in '' $ac_executable_extensions; do
9330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9331 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9333 break 2
9335 done
9336 done
9337 IFS=$as_save_IFS
9340 esac
9342 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9343 if test -n "$aros_target_ranlib_ln"; then
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9345 $as_echo "$aros_target_ranlib_ln" >&6; }
9346 else
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9348 $as_echo "no" >&6; }
9354 if test "$aros_target_ranlib_ln" = ""; then
9355 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9358 if test "$aros_target_strip" = ""; then
9359 if test "$cross_compiling" = "yes" ; then
9360 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9361 set dummy ${target_tool_prefix}strip; ac_word=$2
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9363 $as_echo_n "checking for $ac_word... " >&6; }
9364 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 case $aros_target_strip_ln in
9368 [\\/]* | ?:[\\/]*)
9369 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9373 for as_dir in $PATH
9375 IFS=$as_save_IFS
9376 test -z "$as_dir" && as_dir=.
9377 for ac_exec_ext in '' $ac_executable_extensions; do
9378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9379 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9381 break 2
9383 done
9384 done
9385 IFS=$as_save_IFS
9388 esac
9390 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9391 if test -n "$aros_target_strip_ln"; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9393 $as_echo "$aros_target_strip_ln" >&6; }
9394 else
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396 $as_echo "no" >&6; }
9400 else
9401 if test "$GCC" = "yes"; then
9402 aros_gcc_strip=`$CC -print-prog-name=strip`
9403 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9404 set dummy `basename $aros_gcc_strip`; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409 else
9410 case $aros_target_strip_ln in
9411 [\\/]* | ?:[\\/]*)
9412 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9416 for as_dir in `dirname $aros_gcc_strip`
9418 IFS=$as_save_IFS
9419 test -z "$as_dir" && as_dir=.
9420 for ac_exec_ext in '' $ac_executable_extensions; do
9421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9422 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9424 break 2
9426 done
9427 done
9428 IFS=$as_save_IFS
9431 esac
9433 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9434 if test -n "$aros_target_strip_ln"; then
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9436 $as_echo "$aros_target_strip_ln" >&6; }
9437 else
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9439 $as_echo "no" >&6; }
9444 if test "$aros_target_strip_ln" = ""; then
9445 # Extract the first word of "strip", so it can be a program name with args.
9446 set dummy strip; ac_word=$2
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448 $as_echo_n "checking for $ac_word... " >&6; }
9449 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9450 $as_echo_n "(cached) " >&6
9451 else
9452 case $aros_target_strip_ln in
9453 [\\/]* | ?:[\\/]*)
9454 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9458 for as_dir in $PATH
9460 IFS=$as_save_IFS
9461 test -z "$as_dir" && as_dir=.
9462 for ac_exec_ext in '' $ac_executable_extensions; do
9463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9464 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9466 break 2
9468 done
9469 done
9470 IFS=$as_save_IFS
9473 esac
9475 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9476 if test -n "$aros_target_strip_ln"; then
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9478 $as_echo "$aros_target_strip_ln" >&6; }
9479 else
9480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9481 $as_echo "no" >&6; }
9487 else
9488 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9489 set dummy $aros_target_strip; ac_word=$2
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9491 $as_echo_n "checking for $ac_word... " >&6; }
9492 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9493 $as_echo_n "(cached) " >&6
9494 else
9495 case $aros_target_strip_ln in
9496 [\\/]* | ?:[\\/]*)
9497 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9501 for as_dir in $PATH
9503 IFS=$as_save_IFS
9504 test -z "$as_dir" && as_dir=.
9505 for ac_exec_ext in '' $ac_executable_extensions; do
9506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9507 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9509 break 2
9511 done
9512 done
9513 IFS=$as_save_IFS
9516 esac
9518 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9519 if test -n "$aros_target_strip_ln"; then
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9521 $as_echo "$aros_target_strip_ln" >&6; }
9522 else
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9530 if test "$aros_target_strip_ln" = ""; then
9531 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9533 if test "$aros_target_cxx" != ""; then
9534 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9535 set dummy $aros_target_cxx; ac_word=$2
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9537 $as_echo_n "checking for $ac_word... " >&6; }
9538 if ${ac_cv_path_aros_target_cxx+:} false; then :
9539 $as_echo_n "(cached) " >&6
9540 else
9541 case $aros_target_cxx in
9542 [\\/]* | ?:[\\/]*)
9543 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
9546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9547 for as_dir in $PATH
9549 IFS=$as_save_IFS
9550 test -z "$as_dir" && as_dir=.
9551 for ac_exec_ext in '' $ac_executable_extensions; do
9552 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9553 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
9554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9555 break 2
9557 done
9558 done
9559 IFS=$as_save_IFS
9562 esac
9564 aros_target_cxx=$ac_cv_path_aros_target_cxx
9565 if test -n "$aros_target_cxx"; then
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
9567 $as_echo "$aros_target_cxx" >&6; }
9568 else
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9570 $as_echo "no" >&6; }
9574 if test "$aros_target_cxx" = ""; then
9575 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
9578 else
9579 aros_target_cxx=""
9582 orig_target_cc=$aros_kernel_cc
9583 orig_target_ld=$aros_kernel_ld
9585 if test "$aros_target_cc" != ""; then
9586 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9587 set dummy $aros_target_cc; ac_word=$2
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9589 $as_echo_n "checking for $ac_word... " >&6; }
9590 if ${ac_cv_path_aros_target_cc+:} false; then :
9591 $as_echo_n "(cached) " >&6
9592 else
9593 case $aros_target_cc in
9594 [\\/]* | ?:[\\/]*)
9595 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9599 for as_dir in $PATH
9601 IFS=$as_save_IFS
9602 test -z "$as_dir" && as_dir=.
9603 for ac_exec_ext in '' $ac_executable_extensions; do
9604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9605 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9607 break 2
9609 done
9610 done
9611 IFS=$as_save_IFS
9614 esac
9616 aros_target_cc=$ac_cv_path_aros_target_cc
9617 if test -n "$aros_target_cc"; then
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
9619 $as_echo "$aros_target_cc" >&6; }
9620 else
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9622 $as_echo "no" >&6; }
9626 if test "$aros_target_cc" = ""; then
9627 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
9629 orig_target_cc=$aros_target_cc
9631 if test "$aros_target_ld" != ""; then
9632 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9633 set dummy $aros_target_ld; ac_word=$2
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9635 $as_echo_n "checking for $ac_word... " >&6; }
9636 if ${ac_cv_path_aros_target_ld+:} false; then :
9637 $as_echo_n "(cached) " >&6
9638 else
9639 case $aros_target_ld in
9640 [\\/]* | ?:[\\/]*)
9641 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645 for as_dir in $PATH
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
9650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9651 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 break 2
9655 done
9656 done
9657 IFS=$as_save_IFS
9660 esac
9662 aros_target_ld=$ac_cv_path_aros_target_ld
9663 if test -n "$aros_target_ld"; then
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
9665 $as_echo "$aros_target_ld" >&6; }
9666 else
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9668 $as_echo "no" >&6; }
9672 if test "$aros_target_ld" = ""; then
9673 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9675 orig_target_ld=$aros_target_ld
9678 # Build crosstools if we have no C++ - temporary thing
9679 if test "$aros_target_cxx" = ""; then
9680 crosstools_target=tools-crosstools
9683 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9684 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9685 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9686 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9687 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9688 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9689 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9691 # aros_cc_pre is a variable that is added to the front of the compiler name
9692 # in the generated aros-gcc shell script. We need this to enable the cache
9693 # to work across cleaned builds. Also, support DISTCC using the correct
9694 # environment variable.
9697 if test "x${DISTCC}" != "x" ; then
9698 if test "x${CCACHE}" != "x" ; then
9699 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9700 else
9701 aros_cc_pre="${DISTCC} "
9703 else
9704 if test "x${CCACHE}" != "x" ; then
9705 aros_cc_pre="${CCACHE} "
9709 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9711 aros_target_nostdinc_cflags=-nostdinc
9713 aros_target_nostartup_ldflags=-nostartfiles
9715 aros_target_nix_ldflags=-nix
9717 aros_target_detach_ldflags=-detach
9719 aros_target_nostdlib_ldflags=-nostdlib
9722 # Target tools
9723 if test "$GCC" = "yes"; then
9724 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9726 aros_target_cc="${prefix}-gcc"
9727 aros_target_as="${prefix}-as"
9728 aros_target_ld="${prefix}-ld"
9729 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9730 aros_target_objcopy=${prefix}-objcopy
9731 aros_target_objdump=${prefix}-objdump
9732 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9733 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9734 aros_kernel_nm="${prefix}-nm"
9735 aros_target_strip=${prefix}-strip
9737 # Find the system include path. We can suggest that an alternative is
9738 # used if we don't get it correct. The default is to use /usr/include.
9739 # Which is set in the aros_target_incl_def variable.
9741 # Check whether --enable-includes was given.
9742 if test "${enable_includes+set}" = set; then :
9743 enableval=$enable_includes; aros_target_incl=$enable_includes
9744 else
9745 aros_target_incl=$aros_target_incl_def
9749 if test "$aros_kernel_includes" = ""; then
9750 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9751 # FIXME: for cross-compiling this should point to another location
9752 aros_kernel_includes="-isystem $aros_target_incl"
9756 if test "$aros_kernel_includes" != "" ; then
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
9758 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
9759 if test "$aros_kernel_cc_includes" = "" ; then
9760 # Try to guess where the directory is.
9761 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
9762 if test -d $aros_kernel_cc_includes; then
9763 # Check if there is also an include-fixed directory and add it
9764 # to kernel compiler's include path as it may contain some of
9765 # the headers we need.
9766 if test -d "$aros_kernel_cc_includes"-fixed; then
9767 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
9769 else
9770 # The directory doesn't exist, we need to do some more work.
9771 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
9773 # These are the headers we're looking for.
9774 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9775 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9776 zutil.h"
9778 dirs=
9779 for h in $headers; do
9780 # Which other headers are needed by each of the above?
9781 deps=$(echo "#include <$h>" | \
9782 $aros_kernel_cc -E -M - 2>/dev/null | \
9783 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9785 # Copy all the needed headers to a directory beneath gendir.
9786 for d in $deps; do
9787 h=$(basename $d)
9788 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
9789 sed -n "s,^.*/include\(/.*\),\1,p")
9790 ! test -d $dir && mkdir -p $dir
9791 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9792 done
9793 done
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
9797 $as_echo "$aros_kernel_cc_includes" >&6; }
9798 # Adding -nostdinc to kernel includes as they are always used together.
9799 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9803 $as_echo_n "checking for the target compiler's include path... " >&6; }
9804 if test "$aros_target_cc_includes" = "" ; then
9805 #try to guess where the directory is
9806 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
9807 if ! test -d $aros_target_cc_includes; then
9808 #the directory doesn't exist, we need to do some more work
9809 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9811 #these are the headers we're looling for
9812 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9813 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9814 zutil.h"
9816 dirs=
9817 for h in $headers; do
9818 #which other headers each of the above headers needs?
9819 deps=$(echo "#include <$h>" | \
9820 $orig_target_cc -E -M - 2>/dev/null | \
9821 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9823 #copy all the needed headers to a directory beneath gendir
9824 for d in $deps; do
9825 h=$(basename $d)
9826 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9827 sed -n "s,^.*/include\(/.*\),\1,p")
9828 ! test -d $dir && mkdir -p $dir
9829 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9830 done
9831 done
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9835 $as_echo "$aros_target_cc_includes" >&6; }
9838 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9839 # On GCC >= 4.0 -iquote should be used
9842 save_cc="$CC"
9843 save_cflags="$CFLAGS"
9844 CFLAGS="-iquote."
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9846 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9848 /* end confdefs.h. */
9851 main ()
9855 return 0;
9857 _ACEOF
9858 if ac_fn_c_try_compile "$LINENO"; then :
9859 has_iquote="yes"
9860 else
9861 has_iquote="no"
9863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9865 $as_echo "$has_iquote" >&6; }
9866 if test "x-$has_iquote" = "x-yes" ; then
9867 host_cflags_iquote=-iquote
9868 host_cflags_iquote_end=
9869 else
9870 host_cflags_iquote=-I
9871 host_cflags_iquote_end=-I-
9873 kernel_cflags_iquote=$host_cflags_iquote
9874 kernel_cflags_iquote_end=$host_cflags_iquote_end
9875 if test "x-$cross_compiling" = "x-yes"; then
9876 CC="$aros_kernel_cc"
9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9878 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880 /* end confdefs.h. */
9883 main ()
9887 return 0;
9889 _ACEOF
9890 if ac_fn_c_try_compile "$LINENO"; then :
9891 use_no_stack_protector="yes"
9892 else
9893 use_no_stack_protector="no"
9895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9897 $as_echo "$use_no_stack_protector" >&6; }
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9899 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9901 /* end confdefs.h. */
9904 main ()
9908 return 0;
9910 _ACEOF
9911 if ac_fn_c_try_compile "$LINENO"; then :
9912 has_iquote="yes"
9913 else
9914 has_iquote="no"
9916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9918 $as_echo "$has_iquote" >&6; }
9919 if test "x-$has_iquote" = "x-yes" ; then
9920 kernel_cflags_iquote=-iquote
9921 kernel_cflags_iquote_end=
9922 else
9923 kernel_cflags_iquote=-I
9924 kernel_cflags_iquote_end=-I-
9927 aros_cflags_iquote=$kernel_cflags_iquote
9928 aros_cflags_iquote_end=$kernel_cflags_iquote_end
9929 if test "$orig_target_cc" != "$aros_kernel_cc"; then
9930 CC="$orig_target_cc"
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9932 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h. */
9937 main ()
9941 return 0;
9943 _ACEOF
9944 if ac_fn_c_try_compile "$LINENO"; then :
9945 has_iquote="yes"
9946 else
9947 has_iquote="no"
9949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9951 $as_echo "$has_iquote" >&6; }
9952 if test "x-$has_iquote" = "x-yes" ; then
9953 aros_cflags_iquote=-iquote
9954 aros_cflags_iquote_end=
9955 else
9956 aros_cflags_iquote=-I
9957 aros_cflags_iquote_end=-I-
9960 if test "x-$use_no_stack_protector" = "x-yes" ; then
9961 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
9964 #-----------------------------------------------------------------------------
9966 # Check if we can explicitly choose older version of symbol hashing
9968 CFLAGS="save_cflags -Wl,--hash-style=sysv"
9969 CC="$aros_kernel_cc"
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
9971 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
9972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9973 /* end confdefs.h. */
9976 main ()
9980 return 0;
9982 _ACEOF
9983 if ac_fn_c_try_link "$LINENO"; then :
9984 use_hash_style="yes"
9985 else
9986 use_hash_style="no"
9988 rm -f core conftest.err conftest.$ac_objext \
9989 conftest$ac_exeext conftest.$ac_ext
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
9991 $as_echo "$use_hash_style" >&6; }
9992 if test "x-$use_hash_style" = "x-yes" ; then
9993 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
9995 CC="$save_cc"
9996 CFLAGS="$save_cflags"
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
10007 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
10009 # Check whether --with-resolution was given.
10010 if test "${with_resolution+set}" = set; then :
10011 withval=$with_resolution; resolution=$withval
10012 else
10013 resolution=none
10016 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10017 if test "$resolution" = "yes" ; then
10018 resolution="none"
10020 if test "$resolution" = "no" ; then
10021 resolution="none"
10023 if test "$resolution" != "none" ; then
10024 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10025 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10026 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10029 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10030 aros_cv_default_wbwidth=$aros_default_wbwidth
10031 aros_cv_default_wbheight=$aros_default_wbheight
10032 aros_cv_default_wbdepth=$aros_default_wbdepth
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
10035 $as_echo_n "checking if serial debug is enabled... " >&6; }
10037 # Check whether --with-serial-debug was given.
10038 if test "${with_serial_debug+set}" = set; then :
10039 withval=$with_serial_debug; serial_debug=$withval
10040 else
10041 serial_debug=none
10044 if test "$aros_serial_debug" = 0 ; then
10045 serial_debug_forced=""
10046 if test "$serial_debug" = "yes" ; then
10047 serial_debug="2"
10049 if test "$serial_debug" = "no" ; then
10050 serial_debug="none"
10052 else
10053 serial_debug_forced="(forced)"
10054 serial_debug=$aros_serial_debug
10056 if test "$serial_debug" != "none" ; then
10057 aros_serial_debug=$serial_debug
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
10059 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
10060 else
10061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10062 $as_echo "no" >&6; }
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
10066 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
10067 # Check whether --enable-palm_debug_hack was given.
10068 if test "${enable_palm_debug_hack+set}" = set; then :
10069 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10070 else
10071 palm_debug_hack="no"
10074 if test "$palm_debug_hack" = "yes" ; then
10075 aros_palm_debug_hack="1"
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
10078 $as_echo "$palm_debug_hack" >&6; }
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
10082 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10083 # Check whether --enable-nesting_supervisor was given.
10084 if test "${enable_nesting_supervisor+set}" = set; then :
10085 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10086 else
10087 nesting_supervisor="no"
10090 if test "$nesting_supervisor" = "yes" ; then
10091 aros_nesting_supervisor="1"
10093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
10094 $as_echo "$nesting_supervisor" >&6; }
10096 if test "$aros_enable_mmu" = "" ; then
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
10098 $as_echo_n "checking if MMU support is enabled... " >&6; }
10099 # Check whether --enable-mmu was given.
10100 if test "${enable_mmu+set}" = set; then :
10101 enableval=$enable_mmu; aros_enable_mmu=$enableval
10102 else
10103 aros_enable_mmu="yes"
10106 if test "$aros_enable_mmu" = "" ; then
10107 aros_enable_mmu="yes"
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
10110 $as_echo "$aros_enable_mmu" >&6; }
10112 if test "$aros_enable_mmu" = "no" ; then
10113 aros_enable_mmu="0"
10114 else
10115 aros_enable_mmu="1"
10119 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10121 if test "x-$need_dlopen" != "x-no" ; then
10122 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10123 if test "x$ac_cv_func_dlopen" = xyes; then :
10124 have_dl="yes"
10125 else
10126 have_dl="no"
10129 if test "x-$have_dl" = "x-no" ; then
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10131 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10132 if ${ac_cv_lib_dl_dlopen+:} false; then :
10133 $as_echo_n "(cached) " >&6
10134 else
10135 ac_check_lib_save_LIBS=$LIBS
10136 LIBS="-ldl $LIBS"
10137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10138 /* end confdefs.h. */
10140 /* Override any GCC internal prototype to avoid an error.
10141 Use char because int might match the return type of a GCC
10142 builtin and then its argument prototype would still apply. */
10143 #ifdef __cplusplus
10144 extern "C"
10145 #endif
10146 char dlopen ();
10148 main ()
10150 return dlopen ();
10152 return 0;
10154 _ACEOF
10155 if ac_fn_c_try_link "$LINENO"; then :
10156 ac_cv_lib_dl_dlopen=yes
10157 else
10158 ac_cv_lib_dl_dlopen=no
10160 rm -f core conftest.err conftest.$ac_objext \
10161 conftest$ac_exeext conftest.$ac_ext
10162 LIBS=$ac_check_lib_save_LIBS
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10165 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10166 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10167 have_dl="yes"
10168 aros_host_ldflags="$aros_host_ldflags -ldl"
10169 else
10170 have_dl="no"
10174 if test "x-$have_dl" = "x-no" ; then
10175 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
10180 # Check whether --enable-x11_hidd was given.
10181 if test "${enable_x11_hidd+set}" = set; then :
10182 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10183 else
10184 x11_hidd="$need_x11"
10187 case "x-$x11_hidd" in
10188 x-yes|x-no|x-auto) ;;
10189 *) x11_hidd="$need_x11" ;;
10190 esac
10192 ENABLE_X11=0
10194 if test "x-$x11_hidd" != "x-no" ; then
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10197 $as_echo_n "checking for X... " >&6; }
10200 # Check whether --with-x was given.
10201 if test "${with_x+set}" = set; then :
10202 withval=$with_x;
10205 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10206 if test "x$with_x" = xno; then
10207 # The user explicitly disabled X.
10208 have_x=disabled
10209 else
10210 case $x_includes,$x_libraries in #(
10211 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
10212 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
10213 $as_echo_n "(cached) " >&6
10214 else
10215 # One or both of the vars are not set, and there is no cached value.
10216 ac_x_includes=no ac_x_libraries=no
10217 rm -f -r conftest.dir
10218 if mkdir conftest.dir; then
10219 cd conftest.dir
10220 cat >Imakefile <<'_ACEOF'
10221 incroot:
10222 @echo incroot='${INCROOT}'
10223 usrlibdir:
10224 @echo usrlibdir='${USRLIBDIR}'
10225 libdir:
10226 @echo libdir='${LIBDIR}'
10227 _ACEOF
10228 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10229 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10230 for ac_var in incroot usrlibdir libdir; do
10231 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10232 done
10233 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10234 for ac_extension in a so sl dylib la dll; do
10235 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10236 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10237 ac_im_usrlibdir=$ac_im_libdir; break
10239 done
10240 # Screen out bogus values from the imake configuration. They are
10241 # bogus both because they are the default anyway, and because
10242 # using them would break gcc on systems where it needs fixed includes.
10243 case $ac_im_incroot in
10244 /usr/include) ac_x_includes= ;;
10245 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10246 esac
10247 case $ac_im_usrlibdir in
10248 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10249 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10250 esac
10252 cd ..
10253 rm -f -r conftest.dir
10256 # Standard set of common directories for X headers.
10257 # Check X11 before X11Rn because it is often a symlink to the current release.
10258 ac_x_header_dirs='
10259 /usr/X11/include
10260 /usr/X11R7/include
10261 /usr/X11R6/include
10262 /usr/X11R5/include
10263 /usr/X11R4/include
10265 /usr/include/X11
10266 /usr/include/X11R7
10267 /usr/include/X11R6
10268 /usr/include/X11R5
10269 /usr/include/X11R4
10271 /usr/local/X11/include
10272 /usr/local/X11R7/include
10273 /usr/local/X11R6/include
10274 /usr/local/X11R5/include
10275 /usr/local/X11R4/include
10277 /usr/local/include/X11
10278 /usr/local/include/X11R7
10279 /usr/local/include/X11R6
10280 /usr/local/include/X11R5
10281 /usr/local/include/X11R4
10283 /usr/X386/include
10284 /usr/x386/include
10285 /usr/XFree86/include/X11
10287 /usr/include
10288 /usr/local/include
10289 /usr/unsupported/include
10290 /usr/athena/include
10291 /usr/local/x11r5/include
10292 /usr/lpp/Xamples/include
10294 /usr/openwin/include
10295 /usr/openwin/share/include'
10297 if test "$ac_x_includes" = no; then
10298 # Guess where to find include files, by looking for Xlib.h.
10299 # First, try using that file with no special directory specified.
10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10301 /* end confdefs.h. */
10302 #include <X11/Xlib.h>
10303 _ACEOF
10304 if ac_fn_c_try_cpp "$LINENO"; then :
10305 # We can compile using X headers with no special include directory.
10306 ac_x_includes=
10307 else
10308 for ac_dir in $ac_x_header_dirs; do
10309 if test -r "$ac_dir/X11/Xlib.h"; then
10310 ac_x_includes=$ac_dir
10311 break
10313 done
10315 rm -f conftest.err conftest.i conftest.$ac_ext
10316 fi # $ac_x_includes = no
10318 if test "$ac_x_libraries" = no; then
10319 # Check for the libraries.
10320 # See if we find them without any special options.
10321 # Don't add to $LIBS permanently.
10322 ac_save_LIBS=$LIBS
10323 LIBS="-lX11 $LIBS"
10324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10325 /* end confdefs.h. */
10326 #include <X11/Xlib.h>
10328 main ()
10330 XrmInitialize ()
10332 return 0;
10334 _ACEOF
10335 if ac_fn_c_try_link "$LINENO"; then :
10336 LIBS=$ac_save_LIBS
10337 # We can link X programs with no special library path.
10338 ac_x_libraries=
10339 else
10340 LIBS=$ac_save_LIBS
10341 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10343 # Don't even attempt the hair of trying to link an X program!
10344 for ac_extension in a so sl dylib la dll; do
10345 if test -r "$ac_dir/libX11.$ac_extension"; then
10346 ac_x_libraries=$ac_dir
10347 break 2
10349 done
10350 done
10352 rm -f core conftest.err conftest.$ac_objext \
10353 conftest$ac_exeext conftest.$ac_ext
10354 fi # $ac_x_libraries = no
10356 case $ac_x_includes,$ac_x_libraries in #(
10357 no,* | *,no | *\'*)
10358 # Didn't find X, or a directory has "'" in its name.
10359 ac_cv_have_x="have_x=no";; #(
10361 # Record where we found X for the cache.
10362 ac_cv_have_x="have_x=yes\
10363 ac_x_includes='$ac_x_includes'\
10364 ac_x_libraries='$ac_x_libraries'"
10365 esac
10367 ;; #(
10368 *) have_x=yes;;
10369 esac
10370 eval "$ac_cv_have_x"
10371 fi # $with_x != no
10373 if test "$have_x" != yes; then
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10375 $as_echo "$have_x" >&6; }
10376 no_x=yes
10377 else
10378 # If each of the values was on the command line, it overrides each guess.
10379 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10380 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10381 # Update the cache value to reflect the command line values.
10382 ac_cv_have_x="have_x=yes\
10383 ac_x_includes='$x_includes'\
10384 ac_x_libraries='$x_libraries'"
10385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10386 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10390 x_cflags=
10391 for path in $x_libraries
10393 x_cflags="$x_cflags -L$path"
10394 done
10396 for path in $x_includes
10398 x_cflags="$x_cflags -I$path"
10399 done
10401 if test "x-$no_x" = "x-yes" ; then
10403 if test "x-$x11_hidd" != "x-auto" ; then
10404 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10407 else
10408 x11_hidd_target=kernel-x11gfx-kobj
10409 ENABLE_X11=1
10411 # Check whether --enable-x11_shm was given.
10412 if test "${enable_x11_shm+set}" = set; then :
10413 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10414 else
10415 x11_hidd_shm="auto"
10418 case "x-$x11_hidd_shm" in
10419 x-yes|x-no|x-auto) ;;
10420 *) x11_hidd_shm="auto" ;;
10421 esac
10423 have_xshm=no
10425 if test "x-$x11_hidd_shm" != "x-no" ; then
10427 for ac_header in sys/ipc.h
10428 do :
10429 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10430 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
10431 cat >>confdefs.h <<_ACEOF
10432 #define HAVE_SYS_IPC_H 1
10433 _ACEOF
10437 done
10439 for ac_header in sys/shm.h
10440 do :
10441 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10442 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
10443 cat >>confdefs.h <<_ACEOF
10444 #define HAVE_SYS_SHM_H 1
10445 _ACEOF
10449 done
10452 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10454 save_cflags="$CFLAGS"
10455 CFLAGS="$CFLAGS $x_cflags"
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10457 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10458 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
10459 $as_echo_n "(cached) " >&6
10460 else
10461 ac_check_lib_save_LIBS=$LIBS
10462 LIBS="-lXext $LIBS"
10463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10464 /* end confdefs.h. */
10466 /* Override any GCC internal prototype to avoid an error.
10467 Use char because int might match the return type of a GCC
10468 builtin and then its argument prototype would still apply. */
10469 #ifdef __cplusplus
10470 extern "C"
10471 #endif
10472 char XShmQueryExtension ();
10474 main ()
10476 return XShmQueryExtension ();
10478 return 0;
10480 _ACEOF
10481 if ac_fn_c_try_link "$LINENO"; then :
10482 ac_cv_lib_Xext_XShmQueryExtension=yes
10483 else
10484 ac_cv_lib_Xext_XShmQueryExtension=no
10486 rm -f core conftest.err conftest.$ac_objext \
10487 conftest$ac_exeext conftest.$ac_ext
10488 LIBS=$ac_check_lib_save_LIBS
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10491 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10492 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
10493 have_xshm=yes
10496 CFLAGS="$save_cflags"
10500 if test "x-$have_xshm" = "x-yes" ; then
10501 DO_XSHM_SUPPORT="1"
10502 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10503 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10504 else
10505 DO_XSHM_SUPPORT="0"
10509 # Check whether --enable-x11_vidmode was given.
10510 if test "${enable_x11_vidmode+set}" = set; then :
10511 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10512 else
10513 x11_hidd_vidmode="auto"
10516 case "x-$x11_hidd_vidmode" in
10517 x-yes|x-no|x-auto) ;;
10518 *) x11_hidd_vidmode="auto" ;;
10519 esac
10521 have_vidmode=no
10523 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10525 save_cflags="$CFLAGS"
10526 CFLAGS="$CFLAGS $x_cflags"
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10528 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10529 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
10530 $as_echo_n "(cached) " >&6
10531 else
10532 ac_check_lib_save_LIBS=$LIBS
10533 LIBS="-lXxf86vm $LIBS"
10534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10535 /* end confdefs.h. */
10537 /* Override any GCC internal prototype to avoid an error.
10538 Use char because int might match the return type of a GCC
10539 builtin and then its argument prototype would still apply. */
10540 #ifdef __cplusplus
10541 extern "C"
10542 #endif
10543 char XF86VidModeQueryExtension ();
10545 main ()
10547 return XF86VidModeQueryExtension ();
10549 return 0;
10551 _ACEOF
10552 if ac_fn_c_try_link "$LINENO"; then :
10553 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10554 else
10555 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10557 rm -f core conftest.err conftest.$ac_objext \
10558 conftest$ac_exeext conftest.$ac_ext
10559 LIBS=$ac_check_lib_save_LIBS
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10562 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10563 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
10564 have_vidmode=yes
10567 CFLAGS="$save_cflags"
10570 if test "x-$have_vidmode" = "x-yes" ; then
10571 DO_VIDMODE_SUPPORT="1"
10572 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10573 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10574 else
10575 DO_VIDMODE_SUPPORT="0"
10579 aros_host_x11_includes=$x_includes
10580 aros_host_x11_libdirs=$x_libraries
10584 # Check whether --enable-sdl_hidd was given.
10585 if test "${enable_sdl_hidd+set}" = set; then :
10586 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10587 else
10588 sdl_hidd="auto"
10591 case "x-$sdl_hidd" in
10592 x-yes|x-no|x-auto) ;;
10593 *) sdl_hidd="auto" ;;
10594 esac
10596 if test "x-$sdl_hidd" != "x-no" ; then
10599 # Check whether --with-sdl-prefix was given.
10600 if test "${with_sdl_prefix+set}" = set; then :
10601 withval=$with_sdl_prefix; sdl_prefix="$withval"
10602 else
10603 sdl_prefix=""
10607 # Check whether --with-sdl-exec-prefix was given.
10608 if test "${with_sdl_exec_prefix+set}" = set; then :
10609 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10610 else
10611 sdl_exec_prefix=""
10614 # Check whether --enable-sdltest was given.
10615 if test "${enable_sdltest+set}" = set; then :
10616 enableval=$enable_sdltest;
10617 else
10618 enable_sdltest=yes
10622 if test x$sdl_exec_prefix != x ; then
10623 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10624 if test x${SDL_CONFIG+set} != xset ; then
10625 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10628 if test x$sdl_prefix != x ; then
10629 sdl_args="$sdl_args --prefix=$sdl_prefix"
10630 if test x${SDL_CONFIG+set} != xset ; then
10631 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10635 if test "x$prefix" != xNONE; then
10636 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10638 # Extract the first word of "sdl-config", so it can be a program name with args.
10639 set dummy sdl-config; ac_word=$2
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10641 $as_echo_n "checking for $ac_word... " >&6; }
10642 if ${ac_cv_path_SDL_CONFIG+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644 else
10645 case $SDL_CONFIG in
10646 [\\/]* | ?:[\\/]*)
10647 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651 for as_dir in $PATH
10653 IFS=$as_save_IFS
10654 test -z "$as_dir" && as_dir=.
10655 for ac_exec_ext in '' $ac_executable_extensions; do
10656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10657 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10659 break 2
10661 done
10662 done
10663 IFS=$as_save_IFS
10665 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10667 esac
10669 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10670 if test -n "$SDL_CONFIG"; then
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10672 $as_echo "$SDL_CONFIG" >&6; }
10673 else
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675 $as_echo "no" >&6; }
10679 min_sdl_version=1.2.10
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10681 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10682 no_sdl=""
10683 if test "$SDL_CONFIG" = "no" ; then
10684 no_sdl=yes
10685 else
10686 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10687 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10689 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10690 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10691 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10692 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10693 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10694 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10695 if test "x$enable_sdltest" = "xyes" ; then
10696 ac_save_CFLAGS="$CFLAGS"
10697 ac_save_CXXFLAGS="$CXXFLAGS"
10698 ac_save_LIBS="$LIBS"
10699 CFLAGS="$CFLAGS $SDL_CFLAGS"
10700 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10701 LIBS="$LIBS $SDL_LIBS"
10702 rm -f conf.sdltest
10703 if test "$cross_compiling" = yes; then :
10704 echo $ac_n "cross compiling; assumed OK... $ac_c"
10705 else
10706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10707 /* end confdefs.h. */
10709 #include <stdio.h>
10710 #include <stdlib.h>
10711 #include <string.h>
10712 #include "SDL.h"
10714 char*
10715 my_strdup (char *str)
10717 char *new_str;
10719 if (str)
10721 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10722 strcpy (new_str, str);
10724 else
10725 new_str = NULL;
10727 return new_str;
10730 int main (int argc, char *argv[])
10732 int major, minor, micro;
10733 char *tmp_version;
10735 /* This hangs on some systems (?)
10736 system ("touch conf.sdltest");
10738 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10740 /* HP/UX 9 (%@#!) writes to sscanf strings */
10741 tmp_version = my_strdup("$min_sdl_version");
10742 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10743 printf("%s, bad version string\n", "$min_sdl_version");
10744 exit(1);
10747 if (($sdl_major_version > major) ||
10748 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10749 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10751 return 0;
10753 else
10755 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10756 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10757 printf("*** best to upgrade to the required version.\n");
10758 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10759 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10760 printf("*** config.cache before re-running configure\n");
10761 return 1;
10766 _ACEOF
10767 if ac_fn_c_try_run "$LINENO"; then :
10769 else
10770 no_sdl=yes
10772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10773 conftest.$ac_objext conftest.beam conftest.$ac_ext
10776 CFLAGS="$ac_save_CFLAGS"
10777 CXXFLAGS="$ac_save_CXXFLAGS"
10778 LIBS="$ac_save_LIBS"
10781 if test "x$no_sdl" = x ; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10783 $as_echo "yes" >&6; }
10784 have_sdl="yes"
10785 else
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787 $as_echo "no" >&6; }
10788 if test "$SDL_CONFIG" = "no" ; then
10789 echo "*** The sdl-config script installed by SDL could not be found"
10790 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10791 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10792 echo "*** full path to sdl-config."
10793 else
10794 if test -f conf.sdltest ; then
10796 else
10797 echo "*** Could not run SDL test program, checking why..."
10798 CFLAGS="$CFLAGS $SDL_CFLAGS"
10799 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10800 LIBS="$LIBS $SDL_LIBS"
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10804 #include <stdio.h>
10805 #include "SDL.h"
10807 int main(int argc, char *argv[])
10808 { return 0; }
10809 #undef main
10810 #define main K_and_R_C_main
10813 main ()
10815 return 0;
10817 return 0;
10819 _ACEOF
10820 if ac_fn_c_try_link "$LINENO"; then :
10821 echo "*** The test program compiled, but did not run. This usually means"
10822 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10823 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10824 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10825 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10826 echo "*** is required on your system"
10827 echo "***"
10828 echo "*** If you have an old version installed, it is best to remove it, although"
10829 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10830 else
10831 echo "*** The test program failed to compile or link. See the file config.log for the"
10832 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10833 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10834 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10836 rm -f core conftest.err conftest.$ac_objext \
10837 conftest$ac_exeext conftest.$ac_ext
10838 CFLAGS="$ac_save_CFLAGS"
10839 CXXFLAGS="$ac_save_CXXFLAGS"
10840 LIBS="$ac_save_LIBS"
10843 SDL_CFLAGS=""
10844 SDL_LIBS=""
10845 have_sdl="no"
10849 rm -f conf.sdltest
10852 if test "x-$have_sdl" != "x-yes" ; then
10854 if test "x-$sdl_hidd" != "x-auto" ; then
10855 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10858 else
10859 sdl_hidd_target=kernel-hidd-sdl
10860 aros_host_sdl_cflags=SDL_CFLAGS
10861 aros_host_sdl_libs=SDL_LIBS
10865 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10866 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10871 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
10872 oss_library_target=workbench-libs-oss-unix
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10878 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10879 # Check whether --enable-dbus was given.
10880 if test "${enable_dbus+set}" = set; then :
10881 enableval=$enable_dbus; dbus="yes"
10882 else
10883 dbus="no"
10886 if test "$dbus" = "yes" ; then
10887 ENABLE_DBUS=1
10888 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10889 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10890 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10891 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10892 else
10893 ENABLE_DBUS=0
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10896 $as_echo "$dbus" >&6; }
10900 # Generic
10910 # Host related
10934 # Target Related
10989 # Graphics Related
11006 # Native version related
11009 # Palm native version related
11012 # Unix/Hosted version related
11015 # MMU related
11018 # Apple iOS related
11023 # Android related
11027 # DBUS related
11034 #X11 related
11037 # Debug related
11043 # Collect-aros stuff: "-ius" to ignore undefined symbols
11046 # C compiler related
11049 case "$aros_flavour" in
11050 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11051 aros_flavour="emulation" ;;
11052 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11053 aros_flavour="emulation" ;;
11054 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11055 aros_flavour="standalone";;
11056 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11057 aros_flavour="standalone";;
11058 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11059 aros_flavour="native" ;;
11060 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11061 aros_flavour="native" ;;
11062 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11063 aros_flavour="linklib" ;;
11064 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11065 aros_flavour="palmnative" ;;
11066 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11067 aros_flavour="mac68knative" ;;
11068 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11069 aros_flavour="ppcnative" ;;
11070 esac
11072 if test ! -d ${aros_inc_dir} ; then
11073 ${MKDIR} ${aros_inc_dir}
11075 if test ! -d ${aros_geninc_dir} ; then
11076 ${MKDIR} ${aros_geninc_dir}
11078 if test ! -d ${aros_hostcfg_dir} ; then
11079 ${MKDIR} ${aros_hostcfg_dir}
11081 if test ! -d ${aros_targetcfg_dir} ; then
11082 ${MKDIR} ${aros_targetcfg_dir}
11084 if test ! -d ${aros_tools_dir} ; then
11085 ${MKDIR} ${aros_tools_dir}
11087 if test ! -d ${aros_scripts_dir} ; then
11088 ${MKDIR} ${aros_scripts_dir}
11091 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11094 ac_config_commands="$ac_config_commands compiler_executable"
11096 ac_config_commands="$ac_config_commands genshared_executable"
11098 ac_config_commands="$ac_config_commands genmf_executable"
11101 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_scripts_dir}/genshared:compiler/library_template_c/source/lib_source/genshared.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"
11104 cat >confcache <<\_ACEOF
11105 # This file is a shell script that caches the results of configure
11106 # tests run on this system so they can be shared between configure
11107 # scripts and configure runs, see configure's option --config-cache.
11108 # It is not useful on other systems. If it contains results you don't
11109 # want to keep, you may remove or edit it.
11111 # config.status only pays attention to the cache file if you give it
11112 # the --recheck option to rerun configure.
11114 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11115 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11116 # following values.
11118 _ACEOF
11120 # The following way of writing the cache mishandles newlines in values,
11121 # but we know of no workaround that is simple, portable, and efficient.
11122 # So, we kill variables containing newlines.
11123 # Ultrix sh set writes to stderr and can't be redirected directly,
11124 # and sets the high bit in the cache file unless we assign to the vars.
11126 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11127 eval ac_val=\$$ac_var
11128 case $ac_val in #(
11129 *${as_nl}*)
11130 case $ac_var in #(
11131 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11132 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11133 esac
11134 case $ac_var in #(
11135 _ | IFS | as_nl) ;; #(
11136 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11137 *) { eval $ac_var=; unset $ac_var;} ;;
11138 esac ;;
11139 esac
11140 done
11142 (set) 2>&1 |
11143 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11144 *${as_nl}ac_space=\ *)
11145 # `set' does not quote correctly, so add quotes: double-quote
11146 # substitution turns \\\\ into \\, and sed turns \\ into \.
11147 sed -n \
11148 "s/'/'\\\\''/g;
11149 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11150 ;; #(
11152 # `set' quotes correctly as required by POSIX, so do not add quotes.
11153 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11155 esac |
11156 sort
11158 sed '
11159 /^ac_cv_env_/b end
11160 t clear
11161 :clear
11162 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11163 t end
11164 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11165 :end' >>confcache
11166 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11167 if test -w "$cache_file"; then
11168 if test "x$cache_file" != "x/dev/null"; then
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11170 $as_echo "$as_me: updating cache $cache_file" >&6;}
11171 if test ! -f "$cache_file" || test -h "$cache_file"; then
11172 cat confcache >"$cache_file"
11173 else
11174 case $cache_file in #(
11175 */* | ?:*)
11176 mv -f confcache "$cache_file"$$ &&
11177 mv -f "$cache_file"$$ "$cache_file" ;; #(
11179 mv -f confcache "$cache_file" ;;
11180 esac
11183 else
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11185 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11188 rm -f confcache
11190 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11191 # Let make expand exec_prefix.
11192 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11194 DEFS=-DHAVE_CONFIG_H
11196 ac_libobjs=
11197 ac_ltlibobjs=
11199 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11200 # 1. Remove the extension, and $U if already installed.
11201 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11202 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11203 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11204 # will be set to the directory where LIBOBJS objects are built.
11205 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11206 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11207 done
11208 LIBOBJS=$ac_libobjs
11210 LTLIBOBJS=$ac_ltlibobjs
11214 : "${CONFIG_STATUS=./config.status}"
11215 ac_write_fail=0
11216 ac_clean_files_save=$ac_clean_files
11217 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11219 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11220 as_write_fail=0
11221 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11222 #! $SHELL
11223 # Generated by $as_me.
11224 # Run this file to recreate the current configuration.
11225 # Compiler output produced by configure, useful for debugging
11226 # configure, is in config.log if it exists.
11228 debug=false
11229 ac_cs_recheck=false
11230 ac_cs_silent=false
11232 SHELL=\${CONFIG_SHELL-$SHELL}
11233 export SHELL
11234 _ASEOF
11235 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11236 ## -------------------- ##
11237 ## M4sh Initialization. ##
11238 ## -------------------- ##
11240 # Be more Bourne compatible
11241 DUALCASE=1; export DUALCASE # for MKS sh
11242 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11243 emulate sh
11244 NULLCMD=:
11245 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11246 # is contrary to our usage. Disable this feature.
11247 alias -g '${1+"$@"}'='"$@"'
11248 setopt NO_GLOB_SUBST
11249 else
11250 case `(set -o) 2>/dev/null` in #(
11251 *posix*) :
11252 set -o posix ;; #(
11253 *) :
11255 esac
11259 as_nl='
11261 export as_nl
11262 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11263 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11264 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11265 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11266 # Prefer a ksh shell builtin over an external printf program on Solaris,
11267 # but without wasting forks for bash or zsh.
11268 if test -z "$BASH_VERSION$ZSH_VERSION" \
11269 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11270 as_echo='print -r --'
11271 as_echo_n='print -rn --'
11272 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11273 as_echo='printf %s\n'
11274 as_echo_n='printf %s'
11275 else
11276 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11277 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11278 as_echo_n='/usr/ucb/echo -n'
11279 else
11280 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11281 as_echo_n_body='eval
11282 arg=$1;
11283 case $arg in #(
11284 *"$as_nl"*)
11285 expr "X$arg" : "X\\(.*\\)$as_nl";
11286 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11287 esac;
11288 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11290 export as_echo_n_body
11291 as_echo_n='sh -c $as_echo_n_body as_echo'
11293 export as_echo_body
11294 as_echo='sh -c $as_echo_body as_echo'
11297 # The user is always right.
11298 if test "${PATH_SEPARATOR+set}" != set; then
11299 PATH_SEPARATOR=:
11300 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11301 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11302 PATH_SEPARATOR=';'
11307 # IFS
11308 # We need space, tab and new line, in precisely that order. Quoting is
11309 # there to prevent editors from complaining about space-tab.
11310 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11311 # splitting by setting IFS to empty value.)
11312 IFS=" "" $as_nl"
11314 # Find who we are. Look in the path if we contain no directory separator.
11315 as_myself=
11316 case $0 in #((
11317 *[\\/]* ) as_myself=$0 ;;
11318 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11319 for as_dir in $PATH
11321 IFS=$as_save_IFS
11322 test -z "$as_dir" && as_dir=.
11323 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11324 done
11325 IFS=$as_save_IFS
11328 esac
11329 # We did not find ourselves, most probably we were run as `sh COMMAND'
11330 # in which case we are not to be found in the path.
11331 if test "x$as_myself" = x; then
11332 as_myself=$0
11334 if test ! -f "$as_myself"; then
11335 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11336 exit 1
11339 # Unset variables that we do not need and which cause bugs (e.g. in
11340 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11341 # suppresses any "Segmentation fault" message there. '((' could
11342 # trigger a bug in pdksh 5.2.14.
11343 for as_var in BASH_ENV ENV MAIL MAILPATH
11344 do eval test x\${$as_var+set} = xset \
11345 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11346 done
11347 PS1='$ '
11348 PS2='> '
11349 PS4='+ '
11351 # NLS nuisances.
11352 LC_ALL=C
11353 export LC_ALL
11354 LANGUAGE=C
11355 export LANGUAGE
11357 # CDPATH.
11358 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11361 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11362 # ----------------------------------------
11363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11365 # script with STATUS, using 1 if that was 0.
11366 as_fn_error ()
11368 as_status=$1; test $as_status -eq 0 && as_status=1
11369 if test "$4"; then
11370 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11373 $as_echo "$as_me: error: $2" >&2
11374 as_fn_exit $as_status
11375 } # as_fn_error
11378 # as_fn_set_status STATUS
11379 # -----------------------
11380 # Set $? to STATUS, without forking.
11381 as_fn_set_status ()
11383 return $1
11384 } # as_fn_set_status
11386 # as_fn_exit STATUS
11387 # -----------------
11388 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11389 as_fn_exit ()
11391 set +e
11392 as_fn_set_status $1
11393 exit $1
11394 } # as_fn_exit
11396 # as_fn_unset VAR
11397 # ---------------
11398 # Portably unset VAR.
11399 as_fn_unset ()
11401 { eval $1=; unset $1;}
11403 as_unset=as_fn_unset
11404 # as_fn_append VAR VALUE
11405 # ----------------------
11406 # Append the text in VALUE to the end of the definition contained in VAR. Take
11407 # advantage of any shell optimizations that allow amortized linear growth over
11408 # repeated appends, instead of the typical quadratic growth present in naive
11409 # implementations.
11410 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11411 eval 'as_fn_append ()
11413 eval $1+=\$2
11415 else
11416 as_fn_append ()
11418 eval $1=\$$1\$2
11420 fi # as_fn_append
11422 # as_fn_arith ARG...
11423 # ------------------
11424 # Perform arithmetic evaluation on the ARGs, and store the result in the
11425 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11426 # must be portable across $(()) and expr.
11427 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11428 eval 'as_fn_arith ()
11430 as_val=$(( $* ))
11432 else
11433 as_fn_arith ()
11435 as_val=`expr "$@" || test $? -eq 1`
11437 fi # as_fn_arith
11440 if expr a : '\(a\)' >/dev/null 2>&1 &&
11441 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11442 as_expr=expr
11443 else
11444 as_expr=false
11447 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11448 as_basename=basename
11449 else
11450 as_basename=false
11453 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11454 as_dirname=dirname
11455 else
11456 as_dirname=false
11459 as_me=`$as_basename -- "$0" ||
11460 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11461 X"$0" : 'X\(//\)$' \| \
11462 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11463 $as_echo X/"$0" |
11464 sed '/^.*\/\([^/][^/]*\)\/*$/{
11465 s//\1/
11468 /^X\/\(\/\/\)$/{
11469 s//\1/
11472 /^X\/\(\/\).*/{
11473 s//\1/
11476 s/.*/./; q'`
11478 # Avoid depending upon Character Ranges.
11479 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11480 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11481 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11482 as_cr_digits='0123456789'
11483 as_cr_alnum=$as_cr_Letters$as_cr_digits
11485 ECHO_C= ECHO_N= ECHO_T=
11486 case `echo -n x` in #(((((
11487 -n*)
11488 case `echo 'xy\c'` in
11489 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11490 xy) ECHO_C='\c';;
11491 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11492 ECHO_T=' ';;
11493 esac;;
11495 ECHO_N='-n';;
11496 esac
11498 rm -f conf$$ conf$$.exe conf$$.file
11499 if test -d conf$$.dir; then
11500 rm -f conf$$.dir/conf$$.file
11501 else
11502 rm -f conf$$.dir
11503 mkdir conf$$.dir 2>/dev/null
11505 if (echo >conf$$.file) 2>/dev/null; then
11506 if ln -s conf$$.file conf$$ 2>/dev/null; then
11507 as_ln_s='ln -s'
11508 # ... but there are two gotchas:
11509 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11510 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11511 # In both cases, we have to default to `cp -p'.
11512 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11513 as_ln_s='cp -p'
11514 elif ln conf$$.file conf$$ 2>/dev/null; then
11515 as_ln_s=ln
11516 else
11517 as_ln_s='cp -p'
11519 else
11520 as_ln_s='cp -p'
11522 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11523 rmdir conf$$.dir 2>/dev/null
11526 # as_fn_mkdir_p
11527 # -------------
11528 # Create "$as_dir" as a directory, including parents if necessary.
11529 as_fn_mkdir_p ()
11532 case $as_dir in #(
11533 -*) as_dir=./$as_dir;;
11534 esac
11535 test -d "$as_dir" || eval $as_mkdir_p || {
11536 as_dirs=
11537 while :; do
11538 case $as_dir in #(
11539 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11540 *) as_qdir=$as_dir;;
11541 esac
11542 as_dirs="'$as_qdir' $as_dirs"
11543 as_dir=`$as_dirname -- "$as_dir" ||
11544 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11545 X"$as_dir" : 'X\(//\)[^/]' \| \
11546 X"$as_dir" : 'X\(//\)$' \| \
11547 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11548 $as_echo X"$as_dir" |
11549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11550 s//\1/
11553 /^X\(\/\/\)[^/].*/{
11554 s//\1/
11557 /^X\(\/\/\)$/{
11558 s//\1/
11561 /^X\(\/\).*/{
11562 s//\1/
11565 s/.*/./; q'`
11566 test -d "$as_dir" && break
11567 done
11568 test -z "$as_dirs" || eval "mkdir $as_dirs"
11569 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11572 } # as_fn_mkdir_p
11573 if mkdir -p . 2>/dev/null; then
11574 as_mkdir_p='mkdir -p "$as_dir"'
11575 else
11576 test -d ./-p && rmdir ./-p
11577 as_mkdir_p=false
11580 if test -x / >/dev/null 2>&1; then
11581 as_test_x='test -x'
11582 else
11583 if ls -dL / >/dev/null 2>&1; then
11584 as_ls_L_option=L
11585 else
11586 as_ls_L_option=
11588 as_test_x='
11589 eval sh -c '\''
11590 if test -d "$1"; then
11591 test -d "$1/.";
11592 else
11593 case $1 in #(
11594 -*)set "./$1";;
11595 esac;
11596 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11597 ???[sx]*):;;*)false;;esac;fi
11598 '\'' sh
11601 as_executable_p=$as_test_x
11603 # Sed expression to map a string onto a valid CPP name.
11604 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11606 # Sed expression to map a string onto a valid variable name.
11607 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11610 exec 6>&1
11611 ## ----------------------------------- ##
11612 ## Main body of $CONFIG_STATUS script. ##
11613 ## ----------------------------------- ##
11614 _ASEOF
11615 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11618 # Save the log message, to keep $0 and so on meaningful, and to
11619 # report actual input values of CONFIG_FILES etc. instead of their
11620 # values after options handling.
11621 ac_log="
11622 This file was extended by $as_me, which was
11623 generated by GNU Autoconf 2.68. Invocation command line was
11625 CONFIG_FILES = $CONFIG_FILES
11626 CONFIG_HEADERS = $CONFIG_HEADERS
11627 CONFIG_LINKS = $CONFIG_LINKS
11628 CONFIG_COMMANDS = $CONFIG_COMMANDS
11629 $ $0 $@
11631 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11634 _ACEOF
11636 case $ac_config_files in *"
11637 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11638 esac
11640 case $ac_config_headers in *"
11641 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11642 esac
11645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11646 # Files that config.status was made for.
11647 config_files="$ac_config_files"
11648 config_headers="$ac_config_headers"
11649 config_commands="$ac_config_commands"
11651 _ACEOF
11653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11654 ac_cs_usage="\
11655 \`$as_me' instantiates files and other configuration actions
11656 from templates according to the current configuration. Unless the files
11657 and actions are specified as TAGs, all are instantiated by default.
11659 Usage: $0 [OPTION]... [TAG]...
11661 -h, --help print this help, then exit
11662 -V, --version print version number and configuration settings, then exit
11663 --config print configuration, then exit
11664 -q, --quiet, --silent
11665 do not print progress messages
11666 -d, --debug don't remove temporary files
11667 --recheck update $as_me by reconfiguring in the same conditions
11668 --file=FILE[:TEMPLATE]
11669 instantiate the configuration file FILE
11670 --header=FILE[:TEMPLATE]
11671 instantiate the configuration header FILE
11673 Configuration files:
11674 $config_files
11676 Configuration headers:
11677 $config_headers
11679 Configuration commands:
11680 $config_commands
11682 Report bugs to the package provider."
11684 _ACEOF
11685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11686 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11687 ac_cs_version="\\
11688 config.status
11689 configured by $0, generated by GNU Autoconf 2.68,
11690 with options \\"\$ac_cs_config\\"
11692 Copyright (C) 2010 Free Software Foundation, Inc.
11693 This config.status script is free software; the Free Software Foundation
11694 gives unlimited permission to copy, distribute and modify it."
11696 ac_pwd='$ac_pwd'
11697 srcdir='$srcdir'
11698 test -n "\$AWK" || AWK=awk
11699 _ACEOF
11701 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11702 # The default lists apply if the user does not specify any file.
11703 ac_need_defaults=:
11704 while test $# != 0
11706 case $1 in
11707 --*=?*)
11708 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11709 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11710 ac_shift=:
11712 --*=)
11713 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11714 ac_optarg=
11715 ac_shift=:
11718 ac_option=$1
11719 ac_optarg=$2
11720 ac_shift=shift
11722 esac
11724 case $ac_option in
11725 # Handling of the options.
11726 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11727 ac_cs_recheck=: ;;
11728 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11729 $as_echo "$ac_cs_version"; exit ;;
11730 --config | --confi | --conf | --con | --co | --c )
11731 $as_echo "$ac_cs_config"; exit ;;
11732 --debug | --debu | --deb | --de | --d | -d )
11733 debug=: ;;
11734 --file | --fil | --fi | --f )
11735 $ac_shift
11736 case $ac_optarg in
11737 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11738 '') as_fn_error $? "missing file argument" ;;
11739 esac
11740 as_fn_append CONFIG_FILES " '$ac_optarg'"
11741 ac_need_defaults=false;;
11742 --header | --heade | --head | --hea )
11743 $ac_shift
11744 case $ac_optarg in
11745 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11746 esac
11747 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11748 ac_need_defaults=false;;
11749 --he | --h)
11750 # Conflict between --help and --header
11751 as_fn_error $? "ambiguous option: \`$1'
11752 Try \`$0 --help' for more information.";;
11753 --help | --hel | -h )
11754 $as_echo "$ac_cs_usage"; exit ;;
11755 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11756 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11757 ac_cs_silent=: ;;
11759 # This is an error.
11760 -*) as_fn_error $? "unrecognized option: \`$1'
11761 Try \`$0 --help' for more information." ;;
11763 *) as_fn_append ac_config_targets " $1"
11764 ac_need_defaults=false ;;
11766 esac
11767 shift
11768 done
11770 ac_configure_extra_args=
11772 if $ac_cs_silent; then
11773 exec 6>/dev/null
11774 ac_configure_extra_args="$ac_configure_extra_args --silent"
11777 _ACEOF
11778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11779 if \$ac_cs_recheck; then
11780 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11781 shift
11782 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11783 CONFIG_SHELL='$SHELL'
11784 export CONFIG_SHELL
11785 exec "\$@"
11788 _ACEOF
11789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11790 exec 5>>config.log
11792 echo
11793 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11794 ## Running $as_me. ##
11795 _ASBOX
11796 $as_echo "$ac_log"
11797 } >&5
11799 _ACEOF
11800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11802 # INIT-COMMANDS
11805 aros_host_exe_suffix=${aros_host_exe_suffix}
11806 aros_tools_dir=${aros_tools_dir}
11807 aros_target_cpu=${aros_target_cpu}
11808 aros_target_arch=${aros_target_arch}
11809 aros_target_suffix=${aros_target_suffix}
11810 aros_target_nm_ln=${aros_target_nm_ln}
11811 aros_target_as_ln=${aros_target_as_ln}
11812 aros_target_ar_ln=${aros_target_ar_ln}
11813 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11814 aros_target_objdump_ln=${aros_target_objdump_ln}
11815 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11816 aros_target_strip_ln=${aros_target_strip_ln}
11819 aros_scripts_dir=${aros_scripts_dir}
11821 aros_tools_dir=${aros_tools_dir}
11824 _ACEOF
11826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11828 # Handling of arguments.
11829 for ac_config_target in $ac_config_targets
11831 case $ac_config_target in
11832 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11833 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11834 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11835 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11836 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11837 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11838 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11839 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11840 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11841 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11842 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11843 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11844 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11845 "${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" ;;
11846 "${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" ;;
11847 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/library_template_c/source/lib_source/genshared.in" ;;
11848 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11849 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11850 "${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" ;;
11852 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11853 esac
11854 done
11857 # If the user did not use the arguments to specify the items to instantiate,
11858 # then the envvar interface is used. Set only those that are not.
11859 # We use the long form for the default assignment because of an extremely
11860 # bizarre bug on SunOS 4.1.3.
11861 if $ac_need_defaults; then
11862 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11863 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11864 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11867 # Have a temporary directory for convenience. Make it in the build tree
11868 # simply because there is no reason against having it here, and in addition,
11869 # creating and moving files from /tmp can sometimes cause problems.
11870 # Hook for its removal unless debugging.
11871 # Note that there is a small window in which the directory will not be cleaned:
11872 # after its creation but before its name has been assigned to `$tmp'.
11873 $debug ||
11875 tmp= ac_tmp=
11876 trap 'exit_status=$?
11877 : "${ac_tmp:=$tmp}"
11878 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11880 trap 'as_fn_exit 1' 1 2 13 15
11882 # Create a (secure) tmp directory for tmp files.
11885 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11886 test -d "$tmp"
11887 } ||
11889 tmp=./conf$$-$RANDOM
11890 (umask 077 && mkdir "$tmp")
11891 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11892 ac_tmp=$tmp
11894 # Set up the scripts for CONFIG_FILES section.
11895 # No need to generate them if there are no CONFIG_FILES.
11896 # This happens for instance with `./config.status config.h'.
11897 if test -n "$CONFIG_FILES"; then
11900 ac_cr=`echo X | tr X '\015'`
11901 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11902 # But we know of no other shell where ac_cr would be empty at this
11903 # point, so we can use a bashism as a fallback.
11904 if test "x$ac_cr" = x; then
11905 eval ac_cr=\$\'\\r\'
11907 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11908 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11909 ac_cs_awk_cr='\\r'
11910 else
11911 ac_cs_awk_cr=$ac_cr
11914 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11915 _ACEOF
11919 echo "cat >conf$$subs.awk <<_ACEOF" &&
11920 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11921 echo "_ACEOF"
11922 } >conf$$subs.sh ||
11923 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11924 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11925 ac_delim='%!_!# '
11926 for ac_last_try in false false false false false :; do
11927 . ./conf$$subs.sh ||
11928 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11930 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11931 if test $ac_delim_n = $ac_delim_num; then
11932 break
11933 elif $ac_last_try; then
11934 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11935 else
11936 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11938 done
11939 rm -f conf$$subs.sh
11941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11942 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11943 _ACEOF
11944 sed -n '
11946 s/^/S["/; s/!.*/"]=/
11949 s/^[^!]*!//
11950 :repl
11951 t repl
11952 s/'"$ac_delim"'$//
11953 t delim
11956 s/\(.\{148\}\)..*/\1/
11957 t more1
11958 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11961 b repl
11962 :more1
11963 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11966 s/.\{148\}//
11967 t nl
11968 :delim
11970 s/\(.\{148\}\)..*/\1/
11971 t more2
11972 s/["\\]/\\&/g; s/^/"/; s/$/"/
11975 :more2
11976 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11979 s/.\{148\}//
11980 t delim
11981 ' <conf$$subs.awk | sed '
11982 /^[^""]/{
11984 s/\n//
11986 ' >>$CONFIG_STATUS || ac_write_fail=1
11987 rm -f conf$$subs.awk
11988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11989 _ACAWK
11990 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11991 for (key in S) S_is_set[key] = 1
11992 FS = "\a"
11996 line = $ 0
11997 nfields = split(line, field, "@")
11998 substed = 0
11999 len = length(field[1])
12000 for (i = 2; i < nfields; i++) {
12001 key = field[i]
12002 keylen = length(key)
12003 if (S_is_set[key]) {
12004 value = S[key]
12005 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12006 len += length(value) + length(field[++i])
12007 substed = 1
12008 } else
12009 len += 1 + keylen
12012 print line
12015 _ACAWK
12016 _ACEOF
12017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12018 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12019 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12020 else
12022 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12023 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12024 _ACEOF
12026 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12027 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12028 # trailing colons and then remove the whole line if VPATH becomes empty
12029 # (actually we leave an empty line to preserve line numbers).
12030 if test "x$srcdir" = x.; then
12031 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12033 s///
12034 s/^/:/
12035 s/[ ]*$/:/
12036 s/:\$(srcdir):/:/g
12037 s/:\${srcdir}:/:/g
12038 s/:@srcdir@:/:/g
12039 s/^:*//
12040 s/:*$//
12042 s/\(=[ ]*\).*/\1/
12044 s/\n//
12045 s/^[^=]*=[ ]*$//
12049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12050 fi # test -n "$CONFIG_FILES"
12052 # Set up the scripts for CONFIG_HEADERS section.
12053 # No need to generate them if there are no CONFIG_HEADERS.
12054 # This happens for instance with `./config.status Makefile'.
12055 if test -n "$CONFIG_HEADERS"; then
12056 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12057 BEGIN {
12058 _ACEOF
12060 # Transform confdefs.h into an awk script `defines.awk', embedded as
12061 # here-document in config.status, that substitutes the proper values into
12062 # config.h.in to produce config.h.
12064 # Create a delimiter string that does not exist in confdefs.h, to ease
12065 # handling of long lines.
12066 ac_delim='%!_!# '
12067 for ac_last_try in false false :; do
12068 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12069 if test -z "$ac_tt"; then
12070 break
12071 elif $ac_last_try; then
12072 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12073 else
12074 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12076 done
12078 # For the awk script, D is an array of macro values keyed by name,
12079 # likewise P contains macro parameters if any. Preserve backslash
12080 # newline sequences.
12082 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12083 sed -n '
12084 s/.\{148\}/&'"$ac_delim"'/g
12085 t rset
12086 :rset
12087 s/^[ ]*#[ ]*define[ ][ ]*/ /
12088 t def
12090 :def
12091 s/\\$//
12092 t bsnl
12093 s/["\\]/\\&/g
12094 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12095 D["\1"]=" \3"/p
12096 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12098 :bsnl
12099 s/["\\]/\\&/g
12100 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12101 D["\1"]=" \3\\\\\\n"\\/p
12102 t cont
12103 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12104 t cont
12106 :cont
12108 s/.\{148\}/&'"$ac_delim"'/g
12109 t clear
12110 :clear
12111 s/\\$//
12112 t bsnlc
12113 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12115 :bsnlc
12116 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12117 b cont
12118 ' <confdefs.h | sed '
12119 s/'"$ac_delim"'/"\\\
12120 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12123 for (key in D) D_is_set[key] = 1
12124 FS = "\a"
12126 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12127 line = \$ 0
12128 split(line, arg, " ")
12129 if (arg[1] == "#") {
12130 defundef = arg[2]
12131 mac1 = arg[3]
12132 } else {
12133 defundef = substr(arg[1], 2)
12134 mac1 = arg[2]
12136 split(mac1, mac2, "(") #)
12137 macro = mac2[1]
12138 prefix = substr(line, 1, index(line, defundef) - 1)
12139 if (D_is_set[macro]) {
12140 # Preserve the white space surrounding the "#".
12141 print prefix "define", macro P[macro] D[macro]
12142 next
12143 } else {
12144 # Replace #undef with comments. This is necessary, for example,
12145 # in the case of _POSIX_SOURCE, which is predefined and required
12146 # on some systems where configure will not decide to define it.
12147 if (defundef == "undef") {
12148 print "/*", prefix defundef, macro, "*/"
12149 next
12153 { print }
12154 _ACAWK
12155 _ACEOF
12156 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12157 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12158 fi # test -n "$CONFIG_HEADERS"
12161 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12162 shift
12163 for ac_tag
12165 case $ac_tag in
12166 :[FHLC]) ac_mode=$ac_tag; continue;;
12167 esac
12168 case $ac_mode$ac_tag in
12169 :[FHL]*:*);;
12170 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12171 :[FH]-) ac_tag=-:-;;
12172 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12173 esac
12174 ac_save_IFS=$IFS
12175 IFS=:
12176 set x $ac_tag
12177 IFS=$ac_save_IFS
12178 shift
12179 ac_file=$1
12180 shift
12182 case $ac_mode in
12183 :L) ac_source=$1;;
12184 :[FH])
12185 ac_file_inputs=
12186 for ac_f
12188 case $ac_f in
12189 -) ac_f="$ac_tmp/stdin";;
12190 *) # Look for the file first in the build tree, then in the source tree
12191 # (if the path is not absolute). The absolute path cannot be DOS-style,
12192 # because $ac_f cannot contain `:'.
12193 test -f "$ac_f" ||
12194 case $ac_f in
12195 [\\/$]*) false;;
12196 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12197 esac ||
12198 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12199 esac
12200 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12201 as_fn_append ac_file_inputs " '$ac_f'"
12202 done
12204 # Let's still pretend it is `configure' which instantiates (i.e., don't
12205 # use $as_me), people would be surprised to read:
12206 # /* config.h. Generated by config.status. */
12207 configure_input='Generated from '`
12208 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12209 `' by configure.'
12210 if test x"$ac_file" != x-; then
12211 configure_input="$ac_file. $configure_input"
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12213 $as_echo "$as_me: creating $ac_file" >&6;}
12215 # Neutralize special characters interpreted by sed in replacement strings.
12216 case $configure_input in #(
12217 *\&* | *\|* | *\\* )
12218 ac_sed_conf_input=`$as_echo "$configure_input" |
12219 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12220 *) ac_sed_conf_input=$configure_input;;
12221 esac
12223 case $ac_tag in
12224 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12225 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12226 esac
12228 esac
12230 ac_dir=`$as_dirname -- "$ac_file" ||
12231 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12232 X"$ac_file" : 'X\(//\)[^/]' \| \
12233 X"$ac_file" : 'X\(//\)$' \| \
12234 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12235 $as_echo X"$ac_file" |
12236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12237 s//\1/
12240 /^X\(\/\/\)[^/].*/{
12241 s//\1/
12244 /^X\(\/\/\)$/{
12245 s//\1/
12248 /^X\(\/\).*/{
12249 s//\1/
12252 s/.*/./; q'`
12253 as_dir="$ac_dir"; as_fn_mkdir_p
12254 ac_builddir=.
12256 case "$ac_dir" in
12257 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12259 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12260 # A ".." for each directory in $ac_dir_suffix.
12261 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12262 case $ac_top_builddir_sub in
12263 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12264 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12265 esac ;;
12266 esac
12267 ac_abs_top_builddir=$ac_pwd
12268 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12269 # for backward compatibility:
12270 ac_top_builddir=$ac_top_build_prefix
12272 case $srcdir in
12273 .) # We are building in place.
12274 ac_srcdir=.
12275 ac_top_srcdir=$ac_top_builddir_sub
12276 ac_abs_top_srcdir=$ac_pwd ;;
12277 [\\/]* | ?:[\\/]* ) # Absolute name.
12278 ac_srcdir=$srcdir$ac_dir_suffix;
12279 ac_top_srcdir=$srcdir
12280 ac_abs_top_srcdir=$srcdir ;;
12281 *) # Relative name.
12282 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12283 ac_top_srcdir=$ac_top_build_prefix$srcdir
12284 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12285 esac
12286 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12289 case $ac_mode in
12292 # CONFIG_FILE
12295 _ACEOF
12297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12298 # If the template does not know about datarootdir, expand it.
12299 # FIXME: This hack should be removed a few years after 2.60.
12300 ac_datarootdir_hack=; ac_datarootdir_seen=
12301 ac_sed_dataroot='
12302 /datarootdir/ {
12306 /@datadir@/p
12307 /@docdir@/p
12308 /@infodir@/p
12309 /@localedir@/p
12310 /@mandir@/p'
12311 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12312 *datarootdir*) ac_datarootdir_seen=yes;;
12313 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12315 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12316 _ACEOF
12317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12318 ac_datarootdir_hack='
12319 s&@datadir@&$datadir&g
12320 s&@docdir@&$docdir&g
12321 s&@infodir@&$infodir&g
12322 s&@localedir@&$localedir&g
12323 s&@mandir@&$mandir&g
12324 s&\\\${datarootdir}&$datarootdir&g' ;;
12325 esac
12326 _ACEOF
12328 # Neutralize VPATH when `$srcdir' = `.'.
12329 # Shell code in configure.ac might set extrasub.
12330 # FIXME: do we really want to maintain this feature?
12331 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12332 ac_sed_extra="$ac_vpsub
12333 $extrasub
12334 _ACEOF
12335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12338 s|@configure_input@|$ac_sed_conf_input|;t t
12339 s&@top_builddir@&$ac_top_builddir_sub&;t t
12340 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12341 s&@srcdir@&$ac_srcdir&;t t
12342 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12343 s&@top_srcdir@&$ac_top_srcdir&;t t
12344 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12345 s&@builddir@&$ac_builddir&;t t
12346 s&@abs_builddir@&$ac_abs_builddir&;t t
12347 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12348 $ac_datarootdir_hack
12350 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12351 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12353 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12354 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12355 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12356 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12358 which seems to be undefined. Please make sure it is defined" >&5
12359 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12360 which seems to be undefined. Please make sure it is defined" >&2;}
12362 rm -f "$ac_tmp/stdin"
12363 case $ac_file in
12364 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12365 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12366 esac \
12367 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12371 # CONFIG_HEADER
12373 if test x"$ac_file" != x-; then
12375 $as_echo "/* $configure_input */" \
12376 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12377 } >"$ac_tmp/config.h" \
12378 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12379 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12381 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12382 else
12383 rm -f "$ac_file"
12384 mv "$ac_tmp/config.h" "$ac_file" \
12385 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12387 else
12388 $as_echo "/* $configure_input */" \
12389 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12390 || as_fn_error $? "could not create -" "$LINENO" 5
12394 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12395 $as_echo "$as_me: executing $ac_file commands" >&6;}
12397 esac
12400 case $ac_file$ac_mode in
12401 "compiler_executable":C)
12402 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12403 mkdir -p $prefix
12404 prefix="${prefix}/${aros_target_cpu}-aros"
12405 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12407 echo ${prefix}
12408 echo ${prefix2}
12409 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12411 ln -sf ${prefix2}-gcc ${prefix}-gcc
12412 ln -sf ${prefix2}-ld ${prefix}-ld
12414 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12415 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12416 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12417 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12418 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12419 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12420 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12422 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12423 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12424 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12425 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12426 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12427 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12428 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12430 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
12431 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12433 esac
12434 done # for ac_tag
12437 as_fn_exit 0
12438 _ACEOF
12439 ac_clean_files=$ac_clean_files_save
12441 test $ac_write_fail = 0 ||
12442 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12445 # configure is writing to config.log, and then calls config.status.
12446 # config.status does its own redirection, appending to config.log.
12447 # Unfortunately, on DOS this fails, as config.log is still kept open
12448 # by configure, so config.status won't be able to write to it; its
12449 # output is simply discarded. So we exec the FD to /dev/null,
12450 # effectively closing config.log, so it can be properly (re)opened and
12451 # appended to by config.status. When coming back to configure, we
12452 # need to make the FD available again.
12453 if test "$no_create" != yes; then
12454 ac_cs_success=:
12455 ac_config_status_args=
12456 test "$silent" = yes &&
12457 ac_config_status_args="$ac_config_status_args --quiet"
12458 exec 5>/dev/null
12459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12460 exec 5>>config.log
12461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12462 # would make configure fail if this is the last instruction.
12463 $ac_cs_success || as_fn_exit 1
12465 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12467 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12472 #XXX compatability...
12473 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12475 if test -n "$aros_shared_cflags" ; then
12476 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12477 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg