Removed obsolete rule.
[AROS.git] / configure
blobb2bd7bd3fa69eb785097c832d6d77f6b052ba25d
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145 else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
151 esac
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
160 exitcode=0
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 else
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
538 exec 6>&1
540 # Name of the host.
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546 # Initializations.
548 ac_default_prefix=/usr/local
549 ac_clean_files=
550 ac_config_libobj_dir=.
551 LIBOBJS=
552 cross_compiling=no
553 subdirs=
554 MFLAGS=
555 MAKEFLAGS=
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563 PACKAGE_URL=
565 ac_unique_file="mmakefile"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_header_list=
603 ac_subst_vars='LTLIBOBJS
604 gcc_target_cpu
605 ignore_undefined_symbols
606 aros_modules_debug
607 aros_stack_debug
608 aros_mungwall_debug
609 aros_debug
610 ENABLE_X11
611 KERNEL_DBUS_INCLUDES
612 KERNEL_DBUS_KOBJ
613 DBUS_LIBFLAGS
614 DBUS_CFLAGS
615 ENABLE_DBUS
616 aros_android_level
617 aros_ios_sdk
618 aros_ios_version
619 aros_ios_platform
620 aros_enable_mmu
621 aros_nesting_supervisor
622 aros_usb30_code
623 aros_palm_debug_hack
624 aros_serial_debug
625 aros_host_sdl_libs
626 aros_host_sdl_cflags
627 aros_host_x11_libdirs
628 aros_host_x11_includes
629 DO_VIDMODE_SUPPORT
630 DO_XSHM_SUPPORT
631 aros_default_wbdepth
632 aros_default_wbheight
633 aros_default_wbwidth
634 oss_library_target
635 pci_hidd_target
636 sdl_hidd_target
637 x11_hidd_target
638 crosstools_cxx_target
639 crosstools_target
640 aros_target_strip_flags
641 aros_target_genmap
642 aros_debug_ldflags
643 aros_debug_aflags
644 aros_debug_cflags
645 aros_target_cflags
646 aros_kernel_ldflags
647 aros_kernel_objcflags
648 aros_kernel_includes
649 aros_kernel_cflags
650 aros_shared_ldflags
651 aros_shared_aflags
652 aros_shared_cflags
653 aros_config_ldflags
654 aros_config_aflags
655 aros_config_cflags
656 aros_arch_libs
657 aros_compiler_libs
658 aros_object_format
659 aros_shared_ld
660 aros_shared_default
661 aros_target_nm
662 aros_target_strip
663 aros_target_objcopy
664 aros_target_objdump
665 aros_target_cc_path
666 aros_target_cc_includes
667 orig_target_ld
668 aros_target_as
669 aros_kernel_cc
670 orig_target_cc
671 aros_plain_ar
672 aros_plain_nm
673 aros_target_ranlib
674 aros_target_ar
675 aros_target_incl
676 aros_target_suffix
677 aros_target_variant
678 aros_target_cpu
679 aros_target_family
680 aros_target_arch
681 aros_target_bootloader
682 aros_target_iconset
683 aros_target_guitheme
684 aros_tools_dir
685 aros_host_lib_suffix
686 aros_host_exe_suffix
687 aros_host_mkargs
688 aros_host_mkdep
689 aros_host_debug
690 aros_host_ldflags
691 gnu89_inline
692 aros_host_cflags
693 aros_host_make
694 aros_host_cc
695 aros_host_cpu
696 aros_host_arch
697 aros_cc_pre
698 AROS_PORTSSRCDIR
699 AROS_CROSSTOOLSDIR
700 SRCDIR
701 AROS_BUILDDIR_UNIX
702 AROS_BUILDDIR
703 aros_flavour_uc
704 aros_flavour
705 aros_cpu
706 aros_arch
707 SDL_LIBS
708 SDL_CFLAGS
709 SDL_CONFIG
710 XMKMF
711 aros_cflags_iquote_end
712 aros_cflags_iquote
713 kernel_cflags_iquote_end
714 kernel_cflags_iquote
715 host_cflags_iquote_end
716 host_cflags_iquote
717 aros_target_nostdlib_ldflags
718 aros_target_detach_ldflags
719 aros_target_nix_ldflags
720 aros_target_nostartup_ldflags
721 aros_target_nostdinc_cflags
722 aros_target_ld
723 aros_target_cc
724 aros_target_cxx
725 aros_target_strip_ln
726 aros_target_ranlib_ln
727 aros_target_objdump_ln
728 aros_target_objcopy_ln
729 aros_target_nm_ln
730 aros_target_ar_ln
731 aros_target_as_ln
732 aros_kernel_ranlib
733 aros_kernel_ar
734 aros_kernel_ld
735 aros_kernel_rescomp
736 android_tool
737 CCACHE
738 DISTCC
739 LIBOBJS
740 EGREP
741 GREP
743 TEST
746 pkgpyexecdir
747 pyexecdir
748 pkgpythondir
749 pythondir
750 PYTHON_PLATFORM
751 PYTHON_EXEC_PREFIX
752 PYTHON_PREFIX
753 PYTHON_VERSION
754 PYTHON
755 PATCH
756 CHMOD
758 PPMTOILBM
759 PNGTOPNM
760 FLEX
761 BISON
764 UNIQ
765 SORT
766 TOUCH
767 MKDIR
768 ECHO
772 aros_host_strip
773 aros_host_ranlib
774 aros_host_ar
775 aros_host_automake
776 aros_host_autoheader
777 aros_host_autoconf
778 aros_host_aclocal
779 aros_host_ld
780 MMAKE
783 OBJEXT
784 EXEEXT
785 ac_ct_CC
786 CPPFLAGS
787 LDFLAGS
788 CFLAGS
790 host_os
791 host_vendor
792 host_cpu
793 host
794 build_os
795 build_vendor
796 build_cpu
797 build
798 target_alias
799 host_alias
800 build_alias
801 LIBS
802 ECHO_T
803 ECHO_N
804 ECHO_C
805 DEFS
806 mandir
807 localedir
808 libdir
809 psdir
810 pdfdir
811 dvidir
812 htmldir
813 infodir
814 docdir
815 oldincludedir
816 includedir
817 localstatedir
818 sharedstatedir
819 sysconfdir
820 datadir
821 datarootdir
822 libexecdir
823 sbindir
824 bindir
825 program_transform_name
826 prefix
827 exec_prefix
828 PACKAGE_URL
829 PACKAGE_BUGREPORT
830 PACKAGE_STRING
831 PACKAGE_VERSION
832 PACKAGE_TARNAME
833 PACKAGE_NAME
834 PATH_SEPARATOR
835 SHELL'
836 ac_subst_files=''
837 ac_user_opts='
838 enable_option_checking
839 enable_build_type
840 enable_debug
841 enable_crosstools
842 enable_distcc
843 enable_ccache
844 with_gcc_version
845 with_optimization
846 with_paranoia
847 enable_target_variant
848 with_xcode
849 with_ios_version
850 with_ios_sdk
851 with_sdk
852 with_ndk
853 with_android_version
854 with_crosstools
855 with_aros_gcc
856 with_portssources
857 with_bootloader
858 with_iconset
859 with_theme
860 enable_includes
861 with_resolution
862 with_serial_debug
863 enable_palm_debug_hack
864 enable_usb30_code
865 enable_nesting_supervisor
866 enable_mmu
867 enable_x11_hidd
868 with_x
869 enable_x11_shm
870 enable_x11_vidmode
871 enable_sdl_hidd
872 with_sdl_prefix
873 with_sdl_exec_prefix
874 enable_sdltest
875 enable_dbus
877 ac_precious_vars='build_alias
878 host_alias
879 target_alias
881 CFLAGS
882 LDFLAGS
883 LIBS
884 CPPFLAGS
886 CPPFLAGS
887 XMKMF'
890 # Initialize some variables set by options.
891 ac_init_help=
892 ac_init_version=false
893 ac_unrecognized_opts=
894 ac_unrecognized_sep=
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
897 cache_file=/dev/null
898 exec_prefix=NONE
899 no_create=
900 no_recursion=
901 prefix=NONE
902 program_prefix=NONE
903 program_suffix=NONE
904 program_transform_name=s,x,x,
905 silent=
906 site=
907 srcdir=
908 verbose=
909 x_includes=NONE
910 x_libraries=NONE
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir='${exec_prefix}/bin'
919 sbindir='${exec_prefix}/sbin'
920 libexecdir='${exec_prefix}/libexec'
921 datarootdir='${prefix}/share'
922 datadir='${datarootdir}'
923 sysconfdir='${prefix}/etc'
924 sharedstatedir='${prefix}/com'
925 localstatedir='${prefix}/var'
926 includedir='${prefix}/include'
927 oldincludedir='/usr/include'
928 docdir='${datarootdir}/doc/${PACKAGE}'
929 infodir='${datarootdir}/info'
930 htmldir='${docdir}'
931 dvidir='${docdir}'
932 pdfdir='${docdir}'
933 psdir='${docdir}'
934 libdir='${exec_prefix}/lib'
935 localedir='${datarootdir}/locale'
936 mandir='${datarootdir}/man'
938 ac_prev=
939 ac_dashdash=
940 for ac_option
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
944 eval $ac_prev=\$ac_option
945 ac_prev=
946 continue
949 case $ac_option in
950 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
951 *=) ac_optarg= ;;
952 *) ac_optarg=yes ;;
953 esac
955 # Accept the important Cygnus configure options, so we can diagnose typos.
957 case $ac_dashdash$ac_option in
959 ac_dashdash=yes ;;
961 -bindir | --bindir | --bindi | --bind | --bin | --bi)
962 ac_prev=bindir ;;
963 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
964 bindir=$ac_optarg ;;
966 -build | --build | --buil | --bui | --bu)
967 ac_prev=build_alias ;;
968 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
969 build_alias=$ac_optarg ;;
971 -cache-file | --cache-file | --cache-fil | --cache-fi \
972 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
973 ac_prev=cache_file ;;
974 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
975 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
976 cache_file=$ac_optarg ;;
978 --config-cache | -C)
979 cache_file=config.cache ;;
981 -datadir | --datadir | --datadi | --datad)
982 ac_prev=datadir ;;
983 -datadir=* | --datadir=* | --datadi=* | --datad=*)
984 datadir=$ac_optarg ;;
986 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
987 | --dataroo | --dataro | --datar)
988 ac_prev=datarootdir ;;
989 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
990 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
991 datarootdir=$ac_optarg ;;
993 -disable-* | --disable-*)
994 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
997 as_fn_error $? "invalid feature name: $ac_useropt"
998 ac_useropt_orig=$ac_useropt
999 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_$ac_useropt"
1003 "*) ;;
1004 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005 ac_unrecognized_sep=', ';;
1006 esac
1007 eval enable_$ac_useropt=no ;;
1009 -docdir | --docdir | --docdi | --doc | --do)
1010 ac_prev=docdir ;;
1011 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1012 docdir=$ac_optarg ;;
1014 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1015 ac_prev=dvidir ;;
1016 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1017 dvidir=$ac_optarg ;;
1019 -enable-* | --enable-*)
1020 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1023 as_fn_error $? "invalid feature name: $ac_useropt"
1024 ac_useropt_orig=$ac_useropt
1025 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_$ac_useropt"
1029 "*) ;;
1030 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031 ac_unrecognized_sep=', ';;
1032 esac
1033 eval enable_$ac_useropt=\$ac_optarg ;;
1035 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037 | --exec | --exe | --ex)
1038 ac_prev=exec_prefix ;;
1039 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041 | --exec=* | --exe=* | --ex=*)
1042 exec_prefix=$ac_optarg ;;
1044 -gas | --gas | --ga | --g)
1045 # Obsolete; use --with-gas.
1046 with_gas=yes ;;
1048 -help | --help | --hel | --he | -h)
1049 ac_init_help=long ;;
1050 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051 ac_init_help=recursive ;;
1052 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053 ac_init_help=short ;;
1055 -host | --host | --hos | --ho)
1056 ac_prev=host_alias ;;
1057 -host=* | --host=* | --hos=* | --ho=*)
1058 host_alias=$ac_optarg ;;
1060 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061 ac_prev=htmldir ;;
1062 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063 | --ht=*)
1064 htmldir=$ac_optarg ;;
1066 -includedir | --includedir | --includedi | --included | --include \
1067 | --includ | --inclu | --incl | --inc)
1068 ac_prev=includedir ;;
1069 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070 | --includ=* | --inclu=* | --incl=* | --inc=*)
1071 includedir=$ac_optarg ;;
1073 -infodir | --infodir | --infodi | --infod | --info | --inf)
1074 ac_prev=infodir ;;
1075 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076 infodir=$ac_optarg ;;
1078 -libdir | --libdir | --libdi | --libd)
1079 ac_prev=libdir ;;
1080 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081 libdir=$ac_optarg ;;
1083 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084 | --libexe | --libex | --libe)
1085 ac_prev=libexecdir ;;
1086 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087 | --libexe=* | --libex=* | --libe=*)
1088 libexecdir=$ac_optarg ;;
1090 -localedir | --localedir | --localedi | --localed | --locale)
1091 ac_prev=localedir ;;
1092 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093 localedir=$ac_optarg ;;
1095 -localstatedir | --localstatedir | --localstatedi | --localstated \
1096 | --localstate | --localstat | --localsta | --localst | --locals)
1097 ac_prev=localstatedir ;;
1098 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100 localstatedir=$ac_optarg ;;
1102 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103 ac_prev=mandir ;;
1104 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105 mandir=$ac_optarg ;;
1107 -nfp | --nfp | --nf)
1108 # Obsolete; use --without-fp.
1109 with_fp=no ;;
1111 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112 | --no-cr | --no-c | -n)
1113 no_create=yes ;;
1115 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117 no_recursion=yes ;;
1119 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121 | --oldin | --oldi | --old | --ol | --o)
1122 ac_prev=oldincludedir ;;
1123 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126 oldincludedir=$ac_optarg ;;
1128 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129 ac_prev=prefix ;;
1130 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131 prefix=$ac_optarg ;;
1133 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134 | --program-pre | --program-pr | --program-p)
1135 ac_prev=program_prefix ;;
1136 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138 program_prefix=$ac_optarg ;;
1140 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141 | --program-suf | --program-su | --program-s)
1142 ac_prev=program_suffix ;;
1143 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145 program_suffix=$ac_optarg ;;
1147 -program-transform-name | --program-transform-name \
1148 | --program-transform-nam | --program-transform-na \
1149 | --program-transform-n | --program-transform- \
1150 | --program-transform | --program-transfor \
1151 | --program-transfo | --program-transf \
1152 | --program-trans | --program-tran \
1153 | --progr-tra | --program-tr | --program-t)
1154 ac_prev=program_transform_name ;;
1155 -program-transform-name=* | --program-transform-name=* \
1156 | --program-transform-nam=* | --program-transform-na=* \
1157 | --program-transform-n=* | --program-transform-=* \
1158 | --program-transform=* | --program-transfor=* \
1159 | --program-transfo=* | --program-transf=* \
1160 | --program-trans=* | --program-tran=* \
1161 | --progr-tra=* | --program-tr=* | --program-t=*)
1162 program_transform_name=$ac_optarg ;;
1164 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165 ac_prev=pdfdir ;;
1166 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167 pdfdir=$ac_optarg ;;
1169 -psdir | --psdir | --psdi | --psd | --ps)
1170 ac_prev=psdir ;;
1171 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172 psdir=$ac_optarg ;;
1174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175 | -silent | --silent | --silen | --sile | --sil)
1176 silent=yes ;;
1178 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179 ac_prev=sbindir ;;
1180 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181 | --sbi=* | --sb=*)
1182 sbindir=$ac_optarg ;;
1184 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186 | --sharedst | --shareds | --shared | --share | --shar \
1187 | --sha | --sh)
1188 ac_prev=sharedstatedir ;;
1189 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192 | --sha=* | --sh=*)
1193 sharedstatedir=$ac_optarg ;;
1195 -site | --site | --sit)
1196 ac_prev=site ;;
1197 -site=* | --site=* | --sit=*)
1198 site=$ac_optarg ;;
1200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201 ac_prev=srcdir ;;
1202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203 srcdir=$ac_optarg ;;
1205 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206 | --syscon | --sysco | --sysc | --sys | --sy)
1207 ac_prev=sysconfdir ;;
1208 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210 sysconfdir=$ac_optarg ;;
1212 -target | --target | --targe | --targ | --tar | --ta | --t)
1213 ac_prev=target_alias ;;
1214 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215 target_alias=$ac_optarg ;;
1217 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218 verbose=yes ;;
1220 -version | --version | --versio | --versi | --vers | -V)
1221 ac_init_version=: ;;
1223 -with-* | --with-*)
1224 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1227 as_fn_error $? "invalid package name: $ac_useropt"
1228 ac_useropt_orig=$ac_useropt
1229 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1232 "with_$ac_useropt"
1233 "*) ;;
1234 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep=', ';;
1236 esac
1237 eval with_$ac_useropt=\$ac_optarg ;;
1239 -without-* | --without-*)
1240 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243 as_fn_error $? "invalid package name: $ac_useropt"
1244 ac_useropt_orig=$ac_useropt
1245 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1248 "with_$ac_useropt"
1249 "*) ;;
1250 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251 ac_unrecognized_sep=', ';;
1252 esac
1253 eval with_$ac_useropt=no ;;
1255 --x)
1256 # Obsolete; use --with-x.
1257 with_x=yes ;;
1259 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1260 | --x-incl | --x-inc | --x-in | --x-i)
1261 ac_prev=x_includes ;;
1262 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1263 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1264 x_includes=$ac_optarg ;;
1266 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1267 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1268 ac_prev=x_libraries ;;
1269 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1270 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1271 x_libraries=$ac_optarg ;;
1273 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1274 Try \`$0 --help' for more information"
1277 *=*)
1278 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
1280 case $ac_envvar in #(
1281 '' | [0-9]* | *[!_$as_cr_alnum]* )
1282 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1283 esac
1284 eval $ac_envvar=\$ac_optarg
1285 export $ac_envvar ;;
1288 # FIXME: should be removed in autoconf 3.0.
1289 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1291 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1295 esac
1296 done
1298 if test -n "$ac_prev"; then
1299 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1300 as_fn_error $? "missing argument to $ac_option"
1303 if test -n "$ac_unrecognized_opts"; then
1304 case $enable_option_checking in
1305 no) ;;
1306 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1307 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1308 esac
1311 # Check all directory arguments for consistency.
1312 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313 datadir sysconfdir sharedstatedir localstatedir includedir \
1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315 libdir localedir mandir
1317 eval ac_val=\$$ac_var
1318 # Remove trailing slashes.
1319 case $ac_val in
1320 */ )
1321 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322 eval $ac_var=\$ac_val;;
1323 esac
1324 # Be sure to have absolute directory names.
1325 case $ac_val in
1326 [\\/$]* | ?:[\\/]* ) continue;;
1327 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1328 esac
1329 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1330 done
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1335 build=$build_alias
1336 host=$host_alias
1337 target=$target_alias
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x; then
1341 if test "x$build_alias" = x; then
1342 cross_compiling=maybe
1343 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1344 If a cross compiler is detected then cross compile mode will be used" >&2
1345 elif test "x$build_alias" != "x$host_alias"; then
1346 cross_compiling=yes
1350 ac_tool_prefix=
1351 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1353 test "$silent" = yes && exec 6>/dev/null
1356 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1357 ac_ls_di=`ls -di .` &&
1358 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1359 as_fn_error $? "working directory cannot be determined"
1360 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1361 as_fn_error $? "pwd does not report name of working directory"
1364 # Find the source files, if location was not specified.
1365 if test -z "$srcdir"; then
1366 ac_srcdir_defaulted=yes
1367 # Try the directory containing this script, then the parent directory.
1368 ac_confdir=`$as_dirname -- "$as_myself" ||
1369 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1370 X"$as_myself" : 'X\(//\)[^/]' \| \
1371 X"$as_myself" : 'X\(//\)$' \| \
1372 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1373 $as_echo X"$as_myself" |
1374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 s//\1/
1378 /^X\(\/\/\)[^/].*/{
1379 s//\1/
1382 /^X\(\/\/\)$/{
1383 s//\1/
1386 /^X\(\/\).*/{
1387 s//\1/
1390 s/.*/./; q'`
1391 srcdir=$ac_confdir
1392 if test ! -r "$srcdir/$ac_unique_file"; then
1393 srcdir=..
1395 else
1396 ac_srcdir_defaulted=no
1398 if test ! -r "$srcdir/$ac_unique_file"; then
1399 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1400 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1402 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1403 ac_abs_confdir=`(
1404 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1405 pwd)`
1406 # When building in place, set srcdir=.
1407 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408 srcdir=.
1410 # Remove unnecessary trailing slashes from srcdir.
1411 # Double slashes in file names in object file debugging info
1412 # mess up M-x gdb in Emacs.
1413 case $srcdir in
1414 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1415 esac
1416 for ac_var in $ac_precious_vars; do
1417 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1418 eval ac_env_${ac_var}_value=\$${ac_var}
1419 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1420 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1421 done
1424 # Report the --help message.
1426 if test "$ac_init_help" = "long"; then
1427 # Omit some internal or obsolete options to make the list less imposing.
1428 # This message is too long to be a string in the A/UX 3.1 sh.
1429 cat <<_ACEOF
1430 \`configure' configures this package to adapt to many kinds of systems.
1432 Usage: $0 [OPTION]... [VAR=VALUE]...
1434 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1435 VAR=VALUE. See below for descriptions of some of the useful variables.
1437 Defaults for the options are specified in brackets.
1439 Configuration:
1440 -h, --help display this help and exit
1441 --help=short display options specific to this package
1442 --help=recursive display the short help of all the included packages
1443 -V, --version display version information and exit
1444 -q, --quiet, --silent do not print \`checking ...' messages
1445 --cache-file=FILE cache test results in FILE [disabled]
1446 -C, --config-cache alias for \`--cache-file=config.cache'
1447 -n, --no-create do not create output files
1448 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1450 Installation directories:
1451 --prefix=PREFIX install architecture-independent files in PREFIX
1452 [$ac_default_prefix]
1453 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1454 [PREFIX]
1456 By default, \`make install' will install all the files in
1457 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1458 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1459 for instance \`--prefix=\$HOME'.
1461 For better control, use the options below.
1463 Fine tuning of the installation directories:
1464 --bindir=DIR user executables [EPREFIX/bin]
1465 --sbindir=DIR system admin executables [EPREFIX/sbin]
1466 --libexecdir=DIR program executables [EPREFIX/libexec]
1467 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1468 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1469 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1470 --libdir=DIR object code libraries [EPREFIX/lib]
1471 --includedir=DIR C header files [PREFIX/include]
1472 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1473 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1474 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1475 --infodir=DIR info documentation [DATAROOTDIR/info]
1476 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1477 --mandir=DIR man documentation [DATAROOTDIR/man]
1478 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1479 --htmldir=DIR html documentation [DOCDIR]
1480 --dvidir=DIR dvi documentation [DOCDIR]
1481 --pdfdir=DIR pdf documentation [DOCDIR]
1482 --psdir=DIR ps documentation [DOCDIR]
1483 _ACEOF
1485 cat <<\_ACEOF
1487 X features:
1488 --x-includes=DIR X include files are in DIR
1489 --x-libraries=DIR X library files are in DIR
1491 System types:
1492 --build=BUILD configure for building on BUILD [guessed]
1493 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1494 _ACEOF
1497 if test -n "$ac_init_help"; then
1499 cat <<\_ACEOF
1501 Optional Features:
1502 --disable-option-checking ignore unrecognized --enable/--with options
1503 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1504 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1505 --enable-build-type=TYPE
1506 Select the build type. Available types are:
1507 personal, nightly, snapshot, milestone, release. Do
1508 NOT use this option unless you know what you are
1509 doing! (default=personal)
1510 --enable-debug=list Enable different types of debug. Commas or
1511 whitespaces can be used to separate the items in the
1512 list. Available types of debug are: all, none,
1513 messages, stack, mungwall, modules, symbols. If no
1514 list is provided then "all" is assumed.
1515 (default=none)
1516 --enable-crosstools Build cross-compiler toolchains if necessary
1517 (default=no).
1518 --enable-distcc Use distcc as a front end to the compiler
1519 (default=no).
1520 --enable-ccache Use ccache as a front end to the compiler
1521 (default=no).
1522 --enable-target-variant=NAME
1523 Enable a specific target variant(default=none)
1524 --enable-includes=dir Alternative system include directory
1525 --enable-palm-debug-hack
1526 Enable palm debug output hack in palm native
1527 (default=no)
1528 --enable-usb30-code Enable usb3.0 code (default=no)
1529 --enable-nesting-supervisor
1530 Enable nesting supervisor support in unix
1531 (default=no)
1532 --disable-mmu Disable MMU support (default=enabled)
1533 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1534 --enable-x11-shm use X11 shared memory (default=auto)
1535 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1536 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1537 --disable-sdltest Do not try to compile and run a test SDL program
1538 --enable-dbus Enable DBUS support via dbus.library (default=no)
1540 Optional Packages:
1541 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1542 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1543 --with-gcc-version=VERSION
1544 Use host gcc-VERSION for building AROS
1545 --with-optimization=FLAGS
1546 Use optimization flags FLAGS (default=-O2).
1547 --with-paranoia=FLAGS CC flags to enable paranoia
1548 --with-xcode=PATH Specify XCode path for iOS targets
1549 (default=/Developer).
1550 --with-ios-version=VERSION
1551 Specify minimum supported iOS version (default=3.0).
1552 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1553 --with-sdk=PATH Specify Android SDK path
1554 (default=$default_android_sdk).
1555 --with-ndk=PATH Specify Android NDK path
1556 (default=$default_android_ndk).
1557 --with-android-version=VERSION
1558 Use Android platform VERSION (default=2.2).
1559 --with-crosstools=DIR Where to install or search for cross tools binaries
1560 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1561 --with-portssources=DIR Where to download sourcecode for external ports
1562 --with-bootloader=NAME Use a specific bootloader
1563 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1564 --with-theme=NAME Use a specific GUI Theme
1565 --with-resolution=XRESxYRESxDEPTH
1566 Default resolution of the initial WorkbenchScreen
1567 --with-serial-debug Enable serial debug output in native (default=no)
1568 --with-x use the X Window System
1569 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1570 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1572 Some influential environment variables:
1573 CC C compiler command
1574 CFLAGS C compiler flags
1575 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1576 nonstandard directory <lib dir>
1577 LIBS libraries to pass to the linker, e.g. -l<library>
1578 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1579 you have headers in a nonstandard directory <include dir>
1580 CPP C preprocessor
1581 XMKMF Path to xmkmf, Makefile generator for X Window System
1583 Use these variables to override the choices made by `configure' or to help
1584 it to find libraries and programs with nonstandard names/locations.
1586 Report bugs to the package provider.
1587 _ACEOF
1588 ac_status=$?
1591 if test "$ac_init_help" = "recursive"; then
1592 # If there are subdirs, report their specific --help.
1593 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594 test -d "$ac_dir" ||
1595 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1596 continue
1597 ac_builddir=.
1599 case "$ac_dir" in
1600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1602 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1603 # A ".." for each directory in $ac_dir_suffix.
1604 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1605 case $ac_top_builddir_sub in
1606 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608 esac ;;
1609 esac
1610 ac_abs_top_builddir=$ac_pwd
1611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612 # for backward compatibility:
1613 ac_top_builddir=$ac_top_build_prefix
1615 case $srcdir in
1616 .) # We are building in place.
1617 ac_srcdir=.
1618 ac_top_srcdir=$ac_top_builddir_sub
1619 ac_abs_top_srcdir=$ac_pwd ;;
1620 [\\/]* | ?:[\\/]* ) # Absolute name.
1621 ac_srcdir=$srcdir$ac_dir_suffix;
1622 ac_top_srcdir=$srcdir
1623 ac_abs_top_srcdir=$srcdir ;;
1624 *) # Relative name.
1625 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626 ac_top_srcdir=$ac_top_build_prefix$srcdir
1627 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1628 esac
1629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1631 cd "$ac_dir" || { ac_status=$?; continue; }
1632 # Check for guested configure.
1633 if test -f "$ac_srcdir/configure.gnu"; then
1634 echo &&
1635 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636 elif test -f "$ac_srcdir/configure"; then
1637 echo &&
1638 $SHELL "$ac_srcdir/configure" --help=recursive
1639 else
1640 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1641 fi || ac_status=$?
1642 cd "$ac_pwd" || { ac_status=$?; break; }
1643 done
1646 test -n "$ac_init_help" && exit $ac_status
1647 if $ac_init_version; then
1648 cat <<\_ACEOF
1649 configure
1650 generated by GNU Autoconf 2.68
1652 Copyright (C) 2010 Free Software Foundation, Inc.
1653 This configure script is free software; the Free Software Foundation
1654 gives unlimited permission to copy, distribute and modify it.
1655 _ACEOF
1656 exit
1659 ## ------------------------ ##
1660 ## Autoconf initialization. ##
1661 ## ------------------------ ##
1663 # ac_fn_c_try_compile LINENO
1664 # --------------------------
1665 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_compile ()
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 rm -f conftest.$ac_objext
1670 if { { ac_try="$ac_compile"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_compile") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && {
1686 test -z "$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 } && test -s conftest.$ac_objext; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1694 ac_retval=1
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1699 } # ac_fn_c_try_compile
1701 # ac_fn_c_try_cpp LINENO
1702 # ----------------------
1703 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704 ac_fn_c_try_cpp ()
1706 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707 if { { ac_try="$ac_cpp conftest.$ac_ext"
1708 case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1715 ac_status=$?
1716 if test -s conftest.err; then
1717 grep -v '^ *+' conftest.err >conftest.er1
1718 cat conftest.er1 >&5
1719 mv -f conftest.er1 conftest.err
1721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722 test $ac_status = 0; } > conftest.i && {
1723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724 test ! -s conftest.err
1725 }; then :
1726 ac_retval=0
1727 else
1728 $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1731 ac_retval=1
1733 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 as_fn_set_status $ac_retval
1736 } # ac_fn_c_try_cpp
1738 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1739 # -------------------------------------------------------
1740 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1741 # the include files in INCLUDES and setting the cache variable VAR
1742 # accordingly.
1743 ac_fn_c_check_header_mongrel ()
1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746 if eval \${$3+:} false; then :
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750 $as_echo_n "(cached) " >&6
1752 eval ac_res=\$$3
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 else
1756 # Is the header compilable?
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1758 $as_echo_n "checking $2 usability... " >&6; }
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h. */
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765 ac_header_compiler=yes
1766 else
1767 ac_header_compiler=no
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1771 $as_echo "$ac_header_compiler" >&6; }
1773 # Is the header present?
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1775 $as_echo_n "checking $2 presence... " >&6; }
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_cpp "$LINENO"; then :
1781 ac_header_preproc=yes
1782 else
1783 ac_header_preproc=no
1785 rm -f conftest.err conftest.i conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1787 $as_echo "$ac_header_preproc" >&6; }
1789 # So? What about this header?
1790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1791 yes:no: )
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1793 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1795 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797 no:yes:* )
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1799 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1801 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1803 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1805 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1809 esac
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \${$3+:} false; then :
1813 $as_echo_n "(cached) " >&6
1814 else
1815 eval "$3=\$ac_header_compiler"
1817 eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 } # ac_fn_c_check_header_mongrel
1825 # ac_fn_c_try_run LINENO
1826 # ----------------------
1827 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1828 # that executables *can* be run.
1829 ac_fn_c_try_run ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 if { { ac_try="$ac_link"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_link") 2>&5
1840 ac_status=$?
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1843 { { case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_try") 2>&5
1850 ac_status=$?
1851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852 test $ac_status = 0; }; }; then :
1853 ac_retval=0
1854 else
1855 $as_echo "$as_me: program exited with status $ac_status" >&5
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1859 ac_retval=$ac_status
1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 as_fn_set_status $ac_retval
1865 } # ac_fn_c_try_run
1867 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1868 # -------------------------------------------------------
1869 # Tests whether HEADER exists and can be compiled using the include files in
1870 # INCLUDES, setting the cache variable VAR accordingly.
1871 ac_fn_c_check_header_compile ()
1873 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875 $as_echo_n "checking for $2... " >&6; }
1876 if eval \${$3+:} false; then :
1877 $as_echo_n "(cached) " >&6
1878 else
1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1880 /* end confdefs.h. */
1882 #include <$2>
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 } # ac_fn_c_check_header_compile
1898 # ac_fn_c_try_link LINENO
1899 # -----------------------
1900 # Try to link conftest.$ac_ext, and return whether this succeeded.
1901 ac_fn_c_try_link ()
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 rm -f conftest.$ac_objext conftest$ac_exeext
1905 if { { ac_try="$ac_link"
1906 case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1909 esac
1910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911 $as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_link") 2>conftest.err
1913 ac_status=$?
1914 if test -s conftest.err; then
1915 grep -v '^ *+' conftest.err >conftest.er1
1916 cat conftest.er1 >&5
1917 mv -f conftest.er1 conftest.err
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } && {
1921 test -z "$ac_c_werror_flag" ||
1922 test ! -s conftest.err
1923 } && test -s conftest$ac_exeext && {
1924 test "$cross_compiling" = yes ||
1925 $as_test_x conftest$ac_exeext
1926 }; then :
1927 ac_retval=0
1928 else
1929 $as_echo "$as_me: failed program was:" >&5
1930 sed 's/^/| /' conftest.$ac_ext >&5
1932 ac_retval=1
1934 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1935 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1936 # interfere with the next link command; also delete a directory that is
1937 # left behind by Apple's compiler. We do this before executing the actions.
1938 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1939 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1940 as_fn_set_status $ac_retval
1942 } # ac_fn_c_try_link
1944 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1945 # ----------------------------------------------------
1946 # Tries to find if the field MEMBER exists in type AGGR, after including
1947 # INCLUDES, setting cache variable VAR accordingly.
1948 ac_fn_c_check_member ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1952 $as_echo_n "checking for $2.$3... " >&6; }
1953 if eval \${$4+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1960 main ()
1962 static $2 ac_aggr;
1963 if (ac_aggr.$3)
1964 return 0;
1966 return 0;
1968 _ACEOF
1969 if ac_fn_c_try_compile "$LINENO"; then :
1970 eval "$4=yes"
1971 else
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973 /* end confdefs.h. */
1976 main ()
1978 static $2 ac_aggr;
1979 if (sizeof ac_aggr.$3)
1980 return 0;
1982 return 0;
1984 _ACEOF
1985 if ac_fn_c_try_compile "$LINENO"; then :
1986 eval "$4=yes"
1987 else
1988 eval "$4=no"
1990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994 eval ac_res=\$$4
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1996 $as_echo "$ac_res" >&6; }
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 } # ac_fn_c_check_member
2001 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2002 # ---------------------------------------------
2003 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2004 # accordingly.
2005 ac_fn_c_check_decl ()
2007 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2008 as_decl_name=`echo $2|sed 's/ *(.*//'`
2009 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2011 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2012 if eval \${$3+:} false; then :
2013 $as_echo_n "(cached) " >&6
2014 else
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2019 main ()
2021 #ifndef $as_decl_name
2022 #ifdef __cplusplus
2023 (void) $as_decl_use;
2024 #else
2025 (void) $as_decl_name;
2026 #endif
2027 #endif
2030 return 0;
2032 _ACEOF
2033 if ac_fn_c_try_compile "$LINENO"; then :
2034 eval "$3=yes"
2035 else
2036 eval "$3=no"
2038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040 eval ac_res=\$$3
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2042 $as_echo "$ac_res" >&6; }
2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045 } # ac_fn_c_check_decl
2047 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2048 # -------------------------------------------
2049 # Tests whether TYPE exists after having included INCLUDES, setting cache
2050 # variable VAR accordingly.
2051 ac_fn_c_check_type ()
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2058 else
2059 eval "$3=no"
2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2061 /* end confdefs.h. */
2064 main ()
2066 if (sizeof ($2))
2067 return 0;
2069 return 0;
2071 _ACEOF
2072 if ac_fn_c_try_compile "$LINENO"; then :
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2077 main ()
2079 if (sizeof (($2)))
2080 return 0;
2082 return 0;
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"; then :
2087 else
2088 eval "$3=yes"
2090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 eval ac_res=\$$3
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2096 $as_echo "$ac_res" >&6; }
2097 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099 } # ac_fn_c_check_type
2101 # ac_fn_c_check_func LINENO FUNC VAR
2102 # ----------------------------------
2103 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2104 ac_fn_c_check_func ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110 $as_echo_n "(cached) " >&6
2111 else
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2114 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2116 #define $2 innocuous_$2
2118 /* System header to define __stub macros and hopefully few prototypes,
2119 which can conflict with char $2 (); below.
2120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2121 <limits.h> exists even on freestanding compilers. */
2123 #ifdef __STDC__
2124 # include <limits.h>
2125 #else
2126 # include <assert.h>
2127 #endif
2129 #undef $2
2131 /* Override any GCC internal prototype to avoid an error.
2132 Use char because int might match the return type of a GCC
2133 builtin and then its argument prototype would still apply. */
2134 #ifdef __cplusplus
2135 extern "C"
2136 #endif
2137 char $2 ();
2138 /* The GNU C library defines this for functions which it implements
2139 to always fail with ENOSYS. Some functions are actually named
2140 something starting with __ and the normal name is an alias. */
2141 #if defined __stub_$2 || defined __stub___$2
2142 choke me
2143 #endif
2146 main ()
2148 return $2 ();
2150 return 0;
2152 _ACEOF
2153 if ac_fn_c_try_link "$LINENO"; then :
2154 eval "$3=yes"
2155 else
2156 eval "$3=no"
2158 rm -f core conftest.err conftest.$ac_objext \
2159 conftest$ac_exeext conftest.$ac_ext
2161 eval ac_res=\$$3
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166 } # ac_fn_c_check_func
2167 cat >config.log <<_ACEOF
2168 This file contains any messages produced by compilers while
2169 running configure, to aid debugging if configure makes a mistake.
2171 It was created by $as_me, which was
2172 generated by GNU Autoconf 2.68. Invocation command line was
2174 $ $0 $@
2176 _ACEOF
2177 exec 5>>config.log
2179 cat <<_ASUNAME
2180 ## --------- ##
2181 ## Platform. ##
2182 ## --------- ##
2184 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2185 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2186 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2187 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2188 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2190 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2191 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2193 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2194 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2195 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2196 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2197 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2198 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2199 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2201 _ASUNAME
2203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 for as_dir in $PATH
2206 IFS=$as_save_IFS
2207 test -z "$as_dir" && as_dir=.
2208 $as_echo "PATH: $as_dir"
2209 done
2210 IFS=$as_save_IFS
2212 } >&5
2214 cat >&5 <<_ACEOF
2217 ## ----------- ##
2218 ## Core tests. ##
2219 ## ----------- ##
2221 _ACEOF
2224 # Keep a trace of the command line.
2225 # Strip out --no-create and --no-recursion so they do not pile up.
2226 # Strip out --silent because we don't want to record it for future runs.
2227 # Also quote any args containing shell meta-characters.
2228 # Make two passes to allow for proper duplicate-argument suppression.
2229 ac_configure_args=
2230 ac_configure_args0=
2231 ac_configure_args1=
2232 ac_must_keep_next=false
2233 for ac_pass in 1 2
2235 for ac_arg
2237 case $ac_arg in
2238 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2239 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2240 | -silent | --silent | --silen | --sile | --sil)
2241 continue ;;
2242 *\'*)
2243 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2244 esac
2245 case $ac_pass in
2246 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2248 as_fn_append ac_configure_args1 " '$ac_arg'"
2249 if test $ac_must_keep_next = true; then
2250 ac_must_keep_next=false # Got value, back to normal.
2251 else
2252 case $ac_arg in
2253 *=* | --config-cache | -C | -disable-* | --disable-* \
2254 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2255 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2256 | -with-* | --with-* | -without-* | --without-* | --x)
2257 case "$ac_configure_args0 " in
2258 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2259 esac
2261 -* ) ac_must_keep_next=true ;;
2262 esac
2264 as_fn_append ac_configure_args " '$ac_arg'"
2266 esac
2267 done
2268 done
2269 { ac_configure_args0=; unset ac_configure_args0;}
2270 { ac_configure_args1=; unset ac_configure_args1;}
2272 # When interrupted or exit'd, cleanup temporary files, and complete
2273 # config.log. We remove comments because anyway the quotes in there
2274 # would cause problems or look ugly.
2275 # WARNING: Use '\'' to represent an apostrophe within the trap.
2276 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2277 trap 'exit_status=$?
2278 # Save into config.log some information that might help in debugging.
2280 echo
2282 $as_echo "## ---------------- ##
2283 ## Cache variables. ##
2284 ## ---------------- ##"
2285 echo
2286 # The following way of writing the cache mishandles newlines in values,
2288 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2289 eval ac_val=\$$ac_var
2290 case $ac_val in #(
2291 *${as_nl}*)
2292 case $ac_var in #(
2293 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2294 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2295 esac
2296 case $ac_var in #(
2297 _ | IFS | as_nl) ;; #(
2298 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2299 *) { eval $ac_var=; unset $ac_var;} ;;
2300 esac ;;
2301 esac
2302 done
2303 (set) 2>&1 |
2304 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2305 *${as_nl}ac_space=\ *)
2306 sed -n \
2307 "s/'\''/'\''\\\\'\'''\''/g;
2308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2309 ;; #(
2311 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2313 esac |
2314 sort
2316 echo
2318 $as_echo "## ----------------- ##
2319 ## Output variables. ##
2320 ## ----------------- ##"
2321 echo
2322 for ac_var in $ac_subst_vars
2324 eval ac_val=\$$ac_var
2325 case $ac_val in
2326 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2327 esac
2328 $as_echo "$ac_var='\''$ac_val'\''"
2329 done | sort
2330 echo
2332 if test -n "$ac_subst_files"; then
2333 $as_echo "## ------------------- ##
2334 ## File substitutions. ##
2335 ## ------------------- ##"
2336 echo
2337 for ac_var in $ac_subst_files
2339 eval ac_val=\$$ac_var
2340 case $ac_val in
2341 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342 esac
2343 $as_echo "$ac_var='\''$ac_val'\''"
2344 done | sort
2345 echo
2348 if test -s confdefs.h; then
2349 $as_echo "## ----------- ##
2350 ## confdefs.h. ##
2351 ## ----------- ##"
2352 echo
2353 cat confdefs.h
2354 echo
2356 test "$ac_signal" != 0 &&
2357 $as_echo "$as_me: caught signal $ac_signal"
2358 $as_echo "$as_me: exit $exit_status"
2359 } >&5
2360 rm -f core *.core core.conftest.* &&
2361 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2362 exit $exit_status
2364 for ac_signal in 1 2 13 15; do
2365 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2366 done
2367 ac_signal=0
2369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2370 rm -f -r conftest* confdefs.h
2372 $as_echo "/* confdefs.h */" > confdefs.h
2374 # Predefined preprocessor variables.
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_NAME "$PACKAGE_NAME"
2378 _ACEOF
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2382 _ACEOF
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2386 _ACEOF
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_STRING "$PACKAGE_STRING"
2390 _ACEOF
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2394 _ACEOF
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_URL "$PACKAGE_URL"
2398 _ACEOF
2401 # Let the site file select an alternate cache file if it wants to.
2402 # Prefer an explicitly selected file to automatically selected ones.
2403 ac_site_file1=NONE
2404 ac_site_file2=NONE
2405 if test -n "$CONFIG_SITE"; then
2406 # We do not want a PATH search for config.site.
2407 case $CONFIG_SITE in #((
2408 -*) ac_site_file1=./$CONFIG_SITE;;
2409 */*) ac_site_file1=$CONFIG_SITE;;
2410 *) ac_site_file1=./$CONFIG_SITE;;
2411 esac
2412 elif test "x$prefix" != xNONE; then
2413 ac_site_file1=$prefix/share/config.site
2414 ac_site_file2=$prefix/etc/config.site
2415 else
2416 ac_site_file1=$ac_default_prefix/share/config.site
2417 ac_site_file2=$ac_default_prefix/etc/config.site
2419 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2421 test "x$ac_site_file" = xNONE && continue
2422 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2424 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2425 sed 's/^/| /' "$ac_site_file" >&5
2426 . "$ac_site_file" \
2427 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2428 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2429 as_fn_error $? "failed to load site script $ac_site_file
2430 See \`config.log' for more details" "$LINENO" 5; }
2432 done
2434 if test -r "$cache_file"; then
2435 # Some versions of bash will fail to source /dev/null (special files
2436 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2437 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2439 $as_echo "$as_me: loading cache $cache_file" >&6;}
2440 case $cache_file in
2441 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2442 *) . "./$cache_file";;
2443 esac
2445 else
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2447 $as_echo "$as_me: creating cache $cache_file" >&6;}
2448 >$cache_file
2451 as_fn_append ac_header_list " stdlib.h"
2452 as_fn_append ac_header_list " unistd.h"
2453 as_fn_append ac_header_list " sys/param.h"
2454 # Check that the precious variables saved in the cache have kept the same
2455 # value.
2456 ac_cache_corrupted=false
2457 for ac_var in $ac_precious_vars; do
2458 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2459 eval ac_new_set=\$ac_env_${ac_var}_set
2460 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2461 eval ac_new_val=\$ac_env_${ac_var}_value
2462 case $ac_old_set,$ac_new_set in
2463 set,)
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2465 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2466 ac_cache_corrupted=: ;;
2467 ,set)
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2469 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2470 ac_cache_corrupted=: ;;
2471 ,);;
2473 if test "x$ac_old_val" != "x$ac_new_val"; then
2474 # differences in whitespace do not lead to failure.
2475 ac_old_val_w=`echo x $ac_old_val`
2476 ac_new_val_w=`echo x $ac_new_val`
2477 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2479 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2480 ac_cache_corrupted=:
2481 else
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2483 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2484 eval $ac_var=\$ac_old_val
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2487 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2489 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2490 fi;;
2491 esac
2492 # Pass precious variables to config.status.
2493 if test "$ac_new_set" = set; then
2494 case $ac_new_val in
2495 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2496 *) ac_arg=$ac_var=$ac_new_val ;;
2497 esac
2498 case " $ac_configure_args " in
2499 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2500 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2501 esac
2503 done
2504 if $ac_cache_corrupted; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2506 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2508 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2509 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2511 ## -------------------- ##
2512 ## Main body of script. ##
2513 ## -------------------- ##
2515 ac_ext=c
2516 ac_cpp='$CPP $CPPFLAGS'
2517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2523 ac_aux_dir=
2524 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2525 if test -f "$ac_dir/install-sh"; then
2526 ac_aux_dir=$ac_dir
2527 ac_install_sh="$ac_aux_dir/install-sh -c"
2528 break
2529 elif test -f "$ac_dir/install.sh"; then
2530 ac_aux_dir=$ac_dir
2531 ac_install_sh="$ac_aux_dir/install.sh -c"
2532 break
2533 elif test -f "$ac_dir/shtool"; then
2534 ac_aux_dir=$ac_dir
2535 ac_install_sh="$ac_aux_dir/shtool install -c"
2536 break
2538 done
2539 if test -z "$ac_aux_dir"; then
2540 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2543 # These three variables are undocumented and unsupported,
2544 # and are intended to be withdrawn in a future Autoconf release.
2545 # They can cause serious problems if a builder's source tree is in a directory
2546 # whose full name contains unusual characters.
2547 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2548 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2549 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2553 # Check what host we are running on.
2554 # If a target is not suggested, we use this one.
2555 # Note that what we call a target, Autoconf calls a host.
2556 # Make sure we can run config.sub.
2557 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2558 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2561 $as_echo_n "checking build system type... " >&6; }
2562 if ${ac_cv_build+:} false; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 ac_build_alias=$build_alias
2566 test "x$ac_build_alias" = x &&
2567 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2568 test "x$ac_build_alias" = x &&
2569 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2570 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2571 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2575 $as_echo "$ac_cv_build" >&6; }
2576 case $ac_cv_build in
2577 *-*-*) ;;
2578 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2579 esac
2580 build=$ac_cv_build
2581 ac_save_IFS=$IFS; IFS='-'
2582 set x $ac_cv_build
2583 shift
2584 build_cpu=$1
2585 build_vendor=$2
2586 shift; shift
2587 # Remember, the first character of IFS is used to create $*,
2588 # except with old shells:
2589 build_os=$*
2590 IFS=$ac_save_IFS
2591 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2595 $as_echo_n "checking host system type... " >&6; }
2596 if ${ac_cv_host+:} false; then :
2597 $as_echo_n "(cached) " >&6
2598 else
2599 if test "x$host_alias" = x; then
2600 ac_cv_host=$ac_cv_build
2601 else
2602 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2603 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2608 $as_echo "$ac_cv_host" >&6; }
2609 case $ac_cv_host in
2610 *-*-*) ;;
2611 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2612 esac
2613 host=$ac_cv_host
2614 ac_save_IFS=$IFS; IFS='-'
2615 set x $ac_cv_host
2616 shift
2617 host_cpu=$1
2618 host_vendor=$2
2619 shift; shift
2620 # Remember, the first character of IFS is used to create $*,
2621 # except with old shells:
2622 host_os=$*
2623 IFS=$ac_save_IFS
2624 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2628 # The AROS target is slightly different to the normal GNU style
2629 # format. We don't have the middle part, and we reverse the order
2630 # of the $(CPU) and $(OS) bits.
2632 # Don't strip the version of the target yet, it might be
2633 # useful on some systems.
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2636 $as_echo_n "checking for AROS style target... " >&6; }
2638 if test "$target" = "NONE" ; then
2639 target=$host_os-$host_cpu
2640 else
2641 if test "$target" = "" ; then
2642 target=$host_os-$host_cpu
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2646 $as_echo "$target" >&6; }
2648 if test "$host_os" = "mingw32" ; then
2649 PWDCMD="pwd -W"
2652 #don't know where else to put this...
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2654 $as_echo_n "checking building AROS in... " >&6; }
2655 AROS_BUILDDIR=`${PWDCMD-pwd}`
2656 AROS_BUILDDIR_UNIX=${PWD}
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2658 $as_echo "$AROS_BUILDDIR" >&6; }
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2661 $as_echo_n "checking AROS source in... " >&6; }
2662 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2663 SRCDIR=${srcpwd}
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2665 $as_echo "$SRCDIR" >&6; }
2667 # Parse the target field into something useful.
2669 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2670 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2673 aros_default_wbwidth=800
2674 aros_default_wbheight=600
2675 aros_default_wbdepth=4
2678 # The first step is to find the host binaries.
2679 # Check for a compiler.
2680 ac_ext=c
2681 ac_cpp='$CPP $CPPFLAGS'
2682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685 if test -n "$ac_tool_prefix"; then
2686 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2687 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if ${ac_cv_prog_CC+:} false; then :
2691 $as_echo_n "(cached) " >&6
2692 else
2693 if test -n "$CC"; then
2694 ac_cv_prog_CC="$CC" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2707 done
2708 done
2709 IFS=$as_save_IFS
2713 CC=$ac_cv_prog_CC
2714 if test -n "$CC"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2716 $as_echo "$CC" >&6; }
2717 else
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2724 if test -z "$ac_cv_prog_CC"; then
2725 ac_ct_CC=$CC
2726 # Extract the first word of "gcc", so it can be a program name with args.
2727 set dummy gcc; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2731 $as_echo_n "(cached) " >&6
2732 else
2733 if test -n "$ac_ct_CC"; then
2734 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2735 else
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737 for as_dir in $PATH
2739 IFS=$as_save_IFS
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743 ac_cv_prog_ac_ct_CC="gcc"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 break 2
2747 done
2748 done
2749 IFS=$as_save_IFS
2753 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2754 if test -n "$ac_ct_CC"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2756 $as_echo "$ac_ct_CC" >&6; }
2757 else
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2762 if test "x$ac_ct_CC" = x; then
2763 CC=""
2764 else
2765 case $cross_compiling:$ac_tool_warned in
2766 yes:)
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2769 ac_tool_warned=yes ;;
2770 esac
2771 CC=$ac_ct_CC
2773 else
2774 CC="$ac_cv_prog_CC"
2777 if test -z "$CC"; then
2778 if test -n "$ac_tool_prefix"; then
2779 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2780 set dummy ${ac_tool_prefix}cc; ac_word=$2
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if ${ac_cv_prog_CC+:} false; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2792 IFS=$as_save_IFS
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2796 ac_cv_prog_CC="${ac_tool_prefix}cc"
2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2798 break 2
2800 done
2801 done
2802 IFS=$as_save_IFS
2806 CC=$ac_cv_prog_CC
2807 if test -n "$CC"; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2809 $as_echo "$CC" >&6; }
2810 else
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2818 if test -z "$CC"; then
2819 # Extract the first word of "cc", so it can be a program name with args.
2820 set dummy cc; ac_word=$2
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2822 $as_echo_n "checking for $ac_word... " >&6; }
2823 if ${ac_cv_prog_CC+:} false; then :
2824 $as_echo_n "(cached) " >&6
2825 else
2826 if test -n "$CC"; then
2827 ac_cv_prog_CC="$CC" # Let the user override the test.
2828 else
2829 ac_prog_rejected=no
2830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2831 for as_dir in $PATH
2833 IFS=$as_save_IFS
2834 test -z "$as_dir" && as_dir=.
2835 for ac_exec_ext in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2838 ac_prog_rejected=yes
2839 continue
2841 ac_cv_prog_CC="cc"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2845 done
2846 done
2847 IFS=$as_save_IFS
2849 if test $ac_prog_rejected = yes; then
2850 # We found a bogon in the path, so make sure we never use it.
2851 set dummy $ac_cv_prog_CC
2852 shift
2853 if test $# != 0; then
2854 # We chose a different compiler from the bogus one.
2855 # However, it has the same basename, so the bogon will be chosen
2856 # first if we set CC to just the basename; use the full file name.
2857 shift
2858 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2863 CC=$ac_cv_prog_CC
2864 if test -n "$CC"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2866 $as_echo "$CC" >&6; }
2867 else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2874 if test -z "$CC"; then
2875 if test -n "$ac_tool_prefix"; then
2876 for ac_prog in cl.exe
2878 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2879 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2881 $as_echo_n "checking for $ac_word... " >&6; }
2882 if ${ac_cv_prog_CC+:} false; then :
2883 $as_echo_n "(cached) " >&6
2884 else
2885 if test -n "$CC"; then
2886 ac_cv_prog_CC="$CC" # Let the user override the test.
2887 else
2888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2889 for as_dir in $PATH
2891 IFS=$as_save_IFS
2892 test -z "$as_dir" && as_dir=.
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2895 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2897 break 2
2899 done
2900 done
2901 IFS=$as_save_IFS
2905 CC=$ac_cv_prog_CC
2906 if test -n "$CC"; then
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2908 $as_echo "$CC" >&6; }
2909 else
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2911 $as_echo "no" >&6; }
2915 test -n "$CC" && break
2916 done
2918 if test -z "$CC"; then
2919 ac_ct_CC=$CC
2920 for ac_prog in cl.exe
2922 # Extract the first word of "$ac_prog", so it can be a program name with args.
2923 set dummy $ac_prog; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$ac_ct_CC"; then
2930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_ac_ct_CC="$ac_prog"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2943 done
2944 done
2945 IFS=$as_save_IFS
2949 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2950 if test -n "$ac_ct_CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2952 $as_echo "$ac_ct_CC" >&6; }
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2959 test -n "$ac_ct_CC" && break
2960 done
2962 if test "x$ac_ct_CC" = x; then
2963 CC=""
2964 else
2965 case $cross_compiling:$ac_tool_warned in
2966 yes:)
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2968 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2969 ac_tool_warned=yes ;;
2970 esac
2971 CC=$ac_ct_CC
2978 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2980 as_fn_error $? "no acceptable C compiler found in \$PATH
2981 See \`config.log' for more details" "$LINENO" 5; }
2983 # Provide some information about the compiler.
2984 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2985 set X $ac_compile
2986 ac_compiler=$2
2987 for ac_option in --version -v -V -qversion; do
2988 { { ac_try="$ac_compiler $ac_option >&5"
2989 case "(($ac_try" in
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2992 esac
2993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994 $as_echo "$ac_try_echo"; } >&5
2995 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2996 ac_status=$?
2997 if test -s conftest.err; then
2998 sed '10a\
2999 ... rest of stderr output deleted ...
3000 10q' conftest.err >conftest.er1
3001 cat conftest.er1 >&5
3003 rm -f conftest.er1 conftest.err
3004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005 test $ac_status = 0; }
3006 done
3008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3009 /* end confdefs.h. */
3012 main ()
3016 return 0;
3018 _ACEOF
3019 ac_clean_files_save=$ac_clean_files
3020 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3021 # Try to create an executable without -o first, disregard a.out.
3022 # It will help us diagnose broken compilers, and finding out an intuition
3023 # of exeext.
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3025 $as_echo_n "checking whether the C compiler works... " >&6; }
3026 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3028 # The possible output files:
3029 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3031 ac_rmfiles=
3032 for ac_file in $ac_files
3034 case $ac_file in
3035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3036 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3037 esac
3038 done
3039 rm -f $ac_rmfiles
3041 if { { ac_try="$ac_link_default"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047 $as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_link_default") 2>&5
3049 ac_status=$?
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }; then :
3052 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3053 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3054 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3055 # so that the user can short-circuit this test for compilers unknown to
3056 # Autoconf.
3057 for ac_file in $ac_files ''
3059 test -f "$ac_file" || continue
3060 case $ac_file in
3061 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3063 [ab].out )
3064 # We found the default executable, but exeext='' is most
3065 # certainly right.
3066 break;;
3067 *.* )
3068 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3069 then :; else
3070 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3072 # We set ac_cv_exeext here because the later test for it is not
3073 # safe: cross compilers may not add the suffix if given an `-o'
3074 # argument, so we may need to know it at that point already.
3075 # Even if this section looks crufty: it has the advantage of
3076 # actually working.
3077 break;;
3079 break;;
3080 esac
3081 done
3082 test "$ac_cv_exeext" = no && ac_cv_exeext=
3084 else
3085 ac_file=''
3087 if test -z "$ac_file"; then :
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3089 $as_echo "no" >&6; }
3090 $as_echo "$as_me: failed program was:" >&5
3091 sed 's/^/| /' conftest.$ac_ext >&5
3093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error 77 "C compiler cannot create executables
3096 See \`config.log' for more details" "$LINENO" 5; }
3097 else
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3099 $as_echo "yes" >&6; }
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3102 $as_echo_n "checking for C compiler default output file name... " >&6; }
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3104 $as_echo "$ac_file" >&6; }
3105 ac_exeext=$ac_cv_exeext
3107 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3108 ac_clean_files=$ac_clean_files_save
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3110 $as_echo_n "checking for suffix of executables... " >&6; }
3111 if { { ac_try="$ac_link"
3112 case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115 esac
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_link") 2>&5
3119 ac_status=$?
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; then :
3122 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3123 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3124 # work properly (i.e., refer to `conftest.exe'), while it won't with
3125 # `rm'.
3126 for ac_file in conftest.exe conftest conftest.*; do
3127 test -f "$ac_file" || continue
3128 case $ac_file in
3129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3130 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3131 break;;
3132 * ) break;;
3133 esac
3134 done
3135 else
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3139 See \`config.log' for more details" "$LINENO" 5; }
3141 rm -f conftest conftest$ac_cv_exeext
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3143 $as_echo "$ac_cv_exeext" >&6; }
3145 rm -f conftest.$ac_ext
3146 EXEEXT=$ac_cv_exeext
3147 ac_exeext=$EXEEXT
3148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3149 /* end confdefs.h. */
3150 #include <stdio.h>
3152 main ()
3154 FILE *f = fopen ("conftest.out", "w");
3155 return ferror (f) || fclose (f) != 0;
3158 return 0;
3160 _ACEOF
3161 ac_clean_files="$ac_clean_files conftest.out"
3162 # Check that the compiler produces executables we can run. If not, either
3163 # the compiler is broken, or we cross compile.
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3165 $as_echo_n "checking whether we are cross compiling... " >&6; }
3166 if test "$cross_compiling" != yes; then
3167 { { ac_try="$ac_link"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3173 $as_echo "$ac_try_echo"; } >&5
3174 (eval "$ac_link") 2>&5
3175 ac_status=$?
3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177 test $ac_status = 0; }
3178 if { ac_try='./conftest$ac_cv_exeext'
3179 { { case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182 esac
3183 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184 $as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_try") 2>&5
3186 ac_status=$?
3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3188 test $ac_status = 0; }; }; then
3189 cross_compiling=no
3190 else
3191 if test "$cross_compiling" = maybe; then
3192 cross_compiling=yes
3193 else
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error $? "cannot run C compiled programs.
3197 If you meant to cross compile, use \`--host'.
3198 See \`config.log' for more details" "$LINENO" 5; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3203 $as_echo "$cross_compiling" >&6; }
3205 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3206 ac_clean_files=$ac_clean_files_save
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3208 $as_echo_n "checking for suffix of object files... " >&6; }
3209 if ${ac_cv_objext+:} false; then :
3210 $as_echo_n "(cached) " >&6
3211 else
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3216 main ()
3220 return 0;
3222 _ACEOF
3223 rm -f conftest.o conftest.obj
3224 if { { ac_try="$ac_compile"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_compile") 2>&5
3232 ac_status=$?
3233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3234 test $ac_status = 0; }; then :
3235 for ac_file in conftest.o conftest.obj conftest.*; do
3236 test -f "$ac_file" || continue;
3237 case $ac_file in
3238 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3239 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3240 break;;
3241 esac
3242 done
3243 else
3244 $as_echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3249 as_fn_error $? "cannot compute suffix of object files: cannot compile
3250 See \`config.log' for more details" "$LINENO" 5; }
3252 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3255 $as_echo "$ac_cv_objext" >&6; }
3256 OBJEXT=$ac_cv_objext
3257 ac_objext=$OBJEXT
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3259 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3260 if ${ac_cv_c_compiler_gnu+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3264 /* end confdefs.h. */
3267 main ()
3269 #ifndef __GNUC__
3270 choke me
3271 #endif
3274 return 0;
3276 _ACEOF
3277 if ac_fn_c_try_compile "$LINENO"; then :
3278 ac_compiler_gnu=yes
3279 else
3280 ac_compiler_gnu=no
3282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3283 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3287 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3288 if test $ac_compiler_gnu = yes; then
3289 GCC=yes
3290 else
3291 GCC=
3293 ac_test_CFLAGS=${CFLAGS+set}
3294 ac_save_CFLAGS=$CFLAGS
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3296 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3297 if ${ac_cv_prog_cc_g+:} false; then :
3298 $as_echo_n "(cached) " >&6
3299 else
3300 ac_save_c_werror_flag=$ac_c_werror_flag
3301 ac_c_werror_flag=yes
3302 ac_cv_prog_cc_g=no
3303 CFLAGS="-g"
3304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3305 /* end confdefs.h. */
3308 main ()
3312 return 0;
3314 _ACEOF
3315 if ac_fn_c_try_compile "$LINENO"; then :
3316 ac_cv_prog_cc_g=yes
3317 else
3318 CFLAGS=""
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3323 main ()
3327 return 0;
3329 _ACEOF
3330 if ac_fn_c_try_compile "$LINENO"; then :
3332 else
3333 ac_c_werror_flag=$ac_save_c_werror_flag
3334 CFLAGS="-g"
3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 /* end confdefs.h. */
3339 main ()
3343 return 0;
3345 _ACEOF
3346 if ac_fn_c_try_compile "$LINENO"; then :
3347 ac_cv_prog_cc_g=yes
3349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3354 ac_c_werror_flag=$ac_save_c_werror_flag
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3357 $as_echo "$ac_cv_prog_cc_g" >&6; }
3358 if test "$ac_test_CFLAGS" = set; then
3359 CFLAGS=$ac_save_CFLAGS
3360 elif test $ac_cv_prog_cc_g = yes; then
3361 if test "$GCC" = yes; then
3362 CFLAGS="-g -O2"
3363 else
3364 CFLAGS="-g"
3366 else
3367 if test "$GCC" = yes; then
3368 CFLAGS="-O2"
3369 else
3370 CFLAGS=
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3374 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3375 if ${ac_cv_prog_cc_c89+:} false; then :
3376 $as_echo_n "(cached) " >&6
3377 else
3378 ac_cv_prog_cc_c89=no
3379 ac_save_CC=$CC
3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3381 /* end confdefs.h. */
3382 #include <stdarg.h>
3383 #include <stdio.h>
3384 #include <sys/types.h>
3385 #include <sys/stat.h>
3386 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3387 struct buf { int x; };
3388 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3389 static char *e (p, i)
3390 char **p;
3391 int i;
3393 return p[i];
3395 static char *f (char * (*g) (char **, int), char **p, ...)
3397 char *s;
3398 va_list v;
3399 va_start (v,p);
3400 s = g (p, va_arg (v,int));
3401 va_end (v);
3402 return s;
3405 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3406 function prototypes and stuff, but not '\xHH' hex character constants.
3407 These don't provoke an error unfortunately, instead are silently treated
3408 as 'x'. The following induces an error, until -std is added to get
3409 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3410 array size at least. It's necessary to write '\x00'==0 to get something
3411 that's true only with -std. */
3412 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3414 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3415 inside strings and character constants. */
3416 #define FOO(x) 'x'
3417 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3419 int test (int i, double x);
3420 struct s1 {int (*f) (int a);};
3421 struct s2 {int (*f) (double a);};
3422 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3423 int argc;
3424 char **argv;
3426 main ()
3428 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3430 return 0;
3432 _ACEOF
3433 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3434 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3436 CC="$ac_save_CC $ac_arg"
3437 if ac_fn_c_try_compile "$LINENO"; then :
3438 ac_cv_prog_cc_c89=$ac_arg
3440 rm -f core conftest.err conftest.$ac_objext
3441 test "x$ac_cv_prog_cc_c89" != "xno" && break
3442 done
3443 rm -f conftest.$ac_ext
3444 CC=$ac_save_CC
3447 # AC_CACHE_VAL
3448 case "x$ac_cv_prog_cc_c89" in
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3451 $as_echo "none needed" >&6; } ;;
3452 xno)
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3454 $as_echo "unsupported" >&6; } ;;
3456 CC="$CC $ac_cv_prog_cc_c89"
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3458 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3459 esac
3460 if test "x$ac_cv_prog_cc_c89" != xno; then :
3464 ac_ext=c
3465 ac_cpp='$CPP $CPPFLAGS'
3466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3470 case $ac_cv_prog_cc_stdc in #(
3471 no) :
3472 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3473 *) :
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3475 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3476 if ${ac_cv_prog_cc_c99+:} false; then :
3477 $as_echo_n "(cached) " >&6
3478 else
3479 ac_cv_prog_cc_c99=no
3480 ac_save_CC=$CC
3481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3482 /* end confdefs.h. */
3483 #include <stdarg.h>
3484 #include <stdbool.h>
3485 #include <stdlib.h>
3486 #include <wchar.h>
3487 #include <stdio.h>
3489 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3490 #define debug(...) fprintf (stderr, __VA_ARGS__)
3491 #define showlist(...) puts (#__VA_ARGS__)
3492 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3493 static void
3494 test_varargs_macros (void)
3496 int x = 1234;
3497 int y = 5678;
3498 debug ("Flag");
3499 debug ("X = %d\n", x);
3500 showlist (The first, second, and third items.);
3501 report (x>y, "x is %d but y is %d", x, y);
3504 // Check long long types.
3505 #define BIG64 18446744073709551615ull
3506 #define BIG32 4294967295ul
3507 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3508 #if !BIG_OK
3509 your preprocessor is broken;
3510 #endif
3511 #if BIG_OK
3512 #else
3513 your preprocessor is broken;
3514 #endif
3515 static long long int bignum = -9223372036854775807LL;
3516 static unsigned long long int ubignum = BIG64;
3518 struct incomplete_array
3520 int datasize;
3521 double data[];
3524 struct named_init {
3525 int number;
3526 const wchar_t *name;
3527 double average;
3530 typedef const char *ccp;
3532 static inline int
3533 test_restrict (ccp restrict text)
3535 // See if C++-style comments work.
3536 // Iterate through items via the restricted pointer.
3537 // Also check for declarations in for loops.
3538 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3539 continue;
3540 return 0;
3543 // Check varargs and va_copy.
3544 static void
3545 test_varargs (const char *format, ...)
3547 va_list args;
3548 va_start (args, format);
3549 va_list args_copy;
3550 va_copy (args_copy, args);
3552 const char *str;
3553 int number;
3554 float fnumber;
3556 while (*format)
3558 switch (*format++)
3560 case 's': // string
3561 str = va_arg (args_copy, const char *);
3562 break;
3563 case 'd': // int
3564 number = va_arg (args_copy, int);
3565 break;
3566 case 'f': // float
3567 fnumber = va_arg (args_copy, double);
3568 break;
3569 default:
3570 break;
3573 va_end (args_copy);
3574 va_end (args);
3578 main ()
3581 // Check bool.
3582 _Bool success = false;
3584 // Check restrict.
3585 if (test_restrict ("String literal") == 0)
3586 success = true;
3587 char *restrict newvar = "Another string";
3589 // Check varargs.
3590 test_varargs ("s, d' f .", "string", 65, 34.234);
3591 test_varargs_macros ();
3593 // Check flexible array members.
3594 struct incomplete_array *ia =
3595 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3596 ia->datasize = 10;
3597 for (int i = 0; i < ia->datasize; ++i)
3598 ia->data[i] = i * 1.234;
3600 // Check named initializers.
3601 struct named_init ni = {
3602 .number = 34,
3603 .name = L"Test wide string",
3604 .average = 543.34343,
3607 ni.number = 58;
3609 int dynamic_array[ni.number];
3610 dynamic_array[ni.number - 1] = 543;
3612 // work around unused variable warnings
3613 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3614 || dynamic_array[ni.number - 1] != 543);
3617 return 0;
3619 _ACEOF
3620 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3622 CC="$ac_save_CC $ac_arg"
3623 if ac_fn_c_try_compile "$LINENO"; then :
3624 ac_cv_prog_cc_c99=$ac_arg
3626 rm -f core conftest.err conftest.$ac_objext
3627 test "x$ac_cv_prog_cc_c99" != "xno" && break
3628 done
3629 rm -f conftest.$ac_ext
3630 CC=$ac_save_CC
3633 # AC_CACHE_VAL
3634 case "x$ac_cv_prog_cc_c99" in
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3637 $as_echo "none needed" >&6; } ;;
3638 xno)
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3640 $as_echo "unsupported" >&6; } ;;
3642 CC="$CC $ac_cv_prog_cc_c99"
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3644 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3645 esac
3646 if test "x$ac_cv_prog_cc_c99" != xno; then :
3647 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3648 else
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3650 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3651 if ${ac_cv_prog_cc_c89+:} false; then :
3652 $as_echo_n "(cached) " >&6
3653 else
3654 ac_cv_prog_cc_c89=no
3655 ac_save_CC=$CC
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3658 #include <stdarg.h>
3659 #include <stdio.h>
3660 #include <sys/types.h>
3661 #include <sys/stat.h>
3662 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3663 struct buf { int x; };
3664 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3665 static char *e (p, i)
3666 char **p;
3667 int i;
3669 return p[i];
3671 static char *f (char * (*g) (char **, int), char **p, ...)
3673 char *s;
3674 va_list v;
3675 va_start (v,p);
3676 s = g (p, va_arg (v,int));
3677 va_end (v);
3678 return s;
3681 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3682 function prototypes and stuff, but not '\xHH' hex character constants.
3683 These don't provoke an error unfortunately, instead are silently treated
3684 as 'x'. The following induces an error, until -std is added to get
3685 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3686 array size at least. It's necessary to write '\x00'==0 to get something
3687 that's true only with -std. */
3688 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3690 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3691 inside strings and character constants. */
3692 #define FOO(x) 'x'
3693 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3695 int test (int i, double x);
3696 struct s1 {int (*f) (int a);};
3697 struct s2 {int (*f) (double a);};
3698 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3699 int argc;
3700 char **argv;
3702 main ()
3704 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3706 return 0;
3708 _ACEOF
3709 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3710 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3712 CC="$ac_save_CC $ac_arg"
3713 if ac_fn_c_try_compile "$LINENO"; then :
3714 ac_cv_prog_cc_c89=$ac_arg
3716 rm -f core conftest.err conftest.$ac_objext
3717 test "x$ac_cv_prog_cc_c89" != "xno" && break
3718 done
3719 rm -f conftest.$ac_ext
3720 CC=$ac_save_CC
3723 # AC_CACHE_VAL
3724 case "x$ac_cv_prog_cc_c89" in
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3727 $as_echo "none needed" >&6; } ;;
3728 xno)
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3730 $as_echo "unsupported" >&6; } ;;
3732 CC="$CC $ac_cv_prog_cc_c89"
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3734 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3735 esac
3736 if test "x$ac_cv_prog_cc_c89" != xno; then :
3737 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3738 else
3739 ac_cv_prog_cc_stdc=no
3744 esac
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3746 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3747 if ${ac_cv_prog_cc_stdc+:} false; then :
3748 $as_echo_n "(cached) " >&6
3751 case $ac_cv_prog_cc_stdc in #(
3752 no) :
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3754 $as_echo "unsupported" >&6; } ;; #(
3755 '') :
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3757 $as_echo "none needed" >&6; } ;; #(
3758 *) :
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3760 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3761 esac
3763 ac_ext=c
3764 ac_cpp='$CPP $CPPFLAGS'
3765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3769 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3770 # On Suns, sometimes $CPP names a directory.
3771 if test -n "$CPP" && test -d "$CPP"; then
3772 CPP=
3774 if test -z "$CPP"; then
3775 if ${ac_cv_prog_CPP+:} false; then :
3776 $as_echo_n "(cached) " >&6
3777 else
3778 # Double quotes because CPP needs to be expanded
3779 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3781 ac_preproc_ok=false
3782 for ac_c_preproc_warn_flag in '' yes
3784 # Use a header file that comes with gcc, so configuring glibc
3785 # with a fresh cross-compiler works.
3786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3787 # <limits.h> exists even on freestanding compilers.
3788 # On the NeXT, cc -E runs the code through the compiler's parser,
3789 # not just through cpp. "Syntax error" is here to catch this case.
3790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3791 /* end confdefs.h. */
3792 #ifdef __STDC__
3793 # include <limits.h>
3794 #else
3795 # include <assert.h>
3796 #endif
3797 Syntax error
3798 _ACEOF
3799 if ac_fn_c_try_cpp "$LINENO"; then :
3801 else
3802 # Broken: fails on valid input.
3803 continue
3805 rm -f conftest.err conftest.i conftest.$ac_ext
3807 # OK, works on sane cases. Now check whether nonexistent headers
3808 # can be detected and how.
3809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3810 /* end confdefs.h. */
3811 #include <ac_nonexistent.h>
3812 _ACEOF
3813 if ac_fn_c_try_cpp "$LINENO"; then :
3814 # Broken: success on invalid input.
3815 continue
3816 else
3817 # Passes both tests.
3818 ac_preproc_ok=:
3819 break
3821 rm -f conftest.err conftest.i conftest.$ac_ext
3823 done
3824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3825 rm -f conftest.i conftest.err conftest.$ac_ext
3826 if $ac_preproc_ok; then :
3827 break
3830 done
3831 ac_cv_prog_CPP=$CPP
3834 CPP=$ac_cv_prog_CPP
3835 else
3836 ac_cv_prog_CPP=$CPP
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3839 $as_echo "$CPP" >&6; }
3840 ac_preproc_ok=false
3841 for ac_c_preproc_warn_flag in '' yes
3843 # Use a header file that comes with gcc, so configuring glibc
3844 # with a fresh cross-compiler works.
3845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3846 # <limits.h> exists even on freestanding compilers.
3847 # On the NeXT, cc -E runs the code through the compiler's parser,
3848 # not just through cpp. "Syntax error" is here to catch this case.
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3851 #ifdef __STDC__
3852 # include <limits.h>
3853 #else
3854 # include <assert.h>
3855 #endif
3856 Syntax error
3857 _ACEOF
3858 if ac_fn_c_try_cpp "$LINENO"; then :
3860 else
3861 # Broken: fails on valid input.
3862 continue
3864 rm -f conftest.err conftest.i conftest.$ac_ext
3866 # OK, works on sane cases. Now check whether nonexistent headers
3867 # can be detected and how.
3868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869 /* end confdefs.h. */
3870 #include <ac_nonexistent.h>
3871 _ACEOF
3872 if ac_fn_c_try_cpp "$LINENO"; then :
3873 # Broken: success on invalid input.
3874 continue
3875 else
3876 # Passes both tests.
3877 ac_preproc_ok=:
3878 break
3880 rm -f conftest.err conftest.i conftest.$ac_ext
3882 done
3883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3884 rm -f conftest.i conftest.err conftest.$ac_ext
3885 if $ac_preproc_ok; then :
3887 else
3888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3890 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3891 See \`config.log' for more details" "$LINENO" 5; }
3894 ac_ext=c
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901 # Check for a compatible awk
3902 for ac_prog in gawk nawk
3904 # Extract the first word of "$ac_prog", so it can be a program name with args.
3905 set dummy $ac_prog; ac_word=$2
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3907 $as_echo_n "checking for $ac_word... " >&6; }
3908 if ${ac_cv_prog_AWK+:} false; then :
3909 $as_echo_n "(cached) " >&6
3910 else
3911 if test -n "$AWK"; then
3912 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3913 else
3914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 for as_dir in $PATH
3917 IFS=$as_save_IFS
3918 test -z "$as_dir" && as_dir=.
3919 for ac_exec_ext in '' $ac_executable_extensions; do
3920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3921 ac_cv_prog_AWK="$ac_prog"
3922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3923 break 2
3925 done
3926 done
3927 IFS=$as_save_IFS
3931 AWK=$ac_cv_prog_AWK
3932 if test -n "$AWK"; then
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3934 $as_echo "$AWK" >&6; }
3935 else
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3941 test -n "$AWK" && break
3942 done
3944 if test "$AWK" = ""; then
3945 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3947 # Extract the first word of "mmake", so it can be a program name with args.
3948 set dummy mmake; ac_word=$2
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3950 $as_echo_n "checking for $ac_word... " >&6; }
3951 if ${ac_cv_prog_MMAKE+:} false; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 if test -n "$MMAKE"; then
3955 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3956 else
3957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3958 for as_dir in $PATH
3960 IFS=$as_save_IFS
3961 test -z "$as_dir" && as_dir=.
3962 for ac_exec_ext in '' $ac_executable_extensions; do
3963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3964 ac_cv_prog_MMAKE="mmake "
3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3966 break 2
3968 done
3969 done
3970 IFS=$as_save_IFS
3974 MMAKE=$ac_cv_prog_MMAKE
3975 if test -n "$MMAKE"; then
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3977 $as_echo "$MMAKE" >&6; }
3978 else
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3980 $as_echo "no" >&6; }
3985 # Perform some default variable assignments. Note all of these will be
3986 # Regenerated from the script, so there is no need to cache them.
3988 aros_host_cc="$CC"
3989 if test "$GCC" = "yes"; then
3990 aros_gcc_ld=`$CC -print-prog-name=ld`
3991 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3992 set dummy `basename $aros_gcc_ld`; ac_word=$2
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3994 $as_echo_n "checking for $ac_word... " >&6; }
3995 if ${ac_cv_path_aros_host_ld+:} false; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 case $aros_host_ld in
3999 [\\/]* | ?:[\\/]*)
4000 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004 for as_dir in `dirname $aros_gcc_ld`
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
4009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4010 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 break 2
4014 done
4015 done
4016 IFS=$as_save_IFS
4019 esac
4021 aros_host_ld=$ac_cv_path_aros_host_ld
4022 if test -n "$aros_host_ld"; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4024 $as_echo "$aros_host_ld" >&6; }
4025 else
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027 $as_echo "no" >&6; }
4032 if test "$aros_host_ld" = ""; then
4033 # Extract the first word of "ld", so it can be a program name with args.
4034 set dummy ld; ac_word=$2
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 $as_echo_n "checking for $ac_word... " >&6; }
4037 if ${ac_cv_path_aros_host_ld+:} false; then :
4038 $as_echo_n "(cached) " >&6
4039 else
4040 case $aros_host_ld in
4041 [\\/]* | ?:[\\/]*)
4042 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4046 for as_dir in $PATH
4048 IFS=$as_save_IFS
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 break 2
4056 done
4057 done
4058 IFS=$as_save_IFS
4061 esac
4063 aros_host_ld=$ac_cv_path_aros_host_ld
4064 if test -n "$aros_host_ld"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4066 $as_echo "$aros_host_ld" >&6; }
4067 else
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4074 if test "$aros_host_ld" = ""; then
4075 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4077 aros_host_make="make"
4078 aros_host_cflags=$CFLAGS
4079 aros_host_ldflags=$LDFLAGS
4080 aros_host_debug="-g -O0"
4081 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4082 aros_host_mkargs="--no-print-directory"
4083 aros_host_incl="/usr/include"
4084 aros_host_exe_suffix="$EXEEXT"
4085 aros_host_lib_suffix=""
4087 for ac_prog in aclocal aclocal19 aclocal-1.9
4089 # Extract the first word of "$ac_prog", so it can be a program name with args.
4090 set dummy $ac_prog; ac_word=$2
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4092 $as_echo_n "checking for $ac_word... " >&6; }
4093 if ${ac_cv_prog_aros_host_aclocal+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 if test -n "$aros_host_aclocal"; then
4097 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4098 else
4099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 for as_dir in $PATH
4102 IFS=$as_save_IFS
4103 test -z "$as_dir" && as_dir=.
4104 for ac_exec_ext in '' $ac_executable_extensions; do
4105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4106 ac_cv_prog_aros_host_aclocal="$ac_prog"
4107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 break 2
4110 done
4111 done
4112 IFS=$as_save_IFS
4116 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4117 if test -n "$aros_host_aclocal"; then
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4119 $as_echo "$aros_host_aclocal" >&6; }
4120 else
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4122 $as_echo "no" >&6; }
4126 test -n "$aros_host_aclocal" && break
4127 done
4129 for ac_prog in autoconf autoconf259 autoconf253
4131 # Extract the first word of "$ac_prog", so it can be a program name with args.
4132 set dummy $ac_prog; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if ${ac_cv_prog_aros_host_autoconf+:} false; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 if test -n "$aros_host_autoconf"; then
4139 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4140 else
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4144 IFS=$as_save_IFS
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4148 ac_cv_prog_aros_host_autoconf="$ac_prog"
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 break 2
4152 done
4153 done
4154 IFS=$as_save_IFS
4158 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4159 if test -n "$aros_host_autoconf"; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4161 $as_echo "$aros_host_autoconf" >&6; }
4162 else
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4168 test -n "$aros_host_autoconf" && break
4169 done
4171 for ac_prog in autoheader autoheader259 autoheader253
4173 # Extract the first word of "$ac_prog", so it can be a program name with args.
4174 set dummy $ac_prog; ac_word=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if ${ac_cv_prog_aros_host_autoheader+:} false; then :
4178 $as_echo_n "(cached) " >&6
4179 else
4180 if test -n "$aros_host_autoheader"; then
4181 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4182 else
4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 for as_dir in $PATH
4186 IFS=$as_save_IFS
4187 test -z "$as_dir" && as_dir=.
4188 for ac_exec_ext in '' $ac_executable_extensions; do
4189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4190 ac_cv_prog_aros_host_autoheader="$ac_prog"
4191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 break 2
4194 done
4195 done
4196 IFS=$as_save_IFS
4200 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4201 if test -n "$aros_host_autoheader"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4203 $as_echo "$aros_host_autoheader" >&6; }
4204 else
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4210 test -n "$aros_host_autoheader" && break
4211 done
4213 for ac_prog in automake automake19 automake-1.9
4215 # Extract the first word of "$ac_prog", so it can be a program name with args.
4216 set dummy $ac_prog; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_aros_host_automake+:} false; then :
4220 $as_echo_n "(cached) " >&6
4221 else
4222 if test -n "$aros_host_automake"; then
4223 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232 ac_cv_prog_aros_host_automake="$ac_prog"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 break 2
4236 done
4237 done
4238 IFS=$as_save_IFS
4242 aros_host_automake=$ac_cv_prog_aros_host_automake
4243 if test -n "$aros_host_automake"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4245 $as_echo "$aros_host_automake" >&6; }
4246 else
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4252 test -n "$aros_host_automake" && break
4253 done
4256 if test "$aros_host_aclocal" = ""; then
4257 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4259 if test "$aros_host_automake" = ""; then
4260 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4263 case "$aros_host_cc" in
4264 *gcc*)
4265 aros_host_cc_pipe="-pipe"
4267 icc)
4268 aros_host_cc_pipe=""
4271 aros_host_cc_pipe=""
4273 esac
4275 aros_kernel_cc_includes=""
4276 aros_target_cc_includes=""
4278 # ----------------------------------------------------------------------------------------
4279 # Host-specific defaults
4281 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4282 # instead of a wrapper script.
4283 # Useful for non-ELF hosts (like Windows and Darwin).
4284 # Can also be overriden in target section below
4285 use_aros_gcc="no"
4287 # This is the main host configuration section. It is where the host
4288 # can change the values of any variables it needs to change. We do
4289 # not look at anything that compiles to the target yet, we'll get
4290 # to that later.
4292 case "$host_os" in
4293 aros*)
4294 aros_host_arch="aros"
4295 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4296 case "$host_cpu" in
4297 *i?86*)
4298 aros_host_cpu="i386"
4300 *x86_64*)
4301 aros_host_cpu="x86_64"
4303 *powerpc*)
4304 aros_host_cpu="ppc"
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4308 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4309 aros_host_cpu="$host_cpu"
4311 esac
4314 linux*)
4315 aros_host_arch="linux"
4316 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4317 case "$host_cpu" in
4318 *i?86*)
4319 aros_host_cpu="i386"
4321 *x86_64*)
4322 aros_host_cpu="x86_64"
4324 *m68k*)
4325 aros_host_cpu="m68k"
4327 *powerpc*)
4328 aros_host_cpu="ppc"
4330 *arm*)
4331 aros_host_cpu="arm"
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4335 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4336 aros_host_cpu="$host_cpu"
4338 esac
4341 freebsd*)
4342 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4343 aros_host_make="gmake"
4344 aros_host_arch="freebsd"
4345 aros_host_cpu="i386"
4347 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4349 case $host_os in
4350 freebsd[234]*)
4351 aros_object_format="elf_i386"
4355 aros_object_format="elf_i386_fbsd"
4357 esac
4361 darwin*)
4362 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4363 aros_host_arch="darwin"
4364 use_aros_gcc="yes"
4365 android_build_os="darwin-x86"
4366 android_tool="android"
4367 default_android_sdk="/android-sdk-mac_x86"
4368 default_android_ndk="/android-ndk-r5b"
4369 case "$host_cpu" in
4370 *i?86*)
4371 aros_host_cpu="i386"
4373 *x86_64*)
4374 aros_host_cpu="x86_64"
4376 *powerpc*)
4377 aros_host_cpu="ppc"
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4381 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4382 aros_host_cpu="$host_cpu"
4384 esac
4386 aros_host_ldflags="$aros_host_ldflags -liconv"
4390 dragonfly*)
4391 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4392 aros_host_make="gmake"
4393 aros_host_arch="dragonfly"
4394 case $host_cpu in
4395 *i?86*)
4396 aros_host_cpu="i386"
4398 *amd64*)
4399 aros_host_cpu="x86_64"
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4403 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4404 aros_host_cpu="$host_cpu"
4406 esac
4409 netbsd*)
4410 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4411 aros_host_make="gmake"
4412 aros_host_arch="netbsd"
4413 case "$host_cpu" in
4414 *i?86*)
4415 aros_host_cpu="i386"
4417 *m68k*)
4418 aros_host_cpu="m68k"
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4422 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4423 aros_host_cpu="$host_cpu"
4425 esac
4426 aros_host_lib_suffix=".0.0"
4429 openbsd*)
4430 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4431 aros_host_make="gmake"
4432 aros_host_arch="openbsd"
4433 case "$host_cpu" in
4434 *i?86*)
4435 aros_host_cpu="i386"
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4439 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4440 aros_host_cpu="$host_cpu"
4442 esac
4445 solaris*)
4446 aros_host_arch="solaris"
4447 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4448 case "$host_cpu" in
4449 *i?86*)
4450 aros_host_cpu="i386"
4452 *sparc*)
4453 aros_host_cpu="sparc"
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4457 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4458 aros_host_cpu="$host_cpu"
4460 esac
4463 morphos*)
4464 aros_host_arch="morphos"
4465 aros_host_cpu="ppc"
4468 amiga*)
4469 aros_host_arch="amiga"
4470 SORT="/gg/bin/sort"
4471 TEST="/gg/bin/test"
4472 UNIQ="/gg/bin/uniq"
4473 FOR="for"
4474 TOUCH="/gg/bin/touch"
4475 case "$host_cpu" in
4476 *m68k*)
4477 aros_host_cpu="m68k"
4479 *powerpc*)
4480 aros_host_cpu="ppc"
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4484 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4485 aros_host_cpu="$host_cpu"
4487 esac
4490 cygwin*)
4491 aros_host_arch="cygwin"
4492 use_aros_gcc="yes"
4493 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4494 android_build_os="windows"
4495 android_tool="android.bat"
4496 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4498 case "$host_cpu" in
4499 *i?86*)
4500 aros_host_cpu="i386"
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4504 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4505 aros_host_cpu="$host_cpu"
4507 esac
4510 mingw32*)
4511 aros_host_arch="mingw32"
4512 use_aros_gcc="yes"
4513 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4514 android_build_os="windows"
4515 android_tool="android.bat"
4516 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4518 case "$host_cpu" in
4519 *i?86*)
4520 aros_host_cpu="i386"
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4524 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4525 aros_host_cpu="$host_cpu"
4527 esac
4530 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4532 esac
4534 # Extract the first word of "ar", so it can be a program name with args.
4535 set dummy ar; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if ${ac_cv_prog_aros_host_ar+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -n "$aros_host_ar"; then
4542 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4551 ac_cv_prog_aros_host_ar="ar cr"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4555 done
4556 done
4557 IFS=$as_save_IFS
4561 aros_host_ar=$ac_cv_prog_aros_host_ar
4562 if test -n "$aros_host_ar"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4564 $as_echo "$aros_host_ar" >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4571 if test "$aros_host_ar" = ""; then
4572 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4574 # Extract the first word of "ranlib", so it can be a program name with args.
4575 set dummy ranlib; ac_word=$2
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4577 $as_echo_n "checking for $ac_word... " >&6; }
4578 if ${ac_cv_prog_aros_host_ranlib+:} false; then :
4579 $as_echo_n "(cached) " >&6
4580 else
4581 if test -n "$aros_host_ranlib"; then
4582 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4583 else
4584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 for as_dir in $PATH
4587 IFS=$as_save_IFS
4588 test -z "$as_dir" && as_dir=.
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4591 ac_cv_prog_aros_host_ranlib="ranlib "
4592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4593 break 2
4595 done
4596 done
4597 IFS=$as_save_IFS
4601 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4602 if test -n "$aros_host_ranlib"; then
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4604 $as_echo "$aros_host_ranlib" >&6; }
4605 else
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4607 $as_echo "no" >&6; }
4611 if test "$aros_host_ranlib" = ""; then
4612 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4614 # Extract the first word of "strip", so it can be a program name with args.
4615 set dummy strip; ac_word=$2
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4617 $as_echo_n "checking for $ac_word... " >&6; }
4618 if ${ac_cv_prog_aros_host_strip+:} false; then :
4619 $as_echo_n "(cached) " >&6
4620 else
4621 if test -n "$aros_host_strip"; then
4622 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 for ac_exec_ext in '' $ac_executable_extensions; do
4630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4631 ac_cv_prog_aros_host_strip="strip "
4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4633 break 2
4635 done
4636 done
4637 IFS=$as_save_IFS
4641 aros_host_strip=$ac_cv_prog_aros_host_strip
4642 if test -n "$aros_host_strip"; then
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4644 $as_echo "$aros_host_strip" >&6; }
4645 else
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4647 $as_echo "no" >&6; }
4651 if test "$aros_host_strip" = ""; then
4652 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4655 # Extract the first word of "rm", so it can be a program name with args.
4656 set dummy rm; ac_word=$2
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4658 $as_echo_n "checking for $ac_word... " >&6; }
4659 if ${ac_cv_prog_RM+:} false; then :
4660 $as_echo_n "(cached) " >&6
4661 else
4662 if test -n "$RM"; then
4663 ac_cv_prog_RM="$RM" # Let the user override the test.
4664 else
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 for as_dir in $PATH
4668 IFS=$as_save_IFS
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4672 ac_cv_prog_RM="rm -rf"
4673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4674 break 2
4676 done
4677 done
4678 IFS=$as_save_IFS
4682 RM=$ac_cv_prog_RM
4683 if test -n "$RM"; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4685 $as_echo "$RM" >&6; }
4686 else
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688 $as_echo "no" >&6; }
4692 if test "$RM" = ""; then
4693 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4695 # Extract the first word of "cp", so it can be a program name with args.
4696 set dummy cp; ac_word=$2
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4698 $as_echo_n "checking for $ac_word... " >&6; }
4699 if ${ac_cv_prog_CP+:} false; then :
4700 $as_echo_n "(cached) " >&6
4701 else
4702 if test -n "$CP"; then
4703 ac_cv_prog_CP="$CP" # Let the user override the test.
4704 else
4705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 for as_dir in $PATH
4708 IFS=$as_save_IFS
4709 test -z "$as_dir" && as_dir=.
4710 for ac_exec_ext in '' $ac_executable_extensions; do
4711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4712 ac_cv_prog_CP="cp "
4713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4714 break 2
4716 done
4717 done
4718 IFS=$as_save_IFS
4722 CP=$ac_cv_prog_CP
4723 if test -n "$CP"; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4725 $as_echo "$CP" >&6; }
4726 else
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728 $as_echo "no" >&6; }
4732 if test "$CP" = ""; then
4733 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4735 # Extract the first word of "mv", so it can be a program name with args.
4736 set dummy mv; ac_word=$2
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4738 $as_echo_n "checking for $ac_word... " >&6; }
4739 if ${ac_cv_prog_MV+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if test -n "$MV"; then
4743 ac_cv_prog_MV="$MV" # Let the user override the test.
4744 else
4745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4746 for as_dir in $PATH
4748 IFS=$as_save_IFS
4749 test -z "$as_dir" && as_dir=.
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4752 ac_cv_prog_MV="mv "
4753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4754 break 2
4756 done
4757 done
4758 IFS=$as_save_IFS
4762 MV=$ac_cv_prog_MV
4763 if test -n "$MV"; then
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4765 $as_echo "$MV" >&6; }
4766 else
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4768 $as_echo "no" >&6; }
4772 if test "$MV" = ""; then
4773 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4775 # Extract the first word of "echo", so it can be a program name with args.
4776 set dummy echo; ac_word=$2
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4778 $as_echo_n "checking for $ac_word... " >&6; }
4779 if ${ac_cv_prog_ECHO+:} false; then :
4780 $as_echo_n "(cached) " >&6
4781 else
4782 if test -n "$ECHO"; then
4783 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_ECHO="echo "
4793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4796 done
4797 done
4798 IFS=$as_save_IFS
4802 ECHO=$ac_cv_prog_ECHO
4803 if test -n "$ECHO"; then
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4805 $as_echo "$ECHO" >&6; }
4806 else
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4808 $as_echo "no" >&6; }
4812 if test "$ECHO" = ""; then
4813 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4815 # Extract the first word of "mkdir", so it can be a program name with args.
4816 set dummy mkdir; ac_word=$2
4817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4818 $as_echo_n "checking for $ac_word... " >&6; }
4819 if ${ac_cv_prog_MKDIR+:} false; then :
4820 $as_echo_n "(cached) " >&6
4821 else
4822 if test -n "$MKDIR"; then
4823 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4824 else
4825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826 for as_dir in $PATH
4828 IFS=$as_save_IFS
4829 test -z "$as_dir" && as_dir=.
4830 for ac_exec_ext in '' $ac_executable_extensions; do
4831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4832 ac_cv_prog_MKDIR="mkdir -p"
4833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4834 break 2
4836 done
4837 done
4838 IFS=$as_save_IFS
4842 MKDIR=$ac_cv_prog_MKDIR
4843 if test -n "$MKDIR"; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4845 $as_echo "$MKDIR" >&6; }
4846 else
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4848 $as_echo "no" >&6; }
4852 if test "$MKDIR" = ""; then
4853 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4855 # Extract the first word of "touch", so it can be a program name with args.
4856 set dummy touch; ac_word=$2
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4858 $as_echo_n "checking for $ac_word... " >&6; }
4859 if ${ac_cv_prog_TOUCH+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 if test -n "$TOUCH"; then
4863 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4868 IFS=$as_save_IFS
4869 test -z "$as_dir" && as_dir=.
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4872 ac_cv_prog_TOUCH="touch "
4873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4874 break 2
4876 done
4877 done
4878 IFS=$as_save_IFS
4882 TOUCH=$ac_cv_prog_TOUCH
4883 if test -n "$TOUCH"; then
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4885 $as_echo "$TOUCH" >&6; }
4886 else
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4888 $as_echo "no" >&6; }
4892 if test "$TOUCH" = ""; then
4893 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4895 # Extract the first word of "sort", so it can be a program name with args.
4896 set dummy sort; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if ${ac_cv_prog_SORT+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 if test -n "$SORT"; then
4903 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4904 else
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_SORT="sort "
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4914 break 2
4916 done
4917 done
4918 IFS=$as_save_IFS
4922 SORT=$ac_cv_prog_SORT
4923 if test -n "$SORT"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4925 $as_echo "$SORT" >&6; }
4926 else
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4932 if test "$SORT" = ""; then
4933 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4935 # Extract the first word of "uniq", so it can be a program name with args.
4936 set dummy uniq; ac_word=$2
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4938 $as_echo_n "checking for $ac_word... " >&6; }
4939 if ${ac_cv_prog_UNIQ+:} false; then :
4940 $as_echo_n "(cached) " >&6
4941 else
4942 if test -n "$UNIQ"; then
4943 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4948 IFS=$as_save_IFS
4949 test -z "$as_dir" && as_dir=.
4950 for ac_exec_ext in '' $ac_executable_extensions; do
4951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952 ac_cv_prog_UNIQ="uniq "
4953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4954 break 2
4956 done
4957 done
4958 IFS=$as_save_IFS
4962 UNIQ=$ac_cv_prog_UNIQ
4963 if test -n "$UNIQ"; then
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4965 $as_echo "$UNIQ" >&6; }
4966 else
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4972 if test "$UNIQ" = ""; then
4973 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4975 # Extract the first word of "true", so it can be a program name with args.
4976 set dummy true; ac_word=$2
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4978 $as_echo_n "checking for $ac_word... " >&6; }
4979 if ${ac_cv_prog_NOP+:} false; then :
4980 $as_echo_n "(cached) " >&6
4981 else
4982 if test -n "$NOP"; then
4983 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4984 else
4985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4986 for as_dir in $PATH
4988 IFS=$as_save_IFS
4989 test -z "$as_dir" && as_dir=.
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4992 ac_cv_prog_NOP="true "
4993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4994 break 2
4996 done
4997 done
4998 IFS=$as_save_IFS
5002 NOP=$ac_cv_prog_NOP
5003 if test -n "$NOP"; then
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
5005 $as_echo "$NOP" >&6; }
5006 else
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5008 $as_echo "no" >&6; }
5012 if test "$NOP" = ""; then
5013 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5015 # Extract the first word of "cat", so it can be a program name with args.
5016 set dummy cat; ac_word=$2
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 $as_echo_n "checking for $ac_word... " >&6; }
5019 if ${ac_cv_prog_CAT+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 if test -n "$CAT"; then
5023 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5024 else
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5028 IFS=$as_save_IFS
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5032 ac_cv_prog_CAT="cat "
5033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034 break 2
5036 done
5037 done
5038 IFS=$as_save_IFS
5042 CAT=$ac_cv_prog_CAT
5043 if test -n "$CAT"; then
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5045 $as_echo "$CAT" >&6; }
5046 else
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5048 $as_echo "no" >&6; }
5052 if test "$CAT" = ""; then
5053 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5055 # Extract the first word of "bison", so it can be a program name with args.
5056 set dummy bison; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if ${ac_cv_prog_BISON+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -n "$BISON"; then
5063 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5072 ac_cv_prog_BISON="bison "
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5076 done
5077 done
5078 IFS=$as_save_IFS
5082 BISON=$ac_cv_prog_BISON
5083 if test -n "$BISON"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5085 $as_echo "$BISON" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5092 if test "$BISON" = ""; then
5093 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5095 # Extract the first word of "flex", so it can be a program name with args.
5096 set dummy flex; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_prog_FLEX+:} false; then :
5100 $as_echo_n "(cached) " >&6
5101 else
5102 if test -n "$FLEX"; then
5103 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5104 else
5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106 for as_dir in $PATH
5108 IFS=$as_save_IFS
5109 test -z "$as_dir" && as_dir=.
5110 for ac_exec_ext in '' $ac_executable_extensions; do
5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5112 ac_cv_prog_FLEX="flex "
5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 break 2
5116 done
5117 done
5118 IFS=$as_save_IFS
5122 FLEX=$ac_cv_prog_FLEX
5123 if test -n "$FLEX"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5125 $as_echo "$FLEX" >&6; }
5126 else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5128 $as_echo "no" >&6; }
5132 if test "$FLEX" = ""; then
5133 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5135 # Extract the first word of "pngtopnm", so it can be a program name with args.
5136 set dummy pngtopnm; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_prog_PNGTOPNM+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -n "$PNGTOPNM"; then
5143 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_PNGTOPNM="pngtopnm "
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5156 done
5157 done
5158 IFS=$as_save_IFS
5162 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5163 if test -n "$PNGTOPNM"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5165 $as_echo "$PNGTOPNM" >&6; }
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5172 if test "$PNGTOPNM" = ""; then
5173 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5175 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5176 set dummy ppmtoilbm; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_PPMTOILBM+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if test -n "$PPMTOILBM"; then
5183 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5196 done
5197 done
5198 IFS=$as_save_IFS
5202 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5203 if test -n "$PPMTOILBM"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5205 $as_echo "$PPMTOILBM" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5212 if test "$PPMTOILBM" = ""; then
5213 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5215 # Extract the first word of "sed", so it can be a program name with args.
5216 set dummy sed; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if ${ac_cv_prog_SED+:} false; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if test -n "$SED"; then
5223 ac_cv_prog_SED="$SED" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232 ac_cv_prog_SED="sed "
5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5236 done
5237 done
5238 IFS=$as_save_IFS
5242 SED=$ac_cv_prog_SED
5243 if test -n "$SED"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5245 $as_echo "$SED" >&6; }
5246 else
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5252 if test "$SED" = ""; then
5253 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5255 # Extract the first word of "chmod", so it can be a program name with args.
5256 set dummy chmod; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_CHMOD+:} false; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 if test -n "$CHMOD"; then
5263 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5264 else
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5266 for as_dir in $PATH
5268 IFS=$as_save_IFS
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5272 ac_cv_prog_CHMOD="chmod "
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 break 2
5276 done
5277 done
5278 IFS=$as_save_IFS
5282 CHMOD=$ac_cv_prog_CHMOD
5283 if test -n "$CHMOD"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5285 $as_echo "$CHMOD" >&6; }
5286 else
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5292 if test "$CHMOD" = ""; then
5293 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5295 # Extract the first word of "patch", so it can be a program name with args.
5296 set dummy patch; ac_word=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if ${ac_cv_prog_PATCH+:} false; then :
5300 $as_echo_n "(cached) " >&6
5301 else
5302 if test -n "$PATCH"; then
5303 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5304 else
5305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5306 for as_dir in $PATH
5308 IFS=$as_save_IFS
5309 test -z "$as_dir" && as_dir=.
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5312 ac_cv_prog_PATCH="patch "
5313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5314 break 2
5316 done
5317 done
5318 IFS=$as_save_IFS
5322 PATCH=$ac_cv_prog_PATCH
5323 if test -n "$PATCH"; then
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5325 $as_echo "$PATCH" >&6; }
5326 else
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5332 if test "$PATCH" = ""; then
5333 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5340 if test -n "$PYTHON"; then
5341 # If the user set $PYTHON, use it and don't search something else.
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5343 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5344 prog="import sys, string
5345 # split strings by '.' and convert to numeric. Append some zeros
5346 # because we need at least 4 digits for the hex conversion.
5347 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5348 minverhex = 0
5349 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5350 sys.exit(sys.hexversion < minverhex)"
5351 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5352 ($PYTHON -c "$prog") >&5 2>&5
5353 ac_status=$?
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); }; then :
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5357 $as_echo "yes" >&6; }
5358 else
5359 as_fn_error $? "too old" "$LINENO" 5
5361 am_display_PYTHON=$PYTHON
5362 else
5363 # Otherwise, try each interpreter until we find one that satisfies
5364 # VERSION.
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5366 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5367 if ${am_cv_pathless_PYTHON+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5371 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
5372 test "$am_cv_pathless_PYTHON" = none && break
5373 prog="import sys, string
5374 # split strings by '.' and convert to numeric. Append some zeros
5375 # because we need at least 4 digits for the hex conversion.
5376 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5377 minverhex = 0
5378 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5379 sys.exit(sys.hexversion < minverhex)"
5380 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5381 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; then :
5385 break
5387 done
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5390 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5391 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5392 if test "$am_cv_pathless_PYTHON" = none; then
5393 PYTHON=:
5394 else
5395 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5396 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if ${ac_cv_path_PYTHON+:} false; then :
5400 $as_echo_n "(cached) " >&6
5401 else
5402 case $PYTHON in
5403 [\\/]* | ?:[\\/]*)
5404 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 for as_dir in $PATH
5410 IFS=$as_save_IFS
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5416 break 2
5418 done
5419 done
5420 IFS=$as_save_IFS
5423 esac
5425 PYTHON=$ac_cv_path_PYTHON
5426 if test -n "$PYTHON"; then
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5428 $as_echo "$PYTHON" >&6; }
5429 else
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5431 $as_echo "no" >&6; }
5436 am_display_PYTHON=$am_cv_pathless_PYTHON
5440 if test "$PYTHON" = :; then
5441 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5442 else
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5446 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5447 if ${am_cv_python_version+:} false; then :
5448 $as_echo_n "(cached) " >&6
5449 else
5450 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5453 $as_echo "$am_cv_python_version" >&6; }
5454 PYTHON_VERSION=$am_cv_python_version
5458 PYTHON_PREFIX='${prefix}'
5460 PYTHON_EXEC_PREFIX='${exec_prefix}'
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5465 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5466 if ${am_cv_python_platform+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5472 $as_echo "$am_cv_python_platform" >&6; }
5473 PYTHON_PLATFORM=$am_cv_python_platform
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5479 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5480 if ${am_cv_python_pythondir+:} false; then :
5481 $as_echo_n "(cached) " >&6
5482 else
5483 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5484 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5487 $as_echo "$am_cv_python_pythondir" >&6; }
5488 pythondir=$am_cv_python_pythondir
5492 pkgpythondir=\${pythondir}/$PACKAGE
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5496 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5497 if ${am_cv_python_pyexecdir+:} false; then :
5498 $as_echo_n "(cached) " >&6
5499 else
5500 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5501 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5504 $as_echo "$am_cv_python_pyexecdir" >&6; }
5505 pyexecdir=$am_cv_python_pyexecdir
5509 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5517 FOR=for
5519 IF=if
5521 TEST=test
5523 CMP=cmp
5527 # Check for some includes for the X11 HIDD and the kernel
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5531 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5532 if ${ac_cv_path_GREP+:} false; then :
5533 $as_echo_n "(cached) " >&6
5534 else
5535 if test -z "$GREP"; then
5536 ac_path_GREP_found=false
5537 # Loop through the user's path and test for each of PROGNAME-LIST
5538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5539 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5541 IFS=$as_save_IFS
5542 test -z "$as_dir" && as_dir=.
5543 for ac_prog in grep ggrep; do
5544 for ac_exec_ext in '' $ac_executable_extensions; do
5545 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5546 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5547 # Check for GNU ac_path_GREP and select it if it is found.
5548 # Check for GNU $ac_path_GREP
5549 case `"$ac_path_GREP" --version 2>&1` in
5550 *GNU*)
5551 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5553 ac_count=0
5554 $as_echo_n 0123456789 >"conftest.in"
5555 while :
5557 cat "conftest.in" "conftest.in" >"conftest.tmp"
5558 mv "conftest.tmp" "conftest.in"
5559 cp "conftest.in" "conftest.nl"
5560 $as_echo 'GREP' >> "conftest.nl"
5561 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5562 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5563 as_fn_arith $ac_count + 1 && ac_count=$as_val
5564 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5565 # Best one so far, save it but keep looking for a better one
5566 ac_cv_path_GREP="$ac_path_GREP"
5567 ac_path_GREP_max=$ac_count
5569 # 10*(2^10) chars as input seems more than enough
5570 test $ac_count -gt 10 && break
5571 done
5572 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5573 esac
5575 $ac_path_GREP_found && break 3
5576 done
5577 done
5578 done
5579 IFS=$as_save_IFS
5580 if test -z "$ac_cv_path_GREP"; then
5581 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5583 else
5584 ac_cv_path_GREP=$GREP
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5589 $as_echo "$ac_cv_path_GREP" >&6; }
5590 GREP="$ac_cv_path_GREP"
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5594 $as_echo_n "checking for egrep... " >&6; }
5595 if ${ac_cv_path_EGREP+:} false; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5599 then ac_cv_path_EGREP="$GREP -E"
5600 else
5601 if test -z "$EGREP"; then
5602 ac_path_EGREP_found=false
5603 # Loop through the user's path and test for each of PROGNAME-LIST
5604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_prog in egrep; do
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5612 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5613 # Check for GNU ac_path_EGREP and select it if it is found.
5614 # Check for GNU $ac_path_EGREP
5615 case `"$ac_path_EGREP" --version 2>&1` in
5616 *GNU*)
5617 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5619 ac_count=0
5620 $as_echo_n 0123456789 >"conftest.in"
5621 while :
5623 cat "conftest.in" "conftest.in" >"conftest.tmp"
5624 mv "conftest.tmp" "conftest.in"
5625 cp "conftest.in" "conftest.nl"
5626 $as_echo 'EGREP' >> "conftest.nl"
5627 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5629 as_fn_arith $ac_count + 1 && ac_count=$as_val
5630 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5631 # Best one so far, save it but keep looking for a better one
5632 ac_cv_path_EGREP="$ac_path_EGREP"
5633 ac_path_EGREP_max=$ac_count
5635 # 10*(2^10) chars as input seems more than enough
5636 test $ac_count -gt 10 && break
5637 done
5638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5639 esac
5641 $ac_path_EGREP_found && break 3
5642 done
5643 done
5644 done
5645 IFS=$as_save_IFS
5646 if test -z "$ac_cv_path_EGREP"; then
5647 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5649 else
5650 ac_cv_path_EGREP=$EGREP
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5656 $as_echo "$ac_cv_path_EGREP" >&6; }
5657 EGREP="$ac_cv_path_EGREP"
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5661 $as_echo_n "checking for ANSI C header files... " >&6; }
5662 if ${ac_cv_header_stdc+:} false; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5667 #include <stdlib.h>
5668 #include <stdarg.h>
5669 #include <string.h>
5670 #include <float.h>
5673 main ()
5677 return 0;
5679 _ACEOF
5680 if ac_fn_c_try_compile "$LINENO"; then :
5681 ac_cv_header_stdc=yes
5682 else
5683 ac_cv_header_stdc=no
5685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5687 if test $ac_cv_header_stdc = yes; then
5688 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5690 /* end confdefs.h. */
5691 #include <string.h>
5693 _ACEOF
5694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5695 $EGREP "memchr" >/dev/null 2>&1; then :
5697 else
5698 ac_cv_header_stdc=no
5700 rm -f conftest*
5704 if test $ac_cv_header_stdc = yes; then
5705 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5707 /* end confdefs.h. */
5708 #include <stdlib.h>
5710 _ACEOF
5711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5712 $EGREP "free" >/dev/null 2>&1; then :
5714 else
5715 ac_cv_header_stdc=no
5717 rm -f conftest*
5721 if test $ac_cv_header_stdc = yes; then
5722 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5723 if test "$cross_compiling" = yes; then :
5725 else
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5728 #include <ctype.h>
5729 #include <stdlib.h>
5730 #if ((' ' & 0x0FF) == 0x020)
5731 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5732 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5733 #else
5734 # define ISLOWER(c) \
5735 (('a' <= (c) && (c) <= 'i') \
5736 || ('j' <= (c) && (c) <= 'r') \
5737 || ('s' <= (c) && (c) <= 'z'))
5738 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5739 #endif
5741 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5743 main ()
5745 int i;
5746 for (i = 0; i < 256; i++)
5747 if (XOR (islower (i), ISLOWER (i))
5748 || toupper (i) != TOUPPER (i))
5749 return 2;
5750 return 0;
5752 _ACEOF
5753 if ac_fn_c_try_run "$LINENO"; then :
5755 else
5756 ac_cv_header_stdc=no
5758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5759 conftest.$ac_objext conftest.beam conftest.$ac_ext
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5765 $as_echo "$ac_cv_header_stdc" >&6; }
5766 if test $ac_cv_header_stdc = yes; then
5768 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5772 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5773 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5774 inttypes.h stdint.h unistd.h
5775 do :
5776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5777 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5779 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5780 cat >>confdefs.h <<_ACEOF
5781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5782 _ACEOF
5786 done
5789 for ac_header in sys/ipc.h sys/shm.h \
5790 sys/mmap.h sys/mman.h sysexits.h \
5791 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5793 do :
5794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5795 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5796 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5797 cat >>confdefs.h <<_ACEOF
5798 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5799 _ACEOF
5803 done
5806 for ac_header in sys/mount.h
5807 do :
5808 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5810 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5811 cat >>confdefs.h <<_ACEOF
5812 #define HAVE_SYS_MOUNT_H 1
5813 _ACEOF
5817 done
5820 ac_header_dirent=no
5821 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5822 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5824 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5825 if eval \${$as_ac_Header+:} false; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829 /* end confdefs.h. */
5830 #include <sys/types.h>
5831 #include <$ac_hdr>
5834 main ()
5836 if ((DIR *) 0)
5837 return 0;
5839 return 0;
5841 _ACEOF
5842 if ac_fn_c_try_compile "$LINENO"; then :
5843 eval "$as_ac_Header=yes"
5844 else
5845 eval "$as_ac_Header=no"
5847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5849 eval ac_res=\$$as_ac_Header
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5851 $as_echo "$ac_res" >&6; }
5852 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5853 cat >>confdefs.h <<_ACEOF
5854 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5855 _ACEOF
5857 ac_header_dirent=$ac_hdr; break
5860 done
5861 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5862 if test $ac_header_dirent = dirent.h; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5864 $as_echo_n "checking for library containing opendir... " >&6; }
5865 if ${ac_cv_search_opendir+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 ac_func_search_save_LIBS=$LIBS
5869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5870 /* end confdefs.h. */
5872 /* Override any GCC internal prototype to avoid an error.
5873 Use char because int might match the return type of a GCC
5874 builtin and then its argument prototype would still apply. */
5875 #ifdef __cplusplus
5876 extern "C"
5877 #endif
5878 char opendir ();
5880 main ()
5882 return opendir ();
5884 return 0;
5886 _ACEOF
5887 for ac_lib in '' dir; do
5888 if test -z "$ac_lib"; then
5889 ac_res="none required"
5890 else
5891 ac_res=-l$ac_lib
5892 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5894 if ac_fn_c_try_link "$LINENO"; then :
5895 ac_cv_search_opendir=$ac_res
5897 rm -f core conftest.err conftest.$ac_objext \
5898 conftest$ac_exeext
5899 if ${ac_cv_search_opendir+:} false; then :
5900 break
5902 done
5903 if ${ac_cv_search_opendir+:} false; then :
5905 else
5906 ac_cv_search_opendir=no
5908 rm conftest.$ac_ext
5909 LIBS=$ac_func_search_save_LIBS
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5912 $as_echo "$ac_cv_search_opendir" >&6; }
5913 ac_res=$ac_cv_search_opendir
5914 if test "$ac_res" != no; then :
5915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5919 else
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5921 $as_echo_n "checking for library containing opendir... " >&6; }
5922 if ${ac_cv_search_opendir+:} false; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 ac_func_search_save_LIBS=$LIBS
5926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5927 /* end confdefs.h. */
5929 /* Override any GCC internal prototype to avoid an error.
5930 Use char because int might match the return type of a GCC
5931 builtin and then its argument prototype would still apply. */
5932 #ifdef __cplusplus
5933 extern "C"
5934 #endif
5935 char opendir ();
5937 main ()
5939 return opendir ();
5941 return 0;
5943 _ACEOF
5944 for ac_lib in '' x; do
5945 if test -z "$ac_lib"; then
5946 ac_res="none required"
5947 else
5948 ac_res=-l$ac_lib
5949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5951 if ac_fn_c_try_link "$LINENO"; then :
5952 ac_cv_search_opendir=$ac_res
5954 rm -f core conftest.err conftest.$ac_objext \
5955 conftest$ac_exeext
5956 if ${ac_cv_search_opendir+:} false; then :
5957 break
5959 done
5960 if ${ac_cv_search_opendir+:} false; then :
5962 else
5963 ac_cv_search_opendir=no
5965 rm conftest.$ac_ext
5966 LIBS=$ac_func_search_save_LIBS
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5969 $as_echo "$ac_cv_search_opendir" >&6; }
5970 ac_res=$ac_cv_search_opendir
5971 if test "$ac_res" != no; then :
5972 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5979 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5980 if ${ac_cv_header_stat_broken+:} false; then :
5981 $as_echo_n "(cached) " >&6
5982 else
5983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* end confdefs.h. */
5985 #include <sys/types.h>
5986 #include <sys/stat.h>
5988 #if defined S_ISBLK && defined S_IFDIR
5989 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5990 #endif
5992 #if defined S_ISBLK && defined S_IFCHR
5993 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5994 #endif
5996 #if defined S_ISLNK && defined S_IFREG
5997 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5998 #endif
6000 #if defined S_ISSOCK && defined S_IFREG
6001 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6002 #endif
6004 _ACEOF
6005 if ac_fn_c_try_compile "$LINENO"; then :
6006 ac_cv_header_stat_broken=no
6007 else
6008 ac_cv_header_stat_broken=yes
6010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6013 $as_echo "$ac_cv_header_stat_broken" >&6; }
6014 if test $ac_cv_header_stat_broken = yes; then
6016 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6021 $as_echo_n "checking for ANSI C header files... " >&6; }
6022 if ${ac_cv_header_stdc+:} false; then :
6023 $as_echo_n "(cached) " >&6
6024 else
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026 /* end confdefs.h. */
6027 #include <stdlib.h>
6028 #include <stdarg.h>
6029 #include <string.h>
6030 #include <float.h>
6033 main ()
6037 return 0;
6039 _ACEOF
6040 if ac_fn_c_try_compile "$LINENO"; then :
6041 ac_cv_header_stdc=yes
6042 else
6043 ac_cv_header_stdc=no
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6047 if test $ac_cv_header_stdc = yes; then
6048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6050 /* end confdefs.h. */
6051 #include <string.h>
6053 _ACEOF
6054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6055 $EGREP "memchr" >/dev/null 2>&1; then :
6057 else
6058 ac_cv_header_stdc=no
6060 rm -f conftest*
6064 if test $ac_cv_header_stdc = yes; then
6065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6067 /* end confdefs.h. */
6068 #include <stdlib.h>
6070 _ACEOF
6071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6072 $EGREP "free" >/dev/null 2>&1; then :
6074 else
6075 ac_cv_header_stdc=no
6077 rm -f conftest*
6081 if test $ac_cv_header_stdc = yes; then
6082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6083 if test "$cross_compiling" = yes; then :
6085 else
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6088 #include <ctype.h>
6089 #include <stdlib.h>
6090 #if ((' ' & 0x0FF) == 0x020)
6091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6093 #else
6094 # define ISLOWER(c) \
6095 (('a' <= (c) && (c) <= 'i') \
6096 || ('j' <= (c) && (c) <= 'r') \
6097 || ('s' <= (c) && (c) <= 'z'))
6098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6099 #endif
6101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6103 main ()
6105 int i;
6106 for (i = 0; i < 256; i++)
6107 if (XOR (islower (i), ISLOWER (i))
6108 || toupper (i) != TOUPPER (i))
6109 return 2;
6110 return 0;
6112 _ACEOF
6113 if ac_fn_c_try_run "$LINENO"; then :
6115 else
6116 ac_cv_header_stdc=no
6118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6119 conftest.$ac_objext conftest.beam conftest.$ac_ext
6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6125 $as_echo "$ac_cv_header_stdc" >&6; }
6126 if test $ac_cv_header_stdc = yes; then
6128 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6133 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6134 if ${ac_cv_header_sys_wait_h+:} false; then :
6135 $as_echo_n "(cached) " >&6
6136 else
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138 /* end confdefs.h. */
6139 #include <sys/types.h>
6140 #include <sys/wait.h>
6141 #ifndef WEXITSTATUS
6142 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6143 #endif
6144 #ifndef WIFEXITED
6145 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6146 #endif
6149 main ()
6151 int s;
6152 wait (&s);
6153 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6155 return 0;
6157 _ACEOF
6158 if ac_fn_c_try_compile "$LINENO"; then :
6159 ac_cv_header_sys_wait_h=yes
6160 else
6161 ac_cv_header_sys_wait_h=no
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6166 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6167 if test $ac_cv_header_sys_wait_h = yes; then
6169 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6174 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6175 if ${ac_cv_header_time+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6179 /* end confdefs.h. */
6180 #include <sys/types.h>
6181 #include <sys/time.h>
6182 #include <time.h>
6185 main ()
6187 if ((struct tm *) 0)
6188 return 0;
6190 return 0;
6192 _ACEOF
6193 if ac_fn_c_try_compile "$LINENO"; then :
6194 ac_cv_header_time=yes
6195 else
6196 ac_cv_header_time=no
6198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6201 $as_echo "$ac_cv_header_time" >&6; }
6202 if test $ac_cv_header_time = yes; then
6204 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6208 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6209 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
6211 cat >>confdefs.h <<_ACEOF
6212 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6213 _ACEOF
6216 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6221 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6222 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
6224 cat >>confdefs.h <<_ACEOF
6225 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6226 _ACEOF
6229 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6231 else
6232 case " $LIBOBJS " in
6233 *" fileblocks.$ac_objext "* ) ;;
6234 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6236 esac
6241 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6242 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
6244 cat >>confdefs.h <<_ACEOF
6245 #define HAVE_STRUCT_STAT_ST_RDEV 1
6246 _ACEOF
6249 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6255 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6256 if ${ac_cv_struct_tm+:} false; then :
6257 $as_echo_n "(cached) " >&6
6258 else
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6261 #include <sys/types.h>
6262 #include <time.h>
6265 main ()
6267 struct tm tm;
6268 int *p = &tm.tm_sec;
6269 return !p;
6271 return 0;
6273 _ACEOF
6274 if ac_fn_c_try_compile "$LINENO"; then :
6275 ac_cv_struct_tm=time.h
6276 else
6277 ac_cv_struct_tm=sys/time.h
6279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6282 $as_echo "$ac_cv_struct_tm" >&6; }
6283 if test $ac_cv_struct_tm = sys/time.h; then
6285 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6289 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6290 #include <$ac_cv_struct_tm>
6293 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
6295 cat >>confdefs.h <<_ACEOF
6296 #define HAVE_STRUCT_TM_TM_ZONE 1
6297 _ACEOF
6302 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6304 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6306 else
6307 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6309 if test "x$ac_cv_have_decl_tzname" = xyes; then :
6310 ac_have_decl=1
6311 else
6312 ac_have_decl=0
6315 cat >>confdefs.h <<_ACEOF
6316 #define HAVE_DECL_TZNAME $ac_have_decl
6317 _ACEOF
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6320 $as_echo_n "checking for tzname... " >&6; }
6321 if ${ac_cv_var_tzname+:} false; then :
6322 $as_echo_n "(cached) " >&6
6323 else
6324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6325 /* end confdefs.h. */
6326 #include <time.h>
6327 #if !HAVE_DECL_TZNAME
6328 extern char *tzname[];
6329 #endif
6332 main ()
6334 return tzname[0][0];
6336 return 0;
6338 _ACEOF
6339 if ac_fn_c_try_link "$LINENO"; then :
6340 ac_cv_var_tzname=yes
6341 else
6342 ac_cv_var_tzname=no
6344 rm -f core conftest.err conftest.$ac_objext \
6345 conftest$ac_exeext conftest.$ac_ext
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6348 $as_echo "$ac_cv_var_tzname" >&6; }
6349 if test $ac_cv_var_tzname = yes; then
6351 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6356 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6357 if test "x$ac_cv_type_off_t" = xyes; then :
6359 else
6361 cat >>confdefs.h <<_ACEOF
6362 #define off_t long int
6363 _ACEOF
6367 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6368 if test "x$ac_cv_type_pid_t" = xyes; then :
6370 else
6372 cat >>confdefs.h <<_ACEOF
6373 #define pid_t int
6374 _ACEOF
6378 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6379 if test "x$ac_cv_type_size_t" = xyes; then :
6381 else
6383 cat >>confdefs.h <<_ACEOF
6384 #define size_t unsigned int
6385 _ACEOF
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6390 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6391 if ${ac_cv_type_uid_t+:} false; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6395 /* end confdefs.h. */
6396 #include <sys/types.h>
6398 _ACEOF
6399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6400 $EGREP "uid_t" >/dev/null 2>&1; then :
6401 ac_cv_type_uid_t=yes
6402 else
6403 ac_cv_type_uid_t=no
6405 rm -f conftest*
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6409 $as_echo "$ac_cv_type_uid_t" >&6; }
6410 if test $ac_cv_type_uid_t = no; then
6412 $as_echo "#define uid_t int" >>confdefs.h
6415 $as_echo "#define gid_t int" >>confdefs.h
6420 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6421 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = xyes; then :
6423 cat >>confdefs.h <<_ACEOF
6424 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6425 _ACEOF
6431 # Look for some functions
6432 for ac_func in getpagesize kqueue statfs statvfs \
6433 clone kse_create rfork_thread thr_create sa_register \
6434 getcontext makecontext setcontext sigaltstack swapcontext
6435 do :
6436 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6437 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6438 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6439 cat >>confdefs.h <<_ACEOF
6440 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6441 _ACEOF
6444 done
6450 for ac_header in $ac_header_list
6451 do :
6452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6453 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6455 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6456 cat >>confdefs.h <<_ACEOF
6457 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6458 _ACEOF
6462 done
6471 for ac_func in getpagesize
6472 do :
6473 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6474 if test "x$ac_cv_func_getpagesize" = xyes; then :
6475 cat >>confdefs.h <<_ACEOF
6476 #define HAVE_GETPAGESIZE 1
6477 _ACEOF
6480 done
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6483 $as_echo_n "checking for working mmap... " >&6; }
6484 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
6485 $as_echo_n "(cached) " >&6
6486 else
6487 if test "$cross_compiling" = yes; then :
6488 ac_cv_func_mmap_fixed_mapped=no
6489 else
6490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6491 /* end confdefs.h. */
6492 $ac_includes_default
6493 /* malloc might have been renamed as rpl_malloc. */
6494 #undef malloc
6496 /* Thanks to Mike Haertel and Jim Avera for this test.
6497 Here is a matrix of mmap possibilities:
6498 mmap private not fixed
6499 mmap private fixed at somewhere currently unmapped
6500 mmap private fixed at somewhere already mapped
6501 mmap shared not fixed
6502 mmap shared fixed at somewhere currently unmapped
6503 mmap shared fixed at somewhere already mapped
6504 For private mappings, we should verify that changes cannot be read()
6505 back from the file, nor mmap's back from the file at a different
6506 address. (There have been systems where private was not correctly
6507 implemented like the infamous i386 svr4.0, and systems where the
6508 VM page cache was not coherent with the file system buffer cache
6509 like early versions of FreeBSD and possibly contemporary NetBSD.)
6510 For shared mappings, we should conversely verify that changes get
6511 propagated back to all the places they're supposed to be.
6513 Grep wants private fixed already mapped.
6514 The main things grep needs to know about mmap are:
6515 * does it exist and is it safe to write into the mmap'd area
6516 * how to use it (BSD variants) */
6518 #include <fcntl.h>
6519 #include <sys/mman.h>
6521 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6522 char *malloc ();
6523 #endif
6525 /* This mess was copied from the GNU getpagesize.h. */
6526 #ifndef HAVE_GETPAGESIZE
6527 # ifdef _SC_PAGESIZE
6528 # define getpagesize() sysconf(_SC_PAGESIZE)
6529 # else /* no _SC_PAGESIZE */
6530 # ifdef HAVE_SYS_PARAM_H
6531 # include <sys/param.h>
6532 # ifdef EXEC_PAGESIZE
6533 # define getpagesize() EXEC_PAGESIZE
6534 # else /* no EXEC_PAGESIZE */
6535 # ifdef NBPG
6536 # define getpagesize() NBPG * CLSIZE
6537 # ifndef CLSIZE
6538 # define CLSIZE 1
6539 # endif /* no CLSIZE */
6540 # else /* no NBPG */
6541 # ifdef NBPC
6542 # define getpagesize() NBPC
6543 # else /* no NBPC */
6544 # ifdef PAGESIZE
6545 # define getpagesize() PAGESIZE
6546 # endif /* PAGESIZE */
6547 # endif /* no NBPC */
6548 # endif /* no NBPG */
6549 # endif /* no EXEC_PAGESIZE */
6550 # else /* no HAVE_SYS_PARAM_H */
6551 # define getpagesize() 8192 /* punt totally */
6552 # endif /* no HAVE_SYS_PARAM_H */
6553 # endif /* no _SC_PAGESIZE */
6555 #endif /* no HAVE_GETPAGESIZE */
6558 main ()
6560 char *data, *data2, *data3;
6561 const char *cdata2;
6562 int i, pagesize;
6563 int fd, fd2;
6565 pagesize = getpagesize ();
6567 /* First, make a file with some known garbage in it. */
6568 data = (char *) malloc (pagesize);
6569 if (!data)
6570 return 1;
6571 for (i = 0; i < pagesize; ++i)
6572 *(data + i) = rand ();
6573 umask (0);
6574 fd = creat ("conftest.mmap", 0600);
6575 if (fd < 0)
6576 return 2;
6577 if (write (fd, data, pagesize) != pagesize)
6578 return 3;
6579 close (fd);
6581 /* Next, check that the tail of a page is zero-filled. File must have
6582 non-zero length, otherwise we risk SIGBUS for entire page. */
6583 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6584 if (fd2 < 0)
6585 return 4;
6586 cdata2 = "";
6587 if (write (fd2, cdata2, 1) != 1)
6588 return 5;
6589 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6590 if (data2 == MAP_FAILED)
6591 return 6;
6592 for (i = 0; i < pagesize; ++i)
6593 if (*(data2 + i))
6594 return 7;
6595 close (fd2);
6596 if (munmap (data2, pagesize))
6597 return 8;
6599 /* Next, try to mmap the file at a fixed address which already has
6600 something else allocated at it. If we can, also make sure that
6601 we see the same garbage. */
6602 fd = open ("conftest.mmap", O_RDWR);
6603 if (fd < 0)
6604 return 9;
6605 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6606 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6607 return 10;
6608 for (i = 0; i < pagesize; ++i)
6609 if (*(data + i) != *(data2 + i))
6610 return 11;
6612 /* Finally, make sure that changes to the mapped area do not
6613 percolate back to the file as seen by read(). (This is a bug on
6614 some variants of i386 svr4.0.) */
6615 for (i = 0; i < pagesize; ++i)
6616 *(data2 + i) = *(data2 + i) + 1;
6617 data3 = (char *) malloc (pagesize);
6618 if (!data3)
6619 return 12;
6620 if (read (fd, data3, pagesize) != pagesize)
6621 return 13;
6622 for (i = 0; i < pagesize; ++i)
6623 if (*(data + i) != *(data3 + i))
6624 return 14;
6625 close (fd);
6626 return 0;
6628 _ACEOF
6629 if ac_fn_c_try_run "$LINENO"; then :
6630 ac_cv_func_mmap_fixed_mapped=yes
6631 else
6632 ac_cv_func_mmap_fixed_mapped=no
6634 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6635 conftest.$ac_objext conftest.beam conftest.$ac_ext
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6640 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6641 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6643 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6646 rm -f conftest.mmap conftest.txt
6651 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6652 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6653 aros_config_ldflags=""
6655 aros_shared_default=yes
6657 aros_shared_cflags="-fPIC"
6658 aros_shared_aflags=""
6659 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6660 aros_kernel_ldflags="-Wl,-rpath,./lib"
6662 aros_kernel_ar_flags="cr"
6663 aros_target_ar_flags="cr"
6664 aros_target_nm_flags="-C -ul"
6665 aros_target_strip_flags="--strip-unneeded -R.comment"
6667 aros_compiler_libs=
6668 aros_arch_libs=
6670 aros_target_genmap="-Wl,-Map -Xlinker"
6672 # Native flavour stuff
6673 aros_serial_debug="0"
6675 # Palm native flavour stuff
6676 aros_palm_debug_hack="0"
6678 # Unix flavour stuff
6679 aros_nesting_supervisor="0"
6681 # Collect-aros stuff: "-ius" to ignore undefined symbols
6682 ignore_undefined_symbols=""
6684 # Check for X11 by default
6685 need_x11="auto"
6687 #-----------------------------------------------------------------------------
6690 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6691 # it switched on by default, and we use the host compiler, so it compiles AROS
6692 # code with this enabled resulting in link failures as we don't have support
6693 # for it.
6695 # We use two methods to disable it. For the host compiler (used to compile
6696 # some hosted modules), we test to see if the compiler supports stack
6697 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6698 # work on all platforms.
6700 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6701 # (this is done unconditionally, as it should have no effect on compilers
6702 # without the stack protection feature). This may be specific to the way that
6703 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6704 # strong enough to disable it in a generic way though, so we'll live with it
6705 # until another vendor ships GCC with it enabled in a different way, and deal
6706 # with it then.
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6710 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6711 save_cflags="$CFLAGS"
6712 CFLAGS="$CFLAGS -fno-stack-protector"
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6717 main ()
6721 return 0;
6723 _ACEOF
6724 if ac_fn_c_try_compile "$LINENO"; then :
6725 use_no_stack_protector="yes"
6726 else
6727 use_no_stack_protector="no"
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6731 $as_echo "$use_no_stack_protector" >&6; }
6732 if test "x-$use_no_stack_protector" = "x-yes" ; then
6733 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6735 CFLAGS="$save_cflags"
6737 #-----------------------------------------------------------------------------
6739 # Disable pointer-signedness warnings if the compiler recognises the option
6740 # (this only works for the host compiler at the moment)
6742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6743 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6744 save_cflags="$CFLAGS"
6745 CFLAGS="$CFLAGS -Wno-pointer-sign"
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747 /* end confdefs.h. */
6750 main ()
6754 return 0;
6756 _ACEOF
6757 if ac_fn_c_try_compile "$LINENO"; then :
6758 use_no_sign_warning="yes"
6759 else
6760 use_no_sign_warning="no"
6762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6764 $as_echo "$use_no_sign_warning" >&6; }
6765 if test "x-$use_no_sign_warning" = "x-yes" ; then
6766 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6768 CFLAGS="$save_cflags"
6770 #-----------------------------------------------------------------------------
6772 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6775 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6776 save_cflags="$CFLAGS"
6777 CFLAGS="$CFLAGS -fgnu89-inline"
6778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779 /* end confdefs.h. */
6782 main ()
6786 return 0;
6788 _ACEOF
6789 if ac_fn_c_try_compile "$LINENO"; then :
6790 use_gnu89_inline="yes"
6791 else
6792 use_gnu89_inline="no"
6794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6796 $as_echo "$use_gnu89_inline" >&6; }
6797 if test "x-$use_gnu89_inline" = "x-yes" ; then
6798 gnu89_inline="-fgnu89-inline"
6800 CFLAGS="$save_cflags"
6802 #-----------------------------------------------------------------------------
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6805 $as_echo_n "checking for type of build... " >&6; }
6806 # Check whether --enable-build_type was given.
6807 if test "${enable_build_type+set}" = set; then :
6808 enableval=$enable_build_type; build_type=$enableval
6809 else
6810 build_type="personal"
6814 if test "$build_type" = "nightly"; then
6815 build_type_string="NIGHTLY"
6816 elif test "$build_type" = "snapshot"; then
6817 build_type_string="SNAPSHOT"
6818 elif test "$build_type" = "milestone"; then
6819 build_type_string="MILESTONE"
6820 elif test "$build_type" = "release"; then
6821 build_type_string="RELEASE"
6822 else
6823 build_type_string="PERSONAL"
6824 build_type="personal"
6827 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6830 $as_echo "$build_type" >&6; }
6832 #-----------------------------------------------------------------------------
6833 all_debug_types="messages stack modules mungwall symbols"
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6836 $as_echo_n "checking which debug types to enable... " >&6; }
6837 # Check whether --enable-debug was given.
6838 if test "${enable_debug+set}" = set; then :
6839 enableval=$enable_debug; debug="$enableval"
6840 else
6841 debug=""
6845 if test "$debug" = "" -o "$debug" = "no"; then
6846 debug="none"
6847 elif test "$debug" = "yes"; then
6848 debug="all"
6851 if test "$debug" = "all" ; then
6852 debug="messages stack modules symbols"
6853 for d in $all_debug_types; do
6854 export aros_${d}_debug="1"
6855 done
6856 else
6857 for d in $all_debug_types; do
6858 export aros_${d}_debug="0"
6859 done
6862 if test "$debug" != "none"; then
6863 debug=`echo $debug | sed s/,/\ /g`
6864 for d in $debug; do
6865 found="0"
6866 for d2 in $all_debug_types; do
6867 if test "$d2" = "$d"; then
6868 found="1"
6869 break
6871 done
6872 if test "$found" = "0"; then
6873 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6875 export aros_${d}_debug="1"
6876 done
6877 aros_debug="yes"
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6880 $as_echo "$debug" >&6; }
6882 if test "$aros_messages_debug" = "1"; then
6883 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6884 else
6885 aros_messages_debug=""
6887 if test "$aros_symbols_debug" = "1"; then
6888 aros_symbols_debug="-g"
6889 else
6890 aros_symbols_debug=""
6893 # These are the flags to pass when compiling debugged programs
6894 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6895 aros_debug_aflags=""
6896 aros_debug_ldflags="$aros_symbols_debug"
6898 #-----------------------------------------------------------------------------
6899 # Checking if we should build crosstools..
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6901 $as_echo_n "checking whether to build crosstools... " >&6; }
6902 # Check whether --enable-crosstools was given.
6903 if test "${enable_crosstools+set}" = set; then :
6904 enableval=$enable_crosstools; crosstools="$enableval"
6905 else
6906 crosstools="no"
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6910 $as_echo "$crosstools" >&6; }
6912 #-----------------------------------------------------------------------------
6913 # Checking for distcc and ccache.
6915 # Always apply the transforms in this particular order. Basically you should
6916 # always run 'ccache distcc compiler' in that order for the best performance.
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6919 $as_echo_n "checking whether to enable distcc... " >&6; }
6920 # Check whether --enable-distcc was given.
6921 if test "${enable_distcc+set}" = set; then :
6922 enableval=$enable_distcc; distcc="$enableval"
6923 else
6924 distcc="no"
6927 if test "$distcc" != "" -a "$distcc" != "no"; then
6928 # AC_CHECK_PROG will print out the result in this case
6929 # Extract the first word of "distcc", so it can be a program name with args.
6930 set dummy distcc; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if ${ac_cv_path_DISTCC+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 case $DISTCC in
6937 [\\/]* | ?:[\\/]*)
6938 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6944 IFS=$as_save_IFS
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950 break 2
6952 done
6953 done
6954 IFS=$as_save_IFS
6956 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6958 esac
6960 DISTCC=$ac_cv_path_DISTCC
6961 if test -n "$DISTCC"; then
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6963 $as_echo "$DISTCC" >&6; }
6964 else
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6966 $as_echo "no" >&6; }
6970 else
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6972 $as_echo "no" >&6; }
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6976 $as_echo_n "checking whether to enable ccache... " >&6; }
6977 # Check whether --enable-ccache was given.
6978 if test "${enable_ccache+set}" = set; then :
6979 enableval=$enable_ccache; ccache="$enableval"
6980 else
6981 ccache="no"
6984 if test "$ccache" != "" -a "$ccache" != "no"; then
6985 # AC_CHECK_PROG will print out the result in this case
6986 # Extract the first word of "ccache", so it can be a program name with args.
6987 set dummy ccache; ac_word=$2
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6989 $as_echo_n "checking for $ac_word... " >&6; }
6990 if ${ac_cv_prog_CCACHE+:} false; then :
6991 $as_echo_n "(cached) " >&6
6992 else
6993 if test -n "$CCACHE"; then
6994 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6995 else
6996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6997 for as_dir in $PATH
6999 IFS=$as_save_IFS
7000 test -z "$as_dir" && as_dir=.
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7003 ac_cv_prog_CCACHE="ccache"
7004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 break 2
7007 done
7008 done
7009 IFS=$as_save_IFS
7013 CCACHE=$ac_cv_prog_CCACHE
7014 if test -n "$CCACHE"; then
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7016 $as_echo "$CCACHE" >&6; }
7017 else
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7019 $as_echo "no" >&6; }
7023 else
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 $as_echo "no" >&6; }
7028 #-----------------------------------------------------------------------------
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7030 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7032 # Check whether --with-gcc-version was given.
7033 if test "${with_gcc_version+set}" = set; then :
7034 withval=$with_gcc_version; target_tool_version="$withval"
7035 else
7036 target_tool_version="default"
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7040 $as_echo "$target_tool_version" >&6; }
7042 #-----------------------------------------------------------------------------
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7044 $as_echo_n "checking what optimization flags to use... " >&6; }
7046 # Check whether --with-optimization was given.
7047 if test "${with_optimization+set}" = set; then :
7048 withval=$with_optimization; optimization="$withval"
7049 else
7050 optimization="unknown"
7053 if test "$optimization" = "unknown"; then
7054 if test "$debug" != "none"; then
7055 optimization="-O0"
7056 else
7057 optimization="-O2"
7060 aros_config_cflags="$aros_config_cflags $optimization"
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7062 $as_echo "$optimization" >&6; }
7064 #-----------------------------------------------------------------------------
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7066 $as_echo_n "checking what paranoia flags to use... " >&6; }
7068 # Check whether --with-paranoia was given.
7069 if test "${with_paranoia+set}" = set; then :
7070 withval=$with_paranoia; paranoia_flags="$withval"
7071 else
7072 paranoia_flags="default"
7075 if test "$paranoia_flags" = "default"; then
7076 paranoia_flags=""
7077 else if test "$paranoia_flags" = "yes"; then
7078 paranoia_flags="-Wall -Werror"
7079 fi fi
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7081 $as_echo "$paranoia_flags" >&6; }
7082 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7084 #-----------------------------------------------------------------------------
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7086 $as_echo_n "checking what target variant to enable... " >&6; }
7087 # Check whether --enable-target_variant was given.
7088 if test "${enable_target_variant+set}" = set; then :
7089 enableval=$enable_target_variant; target_variant=$enableval
7090 else
7091 target_variant=""
7094 if test "$target_variant" = ""; then
7095 aros_target_variant=""
7096 aros_target_suffix=""
7097 enableval="none"
7098 else
7099 aros_target_variant="$target_variant"
7100 aros_target_suffix="-$target_variant"
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7103 $as_echo "$enableval" >&6; }
7105 #-----------------------------------------------------------------------------
7106 # Target-specific defaults. You can override then on a per-target basis.
7108 # Bootloader name. Currently used by PC target.
7109 target_bootloader="none"
7111 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7112 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7113 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7114 if test "$crosstools" != "yes"; then
7115 target_tool_prefix=${target_cpu}-elf-
7116 else
7117 target_tool_prefix=${target_cpu}-aros-
7120 #-----------------------------------------------------------------------------
7121 # Additional options for some specific targets
7123 case "$aros_target_variant" in
7124 ios)
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7126 $as_echo_n "checking XCode path... " >&6; }
7128 # Check whether --with-xcode was given.
7129 if test "${with_xcode+set}" = set; then :
7130 withval=$with_xcode; aros_xcode_path="$withval"
7131 else
7132 aros_xcode_path="/Developer"
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7136 $as_echo "$aros_xcode_path" >&6; }
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7139 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7141 # Check whether --with-ios-version was given.
7142 if test "${with_ios_version+set}" = set; then :
7143 withval=$with_ios_version; aros_ios_version="$withval"
7144 else
7145 aros_ios_version="3.0"
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7149 $as_echo "$aros_ios_version" >&6; }
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7152 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7154 # Check whether --with-ios-sdk was given.
7155 if test "${with_ios_sdk+set}" = set; then :
7156 withval=$with_ios_sdk; aros_ios_sdk="$withval"
7157 else
7158 aros_ios_sdk="4.1"
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7162 $as_echo "$aros_ios_sdk" >&6; }
7166 "android")
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7168 $as_echo_n "checking Android SDK path... " >&6; }
7170 # Check whether --with-sdk was given.
7171 if test "${with_sdk+set}" = set; then :
7172 withval=$with_sdk; aros_android_sdk="$withval"
7173 else
7174 aros_android_sdk=$default_android_sdk
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7178 $as_echo "$aros_android_sdk" >&6; }
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7181 $as_echo_n "checking Android NDK path... " >&6; }
7183 # Check whether --with-ndk was given.
7184 if test "${with_ndk+set}" = set; then :
7185 withval=$with_ndk; aros_android_ndk="$withval"
7186 else
7187 aros_android_ndk="$default_android_ndk"
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7191 $as_echo "$aros_android_ndk" >&6; }
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android version to use" >&5
7194 $as_echo_n "checking what Android version to use... " >&6; }
7196 # Check whether --with-android-version was given.
7197 if test "${with_android_version+set}" = set; then :
7198 withval=$with_android_version; aros_android_version="$withval"
7199 else
7200 aros_android_version="2.2"
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_version" >&5
7204 $as_echo "$aros_android_version" >&6; }
7206 export PATH="$aros_android_sdk/tools:$PATH"
7207 # Extract the first word of "$android_tool", so it can be a program name with args.
7208 set dummy $android_tool; ac_word=$2
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if ${ac_cv_path_android_tool+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 case $android_tool in
7215 [\\/]* | ?:[\\/]*)
7216 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7220 for as_dir in $PATH
7222 IFS=$as_save_IFS
7223 test -z "$as_dir" && as_dir=.
7224 for ac_exec_ext in '' $ac_executable_extensions; do
7225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7226 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 break 2
7230 done
7231 done
7232 IFS=$as_save_IFS
7235 esac
7237 android_tool=$ac_cv_path_android_tool
7238 if test -n "$android_tool"; then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7240 $as_echo "$android_tool" >&6; }
7241 else
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7247 if test "$android_tool" = ""; then
7248 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7251 if test $host_os = "mingw32"; then
7252 android_tool="cmd //c $android_tool"
7256 esac
7258 #-----------------------------------------------------------------------------
7259 # This is the target configuration switch.
7260 case "$target_os" in
7261 linux*)
7262 aros_target_arch="linux"
7263 aros_target_family="unix"
7264 case "$target_cpu" in
7265 *m68k*)
7266 aros_target_cpu="m68k"
7267 aros_object_format="m68kelf"
7268 aros_flavour="emulcompat"
7269 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7270 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7271 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7272 gcc_target_cpu="mc68000"
7274 *i?86*)
7275 aros_target_cpu="i386"
7276 aros_object_format="elf_i386"
7277 aros_flavour="emulation"
7278 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7279 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7280 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7281 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7282 aros_config_ldflags="-m32 -march=i486"
7283 aros_kernel_ldflags="-melf_i386"
7284 aros_default_wbdepth=8
7285 gcc_target_cpu="i386"
7286 pci_hidd_target="hidd-pci-linux"
7288 *x86_64*)
7289 aros_target_cpu="x86_64"
7290 aros_object_format="elf_x86_64"
7291 aros_flavour="emulation"
7292 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7293 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7294 aros_default_wbdepth=8
7295 pci_hidd_target="hidd-pci-linux"
7297 *powerpc*)
7298 aros_target_cpu="ppc"
7299 aros_object_format="elf32ppc"
7300 aros_flavour="emulation"
7301 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7302 aros_default_wbdepth=8
7303 gcc_target_cpu="ppc"
7305 # TODO
7306 # Same as powerpc, but I need this for the nightly build to work again.
7307 # Actually, the nightly should be made working with powerpc target.
7308 # That just was too much work for the moment, another week or two.
7309 *ppc*)
7310 aros_target_cpu="ppc"
7311 aros_object_format="elf32ppc"
7312 aros_flavour="emulation"
7313 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7314 aros_default_wbdepth=8
7315 gcc_target_cpu="ppc"
7317 *arm*)
7318 aros_target_cpu="arm"
7319 aros_object_format="armelf_linux_eabi"
7320 aros_flavour="emulation"
7321 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7322 gcc_target_cpu="arm"
7323 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -mthumb-interwork -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7324 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -mthumb-interwork -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7325 aros_arch_libs="-laeabi"
7328 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7330 esac
7331 case "$aros_target_variant" in
7332 android)
7333 case "$aros_android_version" in
7334 2.2)
7335 aros_android_level=android-8
7338 aros_android_level=android-9
7340 esac
7341 aros_default_wbwidth=320
7342 aros_default_wbheight=480
7343 use_aros_gcc="yes"
7344 if test "$aros_android_ndk" = ""; then
7345 aros_kernel_cflags="-mandroid"
7346 aros_kernel_ldflags="-mandroid"
7347 CFLAGS="-mandroid"
7348 else
7349 export PATH="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7350 aros_android_ndk="$aros_android_ndk/platforms/$aros_android_level/arch-arm"
7351 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7352 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7353 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7354 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7356 need_x11=no
7357 target_tool_prefix="arm-linux-androideabi-"
7359 esac
7363 aros_target_arch="pc"
7364 aros_shared_default="no"
7365 target_bootloader="grub2"
7366 case "$target_cpu" in
7367 *i?86*)
7368 aros_target_cpu="i386"
7371 if test "$aros_object_format" = "" ; then
7372 aros_object_format="elf_i386"
7374 aros_flavour="standalone"
7375 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7376 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7377 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7378 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7379 aros_config_ldflags="-m32 -march=i486"
7380 aros_kernel_ldflags="-melf_i386"
7381 aros_default_wbwidth=640
7382 aros_default_wbheight=480
7383 gcc_target_cpu="i386"
7385 *x86_64*)
7386 aros_target_cpu="x86_64"
7387 aros_serial_debug=1
7388 if test "$aros_object_format" = "" ; then
7389 aros_object_format="elf_x86_64"
7391 aros_flavour="standalone"
7392 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7393 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7394 aros_kernel_ldflags=""
7395 aros_default_wbwidth=640
7396 aros_default_wbheight=480
7399 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7401 esac
7404 prep)
7405 aros_target_arch="prep"
7406 aros_shared_default="no"
7407 aros_target_cpu="ppc"
7408 aros_object_format="elf32ppc"
7409 aros_flavour="ppcnative"
7410 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7411 aros_kernel_ldflags=""
7412 aros_default_wbwidth=640
7413 aros_default_wbheight=480
7414 gcc_target_cpu="ppc"
7417 freebsd*)
7418 aros_target_arch="freebsd"
7419 aros_target_family="unix"
7420 aros_target_cpu="i386"
7421 aros_flavour="emulation"
7422 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7423 gcc_target_cpu="i386"
7425 aros_target_strip_flags="-x"
7428 darwin*)
7429 aros_target_arch="darwin"
7430 aros_target_family="unix"
7431 aros_flavour="emulation"
7432 case "$target_cpu" in
7433 *i?86*)
7434 aros_ios_platform="iPhoneSimulator"
7435 aros_target_cpu="i386"
7436 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7437 aros_kernel_ldflags=""
7438 aros_macosx_version="10.4"
7439 aros_default_wbdepth=8
7440 gcc_target_cpu="i386"
7441 aros_object_format="elf_i386"
7442 aros_kernel_ar_flags="-cr"
7443 aros_target_strip_flags="-x"
7444 target_tool_prefix="i686-apple-darwin10-"
7445 target_tool_flags="-m32"
7447 *x86_64*)
7448 aros_target_cpu="x86_64"
7449 aros_object_format="elf_x86_64"
7450 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7451 aros_macosx_version="10.6"
7452 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7453 aros_kernel_cflags="-m64"
7454 aros_kernel_ldflags="-m64"
7455 aros_target_cflags="-mcmodel=large"
7456 aros_default_wbdepth=8
7457 aros_kernel_ar="ar"
7458 aros_kernel_ar_flags="-cr"
7459 aros_kernel_ld="ld"
7460 aros_kernel_ranlib="ranlib"
7461 target_tool_prefix="i686-apple-darwin10-"
7463 *ppc*)
7464 aros_target_cpu="ppc"
7465 aros_object_format="elf32ppc"
7466 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7467 aros_kernel_ldflags=""
7468 aros_macosx_version="10.0"
7469 aros_default_wbdepth=8
7470 gcc_target_cpu="ppc"
7471 aros_kernel_ar="ar"
7472 aros_kernel_ar_flags="-cr"
7473 aros_kernel_ld="ld -arch ppc"
7474 aros_kernel_ranlib="ranlib -arch ppc"
7475 target_tool_prefix="powerpc-apple-darwin10-"
7477 *arm*)
7478 aros_ios_platform="iPhoneOS"
7479 aros_target_cpu="arm"
7480 aros_object_format="armelf_linux_eabi"
7481 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7482 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7483 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7484 aros_arch_libs="-laeabi"
7485 aros_default_wbdepth=8
7486 gcc_target_cpu="arm"
7487 aros_kernel_ar="ar"
7488 aros_kernel_ar_flags="-cr"
7489 aros_kernel_ld="ld -arch arm"
7490 aros_kernel_ranlib="ranlib -arch arm"
7491 target_tool_prefix="arm-apple-darwin10-"
7492 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7495 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7497 esac
7498 case "$aros_target_variant" in
7499 ios)
7500 aros_default_wbwidth=320
7501 aros_default_wbheight=480
7502 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7503 target_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7504 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7505 need_x11=no
7506 # This is here because it may depend on iOS or SDK version
7507 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7508 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7509 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7512 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7513 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7515 esac
7518 dragonfly*)
7519 aros_target_arch="dragonfly"
7520 aros_target_family="unix"
7521 aros_flavour="emulation"
7522 case "$target_cpu" in
7523 *i?86*)
7524 aros_target_cpu="i386"
7525 aros_object_format="elf_i386"
7526 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7528 *x86_64*)
7529 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7530 aros_target_cpu="x86_64"
7531 aros_object_format="elf_x86_64"
7532 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7535 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7537 esac
7540 netbsd*)
7541 aros_target_arch="netbsd"
7542 aros_target_family="unix"
7543 case "$target_cpu" in
7544 *m68k*)
7545 aros_target_cpu="m68k"
7546 aros_object_format="m68kelf"
7547 aros_flavour="emulcompat"
7548 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7549 gcc_target_cpu="mc68000"
7551 *i?86*)
7552 aros_target_cpu="i386"
7553 aros_object_format="elf_i386"
7554 aros_flavour="emulation"
7555 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7556 aros_default_wbdepth=8
7557 gcc_target_cpu="i386"
7560 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7562 esac
7563 aros_target_genmap="-Wl,-M -Xlinker >"
7564 aros_flavour="emulation"
7565 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7568 openbsd*)
7569 aros_target_arch="openbsd"
7570 aros_target_family="unix"
7571 case "$target_cpu" in
7572 *i?86*)
7573 aros_target_cpu="i386"
7574 aros_object_format="elf_i386"
7575 aros_flavour="emulation"
7576 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7577 gcc_target_cpu="i386"
7580 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7582 esac
7583 aros_target_genmap="-Wl,-M -Xlinker >"
7584 aros_target_nm_flags="-u"
7585 aros_flavour="emulation"
7588 solaris*)
7589 aros_target_arch="solaris"
7590 aros_target_family="unix"
7591 case "$target_cpu" in
7592 *i?86*)
7593 aros_target_cpu="i386"
7594 aros_object_format="elf_i386"
7595 aros_flavour="emulation"
7596 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7597 aros_default_wbdepth=8
7598 gcc_target_cpu="i386"
7600 *sparc*)
7601 aros_target_cpu="sparc"
7602 aros_object_format="elf_sparc"
7603 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7604 gcc_target_cpu="sparc"
7607 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7609 esac
7610 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7611 aros_flavour="emulation"
7614 morphos*)
7615 aros_target_arch="morphos"
7616 aros_shared_default="no"
7617 aros_target_cpu="ppc"
7618 aros_object_format="elf_ppc"
7619 aros_flavour="nativecompat"
7620 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7621 gcc_target_cpu="ppc"
7624 sam440)
7625 aros_target_arch="sam440"
7626 aros_shared_default="no"
7627 aros_target_cpu="ppc"
7628 aros_object_format="elf32ppc"
7629 aros_flavour="ppcnative"
7630 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7631 aros_kernel_ldflags=""
7632 aros_default_wbwidth=1024
7633 aros_default_wbheight=768
7634 aros_default_wbdepth=24
7635 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7636 gcc_target_cpu="powerpc"
7639 efika)
7640 aros_target_arch="efika"
7641 aros_shared_default="no"
7642 aros_target_cpu="arm"
7643 aros_object_format="armelf_linux_eabi"
7644 aros_flavour="standalone"
7645 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7646 aros_kernel_ldflags=""
7647 aros_default_wbwidth=1024
7648 aros_default_wbheight=600
7649 aros_arch_libs="-laeabi"
7650 aros_config_cflags="$aros_config_cflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7651 aros_config_aflags="$aros_config_aflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=vfpv3 -mfloat-abi=hard -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7654 chrp)
7655 aros_target_arch="chrp"
7656 aros_shared_default="no"
7657 aros_target_cpu="ppc"
7658 aros_object_format="elf32ppc"
7659 aros_flavour="ppcnative"
7660 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7661 aros_kernel_ldflags=""
7662 aros_default_wbwidth=640
7663 aros_default_wbheight=480
7664 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7665 gcc_target_cpu="powerpc"
7666 case "$aros_target_variant" in
7667 efika)
7668 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7670 esac
7673 amiga*)
7674 aros_target_arch="amiga"
7675 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7676 aros_shared_default="no"
7678 case "$target_cpu" in
7679 *m68k*)
7680 aros_enable_mmu=no
7681 aros_target_cpu="m68k"
7682 aros_object_format="m68kelf"
7683 aros_flavour="standcompat"
7684 gcc_target_cpu="m68000"
7685 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
7686 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7687 target_tool_prefix="m68k-elf-"
7688 # Needed to get the correct multilib
7689 aros_config_ldflags="-${gcc_target_cpu}"
7690 aros_shared_ldflags="-${gcc_target_cpu}"
7691 aros_kernel_ldflags="-${gcc_target_cpu}"
7692 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7693 aros_target_strip_flags="-R.comment --strip-debug"
7694 aros_default_wbwidth=640
7695 aros_default_wbheight=256
7696 aros_default_wbdepth=2
7698 *ppc*)
7699 aros_cpu="ppc"
7700 aros_flavour="native"
7701 gcc_target_cpu="ppc"
7704 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7706 esac
7709 mingw*)
7710 aros_target_arch="mingw32"
7711 aros_shared_default="no"
7712 aros_flavour="emulation"
7713 aros_shared_cflags=""
7714 need_dlopen="no"
7715 rescomp="windres"
7716 case "$target_cpu" in
7717 *i?86*)
7718 aros_target_cpu="i386"
7719 aros_object_format="elf_i386"
7720 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7721 aros_default_wbdepth=8
7722 gcc_target_cpu="i386"
7724 aros_target_as="i386-aros-as"
7725 aros_target_ar="i386-aros-ar"
7726 aros_target_ranlib="i386-aros-ranlib"
7727 aros_target_nm="i386-aros-nm"
7728 aros_target_strip="i386-aros-strip"
7729 aros_target_objcopy="i386-aros-objcopy"
7730 aros_target_objdump="i386-aros-objdump"
7732 target_tool_prefix="i386-mingw32-"
7734 *x86_64*)
7735 aros_target_cpu="x86_64"
7736 aros_object_format="elf_x86_64"
7737 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7738 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7739 aros_default_wbdepth=8
7740 target_tool_prefix="x86_64-w64-mingw32-"
7742 *arm*)
7743 aros_target_cpu="arm"
7744 aros_object_format="armelf_linux_eabi"
7745 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7746 aros_arch_libs="-laeabi"
7747 aros_default_wbdepth=8
7748 gcc_target_cpu="arm"
7749 target_tool_prefix="arm-mingw32ce-"
7750 aros_default_wbwidth=160
7751 aros_default_wbheight=160
7754 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7756 esac
7757 if test $host_os = "cygwin"; then
7758 aros_kernel_cflags="-mno-cygwin"
7761 pp*)
7762 aros_target_arch="pp"
7763 aros_shared_default="no"
7764 case "$target_cpu" in
7765 *m68k*)
7766 aros_target_cpu="m68k"
7767 aros_object_format="m68kelf"
7768 aros_flavour="palmnative"
7769 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7770 aros_default_wbwidth=160
7771 aros_default_wbheight=160
7772 aros_default_wbdepth=1
7773 aros_target_ar_flags="cru"
7774 aros_compiler_libs="-lgcc1"
7775 aros_shared_default=no
7776 aros_shared_cflags="-fpic"
7777 aros_shared_aflags=""
7778 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7779 aros_kernel_ldflags="-Wl,-rpath,./lib"
7780 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7781 aros_debug_aflags=""
7782 aros_debug_ldflags="$aros_symbols_debug"
7783 aros_mungwall_debug="0"
7784 aros_modules_debug="0"
7785 gcc_target_cpu="mc68000"
7786 ignore_undefined_symbols="-ius"
7789 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7791 esac
7794 mac*)
7795 aros_target_arch="mac"
7796 aros_shared_default="no"
7797 case "$target_cpu" in
7798 *m68k*)
7799 aros_target_cpu="m68k"
7800 aros_object_format="m68kelf"
7801 aros_flavour="mac68knative"
7802 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7803 aros_default_wbwidth=512
7804 aros_default_wbheight=384
7805 aros_default_wbdepth=8
7806 aros_target_ar_flags="cru"
7807 aros_compiler_libs="-lgcc1"
7808 aros_shared_default=no
7809 aros_shared_cflags="-fpic"
7810 aros_shared_aflags=""
7811 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7812 aros_kernel_ldflags="-Wl,-rpath,./lib"
7813 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
7814 aros_debug_aflags=""
7815 aros_debug_ldflags="$aros_symbols_debug"
7816 aros_mungwall_debug="0"
7817 aros_modules_debug="0"
7818 gcc_target_cpu="mc68000"
7819 ignore_undefined_symbols="-ius"
7822 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7824 esac
7828 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7830 esac
7832 #-----------------------------------------------------------------------------
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
7834 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
7836 # Check whether --with-crosstools was given.
7837 if test "${with_crosstools+set}" = set; then :
7838 withval=$with_crosstools; with_crosstools=$withval
7839 else
7840 with_crosstools="default"
7843 if test "$with_crosstools" = "default"; then
7844 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
7845 else
7846 AROS_CROSSTOOLSDIR="$with_crosstools"
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
7849 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
7851 if test "$crosstools" != "yes" -a "$with_crosstools" != "default"; then
7852 use_aros_gcc=yes
7853 PATH=$AROS_CROSSTOOLSDIR:$PATH
7854 target_tool_prefix=${target_cpu}-aros-
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7858 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7860 # Check whether --with-aros-gcc was given.
7861 if test "${with_aros_gcc+set}" = set; then :
7862 withval=$with_aros_gcc; aros_gcc_version="$withval"
7863 else
7864 aros_gcc_version="$use_aros_gcc"
7867 case "$aros_gcc_version" in
7868 yes)
7869 aros_gcc_version="default"
7872 aros_gcc_version="none"
7874 esac
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7876 $as_echo "$aros_gcc_version" >&6; }
7878 if test "$aros_gcc_version" != "none" -o "$crosstools" = "yes"; then
7879 if test "$aros_gcc_version" != "default" -a "$aros_gcc_version" != "none"; then
7880 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7881 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
7882 else
7883 aros_target_cc="$aros_target_cpu-aros-gcc"
7884 aros_target_cxx="$aros_target_cpu-aros-g++"
7887 aros_target_ld="$aros_target_cpu-aros-ld"
7888 aros_target_as="$aros_target_cpu-aros-as"
7889 aros_target_ar="$aros_target_cpu-aros-ar"
7890 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
7891 aros_target_nm="$aros_target_cpu-aros-nm"
7892 aros_target_strip="$aros_target_cpu-aros-strip"
7893 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
7894 aros_target_objdump="$aros_target_cpu-aros-objdump"
7897 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
7898 # Since we override specs, we may need to put these defines there
7899 if test "$gcc_target_cpu" != ""; then
7900 gcc_target_cpu="-D__${gcc_target_cpu}__"
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
7904 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
7906 # Check whether --with-portssources was given.
7907 if test "${with_portssources+set}" = set; then :
7908 withval=$with_portssources; with_portssrcdir=$withval
7909 else
7910 with_portssrcdir="default"
7913 if test "$with_portssrcdir" = "default"; then
7914 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7915 else
7916 AROS_PORTSSRCDIR="$with_portssrcdir"
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7919 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7922 $as_echo_n "checking which bootloader to use... " >&6; }
7924 # Check whether --with-bootloader was given.
7925 if test "${with_bootloader+set}" = set; then :
7926 withval=$with_bootloader; target_bootloader=$withval
7927 else
7928 target_bootloader=$target_bootloader
7931 if test "$target_bootloader" = "none"; then
7932 aros_target_bootloader=""
7933 else
7934 aros_target_bootloader="$target_bootloader"
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7937 $as_echo "$target_bootloader" >&6; }
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7940 $as_echo_n "checking which icon-set to use... " >&6; }
7942 # Check whether --with-iconset was given.
7943 if test "${with_iconset+set}" = set; then :
7944 withval=$with_iconset; target_iconset=$withval
7945 else
7946 target_iconset="default"
7949 if test "$target_iconset" = "default"; then
7950 aros_target_iconset="Gorilla"
7951 target_iconset="default (Gorilla)"
7952 else
7953 aros_target_iconset="$target_iconset"
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7956 $as_echo "$target_iconset" >&6; }
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7959 $as_echo_n "checking which GUI Theme to use... " >&6; }
7961 # Check whether --with-theme was given.
7962 if test "${with_theme+set}" = set; then :
7963 withval=$with_theme; target_guitheme=$withval
7964 else
7965 target_guitheme="default"
7968 if test "$target_guitheme" = "default"; then
7969 aros_target_guitheme="Ice"
7970 else
7971 aros_target_guitheme="$target_guitheme"
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7974 $as_echo "$aros_target_guitheme" >&6; }
7976 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7977 # for target code)
7978 cross_compiling=no
7979 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7980 cross_compiling=yes
7983 if test "$aros_host_cpu" == "x86_64" ; then
7984 if test "$aros_target_cpu" == "i386" ; then
7985 if test "$aros_target_arch" != "mingw32"; then
7986 cross_compiling=no
7991 if test "$aros_host_arch" == "darwin" ; then
7992 if test "$aros_target_arch" != "darwin" ; then
7993 cross_compiling=yes
7997 # I want to have this information in configure output, although it might be
7998 # misleading, e.g. for darwin hosted you cannot compile target code without a
7999 # cross compiler, but here it says no.
8000 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
8002 # Set prefix for target compiler etc. if we're cross-compiling
8003 # (should possibly be earlier but needs to be after AC_PROG_CC)
8004 if test "$cross_compiling" = "yes" ; then
8005 CC=${target_tool_prefix}gcc
8006 CPP=${target_tool_prefix}cpp
8007 if test "$target_tool_version" != "default"; then
8008 CC="$CC-$target_tool_version"
8009 CPP="$CC-$target_tool_version"
8011 if test "$crosstools" != "yes" ; then
8012 # Extract the first word of "$CC", so it can be a program name with args.
8013 set dummy $CC; ac_word=$2
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015 $as_echo_n "checking for $ac_word... " >&6; }
8016 if ${ac_cv_path_CC+:} false; then :
8017 $as_echo_n "(cached) " >&6
8018 else
8019 case $CC in
8020 [\\/]* | ?:[\\/]*)
8021 ac_cv_path_CC="$CC" # Let the user override the test with a path.
8024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8025 for as_dir in $PATH
8027 IFS=$as_save_IFS
8028 test -z "$as_dir" && as_dir=.
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8031 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
8032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 break 2
8035 done
8036 done
8037 IFS=$as_save_IFS
8040 esac
8042 CC=$ac_cv_path_CC
8043 if test -n "$CC"; then
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8045 $as_echo "$CC" >&6; }
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8048 $as_echo "no" >&6; }
8052 if test "$CC" = ""; then
8053 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8055 else
8056 CC=$AROS_CROSSTOOLSDIR/$CC
8059 CC="$CC $target_tool_flags"
8061 #-----------------------------------------------------------------------------
8063 # Disable pointer-signedness warnings if the compiler recognises the option
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8066 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8067 save_cflags="$CFLAGS"
8068 if test "$crosstools" != "yes" ; then
8069 CFLAGS="$CFLAGS -Wno-pointer-sign"
8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8074 main ()
8078 return 0;
8080 _ACEOF
8081 if ac_fn_c_try_compile "$LINENO"; then :
8082 use_no_sign_warning="yes"
8083 else
8084 use_no_sign_warning="no"
8086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8087 else
8088 # we do know it is supported for the smallest version of gcc we are going to build
8089 # we assume it's also supported by later versions
8090 use_no_sign_warning=yes
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8093 $as_echo "$use_no_sign_warning" >&6; }
8094 if test "x-$use_no_sign_warning" = "x-yes" ; then
8095 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8097 CFLAGS="$save_cflags"
8099 #-----------------------------------------------------------------------------
8101 # Find all the tools we need to compile. This could be cross-compiling
8102 # though! If that is the case we use the GNU form of the target and
8103 # simply add this to the front of the binary name. This is rather simple,
8104 # but it should work under most circumstances.
8106 # The default tools are to use the same as the host, but only if the
8107 # host and target CPU are the same. With GCC this is normally enough.
8110 aros_cc_pre=""
8111 aros_shared_ld="$aros_host_ld"
8113 aros_target_mkdep="$aros_host_mkdep"
8114 aros_target_incl_def="$aros_host_incl"
8116 aros_kernel_cc="$CC"
8118 # The default tools executables to be linked to.
8119 if test "$rescomp" != ""; then
8120 if test "$cross_compiling" = "yes" ; then
8121 rescomp=${target_tool_prefix}${rescomp}
8123 # Extract the first word of "$rescomp", so it can be a program name with args.
8124 set dummy $rescomp; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if ${ac_cv_path_aros_kernel_rescomp+:} false; then :
8128 $as_echo_n "(cached) " >&6
8129 else
8130 case $aros_kernel_rescomp in
8131 [\\/]* | ?:[\\/]*)
8132 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8138 IFS=$as_save_IFS
8139 test -z "$as_dir" && as_dir=.
8140 for ac_exec_ext in '' $ac_executable_extensions; do
8141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8142 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8144 break 2
8146 done
8147 done
8148 IFS=$as_save_IFS
8151 esac
8153 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8154 if test -n "$aros_kernel_rescomp"; then
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8156 $as_echo "$aros_kernel_rescomp" >&6; }
8157 else
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8159 $as_echo "no" >&6; }
8163 if test "$aros_kernel_rescomp" = ""; then
8164 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8168 if test "$crosstools" != "yes"; then
8170 if test "$aros_kernel_ld" = ""; then
8171 if test "$cross_compiling" = "yes" ; then
8172 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8173 set dummy ${target_tool_prefix}ld; ac_word=$2
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8175 $as_echo_n "checking for $ac_word... " >&6; }
8176 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8177 $as_echo_n "(cached) " >&6
8178 else
8179 case $aros_kernel_ld in
8180 [\\/]* | ?:[\\/]*)
8181 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8185 for as_dir in $PATH
8187 IFS=$as_save_IFS
8188 test -z "$as_dir" && as_dir=.
8189 for ac_exec_ext in '' $ac_executable_extensions; do
8190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8191 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8193 break 2
8195 done
8196 done
8197 IFS=$as_save_IFS
8200 esac
8202 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8203 if test -n "$aros_kernel_ld"; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8205 $as_echo "$aros_kernel_ld" >&6; }
8206 else
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8212 else
8213 if test "$GCC" = "yes"; then
8214 aros_gcc_ld=`$CC -print-prog-name=ld`
8215 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8216 set dummy `basename $aros_gcc_ld`; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 case $aros_kernel_ld in
8223 [\\/]* | ?:[\\/]*)
8224 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8228 for as_dir in `dirname $aros_gcc_ld`
8230 IFS=$as_save_IFS
8231 test -z "$as_dir" && as_dir=.
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8234 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8236 break 2
8238 done
8239 done
8240 IFS=$as_save_IFS
8243 esac
8245 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8246 if test -n "$aros_kernel_ld"; then
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8248 $as_echo "$aros_kernel_ld" >&6; }
8249 else
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 $as_echo "no" >&6; }
8256 if test "$aros_kernel_ld" = ""; then
8257 # Extract the first word of "ld", so it can be a program name with args.
8258 set dummy ld; ac_word=$2
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8260 $as_echo_n "checking for $ac_word... " >&6; }
8261 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8262 $as_echo_n "(cached) " >&6
8263 else
8264 case $aros_kernel_ld in
8265 [\\/]* | ?:[\\/]*)
8266 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8272 IFS=$as_save_IFS
8273 test -z "$as_dir" && as_dir=.
8274 for ac_exec_ext in '' $ac_executable_extensions; do
8275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8276 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 break 2
8280 done
8281 done
8282 IFS=$as_save_IFS
8285 esac
8287 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8288 if test -n "$aros_kernel_ld"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8290 $as_echo "$aros_kernel_ld" >&6; }
8291 else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8299 else
8300 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8301 set dummy $aros_kernel_ld; ac_word=$2
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 $as_echo_n "checking for $ac_word... " >&6; }
8304 if ${ac_cv_path_aros_kernel_ld+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 case $aros_kernel_ld in
8308 [\\/]* | ?:[\\/]*)
8309 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $PATH
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8319 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8323 done
8324 done
8325 IFS=$as_save_IFS
8328 esac
8330 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8331 if test -n "$aros_kernel_ld"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8333 $as_echo "$aros_kernel_ld" >&6; }
8334 else
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8342 if test "$aros_kernel_ld" = ""; then
8343 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8346 if test "$aros_kernel_ar" = ""; then
8347 if test "$cross_compiling" = "yes" ; then
8348 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8349 set dummy ${target_tool_prefix}ar; ac_word=$2
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 $as_echo_n "checking for $ac_word... " >&6; }
8352 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8353 $as_echo_n "(cached) " >&6
8354 else
8355 case $aros_kernel_ar in
8356 [\\/]* | ?:[\\/]*)
8357 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8361 for as_dir in $PATH
8363 IFS=$as_save_IFS
8364 test -z "$as_dir" && as_dir=.
8365 for ac_exec_ext in '' $ac_executable_extensions; do
8366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8367 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 break 2
8371 done
8372 done
8373 IFS=$as_save_IFS
8376 esac
8378 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8379 if test -n "$aros_kernel_ar"; then
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8381 $as_echo "$aros_kernel_ar" >&6; }
8382 else
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8384 $as_echo "no" >&6; }
8388 else
8389 if test "$GCC" = "yes"; then
8390 aros_gcc_ar=`$CC -print-prog-name=ar`
8391 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8392 set dummy `basename $aros_gcc_ar`; ac_word=$2
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8394 $as_echo_n "checking for $ac_word... " >&6; }
8395 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 case $aros_kernel_ar in
8399 [\\/]* | ?:[\\/]*)
8400 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8404 for as_dir in `dirname $aros_gcc_ar`
8406 IFS=$as_save_IFS
8407 test -z "$as_dir" && as_dir=.
8408 for ac_exec_ext in '' $ac_executable_extensions; do
8409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8410 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412 break 2
8414 done
8415 done
8416 IFS=$as_save_IFS
8419 esac
8421 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8422 if test -n "$aros_kernel_ar"; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8424 $as_echo "$aros_kernel_ar" >&6; }
8425 else
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8432 if test "$aros_kernel_ar" = ""; then
8433 # Extract the first word of "ar", so it can be a program name with args.
8434 set dummy ar; ac_word=$2
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436 $as_echo_n "checking for $ac_word... " >&6; }
8437 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8438 $as_echo_n "(cached) " >&6
8439 else
8440 case $aros_kernel_ar in
8441 [\\/]* | ?:[\\/]*)
8442 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 for as_dir in $PATH
8448 IFS=$as_save_IFS
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8452 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454 break 2
8456 done
8457 done
8458 IFS=$as_save_IFS
8461 esac
8463 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8464 if test -n "$aros_kernel_ar"; then
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8466 $as_echo "$aros_kernel_ar" >&6; }
8467 else
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 $as_echo "no" >&6; }
8475 else
8476 # Extract the first word of "$aros_kernel_ar", so it can be a program name with args.
8477 set dummy $aros_kernel_ar; ac_word=$2
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8479 $as_echo_n "checking for $ac_word... " >&6; }
8480 if ${ac_cv_path_aros_kernel_ar+:} false; then :
8481 $as_echo_n "(cached) " >&6
8482 else
8483 case $aros_kernel_ar in
8484 [\\/]* | ?:[\\/]*)
8485 ac_cv_path_aros_kernel_ar="$aros_kernel_ar" # Let the user override the test with a path.
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8489 for as_dir in $PATH
8491 IFS=$as_save_IFS
8492 test -z "$as_dir" && as_dir=.
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8495 ac_cv_path_aros_kernel_ar="$as_dir/$ac_word$ac_exec_ext"
8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8497 break 2
8499 done
8500 done
8501 IFS=$as_save_IFS
8504 esac
8506 aros_kernel_ar=$ac_cv_path_aros_kernel_ar
8507 if test -n "$aros_kernel_ar"; then
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ar" >&5
8509 $as_echo "$aros_kernel_ar" >&6; }
8510 else
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8512 $as_echo "no" >&6; }
8518 if test "$aros_kernel_ar" = ""; then
8519 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8522 if test "$aros_kernel_ranlib" = ""; then
8523 if test "$cross_compiling" = "yes" ; then
8524 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8525 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8527 $as_echo_n "checking for $ac_word... " >&6; }
8528 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8529 $as_echo_n "(cached) " >&6
8530 else
8531 case $aros_kernel_ranlib in
8532 [\\/]* | ?:[\\/]*)
8533 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8537 for as_dir in $PATH
8539 IFS=$as_save_IFS
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8543 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8545 break 2
8547 done
8548 done
8549 IFS=$as_save_IFS
8552 esac
8554 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8555 if test -n "$aros_kernel_ranlib"; then
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8557 $as_echo "$aros_kernel_ranlib" >&6; }
8558 else
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8564 else
8565 if test "$GCC" = "yes"; then
8566 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8567 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8568 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8570 $as_echo_n "checking for $ac_word... " >&6; }
8571 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8572 $as_echo_n "(cached) " >&6
8573 else
8574 case $aros_kernel_ranlib in
8575 [\\/]* | ?:[\\/]*)
8576 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8580 for as_dir in `dirname $aros_gcc_ranlib`
8582 IFS=$as_save_IFS
8583 test -z "$as_dir" && as_dir=.
8584 for ac_exec_ext in '' $ac_executable_extensions; do
8585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8586 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8588 break 2
8590 done
8591 done
8592 IFS=$as_save_IFS
8595 esac
8597 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8598 if test -n "$aros_kernel_ranlib"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8600 $as_echo "$aros_kernel_ranlib" >&6; }
8601 else
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8603 $as_echo "no" >&6; }
8608 if test "$aros_kernel_ranlib" = ""; then
8609 # Extract the first word of "ranlib", so it can be a program name with args.
8610 set dummy ranlib; ac_word=$2
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8612 $as_echo_n "checking for $ac_word... " >&6; }
8613 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8614 $as_echo_n "(cached) " >&6
8615 else
8616 case $aros_kernel_ranlib in
8617 [\\/]* | ?:[\\/]*)
8618 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8622 for as_dir in $PATH
8624 IFS=$as_save_IFS
8625 test -z "$as_dir" && as_dir=.
8626 for ac_exec_ext in '' $ac_executable_extensions; do
8627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8628 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8630 break 2
8632 done
8633 done
8634 IFS=$as_save_IFS
8637 esac
8639 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8640 if test -n "$aros_kernel_ranlib"; then
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8642 $as_echo "$aros_kernel_ranlib" >&6; }
8643 else
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645 $as_echo "no" >&6; }
8651 else
8652 # Extract the first word of "$aros_kernel_ranlib", so it can be a program name with args.
8653 set dummy $aros_kernel_ranlib; ac_word=$2
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8655 $as_echo_n "checking for $ac_word... " >&6; }
8656 if ${ac_cv_path_aros_kernel_ranlib+:} false; then :
8657 $as_echo_n "(cached) " >&6
8658 else
8659 case $aros_kernel_ranlib in
8660 [\\/]* | ?:[\\/]*)
8661 ac_cv_path_aros_kernel_ranlib="$aros_kernel_ranlib" # Let the user override the test with a path.
8664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 for as_dir in $PATH
8667 IFS=$as_save_IFS
8668 test -z "$as_dir" && as_dir=.
8669 for ac_exec_ext in '' $ac_executable_extensions; do
8670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8671 ac_cv_path_aros_kernel_ranlib="$as_dir/$ac_word$ac_exec_ext"
8672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8673 break 2
8675 done
8676 done
8677 IFS=$as_save_IFS
8680 esac
8682 aros_kernel_ranlib=$ac_cv_path_aros_kernel_ranlib
8683 if test -n "$aros_kernel_ranlib"; then
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ranlib" >&5
8685 $as_echo "$aros_kernel_ranlib" >&6; }
8686 else
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8688 $as_echo "no" >&6; }
8694 if test "$aros_kernel_ranlib" = ""; then
8695 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8698 if test "$target_tool_prefix" != "${target_cpu}-elf-" ; then
8699 target_tool_prefix=${target_cpu}-elf-
8700 if test "$aros_target_cc" == ""; then
8701 aros_target_cc="${target_tool_prefix}gcc"
8703 if test "$aros_target_ld" == ""; then
8704 aros_target_ld="${target_tool_prefix}ld"
8708 if test "$aros_target_as" = ""; then
8709 if test "$cross_compiling" = "yes" ; then
8710 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8711 set dummy ${target_tool_prefix}as; ac_word=$2
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8713 $as_echo_n "checking for $ac_word... " >&6; }
8714 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8715 $as_echo_n "(cached) " >&6
8716 else
8717 case $aros_target_as_ln in
8718 [\\/]* | ?:[\\/]*)
8719 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $PATH
8725 IFS=$as_save_IFS
8726 test -z "$as_dir" && as_dir=.
8727 for ac_exec_ext in '' $ac_executable_extensions; do
8728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8729 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731 break 2
8733 done
8734 done
8735 IFS=$as_save_IFS
8738 esac
8740 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8741 if test -n "$aros_target_as_ln"; then
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8743 $as_echo "$aros_target_as_ln" >&6; }
8744 else
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8746 $as_echo "no" >&6; }
8750 else
8751 if test "$GCC" = "yes"; then
8752 aros_gcc_as=`$CC -print-prog-name=as`
8753 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8754 set dummy `basename $aros_gcc_as`; ac_word=$2
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8756 $as_echo_n "checking for $ac_word... " >&6; }
8757 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8758 $as_echo_n "(cached) " >&6
8759 else
8760 case $aros_target_as_ln in
8761 [\\/]* | ?:[\\/]*)
8762 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8766 for as_dir in `dirname $aros_gcc_as`
8768 IFS=$as_save_IFS
8769 test -z "$as_dir" && as_dir=.
8770 for ac_exec_ext in '' $ac_executable_extensions; do
8771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8772 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8774 break 2
8776 done
8777 done
8778 IFS=$as_save_IFS
8781 esac
8783 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8784 if test -n "$aros_target_as_ln"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8786 $as_echo "$aros_target_as_ln" >&6; }
8787 else
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8794 if test "$aros_target_as_ln" = ""; then
8795 # Extract the first word of "as", so it can be a program name with args.
8796 set dummy as; ac_word=$2
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798 $as_echo_n "checking for $ac_word... " >&6; }
8799 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 case $aros_target_as_ln in
8803 [\\/]* | ?:[\\/]*)
8804 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 for as_dir in $PATH
8810 IFS=$as_save_IFS
8811 test -z "$as_dir" && as_dir=.
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8814 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 break 2
8818 done
8819 done
8820 IFS=$as_save_IFS
8823 esac
8825 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8826 if test -n "$aros_target_as_ln"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8828 $as_echo "$aros_target_as_ln" >&6; }
8829 else
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8837 else
8838 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8839 set dummy $aros_target_as; ac_word=$2
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8841 $as_echo_n "checking for $ac_word... " >&6; }
8842 if ${ac_cv_path_aros_target_as_ln+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 case $aros_target_as_ln in
8846 [\\/]* | ?:[\\/]*)
8847 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8851 for as_dir in $PATH
8853 IFS=$as_save_IFS
8854 test -z "$as_dir" && as_dir=.
8855 for ac_exec_ext in '' $ac_executable_extensions; do
8856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8857 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8859 break 2
8861 done
8862 done
8863 IFS=$as_save_IFS
8866 esac
8868 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8869 if test -n "$aros_target_as_ln"; then
8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8871 $as_echo "$aros_target_as_ln" >&6; }
8872 else
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8874 $as_echo "no" >&6; }
8880 if test "$aros_target_as_ln" = ""; then
8881 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
8884 if test "$aros_target_ar" = ""; then
8885 if test "$cross_compiling" = "yes" ; then
8886 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8887 set dummy ${target_tool_prefix}ar; ac_word=$2
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8889 $as_echo_n "checking for $ac_word... " >&6; }
8890 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
8891 $as_echo_n "(cached) " >&6
8892 else
8893 case $aros_target_ar_ln in
8894 [\\/]* | ?:[\\/]*)
8895 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899 for as_dir in $PATH
8901 IFS=$as_save_IFS
8902 test -z "$as_dir" && as_dir=.
8903 for ac_exec_ext in '' $ac_executable_extensions; do
8904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8905 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8907 break 2
8909 done
8910 done
8911 IFS=$as_save_IFS
8914 esac
8916 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8917 if test -n "$aros_target_ar_ln"; then
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8919 $as_echo "$aros_target_ar_ln" >&6; }
8920 else
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8922 $as_echo "no" >&6; }
8926 else
8927 if test "$GCC" = "yes"; then
8928 aros_gcc_ar=`$CC -print-prog-name=ar`
8929 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8930 set dummy `basename $aros_gcc_ar`; ac_word=$2
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8932 $as_echo_n "checking for $ac_word... " >&6; }
8933 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
8934 $as_echo_n "(cached) " >&6
8935 else
8936 case $aros_target_ar_ln in
8937 [\\/]* | ?:[\\/]*)
8938 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8942 for as_dir in `dirname $aros_gcc_ar`
8944 IFS=$as_save_IFS
8945 test -z "$as_dir" && as_dir=.
8946 for ac_exec_ext in '' $ac_executable_extensions; do
8947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8948 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8950 break 2
8952 done
8953 done
8954 IFS=$as_save_IFS
8957 esac
8959 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8960 if test -n "$aros_target_ar_ln"; then
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8962 $as_echo "$aros_target_ar_ln" >&6; }
8963 else
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8965 $as_echo "no" >&6; }
8970 if test "$aros_target_ar_ln" = ""; then
8971 # Extract the first word of "ar", so it can be a program name with args.
8972 set dummy ar; ac_word=$2
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8974 $as_echo_n "checking for $ac_word... " >&6; }
8975 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 case $aros_target_ar_ln in
8979 [\\/]* | ?:[\\/]*)
8980 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984 for as_dir in $PATH
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8990 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 break 2
8994 done
8995 done
8996 IFS=$as_save_IFS
8999 esac
9001 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9002 if test -n "$aros_target_ar_ln"; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9004 $as_echo "$aros_target_ar_ln" >&6; }
9005 else
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9013 else
9014 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9015 set dummy $aros_target_ar; ac_word=$2
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9017 $as_echo_n "checking for $ac_word... " >&6; }
9018 if ${ac_cv_path_aros_target_ar_ln+:} false; then :
9019 $as_echo_n "(cached) " >&6
9020 else
9021 case $aros_target_ar_ln in
9022 [\\/]* | ?:[\\/]*)
9023 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9027 for as_dir in $PATH
9029 IFS=$as_save_IFS
9030 test -z "$as_dir" && as_dir=.
9031 for ac_exec_ext in '' $ac_executable_extensions; do
9032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9033 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9035 break 2
9037 done
9038 done
9039 IFS=$as_save_IFS
9042 esac
9044 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9045 if test -n "$aros_target_ar_ln"; then
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
9047 $as_echo "$aros_target_ar_ln" >&6; }
9048 else
9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9050 $as_echo "no" >&6; }
9056 if test "$aros_target_ar_ln" = ""; then
9057 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
9060 if test "$aros_target_nm" = ""; then
9061 if test "$cross_compiling" = "yes" ; then
9062 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9063 set dummy ${target_tool_prefix}nm; ac_word=$2
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9065 $as_echo_n "checking for $ac_word... " >&6; }
9066 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9067 $as_echo_n "(cached) " >&6
9068 else
9069 case $aros_target_nm_ln in
9070 [\\/]* | ?:[\\/]*)
9071 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075 for as_dir in $PATH
9077 IFS=$as_save_IFS
9078 test -z "$as_dir" && as_dir=.
9079 for ac_exec_ext in '' $ac_executable_extensions; do
9080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9081 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9083 break 2
9085 done
9086 done
9087 IFS=$as_save_IFS
9090 esac
9092 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9093 if test -n "$aros_target_nm_ln"; then
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9095 $as_echo "$aros_target_nm_ln" >&6; }
9096 else
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9098 $as_echo "no" >&6; }
9102 else
9103 if test "$GCC" = "yes"; then
9104 aros_gcc_nm=`$CC -print-prog-name=nm`
9105 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9106 set dummy `basename $aros_gcc_nm`; ac_word=$2
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9108 $as_echo_n "checking for $ac_word... " >&6; }
9109 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 case $aros_target_nm_ln in
9113 [\\/]* | ?:[\\/]*)
9114 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9118 for as_dir in `dirname $aros_gcc_nm`
9120 IFS=$as_save_IFS
9121 test -z "$as_dir" && as_dir=.
9122 for ac_exec_ext in '' $ac_executable_extensions; do
9123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9124 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9126 break 2
9128 done
9129 done
9130 IFS=$as_save_IFS
9133 esac
9135 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9136 if test -n "$aros_target_nm_ln"; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9138 $as_echo "$aros_target_nm_ln" >&6; }
9139 else
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9146 if test "$aros_target_nm_ln" = ""; then
9147 # Extract the first word of "nm", so it can be a program name with args.
9148 set dummy nm; ac_word=$2
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9150 $as_echo_n "checking for $ac_word... " >&6; }
9151 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9152 $as_echo_n "(cached) " >&6
9153 else
9154 case $aros_target_nm_ln in
9155 [\\/]* | ?:[\\/]*)
9156 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160 for as_dir in $PATH
9162 IFS=$as_save_IFS
9163 test -z "$as_dir" && as_dir=.
9164 for ac_exec_ext in '' $ac_executable_extensions; do
9165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9166 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9168 break 2
9170 done
9171 done
9172 IFS=$as_save_IFS
9175 esac
9177 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9178 if test -n "$aros_target_nm_ln"; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9180 $as_echo "$aros_target_nm_ln" >&6; }
9181 else
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9183 $as_echo "no" >&6; }
9189 else
9190 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
9191 set dummy $aros_target_nm; ac_word=$2
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9193 $as_echo_n "checking for $ac_word... " >&6; }
9194 if ${ac_cv_path_aros_target_nm_ln+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 case $aros_target_nm_ln in
9198 [\\/]* | ?:[\\/]*)
9199 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203 for as_dir in $PATH
9205 IFS=$as_save_IFS
9206 test -z "$as_dir" && as_dir=.
9207 for ac_exec_ext in '' $ac_executable_extensions; do
9208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9209 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9211 break 2
9213 done
9214 done
9215 IFS=$as_save_IFS
9218 esac
9220 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9221 if test -n "$aros_target_nm_ln"; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
9223 $as_echo "$aros_target_nm_ln" >&6; }
9224 else
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226 $as_echo "no" >&6; }
9232 if test "$aros_target_nm_ln" = ""; then
9233 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
9236 if test "$aros_target_objcopy" = ""; then
9237 if test "$cross_compiling" = "yes" ; then
9238 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9239 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9241 $as_echo_n "checking for $ac_word... " >&6; }
9242 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9243 $as_echo_n "(cached) " >&6
9244 else
9245 case $aros_target_objcopy_ln in
9246 [\\/]* | ?:[\\/]*)
9247 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9251 for as_dir in $PATH
9253 IFS=$as_save_IFS
9254 test -z "$as_dir" && as_dir=.
9255 for ac_exec_ext in '' $ac_executable_extensions; do
9256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9257 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9259 break 2
9261 done
9262 done
9263 IFS=$as_save_IFS
9266 esac
9268 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9269 if test -n "$aros_target_objcopy_ln"; then
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9271 $as_echo "$aros_target_objcopy_ln" >&6; }
9272 else
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9274 $as_echo "no" >&6; }
9278 else
9279 if test "$GCC" = "yes"; then
9280 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9281 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9282 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9284 $as_echo_n "checking for $ac_word... " >&6; }
9285 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9286 $as_echo_n "(cached) " >&6
9287 else
9288 case $aros_target_objcopy_ln in
9289 [\\/]* | ?:[\\/]*)
9290 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9294 for as_dir in `dirname $aros_gcc_objcopy`
9296 IFS=$as_save_IFS
9297 test -z "$as_dir" && as_dir=.
9298 for ac_exec_ext in '' $ac_executable_extensions; do
9299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9300 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9302 break 2
9304 done
9305 done
9306 IFS=$as_save_IFS
9309 esac
9311 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9312 if test -n "$aros_target_objcopy_ln"; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9314 $as_echo "$aros_target_objcopy_ln" >&6; }
9315 else
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317 $as_echo "no" >&6; }
9322 if test "$aros_target_objcopy_ln" = ""; then
9323 # Extract the first word of "objcopy", so it can be a program name with args.
9324 set dummy objcopy; ac_word=$2
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326 $as_echo_n "checking for $ac_word... " >&6; }
9327 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9328 $as_echo_n "(cached) " >&6
9329 else
9330 case $aros_target_objcopy_ln in
9331 [\\/]* | ?:[\\/]*)
9332 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336 for as_dir in $PATH
9338 IFS=$as_save_IFS
9339 test -z "$as_dir" && as_dir=.
9340 for ac_exec_ext in '' $ac_executable_extensions; do
9341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9342 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9344 break 2
9346 done
9347 done
9348 IFS=$as_save_IFS
9351 esac
9353 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9354 if test -n "$aros_target_objcopy_ln"; then
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9356 $as_echo "$aros_target_objcopy_ln" >&6; }
9357 else
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9359 $as_echo "no" >&6; }
9365 else
9366 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
9367 set dummy $aros_target_objcopy; ac_word=$2
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9369 $as_echo_n "checking for $ac_word... " >&6; }
9370 if ${ac_cv_path_aros_target_objcopy_ln+:} false; then :
9371 $as_echo_n "(cached) " >&6
9372 else
9373 case $aros_target_objcopy_ln in
9374 [\\/]* | ?:[\\/]*)
9375 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9379 for as_dir in $PATH
9381 IFS=$as_save_IFS
9382 test -z "$as_dir" && as_dir=.
9383 for ac_exec_ext in '' $ac_executable_extensions; do
9384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9385 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9387 break 2
9389 done
9390 done
9391 IFS=$as_save_IFS
9394 esac
9396 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9397 if test -n "$aros_target_objcopy_ln"; then
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9399 $as_echo "$aros_target_objcopy_ln" >&6; }
9400 else
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9402 $as_echo "no" >&6; }
9408 if test "$aros_target_objcopy_ln" = ""; then
9409 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9412 if test "$aros_target_objdump" = ""; then
9413 if test "$cross_compiling" = "yes" ; then
9414 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9415 set dummy ${target_tool_prefix}objdump; ac_word=$2
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9417 $as_echo_n "checking for $ac_word... " >&6; }
9418 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9419 $as_echo_n "(cached) " >&6
9420 else
9421 case $aros_target_objdump_ln in
9422 [\\/]* | ?:[\\/]*)
9423 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9433 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9435 break 2
9437 done
9438 done
9439 IFS=$as_save_IFS
9442 esac
9444 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9445 if test -n "$aros_target_objdump_ln"; then
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9447 $as_echo "$aros_target_objdump_ln" >&6; }
9448 else
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9450 $as_echo "no" >&6; }
9454 else
9455 if test "$GCC" = "yes"; then
9456 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9457 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9458 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9460 $as_echo_n "checking for $ac_word... " >&6; }
9461 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9462 $as_echo_n "(cached) " >&6
9463 else
9464 case $aros_target_objdump_ln in
9465 [\\/]* | ?:[\\/]*)
9466 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470 for as_dir in `dirname $aros_gcc_objdump`
9472 IFS=$as_save_IFS
9473 test -z "$as_dir" && as_dir=.
9474 for ac_exec_ext in '' $ac_executable_extensions; do
9475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9476 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9478 break 2
9480 done
9481 done
9482 IFS=$as_save_IFS
9485 esac
9487 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9488 if test -n "$aros_target_objdump_ln"; then
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9490 $as_echo "$aros_target_objdump_ln" >&6; }
9491 else
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9493 $as_echo "no" >&6; }
9498 if test "$aros_target_objdump_ln" = ""; then
9499 # Extract the first word of "objdump", so it can be a program name with args.
9500 set dummy objdump; ac_word=$2
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9502 $as_echo_n "checking for $ac_word... " >&6; }
9503 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9504 $as_echo_n "(cached) " >&6
9505 else
9506 case $aros_target_objdump_ln in
9507 [\\/]* | ?:[\\/]*)
9508 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9512 for as_dir in $PATH
9514 IFS=$as_save_IFS
9515 test -z "$as_dir" && as_dir=.
9516 for ac_exec_ext in '' $ac_executable_extensions; do
9517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9518 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9520 break 2
9522 done
9523 done
9524 IFS=$as_save_IFS
9527 esac
9529 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9530 if test -n "$aros_target_objdump_ln"; then
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9532 $as_echo "$aros_target_objdump_ln" >&6; }
9533 else
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535 $as_echo "no" >&6; }
9541 else
9542 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9543 set dummy $aros_target_objdump; ac_word=$2
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9545 $as_echo_n "checking for $ac_word... " >&6; }
9546 if ${ac_cv_path_aros_target_objdump_ln+:} false; then :
9547 $as_echo_n "(cached) " >&6
9548 else
9549 case $aros_target_objdump_ln in
9550 [\\/]* | ?:[\\/]*)
9551 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9555 for as_dir in $PATH
9557 IFS=$as_save_IFS
9558 test -z "$as_dir" && as_dir=.
9559 for ac_exec_ext in '' $ac_executable_extensions; do
9560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9561 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9563 break 2
9565 done
9566 done
9567 IFS=$as_save_IFS
9570 esac
9572 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9573 if test -n "$aros_target_objdump_ln"; then
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9575 $as_echo "$aros_target_objdump_ln" >&6; }
9576 else
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 $as_echo "no" >&6; }
9584 if test "$aros_target_objdump_ln" = ""; then
9585 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9588 if test "$aros_target_ranlib" = ""; then
9589 if test "$cross_compiling" = "yes" ; then
9590 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9591 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9593 $as_echo_n "checking for $ac_word... " >&6; }
9594 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9595 $as_echo_n "(cached) " >&6
9596 else
9597 case $aros_target_ranlib_ln in
9598 [\\/]* | ?:[\\/]*)
9599 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603 for as_dir in $PATH
9605 IFS=$as_save_IFS
9606 test -z "$as_dir" && as_dir=.
9607 for ac_exec_ext in '' $ac_executable_extensions; do
9608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9609 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9611 break 2
9613 done
9614 done
9615 IFS=$as_save_IFS
9618 esac
9620 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9621 if test -n "$aros_target_ranlib_ln"; then
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9623 $as_echo "$aros_target_ranlib_ln" >&6; }
9624 else
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9626 $as_echo "no" >&6; }
9630 else
9631 if test "$GCC" = "yes"; then
9632 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9633 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9634 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9636 $as_echo_n "checking for $ac_word... " >&6; }
9637 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9638 $as_echo_n "(cached) " >&6
9639 else
9640 case $aros_target_ranlib_ln in
9641 [\\/]* | ?:[\\/]*)
9642 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9646 for as_dir in `dirname $aros_gcc_ranlib`
9648 IFS=$as_save_IFS
9649 test -z "$as_dir" && as_dir=.
9650 for ac_exec_ext in '' $ac_executable_extensions; do
9651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9652 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9654 break 2
9656 done
9657 done
9658 IFS=$as_save_IFS
9661 esac
9663 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9664 if test -n "$aros_target_ranlib_ln"; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9666 $as_echo "$aros_target_ranlib_ln" >&6; }
9667 else
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669 $as_echo "no" >&6; }
9674 if test "$aros_target_ranlib_ln" = ""; then
9675 # Extract the first word of "ranlib", so it can be a program name with args.
9676 set dummy ranlib; ac_word=$2
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9678 $as_echo_n "checking for $ac_word... " >&6; }
9679 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9682 case $aros_target_ranlib_ln in
9683 [\\/]* | ?:[\\/]*)
9684 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9688 for as_dir in $PATH
9690 IFS=$as_save_IFS
9691 test -z "$as_dir" && as_dir=.
9692 for ac_exec_ext in '' $ac_executable_extensions; do
9693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9694 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9696 break 2
9698 done
9699 done
9700 IFS=$as_save_IFS
9703 esac
9705 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9706 if test -n "$aros_target_ranlib_ln"; then
9707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9708 $as_echo "$aros_target_ranlib_ln" >&6; }
9709 else
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9711 $as_echo "no" >&6; }
9717 else
9718 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9719 set dummy $aros_target_ranlib; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if ${ac_cv_path_aros_target_ranlib_ln+:} false; then :
9723 $as_echo_n "(cached) " >&6
9724 else
9725 case $aros_target_ranlib_ln in
9726 [\\/]* | ?:[\\/]*)
9727 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731 for as_dir in $PATH
9733 IFS=$as_save_IFS
9734 test -z "$as_dir" && as_dir=.
9735 for ac_exec_ext in '' $ac_executable_extensions; do
9736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9737 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9739 break 2
9741 done
9742 done
9743 IFS=$as_save_IFS
9746 esac
9748 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9749 if test -n "$aros_target_ranlib_ln"; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9751 $as_echo "$aros_target_ranlib_ln" >&6; }
9752 else
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754 $as_echo "no" >&6; }
9760 if test "$aros_target_ranlib_ln" = ""; then
9761 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9764 if test "$aros_target_strip" = ""; then
9765 if test "$cross_compiling" = "yes" ; then
9766 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9767 set dummy ${target_tool_prefix}strip; ac_word=$2
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9769 $as_echo_n "checking for $ac_word... " >&6; }
9770 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772 else
9773 case $aros_target_strip_ln in
9774 [\\/]* | ?:[\\/]*)
9775 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9779 for as_dir in $PATH
9781 IFS=$as_save_IFS
9782 test -z "$as_dir" && as_dir=.
9783 for ac_exec_ext in '' $ac_executable_extensions; do
9784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9785 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9787 break 2
9789 done
9790 done
9791 IFS=$as_save_IFS
9794 esac
9796 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9797 if test -n "$aros_target_strip_ln"; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9799 $as_echo "$aros_target_strip_ln" >&6; }
9800 else
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802 $as_echo "no" >&6; }
9806 else
9807 if test "$GCC" = "yes"; then
9808 aros_gcc_strip=`$CC -print-prog-name=strip`
9809 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9810 set dummy `basename $aros_gcc_strip`; ac_word=$2
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9812 $as_echo_n "checking for $ac_word... " >&6; }
9813 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9814 $as_echo_n "(cached) " >&6
9815 else
9816 case $aros_target_strip_ln in
9817 [\\/]* | ?:[\\/]*)
9818 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9822 for as_dir in `dirname $aros_gcc_strip`
9824 IFS=$as_save_IFS
9825 test -z "$as_dir" && as_dir=.
9826 for ac_exec_ext in '' $ac_executable_extensions; do
9827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9828 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9830 break 2
9832 done
9833 done
9834 IFS=$as_save_IFS
9837 esac
9839 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9840 if test -n "$aros_target_strip_ln"; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9842 $as_echo "$aros_target_strip_ln" >&6; }
9843 else
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9845 $as_echo "no" >&6; }
9850 if test "$aros_target_strip_ln" = ""; then
9851 # Extract the first word of "strip", so it can be a program name with args.
9852 set dummy strip; ac_word=$2
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9854 $as_echo_n "checking for $ac_word... " >&6; }
9855 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9856 $as_echo_n "(cached) " >&6
9857 else
9858 case $aros_target_strip_ln in
9859 [\\/]* | ?:[\\/]*)
9860 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864 for as_dir in $PATH
9866 IFS=$as_save_IFS
9867 test -z "$as_dir" && as_dir=.
9868 for ac_exec_ext in '' $ac_executable_extensions; do
9869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9870 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 break 2
9874 done
9875 done
9876 IFS=$as_save_IFS
9879 esac
9881 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9882 if test -n "$aros_target_strip_ln"; then
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9884 $as_echo "$aros_target_strip_ln" >&6; }
9885 else
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9887 $as_echo "no" >&6; }
9893 else
9894 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9895 set dummy $aros_target_strip; ac_word=$2
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9897 $as_echo_n "checking for $ac_word... " >&6; }
9898 if ${ac_cv_path_aros_target_strip_ln+:} false; then :
9899 $as_echo_n "(cached) " >&6
9900 else
9901 case $aros_target_strip_ln in
9902 [\\/]* | ?:[\\/]*)
9903 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907 for as_dir in $PATH
9909 IFS=$as_save_IFS
9910 test -z "$as_dir" && as_dir=.
9911 for ac_exec_ext in '' $ac_executable_extensions; do
9912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9913 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9915 break 2
9917 done
9918 done
9919 IFS=$as_save_IFS
9922 esac
9924 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9925 if test -n "$aros_target_strip_ln"; then
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9927 $as_echo "$aros_target_strip_ln" >&6; }
9928 else
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930 $as_echo "no" >&6; }
9936 if test "$aros_target_strip_ln" = ""; then
9937 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9939 if test "$aros_target_cxx" != ""; then
9940 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9941 set dummy $aros_target_cxx; ac_word=$2
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9943 $as_echo_n "checking for $ac_word... " >&6; }
9944 if ${ac_cv_path_aros_target_cxx+:} false; then :
9945 $as_echo_n "(cached) " >&6
9946 else
9947 case $aros_target_cxx in
9948 [\\/]* | ?:[\\/]*)
9949 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
9952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953 for as_dir in $PATH
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
9957 for ac_exec_ext in '' $ac_executable_extensions; do
9958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9959 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
9960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9961 break 2
9963 done
9964 done
9965 IFS=$as_save_IFS
9968 esac
9970 aros_target_cxx=$ac_cv_path_aros_target_cxx
9971 if test -n "$aros_target_cxx"; then
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
9973 $as_echo "$aros_target_cxx" >&6; }
9974 else
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9976 $as_echo "no" >&6; }
9980 if test "$aros_target_cxx" = ""; then
9981 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
9984 else
9985 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
9986 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
9987 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
9988 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
9989 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
9990 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
9991 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
9992 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
9993 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
9995 aros_kernel_ar=$AROS_CROSSTOOLSDIR/$aros_target_ar
9996 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
9997 aros_kernel_ranlib=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
9999 crosstools_target=tools-crosstools
10002 aros_kernel_ar="$aros_kernel_ar $aros_kernel_ar_flags"
10004 orig_target_cc=$aros_kernel_cc
10005 orig_target_ld=$aros_kernel_ld
10007 if test "$crosstools" != "yes"; then
10008 if test "$aros_target_cc" != ""; then
10009 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
10010 set dummy $aros_target_cc; ac_word=$2
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10012 $as_echo_n "checking for $ac_word... " >&6; }
10013 if ${ac_cv_path_aros_target_cc+:} false; then :
10014 $as_echo_n "(cached) " >&6
10015 else
10016 case $aros_target_cc in
10017 [\\/]* | ?:[\\/]*)
10018 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
10021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022 for as_dir in $PATH
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10028 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
10029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10032 done
10033 done
10034 IFS=$as_save_IFS
10037 esac
10039 aros_target_cc=$ac_cv_path_aros_target_cc
10040 if test -n "$aros_target_cc"; then
10041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
10042 $as_echo "$aros_target_cc" >&6; }
10043 else
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10045 $as_echo "no" >&6; }
10049 if test "$aros_target_cc" = ""; then
10050 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
10052 orig_target_cc=$aros_target_cc
10054 if test "$aros_target_ld" != ""; then
10055 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
10056 set dummy $aros_target_ld; ac_word=$2
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10058 $as_echo_n "checking for $ac_word... " >&6; }
10059 if ${ac_cv_path_aros_target_ld+:} false; then :
10060 $as_echo_n "(cached) " >&6
10061 else
10062 case $aros_target_ld in
10063 [\\/]* | ?:[\\/]*)
10064 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
10067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10068 for as_dir in $PATH
10070 IFS=$as_save_IFS
10071 test -z "$as_dir" && as_dir=.
10072 for ac_exec_ext in '' $ac_executable_extensions; do
10073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10074 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
10075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10076 break 2
10078 done
10079 done
10080 IFS=$as_save_IFS
10083 esac
10085 aros_target_ld=$ac_cv_path_aros_target_ld
10086 if test -n "$aros_target_ld"; then
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
10088 $as_echo "$aros_target_ld" >&6; }
10089 else
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10091 $as_echo "no" >&6; }
10095 if test "$aros_target_ld" = ""; then
10096 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
10098 orig_target_ld=$aros_target_ld
10100 else
10101 orig_target_cc=$aros_target_cc
10102 orig_target_ld=$aros_target_ld
10105 # Build crosstools if we have no C++ - temporary thing
10106 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
10107 crosstools_cxx_target=tools-crosstools
10110 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10111 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10112 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10113 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10114 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10115 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10116 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10118 # aros_cc_pre is a variable that is added to the front of the compiler name
10119 # in the generated aros-gcc shell script. We need this to enable the cache
10120 # to work across cleaned builds. Also, support DISTCC using the correct
10121 # environment variable.
10124 if test "x${DISTCC}" != "x" ; then
10125 if test "x${CCACHE}" != "x" ; then
10126 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10127 else
10128 aros_cc_pre="${DISTCC} "
10130 else
10131 if test "x${CCACHE}" != "x" ; then
10132 aros_cc_pre="${CCACHE} "
10136 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10138 aros_target_nostdinc_cflags=-nostdinc
10140 aros_target_nostartup_ldflags=-nostartfiles
10142 aros_target_nix_ldflags=-nix
10144 aros_target_detach_ldflags=-detach
10146 aros_target_nostdlib_ldflags=-nostdlib
10149 # Target tools
10150 if test "$crosstools" != "yes"; then
10151 if test "$GCC" = "yes"; then
10152 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10154 else
10155 # We do not know which gcc version we are going to build and what we need to know
10156 # here is different for different versions so this will be set later during the
10157 # build of crosstools.
10158 aros_target_cc_path=@aros_target_cc_path@
10160 aros_target_cc="${prefix}-gcc"
10161 aros_target_as="${prefix}-as"
10162 aros_target_ld="${prefix}-ld"
10163 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10164 aros_target_objcopy=${prefix}-objcopy
10165 aros_target_objdump=${prefix}-objdump
10166 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10167 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10168 aros_target_strip=${prefix}-strip
10169 aros_plain_nm="${prefix}-nm"
10170 aros_plain_ar="${prefix}-ar"
10172 # Find the system include path. We can suggest that an alternative is
10173 # used if we don't get it correct. The default is to use /usr/include.
10174 # Which is set in the aros_target_incl_def variable.
10176 # Check whether --enable-includes was given.
10177 if test "${enable_includes+set}" = set; then :
10178 enableval=$enable_includes; aros_target_incl=$enable_includes
10179 else
10180 aros_target_incl=$aros_target_incl_def
10184 if test "$aros_kernel_includes" = ""; then
10185 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10186 # FIXME: for cross-compiling this should point to another location
10187 aros_kernel_includes="-isystem $aros_target_incl"
10191 if test "$aros_kernel_includes" != "" ; then
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
10193 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
10194 if test "$aros_kernel_cc_includes" = "" ; then
10195 # Try to guess where the directory is.
10196 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
10197 if test -d $aros_kernel_cc_includes; then
10198 # Check if there is also an include-fixed directory and add it
10199 # to kernel compiler's include path as it may contain some of
10200 # the headers we need.
10201 if test -d "$aros_kernel_cc_includes"-fixed; then
10202 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
10204 else
10205 # The directory doesn't exist, we need to do some more work.
10206 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
10208 # These are the headers we're looking for.
10209 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10210 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10211 zutil.h"
10213 dirs=
10214 for h in $headers; do
10215 # Which other headers are needed by each of the above?
10216 deps=$(echo "#include <$h>" | \
10217 $aros_kernel_cc -E -M - 2>/dev/null | \
10218 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10220 # Copy all the needed headers to a directory beneath gendir.
10221 for d in $deps; do
10222 h=$(basename $d)
10223 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
10224 sed -n "s,^.*/include\(/.*\),\1,p")
10225 ! test -d $dir && mkdir -p $dir
10226 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10227 done
10228 done
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
10232 $as_echo "$aros_kernel_cc_includes" >&6; }
10233 # Adding -nostdinc to kernel includes as they are always used together.
10234 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
10237 if test "$crosstools" != "yes"; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
10239 $as_echo_n "checking for the target compiler's include path... " >&6; }
10240 if test "$aros_target_cc_includes" = "" ; then
10241 #try to guess where the directory is
10242 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
10243 if ! test -d $aros_target_cc_includes; then
10244 #the directory doesn't exist, we need to do some more work
10245 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10247 #these are the headers we're looking for
10248 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10249 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10250 zutil.h"
10252 dirs=
10253 for h in $headers; do
10254 #which other headers each of the above headers needs?
10255 deps=$(echo "#include <$h>" | \
10256 $orig_target_cc -E -M - 2>/dev/null | \
10257 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10259 #copy all the needed headers to a directory beneath gendir
10260 for d in $deps; do
10261 h=$(basename $d)
10262 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10263 sed -n "s,^.*/include\(/.*\),\1,p")
10264 ! test -d $dir && mkdir -p $dir
10265 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10266 done
10267 done
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
10271 $as_echo "$aros_target_cc_includes" >&6; }
10272 else
10273 # We do not know which gcc version we are going to build and what we need to know
10274 # here is different for different versions so this will be set later during the
10275 # build of crosstools.
10276 aros_target_cc_includes=@aros_target_cc_includes@
10280 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10281 # On GCC >= 4.0 -iquote should be used
10284 save_cc="$CC"
10285 save_cflags="$CFLAGS"
10286 CFLAGS="-iquote."
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10288 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10289 if test "x-$crosstools" != "x-yes"; then
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10294 main ()
10298 return 0;
10300 _ACEOF
10301 if ac_fn_c_try_compile "$LINENO"; then :
10302 has_iquote="yes"
10303 else
10304 has_iquote="no"
10306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10307 else
10308 # we do know it is supported for the smallest version of gcc we are going to build
10309 # we assume it's also supported by later versions
10310 has_iquote=yes
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10313 $as_echo "$has_iquote" >&6; }
10314 if test "x-$has_iquote" = "x-yes" ; then
10315 host_cflags_iquote=-iquote
10316 host_cflags_iquote_end=
10317 else
10318 host_cflags_iquote=-I
10319 host_cflags_iquote_end=-I-
10321 kernel_cflags_iquote=$host_cflags_iquote
10322 kernel_cflags_iquote_end=$host_cflags_iquote_end
10323 if test "x-$cross_compiling" = "x-yes"; then
10324 CC="$aros_kernel_cc"
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
10326 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
10327 if test "x-$crosstools" != "x-yes"; then
10328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h. */
10332 main ()
10336 return 0;
10338 _ACEOF
10339 if ac_fn_c_try_compile "$LINENO"; then :
10340 use_no_stack_protector="yes"
10341 else
10342 use_no_stack_protector="no"
10344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10345 else
10346 # we do know it is supported for the smallest version of gcc we are going to build
10347 # we assume it's also supported by later versions
10348 use_no_stack_protector=yes
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
10351 $as_echo "$use_no_stack_protector" >&6; }
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10353 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10354 if test "x-$crosstools" != "x-yes"; then
10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10356 /* end confdefs.h. */
10359 main ()
10363 return 0;
10365 _ACEOF
10366 if ac_fn_c_try_compile "$LINENO"; then :
10367 has_iquote="yes"
10368 else
10369 has_iquote="no"
10371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10372 else
10373 # we do know it is supported for the smallest version of gcc we are going to build
10374 # we assume it's also supported by later versions
10375 has_iquote=yes
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10378 $as_echo "$has_iquote" >&6; }
10379 if test "x-$has_iquote" = "x-yes" ; then
10380 kernel_cflags_iquote=-iquote
10381 kernel_cflags_iquote_end=
10382 else
10383 kernel_cflags_iquote=-I
10384 kernel_cflags_iquote_end=-I-
10387 aros_cflags_iquote=$kernel_cflags_iquote
10388 aros_cflags_iquote_end=$kernel_cflags_iquote_end
10389 if test "$orig_target_cc" != "$aros_kernel_cc"; then
10390 CC="$orig_target_cc"
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10392 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10393 if test "x-$crosstools" != "x-yes"; then
10394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10395 /* end confdefs.h. */
10398 main ()
10402 return 0;
10404 _ACEOF
10405 if ac_fn_c_try_compile "$LINENO"; then :
10406 has_iquote="yes"
10407 else
10408 has_iquote="no"
10410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411 else
10412 # we do know it is supported for the smallest version of gcc we are going to build
10413 # we assume it's also supported by later versions
10414 has_iquote=yes
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10417 $as_echo "$has_iquote" >&6; }
10418 if test "x-$has_iquote" = "x-yes" ; then
10419 aros_cflags_iquote=-iquote
10420 aros_cflags_iquote_end=
10421 else
10422 aros_cflags_iquote=-I
10423 aros_cflags_iquote_end=-I-
10426 if test "x-$use_no_stack_protector" = "x-yes" ; then
10427 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
10430 #-----------------------------------------------------------------------------
10432 # Check if we can explicitly choose older version of symbol hashing
10434 CFLAGS="save_cflags -Wl,--hash-style=sysv"
10435 CC="$aros_kernel_cc"
10436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
10437 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
10438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10439 /* end confdefs.h. */
10442 main ()
10446 return 0;
10448 _ACEOF
10449 if ac_fn_c_try_link "$LINENO"; then :
10450 use_hash_style="yes"
10451 else
10452 use_hash_style="no"
10454 rm -f core conftest.err conftest.$ac_objext \
10455 conftest$ac_exeext conftest.$ac_ext
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
10457 $as_echo "$use_hash_style" >&6; }
10458 if test "x-$use_hash_style" = "x-yes" ; then
10459 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
10461 CC="$save_cc"
10462 CFLAGS="$save_cflags"
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
10473 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
10475 # Check whether --with-resolution was given.
10476 if test "${with_resolution+set}" = set; then :
10477 withval=$with_resolution; resolution=$withval
10478 else
10479 resolution=none
10482 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10483 if test "$resolution" = "yes" ; then
10484 resolution="none"
10486 if test "$resolution" = "no" ; then
10487 resolution="none"
10489 if test "$resolution" != "none" ; then
10490 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10491 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10492 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10495 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10496 aros_cv_default_wbwidth=$aros_default_wbwidth
10497 aros_cv_default_wbheight=$aros_default_wbheight
10498 aros_cv_default_wbdepth=$aros_default_wbdepth
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
10501 $as_echo_n "checking if serial debug is enabled... " >&6; }
10503 # Check whether --with-serial-debug was given.
10504 if test "${with_serial_debug+set}" = set; then :
10505 withval=$with_serial_debug; serial_debug=$withval
10506 else
10507 serial_debug=none
10510 if test "$aros_serial_debug" = 0 ; then
10511 serial_debug_forced=""
10512 if test "$serial_debug" = "yes" ; then
10513 serial_debug="1"
10515 if test "$serial_debug" = "no" ; then
10516 serial_debug="none"
10518 else
10519 serial_debug_forced="(forced)"
10520 serial_debug=$aros_serial_debug
10522 if test "$serial_debug" != "none" ; then
10523 aros_serial_debug=$serial_debug
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
10525 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
10526 else
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528 $as_echo "no" >&6; }
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
10532 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
10533 # Check whether --enable-palm_debug_hack was given.
10534 if test "${enable_palm_debug_hack+set}" = set; then :
10535 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10536 else
10537 palm_debug_hack="no"
10540 if test "$palm_debug_hack" = "yes" ; then
10541 aros_palm_debug_hack="1"
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
10544 $as_echo "$palm_debug_hack" >&6; }
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
10547 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
10548 # Check whether --enable-usb30_code was given.
10549 if test "${enable_usb30_code+set}" = set; then :
10550 enableval=$enable_usb30_code; usb30_code="yes"
10551 else
10552 usb30_code="no"
10555 if test "$usb30_code" = "yes" ; then
10556 aros_usb30_code="1"
10557 else
10558 aros_usb30_code="0"
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
10561 $as_echo "$usb30_code" >&6; }
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
10564 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10565 # Check whether --enable-nesting_supervisor was given.
10566 if test "${enable_nesting_supervisor+set}" = set; then :
10567 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10568 else
10569 nesting_supervisor="no"
10572 if test "$nesting_supervisor" = "yes" ; then
10573 aros_nesting_supervisor="1"
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
10576 $as_echo "$nesting_supervisor" >&6; }
10578 if test "$aros_enable_mmu" = "" ; then
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
10580 $as_echo_n "checking if MMU support is enabled... " >&6; }
10581 # Check whether --enable-mmu was given.
10582 if test "${enable_mmu+set}" = set; then :
10583 enableval=$enable_mmu; aros_enable_mmu=$enableval
10584 else
10585 aros_enable_mmu="yes"
10588 if test "$aros_enable_mmu" = "" ; then
10589 aros_enable_mmu="yes"
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
10592 $as_echo "$aros_enable_mmu" >&6; }
10594 if test "$aros_enable_mmu" = "no" ; then
10595 aros_enable_mmu="0"
10596 else
10597 aros_enable_mmu="1"
10601 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10603 if test "x-$need_dlopen" != "x-no" ; then
10604 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10605 if test "x$ac_cv_func_dlopen" = xyes; then :
10606 have_dl="yes"
10607 else
10608 have_dl="no"
10611 if test "x-$have_dl" = "x-no" ; then
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10613 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10614 if ${ac_cv_lib_dl_dlopen+:} false; then :
10615 $as_echo_n "(cached) " >&6
10616 else
10617 ac_check_lib_save_LIBS=$LIBS
10618 LIBS="-ldl $LIBS"
10619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10620 /* end confdefs.h. */
10622 /* Override any GCC internal prototype to avoid an error.
10623 Use char because int might match the return type of a GCC
10624 builtin and then its argument prototype would still apply. */
10625 #ifdef __cplusplus
10626 extern "C"
10627 #endif
10628 char dlopen ();
10630 main ()
10632 return dlopen ();
10634 return 0;
10636 _ACEOF
10637 if ac_fn_c_try_link "$LINENO"; then :
10638 ac_cv_lib_dl_dlopen=yes
10639 else
10640 ac_cv_lib_dl_dlopen=no
10642 rm -f core conftest.err conftest.$ac_objext \
10643 conftest$ac_exeext conftest.$ac_ext
10644 LIBS=$ac_check_lib_save_LIBS
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10647 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10648 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10649 have_dl="yes"
10650 aros_host_ldflags="$aros_host_ldflags -ldl"
10651 else
10652 have_dl="no"
10656 if test "x-$have_dl" = "x-no" ; then
10657 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
10662 # Check whether --enable-x11_hidd was given.
10663 if test "${enable_x11_hidd+set}" = set; then :
10664 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10665 else
10666 x11_hidd="$need_x11"
10669 case "x-$x11_hidd" in
10670 x-yes|x-no|x-auto) ;;
10671 *) x11_hidd="$need_x11" ;;
10672 esac
10674 ENABLE_X11=0
10676 if test "x-$x11_hidd" != "x-no" ; then
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10679 $as_echo_n "checking for X... " >&6; }
10682 # Check whether --with-x was given.
10683 if test "${with_x+set}" = set; then :
10684 withval=$with_x;
10687 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10688 if test "x$with_x" = xno; then
10689 # The user explicitly disabled X.
10690 have_x=disabled
10691 else
10692 case $x_includes,$x_libraries in #(
10693 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
10694 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
10695 $as_echo_n "(cached) " >&6
10696 else
10697 # One or both of the vars are not set, and there is no cached value.
10698 ac_x_includes=no ac_x_libraries=no
10699 rm -f -r conftest.dir
10700 if mkdir conftest.dir; then
10701 cd conftest.dir
10702 cat >Imakefile <<'_ACEOF'
10703 incroot:
10704 @echo incroot='${INCROOT}'
10705 usrlibdir:
10706 @echo usrlibdir='${USRLIBDIR}'
10707 libdir:
10708 @echo libdir='${LIBDIR}'
10709 _ACEOF
10710 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10711 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10712 for ac_var in incroot usrlibdir libdir; do
10713 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10714 done
10715 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10716 for ac_extension in a so sl dylib la dll; do
10717 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10718 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10719 ac_im_usrlibdir=$ac_im_libdir; break
10721 done
10722 # Screen out bogus values from the imake configuration. They are
10723 # bogus both because they are the default anyway, and because
10724 # using them would break gcc on systems where it needs fixed includes.
10725 case $ac_im_incroot in
10726 /usr/include) ac_x_includes= ;;
10727 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10728 esac
10729 case $ac_im_usrlibdir in
10730 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10731 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10732 esac
10734 cd ..
10735 rm -f -r conftest.dir
10738 # Standard set of common directories for X headers.
10739 # Check X11 before X11Rn because it is often a symlink to the current release.
10740 ac_x_header_dirs='
10741 /usr/X11/include
10742 /usr/X11R7/include
10743 /usr/X11R6/include
10744 /usr/X11R5/include
10745 /usr/X11R4/include
10747 /usr/include/X11
10748 /usr/include/X11R7
10749 /usr/include/X11R6
10750 /usr/include/X11R5
10751 /usr/include/X11R4
10753 /usr/local/X11/include
10754 /usr/local/X11R7/include
10755 /usr/local/X11R6/include
10756 /usr/local/X11R5/include
10757 /usr/local/X11R4/include
10759 /usr/local/include/X11
10760 /usr/local/include/X11R7
10761 /usr/local/include/X11R6
10762 /usr/local/include/X11R5
10763 /usr/local/include/X11R4
10765 /usr/X386/include
10766 /usr/x386/include
10767 /usr/XFree86/include/X11
10769 /usr/include
10770 /usr/local/include
10771 /usr/unsupported/include
10772 /usr/athena/include
10773 /usr/local/x11r5/include
10774 /usr/lpp/Xamples/include
10776 /usr/openwin/include
10777 /usr/openwin/share/include'
10779 if test "$ac_x_includes" = no; then
10780 # Guess where to find include files, by looking for Xlib.h.
10781 # First, try using that file with no special directory specified.
10782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10783 /* end confdefs.h. */
10784 #include <X11/Xlib.h>
10785 _ACEOF
10786 if ac_fn_c_try_cpp "$LINENO"; then :
10787 # We can compile using X headers with no special include directory.
10788 ac_x_includes=
10789 else
10790 for ac_dir in $ac_x_header_dirs; do
10791 if test -r "$ac_dir/X11/Xlib.h"; then
10792 ac_x_includes=$ac_dir
10793 break
10795 done
10797 rm -f conftest.err conftest.i conftest.$ac_ext
10798 fi # $ac_x_includes = no
10800 if test "$ac_x_libraries" = no; then
10801 # Check for the libraries.
10802 # See if we find them without any special options.
10803 # Don't add to $LIBS permanently.
10804 ac_save_LIBS=$LIBS
10805 LIBS="-lX11 $LIBS"
10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10808 #include <X11/Xlib.h>
10810 main ()
10812 XrmInitialize ()
10814 return 0;
10816 _ACEOF
10817 if ac_fn_c_try_link "$LINENO"; then :
10818 LIBS=$ac_save_LIBS
10819 # We can link X programs with no special library path.
10820 ac_x_libraries=
10821 else
10822 LIBS=$ac_save_LIBS
10823 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10825 # Don't even attempt the hair of trying to link an X program!
10826 for ac_extension in a so sl dylib la dll; do
10827 if test -r "$ac_dir/libX11.$ac_extension"; then
10828 ac_x_libraries=$ac_dir
10829 break 2
10831 done
10832 done
10834 rm -f core conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext conftest.$ac_ext
10836 fi # $ac_x_libraries = no
10838 case $ac_x_includes,$ac_x_libraries in #(
10839 no,* | *,no | *\'*)
10840 # Didn't find X, or a directory has "'" in its name.
10841 ac_cv_have_x="have_x=no";; #(
10843 # Record where we found X for the cache.
10844 ac_cv_have_x="have_x=yes\
10845 ac_x_includes='$ac_x_includes'\
10846 ac_x_libraries='$ac_x_libraries'"
10847 esac
10849 ;; #(
10850 *) have_x=yes;;
10851 esac
10852 eval "$ac_cv_have_x"
10853 fi # $with_x != no
10855 if test "$have_x" != yes; then
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10857 $as_echo "$have_x" >&6; }
10858 no_x=yes
10859 else
10860 # If each of the values was on the command line, it overrides each guess.
10861 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10862 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10863 # Update the cache value to reflect the command line values.
10864 ac_cv_have_x="have_x=yes\
10865 ac_x_includes='$x_includes'\
10866 ac_x_libraries='$x_libraries'"
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10868 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10872 x_cflags=
10873 for path in $x_libraries
10875 x_cflags="$x_cflags -L$path"
10876 done
10878 for path in $x_includes
10880 x_cflags="$x_cflags -I$path"
10881 done
10883 if test "x-$no_x" = "x-yes" ; then
10885 if test "x-$x11_hidd" != "x-auto" ; then
10886 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10889 else
10890 x11_hidd_target=kernel-x11gfx-kobj
10891 ENABLE_X11=1
10893 # Check whether --enable-x11_shm was given.
10894 if test "${enable_x11_shm+set}" = set; then :
10895 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10896 else
10897 x11_hidd_shm="auto"
10900 case "x-$x11_hidd_shm" in
10901 x-yes|x-no|x-auto) ;;
10902 *) x11_hidd_shm="auto" ;;
10903 esac
10905 have_xshm=no
10907 if test "x-$x11_hidd_shm" != "x-no" ; then
10909 for ac_header in sys/ipc.h
10910 do :
10911 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10912 if test "x$ac_cv_header_sys_ipc_h" = xyes; then :
10913 cat >>confdefs.h <<_ACEOF
10914 #define HAVE_SYS_IPC_H 1
10915 _ACEOF
10919 done
10921 for ac_header in sys/shm.h
10922 do :
10923 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10924 if test "x$ac_cv_header_sys_shm_h" = xyes; then :
10925 cat >>confdefs.h <<_ACEOF
10926 #define HAVE_SYS_SHM_H 1
10927 _ACEOF
10931 done
10934 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10936 save_cflags="$CFLAGS"
10937 CFLAGS="$CFLAGS $x_cflags"
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10939 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10940 if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
10941 $as_echo_n "(cached) " >&6
10942 else
10943 ac_check_lib_save_LIBS=$LIBS
10944 LIBS="-lXext $LIBS"
10945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10946 /* end confdefs.h. */
10948 /* Override any GCC internal prototype to avoid an error.
10949 Use char because int might match the return type of a GCC
10950 builtin and then its argument prototype would still apply. */
10951 #ifdef __cplusplus
10952 extern "C"
10953 #endif
10954 char XShmQueryExtension ();
10956 main ()
10958 return XShmQueryExtension ();
10960 return 0;
10962 _ACEOF
10963 if ac_fn_c_try_link "$LINENO"; then :
10964 ac_cv_lib_Xext_XShmQueryExtension=yes
10965 else
10966 ac_cv_lib_Xext_XShmQueryExtension=no
10968 rm -f core conftest.err conftest.$ac_objext \
10969 conftest$ac_exeext conftest.$ac_ext
10970 LIBS=$ac_check_lib_save_LIBS
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10973 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10974 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
10975 have_xshm=yes
10978 CFLAGS="$save_cflags"
10982 if test "x-$have_xshm" = "x-yes" ; then
10983 DO_XSHM_SUPPORT="1"
10984 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10985 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10986 else
10987 DO_XSHM_SUPPORT="0"
10991 # Check whether --enable-x11_vidmode was given.
10992 if test "${enable_x11_vidmode+set}" = set; then :
10993 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10994 else
10995 x11_hidd_vidmode="auto"
10998 case "x-$x11_hidd_vidmode" in
10999 x-yes|x-no|x-auto) ;;
11000 *) x11_hidd_vidmode="auto" ;;
11001 esac
11003 have_vidmode=no
11005 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11007 save_cflags="$CFLAGS"
11008 CFLAGS="$CFLAGS $x_cflags"
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11010 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
11011 if ${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+:} false; then :
11012 $as_echo_n "(cached) " >&6
11013 else
11014 ac_check_lib_save_LIBS=$LIBS
11015 LIBS="-lXxf86vm $LIBS"
11016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11017 /* end confdefs.h. */
11019 /* Override any GCC internal prototype to avoid an error.
11020 Use char because int might match the return type of a GCC
11021 builtin and then its argument prototype would still apply. */
11022 #ifdef __cplusplus
11023 extern "C"
11024 #endif
11025 char XF86VidModeQueryExtension ();
11027 main ()
11029 return XF86VidModeQueryExtension ();
11031 return 0;
11033 _ACEOF
11034 if ac_fn_c_try_link "$LINENO"; then :
11035 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11036 else
11037 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11039 rm -f core conftest.err conftest.$ac_objext \
11040 conftest$ac_exeext conftest.$ac_ext
11041 LIBS=$ac_check_lib_save_LIBS
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11044 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11045 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = xyes; then :
11046 have_vidmode=yes
11049 CFLAGS="$save_cflags"
11052 if test "x-$have_vidmode" = "x-yes" ; then
11053 DO_VIDMODE_SUPPORT="1"
11054 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11055 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
11056 else
11057 DO_VIDMODE_SUPPORT="0"
11061 aros_host_x11_includes=$x_includes
11062 aros_host_x11_libdirs=$x_libraries
11066 # Check whether --enable-sdl_hidd was given.
11067 if test "${enable_sdl_hidd+set}" = set; then :
11068 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
11069 else
11070 sdl_hidd="auto"
11073 case "x-$sdl_hidd" in
11074 x-yes|x-no|x-auto) ;;
11075 *) sdl_hidd="auto" ;;
11076 esac
11078 if test "x-$sdl_hidd" != "x-no" ; then
11081 # Check whether --with-sdl-prefix was given.
11082 if test "${with_sdl_prefix+set}" = set; then :
11083 withval=$with_sdl_prefix; sdl_prefix="$withval"
11084 else
11085 sdl_prefix=""
11089 # Check whether --with-sdl-exec-prefix was given.
11090 if test "${with_sdl_exec_prefix+set}" = set; then :
11091 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
11092 else
11093 sdl_exec_prefix=""
11096 # Check whether --enable-sdltest was given.
11097 if test "${enable_sdltest+set}" = set; then :
11098 enableval=$enable_sdltest;
11099 else
11100 enable_sdltest=yes
11104 if test x$sdl_exec_prefix != x ; then
11105 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
11106 if test x${SDL_CONFIG+set} != xset ; then
11107 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
11110 if test x$sdl_prefix != x ; then
11111 sdl_args="$sdl_args --prefix=$sdl_prefix"
11112 if test x${SDL_CONFIG+set} != xset ; then
11113 SDL_CONFIG=$sdl_prefix/bin/sdl-config
11117 if test "x$prefix" != xNONE; then
11118 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
11120 # Extract the first word of "sdl-config", so it can be a program name with args.
11121 set dummy sdl-config; ac_word=$2
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11123 $as_echo_n "checking for $ac_word... " >&6; }
11124 if ${ac_cv_path_SDL_CONFIG+:} false; then :
11125 $as_echo_n "(cached) " >&6
11126 else
11127 case $SDL_CONFIG in
11128 [\\/]* | ?:[\\/]*)
11129 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
11132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11133 for as_dir in $PATH
11135 IFS=$as_save_IFS
11136 test -z "$as_dir" && as_dir=.
11137 for ac_exec_ext in '' $ac_executable_extensions; do
11138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11139 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11141 break 2
11143 done
11144 done
11145 IFS=$as_save_IFS
11147 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
11149 esac
11151 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
11152 if test -n "$SDL_CONFIG"; then
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
11154 $as_echo "$SDL_CONFIG" >&6; }
11155 else
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11157 $as_echo "no" >&6; }
11161 min_sdl_version=1.2.10
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
11163 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
11164 no_sdl=""
11165 if test "$SDL_CONFIG" = "no" ; then
11166 no_sdl=yes
11167 else
11168 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
11169 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
11171 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
11172 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
11173 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
11174 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
11175 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
11176 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
11177 if test "x$enable_sdltest" = "xyes" ; then
11178 ac_save_CFLAGS="$CFLAGS"
11179 ac_save_CXXFLAGS="$CXXFLAGS"
11180 ac_save_LIBS="$LIBS"
11181 CFLAGS="$CFLAGS $SDL_CFLAGS"
11182 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11183 LIBS="$LIBS $SDL_LIBS"
11184 rm -f conf.sdltest
11185 if test "$cross_compiling" = yes; then :
11186 echo $ac_n "cross compiling; assumed OK... $ac_c"
11187 else
11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11191 #include <stdio.h>
11192 #include <stdlib.h>
11193 #include <string.h>
11194 #include "SDL.h"
11196 char*
11197 my_strdup (char *str)
11199 char *new_str;
11201 if (str)
11203 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
11204 strcpy (new_str, str);
11206 else
11207 new_str = NULL;
11209 return new_str;
11212 int main (int argc, char *argv[])
11214 int major, minor, micro;
11215 char *tmp_version;
11217 /* This hangs on some systems (?)
11218 system ("touch conf.sdltest");
11220 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
11222 /* HP/UX 9 (%@#!) writes to sscanf strings */
11223 tmp_version = my_strdup("$min_sdl_version");
11224 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
11225 printf("%s, bad version string\n", "$min_sdl_version");
11226 exit(1);
11229 if (($sdl_major_version > major) ||
11230 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
11231 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
11233 return 0;
11235 else
11237 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
11238 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
11239 printf("*** best to upgrade to the required version.\n");
11240 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
11241 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
11242 printf("*** config.cache before re-running configure\n");
11243 return 1;
11248 _ACEOF
11249 if ac_fn_c_try_run "$LINENO"; then :
11251 else
11252 no_sdl=yes
11254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11255 conftest.$ac_objext conftest.beam conftest.$ac_ext
11258 CFLAGS="$ac_save_CFLAGS"
11259 CXXFLAGS="$ac_save_CXXFLAGS"
11260 LIBS="$ac_save_LIBS"
11263 if test "x$no_sdl" = x ; then
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11265 $as_echo "yes" >&6; }
11266 have_sdl="yes"
11267 else
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11269 $as_echo "no" >&6; }
11270 if test "$SDL_CONFIG" = "no" ; then
11271 echo "*** The sdl-config script installed by SDL could not be found"
11272 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11273 echo "*** your path, or set the SDL_CONFIG environment variable to the"
11274 echo "*** full path to sdl-config."
11275 else
11276 if test -f conf.sdltest ; then
11278 else
11279 echo "*** Could not run SDL test program, checking why..."
11280 CFLAGS="$CFLAGS $SDL_CFLAGS"
11281 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11282 LIBS="$LIBS $SDL_LIBS"
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11286 #include <stdio.h>
11287 #include "SDL.h"
11289 int main(int argc, char *argv[])
11290 { return 0; }
11291 #undef main
11292 #define main K_and_R_C_main
11295 main ()
11297 return 0;
11299 return 0;
11301 _ACEOF
11302 if ac_fn_c_try_link "$LINENO"; then :
11303 echo "*** The test program compiled, but did not run. This usually means"
11304 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11305 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11306 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11307 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11308 echo "*** is required on your system"
11309 echo "***"
11310 echo "*** If you have an old version installed, it is best to remove it, although"
11311 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11312 else
11313 echo "*** The test program failed to compile or link. See the file config.log for the"
11314 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11315 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11316 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11318 rm -f core conftest.err conftest.$ac_objext \
11319 conftest$ac_exeext conftest.$ac_ext
11320 CFLAGS="$ac_save_CFLAGS"
11321 CXXFLAGS="$ac_save_CXXFLAGS"
11322 LIBS="$ac_save_LIBS"
11325 SDL_CFLAGS=""
11326 SDL_LIBS=""
11327 have_sdl="no"
11331 rm -f conf.sdltest
11334 if test "x-$have_sdl" != "x-yes" ; then
11336 if test "x-$sdl_hidd" != "x-auto" ; then
11337 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
11340 else
11341 sdl_hidd_target=kernel-hidd-sdl
11342 aros_host_sdl_cflags=SDL_CFLAGS
11343 aros_host_sdl_libs=SDL_LIBS
11347 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
11348 if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
11353 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
11354 oss_library_target=workbench-libs-oss-unix
11359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
11360 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
11361 # Check whether --enable-dbus was given.
11362 if test "${enable_dbus+set}" = set; then :
11363 enableval=$enable_dbus; dbus="yes"
11364 else
11365 dbus="no"
11368 if test "$dbus" = "yes" ; then
11369 ENABLE_DBUS=1
11370 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
11371 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
11372 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
11373 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
11374 else
11375 ENABLE_DBUS=0
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
11378 $as_echo "$dbus" >&6; }
11382 # Generic
11393 # Host related
11417 # Target Related
11475 # Graphics Related
11492 # Native version related
11495 # Palm native version related
11498 # USB3.0 code
11501 # Unix/Hosted version related
11504 # MMU related
11507 # Apple iOS related
11512 # Android related
11516 # DBUS related
11523 #X11 related
11526 # Debug related
11532 # Collect-aros stuff: "-ius" to ignore undefined symbols
11535 # C compiler related
11538 case "$aros_flavour" in
11539 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11540 aros_flavour="emulation" ;;
11541 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11542 aros_flavour="emulation" ;;
11543 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11544 aros_flavour="standalone";;
11545 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11546 aros_flavour="standalone";;
11547 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11548 aros_flavour="native" ;;
11549 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11550 aros_flavour="native" ;;
11551 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11552 aros_flavour="linklib" ;;
11553 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11554 aros_flavour="palmnative" ;;
11555 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11556 aros_flavour="mac68knative" ;;
11557 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11558 aros_flavour="ppcnative" ;;
11559 esac
11561 if test ! -d ${aros_inc_dir} ; then
11562 ${MKDIR} ${aros_inc_dir}
11564 if test ! -d ${aros_geninc_dir} ; then
11565 ${MKDIR} ${aros_geninc_dir}
11567 if test ! -d ${aros_hostcfg_dir} ; then
11568 ${MKDIR} ${aros_hostcfg_dir}
11570 if test ! -d ${aros_targetcfg_dir} ; then
11571 ${MKDIR} ${aros_targetcfg_dir}
11573 if test ! -d ${aros_tools_dir} ; then
11574 ${MKDIR} ${aros_tools_dir}
11576 if test ! -d ${aros_scripts_dir} ; then
11577 ${MKDIR} ${aros_scripts_dir}
11580 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11583 ac_config_commands="$ac_config_commands compiler_executable"
11585 ac_config_commands="$ac_config_commands genmf_executable"
11588 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_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"
11591 cat >confcache <<\_ACEOF
11592 # This file is a shell script that caches the results of configure
11593 # tests run on this system so they can be shared between configure
11594 # scripts and configure runs, see configure's option --config-cache.
11595 # It is not useful on other systems. If it contains results you don't
11596 # want to keep, you may remove or edit it.
11598 # config.status only pays attention to the cache file if you give it
11599 # the --recheck option to rerun configure.
11601 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11602 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11603 # following values.
11605 _ACEOF
11607 # The following way of writing the cache mishandles newlines in values,
11608 # but we know of no workaround that is simple, portable, and efficient.
11609 # So, we kill variables containing newlines.
11610 # Ultrix sh set writes to stderr and can't be redirected directly,
11611 # and sets the high bit in the cache file unless we assign to the vars.
11613 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11614 eval ac_val=\$$ac_var
11615 case $ac_val in #(
11616 *${as_nl}*)
11617 case $ac_var in #(
11618 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11619 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11620 esac
11621 case $ac_var in #(
11622 _ | IFS | as_nl) ;; #(
11623 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11624 *) { eval $ac_var=; unset $ac_var;} ;;
11625 esac ;;
11626 esac
11627 done
11629 (set) 2>&1 |
11630 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11631 *${as_nl}ac_space=\ *)
11632 # `set' does not quote correctly, so add quotes: double-quote
11633 # substitution turns \\\\ into \\, and sed turns \\ into \.
11634 sed -n \
11635 "s/'/'\\\\''/g;
11636 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11637 ;; #(
11639 # `set' quotes correctly as required by POSIX, so do not add quotes.
11640 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11642 esac |
11643 sort
11645 sed '
11646 /^ac_cv_env_/b end
11647 t clear
11648 :clear
11649 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11650 t end
11651 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11652 :end' >>confcache
11653 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11654 if test -w "$cache_file"; then
11655 if test "x$cache_file" != "x/dev/null"; then
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11657 $as_echo "$as_me: updating cache $cache_file" >&6;}
11658 if test ! -f "$cache_file" || test -h "$cache_file"; then
11659 cat confcache >"$cache_file"
11660 else
11661 case $cache_file in #(
11662 */* | ?:*)
11663 mv -f confcache "$cache_file"$$ &&
11664 mv -f "$cache_file"$$ "$cache_file" ;; #(
11666 mv -f confcache "$cache_file" ;;
11667 esac
11670 else
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11672 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11675 rm -f confcache
11677 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11678 # Let make expand exec_prefix.
11679 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11681 DEFS=-DHAVE_CONFIG_H
11683 ac_libobjs=
11684 ac_ltlibobjs=
11686 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11687 # 1. Remove the extension, and $U if already installed.
11688 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11689 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11690 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11691 # will be set to the directory where LIBOBJS objects are built.
11692 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11693 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11694 done
11695 LIBOBJS=$ac_libobjs
11697 LTLIBOBJS=$ac_ltlibobjs
11701 : "${CONFIG_STATUS=./config.status}"
11702 ac_write_fail=0
11703 ac_clean_files_save=$ac_clean_files
11704 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11706 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11707 as_write_fail=0
11708 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11709 #! $SHELL
11710 # Generated by $as_me.
11711 # Run this file to recreate the current configuration.
11712 # Compiler output produced by configure, useful for debugging
11713 # configure, is in config.log if it exists.
11715 debug=false
11716 ac_cs_recheck=false
11717 ac_cs_silent=false
11719 SHELL=\${CONFIG_SHELL-$SHELL}
11720 export SHELL
11721 _ASEOF
11722 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11723 ## -------------------- ##
11724 ## M4sh Initialization. ##
11725 ## -------------------- ##
11727 # Be more Bourne compatible
11728 DUALCASE=1; export DUALCASE # for MKS sh
11729 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11730 emulate sh
11731 NULLCMD=:
11732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11733 # is contrary to our usage. Disable this feature.
11734 alias -g '${1+"$@"}'='"$@"'
11735 setopt NO_GLOB_SUBST
11736 else
11737 case `(set -o) 2>/dev/null` in #(
11738 *posix*) :
11739 set -o posix ;; #(
11740 *) :
11742 esac
11746 as_nl='
11748 export as_nl
11749 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11750 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11751 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11752 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11753 # Prefer a ksh shell builtin over an external printf program on Solaris,
11754 # but without wasting forks for bash or zsh.
11755 if test -z "$BASH_VERSION$ZSH_VERSION" \
11756 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11757 as_echo='print -r --'
11758 as_echo_n='print -rn --'
11759 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11760 as_echo='printf %s\n'
11761 as_echo_n='printf %s'
11762 else
11763 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11764 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11765 as_echo_n='/usr/ucb/echo -n'
11766 else
11767 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11768 as_echo_n_body='eval
11769 arg=$1;
11770 case $arg in #(
11771 *"$as_nl"*)
11772 expr "X$arg" : "X\\(.*\\)$as_nl";
11773 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11774 esac;
11775 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11777 export as_echo_n_body
11778 as_echo_n='sh -c $as_echo_n_body as_echo'
11780 export as_echo_body
11781 as_echo='sh -c $as_echo_body as_echo'
11784 # The user is always right.
11785 if test "${PATH_SEPARATOR+set}" != set; then
11786 PATH_SEPARATOR=:
11787 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11788 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11789 PATH_SEPARATOR=';'
11794 # IFS
11795 # We need space, tab and new line, in precisely that order. Quoting is
11796 # there to prevent editors from complaining about space-tab.
11797 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11798 # splitting by setting IFS to empty value.)
11799 IFS=" "" $as_nl"
11801 # Find who we are. Look in the path if we contain no directory separator.
11802 as_myself=
11803 case $0 in #((
11804 *[\\/]* ) as_myself=$0 ;;
11805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11806 for as_dir in $PATH
11808 IFS=$as_save_IFS
11809 test -z "$as_dir" && as_dir=.
11810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11811 done
11812 IFS=$as_save_IFS
11815 esac
11816 # We did not find ourselves, most probably we were run as `sh COMMAND'
11817 # in which case we are not to be found in the path.
11818 if test "x$as_myself" = x; then
11819 as_myself=$0
11821 if test ! -f "$as_myself"; then
11822 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11823 exit 1
11826 # Unset variables that we do not need and which cause bugs (e.g. in
11827 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11828 # suppresses any "Segmentation fault" message there. '((' could
11829 # trigger a bug in pdksh 5.2.14.
11830 for as_var in BASH_ENV ENV MAIL MAILPATH
11831 do eval test x\${$as_var+set} = xset \
11832 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11833 done
11834 PS1='$ '
11835 PS2='> '
11836 PS4='+ '
11838 # NLS nuisances.
11839 LC_ALL=C
11840 export LC_ALL
11841 LANGUAGE=C
11842 export LANGUAGE
11844 # CDPATH.
11845 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11848 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11849 # ----------------------------------------
11850 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11851 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11852 # script with STATUS, using 1 if that was 0.
11853 as_fn_error ()
11855 as_status=$1; test $as_status -eq 0 && as_status=1
11856 if test "$4"; then
11857 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11858 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11860 $as_echo "$as_me: error: $2" >&2
11861 as_fn_exit $as_status
11862 } # as_fn_error
11865 # as_fn_set_status STATUS
11866 # -----------------------
11867 # Set $? to STATUS, without forking.
11868 as_fn_set_status ()
11870 return $1
11871 } # as_fn_set_status
11873 # as_fn_exit STATUS
11874 # -----------------
11875 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11876 as_fn_exit ()
11878 set +e
11879 as_fn_set_status $1
11880 exit $1
11881 } # as_fn_exit
11883 # as_fn_unset VAR
11884 # ---------------
11885 # Portably unset VAR.
11886 as_fn_unset ()
11888 { eval $1=; unset $1;}
11890 as_unset=as_fn_unset
11891 # as_fn_append VAR VALUE
11892 # ----------------------
11893 # Append the text in VALUE to the end of the definition contained in VAR. Take
11894 # advantage of any shell optimizations that allow amortized linear growth over
11895 # repeated appends, instead of the typical quadratic growth present in naive
11896 # implementations.
11897 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11898 eval 'as_fn_append ()
11900 eval $1+=\$2
11902 else
11903 as_fn_append ()
11905 eval $1=\$$1\$2
11907 fi # as_fn_append
11909 # as_fn_arith ARG...
11910 # ------------------
11911 # Perform arithmetic evaluation on the ARGs, and store the result in the
11912 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11913 # must be portable across $(()) and expr.
11914 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11915 eval 'as_fn_arith ()
11917 as_val=$(( $* ))
11919 else
11920 as_fn_arith ()
11922 as_val=`expr "$@" || test $? -eq 1`
11924 fi # as_fn_arith
11927 if expr a : '\(a\)' >/dev/null 2>&1 &&
11928 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11929 as_expr=expr
11930 else
11931 as_expr=false
11934 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11935 as_basename=basename
11936 else
11937 as_basename=false
11940 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11941 as_dirname=dirname
11942 else
11943 as_dirname=false
11946 as_me=`$as_basename -- "$0" ||
11947 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11948 X"$0" : 'X\(//\)$' \| \
11949 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11950 $as_echo X/"$0" |
11951 sed '/^.*\/\([^/][^/]*\)\/*$/{
11952 s//\1/
11955 /^X\/\(\/\/\)$/{
11956 s//\1/
11959 /^X\/\(\/\).*/{
11960 s//\1/
11963 s/.*/./; q'`
11965 # Avoid depending upon Character Ranges.
11966 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11967 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11968 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11969 as_cr_digits='0123456789'
11970 as_cr_alnum=$as_cr_Letters$as_cr_digits
11972 ECHO_C= ECHO_N= ECHO_T=
11973 case `echo -n x` in #(((((
11974 -n*)
11975 case `echo 'xy\c'` in
11976 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11977 xy) ECHO_C='\c';;
11978 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11979 ECHO_T=' ';;
11980 esac;;
11982 ECHO_N='-n';;
11983 esac
11985 rm -f conf$$ conf$$.exe conf$$.file
11986 if test -d conf$$.dir; then
11987 rm -f conf$$.dir/conf$$.file
11988 else
11989 rm -f conf$$.dir
11990 mkdir conf$$.dir 2>/dev/null
11992 if (echo >conf$$.file) 2>/dev/null; then
11993 if ln -s conf$$.file conf$$ 2>/dev/null; then
11994 as_ln_s='ln -s'
11995 # ... but there are two gotchas:
11996 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11997 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11998 # In both cases, we have to default to `cp -p'.
11999 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12000 as_ln_s='cp -p'
12001 elif ln conf$$.file conf$$ 2>/dev/null; then
12002 as_ln_s=ln
12003 else
12004 as_ln_s='cp -p'
12006 else
12007 as_ln_s='cp -p'
12009 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12010 rmdir conf$$.dir 2>/dev/null
12013 # as_fn_mkdir_p
12014 # -------------
12015 # Create "$as_dir" as a directory, including parents if necessary.
12016 as_fn_mkdir_p ()
12019 case $as_dir in #(
12020 -*) as_dir=./$as_dir;;
12021 esac
12022 test -d "$as_dir" || eval $as_mkdir_p || {
12023 as_dirs=
12024 while :; do
12025 case $as_dir in #(
12026 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12027 *) as_qdir=$as_dir;;
12028 esac
12029 as_dirs="'$as_qdir' $as_dirs"
12030 as_dir=`$as_dirname -- "$as_dir" ||
12031 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12032 X"$as_dir" : 'X\(//\)[^/]' \| \
12033 X"$as_dir" : 'X\(//\)$' \| \
12034 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12035 $as_echo X"$as_dir" |
12036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12037 s//\1/
12040 /^X\(\/\/\)[^/].*/{
12041 s//\1/
12044 /^X\(\/\/\)$/{
12045 s//\1/
12048 /^X\(\/\).*/{
12049 s//\1/
12052 s/.*/./; q'`
12053 test -d "$as_dir" && break
12054 done
12055 test -z "$as_dirs" || eval "mkdir $as_dirs"
12056 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12059 } # as_fn_mkdir_p
12060 if mkdir -p . 2>/dev/null; then
12061 as_mkdir_p='mkdir -p "$as_dir"'
12062 else
12063 test -d ./-p && rmdir ./-p
12064 as_mkdir_p=false
12067 if test -x / >/dev/null 2>&1; then
12068 as_test_x='test -x'
12069 else
12070 if ls -dL / >/dev/null 2>&1; then
12071 as_ls_L_option=L
12072 else
12073 as_ls_L_option=
12075 as_test_x='
12076 eval sh -c '\''
12077 if test -d "$1"; then
12078 test -d "$1/.";
12079 else
12080 case $1 in #(
12081 -*)set "./$1";;
12082 esac;
12083 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12084 ???[sx]*):;;*)false;;esac;fi
12085 '\'' sh
12088 as_executable_p=$as_test_x
12090 # Sed expression to map a string onto a valid CPP name.
12091 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12093 # Sed expression to map a string onto a valid variable name.
12094 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12097 exec 6>&1
12098 ## ----------------------------------- ##
12099 ## Main body of $CONFIG_STATUS script. ##
12100 ## ----------------------------------- ##
12101 _ASEOF
12102 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12105 # Save the log message, to keep $0 and so on meaningful, and to
12106 # report actual input values of CONFIG_FILES etc. instead of their
12107 # values after options handling.
12108 ac_log="
12109 This file was extended by $as_me, which was
12110 generated by GNU Autoconf 2.68. Invocation command line was
12112 CONFIG_FILES = $CONFIG_FILES
12113 CONFIG_HEADERS = $CONFIG_HEADERS
12114 CONFIG_LINKS = $CONFIG_LINKS
12115 CONFIG_COMMANDS = $CONFIG_COMMANDS
12116 $ $0 $@
12118 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12121 _ACEOF
12123 case $ac_config_files in *"
12124 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12125 esac
12127 case $ac_config_headers in *"
12128 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12129 esac
12132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12133 # Files that config.status was made for.
12134 config_files="$ac_config_files"
12135 config_headers="$ac_config_headers"
12136 config_commands="$ac_config_commands"
12138 _ACEOF
12140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12141 ac_cs_usage="\
12142 \`$as_me' instantiates files and other configuration actions
12143 from templates according to the current configuration. Unless the files
12144 and actions are specified as TAGs, all are instantiated by default.
12146 Usage: $0 [OPTION]... [TAG]...
12148 -h, --help print this help, then exit
12149 -V, --version print version number and configuration settings, then exit
12150 --config print configuration, then exit
12151 -q, --quiet, --silent
12152 do not print progress messages
12153 -d, --debug don't remove temporary files
12154 --recheck update $as_me by reconfiguring in the same conditions
12155 --file=FILE[:TEMPLATE]
12156 instantiate the configuration file FILE
12157 --header=FILE[:TEMPLATE]
12158 instantiate the configuration header FILE
12160 Configuration files:
12161 $config_files
12163 Configuration headers:
12164 $config_headers
12166 Configuration commands:
12167 $config_commands
12169 Report bugs to the package provider."
12171 _ACEOF
12172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12173 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12174 ac_cs_version="\\
12175 config.status
12176 configured by $0, generated by GNU Autoconf 2.68,
12177 with options \\"\$ac_cs_config\\"
12179 Copyright (C) 2010 Free Software Foundation, Inc.
12180 This config.status script is free software; the Free Software Foundation
12181 gives unlimited permission to copy, distribute and modify it."
12183 ac_pwd='$ac_pwd'
12184 srcdir='$srcdir'
12185 test -n "\$AWK" || AWK=awk
12186 _ACEOF
12188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12189 # The default lists apply if the user does not specify any file.
12190 ac_need_defaults=:
12191 while test $# != 0
12193 case $1 in
12194 --*=?*)
12195 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12196 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12197 ac_shift=:
12199 --*=)
12200 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12201 ac_optarg=
12202 ac_shift=:
12205 ac_option=$1
12206 ac_optarg=$2
12207 ac_shift=shift
12209 esac
12211 case $ac_option in
12212 # Handling of the options.
12213 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12214 ac_cs_recheck=: ;;
12215 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12216 $as_echo "$ac_cs_version"; exit ;;
12217 --config | --confi | --conf | --con | --co | --c )
12218 $as_echo "$ac_cs_config"; exit ;;
12219 --debug | --debu | --deb | --de | --d | -d )
12220 debug=: ;;
12221 --file | --fil | --fi | --f )
12222 $ac_shift
12223 case $ac_optarg in
12224 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12225 '') as_fn_error $? "missing file argument" ;;
12226 esac
12227 as_fn_append CONFIG_FILES " '$ac_optarg'"
12228 ac_need_defaults=false;;
12229 --header | --heade | --head | --hea )
12230 $ac_shift
12231 case $ac_optarg in
12232 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12233 esac
12234 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12235 ac_need_defaults=false;;
12236 --he | --h)
12237 # Conflict between --help and --header
12238 as_fn_error $? "ambiguous option: \`$1'
12239 Try \`$0 --help' for more information.";;
12240 --help | --hel | -h )
12241 $as_echo "$ac_cs_usage"; exit ;;
12242 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12243 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12244 ac_cs_silent=: ;;
12246 # This is an error.
12247 -*) as_fn_error $? "unrecognized option: \`$1'
12248 Try \`$0 --help' for more information." ;;
12250 *) as_fn_append ac_config_targets " $1"
12251 ac_need_defaults=false ;;
12253 esac
12254 shift
12255 done
12257 ac_configure_extra_args=
12259 if $ac_cs_silent; then
12260 exec 6>/dev/null
12261 ac_configure_extra_args="$ac_configure_extra_args --silent"
12264 _ACEOF
12265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12266 if \$ac_cs_recheck; then
12267 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12268 shift
12269 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12270 CONFIG_SHELL='$SHELL'
12271 export CONFIG_SHELL
12272 exec "\$@"
12275 _ACEOF
12276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12277 exec 5>>config.log
12279 echo
12280 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12281 ## Running $as_me. ##
12282 _ASBOX
12283 $as_echo "$ac_log"
12284 } >&5
12286 _ACEOF
12287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12289 # INIT-COMMANDS
12292 aros_host_exe_suffix=${aros_host_exe_suffix}
12293 aros_tools_dir=${aros_tools_dir}
12294 aros_target_cpu=${aros_target_cpu}
12295 aros_target_arch=${aros_target_arch}
12296 aros_target_suffix=${aros_target_suffix}
12297 aros_target_nm_ln=${aros_target_nm_ln}
12298 aros_target_as_ln=${aros_target_as_ln}
12299 aros_target_ar_ln=${aros_target_ar_ln}
12300 aros_target_ranlib_ln=${aros_target_ranlib_ln}
12301 aros_target_objdump_ln=${aros_target_objdump_ln}
12302 aros_target_objcopy_ln=${aros_target_objcopy_ln}
12303 aros_target_strip_ln=${aros_target_strip_ln}
12306 aros_tools_dir=${aros_tools_dir}
12309 _ACEOF
12311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12313 # Handling of arguments.
12314 for ac_config_target in $ac_config_targets
12316 case $ac_config_target in
12317 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
12318 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
12319 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
12320 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12321 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
12322 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
12323 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
12324 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
12325 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
12326 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
12327 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
12328 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
12329 "${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" ;;
12330 "${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" ;;
12331 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
12332 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
12333 "${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" ;;
12335 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12336 esac
12337 done
12340 # If the user did not use the arguments to specify the items to instantiate,
12341 # then the envvar interface is used. Set only those that are not.
12342 # We use the long form for the default assignment because of an extremely
12343 # bizarre bug on SunOS 4.1.3.
12344 if $ac_need_defaults; then
12345 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12346 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12347 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12350 # Have a temporary directory for convenience. Make it in the build tree
12351 # simply because there is no reason against having it here, and in addition,
12352 # creating and moving files from /tmp can sometimes cause problems.
12353 # Hook for its removal unless debugging.
12354 # Note that there is a small window in which the directory will not be cleaned:
12355 # after its creation but before its name has been assigned to `$tmp'.
12356 $debug ||
12358 tmp= ac_tmp=
12359 trap 'exit_status=$?
12360 : "${ac_tmp:=$tmp}"
12361 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12363 trap 'as_fn_exit 1' 1 2 13 15
12365 # Create a (secure) tmp directory for tmp files.
12368 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12369 test -d "$tmp"
12370 } ||
12372 tmp=./conf$$-$RANDOM
12373 (umask 077 && mkdir "$tmp")
12374 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12375 ac_tmp=$tmp
12377 # Set up the scripts for CONFIG_FILES section.
12378 # No need to generate them if there are no CONFIG_FILES.
12379 # This happens for instance with `./config.status config.h'.
12380 if test -n "$CONFIG_FILES"; then
12383 ac_cr=`echo X | tr X '\015'`
12384 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12385 # But we know of no other shell where ac_cr would be empty at this
12386 # point, so we can use a bashism as a fallback.
12387 if test "x$ac_cr" = x; then
12388 eval ac_cr=\$\'\\r\'
12390 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12391 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12392 ac_cs_awk_cr='\\r'
12393 else
12394 ac_cs_awk_cr=$ac_cr
12397 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12398 _ACEOF
12402 echo "cat >conf$$subs.awk <<_ACEOF" &&
12403 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12404 echo "_ACEOF"
12405 } >conf$$subs.sh ||
12406 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12407 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12408 ac_delim='%!_!# '
12409 for ac_last_try in false false false false false :; do
12410 . ./conf$$subs.sh ||
12411 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12413 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12414 if test $ac_delim_n = $ac_delim_num; then
12415 break
12416 elif $ac_last_try; then
12417 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12418 else
12419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12421 done
12422 rm -f conf$$subs.sh
12424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12425 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12426 _ACEOF
12427 sed -n '
12429 s/^/S["/; s/!.*/"]=/
12432 s/^[^!]*!//
12433 :repl
12434 t repl
12435 s/'"$ac_delim"'$//
12436 t delim
12439 s/\(.\{148\}\)..*/\1/
12440 t more1
12441 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12444 b repl
12445 :more1
12446 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12449 s/.\{148\}//
12450 t nl
12451 :delim
12453 s/\(.\{148\}\)..*/\1/
12454 t more2
12455 s/["\\]/\\&/g; s/^/"/; s/$/"/
12458 :more2
12459 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12462 s/.\{148\}//
12463 t delim
12464 ' <conf$$subs.awk | sed '
12465 /^[^""]/{
12467 s/\n//
12469 ' >>$CONFIG_STATUS || ac_write_fail=1
12470 rm -f conf$$subs.awk
12471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12472 _ACAWK
12473 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12474 for (key in S) S_is_set[key] = 1
12475 FS = "\a"
12479 line = $ 0
12480 nfields = split(line, field, "@")
12481 substed = 0
12482 len = length(field[1])
12483 for (i = 2; i < nfields; i++) {
12484 key = field[i]
12485 keylen = length(key)
12486 if (S_is_set[key]) {
12487 value = S[key]
12488 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12489 len += length(value) + length(field[++i])
12490 substed = 1
12491 } else
12492 len += 1 + keylen
12495 print line
12498 _ACAWK
12499 _ACEOF
12500 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12501 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12502 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12503 else
12505 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12506 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12507 _ACEOF
12509 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12510 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12511 # trailing colons and then remove the whole line if VPATH becomes empty
12512 # (actually we leave an empty line to preserve line numbers).
12513 if test "x$srcdir" = x.; then
12514 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12516 s///
12517 s/^/:/
12518 s/[ ]*$/:/
12519 s/:\$(srcdir):/:/g
12520 s/:\${srcdir}:/:/g
12521 s/:@srcdir@:/:/g
12522 s/^:*//
12523 s/:*$//
12525 s/\(=[ ]*\).*/\1/
12527 s/\n//
12528 s/^[^=]*=[ ]*$//
12532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12533 fi # test -n "$CONFIG_FILES"
12535 # Set up the scripts for CONFIG_HEADERS section.
12536 # No need to generate them if there are no CONFIG_HEADERS.
12537 # This happens for instance with `./config.status Makefile'.
12538 if test -n "$CONFIG_HEADERS"; then
12539 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12540 BEGIN {
12541 _ACEOF
12543 # Transform confdefs.h into an awk script `defines.awk', embedded as
12544 # here-document in config.status, that substitutes the proper values into
12545 # config.h.in to produce config.h.
12547 # Create a delimiter string that does not exist in confdefs.h, to ease
12548 # handling of long lines.
12549 ac_delim='%!_!# '
12550 for ac_last_try in false false :; do
12551 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12552 if test -z "$ac_tt"; then
12553 break
12554 elif $ac_last_try; then
12555 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12556 else
12557 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12559 done
12561 # For the awk script, D is an array of macro values keyed by name,
12562 # likewise P contains macro parameters if any. Preserve backslash
12563 # newline sequences.
12565 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12566 sed -n '
12567 s/.\{148\}/&'"$ac_delim"'/g
12568 t rset
12569 :rset
12570 s/^[ ]*#[ ]*define[ ][ ]*/ /
12571 t def
12573 :def
12574 s/\\$//
12575 t bsnl
12576 s/["\\]/\\&/g
12577 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12578 D["\1"]=" \3"/p
12579 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12581 :bsnl
12582 s/["\\]/\\&/g
12583 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12584 D["\1"]=" \3\\\\\\n"\\/p
12585 t cont
12586 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12587 t cont
12589 :cont
12591 s/.\{148\}/&'"$ac_delim"'/g
12592 t clear
12593 :clear
12594 s/\\$//
12595 t bsnlc
12596 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12598 :bsnlc
12599 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12600 b cont
12601 ' <confdefs.h | sed '
12602 s/'"$ac_delim"'/"\\\
12603 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12606 for (key in D) D_is_set[key] = 1
12607 FS = "\a"
12609 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12610 line = \$ 0
12611 split(line, arg, " ")
12612 if (arg[1] == "#") {
12613 defundef = arg[2]
12614 mac1 = arg[3]
12615 } else {
12616 defundef = substr(arg[1], 2)
12617 mac1 = arg[2]
12619 split(mac1, mac2, "(") #)
12620 macro = mac2[1]
12621 prefix = substr(line, 1, index(line, defundef) - 1)
12622 if (D_is_set[macro]) {
12623 # Preserve the white space surrounding the "#".
12624 print prefix "define", macro P[macro] D[macro]
12625 next
12626 } else {
12627 # Replace #undef with comments. This is necessary, for example,
12628 # in the case of _POSIX_SOURCE, which is predefined and required
12629 # on some systems where configure will not decide to define it.
12630 if (defundef == "undef") {
12631 print "/*", prefix defundef, macro, "*/"
12632 next
12636 { print }
12637 _ACAWK
12638 _ACEOF
12639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12640 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12641 fi # test -n "$CONFIG_HEADERS"
12644 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12645 shift
12646 for ac_tag
12648 case $ac_tag in
12649 :[FHLC]) ac_mode=$ac_tag; continue;;
12650 esac
12651 case $ac_mode$ac_tag in
12652 :[FHL]*:*);;
12653 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12654 :[FH]-) ac_tag=-:-;;
12655 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12656 esac
12657 ac_save_IFS=$IFS
12658 IFS=:
12659 set x $ac_tag
12660 IFS=$ac_save_IFS
12661 shift
12662 ac_file=$1
12663 shift
12665 case $ac_mode in
12666 :L) ac_source=$1;;
12667 :[FH])
12668 ac_file_inputs=
12669 for ac_f
12671 case $ac_f in
12672 -) ac_f="$ac_tmp/stdin";;
12673 *) # Look for the file first in the build tree, then in the source tree
12674 # (if the path is not absolute). The absolute path cannot be DOS-style,
12675 # because $ac_f cannot contain `:'.
12676 test -f "$ac_f" ||
12677 case $ac_f in
12678 [\\/$]*) false;;
12679 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12680 esac ||
12681 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12682 esac
12683 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12684 as_fn_append ac_file_inputs " '$ac_f'"
12685 done
12687 # Let's still pretend it is `configure' which instantiates (i.e., don't
12688 # use $as_me), people would be surprised to read:
12689 # /* config.h. Generated by config.status. */
12690 configure_input='Generated from '`
12691 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12692 `' by configure.'
12693 if test x"$ac_file" != x-; then
12694 configure_input="$ac_file. $configure_input"
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12696 $as_echo "$as_me: creating $ac_file" >&6;}
12698 # Neutralize special characters interpreted by sed in replacement strings.
12699 case $configure_input in #(
12700 *\&* | *\|* | *\\* )
12701 ac_sed_conf_input=`$as_echo "$configure_input" |
12702 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12703 *) ac_sed_conf_input=$configure_input;;
12704 esac
12706 case $ac_tag in
12707 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12708 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12709 esac
12711 esac
12713 ac_dir=`$as_dirname -- "$ac_file" ||
12714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12715 X"$ac_file" : 'X\(//\)[^/]' \| \
12716 X"$ac_file" : 'X\(//\)$' \| \
12717 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12718 $as_echo X"$ac_file" |
12719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12720 s//\1/
12723 /^X\(\/\/\)[^/].*/{
12724 s//\1/
12727 /^X\(\/\/\)$/{
12728 s//\1/
12731 /^X\(\/\).*/{
12732 s//\1/
12735 s/.*/./; q'`
12736 as_dir="$ac_dir"; as_fn_mkdir_p
12737 ac_builddir=.
12739 case "$ac_dir" in
12740 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12742 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12743 # A ".." for each directory in $ac_dir_suffix.
12744 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12745 case $ac_top_builddir_sub in
12746 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12747 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12748 esac ;;
12749 esac
12750 ac_abs_top_builddir=$ac_pwd
12751 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12752 # for backward compatibility:
12753 ac_top_builddir=$ac_top_build_prefix
12755 case $srcdir in
12756 .) # We are building in place.
12757 ac_srcdir=.
12758 ac_top_srcdir=$ac_top_builddir_sub
12759 ac_abs_top_srcdir=$ac_pwd ;;
12760 [\\/]* | ?:[\\/]* ) # Absolute name.
12761 ac_srcdir=$srcdir$ac_dir_suffix;
12762 ac_top_srcdir=$srcdir
12763 ac_abs_top_srcdir=$srcdir ;;
12764 *) # Relative name.
12765 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12766 ac_top_srcdir=$ac_top_build_prefix$srcdir
12767 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12768 esac
12769 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12772 case $ac_mode in
12775 # CONFIG_FILE
12778 _ACEOF
12780 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12781 # If the template does not know about datarootdir, expand it.
12782 # FIXME: This hack should be removed a few years after 2.60.
12783 ac_datarootdir_hack=; ac_datarootdir_seen=
12784 ac_sed_dataroot='
12785 /datarootdir/ {
12789 /@datadir@/p
12790 /@docdir@/p
12791 /@infodir@/p
12792 /@localedir@/p
12793 /@mandir@/p'
12794 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12795 *datarootdir*) ac_datarootdir_seen=yes;;
12796 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12798 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12799 _ACEOF
12800 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12801 ac_datarootdir_hack='
12802 s&@datadir@&$datadir&g
12803 s&@docdir@&$docdir&g
12804 s&@infodir@&$infodir&g
12805 s&@localedir@&$localedir&g
12806 s&@mandir@&$mandir&g
12807 s&\\\${datarootdir}&$datarootdir&g' ;;
12808 esac
12809 _ACEOF
12811 # Neutralize VPATH when `$srcdir' = `.'.
12812 # Shell code in configure.ac might set extrasub.
12813 # FIXME: do we really want to maintain this feature?
12814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12815 ac_sed_extra="$ac_vpsub
12816 $extrasub
12817 _ACEOF
12818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12820 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12821 s|@configure_input@|$ac_sed_conf_input|;t t
12822 s&@top_builddir@&$ac_top_builddir_sub&;t t
12823 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12824 s&@srcdir@&$ac_srcdir&;t t
12825 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12826 s&@top_srcdir@&$ac_top_srcdir&;t t
12827 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12828 s&@builddir@&$ac_builddir&;t t
12829 s&@abs_builddir@&$ac_abs_builddir&;t t
12830 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12831 $ac_datarootdir_hack
12833 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
12834 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12836 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12837 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
12838 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
12839 "$ac_tmp/out"`; test -z "$ac_out"; } &&
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12841 which seems to be undefined. Please make sure it is defined" >&5
12842 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12843 which seems to be undefined. Please make sure it is defined" >&2;}
12845 rm -f "$ac_tmp/stdin"
12846 case $ac_file in
12847 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
12848 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
12849 esac \
12850 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12854 # CONFIG_HEADER
12856 if test x"$ac_file" != x-; then
12858 $as_echo "/* $configure_input */" \
12859 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
12860 } >"$ac_tmp/config.h" \
12861 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12862 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12864 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12865 else
12866 rm -f "$ac_file"
12867 mv "$ac_tmp/config.h" "$ac_file" \
12868 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12870 else
12871 $as_echo "/* $configure_input */" \
12872 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
12873 || as_fn_error $? "could not create -" "$LINENO" 5
12877 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12878 $as_echo "$as_me: executing $ac_file commands" >&6;}
12880 esac
12883 case $ac_file$ac_mode in
12884 "compiler_executable":C)
12885 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12886 mkdir -p $prefix
12887 prefix="${prefix}/${aros_target_cpu}-aros"
12888 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12890 echo ${prefix}
12891 echo ${prefix2}
12892 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12894 ln -sf ${prefix2}-gcc ${prefix}-gcc
12895 ln -sf ${prefix2}-ld ${prefix}-ld
12897 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12898 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12899 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12900 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12901 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12902 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12903 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12905 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12906 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12907 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12908 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12909 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12910 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12911 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12913 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12915 esac
12916 done # for ac_tag
12919 as_fn_exit 0
12920 _ACEOF
12921 ac_clean_files=$ac_clean_files_save
12923 test $ac_write_fail = 0 ||
12924 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12927 # configure is writing to config.log, and then calls config.status.
12928 # config.status does its own redirection, appending to config.log.
12929 # Unfortunately, on DOS this fails, as config.log is still kept open
12930 # by configure, so config.status won't be able to write to it; its
12931 # output is simply discarded. So we exec the FD to /dev/null,
12932 # effectively closing config.log, so it can be properly (re)opened and
12933 # appended to by config.status. When coming back to configure, we
12934 # need to make the FD available again.
12935 if test "$no_create" != yes; then
12936 ac_cs_success=:
12937 ac_config_status_args=
12938 test "$silent" = yes &&
12939 ac_config_status_args="$ac_config_status_args --quiet"
12940 exec 5>/dev/null
12941 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12942 exec 5>>config.log
12943 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12944 # would make configure fail if this is the last instruction.
12945 $ac_cs_success || as_fn_exit 1
12947 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12949 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12954 #XXX compatability...
12955 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12957 if test -n "$aros_shared_cflags" ; then
12958 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12959 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg