correction to wave dtd
[AROS.git] / configure
blob143ee84d7130be991c420634243216352bc0e2bf
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
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 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
557 ac_unique_file="mmakefile"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_subst_vars='LTLIBOBJS
596 gcc_target_cpu
597 ignore_undefined_symbols
598 aros_modules_debug
599 aros_stack_debug
600 aros_mungwall_debug
601 aros_debug
602 ENABLE_X11
603 KERNEL_DBUS_INCLUDES
604 KERNEL_DBUS_KOBJ
605 DBUS_LIBFLAGS
606 DBUS_CFLAGS
607 ENABLE_DBUS
608 aros_android_level
609 aros_ios_sdk
610 aros_ios_version
611 aros_ios_platform
612 aros_enable_mmu
613 aros_nesting_supervisor
614 aros_palm_debug_hack
615 aros_serial_debug
616 aros_host_sdl_libs
617 aros_host_sdl_cflags
618 aros_host_x11_libdirs
619 aros_host_x11_includes
620 DO_VIDMODE_SUPPORT
621 DO_XSHM_SUPPORT
622 aros_default_wbdepth
623 aros_default_wbheight
624 aros_default_wbwidth
625 oss_library_target
626 pci_hidd_target
627 sdl_hidd_target
628 x11_hidd_target
629 crosstools_cxx_target
630 crosstools_target
631 aros_target_strip_flags
632 aros_target_genmap
633 aros_debug_ldflags
634 aros_debug_aflags
635 aros_debug_cflags
636 aros_target_cflags
637 aros_kernel_ldflags
638 aros_kernel_objcflags
639 aros_kernel_includes
640 aros_kernel_cflags
641 aros_shared_ldflags
642 aros_shared_aflags
643 aros_shared_cflags
644 aros_config_ldflags
645 aros_config_aflags
646 aros_config_cflags
647 aros_arch_libs
648 aros_compiler_libs
649 aros_object_format
650 aros_shared_ld
651 aros_shared_default
652 aros_target_nm
653 aros_target_strip
654 aros_target_objcopy
655 aros_target_objdump
656 aros_target_cc_path
657 aros_target_cc_includes
658 orig_target_ld
659 aros_target_as
660 aros_kernel_cc
661 orig_target_cc
662 aros_kernel_ar
663 aros_kernel_nm
664 aros_target_ranlib
665 aros_target_ar
666 aros_target_incl
667 aros_target_suffix
668 aros_target_variant
669 aros_target_cpu
670 aros_target_family
671 aros_target_arch
672 aros_target_bootloader
673 aros_target_iconset
674 aros_target_guitheme
675 aros_tools_dir
676 aros_host_lib_suffix
677 aros_host_exe_suffix
678 aros_host_mkargs
679 aros_host_mkdep
680 aros_host_debug
681 aros_host_ldflags
682 gnu89_inline
683 aros_host_cflags
684 aros_host_make
685 aros_host_cc
686 aros_host_cpu
687 aros_host_arch
688 aros_cc_pre
689 AROS_PORTSSRCDIR
690 AROS_CROSSTOOLSDIR
691 SRCDIR
692 AROS_BUILDDIR_UNIX
693 AROS_BUILDDIR
694 aros_flavour_uc
695 aros_flavour
696 aros_cpu
697 aros_arch
698 SDL_LIBS
699 SDL_CFLAGS
700 SDL_CONFIG
701 XMKMF
702 aros_cflags_iquote_end
703 aros_cflags_iquote
704 kernel_cflags_iquote_end
705 kernel_cflags_iquote
706 host_cflags_iquote_end
707 host_cflags_iquote
708 aros_target_nostdlib_ldflags
709 aros_target_detach_ldflags
710 aros_target_nix_ldflags
711 aros_target_nostartup_ldflags
712 aros_target_nostdinc_cflags
713 aros_target_ld
714 aros_target_cc
715 aros_target_cxx
716 aros_target_strip_ln
717 aros_target_ranlib_ln
718 aros_target_objdump_ln
719 aros_target_objcopy_ln
720 aros_target_nm_ln
721 aros_target_ar_ln
722 aros_target_as_ln
723 aros_kernel_ld
724 aros_kernel_rescomp
725 android_tool
726 CCACHE
727 DISTCC
728 LIBOBJS
729 EGREP
730 GREP
732 TEST
735 pkgpyexecdir
736 pyexecdir
737 pkgpythondir
738 pythondir
739 PYTHON_PLATFORM
740 PYTHON_EXEC_PREFIX
741 PYTHON_PREFIX
742 PYTHON_VERSION
743 PYTHON
744 PATCH
745 CHMOD
747 PPMTOILBM
748 PNGTOPNM
749 FLEX
750 BISON
753 UNIQ
754 SORT
755 TOUCH
756 MKDIR
757 ECHO
761 aros_host_strip
762 aros_host_ranlib
763 aros_host_ar
764 aros_host_automake
765 aros_host_autoheader
766 aros_host_autoconf
767 aros_host_aclocal
768 aros_host_ld
769 MMAKE
772 OBJEXT
773 EXEEXT
774 ac_ct_CC
775 CPPFLAGS
776 LDFLAGS
777 CFLAGS
779 host_os
780 host_vendor
781 host_cpu
782 host
783 build_os
784 build_vendor
785 build_cpu
786 build
787 target_alias
788 host_alias
789 build_alias
790 LIBS
791 ECHO_T
792 ECHO_N
793 ECHO_C
794 DEFS
795 mandir
796 localedir
797 libdir
798 psdir
799 pdfdir
800 dvidir
801 htmldir
802 infodir
803 docdir
804 oldincludedir
805 includedir
806 localstatedir
807 sharedstatedir
808 sysconfdir
809 datadir
810 datarootdir
811 libexecdir
812 sbindir
813 bindir
814 program_transform_name
815 prefix
816 exec_prefix
817 PACKAGE_URL
818 PACKAGE_BUGREPORT
819 PACKAGE_STRING
820 PACKAGE_VERSION
821 PACKAGE_TARNAME
822 PACKAGE_NAME
823 PATH_SEPARATOR
824 SHELL'
825 ac_subst_files=''
826 ac_user_opts='
827 enable_option_checking
828 enable_build_type
829 enable_debug
830 enable_crosstools
831 enable_distcc
832 enable_ccache
833 with_gcc_version
834 with_optimization
835 with_paranoia
836 enable_target_variant
837 with_xcode
838 with_ios_version
839 with_ios_sdk
840 with_sdk
841 with_ndk
842 with_android_version
843 with_crosstools
844 with_aros_gcc
845 with_portssources
846 with_bootloader
847 with_iconset
848 with_theme
849 enable_includes
850 with_resolution
851 with_serial_debug
852 enable_palm_debug_hack
853 enable_nesting_supervisor
854 enable_mmu
855 enable_x11_hidd
856 with_x
857 enable_x11_shm
858 enable_x11_vidmode
859 enable_sdl_hidd
860 with_sdl_prefix
861 with_sdl_exec_prefix
862 enable_sdltest
863 enable_dbus
865 ac_precious_vars='build_alias
866 host_alias
867 target_alias
869 CFLAGS
870 LDFLAGS
871 LIBS
872 CPPFLAGS
874 XMKMF'
877 # Initialize some variables set by options.
878 ac_init_help=
879 ac_init_version=false
880 ac_unrecognized_opts=
881 ac_unrecognized_sep=
882 # The variables have the same names as the options, with
883 # dashes changed to underlines.
884 cache_file=/dev/null
885 exec_prefix=NONE
886 no_create=
887 no_recursion=
888 prefix=NONE
889 program_prefix=NONE
890 program_suffix=NONE
891 program_transform_name=s,x,x,
892 silent=
893 site=
894 srcdir=
895 verbose=
896 x_includes=NONE
897 x_libraries=NONE
899 # Installation directory options.
900 # These are left unexpanded so users can "make install exec_prefix=/foo"
901 # and all the variables that are supposed to be based on exec_prefix
902 # by default will actually change.
903 # Use braces instead of parens because sh, perl, etc. also accept them.
904 # (The list follows the same order as the GNU Coding Standards.)
905 bindir='${exec_prefix}/bin'
906 sbindir='${exec_prefix}/sbin'
907 libexecdir='${exec_prefix}/libexec'
908 datarootdir='${prefix}/share'
909 datadir='${datarootdir}'
910 sysconfdir='${prefix}/etc'
911 sharedstatedir='${prefix}/com'
912 localstatedir='${prefix}/var'
913 includedir='${prefix}/include'
914 oldincludedir='/usr/include'
915 docdir='${datarootdir}/doc/${PACKAGE}'
916 infodir='${datarootdir}/info'
917 htmldir='${docdir}'
918 dvidir='${docdir}'
919 pdfdir='${docdir}'
920 psdir='${docdir}'
921 libdir='${exec_prefix}/lib'
922 localedir='${datarootdir}/locale'
923 mandir='${datarootdir}/man'
925 ac_prev=
926 ac_dashdash=
927 for ac_option
929 # If the previous option needs an argument, assign it.
930 if test -n "$ac_prev"; then
931 eval $ac_prev=\$ac_option
932 ac_prev=
933 continue
936 case $ac_option in
937 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938 *=) ac_optarg= ;;
939 *) ac_optarg=yes ;;
940 esac
942 # Accept the important Cygnus configure options, so we can diagnose typos.
944 case $ac_dashdash$ac_option in
946 ac_dashdash=yes ;;
948 -bindir | --bindir | --bindi | --bind | --bin | --bi)
949 ac_prev=bindir ;;
950 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
951 bindir=$ac_optarg ;;
953 -build | --build | --buil | --bui | --bu)
954 ac_prev=build_alias ;;
955 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
956 build_alias=$ac_optarg ;;
958 -cache-file | --cache-file | --cache-fil | --cache-fi \
959 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
960 ac_prev=cache_file ;;
961 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
962 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
963 cache_file=$ac_optarg ;;
965 --config-cache | -C)
966 cache_file=config.cache ;;
968 -datadir | --datadir | --datadi | --datad)
969 ac_prev=datadir ;;
970 -datadir=* | --datadir=* | --datadi=* | --datad=*)
971 datadir=$ac_optarg ;;
973 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
974 | --dataroo | --dataro | --datar)
975 ac_prev=datarootdir ;;
976 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
977 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
978 datarootdir=$ac_optarg ;;
980 -disable-* | --disable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: $ac_useropt"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=no ;;
996 -docdir | --docdir | --docdi | --doc | --do)
997 ac_prev=docdir ;;
998 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
999 docdir=$ac_optarg ;;
1001 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1002 ac_prev=dvidir ;;
1003 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1004 dvidir=$ac_optarg ;;
1006 -enable-* | --enable-*)
1007 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1008 # Reject names that are not valid shell variable names.
1009 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1010 as_fn_error $? "invalid feature name: $ac_useropt"
1011 ac_useropt_orig=$ac_useropt
1012 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1013 case $ac_user_opts in
1015 "enable_$ac_useropt"
1016 "*) ;;
1017 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1018 ac_unrecognized_sep=', ';;
1019 esac
1020 eval enable_$ac_useropt=\$ac_optarg ;;
1022 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1023 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1024 | --exec | --exe | --ex)
1025 ac_prev=exec_prefix ;;
1026 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1027 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1028 | --exec=* | --exe=* | --ex=*)
1029 exec_prefix=$ac_optarg ;;
1031 -gas | --gas | --ga | --g)
1032 # Obsolete; use --with-gas.
1033 with_gas=yes ;;
1035 -help | --help | --hel | --he | -h)
1036 ac_init_help=long ;;
1037 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1038 ac_init_help=recursive ;;
1039 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1040 ac_init_help=short ;;
1042 -host | --host | --hos | --ho)
1043 ac_prev=host_alias ;;
1044 -host=* | --host=* | --hos=* | --ho=*)
1045 host_alias=$ac_optarg ;;
1047 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1048 ac_prev=htmldir ;;
1049 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1050 | --ht=*)
1051 htmldir=$ac_optarg ;;
1053 -includedir | --includedir | --includedi | --included | --include \
1054 | --includ | --inclu | --incl | --inc)
1055 ac_prev=includedir ;;
1056 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1057 | --includ=* | --inclu=* | --incl=* | --inc=*)
1058 includedir=$ac_optarg ;;
1060 -infodir | --infodir | --infodi | --infod | --info | --inf)
1061 ac_prev=infodir ;;
1062 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1063 infodir=$ac_optarg ;;
1065 -libdir | --libdir | --libdi | --libd)
1066 ac_prev=libdir ;;
1067 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1068 libdir=$ac_optarg ;;
1070 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1071 | --libexe | --libex | --libe)
1072 ac_prev=libexecdir ;;
1073 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1074 | --libexe=* | --libex=* | --libe=*)
1075 libexecdir=$ac_optarg ;;
1077 -localedir | --localedir | --localedi | --localed | --locale)
1078 ac_prev=localedir ;;
1079 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1080 localedir=$ac_optarg ;;
1082 -localstatedir | --localstatedir | --localstatedi | --localstated \
1083 | --localstate | --localstat | --localsta | --localst | --locals)
1084 ac_prev=localstatedir ;;
1085 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1086 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1087 localstatedir=$ac_optarg ;;
1089 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1090 ac_prev=mandir ;;
1091 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1092 mandir=$ac_optarg ;;
1094 -nfp | --nfp | --nf)
1095 # Obsolete; use --without-fp.
1096 with_fp=no ;;
1098 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1099 | --no-cr | --no-c | -n)
1100 no_create=yes ;;
1102 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1103 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1104 no_recursion=yes ;;
1106 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1107 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1108 | --oldin | --oldi | --old | --ol | --o)
1109 ac_prev=oldincludedir ;;
1110 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1111 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1112 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1113 oldincludedir=$ac_optarg ;;
1115 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1116 ac_prev=prefix ;;
1117 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1118 prefix=$ac_optarg ;;
1120 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1121 | --program-pre | --program-pr | --program-p)
1122 ac_prev=program_prefix ;;
1123 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1124 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1125 program_prefix=$ac_optarg ;;
1127 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1128 | --program-suf | --program-su | --program-s)
1129 ac_prev=program_suffix ;;
1130 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1131 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1132 program_suffix=$ac_optarg ;;
1134 -program-transform-name | --program-transform-name \
1135 | --program-transform-nam | --program-transform-na \
1136 | --program-transform-n | --program-transform- \
1137 | --program-transform | --program-transfor \
1138 | --program-transfo | --program-transf \
1139 | --program-trans | --program-tran \
1140 | --progr-tra | --program-tr | --program-t)
1141 ac_prev=program_transform_name ;;
1142 -program-transform-name=* | --program-transform-name=* \
1143 | --program-transform-nam=* | --program-transform-na=* \
1144 | --program-transform-n=* | --program-transform-=* \
1145 | --program-transform=* | --program-transfor=* \
1146 | --program-transfo=* | --program-transf=* \
1147 | --program-trans=* | --program-tran=* \
1148 | --progr-tra=* | --program-tr=* | --program-t=*)
1149 program_transform_name=$ac_optarg ;;
1151 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1152 ac_prev=pdfdir ;;
1153 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1154 pdfdir=$ac_optarg ;;
1156 -psdir | --psdir | --psdi | --psd | --ps)
1157 ac_prev=psdir ;;
1158 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1159 psdir=$ac_optarg ;;
1161 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1162 | -silent | --silent | --silen | --sile | --sil)
1163 silent=yes ;;
1165 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1166 ac_prev=sbindir ;;
1167 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1168 | --sbi=* | --sb=*)
1169 sbindir=$ac_optarg ;;
1171 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1172 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1173 | --sharedst | --shareds | --shared | --share | --shar \
1174 | --sha | --sh)
1175 ac_prev=sharedstatedir ;;
1176 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1177 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1178 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1179 | --sha=* | --sh=*)
1180 sharedstatedir=$ac_optarg ;;
1182 -site | --site | --sit)
1183 ac_prev=site ;;
1184 -site=* | --site=* | --sit=*)
1185 site=$ac_optarg ;;
1187 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1188 ac_prev=srcdir ;;
1189 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1190 srcdir=$ac_optarg ;;
1192 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1193 | --syscon | --sysco | --sysc | --sys | --sy)
1194 ac_prev=sysconfdir ;;
1195 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1196 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1197 sysconfdir=$ac_optarg ;;
1199 -target | --target | --targe | --targ | --tar | --ta | --t)
1200 ac_prev=target_alias ;;
1201 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1202 target_alias=$ac_optarg ;;
1204 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 verbose=yes ;;
1207 -version | --version | --versio | --versi | --vers | -V)
1208 ac_init_version=: ;;
1210 -with-* | --with-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: $ac_useropt"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1219 "with_$ac_useropt"
1220 "*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=\$ac_optarg ;;
1226 -without-* | --without-*)
1227 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1230 as_fn_error $? "invalid package name: $ac_useropt"
1231 ac_useropt_orig=$ac_useropt
1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1235 "with_$ac_useropt"
1236 "*) ;;
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238 ac_unrecognized_sep=', ';;
1239 esac
1240 eval with_$ac_useropt=no ;;
1242 --x)
1243 # Obsolete; use --with-x.
1244 with_x=yes ;;
1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247 | --x-incl | --x-inc | --x-in | --x-i)
1248 ac_prev=x_includes ;;
1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251 x_includes=$ac_optarg ;;
1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255 ac_prev=x_libraries ;;
1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258 x_libraries=$ac_optarg ;;
1260 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1261 Try \`$0 --help' for more information"
1264 *=*)
1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266 # Reject names that are not valid shell variable names.
1267 case $ac_envvar in #(
1268 '' | [0-9]* | *[!_$as_cr_alnum]* )
1269 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1270 esac
1271 eval $ac_envvar=\$ac_optarg
1272 export $ac_envvar ;;
1275 # FIXME: should be removed in autoconf 3.0.
1276 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1282 esac
1283 done
1285 if test -n "$ac_prev"; then
1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 as_fn_error $? "missing argument to $ac_option"
1290 if test -n "$ac_unrecognized_opts"; then
1291 case $enable_option_checking in
1292 no) ;;
1293 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1294 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1295 esac
1298 # Check all directory arguments for consistency.
1299 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1300 datadir sysconfdir sharedstatedir localstatedir includedir \
1301 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1302 libdir localedir mandir
1304 eval ac_val=\$$ac_var
1305 # Remove trailing slashes.
1306 case $ac_val in
1307 */ )
1308 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1309 eval $ac_var=\$ac_val;;
1310 esac
1311 # Be sure to have absolute directory names.
1312 case $ac_val in
1313 [\\/$]* | ?:[\\/]* ) continue;;
1314 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1315 esac
1316 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317 done
1319 # There might be people who depend on the old broken behavior: `$host'
1320 # used to hold the argument of --host etc.
1321 # FIXME: To remove some day.
1322 build=$build_alias
1323 host=$host_alias
1324 target=$target_alias
1326 # FIXME: To remove some day.
1327 if test "x$host_alias" != x; then
1328 if test "x$build_alias" = x; then
1329 cross_compiling=maybe
1330 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1331 If a cross compiler is detected then cross compile mode will be used" >&2
1332 elif test "x$build_alias" != "x$host_alias"; then
1333 cross_compiling=yes
1337 ac_tool_prefix=
1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1340 test "$silent" = yes && exec 6>/dev/null
1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di=`ls -di .` &&
1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346 as_fn_error $? "working directory cannot be determined"
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348 as_fn_error $? "pwd does not report name of working directory"
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353 ac_srcdir_defaulted=yes
1354 # Try the directory containing this script, then the parent directory.
1355 ac_confdir=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357 X"$as_myself" : 'X\(//\)[^/]' \| \
1358 X"$as_myself" : 'X\(//\)$' \| \
1359 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362 s//\1/
1365 /^X\(\/\/\)[^/].*/{
1366 s//\1/
1369 /^X\(\/\/\)$/{
1370 s//\1/
1373 /^X\(\/\).*/{
1374 s//\1/
1377 s/.*/./; q'`
1378 srcdir=$ac_confdir
1379 if test ! -r "$srcdir/$ac_unique_file"; then
1380 srcdir=..
1382 else
1383 ac_srcdir_defaulted=no
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392 pwd)`
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395 srcdir=.
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1400 case $srcdir in
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 esac
1403 for ac_var in $ac_precious_vars; do
1404 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405 eval ac_env_${ac_var}_value=\$${ac_var}
1406 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 done
1411 # Report the --help message.
1413 if test "$ac_init_help" = "long"; then
1414 # Omit some internal or obsolete options to make the list less imposing.
1415 # This message is too long to be a string in the A/UX 3.1 sh.
1416 cat <<_ACEOF
1417 \`configure' configures this package to adapt to many kinds of systems.
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE. See below for descriptions of some of the useful variables.
1424 Defaults for the options are specified in brackets.
1426 Configuration:
1427 -h, --help display this help and exit
1428 --help=short display options specific to this package
1429 --help=recursive display the short help of all the included packages
1430 -V, --version display version information and exit
1431 -q, --quiet, --silent do not print \`checking ...' messages
1432 --cache-file=FILE cache test results in FILE [disabled]
1433 -C, --config-cache alias for \`--cache-file=config.cache'
1434 -n, --no-create do not create output files
1435 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1437 Installation directories:
1438 --prefix=PREFIX install architecture-independent files in PREFIX
1439 [$ac_default_prefix]
1440 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1441 [PREFIX]
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1448 For better control, use the options below.
1450 Fine tuning of the installation directories:
1451 --bindir=DIR user executables [EPREFIX/bin]
1452 --sbindir=DIR system admin executables [EPREFIX/sbin]
1453 --libexecdir=DIR program executables [EPREFIX/libexec]
1454 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1455 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1456 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1457 --libdir=DIR object code libraries [EPREFIX/lib]
1458 --includedir=DIR C header files [PREFIX/include]
1459 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1460 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1461 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1462 --infodir=DIR info documentation [DATAROOTDIR/info]
1463 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1464 --mandir=DIR man documentation [DATAROOTDIR/man]
1465 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1466 --htmldir=DIR html documentation [DOCDIR]
1467 --dvidir=DIR dvi documentation [DOCDIR]
1468 --pdfdir=DIR pdf documentation [DOCDIR]
1469 --psdir=DIR ps documentation [DOCDIR]
1470 _ACEOF
1472 cat <<\_ACEOF
1474 X features:
1475 --x-includes=DIR X include files are in DIR
1476 --x-libraries=DIR X library files are in DIR
1478 System types:
1479 --build=BUILD configure for building on BUILD [guessed]
1480 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1481 _ACEOF
1484 if test -n "$ac_init_help"; then
1486 cat <<\_ACEOF
1488 Optional Features:
1489 --disable-option-checking ignore unrecognized --enable/--with options
1490 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1491 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1492 --enable-build-type=TYPE
1493 Select the build type. Available types are:
1494 personal, nightly, snapshot, milestone, release. Do
1495 NOT use this option unless you know what you are
1496 doing! (default=personal)
1497 --enable-debug=list Enable different types of debug. Commas or
1498 whitespaces can be used to separate the items in the
1499 list. Available types of debug are: all, none,
1500 messages, stack, mungwall, modules, symbols. If no
1501 list is provided then "all" is assumed.
1502 (default=none)
1503 --enable-crosstools Build cross-compiler toolchains if necessary
1504 (default=no).
1505 --enable-distcc Use distcc as a front end to the compiler
1506 (default=no).
1507 --enable-ccache Use ccache as a front end to the compiler
1508 (default=no).
1509 --enable-target-variant=NAME
1510 Enable a specific target variant(default=none)
1511 --enable-includes=dir Alternative system include directory
1512 --enable-palm-debug-hack
1513 Enable palm debug output hack in palm native
1514 (default=no)
1515 --enable-nesting-supervisor
1516 Enable nesting supervisor support in unix
1517 (default=no)
1518 --disable-mmu Disable MMU support (default=enabled)
1519 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1520 --enable-x11-shm use X11 shared memory (default=auto)
1521 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1522 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1523 --disable-sdltest Do not try to compile and run a test SDL program
1524 --enable-dbus Enable DBUS support via dbus.library (default=no)
1526 Optional Packages:
1527 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1528 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1529 --with-gcc-version=VERSION
1530 Use host gcc-VERSION for building AROS
1531 --with-optimization=FLAGS
1532 Use optimization flags FLAGS (default=-O2).
1533 --with-paranoia=FLAGS CC flags to enable paranoia
1534 --with-xcode=PATH Specify XCode path for iOS targets
1535 (default=/Developer).
1536 --with-ios-version=VERSION
1537 Specify minimum supported iOS version (default=3.0).
1538 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1539 --with-sdk=PATH Specify Android SDK path
1540 (default=$default_android_sdk).
1541 --with-ndk=PATH Specify Android NDK path
1542 (default=$default_android_ndk).
1543 --with-android-version=VERSION
1544 Use Android platform VERSION (default=2.2).
1545 --with-crosstools=DIR Where to install or search for cross tools binaries
1546 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1547 --with-portssources=DIR Where to download sourcecode for external ports
1548 --with-bootloader=NAME Use a specific bootloader
1549 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1550 --with-theme=NAME Use a specific GUI Theme
1551 --with-resolution=XRESxYRESxDEPTH
1552 Default resolution of the initial WorkbenchScreen
1553 --with-serial-debug Enable serial debug output in native (default=no)
1554 --with-x use the X Window System
1555 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1556 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1558 Some influential environment variables:
1559 CC C compiler command
1560 CFLAGS C compiler flags
1561 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1562 nonstandard directory <lib dir>
1563 LIBS libraries to pass to the linker, e.g. -l<library>
1564 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1565 you have headers in a nonstandard directory <include dir>
1566 CPP C preprocessor
1567 XMKMF Path to xmkmf, Makefile generator for X Window System
1569 Use these variables to override the choices made by `configure' or to help
1570 it to find libraries and programs with nonstandard names/locations.
1572 Report bugs to the package provider.
1573 _ACEOF
1574 ac_status=$?
1577 if test "$ac_init_help" = "recursive"; then
1578 # If there are subdirs, report their specific --help.
1579 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1580 test -d "$ac_dir" ||
1581 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1582 continue
1583 ac_builddir=.
1585 case "$ac_dir" in
1586 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1589 # A ".." for each directory in $ac_dir_suffix.
1590 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1591 case $ac_top_builddir_sub in
1592 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1593 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594 esac ;;
1595 esac
1596 ac_abs_top_builddir=$ac_pwd
1597 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1598 # for backward compatibility:
1599 ac_top_builddir=$ac_top_build_prefix
1601 case $srcdir in
1602 .) # We are building in place.
1603 ac_srcdir=.
1604 ac_top_srcdir=$ac_top_builddir_sub
1605 ac_abs_top_srcdir=$ac_pwd ;;
1606 [\\/]* | ?:[\\/]* ) # Absolute name.
1607 ac_srcdir=$srcdir$ac_dir_suffix;
1608 ac_top_srcdir=$srcdir
1609 ac_abs_top_srcdir=$srcdir ;;
1610 *) # Relative name.
1611 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1612 ac_top_srcdir=$ac_top_build_prefix$srcdir
1613 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1614 esac
1615 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1617 cd "$ac_dir" || { ac_status=$?; continue; }
1618 # Check for guested configure.
1619 if test -f "$ac_srcdir/configure.gnu"; then
1620 echo &&
1621 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1622 elif test -f "$ac_srcdir/configure"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure" --help=recursive
1625 else
1626 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1627 fi || ac_status=$?
1628 cd "$ac_pwd" || { ac_status=$?; break; }
1629 done
1632 test -n "$ac_init_help" && exit $ac_status
1633 if $ac_init_version; then
1634 cat <<\_ACEOF
1635 configure
1636 generated by GNU Autoconf 2.67
1638 Copyright (C) 2010 Free Software Foundation, Inc.
1639 This configure script is free software; the Free Software Foundation
1640 gives unlimited permission to copy, distribute and modify it.
1641 _ACEOF
1642 exit
1645 ## ------------------------ ##
1646 ## Autoconf initialization. ##
1647 ## ------------------------ ##
1649 # ac_fn_c_try_compile LINENO
1650 # --------------------------
1651 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1652 ac_fn_c_try_compile ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 rm -f conftest.$ac_objext
1656 if { { ac_try="$ac_compile"
1657 case "(($ac_try" in
1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1659 *) ac_try_echo=$ac_try;;
1660 esac
1661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1662 $as_echo "$ac_try_echo"; } >&5
1663 (eval "$ac_compile") 2>conftest.err
1664 ac_status=$?
1665 if test -s conftest.err; then
1666 grep -v '^ *+' conftest.err >conftest.er1
1667 cat conftest.er1 >&5
1668 mv -f conftest.er1 conftest.err
1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1671 test $ac_status = 0; } && {
1672 test -z "$ac_c_werror_flag" ||
1673 test ! -s conftest.err
1674 } && test -s conftest.$ac_objext; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1680 ac_retval=1
1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1683 as_fn_set_status $ac_retval
1685 } # ac_fn_c_try_compile
1687 # ac_fn_c_try_cpp LINENO
1688 # ----------------------
1689 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_cpp ()
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 if { { ac_try="$ac_cpp conftest.$ac_ext"
1694 case "(($ac_try" in
1695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1696 *) ac_try_echo=$ac_try;;
1697 esac
1698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1699 $as_echo "$ac_try_echo"; } >&5
1700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1701 ac_status=$?
1702 if test -s conftest.err; then
1703 grep -v '^ *+' conftest.err >conftest.er1
1704 cat conftest.er1 >&5
1705 mv -f conftest.er1 conftest.err
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; } > conftest.i && {
1709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1710 test ! -s conftest.err
1711 }; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: failed program was:" >&5
1715 sed 's/^/| /' conftest.$ac_ext >&5
1717 ac_retval=1
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 as_fn_set_status $ac_retval
1722 } # ac_fn_c_try_cpp
1724 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1725 # -------------------------------------------------------
1726 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1727 # the include files in INCLUDES and setting the cache variable VAR
1728 # accordingly.
1729 ac_fn_c_check_header_mongrel ()
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if eval "test \"\${$3+set}\"" = set; then :
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval "test \"\${$3+set}\"" = set; then :
1736 $as_echo_n "(cached) " >&6
1738 eval ac_res=\$$3
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1740 $as_echo "$ac_res" >&6; }
1741 else
1742 # Is the header compilable?
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1744 $as_echo_n "checking $2 usability... " >&6; }
1745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1746 /* end confdefs.h. */
1748 #include <$2>
1749 _ACEOF
1750 if ac_fn_c_try_compile "$LINENO"; then :
1751 ac_header_compiler=yes
1752 else
1753 ac_header_compiler=no
1755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1757 $as_echo "$ac_header_compiler" >&6; }
1759 # Is the header present?
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1761 $as_echo_n "checking $2 presence... " >&6; }
1762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1763 /* end confdefs.h. */
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_cpp "$LINENO"; then :
1767 ac_header_preproc=yes
1768 else
1769 ac_header_preproc=no
1771 rm -f conftest.err conftest.i conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1773 $as_echo "$ac_header_preproc" >&6; }
1775 # So? What about this header?
1776 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1777 yes:no: )
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1779 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1781 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1783 no:yes:* )
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1785 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1787 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1789 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1791 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1793 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1795 esac
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval "test \"\${$3+set}\"" = set; then :
1799 $as_echo_n "(cached) " >&6
1800 else
1801 eval "$3=\$ac_header_compiler"
1803 eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 } # ac_fn_c_check_header_mongrel
1811 # ac_fn_c_try_run LINENO
1812 # ----------------------
1813 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1814 # that executables *can* be run.
1815 ac_fn_c_try_run ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if { { ac_try="$ac_link"
1819 case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822 esac
1823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824 $as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_link") 2>&5
1826 ac_status=$?
1827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1828 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1829 { { case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_try") 2>&5
1836 ac_status=$?
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; }; }; then :
1839 ac_retval=0
1840 else
1841 $as_echo "$as_me: program exited with status $ac_status" >&5
1842 $as_echo "$as_me: failed program was:" >&5
1843 sed 's/^/| /' conftest.$ac_ext >&5
1845 ac_retval=$ac_status
1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1849 as_fn_set_status $ac_retval
1851 } # ac_fn_c_try_run
1853 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1854 # -------------------------------------------------------
1855 # Tests whether HEADER exists and can be compiled using the include files in
1856 # INCLUDES, setting the cache variable VAR accordingly.
1857 ac_fn_c_check_header_compile ()
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1861 $as_echo_n "checking for $2... " >&6; }
1862 if eval "test \"\${$3+set}\"" = set; then :
1863 $as_echo_n "(cached) " >&6
1864 else
1865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1866 /* end confdefs.h. */
1868 #include <$2>
1869 _ACEOF
1870 if ac_fn_c_try_compile "$LINENO"; then :
1871 eval "$3=yes"
1872 else
1873 eval "$3=no"
1875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1877 eval ac_res=\$$3
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1879 $as_echo "$ac_res" >&6; }
1880 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1882 } # ac_fn_c_check_header_compile
1884 # ac_fn_c_try_link LINENO
1885 # -----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_c_try_link ()
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1892 case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1899 ac_status=$?
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 $as_test_x conftest$ac_exeext
1912 }; then :
1913 ac_retval=0
1914 else
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 ac_retval=1
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_c_try_link
1930 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1931 # ----------------------------------------------------
1932 # Tries to find if the field MEMBER exists in type AGGR, after including
1933 # INCLUDES, setting cache variable VAR accordingly.
1934 ac_fn_c_check_member ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1938 $as_echo_n "checking for $2.$3... " >&6; }
1939 if eval "test \"\${$4+set}\"" = set; then :
1940 $as_echo_n "(cached) " >&6
1941 else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1946 main ()
1948 static $2 ac_aggr;
1949 if (ac_aggr.$3)
1950 return 0;
1952 return 0;
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 eval "$4=yes"
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1962 main ()
1964 static $2 ac_aggr;
1965 if (sizeof ac_aggr.$3)
1966 return 0;
1968 return 0;
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$4=yes"
1973 else
1974 eval "$4=no"
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980 eval ac_res=\$$4
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1985 } # ac_fn_c_check_member
1987 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1988 # ---------------------------------------------
1989 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1990 # accordingly.
1991 ac_fn_c_check_decl ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 as_decl_name=`echo $2|sed 's/ *(.*//'`
1995 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1997 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1998 if eval "test \"\${$3+set}\"" = set; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002 /* end confdefs.h. */
2005 main ()
2007 #ifndef $as_decl_name
2008 #ifdef __cplusplus
2009 (void) $as_decl_use;
2010 #else
2011 (void) $as_decl_name;
2012 #endif
2013 #endif
2016 return 0;
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 eval "$3=yes"
2021 else
2022 eval "$3=no"
2024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2026 eval ac_res=\$$3
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2031 } # ac_fn_c_check_decl
2033 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2034 # -------------------------------------------
2035 # Tests whether TYPE exists after having included INCLUDES, setting cache
2036 # variable VAR accordingly.
2037 ac_fn_c_check_type ()
2039 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval "test \"\${$3+set}\"" = set; then :
2043 $as_echo_n "(cached) " >&6
2044 else
2045 eval "$3=no"
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2050 main ()
2052 if (sizeof ($2))
2053 return 0;
2055 return 0;
2057 _ACEOF
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2063 main ()
2065 if (sizeof (($2)))
2066 return 0;
2068 return 0;
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"; then :
2073 else
2074 eval "$3=yes"
2076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080 eval ac_res=\$$3
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2085 } # ac_fn_c_check_type
2087 # ac_fn_c_check_func LINENO FUNC VAR
2088 # ----------------------------------
2089 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2090 ac_fn_c_check_func ()
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094 $as_echo_n "checking for $2... " >&6; }
2095 if eval "test \"\${$3+set}\"" = set; then :
2096 $as_echo_n "(cached) " >&6
2097 else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2100 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2102 #define $2 innocuous_$2
2104 /* System header to define __stub macros and hopefully few prototypes,
2105 which can conflict with char $2 (); below.
2106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2107 <limits.h> exists even on freestanding compilers. */
2109 #ifdef __STDC__
2110 # include <limits.h>
2111 #else
2112 # include <assert.h>
2113 #endif
2115 #undef $2
2117 /* Override any GCC internal prototype to avoid an error.
2118 Use char because int might match the return type of a GCC
2119 builtin and then its argument prototype would still apply. */
2120 #ifdef __cplusplus
2121 extern "C"
2122 #endif
2123 char $2 ();
2124 /* The GNU C library defines this for functions which it implements
2125 to always fail with ENOSYS. Some functions are actually named
2126 something starting with __ and the normal name is an alias. */
2127 #if defined __stub_$2 || defined __stub___$2
2128 choke me
2129 #endif
2132 main ()
2134 return $2 ();
2136 return 0;
2138 _ACEOF
2139 if ac_fn_c_try_link "$LINENO"; then :
2140 eval "$3=yes"
2141 else
2142 eval "$3=no"
2144 rm -f core conftest.err conftest.$ac_objext \
2145 conftest$ac_exeext conftest.$ac_ext
2147 eval ac_res=\$$3
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2149 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2152 } # ac_fn_c_check_func
2153 cat >config.log <<_ACEOF
2154 This file contains any messages produced by compilers while
2155 running configure, to aid debugging if configure makes a mistake.
2157 It was created by $as_me, which was
2158 generated by GNU Autoconf 2.67. Invocation command line was
2160 $ $0 $@
2162 _ACEOF
2163 exec 5>>config.log
2165 cat <<_ASUNAME
2166 ## --------- ##
2167 ## Platform. ##
2168 ## --------- ##
2170 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2171 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2172 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2173 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2174 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2176 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2177 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2179 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2180 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2181 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2182 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2183 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2184 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2185 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2187 _ASUNAME
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 $as_echo "PATH: $as_dir"
2195 done
2196 IFS=$as_save_IFS
2198 } >&5
2200 cat >&5 <<_ACEOF
2203 ## ----------- ##
2204 ## Core tests. ##
2205 ## ----------- ##
2207 _ACEOF
2210 # Keep a trace of the command line.
2211 # Strip out --no-create and --no-recursion so they do not pile up.
2212 # Strip out --silent because we don't want to record it for future runs.
2213 # Also quote any args containing shell meta-characters.
2214 # Make two passes to allow for proper duplicate-argument suppression.
2215 ac_configure_args=
2216 ac_configure_args0=
2217 ac_configure_args1=
2218 ac_must_keep_next=false
2219 for ac_pass in 1 2
2221 for ac_arg
2223 case $ac_arg in
2224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2226 | -silent | --silent | --silen | --sile | --sil)
2227 continue ;;
2228 *\'*)
2229 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2230 esac
2231 case $ac_pass in
2232 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2234 as_fn_append ac_configure_args1 " '$ac_arg'"
2235 if test $ac_must_keep_next = true; then
2236 ac_must_keep_next=false # Got value, back to normal.
2237 else
2238 case $ac_arg in
2239 *=* | --config-cache | -C | -disable-* | --disable-* \
2240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2242 | -with-* | --with-* | -without-* | --without-* | --x)
2243 case "$ac_configure_args0 " in
2244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2245 esac
2247 -* ) ac_must_keep_next=true ;;
2248 esac
2250 as_fn_append ac_configure_args " '$ac_arg'"
2252 esac
2253 done
2254 done
2255 { ac_configure_args0=; unset ac_configure_args0;}
2256 { ac_configure_args1=; unset ac_configure_args1;}
2258 # When interrupted or exit'd, cleanup temporary files, and complete
2259 # config.log. We remove comments because anyway the quotes in there
2260 # would cause problems or look ugly.
2261 # WARNING: Use '\'' to represent an apostrophe within the trap.
2262 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2263 trap 'exit_status=$?
2264 # Save into config.log some information that might help in debugging.
2266 echo
2268 $as_echo "## ---------------- ##
2269 ## Cache variables. ##
2270 ## ---------------- ##"
2271 echo
2272 # The following way of writing the cache mishandles newlines in values,
2274 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2275 eval ac_val=\$$ac_var
2276 case $ac_val in #(
2277 *${as_nl}*)
2278 case $ac_var in #(
2279 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2280 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2281 esac
2282 case $ac_var in #(
2283 _ | IFS | as_nl) ;; #(
2284 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2285 *) { eval $ac_var=; unset $ac_var;} ;;
2286 esac ;;
2287 esac
2288 done
2289 (set) 2>&1 |
2290 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2291 *${as_nl}ac_space=\ *)
2292 sed -n \
2293 "s/'\''/'\''\\\\'\'''\''/g;
2294 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2295 ;; #(
2297 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2299 esac |
2300 sort
2302 echo
2304 $as_echo "## ----------------- ##
2305 ## Output variables. ##
2306 ## ----------------- ##"
2307 echo
2308 for ac_var in $ac_subst_vars
2310 eval ac_val=\$$ac_var
2311 case $ac_val in
2312 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2313 esac
2314 $as_echo "$ac_var='\''$ac_val'\''"
2315 done | sort
2316 echo
2318 if test -n "$ac_subst_files"; then
2319 $as_echo "## ------------------- ##
2320 ## File substitutions. ##
2321 ## ------------------- ##"
2322 echo
2323 for ac_var in $ac_subst_files
2325 eval ac_val=\$$ac_var
2326 case $ac_val in
2327 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328 esac
2329 $as_echo "$ac_var='\''$ac_val'\''"
2330 done | sort
2331 echo
2334 if test -s confdefs.h; then
2335 $as_echo "## ----------- ##
2336 ## confdefs.h. ##
2337 ## ----------- ##"
2338 echo
2339 cat confdefs.h
2340 echo
2342 test "$ac_signal" != 0 &&
2343 $as_echo "$as_me: caught signal $ac_signal"
2344 $as_echo "$as_me: exit $exit_status"
2345 } >&5
2346 rm -f core *.core core.conftest.* &&
2347 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2348 exit $exit_status
2350 for ac_signal in 1 2 13 15; do
2351 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2352 done
2353 ac_signal=0
2355 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2356 rm -f -r conftest* confdefs.h
2358 $as_echo "/* confdefs.h */" > confdefs.h
2360 # Predefined preprocessor variables.
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_NAME "$PACKAGE_NAME"
2364 _ACEOF
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2368 _ACEOF
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2372 _ACEOF
2374 cat >>confdefs.h <<_ACEOF
2375 #define PACKAGE_STRING "$PACKAGE_STRING"
2376 _ACEOF
2378 cat >>confdefs.h <<_ACEOF
2379 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2380 _ACEOF
2382 cat >>confdefs.h <<_ACEOF
2383 #define PACKAGE_URL "$PACKAGE_URL"
2384 _ACEOF
2387 # Let the site file select an alternate cache file if it wants to.
2388 # Prefer an explicitly selected file to automatically selected ones.
2389 ac_site_file1=NONE
2390 ac_site_file2=NONE
2391 if test -n "$CONFIG_SITE"; then
2392 # We do not want a PATH search for config.site.
2393 case $CONFIG_SITE in #((
2394 -*) ac_site_file1=./$CONFIG_SITE;;
2395 */*) ac_site_file1=$CONFIG_SITE;;
2396 *) ac_site_file1=./$CONFIG_SITE;;
2397 esac
2398 elif test "x$prefix" != xNONE; then
2399 ac_site_file1=$prefix/share/config.site
2400 ac_site_file2=$prefix/etc/config.site
2401 else
2402 ac_site_file1=$ac_default_prefix/share/config.site
2403 ac_site_file2=$ac_default_prefix/etc/config.site
2405 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2407 test "x$ac_site_file" = xNONE && continue
2408 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2410 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2411 sed 's/^/| /' "$ac_site_file" >&5
2412 . "$ac_site_file" \
2413 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2415 as_fn_error $? "failed to load site script $ac_site_file
2416 See \`config.log' for more details" "$LINENO" 5 ; }
2418 done
2420 if test -r "$cache_file"; then
2421 # Some versions of bash will fail to source /dev/null (special files
2422 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2423 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2425 $as_echo "$as_me: loading cache $cache_file" >&6;}
2426 case $cache_file in
2427 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2428 *) . "./$cache_file";;
2429 esac
2431 else
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2433 $as_echo "$as_me: creating cache $cache_file" >&6;}
2434 >$cache_file
2437 as_fn_append ac_header_list " stdlib.h"
2438 as_fn_append ac_header_list " unistd.h"
2439 as_fn_append ac_header_list " sys/param.h"
2440 # Check that the precious variables saved in the cache have kept the same
2441 # value.
2442 ac_cache_corrupted=false
2443 for ac_var in $ac_precious_vars; do
2444 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2445 eval ac_new_set=\$ac_env_${ac_var}_set
2446 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2447 eval ac_new_val=\$ac_env_${ac_var}_value
2448 case $ac_old_set,$ac_new_set in
2449 set,)
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2451 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2453 ,set)
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2455 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2457 ,);;
2459 if test "x$ac_old_val" != "x$ac_new_val"; then
2460 # differences in whitespace do not lead to failure.
2461 ac_old_val_w=`echo x $ac_old_val`
2462 ac_new_val_w=`echo x $ac_new_val`
2463 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2465 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2466 ac_cache_corrupted=:
2467 else
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2469 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2470 eval $ac_var=\$ac_old_val
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2473 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2475 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2476 fi;;
2477 esac
2478 # Pass precious variables to config.status.
2479 if test "$ac_new_set" = set; then
2480 case $ac_new_val in
2481 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2482 *) ac_arg=$ac_var=$ac_new_val ;;
2483 esac
2484 case " $ac_configure_args " in
2485 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2486 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2487 esac
2489 done
2490 if $ac_cache_corrupted; then
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2492 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2494 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2495 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2497 ## -------------------- ##
2498 ## Main body of script. ##
2499 ## -------------------- ##
2501 ac_ext=c
2502 ac_cpp='$CPP $CPPFLAGS'
2503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2509 ac_aux_dir=
2510 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2511 if test -f "$ac_dir/install-sh"; then
2512 ac_aux_dir=$ac_dir
2513 ac_install_sh="$ac_aux_dir/install-sh -c"
2514 break
2515 elif test -f "$ac_dir/install.sh"; then
2516 ac_aux_dir=$ac_dir
2517 ac_install_sh="$ac_aux_dir/install.sh -c"
2518 break
2519 elif test -f "$ac_dir/shtool"; then
2520 ac_aux_dir=$ac_dir
2521 ac_install_sh="$ac_aux_dir/shtool install -c"
2522 break
2524 done
2525 if test -z "$ac_aux_dir"; then
2526 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2529 # These three variables are undocumented and unsupported,
2530 # and are intended to be withdrawn in a future Autoconf release.
2531 # They can cause serious problems if a builder's source tree is in a directory
2532 # whose full name contains unusual characters.
2533 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2534 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2535 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2539 # Check what host we are running on.
2540 # If a target is not suggested, we use this one.
2541 # Note that what we call a target, Autoconf calls a host.
2542 # Make sure we can run config.sub.
2543 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2544 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2547 $as_echo_n "checking build system type... " >&6; }
2548 if test "${ac_cv_build+set}" = set; then :
2549 $as_echo_n "(cached) " >&6
2550 else
2551 ac_build_alias=$build_alias
2552 test "x$ac_build_alias" = x &&
2553 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2554 test "x$ac_build_alias" = x &&
2555 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2556 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2557 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2561 $as_echo "$ac_cv_build" >&6; }
2562 case $ac_cv_build in
2563 *-*-*) ;;
2564 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2565 esac
2566 build=$ac_cv_build
2567 ac_save_IFS=$IFS; IFS='-'
2568 set x $ac_cv_build
2569 shift
2570 build_cpu=$1
2571 build_vendor=$2
2572 shift; shift
2573 # Remember, the first character of IFS is used to create $*,
2574 # except with old shells:
2575 build_os=$*
2576 IFS=$ac_save_IFS
2577 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2581 $as_echo_n "checking host system type... " >&6; }
2582 if test "${ac_cv_host+set}" = set; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test "x$host_alias" = x; then
2586 ac_cv_host=$ac_cv_build
2587 else
2588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2589 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2594 $as_echo "$ac_cv_host" >&6; }
2595 case $ac_cv_host in
2596 *-*-*) ;;
2597 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2598 esac
2599 host=$ac_cv_host
2600 ac_save_IFS=$IFS; IFS='-'
2601 set x $ac_cv_host
2602 shift
2603 host_cpu=$1
2604 host_vendor=$2
2605 shift; shift
2606 # Remember, the first character of IFS is used to create $*,
2607 # except with old shells:
2608 host_os=$*
2609 IFS=$ac_save_IFS
2610 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2614 # The AROS target is slightly different to the normal GNU style
2615 # format. We don't have the middle part, and we reverse the order
2616 # of the $(CPU) and $(OS) bits.
2618 # Don't strip the version of the target yet, it might be
2619 # useful on some systems.
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2622 $as_echo_n "checking for AROS style target... " >&6; }
2624 if test "$target" = "NONE" ; then
2625 target=$host_os-$host_cpu
2626 else
2627 if test "$target" = "" ; then
2628 target=$host_os-$host_cpu
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2632 $as_echo "$target" >&6; }
2634 if test "$host_os" = "mingw32" ; then
2635 PWDCMD="pwd -W"
2638 #don't know where else to put this...
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2640 $as_echo_n "checking building AROS in... " >&6; }
2641 AROS_BUILDDIR=`${PWDCMD-pwd}`
2642 AROS_BUILDDIR_UNIX=${PWD}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2644 $as_echo "$AROS_BUILDDIR" >&6; }
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2647 $as_echo_n "checking AROS source in... " >&6; }
2648 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2649 SRCDIR=${srcpwd}
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2651 $as_echo "$SRCDIR" >&6; }
2653 # Parse the target field into something useful.
2655 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2656 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2659 aros_default_wbwidth=800
2660 aros_default_wbheight=600
2661 aros_default_wbdepth=4
2664 # The first step is to find the host binaries.
2665 # Check for a compiler.
2666 ac_ext=c
2667 ac_cpp='$CPP $CPPFLAGS'
2668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671 if test -n "$ac_tool_prefix"; then
2672 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2673 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2675 $as_echo_n "checking for $ac_word... " >&6; }
2676 if test "${ac_cv_prog_CC+set}" = set; then :
2677 $as_echo_n "(cached) " >&6
2678 else
2679 if test -n "$CC"; then
2680 ac_cv_prog_CC="$CC" # Let the user override the test.
2681 else
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2689 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 break 2
2693 done
2694 done
2695 IFS=$as_save_IFS
2699 CC=$ac_cv_prog_CC
2700 if test -n "$CC"; then
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2702 $as_echo "$CC" >&6; }
2703 else
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2705 $as_echo "no" >&6; }
2710 if test -z "$ac_cv_prog_CC"; then
2711 ac_ct_CC=$CC
2712 # Extract the first word of "gcc", so it can be a program name with args.
2713 set dummy gcc; ac_word=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 if test -n "$ac_ct_CC"; then
2720 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2721 else
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 for as_dir in $PATH
2725 IFS=$as_save_IFS
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 ac_cv_prog_ac_ct_CC="gcc"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2731 break 2
2733 done
2734 done
2735 IFS=$as_save_IFS
2739 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2740 if test -n "$ac_ct_CC"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2742 $as_echo "$ac_ct_CC" >&6; }
2743 else
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2748 if test "x$ac_ct_CC" = x; then
2749 CC=""
2750 else
2751 case $cross_compiling:$ac_tool_warned in
2752 yes:)
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2755 ac_tool_warned=yes ;;
2756 esac
2757 CC=$ac_ct_CC
2759 else
2760 CC="$ac_cv_prog_CC"
2763 if test -z "$CC"; then
2764 if test -n "$ac_tool_prefix"; then
2765 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2766 set dummy ${ac_tool_prefix}cc; ac_word=$2
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2768 $as_echo_n "checking for $ac_word... " >&6; }
2769 if test "${ac_cv_prog_CC+set}" = set; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test -n "$CC"; then
2773 ac_cv_prog_CC="$CC" # Let the user override the test.
2774 else
2775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 for as_dir in $PATH
2778 IFS=$as_save_IFS
2779 test -z "$as_dir" && as_dir=.
2780 for ac_exec_ext in '' $ac_executable_extensions; do
2781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2782 ac_cv_prog_CC="${ac_tool_prefix}cc"
2783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 break 2
2786 done
2787 done
2788 IFS=$as_save_IFS
2792 CC=$ac_cv_prog_CC
2793 if test -n "$CC"; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2795 $as_echo "$CC" >&6; }
2796 else
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2798 $as_echo "no" >&6; }
2804 if test -z "$CC"; then
2805 # Extract the first word of "cc", so it can be a program name with args.
2806 set dummy cc; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_CC+set}" = set; then :
2810 $as_echo_n "(cached) " >&6
2811 else
2812 if test -n "$CC"; then
2813 ac_cv_prog_CC="$CC" # Let the user override the test.
2814 else
2815 ac_prog_rejected=no
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2824 ac_prog_rejected=yes
2825 continue
2827 ac_cv_prog_CC="cc"
2828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 break 2
2831 done
2832 done
2833 IFS=$as_save_IFS
2835 if test $ac_prog_rejected = yes; then
2836 # We found a bogon in the path, so make sure we never use it.
2837 set dummy $ac_cv_prog_CC
2838 shift
2839 if test $# != 0; then
2840 # We chose a different compiler from the bogus one.
2841 # However, it has the same basename, so the bogon will be chosen
2842 # first if we set CC to just the basename; use the full file name.
2843 shift
2844 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2849 CC=$ac_cv_prog_CC
2850 if test -n "$CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2860 if test -z "$CC"; then
2861 if test -n "$ac_tool_prefix"; then
2862 for ac_prog in cl.exe
2864 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2865 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2867 $as_echo_n "checking for $ac_word... " >&6; }
2868 if test "${ac_cv_prog_CC+set}" = set; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC="$CC" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2885 done
2886 done
2887 IFS=$as_save_IFS
2891 CC=$ac_cv_prog_CC
2892 if test -n "$CC"; then
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2894 $as_echo "$CC" >&6; }
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2901 test -n "$CC" && break
2902 done
2904 if test -z "$CC"; then
2905 ac_ct_CC=$CC
2906 for ac_prog in cl.exe
2908 # Extract the first word of "$ac_prog", so it can be a program name with args.
2909 set dummy $ac_prog; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$ac_ct_CC"; then
2916 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2925 ac_cv_prog_ac_ct_CC="$ac_prog"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2929 done
2930 done
2931 IFS=$as_save_IFS
2935 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2936 if test -n "$ac_ct_CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2938 $as_echo "$ac_ct_CC" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2945 test -n "$ac_ct_CC" && break
2946 done
2948 if test "x$ac_ct_CC" = x; then
2949 CC=""
2950 else
2951 case $cross_compiling:$ac_tool_warned in
2952 yes:)
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2955 ac_tool_warned=yes ;;
2956 esac
2957 CC=$ac_ct_CC
2964 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2965 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2966 as_fn_error $? "no acceptable C compiler found in \$PATH
2967 See \`config.log' for more details" "$LINENO" 5 ; }
2969 # Provide some information about the compiler.
2970 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2971 set X $ac_compile
2972 ac_compiler=$2
2973 for ac_option in --version -v -V -qversion; do
2974 { { ac_try="$ac_compiler $ac_option >&5"
2975 case "(($ac_try" in
2976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2977 *) ac_try_echo=$ac_try;;
2978 esac
2979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2980 $as_echo "$ac_try_echo"; } >&5
2981 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2982 ac_status=$?
2983 if test -s conftest.err; then
2984 sed '10a\
2985 ... rest of stderr output deleted ...
2986 10q' conftest.err >conftest.er1
2987 cat conftest.er1 >&5
2989 rm -f conftest.er1 conftest.err
2990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2991 test $ac_status = 0; }
2992 done
2994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2995 /* end confdefs.h. */
2998 main ()
3002 return 0;
3004 _ACEOF
3005 ac_clean_files_save=$ac_clean_files
3006 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3007 # Try to create an executable without -o first, disregard a.out.
3008 # It will help us diagnose broken compilers, and finding out an intuition
3009 # of exeext.
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3011 $as_echo_n "checking whether the C compiler works... " >&6; }
3012 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3014 # The possible output files:
3015 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3017 ac_rmfiles=
3018 for ac_file in $ac_files
3020 case $ac_file in
3021 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3022 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3023 esac
3024 done
3025 rm -f $ac_rmfiles
3027 if { { ac_try="$ac_link_default"
3028 case "(($ac_try" in
3029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3030 *) ac_try_echo=$ac_try;;
3031 esac
3032 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3033 $as_echo "$ac_try_echo"; } >&5
3034 (eval "$ac_link_default") 2>&5
3035 ac_status=$?
3036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3037 test $ac_status = 0; }; then :
3038 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3039 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3040 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3041 # so that the user can short-circuit this test for compilers unknown to
3042 # Autoconf.
3043 for ac_file in $ac_files ''
3045 test -f "$ac_file" || continue
3046 case $ac_file in
3047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3049 [ab].out )
3050 # We found the default executable, but exeext='' is most
3051 # certainly right.
3052 break;;
3053 *.* )
3054 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3055 then :; else
3056 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3058 # We set ac_cv_exeext here because the later test for it is not
3059 # safe: cross compilers may not add the suffix if given an `-o'
3060 # argument, so we may need to know it at that point already.
3061 # Even if this section looks crufty: it has the advantage of
3062 # actually working.
3063 break;;
3065 break;;
3066 esac
3067 done
3068 test "$ac_cv_exeext" = no && ac_cv_exeext=
3070 else
3071 ac_file=''
3073 if test -z "$ac_file"; then :
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3075 $as_echo "no" >&6; }
3076 $as_echo "$as_me: failed program was:" >&5
3077 sed 's/^/| /' conftest.$ac_ext >&5
3079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081 as_fn_error 77 "C compiler cannot create executables
3082 See \`config.log' for more details" "$LINENO" 5 ; }
3083 else
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3085 $as_echo "yes" >&6; }
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3088 $as_echo_n "checking for C compiler default output file name... " >&6; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3090 $as_echo "$ac_file" >&6; }
3091 ac_exeext=$ac_cv_exeext
3093 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3094 ac_clean_files=$ac_clean_files_save
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3096 $as_echo_n "checking for suffix of executables... " >&6; }
3097 if { { ac_try="$ac_link"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3103 $as_echo "$ac_try_echo"; } >&5
3104 (eval "$ac_link") 2>&5
3105 ac_status=$?
3106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }; then :
3108 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3109 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3110 # work properly (i.e., refer to `conftest.exe'), while it won't with
3111 # `rm'.
3112 for ac_file in conftest.exe conftest conftest.*; do
3113 test -f "$ac_file" || continue
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3117 break;;
3118 * ) break;;
3119 esac
3120 done
3121 else
3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3125 See \`config.log' for more details" "$LINENO" 5 ; }
3127 rm -f conftest conftest$ac_cv_exeext
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3129 $as_echo "$ac_cv_exeext" >&6; }
3131 rm -f conftest.$ac_ext
3132 EXEEXT=$ac_cv_exeext
3133 ac_exeext=$EXEEXT
3134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3135 /* end confdefs.h. */
3136 #include <stdio.h>
3138 main ()
3140 FILE *f = fopen ("conftest.out", "w");
3141 return ferror (f) || fclose (f) != 0;
3144 return 0;
3146 _ACEOF
3147 ac_clean_files="$ac_clean_files conftest.out"
3148 # Check that the compiler produces executables we can run. If not, either
3149 # the compiler is broken, or we cross compile.
3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3151 $as_echo_n "checking whether we are cross compiling... " >&6; }
3152 if test "$cross_compiling" != yes; then
3153 { { ac_try="$ac_link"
3154 case "(($ac_try" in
3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3156 *) ac_try_echo=$ac_try;;
3157 esac
3158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3159 $as_echo "$ac_try_echo"; } >&5
3160 (eval "$ac_link") 2>&5
3161 ac_status=$?
3162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3163 test $ac_status = 0; }
3164 if { ac_try='./conftest$ac_cv_exeext'
3165 { { case "(($ac_try" in
3166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3167 *) ac_try_echo=$ac_try;;
3168 esac
3169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3170 $as_echo "$ac_try_echo"; } >&5
3171 (eval "$ac_try") 2>&5
3172 ac_status=$?
3173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3174 test $ac_status = 0; }; }; then
3175 cross_compiling=no
3176 else
3177 if test "$cross_compiling" = maybe; then
3178 cross_compiling=yes
3179 else
3180 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182 as_fn_error $? "cannot run C compiled programs.
3183 If you meant to cross compile, use \`--host'.
3184 See \`config.log' for more details" "$LINENO" 5 ; }
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3189 $as_echo "$cross_compiling" >&6; }
3191 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3192 ac_clean_files=$ac_clean_files_save
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3194 $as_echo_n "checking for suffix of object files... " >&6; }
3195 if test "${ac_cv_objext+set}" = set; then :
3196 $as_echo_n "(cached) " >&6
3197 else
3198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3199 /* end confdefs.h. */
3202 main ()
3206 return 0;
3208 _ACEOF
3209 rm -f conftest.o conftest.obj
3210 if { { ac_try="$ac_compile"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_compile") 2>&5
3218 ac_status=$?
3219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3220 test $ac_status = 0; }; then :
3221 for ac_file in conftest.o conftest.obj conftest.*; do
3222 test -f "$ac_file" || continue;
3223 case $ac_file in
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3225 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3226 break;;
3227 esac
3228 done
3229 else
3230 $as_echo "$as_me: failed program was:" >&5
3231 sed 's/^/| /' conftest.$ac_ext >&5
3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3235 as_fn_error $? "cannot compute suffix of object files: cannot compile
3236 See \`config.log' for more details" "$LINENO" 5 ; }
3238 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3241 $as_echo "$ac_cv_objext" >&6; }
3242 OBJEXT=$ac_cv_objext
3243 ac_objext=$OBJEXT
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3245 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3246 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3247 $as_echo_n "(cached) " >&6
3248 else
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3253 main ()
3255 #ifndef __GNUC__
3256 choke me
3257 #endif
3260 return 0;
3262 _ACEOF
3263 if ac_fn_c_try_compile "$LINENO"; then :
3264 ac_compiler_gnu=yes
3265 else
3266 ac_compiler_gnu=no
3268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3273 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3274 if test $ac_compiler_gnu = yes; then
3275 GCC=yes
3276 else
3277 GCC=
3279 ac_test_CFLAGS=${CFLAGS+set}
3280 ac_save_CFLAGS=$CFLAGS
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3282 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3283 if test "${ac_cv_prog_cc_g+set}" = set; then :
3284 $as_echo_n "(cached) " >&6
3285 else
3286 ac_save_c_werror_flag=$ac_c_werror_flag
3287 ac_c_werror_flag=yes
3288 ac_cv_prog_cc_g=no
3289 CFLAGS="-g"
3290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3291 /* end confdefs.h. */
3294 main ()
3298 return 0;
3300 _ACEOF
3301 if ac_fn_c_try_compile "$LINENO"; then :
3302 ac_cv_prog_cc_g=yes
3303 else
3304 CFLAGS=""
3305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306 /* end confdefs.h. */
3309 main ()
3313 return 0;
3315 _ACEOF
3316 if ac_fn_c_try_compile "$LINENO"; then :
3318 else
3319 ac_c_werror_flag=$ac_save_c_werror_flag
3320 CFLAGS="-g"
3321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3322 /* end confdefs.h. */
3325 main ()
3329 return 0;
3331 _ACEOF
3332 if ac_fn_c_try_compile "$LINENO"; then :
3333 ac_cv_prog_cc_g=yes
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 ac_c_werror_flag=$ac_save_c_werror_flag
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3343 $as_echo "$ac_cv_prog_cc_g" >&6; }
3344 if test "$ac_test_CFLAGS" = set; then
3345 CFLAGS=$ac_save_CFLAGS
3346 elif test $ac_cv_prog_cc_g = yes; then
3347 if test "$GCC" = yes; then
3348 CFLAGS="-g -O2"
3349 else
3350 CFLAGS="-g"
3352 else
3353 if test "$GCC" = yes; then
3354 CFLAGS="-O2"
3355 else
3356 CFLAGS=
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3360 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3361 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3362 $as_echo_n "(cached) " >&6
3363 else
3364 ac_cv_prog_cc_c89=no
3365 ac_save_CC=$CC
3366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367 /* end confdefs.h. */
3368 #include <stdarg.h>
3369 #include <stdio.h>
3370 #include <sys/types.h>
3371 #include <sys/stat.h>
3372 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3373 struct buf { int x; };
3374 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3375 static char *e (p, i)
3376 char **p;
3377 int i;
3379 return p[i];
3381 static char *f (char * (*g) (char **, int), char **p, ...)
3383 char *s;
3384 va_list v;
3385 va_start (v,p);
3386 s = g (p, va_arg (v,int));
3387 va_end (v);
3388 return s;
3391 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3392 function prototypes and stuff, but not '\xHH' hex character constants.
3393 These don't provoke an error unfortunately, instead are silently treated
3394 as 'x'. The following induces an error, until -std is added to get
3395 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3396 array size at least. It's necessary to write '\x00'==0 to get something
3397 that's true only with -std. */
3398 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3400 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3401 inside strings and character constants. */
3402 #define FOO(x) 'x'
3403 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3405 int test (int i, double x);
3406 struct s1 {int (*f) (int a);};
3407 struct s2 {int (*f) (double a);};
3408 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3409 int argc;
3410 char **argv;
3412 main ()
3414 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3416 return 0;
3418 _ACEOF
3419 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3420 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3422 CC="$ac_save_CC $ac_arg"
3423 if ac_fn_c_try_compile "$LINENO"; then :
3424 ac_cv_prog_cc_c89=$ac_arg
3426 rm -f core conftest.err conftest.$ac_objext
3427 test "x$ac_cv_prog_cc_c89" != "xno" && break
3428 done
3429 rm -f conftest.$ac_ext
3430 CC=$ac_save_CC
3433 # AC_CACHE_VAL
3434 case "x$ac_cv_prog_cc_c89" in
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3437 $as_echo "none needed" >&6; } ;;
3438 xno)
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3440 $as_echo "unsupported" >&6; } ;;
3442 CC="$CC $ac_cv_prog_cc_c89"
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3444 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3445 esac
3446 if test "x$ac_cv_prog_cc_c89" != xno; then :
3450 ac_ext=c
3451 ac_cpp='$CPP $CPPFLAGS'
3452 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3456 case $ac_cv_prog_cc_stdc in #(
3457 no) :
3458 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3459 *) :
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3461 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3462 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3463 $as_echo_n "(cached) " >&6
3464 else
3465 ac_cv_prog_cc_c99=no
3466 ac_save_CC=$CC
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3469 #include <stdarg.h>
3470 #include <stdbool.h>
3471 #include <stdlib.h>
3472 #include <wchar.h>
3473 #include <stdio.h>
3475 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3476 #define debug(...) fprintf (stderr, __VA_ARGS__)
3477 #define showlist(...) puts (#__VA_ARGS__)
3478 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3479 static void
3480 test_varargs_macros (void)
3482 int x = 1234;
3483 int y = 5678;
3484 debug ("Flag");
3485 debug ("X = %d\n", x);
3486 showlist (The first, second, and third items.);
3487 report (x>y, "x is %d but y is %d", x, y);
3490 // Check long long types.
3491 #define BIG64 18446744073709551615ull
3492 #define BIG32 4294967295ul
3493 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3494 #if !BIG_OK
3495 your preprocessor is broken;
3496 #endif
3497 #if BIG_OK
3498 #else
3499 your preprocessor is broken;
3500 #endif
3501 static long long int bignum = -9223372036854775807LL;
3502 static unsigned long long int ubignum = BIG64;
3504 struct incomplete_array
3506 int datasize;
3507 double data[];
3510 struct named_init {
3511 int number;
3512 const wchar_t *name;
3513 double average;
3516 typedef const char *ccp;
3518 static inline int
3519 test_restrict (ccp restrict text)
3521 // See if C++-style comments work.
3522 // Iterate through items via the restricted pointer.
3523 // Also check for declarations in for loops.
3524 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3525 continue;
3526 return 0;
3529 // Check varargs and va_copy.
3530 static void
3531 test_varargs (const char *format, ...)
3533 va_list args;
3534 va_start (args, format);
3535 va_list args_copy;
3536 va_copy (args_copy, args);
3538 const char *str;
3539 int number;
3540 float fnumber;
3542 while (*format)
3544 switch (*format++)
3546 case 's': // string
3547 str = va_arg (args_copy, const char *);
3548 break;
3549 case 'd': // int
3550 number = va_arg (args_copy, int);
3551 break;
3552 case 'f': // float
3553 fnumber = va_arg (args_copy, double);
3554 break;
3555 default:
3556 break;
3559 va_end (args_copy);
3560 va_end (args);
3564 main ()
3567 // Check bool.
3568 _Bool success = false;
3570 // Check restrict.
3571 if (test_restrict ("String literal") == 0)
3572 success = true;
3573 char *restrict newvar = "Another string";
3575 // Check varargs.
3576 test_varargs ("s, d' f .", "string", 65, 34.234);
3577 test_varargs_macros ();
3579 // Check flexible array members.
3580 struct incomplete_array *ia =
3581 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3582 ia->datasize = 10;
3583 for (int i = 0; i < ia->datasize; ++i)
3584 ia->data[i] = i * 1.234;
3586 // Check named initializers.
3587 struct named_init ni = {
3588 .number = 34,
3589 .name = L"Test wide string",
3590 .average = 543.34343,
3593 ni.number = 58;
3595 int dynamic_array[ni.number];
3596 dynamic_array[ni.number - 1] = 543;
3598 // work around unused variable warnings
3599 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3600 || dynamic_array[ni.number - 1] != 543);
3603 return 0;
3605 _ACEOF
3606 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3608 CC="$ac_save_CC $ac_arg"
3609 if ac_fn_c_try_compile "$LINENO"; then :
3610 ac_cv_prog_cc_c99=$ac_arg
3612 rm -f core conftest.err conftest.$ac_objext
3613 test "x$ac_cv_prog_cc_c99" != "xno" && break
3614 done
3615 rm -f conftest.$ac_ext
3616 CC=$ac_save_CC
3619 # AC_CACHE_VAL
3620 case "x$ac_cv_prog_cc_c99" in
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3623 $as_echo "none needed" >&6; } ;;
3624 xno)
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3626 $as_echo "unsupported" >&6; } ;;
3628 CC="$CC $ac_cv_prog_cc_c99"
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3630 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3631 esac
3632 if test "x$ac_cv_prog_cc_c99" != xno; then :
3633 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3634 else
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3636 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3637 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 ac_cv_prog_cc_c89=no
3641 ac_save_CC=$CC
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644 #include <stdarg.h>
3645 #include <stdio.h>
3646 #include <sys/types.h>
3647 #include <sys/stat.h>
3648 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3649 struct buf { int x; };
3650 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3651 static char *e (p, i)
3652 char **p;
3653 int i;
3655 return p[i];
3657 static char *f (char * (*g) (char **, int), char **p, ...)
3659 char *s;
3660 va_list v;
3661 va_start (v,p);
3662 s = g (p, va_arg (v,int));
3663 va_end (v);
3664 return s;
3667 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3668 function prototypes and stuff, but not '\xHH' hex character constants.
3669 These don't provoke an error unfortunately, instead are silently treated
3670 as 'x'. The following induces an error, until -std is added to get
3671 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3672 array size at least. It's necessary to write '\x00'==0 to get something
3673 that's true only with -std. */
3674 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3676 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3677 inside strings and character constants. */
3678 #define FOO(x) 'x'
3679 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3681 int test (int i, double x);
3682 struct s1 {int (*f) (int a);};
3683 struct s2 {int (*f) (double a);};
3684 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3685 int argc;
3686 char **argv;
3688 main ()
3690 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3692 return 0;
3694 _ACEOF
3695 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3696 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3698 CC="$ac_save_CC $ac_arg"
3699 if ac_fn_c_try_compile "$LINENO"; then :
3700 ac_cv_prog_cc_c89=$ac_arg
3702 rm -f core conftest.err conftest.$ac_objext
3703 test "x$ac_cv_prog_cc_c89" != "xno" && break
3704 done
3705 rm -f conftest.$ac_ext
3706 CC=$ac_save_CC
3709 # AC_CACHE_VAL
3710 case "x$ac_cv_prog_cc_c89" in
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3713 $as_echo "none needed" >&6; } ;;
3714 xno)
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3716 $as_echo "unsupported" >&6; } ;;
3718 CC="$CC $ac_cv_prog_cc_c89"
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3720 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3721 esac
3722 if test "x$ac_cv_prog_cc_c89" != xno; then :
3723 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3724 else
3725 ac_cv_prog_cc_stdc=no
3730 esac
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3732 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3733 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3734 $as_echo_n "(cached) " >&6
3737 case $ac_cv_prog_cc_stdc in #(
3738 no) :
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3740 $as_echo "unsupported" >&6; } ;; #(
3741 '') :
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3743 $as_echo "none needed" >&6; } ;; #(
3744 *) :
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3746 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3747 esac
3749 ac_ext=c
3750 ac_cpp='$CPP $CPPFLAGS'
3751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3755 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3756 # On Suns, sometimes $CPP names a directory.
3757 if test -n "$CPP" && test -d "$CPP"; then
3758 CPP=
3760 if test -z "$CPP"; then
3761 if test "${ac_cv_prog_CPP+set}" = set; then :
3762 $as_echo_n "(cached) " >&6
3763 else
3764 # Double quotes because CPP needs to be expanded
3765 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3767 ac_preproc_ok=false
3768 for ac_c_preproc_warn_flag in '' yes
3770 # Use a header file that comes with gcc, so configuring glibc
3771 # with a fresh cross-compiler works.
3772 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3773 # <limits.h> exists even on freestanding compilers.
3774 # On the NeXT, cc -E runs the code through the compiler's parser,
3775 # not just through cpp. "Syntax error" is here to catch this case.
3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3777 /* end confdefs.h. */
3778 #ifdef __STDC__
3779 # include <limits.h>
3780 #else
3781 # include <assert.h>
3782 #endif
3783 Syntax error
3784 _ACEOF
3785 if ac_fn_c_try_cpp "$LINENO"; then :
3787 else
3788 # Broken: fails on valid input.
3789 continue
3791 rm -f conftest.err conftest.i conftest.$ac_ext
3793 # OK, works on sane cases. Now check whether nonexistent headers
3794 # can be detected and how.
3795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3796 /* end confdefs.h. */
3797 #include <ac_nonexistent.h>
3798 _ACEOF
3799 if ac_fn_c_try_cpp "$LINENO"; then :
3800 # Broken: success on invalid input.
3801 continue
3802 else
3803 # Passes both tests.
3804 ac_preproc_ok=:
3805 break
3807 rm -f conftest.err conftest.i conftest.$ac_ext
3809 done
3810 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3811 rm -f conftest.i conftest.err conftest.$ac_ext
3812 if $ac_preproc_ok; then :
3813 break
3816 done
3817 ac_cv_prog_CPP=$CPP
3820 CPP=$ac_cv_prog_CPP
3821 else
3822 ac_cv_prog_CPP=$CPP
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3825 $as_echo "$CPP" >&6; }
3826 ac_preproc_ok=false
3827 for ac_c_preproc_warn_flag in '' yes
3829 # Use a header file that comes with gcc, so configuring glibc
3830 # with a fresh cross-compiler works.
3831 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3832 # <limits.h> exists even on freestanding compilers.
3833 # On the NeXT, cc -E runs the code through the compiler's parser,
3834 # not just through cpp. "Syntax error" is here to catch this case.
3835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3837 #ifdef __STDC__
3838 # include <limits.h>
3839 #else
3840 # include <assert.h>
3841 #endif
3842 Syntax error
3843 _ACEOF
3844 if ac_fn_c_try_cpp "$LINENO"; then :
3846 else
3847 # Broken: fails on valid input.
3848 continue
3850 rm -f conftest.err conftest.i conftest.$ac_ext
3852 # OK, works on sane cases. Now check whether nonexistent headers
3853 # can be detected and how.
3854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3855 /* end confdefs.h. */
3856 #include <ac_nonexistent.h>
3857 _ACEOF
3858 if ac_fn_c_try_cpp "$LINENO"; then :
3859 # Broken: success on invalid input.
3860 continue
3861 else
3862 # Passes both tests.
3863 ac_preproc_ok=:
3864 break
3866 rm -f conftest.err conftest.i conftest.$ac_ext
3868 done
3869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3870 rm -f conftest.i conftest.err conftest.$ac_ext
3871 if $ac_preproc_ok; then :
3873 else
3874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3877 See \`config.log' for more details" "$LINENO" 5 ; }
3880 ac_ext=c
3881 ac_cpp='$CPP $CPPFLAGS'
3882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3887 # Check for a compatible awk
3888 for ac_prog in gawk nawk
3890 # Extract the first word of "$ac_prog", so it can be a program name with args.
3891 set dummy $ac_prog; ac_word=$2
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893 $as_echo_n "checking for $ac_word... " >&6; }
3894 if test "${ac_cv_prog_AWK+set}" = set; then :
3895 $as_echo_n "(cached) " >&6
3896 else
3897 if test -n "$AWK"; then
3898 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3899 else
3900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 for as_dir in $PATH
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
3905 for ac_exec_ext in '' $ac_executable_extensions; do
3906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3907 ac_cv_prog_AWK="$ac_prog"
3908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 break 2
3911 done
3912 done
3913 IFS=$as_save_IFS
3917 AWK=$ac_cv_prog_AWK
3918 if test -n "$AWK"; then
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3920 $as_echo "$AWK" >&6; }
3921 else
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3923 $as_echo "no" >&6; }
3927 test -n "$AWK" && break
3928 done
3930 if test "$AWK" = ""; then
3931 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3933 # Extract the first word of "mmake", so it can be a program name with args.
3934 set dummy mmake; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3940 if test -n "$MMAKE"; then
3941 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3942 else
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_exec_ext in '' $ac_executable_extensions; do
3949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3950 ac_cv_prog_MMAKE="mmake "
3951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3952 break 2
3954 done
3955 done
3956 IFS=$as_save_IFS
3960 MMAKE=$ac_cv_prog_MMAKE
3961 if test -n "$MMAKE"; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3963 $as_echo "$MMAKE" >&6; }
3964 else
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3971 # Perform some default variable assignments. Note all of these will be
3972 # Regenerated from the script, so there is no need to cache them.
3974 aros_host_cc="$CC"
3975 if test "$GCC" = "yes"; then
3976 aros_gcc_ld=`$CC -print-prog-name=ld`
3977 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3978 set dummy `basename $aros_gcc_ld`; ac_word=$2
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980 $as_echo_n "checking for $ac_word... " >&6; }
3981 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 case $aros_host_ld in
3985 [\\/]* | ?:[\\/]*)
3986 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 for as_dir in `dirname $aros_gcc_ld`
3992 IFS=$as_save_IFS
3993 test -z "$as_dir" && as_dir=.
3994 for ac_exec_ext in '' $ac_executable_extensions; do
3995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3996 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3998 break 2
4000 done
4001 done
4002 IFS=$as_save_IFS
4005 esac
4007 aros_host_ld=$ac_cv_path_aros_host_ld
4008 if test -n "$aros_host_ld"; then
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4010 $as_echo "$aros_host_ld" >&6; }
4011 else
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4013 $as_echo "no" >&6; }
4018 if test "$aros_host_ld" = ""; then
4019 # Extract the first word of "ld", so it can be a program name with args.
4020 set dummy ld; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4024 $as_echo_n "(cached) " >&6
4025 else
4026 case $aros_host_ld in
4027 [\\/]* | ?:[\\/]*)
4028 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 break 2
4042 done
4043 done
4044 IFS=$as_save_IFS
4047 esac
4049 aros_host_ld=$ac_cv_path_aros_host_ld
4050 if test -n "$aros_host_ld"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4052 $as_echo "$aros_host_ld" >&6; }
4053 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4060 if test "$aros_host_ld" = ""; then
4061 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4063 aros_host_make="make"
4064 aros_host_cflags=$CFLAGS
4065 aros_host_ldflags=$LDFLAGS
4066 aros_host_debug="-g -O0"
4067 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4068 aros_host_mkargs="--no-print-directory"
4069 aros_host_incl="/usr/include"
4070 aros_host_exe_suffix="$EXEEXT"
4071 aros_host_lib_suffix=""
4073 for ac_prog in aclocal aclocal19 aclocal-1.9
4075 # Extract the first word of "$ac_prog", so it can be a program name with args.
4076 set dummy $ac_prog; ac_word=$2
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4078 $as_echo_n "checking for $ac_word... " >&6; }
4079 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4080 $as_echo_n "(cached) " >&6
4081 else
4082 if test -n "$aros_host_aclocal"; then
4083 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4088 IFS=$as_save_IFS
4089 test -z "$as_dir" && as_dir=.
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4092 ac_cv_prog_aros_host_aclocal="$ac_prog"
4093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4094 break 2
4096 done
4097 done
4098 IFS=$as_save_IFS
4102 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4103 if test -n "$aros_host_aclocal"; then
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4105 $as_echo "$aros_host_aclocal" >&6; }
4106 else
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4108 $as_echo "no" >&6; }
4112 test -n "$aros_host_aclocal" && break
4113 done
4115 for ac_prog in autoconf autoconf259 autoconf253
4117 # Extract the first word of "$ac_prog", so it can be a program name with args.
4118 set dummy $ac_prog; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4122 $as_echo_n "(cached) " >&6
4123 else
4124 if test -n "$aros_host_autoconf"; then
4125 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4126 else
4127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128 for as_dir in $PATH
4130 IFS=$as_save_IFS
4131 test -z "$as_dir" && as_dir=.
4132 for ac_exec_ext in '' $ac_executable_extensions; do
4133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4134 ac_cv_prog_aros_host_autoconf="$ac_prog"
4135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4136 break 2
4138 done
4139 done
4140 IFS=$as_save_IFS
4144 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4145 if test -n "$aros_host_autoconf"; then
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4147 $as_echo "$aros_host_autoconf" >&6; }
4148 else
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4150 $as_echo "no" >&6; }
4154 test -n "$aros_host_autoconf" && break
4155 done
4157 for ac_prog in autoheader autoheader259 autoheader253
4159 # Extract the first word of "$ac_prog", so it can be a program name with args.
4160 set dummy $ac_prog; ac_word=$2
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4162 $as_echo_n "checking for $ac_word... " >&6; }
4163 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4164 $as_echo_n "(cached) " >&6
4165 else
4166 if test -n "$aros_host_autoheader"; then
4167 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4168 else
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4170 for as_dir in $PATH
4172 IFS=$as_save_IFS
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4176 ac_cv_prog_aros_host_autoheader="$ac_prog"
4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 break 2
4180 done
4181 done
4182 IFS=$as_save_IFS
4186 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4187 if test -n "$aros_host_autoheader"; then
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4189 $as_echo "$aros_host_autoheader" >&6; }
4190 else
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4192 $as_echo "no" >&6; }
4196 test -n "$aros_host_autoheader" && break
4197 done
4199 for ac_prog in automake automake19 automake-1.9
4201 # Extract the first word of "$ac_prog", so it can be a program name with args.
4202 set dummy $ac_prog; ac_word=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4206 $as_echo_n "(cached) " >&6
4207 else
4208 if test -n "$aros_host_automake"; then
4209 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_aros_host_automake="$ac_prog"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4222 done
4223 done
4224 IFS=$as_save_IFS
4228 aros_host_automake=$ac_cv_prog_aros_host_automake
4229 if test -n "$aros_host_automake"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4231 $as_echo "$aros_host_automake" >&6; }
4232 else
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4238 test -n "$aros_host_automake" && break
4239 done
4242 if test "$aros_host_aclocal" = ""; then
4243 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4245 if test "$aros_host_automake" = ""; then
4246 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4249 case "$aros_host_cc" in
4250 *gcc*)
4251 aros_host_cc_pipe="-pipe"
4253 icc)
4254 aros_host_cc_pipe=""
4257 aros_host_cc_pipe=""
4259 esac
4261 aros_kernel_cc_includes=""
4262 aros_target_cc_includes=""
4264 # ----------------------------------------------------------------------------------------
4265 # Host-specific defaults
4267 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4268 # instead of a wrapper script.
4269 # Useful for non-ELF hosts (like Windows and Darwin).
4270 # Can also be overriden in target section below
4271 use_aros_gcc="no"
4273 # This is the main host configuration section. It is where the host
4274 # can change the values of any variables it needs to change. We do
4275 # not look at anything that compiles to the target yet, we'll get
4276 # to that later.
4278 case "$host_os" in
4279 aros*)
4280 aros_host_arch="aros"
4281 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4282 case "$host_cpu" in
4283 *i?86*)
4284 aros_host_cpu="i386"
4286 *x86_64*)
4287 aros_host_cpu="x86_64"
4289 *powerpc*)
4290 aros_host_cpu="ppc"
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4294 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4295 aros_host_cpu="$host_cpu"
4297 esac
4300 linux*)
4301 aros_host_arch="linux"
4302 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4303 case "$host_cpu" in
4304 *i?86*)
4305 aros_host_cpu="i386"
4307 *x86_64*)
4308 aros_host_cpu="x86_64"
4310 *m68k*)
4311 aros_host_cpu="m68k"
4313 *powerpc*)
4314 aros_host_cpu="ppc"
4316 *arm*)
4317 aros_host_cpu="arm"
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4321 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4322 aros_host_cpu="$host_cpu"
4324 esac
4327 freebsd*)
4328 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4329 aros_host_make="gmake"
4330 aros_host_arch="freebsd"
4331 aros_host_cpu="i386"
4333 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4335 case $host_os in
4336 freebsd[234]*)
4337 aros_object_format="elf_i386"
4341 aros_object_format="elf_i386_fbsd"
4343 esac
4347 darwin*)
4348 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4349 aros_host_arch="darwin"
4350 use_aros_gcc="yes"
4351 android_build_os="darwin-x86"
4352 android_tool="android"
4353 default_android_sdk="/android-sdk-mac_x86"
4354 default_android_ndk="/android-ndk-r5b"
4355 case "$host_cpu" in
4356 *i?86*)
4357 aros_host_cpu="i386"
4359 *x86_64*)
4360 aros_host_cpu="x86_64"
4362 *powerpc*)
4363 aros_host_cpu="ppc"
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4367 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4368 aros_host_cpu="$host_cpu"
4370 esac
4372 aros_host_ldflags="$aros_host_ldflags -liconv"
4376 dragonfly*)
4377 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4378 aros_host_make="gmake"
4379 aros_host_arch="dragonfly"
4380 case $host_cpu in
4381 *i?86*)
4382 aros_host_cpu="i386"
4384 *amd64*)
4385 aros_host_cpu="x86_64"
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4389 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4390 aros_host_cpu="$host_cpu"
4392 esac
4395 netbsd*)
4396 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4397 aros_host_make="gmake"
4398 aros_host_arch="netbsd"
4399 case "$host_cpu" in
4400 *i?86*)
4401 aros_host_cpu="i386"
4403 *m68k*)
4404 aros_host_cpu="m68k"
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4408 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4409 aros_host_cpu="$host_cpu"
4411 esac
4412 aros_host_lib_suffix=".0.0"
4415 openbsd*)
4416 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4417 aros_host_make="gmake"
4418 aros_host_arch="openbsd"
4419 case "$host_cpu" in
4420 *i?86*)
4421 aros_host_cpu="i386"
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4425 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4426 aros_host_cpu="$host_cpu"
4428 esac
4431 solaris*)
4432 aros_host_arch="solaris"
4433 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4434 case "$host_cpu" in
4435 *i?86*)
4436 aros_host_cpu="i386"
4438 *sparc*)
4439 aros_host_cpu="sparc"
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4443 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4444 aros_host_cpu="$host_cpu"
4446 esac
4449 morphos*)
4450 aros_host_arch="morphos"
4451 aros_host_cpu="ppc"
4454 amiga*)
4455 aros_host_arch="amiga"
4456 SORT="/gg/bin/sort"
4457 TEST="/gg/bin/test"
4458 UNIQ="/gg/bin/uniq"
4459 FOR="for"
4460 TOUCH="/gg/bin/touch"
4461 case "$host_cpu" in
4462 *m68k*)
4463 aros_host_cpu="m68k"
4465 *powerpc*)
4466 aros_host_cpu="ppc"
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4470 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4471 aros_host_cpu="$host_cpu"
4473 esac
4476 cygwin*)
4477 aros_host_arch="cygwin"
4478 use_aros_gcc="yes"
4479 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4480 android_build_os="windows"
4481 android_tool="android.bat"
4482 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4484 case "$host_cpu" in
4485 *i?86*)
4486 aros_host_cpu="i386"
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4490 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4491 aros_host_cpu="$host_cpu"
4493 esac
4496 mingw32*)
4497 aros_host_arch="mingw32"
4498 use_aros_gcc="yes"
4499 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4500 android_build_os="windows"
4501 android_tool="android.bat"
4502 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4504 case "$host_cpu" in
4505 *i?86*)
4506 aros_host_cpu="i386"
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4510 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4511 aros_host_cpu="$host_cpu"
4513 esac
4516 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4518 esac
4520 # Extract the first word of "ar", so it can be a program name with args.
4521 set dummy ar; ac_word=$2
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4523 $as_echo_n "checking for $ac_word... " >&6; }
4524 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4525 $as_echo_n "(cached) " >&6
4526 else
4527 if test -n "$aros_host_ar"; then
4528 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4529 else
4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4531 for as_dir in $PATH
4533 IFS=$as_save_IFS
4534 test -z "$as_dir" && as_dir=.
4535 for ac_exec_ext in '' $ac_executable_extensions; do
4536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4537 ac_cv_prog_aros_host_ar="ar cr"
4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4539 break 2
4541 done
4542 done
4543 IFS=$as_save_IFS
4547 aros_host_ar=$ac_cv_prog_aros_host_ar
4548 if test -n "$aros_host_ar"; then
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4550 $as_echo "$aros_host_ar" >&6; }
4551 else
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4553 $as_echo "no" >&6; }
4557 if test "$aros_host_ar" = ""; then
4558 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4560 # Extract the first word of "ranlib", so it can be a program name with args.
4561 set dummy ranlib; ac_word=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 if test -n "$aros_host_ranlib"; then
4568 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4569 else
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4577 ac_cv_prog_aros_host_ranlib="ranlib "
4578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 break 2
4581 done
4582 done
4583 IFS=$as_save_IFS
4587 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4588 if test -n "$aros_host_ranlib"; then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4590 $as_echo "$aros_host_ranlib" >&6; }
4591 else
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo "no" >&6; }
4597 if test "$aros_host_ranlib" = ""; then
4598 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4600 # Extract the first word of "strip", so it can be a program name with args.
4601 set dummy strip; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 if test -n "$aros_host_strip"; then
4608 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_aros_host_strip="strip "
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4621 done
4622 done
4623 IFS=$as_save_IFS
4627 aros_host_strip=$ac_cv_prog_aros_host_strip
4628 if test -n "$aros_host_strip"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4630 $as_echo "$aros_host_strip" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4637 if test "$aros_host_strip" = ""; then
4638 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4641 # Extract the first word of "rm", so it can be a program name with args.
4642 set dummy rm; ac_word=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if test "${ac_cv_prog_RM+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 if test -n "$RM"; then
4649 ac_cv_prog_RM="$RM" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_prog_RM="rm -rf"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4662 done
4663 done
4664 IFS=$as_save_IFS
4668 RM=$ac_cv_prog_RM
4669 if test -n "$RM"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4671 $as_echo "$RM" >&6; }
4672 else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4678 if test "$RM" = ""; then
4679 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4681 # Extract the first word of "cp", so it can be a program name with args.
4682 set dummy cp; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if test "${ac_cv_prog_CP+set}" = set; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if test -n "$CP"; then
4689 ac_cv_prog_CP="$CP" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4698 ac_cv_prog_CP="cp "
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4702 done
4703 done
4704 IFS=$as_save_IFS
4708 CP=$ac_cv_prog_CP
4709 if test -n "$CP"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4711 $as_echo "$CP" >&6; }
4712 else
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4718 if test "$CP" = ""; then
4719 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4721 # Extract the first word of "mv", so it can be a program name with args.
4722 set dummy mv; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if test "${ac_cv_prog_MV+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test -n "$MV"; then
4729 ac_cv_prog_MV="$MV" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4738 ac_cv_prog_MV="mv "
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4742 done
4743 done
4744 IFS=$as_save_IFS
4748 MV=$ac_cv_prog_MV
4749 if test -n "$MV"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4751 $as_echo "$MV" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4758 if test "$MV" = ""; then
4759 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4761 # Extract the first word of "echo", so it can be a program name with args.
4762 set dummy echo; ac_word=$2
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4764 $as_echo_n "checking for $ac_word... " >&6; }
4765 if test "${ac_cv_prog_ECHO+set}" = set; then :
4766 $as_echo_n "(cached) " >&6
4767 else
4768 if test -n "$ECHO"; then
4769 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
4776 for ac_exec_ext in '' $ac_executable_extensions; do
4777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4778 ac_cv_prog_ECHO="echo "
4779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4780 break 2
4782 done
4783 done
4784 IFS=$as_save_IFS
4788 ECHO=$ac_cv_prog_ECHO
4789 if test -n "$ECHO"; then
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4791 $as_echo "$ECHO" >&6; }
4792 else
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 $as_echo "no" >&6; }
4798 if test "$ECHO" = ""; then
4799 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4801 # Extract the first word of "mkdir", so it can be a program name with args.
4802 set dummy mkdir; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4806 $as_echo_n "(cached) " >&6
4807 else
4808 if test -n "$MKDIR"; then
4809 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4810 else
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4812 for as_dir in $PATH
4814 IFS=$as_save_IFS
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_prog_MKDIR="mkdir -p"
4819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4820 break 2
4822 done
4823 done
4824 IFS=$as_save_IFS
4828 MKDIR=$ac_cv_prog_MKDIR
4829 if test -n "$MKDIR"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4831 $as_echo "$MKDIR" >&6; }
4832 else
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4838 if test "$MKDIR" = ""; then
4839 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4841 # Extract the first word of "touch", so it can be a program name with args.
4842 set dummy touch; ac_word=$2
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4844 $as_echo_n "checking for $ac_word... " >&6; }
4845 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -n "$TOUCH"; then
4849 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_prog_TOUCH="touch "
4859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4862 done
4863 done
4864 IFS=$as_save_IFS
4868 TOUCH=$ac_cv_prog_TOUCH
4869 if test -n "$TOUCH"; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4871 $as_echo "$TOUCH" >&6; }
4872 else
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4874 $as_echo "no" >&6; }
4878 if test "$TOUCH" = ""; then
4879 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4881 # Extract the first word of "sort", so it can be a program name with args.
4882 set dummy sort; ac_word=$2
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4884 $as_echo_n "checking for $ac_word... " >&6; }
4885 if test "${ac_cv_prog_SORT+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4887 else
4888 if test -n "$SORT"; then
4889 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4890 else
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_prog_SORT="sort "
4899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 break 2
4902 done
4903 done
4904 IFS=$as_save_IFS
4908 SORT=$ac_cv_prog_SORT
4909 if test -n "$SORT"; then
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4911 $as_echo "$SORT" >&6; }
4912 else
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4914 $as_echo "no" >&6; }
4918 if test "$SORT" = ""; then
4919 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4921 # Extract the first word of "uniq", so it can be a program name with args.
4922 set dummy uniq; ac_word=$2
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4924 $as_echo_n "checking for $ac_word... " >&6; }
4925 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 if test -n "$UNIQ"; then
4929 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4930 else
4931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4932 for as_dir in $PATH
4934 IFS=$as_save_IFS
4935 test -z "$as_dir" && as_dir=.
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4938 ac_cv_prog_UNIQ="uniq "
4939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4940 break 2
4942 done
4943 done
4944 IFS=$as_save_IFS
4948 UNIQ=$ac_cv_prog_UNIQ
4949 if test -n "$UNIQ"; then
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4951 $as_echo "$UNIQ" >&6; }
4952 else
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4954 $as_echo "no" >&6; }
4958 if test "$UNIQ" = ""; then
4959 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4961 # Extract the first word of "true", so it can be a program name with args.
4962 set dummy true; ac_word=$2
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964 $as_echo_n "checking for $ac_word... " >&6; }
4965 if test "${ac_cv_prog_NOP+set}" = set; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 if test -n "$NOP"; then
4969 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4970 else
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4978 ac_cv_prog_NOP="true "
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 break 2
4982 done
4983 done
4984 IFS=$as_save_IFS
4988 NOP=$ac_cv_prog_NOP
4989 if test -n "$NOP"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4991 $as_echo "$NOP" >&6; }
4992 else
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994 $as_echo "no" >&6; }
4998 if test "$NOP" = ""; then
4999 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5001 # Extract the first word of "cat", so it can be a program name with args.
5002 set dummy cat; ac_word=$2
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004 $as_echo_n "checking for $ac_word... " >&6; }
5005 if test "${ac_cv_prog_CAT+set}" = set; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 if test -n "$CAT"; then
5009 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5018 ac_cv_prog_CAT="cat "
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5022 done
5023 done
5024 IFS=$as_save_IFS
5028 CAT=$ac_cv_prog_CAT
5029 if test -n "$CAT"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5031 $as_echo "$CAT" >&6; }
5032 else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034 $as_echo "no" >&6; }
5038 if test "$CAT" = ""; then
5039 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5041 # Extract the first word of "bison", so it can be a program name with args.
5042 set dummy bison; ac_word=$2
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5044 $as_echo_n "checking for $ac_word... " >&6; }
5045 if test "${ac_cv_prog_BISON+set}" = set; then :
5046 $as_echo_n "(cached) " >&6
5047 else
5048 if test -n "$BISON"; then
5049 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5050 else
5051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH
5054 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_BISON="bison "
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2
5062 done
5063 done
5064 IFS=$as_save_IFS
5068 BISON=$ac_cv_prog_BISON
5069 if test -n "$BISON"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5071 $as_echo "$BISON" >&6; }
5072 else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 $as_echo "no" >&6; }
5078 if test "$BISON" = ""; then
5079 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5081 # Extract the first word of "flex", so it can be a program name with args.
5082 set dummy flex; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if test "${ac_cv_prog_FLEX+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -n "$FLEX"; then
5089 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_prog_FLEX="flex "
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5102 done
5103 done
5104 IFS=$as_save_IFS
5108 FLEX=$ac_cv_prog_FLEX
5109 if test -n "$FLEX"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5111 $as_echo "$FLEX" >&6; }
5112 else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5118 if test "$FLEX" = ""; then
5119 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5121 # Extract the first word of "pngtopnm", so it can be a program name with args.
5122 set dummy pngtopnm; ac_word=$2
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5124 $as_echo_n "checking for $ac_word... " >&6; }
5125 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5126 $as_echo_n "(cached) " >&6
5127 else
5128 if test -n "$PNGTOPNM"; then
5129 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5130 else
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 ac_cv_prog_PNGTOPNM="pngtopnm "
5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5140 break 2
5142 done
5143 done
5144 IFS=$as_save_IFS
5148 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5149 if test -n "$PNGTOPNM"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5151 $as_echo "$PNGTOPNM" >&6; }
5152 else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5158 if test "$PNGTOPNM" = ""; then
5159 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5161 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5162 set dummy ppmtoilbm; ac_word=$2
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5164 $as_echo_n "checking for $ac_word... " >&6; }
5165 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5166 $as_echo_n "(cached) " >&6
5167 else
5168 if test -n "$PPMTOILBM"; then
5169 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5170 else
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5172 for as_dir in $PATH
5174 IFS=$as_save_IFS
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5178 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5180 break 2
5182 done
5183 done
5184 IFS=$as_save_IFS
5188 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5189 if test -n "$PPMTOILBM"; then
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5191 $as_echo "$PPMTOILBM" >&6; }
5192 else
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5194 $as_echo "no" >&6; }
5198 if test "$PPMTOILBM" = ""; then
5199 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5201 # Extract the first word of "sed", so it can be a program name with args.
5202 set dummy sed; ac_word=$2
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5204 $as_echo_n "checking for $ac_word... " >&6; }
5205 if test "${ac_cv_prog_SED+set}" = set; then :
5206 $as_echo_n "(cached) " >&6
5207 else
5208 if test -n "$SED"; then
5209 ac_cv_prog_SED="$SED" # Let the user override the test.
5210 else
5211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5212 for as_dir in $PATH
5214 IFS=$as_save_IFS
5215 test -z "$as_dir" && as_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5218 ac_cv_prog_SED="sed "
5219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5220 break 2
5222 done
5223 done
5224 IFS=$as_save_IFS
5228 SED=$ac_cv_prog_SED
5229 if test -n "$SED"; then
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5231 $as_echo "$SED" >&6; }
5232 else
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5234 $as_echo "no" >&6; }
5238 if test "$SED" = ""; then
5239 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5241 # Extract the first word of "chmod", so it can be a program name with args.
5242 set dummy chmod; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if test -n "$CHMOD"; then
5249 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5258 ac_cv_prog_CHMOD="chmod "
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5262 done
5263 done
5264 IFS=$as_save_IFS
5268 CHMOD=$ac_cv_prog_CHMOD
5269 if test -n "$CHMOD"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5271 $as_echo "$CHMOD" >&6; }
5272 else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5278 if test "$CHMOD" = ""; then
5279 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5281 # Extract the first word of "patch", so it can be a program name with args.
5282 set dummy patch; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if test "${ac_cv_prog_PATCH+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 if test -n "$PATCH"; then
5289 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5290 else
5291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5292 for as_dir in $PATH
5294 IFS=$as_save_IFS
5295 test -z "$as_dir" && as_dir=.
5296 for ac_exec_ext in '' $ac_executable_extensions; do
5297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5298 ac_cv_prog_PATCH="patch "
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5302 done
5303 done
5304 IFS=$as_save_IFS
5308 PATCH=$ac_cv_prog_PATCH
5309 if test -n "$PATCH"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5311 $as_echo "$PATCH" >&6; }
5312 else
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5314 $as_echo "no" >&6; }
5318 if test "$PATCH" = ""; then
5319 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5326 if test -n "$PYTHON"; then
5327 # If the user set $PYTHON, use it and don't search something else.
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5329 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5330 prog="import sys, string
5331 # split strings by '.' and convert to numeric. Append some zeros
5332 # because we need at least 4 digits for the hex conversion.
5333 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5334 minverhex = 0
5335 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5336 sys.exit(sys.hexversion < minverhex)"
5337 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5338 ($PYTHON -c "$prog") >&5 2>&5
5339 ac_status=$?
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); }; then :
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5343 $as_echo "yes" >&6; }
5344 else
5345 as_fn_error $? "too old" "$LINENO" 5
5347 am_display_PYTHON=$PYTHON
5348 else
5349 # Otherwise, try each interpreter until we find one that satisfies
5350 # VERSION.
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5352 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5353 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5354 $as_echo_n "(cached) " >&6
5355 else
5357 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
5358 test "$am_cv_pathless_PYTHON" = none && break
5359 prog="import sys, string
5360 # split strings by '.' and convert to numeric. Append some zeros
5361 # because we need at least 4 digits for the hex conversion.
5362 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5363 minverhex = 0
5364 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5365 sys.exit(sys.hexversion < minverhex)"
5366 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5367 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5368 ac_status=$?
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); }; then :
5371 break
5373 done
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5376 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5377 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5378 if test "$am_cv_pathless_PYTHON" = none; then
5379 PYTHON=:
5380 else
5381 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5382 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5384 $as_echo_n "checking for $ac_word... " >&6; }
5385 if test "${ac_cv_path_PYTHON+set}" = set; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 case $PYTHON in
5389 [\\/]* | ?:[\\/]*)
5390 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5394 for as_dir in $PATH
5396 IFS=$as_save_IFS
5397 test -z "$as_dir" && as_dir=.
5398 for ac_exec_ext in '' $ac_executable_extensions; do
5399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5400 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5402 break 2
5404 done
5405 done
5406 IFS=$as_save_IFS
5409 esac
5411 PYTHON=$ac_cv_path_PYTHON
5412 if test -n "$PYTHON"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5414 $as_echo "$PYTHON" >&6; }
5415 else
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5422 am_display_PYTHON=$am_cv_pathless_PYTHON
5426 if test "$PYTHON" = :; then
5427 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5428 else
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5432 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5433 if test "${am_cv_python_version+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5439 $as_echo "$am_cv_python_version" >&6; }
5440 PYTHON_VERSION=$am_cv_python_version
5444 PYTHON_PREFIX='${prefix}'
5446 PYTHON_EXEC_PREFIX='${exec_prefix}'
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5451 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5452 if test "${am_cv_python_platform+set}" = set; then :
5453 $as_echo_n "(cached) " >&6
5454 else
5455 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5458 $as_echo "$am_cv_python_platform" >&6; }
5459 PYTHON_PLATFORM=$am_cv_python_platform
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5465 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5466 if test "${am_cv_python_pythondir+set}" = set; then :
5467 $as_echo_n "(cached) " >&6
5468 else
5469 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5470 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5473 $as_echo "$am_cv_python_pythondir" >&6; }
5474 pythondir=$am_cv_python_pythondir
5478 pkgpythondir=\${pythondir}/$PACKAGE
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5482 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5483 if test "${am_cv_python_pyexecdir+set}" = set; then :
5484 $as_echo_n "(cached) " >&6
5485 else
5486 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5487 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5490 $as_echo "$am_cv_python_pyexecdir" >&6; }
5491 pyexecdir=$am_cv_python_pyexecdir
5495 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5503 FOR=for
5505 IF=if
5507 TEST=test
5509 CMP=cmp
5513 # Check for some includes for the X11 HIDD and the kernel
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5517 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5518 if test "${ac_cv_path_GREP+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5520 else
5521 if test -z "$GREP"; then
5522 ac_path_GREP_found=false
5523 # Loop through the user's path and test for each of PROGNAME-LIST
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5527 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=.
5529 for ac_prog in grep ggrep; do
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5532 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5533 # Check for GNU ac_path_GREP and select it if it is found.
5534 # Check for GNU $ac_path_GREP
5535 case `"$ac_path_GREP" --version 2>&1` in
5536 *GNU*)
5537 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5539 ac_count=0
5540 $as_echo_n 0123456789 >"conftest.in"
5541 while :
5543 cat "conftest.in" "conftest.in" >"conftest.tmp"
5544 mv "conftest.tmp" "conftest.in"
5545 cp "conftest.in" "conftest.nl"
5546 $as_echo 'GREP' >> "conftest.nl"
5547 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5549 as_fn_arith $ac_count + 1 && ac_count=$as_val
5550 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5551 # Best one so far, save it but keep looking for a better one
5552 ac_cv_path_GREP="$ac_path_GREP"
5553 ac_path_GREP_max=$ac_count
5555 # 10*(2^10) chars as input seems more than enough
5556 test $ac_count -gt 10 && break
5557 done
5558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5559 esac
5561 $ac_path_GREP_found && break 3
5562 done
5563 done
5564 done
5565 IFS=$as_save_IFS
5566 if test -z "$ac_cv_path_GREP"; then
5567 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5569 else
5570 ac_cv_path_GREP=$GREP
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5575 $as_echo "$ac_cv_path_GREP" >&6; }
5576 GREP="$ac_cv_path_GREP"
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5580 $as_echo_n "checking for egrep... " >&6; }
5581 if test "${ac_cv_path_EGREP+set}" = set; then :
5582 $as_echo_n "(cached) " >&6
5583 else
5584 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5585 then ac_cv_path_EGREP="$GREP -E"
5586 else
5587 if test -z "$EGREP"; then
5588 ac_path_EGREP_found=false
5589 # Loop through the user's path and test for each of PROGNAME-LIST
5590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5591 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5593 IFS=$as_save_IFS
5594 test -z "$as_dir" && as_dir=.
5595 for ac_prog in egrep; do
5596 for ac_exec_ext in '' $ac_executable_extensions; do
5597 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5598 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5599 # Check for GNU ac_path_EGREP and select it if it is found.
5600 # Check for GNU $ac_path_EGREP
5601 case `"$ac_path_EGREP" --version 2>&1` in
5602 *GNU*)
5603 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5605 ac_count=0
5606 $as_echo_n 0123456789 >"conftest.in"
5607 while :
5609 cat "conftest.in" "conftest.in" >"conftest.tmp"
5610 mv "conftest.tmp" "conftest.in"
5611 cp "conftest.in" "conftest.nl"
5612 $as_echo 'EGREP' >> "conftest.nl"
5613 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5615 as_fn_arith $ac_count + 1 && ac_count=$as_val
5616 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5617 # Best one so far, save it but keep looking for a better one
5618 ac_cv_path_EGREP="$ac_path_EGREP"
5619 ac_path_EGREP_max=$ac_count
5621 # 10*(2^10) chars as input seems more than enough
5622 test $ac_count -gt 10 && break
5623 done
5624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5625 esac
5627 $ac_path_EGREP_found && break 3
5628 done
5629 done
5630 done
5631 IFS=$as_save_IFS
5632 if test -z "$ac_cv_path_EGREP"; then
5633 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5635 else
5636 ac_cv_path_EGREP=$EGREP
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5642 $as_echo "$ac_cv_path_EGREP" >&6; }
5643 EGREP="$ac_cv_path_EGREP"
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5647 $as_echo_n "checking for ANSI C header files... " >&6; }
5648 if test "${ac_cv_header_stdc+set}" = set; then :
5649 $as_echo_n "(cached) " >&6
5650 else
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5653 #include <stdlib.h>
5654 #include <stdarg.h>
5655 #include <string.h>
5656 #include <float.h>
5659 main ()
5663 return 0;
5665 _ACEOF
5666 if ac_fn_c_try_compile "$LINENO"; then :
5667 ac_cv_header_stdc=yes
5668 else
5669 ac_cv_header_stdc=no
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5673 if test $ac_cv_header_stdc = yes; then
5674 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5676 /* end confdefs.h. */
5677 #include <string.h>
5679 _ACEOF
5680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5681 $EGREP "memchr" >/dev/null 2>&1; then :
5683 else
5684 ac_cv_header_stdc=no
5686 rm -f conftest*
5690 if test $ac_cv_header_stdc = yes; then
5691 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5693 /* end confdefs.h. */
5694 #include <stdlib.h>
5696 _ACEOF
5697 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5698 $EGREP "free" >/dev/null 2>&1; then :
5700 else
5701 ac_cv_header_stdc=no
5703 rm -f conftest*
5707 if test $ac_cv_header_stdc = yes; then
5708 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5709 if test "$cross_compiling" = yes; then :
5711 else
5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713 /* end confdefs.h. */
5714 #include <ctype.h>
5715 #include <stdlib.h>
5716 #if ((' ' & 0x0FF) == 0x020)
5717 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5718 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5719 #else
5720 # define ISLOWER(c) \
5721 (('a' <= (c) && (c) <= 'i') \
5722 || ('j' <= (c) && (c) <= 'r') \
5723 || ('s' <= (c) && (c) <= 'z'))
5724 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5725 #endif
5727 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5729 main ()
5731 int i;
5732 for (i = 0; i < 256; i++)
5733 if (XOR (islower (i), ISLOWER (i))
5734 || toupper (i) != TOUPPER (i))
5735 return 2;
5736 return 0;
5738 _ACEOF
5739 if ac_fn_c_try_run "$LINENO"; then :
5741 else
5742 ac_cv_header_stdc=no
5744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5745 conftest.$ac_objext conftest.beam conftest.$ac_ext
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5751 $as_echo "$ac_cv_header_stdc" >&6; }
5752 if test $ac_cv_header_stdc = yes; then
5754 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5758 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5759 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5760 inttypes.h stdint.h unistd.h
5761 do :
5762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5763 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5765 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5766 cat >>confdefs.h <<_ACEOF
5767 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5768 _ACEOF
5772 done
5775 for ac_header in sys/ipc.h sys/shm.h \
5776 sys/mmap.h sys/mman.h sysexits.h \
5777 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5779 do :
5780 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5781 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5782 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5783 cat >>confdefs.h <<_ACEOF
5784 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5785 _ACEOF
5789 done
5792 for ac_header in sys/mount.h
5793 do :
5794 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5796 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5797 cat >>confdefs.h <<_ACEOF
5798 #define HAVE_SYS_MOUNT_H 1
5799 _ACEOF
5803 done
5806 ac_header_dirent=no
5807 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5808 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5810 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5811 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5816 #include <sys/types.h>
5817 #include <$ac_hdr>
5820 main ()
5822 if ((DIR *) 0)
5823 return 0;
5825 return 0;
5827 _ACEOF
5828 if ac_fn_c_try_compile "$LINENO"; then :
5829 eval "$as_ac_Header=yes"
5830 else
5831 eval "$as_ac_Header=no"
5833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5835 eval ac_res=\$$as_ac_Header
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5837 $as_echo "$ac_res" >&6; }
5838 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5839 cat >>confdefs.h <<_ACEOF
5840 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5841 _ACEOF
5843 ac_header_dirent=$ac_hdr; break
5846 done
5847 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5848 if test $ac_header_dirent = dirent.h; then
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5850 $as_echo_n "checking for library containing opendir... " >&6; }
5851 if test "${ac_cv_search_opendir+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 ac_func_search_save_LIBS=$LIBS
5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856 /* end confdefs.h. */
5858 /* Override any GCC internal prototype to avoid an error.
5859 Use char because int might match the return type of a GCC
5860 builtin and then its argument prototype would still apply. */
5861 #ifdef __cplusplus
5862 extern "C"
5863 #endif
5864 char opendir ();
5866 main ()
5868 return opendir ();
5870 return 0;
5872 _ACEOF
5873 for ac_lib in '' dir; do
5874 if test -z "$ac_lib"; then
5875 ac_res="none required"
5876 else
5877 ac_res=-l$ac_lib
5878 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5880 if ac_fn_c_try_link "$LINENO"; then :
5881 ac_cv_search_opendir=$ac_res
5883 rm -f core conftest.err conftest.$ac_objext \
5884 conftest$ac_exeext
5885 if test "${ac_cv_search_opendir+set}" = set; then :
5886 break
5888 done
5889 if test "${ac_cv_search_opendir+set}" = set; then :
5891 else
5892 ac_cv_search_opendir=no
5894 rm conftest.$ac_ext
5895 LIBS=$ac_func_search_save_LIBS
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5898 $as_echo "$ac_cv_search_opendir" >&6; }
5899 ac_res=$ac_cv_search_opendir
5900 if test "$ac_res" != no; then :
5901 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5905 else
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5907 $as_echo_n "checking for library containing opendir... " >&6; }
5908 if test "${ac_cv_search_opendir+set}" = set; then :
5909 $as_echo_n "(cached) " >&6
5910 else
5911 ac_func_search_save_LIBS=$LIBS
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5915 /* Override any GCC internal prototype to avoid an error.
5916 Use char because int might match the return type of a GCC
5917 builtin and then its argument prototype would still apply. */
5918 #ifdef __cplusplus
5919 extern "C"
5920 #endif
5921 char opendir ();
5923 main ()
5925 return opendir ();
5927 return 0;
5929 _ACEOF
5930 for ac_lib in '' x; do
5931 if test -z "$ac_lib"; then
5932 ac_res="none required"
5933 else
5934 ac_res=-l$ac_lib
5935 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5937 if ac_fn_c_try_link "$LINENO"; then :
5938 ac_cv_search_opendir=$ac_res
5940 rm -f core conftest.err conftest.$ac_objext \
5941 conftest$ac_exeext
5942 if test "${ac_cv_search_opendir+set}" = set; then :
5943 break
5945 done
5946 if test "${ac_cv_search_opendir+set}" = set; then :
5948 else
5949 ac_cv_search_opendir=no
5951 rm conftest.$ac_ext
5952 LIBS=$ac_func_search_save_LIBS
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5955 $as_echo "$ac_cv_search_opendir" >&6; }
5956 ac_res=$ac_cv_search_opendir
5957 if test "$ac_res" != no; then :
5958 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5965 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5966 if test "${ac_cv_header_stat_broken+set}" = set; then :
5967 $as_echo_n "(cached) " >&6
5968 else
5969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5970 /* end confdefs.h. */
5971 #include <sys/types.h>
5972 #include <sys/stat.h>
5974 #if defined S_ISBLK && defined S_IFDIR
5975 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5976 #endif
5978 #if defined S_ISBLK && defined S_IFCHR
5979 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5980 #endif
5982 #if defined S_ISLNK && defined S_IFREG
5983 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5984 #endif
5986 #if defined S_ISSOCK && defined S_IFREG
5987 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5988 #endif
5990 _ACEOF
5991 if ac_fn_c_try_compile "$LINENO"; then :
5992 ac_cv_header_stat_broken=no
5993 else
5994 ac_cv_header_stat_broken=yes
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5999 $as_echo "$ac_cv_header_stat_broken" >&6; }
6000 if test $ac_cv_header_stat_broken = yes; then
6002 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6007 $as_echo_n "checking for ANSI C header files... " >&6; }
6008 if test "${ac_cv_header_stdc+set}" = set; then :
6009 $as_echo_n "(cached) " >&6
6010 else
6011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* end confdefs.h. */
6013 #include <stdlib.h>
6014 #include <stdarg.h>
6015 #include <string.h>
6016 #include <float.h>
6019 main ()
6023 return 0;
6025 _ACEOF
6026 if ac_fn_c_try_compile "$LINENO"; then :
6027 ac_cv_header_stdc=yes
6028 else
6029 ac_cv_header_stdc=no
6031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 if test $ac_cv_header_stdc = yes; then
6034 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6036 /* end confdefs.h. */
6037 #include <string.h>
6039 _ACEOF
6040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6041 $EGREP "memchr" >/dev/null 2>&1; then :
6043 else
6044 ac_cv_header_stdc=no
6046 rm -f conftest*
6050 if test $ac_cv_header_stdc = yes; then
6051 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6053 /* end confdefs.h. */
6054 #include <stdlib.h>
6056 _ACEOF
6057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6058 $EGREP "free" >/dev/null 2>&1; then :
6060 else
6061 ac_cv_header_stdc=no
6063 rm -f conftest*
6067 if test $ac_cv_header_stdc = yes; then
6068 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6069 if test "$cross_compiling" = yes; then :
6071 else
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6074 #include <ctype.h>
6075 #include <stdlib.h>
6076 #if ((' ' & 0x0FF) == 0x020)
6077 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6078 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6079 #else
6080 # define ISLOWER(c) \
6081 (('a' <= (c) && (c) <= 'i') \
6082 || ('j' <= (c) && (c) <= 'r') \
6083 || ('s' <= (c) && (c) <= 'z'))
6084 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6085 #endif
6087 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6089 main ()
6091 int i;
6092 for (i = 0; i < 256; i++)
6093 if (XOR (islower (i), ISLOWER (i))
6094 || toupper (i) != TOUPPER (i))
6095 return 2;
6096 return 0;
6098 _ACEOF
6099 if ac_fn_c_try_run "$LINENO"; then :
6101 else
6102 ac_cv_header_stdc=no
6104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6105 conftest.$ac_objext conftest.beam conftest.$ac_ext
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6111 $as_echo "$ac_cv_header_stdc" >&6; }
6112 if test $ac_cv_header_stdc = yes; then
6114 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6119 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6120 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6124 /* end confdefs.h. */
6125 #include <sys/types.h>
6126 #include <sys/wait.h>
6127 #ifndef WEXITSTATUS
6128 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6129 #endif
6130 #ifndef WIFEXITED
6131 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6132 #endif
6135 main ()
6137 int s;
6138 wait (&s);
6139 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6141 return 0;
6143 _ACEOF
6144 if ac_fn_c_try_compile "$LINENO"; then :
6145 ac_cv_header_sys_wait_h=yes
6146 else
6147 ac_cv_header_sys_wait_h=no
6149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6152 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6153 if test $ac_cv_header_sys_wait_h = yes; then
6155 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6160 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6161 if test "${ac_cv_header_time+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165 /* end confdefs.h. */
6166 #include <sys/types.h>
6167 #include <sys/time.h>
6168 #include <time.h>
6171 main ()
6173 if ((struct tm *) 0)
6174 return 0;
6176 return 0;
6178 _ACEOF
6179 if ac_fn_c_try_compile "$LINENO"; then :
6180 ac_cv_header_time=yes
6181 else
6182 ac_cv_header_time=no
6184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6187 $as_echo "$ac_cv_header_time" >&6; }
6188 if test $ac_cv_header_time = yes; then
6190 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6194 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6195 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6197 cat >>confdefs.h <<_ACEOF
6198 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6199 _ACEOF
6202 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6207 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6208 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6210 cat >>confdefs.h <<_ACEOF
6211 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6212 _ACEOF
6215 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6217 else
6218 case " $LIBOBJS " in
6219 *" fileblocks.$ac_objext "* ) ;;
6220 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6222 esac
6227 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6228 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6230 cat >>confdefs.h <<_ACEOF
6231 #define HAVE_STRUCT_STAT_ST_RDEV 1
6232 _ACEOF
6235 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6241 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6242 if test "${ac_cv_struct_tm+set}" = set; then :
6243 $as_echo_n "(cached) " >&6
6244 else
6245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6246 /* end confdefs.h. */
6247 #include <sys/types.h>
6248 #include <time.h>
6251 main ()
6253 struct tm tm;
6254 int *p = &tm.tm_sec;
6255 return !p;
6257 return 0;
6259 _ACEOF
6260 if ac_fn_c_try_compile "$LINENO"; then :
6261 ac_cv_struct_tm=time.h
6262 else
6263 ac_cv_struct_tm=sys/time.h
6265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6268 $as_echo "$ac_cv_struct_tm" >&6; }
6269 if test $ac_cv_struct_tm = sys/time.h; then
6271 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6275 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6276 #include <$ac_cv_struct_tm>
6279 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6281 cat >>confdefs.h <<_ACEOF
6282 #define HAVE_STRUCT_TM_TM_ZONE 1
6283 _ACEOF
6288 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6290 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6292 else
6293 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6295 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6296 ac_have_decl=1
6297 else
6298 ac_have_decl=0
6301 cat >>confdefs.h <<_ACEOF
6302 #define HAVE_DECL_TZNAME $ac_have_decl
6303 _ACEOF
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6306 $as_echo_n "checking for tzname... " >&6; }
6307 if test "${ac_cv_var_tzname+set}" = set; then :
6308 $as_echo_n "(cached) " >&6
6309 else
6310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6311 /* end confdefs.h. */
6312 #include <time.h>
6313 #if !HAVE_DECL_TZNAME
6314 extern char *tzname[];
6315 #endif
6318 main ()
6320 return tzname[0][0];
6322 return 0;
6324 _ACEOF
6325 if ac_fn_c_try_link "$LINENO"; then :
6326 ac_cv_var_tzname=yes
6327 else
6328 ac_cv_var_tzname=no
6330 rm -f core conftest.err conftest.$ac_objext \
6331 conftest$ac_exeext conftest.$ac_ext
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6334 $as_echo "$ac_cv_var_tzname" >&6; }
6335 if test $ac_cv_var_tzname = yes; then
6337 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6342 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6343 if test "x$ac_cv_type_off_t" = x""yes; then :
6345 else
6347 cat >>confdefs.h <<_ACEOF
6348 #define off_t long int
6349 _ACEOF
6353 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6354 if test "x$ac_cv_type_pid_t" = x""yes; then :
6356 else
6358 cat >>confdefs.h <<_ACEOF
6359 #define pid_t int
6360 _ACEOF
6364 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6365 if test "x$ac_cv_type_size_t" = x""yes; then :
6367 else
6369 cat >>confdefs.h <<_ACEOF
6370 #define size_t unsigned int
6371 _ACEOF
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6376 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6377 if test "${ac_cv_type_uid_t+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6382 #include <sys/types.h>
6384 _ACEOF
6385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6386 $EGREP "uid_t" >/dev/null 2>&1; then :
6387 ac_cv_type_uid_t=yes
6388 else
6389 ac_cv_type_uid_t=no
6391 rm -f conftest*
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6395 $as_echo "$ac_cv_type_uid_t" >&6; }
6396 if test $ac_cv_type_uid_t = no; then
6398 $as_echo "#define uid_t int" >>confdefs.h
6401 $as_echo "#define gid_t int" >>confdefs.h
6406 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6407 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6409 cat >>confdefs.h <<_ACEOF
6410 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6411 _ACEOF
6417 # Look for some functions
6418 for ac_func in getpagesize kqueue statfs statvfs \
6419 clone kse_create rfork_thread thr_create sa_register \
6420 getcontext makecontext setcontext sigaltstack swapcontext
6421 do :
6422 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6423 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6424 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6425 cat >>confdefs.h <<_ACEOF
6426 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6427 _ACEOF
6430 done
6436 for ac_header in $ac_header_list
6437 do :
6438 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6439 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6441 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6442 cat >>confdefs.h <<_ACEOF
6443 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6444 _ACEOF
6448 done
6457 for ac_func in getpagesize
6458 do :
6459 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6460 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6461 cat >>confdefs.h <<_ACEOF
6462 #define HAVE_GETPAGESIZE 1
6463 _ACEOF
6466 done
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6469 $as_echo_n "checking for working mmap... " >&6; }
6470 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6471 $as_echo_n "(cached) " >&6
6472 else
6473 if test "$cross_compiling" = yes; then :
6474 ac_cv_func_mmap_fixed_mapped=no
6475 else
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6478 $ac_includes_default
6479 /* malloc might have been renamed as rpl_malloc. */
6480 #undef malloc
6482 /* Thanks to Mike Haertel and Jim Avera for this test.
6483 Here is a matrix of mmap possibilities:
6484 mmap private not fixed
6485 mmap private fixed at somewhere currently unmapped
6486 mmap private fixed at somewhere already mapped
6487 mmap shared not fixed
6488 mmap shared fixed at somewhere currently unmapped
6489 mmap shared fixed at somewhere already mapped
6490 For private mappings, we should verify that changes cannot be read()
6491 back from the file, nor mmap's back from the file at a different
6492 address. (There have been systems where private was not correctly
6493 implemented like the infamous i386 svr4.0, and systems where the
6494 VM page cache was not coherent with the file system buffer cache
6495 like early versions of FreeBSD and possibly contemporary NetBSD.)
6496 For shared mappings, we should conversely verify that changes get
6497 propagated back to all the places they're supposed to be.
6499 Grep wants private fixed already mapped.
6500 The main things grep needs to know about mmap are:
6501 * does it exist and is it safe to write into the mmap'd area
6502 * how to use it (BSD variants) */
6504 #include <fcntl.h>
6505 #include <sys/mman.h>
6507 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6508 char *malloc ();
6509 #endif
6511 /* This mess was copied from the GNU getpagesize.h. */
6512 #ifndef HAVE_GETPAGESIZE
6513 # ifdef _SC_PAGESIZE
6514 # define getpagesize() sysconf(_SC_PAGESIZE)
6515 # else /* no _SC_PAGESIZE */
6516 # ifdef HAVE_SYS_PARAM_H
6517 # include <sys/param.h>
6518 # ifdef EXEC_PAGESIZE
6519 # define getpagesize() EXEC_PAGESIZE
6520 # else /* no EXEC_PAGESIZE */
6521 # ifdef NBPG
6522 # define getpagesize() NBPG * CLSIZE
6523 # ifndef CLSIZE
6524 # define CLSIZE 1
6525 # endif /* no CLSIZE */
6526 # else /* no NBPG */
6527 # ifdef NBPC
6528 # define getpagesize() NBPC
6529 # else /* no NBPC */
6530 # ifdef PAGESIZE
6531 # define getpagesize() PAGESIZE
6532 # endif /* PAGESIZE */
6533 # endif /* no NBPC */
6534 # endif /* no NBPG */
6535 # endif /* no EXEC_PAGESIZE */
6536 # else /* no HAVE_SYS_PARAM_H */
6537 # define getpagesize() 8192 /* punt totally */
6538 # endif /* no HAVE_SYS_PARAM_H */
6539 # endif /* no _SC_PAGESIZE */
6541 #endif /* no HAVE_GETPAGESIZE */
6544 main ()
6546 char *data, *data2, *data3;
6547 const char *cdata2;
6548 int i, pagesize;
6549 int fd, fd2;
6551 pagesize = getpagesize ();
6553 /* First, make a file with some known garbage in it. */
6554 data = (char *) malloc (pagesize);
6555 if (!data)
6556 return 1;
6557 for (i = 0; i < pagesize; ++i)
6558 *(data + i) = rand ();
6559 umask (0);
6560 fd = creat ("conftest.mmap", 0600);
6561 if (fd < 0)
6562 return 2;
6563 if (write (fd, data, pagesize) != pagesize)
6564 return 3;
6565 close (fd);
6567 /* Next, check that the tail of a page is zero-filled. File must have
6568 non-zero length, otherwise we risk SIGBUS for entire page. */
6569 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6570 if (fd2 < 0)
6571 return 4;
6572 cdata2 = "";
6573 if (write (fd2, cdata2, 1) != 1)
6574 return 5;
6575 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6576 if (data2 == MAP_FAILED)
6577 return 6;
6578 for (i = 0; i < pagesize; ++i)
6579 if (*(data2 + i))
6580 return 7;
6581 close (fd2);
6582 if (munmap (data2, pagesize))
6583 return 8;
6585 /* Next, try to mmap the file at a fixed address which already has
6586 something else allocated at it. If we can, also make sure that
6587 we see the same garbage. */
6588 fd = open ("conftest.mmap", O_RDWR);
6589 if (fd < 0)
6590 return 9;
6591 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6592 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6593 return 10;
6594 for (i = 0; i < pagesize; ++i)
6595 if (*(data + i) != *(data2 + i))
6596 return 11;
6598 /* Finally, make sure that changes to the mapped area do not
6599 percolate back to the file as seen by read(). (This is a bug on
6600 some variants of i386 svr4.0.) */
6601 for (i = 0; i < pagesize; ++i)
6602 *(data2 + i) = *(data2 + i) + 1;
6603 data3 = (char *) malloc (pagesize);
6604 if (!data3)
6605 return 12;
6606 if (read (fd, data3, pagesize) != pagesize)
6607 return 13;
6608 for (i = 0; i < pagesize; ++i)
6609 if (*(data + i) != *(data3 + i))
6610 return 14;
6611 close (fd);
6612 return 0;
6614 _ACEOF
6615 if ac_fn_c_try_run "$LINENO"; then :
6616 ac_cv_func_mmap_fixed_mapped=yes
6617 else
6618 ac_cv_func_mmap_fixed_mapped=no
6620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6621 conftest.$ac_objext conftest.beam conftest.$ac_ext
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6626 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6627 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6629 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6632 rm -f conftest.mmap conftest.txt
6637 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6638 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6639 aros_config_ldflags=""
6641 aros_shared_default=yes
6643 aros_shared_cflags="-fPIC"
6644 aros_shared_aflags=""
6645 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6646 aros_kernel_ldflags="-Wl,-rpath,./lib"
6648 aros_target_ar_flags="cr"
6649 aros_target_nm_flags="-C -ul"
6650 aros_target_strip_flags="--strip-unneeded -R.comment"
6652 aros_compiler_libs=
6653 aros_arch_libs=
6655 aros_target_genmap="-Wl,-Map -Xlinker"
6657 # Native flavour stuff
6658 aros_serial_debug="0"
6660 # Palm native flavour stuff
6661 aros_palm_debug_hack="0"
6663 # Unix flavour stuff
6664 aros_nesting_supervisor="0"
6666 # Collect-aros stuff: "-ius" to ignore undefined symbols
6667 ignore_undefined_symbols=""
6669 # Check for X11 by default
6670 need_x11="auto"
6672 #-----------------------------------------------------------------------------
6675 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6676 # it switched on by default, and we use the host compiler, so it compiles AROS
6677 # code with this enabled resulting in link failures as we don't have support
6678 # for it.
6680 # We use two methods to disable it. For the host compiler (used to compile
6681 # some hosted modules), we test to see if the compiler supports stack
6682 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6683 # work on all platforms.
6685 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6686 # (this is done unconditionally, as it should have no effect on compilers
6687 # without the stack protection feature). This may be specific to the way that
6688 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6689 # strong enough to disable it in a generic way though, so we'll live with it
6690 # until another vendor ships GCC with it enabled in a different way, and deal
6691 # with it then.
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6695 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6696 save_cflags="$CFLAGS"
6697 CFLAGS="$CFLAGS -fno-stack-protector"
6698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6699 /* end confdefs.h. */
6702 main ()
6706 return 0;
6708 _ACEOF
6709 if ac_fn_c_try_compile "$LINENO"; then :
6710 use_no_stack_protector="yes"
6711 else
6712 use_no_stack_protector="no"
6714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6716 $as_echo "$use_no_stack_protector" >&6; }
6717 if test "x-$use_no_stack_protector" = "x-yes" ; then
6718 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6720 CFLAGS="$save_cflags"
6722 #-----------------------------------------------------------------------------
6724 # Disable pointer-signedness warnings if the compiler recognises the option
6725 # (this only works for the host compiler at the moment)
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6728 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6729 save_cflags="$CFLAGS"
6730 CFLAGS="$CFLAGS -Wno-pointer-sign"
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6732 /* end confdefs.h. */
6735 main ()
6739 return 0;
6741 _ACEOF
6742 if ac_fn_c_try_compile "$LINENO"; then :
6743 use_no_sign_warning="yes"
6744 else
6745 use_no_sign_warning="no"
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6749 $as_echo "$use_no_sign_warning" >&6; }
6750 if test "x-$use_no_sign_warning" = "x-yes" ; then
6751 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6753 CFLAGS="$save_cflags"
6755 #-----------------------------------------------------------------------------
6757 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6760 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6761 save_cflags="$CFLAGS"
6762 CFLAGS="$CFLAGS -fgnu89-inline"
6763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6764 /* end confdefs.h. */
6767 main ()
6771 return 0;
6773 _ACEOF
6774 if ac_fn_c_try_compile "$LINENO"; then :
6775 use_gnu89_inline="yes"
6776 else
6777 use_gnu89_inline="no"
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6781 $as_echo "$use_gnu89_inline" >&6; }
6782 if test "x-$use_gnu89_inline" = "x-yes" ; then
6783 gnu89_inline="-fgnu89-inline"
6785 CFLAGS="$save_cflags"
6787 #-----------------------------------------------------------------------------
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6790 $as_echo_n "checking for type of build... " >&6; }
6791 # Check whether --enable-build_type was given.
6792 if test "${enable_build_type+set}" = set; then :
6793 enableval=$enable_build_type; build_type=$enableval
6794 else
6795 build_type="personal"
6799 if test "$build_type" = "nightly"; then
6800 build_type_string="NIGHTLY"
6801 elif test "$build_type" = "snapshot"; then
6802 build_type_string="SNAPSHOT"
6803 elif test "$build_type" = "milestone"; then
6804 build_type_string="MILESTONE"
6805 elif test "$build_type" = "release"; then
6806 build_type_string="RELEASE"
6807 else
6808 build_type_string="PERSONAL"
6809 build_type="personal"
6812 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6815 $as_echo "$build_type" >&6; }
6817 #-----------------------------------------------------------------------------
6818 all_debug_types="messages stack modules mungwall symbols"
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6821 $as_echo_n "checking which debug types to enable... " >&6; }
6822 # Check whether --enable-debug was given.
6823 if test "${enable_debug+set}" = set; then :
6824 enableval=$enable_debug; debug="$enableval"
6825 else
6826 debug=""
6830 if test "$debug" = "" -o "$debug" = "no"; then
6831 debug="none"
6832 elif test "$debug" = "yes"; then
6833 debug="all"
6836 if test "$debug" = "all" ; then
6837 debug="messages stack modules symbols"
6838 for d in $all_debug_types; do
6839 export aros_${d}_debug="1"
6840 done
6841 else
6842 for d in $all_debug_types; do
6843 export aros_${d}_debug="0"
6844 done
6847 if test "$debug" != "none"; then
6848 debug=`echo $debug | sed s/,/\ /g`
6849 for d in $debug; do
6850 found="0"
6851 for d2 in $all_debug_types; do
6852 if test "$d2" = "$d"; then
6853 found="1"
6854 break
6856 done
6857 if test "$found" = "0"; then
6858 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6860 export aros_${d}_debug="1"
6861 done
6862 aros_debug="yes"
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6865 $as_echo "$debug" >&6; }
6867 if test "$aros_messages_debug" = "1"; then
6868 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6869 else
6870 aros_messages_debug=""
6872 if test "$aros_symbols_debug" = "1"; then
6873 aros_symbols_debug="-g"
6874 else
6875 aros_symbols_debug=""
6878 # These are the flags to pass when compiling debugged programs
6879 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6880 aros_debug_aflags=""
6881 aros_debug_ldflags="$aros_symbols_debug"
6883 #-----------------------------------------------------------------------------
6884 # Checking if we should build crosstools..
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6886 $as_echo_n "checking whether to build crosstools... " >&6; }
6887 # Check whether --enable-crosstools was given.
6888 if test "${enable_crosstools+set}" = set; then :
6889 enableval=$enable_crosstools; crosstools="$enableval"
6890 else
6891 crosstools="no"
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6895 $as_echo "$crosstools" >&6; }
6897 #-----------------------------------------------------------------------------
6898 # Checking for distcc and ccache.
6900 # Always apply the transforms in this particular order. Basically you should
6901 # always run 'ccache distcc compiler' in that order for the best performance.
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6904 $as_echo_n "checking whether to enable distcc... " >&6; }
6905 # Check whether --enable-distcc was given.
6906 if test "${enable_distcc+set}" = set; then :
6907 enableval=$enable_distcc; distcc="$enableval"
6908 else
6909 distcc="no"
6912 if test "$distcc" != "" -a "$distcc" != "no"; then
6913 # AC_CHECK_PROG will print out the result in this case
6914 # Extract the first word of "distcc", so it can be a program name with args.
6915 set dummy distcc; ac_word=$2
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6917 $as_echo_n "checking for $ac_word... " >&6; }
6918 if test "${ac_cv_path_DISTCC+set}" = set; then :
6919 $as_echo_n "(cached) " >&6
6920 else
6921 case $DISTCC in
6922 [\\/]* | ?:[\\/]*)
6923 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6927 for as_dir in $PATH
6929 IFS=$as_save_IFS
6930 test -z "$as_dir" && as_dir=.
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6933 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6935 break 2
6937 done
6938 done
6939 IFS=$as_save_IFS
6941 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6943 esac
6945 DISTCC=$ac_cv_path_DISTCC
6946 if test -n "$DISTCC"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6948 $as_echo "$DISTCC" >&6; }
6949 else
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6955 else
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6957 $as_echo "no" >&6; }
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6961 $as_echo_n "checking whether to enable ccache... " >&6; }
6962 # Check whether --enable-ccache was given.
6963 if test "${enable_ccache+set}" = set; then :
6964 enableval=$enable_ccache; ccache="$enableval"
6965 else
6966 ccache="no"
6969 if test "$ccache" != "" -a "$ccache" != "no"; then
6970 # AC_CHECK_PROG will print out the result in this case
6971 # Extract the first word of "ccache", so it can be a program name with args.
6972 set dummy ccache; ac_word=$2
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974 $as_echo_n "checking for $ac_word... " >&6; }
6975 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6976 $as_echo_n "(cached) " >&6
6977 else
6978 if test -n "$CCACHE"; then
6979 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6980 else
6981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6982 for as_dir in $PATH
6984 IFS=$as_save_IFS
6985 test -z "$as_dir" && as_dir=.
6986 for ac_exec_ext in '' $ac_executable_extensions; do
6987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6988 ac_cv_prog_CCACHE="ccache"
6989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6990 break 2
6992 done
6993 done
6994 IFS=$as_save_IFS
6998 CCACHE=$ac_cv_prog_CCACHE
6999 if test -n "$CCACHE"; then
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7001 $as_echo "$CCACHE" >&6; }
7002 else
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004 $as_echo "no" >&6; }
7008 else
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7013 #-----------------------------------------------------------------------------
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7015 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7017 # Check whether --with-gcc-version was given.
7018 if test "${with_gcc_version+set}" = set; then :
7019 withval=$with_gcc_version; target_tool_version="$withval"
7020 else
7021 target_tool_version="default"
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7025 $as_echo "$target_tool_version" >&6; }
7027 #-----------------------------------------------------------------------------
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7029 $as_echo_n "checking what optimization flags to use... " >&6; }
7031 # Check whether --with-optimization was given.
7032 if test "${with_optimization+set}" = set; then :
7033 withval=$with_optimization; optimization="$withval"
7034 else
7035 optimization="unknown"
7038 if test "$optimization" = "unknown"; then
7039 if test "$debug" != "none"; then
7040 optimization="-O0"
7041 else
7042 optimization="-O2"
7045 aros_config_cflags="$aros_config_cflags $optimization"
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7047 $as_echo "$optimization" >&6; }
7049 #-----------------------------------------------------------------------------
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7051 $as_echo_n "checking what paranoia flags to use... " >&6; }
7053 # Check whether --with-paranoia was given.
7054 if test "${with_paranoia+set}" = set; then :
7055 withval=$with_paranoia; paranoia_flags="$withval"
7056 else
7057 paranoia_flags="default"
7060 if test "$paranoia_flags" = "default"; then
7061 paranoia_flags=""
7062 else if test "$paranoia_flags" = "yes"; then
7063 paranoia_flags="-Wall -Werror"
7064 fi fi
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7066 $as_echo "$paranoia_flags" >&6; }
7067 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7069 #-----------------------------------------------------------------------------
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7071 $as_echo_n "checking what target variant to enable... " >&6; }
7072 # Check whether --enable-target_variant was given.
7073 if test "${enable_target_variant+set}" = set; then :
7074 enableval=$enable_target_variant; target_variant=$enableval
7075 else
7076 target_variant=""
7079 if test "$target_variant" = ""; then
7080 aros_target_variant=""
7081 aros_target_suffix=""
7082 enableval="none"
7083 else
7084 aros_target_variant="$target_variant"
7085 aros_target_suffix="-$target_variant"
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7088 $as_echo "$enableval" >&6; }
7090 #-----------------------------------------------------------------------------
7091 # Target-specific defaults. You can override then on a per-target basis.
7093 # Bootloader name. Currently used by PC target.
7094 target_bootloader="none"
7096 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7097 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7098 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7099 if test "$crosstools" != "yes"; then
7100 target_tool_prefix=${target_cpu}-elf-
7101 else
7102 target_tool_prefix=${target_cpu}-aros-
7105 #-----------------------------------------------------------------------------
7106 # Additional options for some specific targets
7108 case "$aros_target_variant" in
7109 ios)
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7111 $as_echo_n "checking XCode path... " >&6; }
7113 # Check whether --with-xcode was given.
7114 if test "${with_xcode+set}" = set; then :
7115 withval=$with_xcode; aros_xcode_path="$withval"
7116 else
7117 aros_xcode_path="/Developer"
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7121 $as_echo "$aros_xcode_path" >&6; }
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7124 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7126 # Check whether --with-ios-version was given.
7127 if test "${with_ios_version+set}" = set; then :
7128 withval=$with_ios_version; aros_ios_version="$withval"
7129 else
7130 aros_ios_version="3.0"
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7134 $as_echo "$aros_ios_version" >&6; }
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7137 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7139 # Check whether --with-ios-sdk was given.
7140 if test "${with_ios_sdk+set}" = set; then :
7141 withval=$with_ios_sdk; aros_ios_sdk="$withval"
7142 else
7143 aros_ios_sdk="4.1"
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7147 $as_echo "$aros_ios_sdk" >&6; }
7151 "android")
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7153 $as_echo_n "checking Android SDK path... " >&6; }
7155 # Check whether --with-sdk was given.
7156 if test "${with_sdk+set}" = set; then :
7157 withval=$with_sdk; aros_android_sdk="$withval"
7158 else
7159 aros_android_sdk=$default_android_sdk
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7163 $as_echo "$aros_android_sdk" >&6; }
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7166 $as_echo_n "checking Android NDK path... " >&6; }
7168 # Check whether --with-ndk was given.
7169 if test "${with_ndk+set}" = set; then :
7170 withval=$with_ndk; aros_android_ndk="$withval"
7171 else
7172 aros_android_ndk="$default_android_ndk"
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7176 $as_echo "$aros_android_ndk" >&6; }
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android version to use" >&5
7179 $as_echo_n "checking what Android version to use... " >&6; }
7181 # Check whether --with-android-version was given.
7182 if test "${with_android_version+set}" = set; then :
7183 withval=$with_android_version; aros_android_version="$withval"
7184 else
7185 aros_android_version="2.2"
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_version" >&5
7189 $as_echo "$aros_android_version" >&6; }
7191 export PATH="$aros_android_sdk/tools:$PATH"
7192 # Extract the first word of "$android_tool", so it can be a program name with args.
7193 set dummy $android_tool; ac_word=$2
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7195 $as_echo_n "checking for $ac_word... " >&6; }
7196 if test "${ac_cv_path_android_tool+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 case $android_tool in
7200 [\\/]* | ?:[\\/]*)
7201 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 for as_dir in $PATH
7207 IFS=$as_save_IFS
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7211 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7213 break 2
7215 done
7216 done
7217 IFS=$as_save_IFS
7220 esac
7222 android_tool=$ac_cv_path_android_tool
7223 if test -n "$android_tool"; then
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7225 $as_echo "$android_tool" >&6; }
7226 else
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7228 $as_echo "no" >&6; }
7232 if test "$android_tool" = ""; then
7233 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7236 if test $host_os = "mingw32"; then
7237 android_tool="cmd //c $android_tool"
7241 esac
7243 #-----------------------------------------------------------------------------
7244 # This is the target configuration switch.
7245 case "$target_os" in
7246 linux*)
7247 aros_target_arch="linux"
7248 aros_target_family="unix"
7249 case "$target_cpu" in
7250 *m68k*)
7251 aros_target_cpu="m68k"
7252 aros_object_format="m68kelf"
7253 aros_flavour="emulcompat"
7254 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7255 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7256 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7257 gcc_target_cpu="mc68000"
7259 *i?86*)
7260 aros_target_cpu="i386"
7261 aros_object_format="elf_i386"
7262 aros_flavour="emulation"
7263 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7264 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7265 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7266 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7267 aros_config_ldflags="-m32 -march=i486"
7268 aros_kernel_ldflags="-melf_i386"
7269 aros_default_wbdepth=8
7270 gcc_target_cpu="i386"
7271 pci_hidd_target="hidd-pci-linux"
7273 *x86_64*)
7274 aros_target_cpu="x86_64"
7275 aros_object_format="elf_x86_64"
7276 aros_flavour="emulation"
7277 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7278 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7279 aros_default_wbdepth=8
7280 pci_hidd_target="hidd-pci-linux"
7282 *powerpc*)
7283 aros_target_cpu="ppc"
7284 aros_object_format="elf32ppc"
7285 aros_flavour="emulation"
7286 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7287 aros_default_wbdepth=8
7288 gcc_target_cpu="ppc"
7290 # TODO
7291 # Same as powerpc, but I need this for the nightly build to work again.
7292 # Actually, the nightly should be made working with powerpc target.
7293 # That just was too much work for the moment, another week or two.
7294 *ppc*)
7295 aros_target_cpu="ppc"
7296 aros_object_format="elf32ppc"
7297 aros_flavour="emulation"
7298 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7299 aros_default_wbdepth=8
7300 gcc_target_cpu="ppc"
7302 *arm*)
7303 aros_target_cpu="arm"
7304 aros_object_format="armelf_linux_eabi"
7305 aros_flavour="emulation"
7306 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7307 gcc_target_cpu="arm"
7308 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"
7309 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"
7310 aros_arch_libs="-laeabi"
7313 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7315 esac
7316 case "$aros_target_variant" in
7317 android)
7318 case "$aros_android_version" in
7319 2.2)
7320 aros_android_level=android-8
7323 aros_android_level=android-9
7325 esac
7326 aros_default_wbwidth=320
7327 aros_default_wbheight=480
7328 use_aros_gcc="yes"
7329 if test "$aros_android_ndk" = ""; then
7330 aros_kernel_cflags="-mandroid"
7331 aros_kernel_ldflags="-mandroid"
7332 CFLAGS="-mandroid"
7333 else
7334 export PATH="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7335 aros_android_ndk="$aros_android_ndk/platforms/$aros_android_level/arch-arm"
7336 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7337 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7338 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7339 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7341 need_x11=no
7342 target_tool_prefix="arm-linux-androideabi-"
7344 esac
7348 aros_target_arch="pc"
7349 aros_shared_default="no"
7350 target_bootloader="grub2"
7351 case "$target_cpu" in
7352 *i?86*)
7353 aros_target_cpu="i386"
7356 if test "$aros_object_format" = "" ; then
7357 aros_object_format="elf_i386"
7359 aros_flavour="standalone"
7360 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7361 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7362 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7363 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7364 aros_config_ldflags="-m32 -march=i486"
7365 aros_kernel_ldflags="-melf_i386"
7366 aros_default_wbwidth=640
7367 aros_default_wbheight=480
7368 gcc_target_cpu="i386"
7370 *x86_64*)
7371 aros_target_cpu="x86_64"
7372 aros_serial_debug=1
7373 if test "$aros_object_format" = "" ; then
7374 aros_object_format="elf_x86_64"
7376 aros_flavour="standalone"
7377 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7378 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7379 aros_kernel_ldflags=""
7380 aros_default_wbwidth=640
7381 aros_default_wbheight=480
7384 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7386 esac
7389 prep)
7390 aros_target_arch="prep"
7391 aros_shared_default="no"
7392 aros_target_cpu="ppc"
7393 aros_object_format="elf32ppc"
7394 aros_flavour="ppcnative"
7395 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7396 aros_kernel_ldflags=""
7397 aros_default_wbwidth=640
7398 aros_default_wbheight=480
7399 gcc_target_cpu="ppc"
7402 freebsd*)
7403 aros_target_arch="freebsd"
7404 aros_target_family="unix"
7405 aros_target_cpu="i386"
7406 aros_flavour="emulation"
7407 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7408 gcc_target_cpu="i386"
7410 aros_target_strip_flags="-x"
7413 darwin*)
7414 aros_target_arch="darwin"
7415 aros_target_family="unix"
7416 aros_flavour="emulation"
7417 case "$target_cpu" in
7418 *i?86*)
7419 aros_ios_platform="iPhoneSimulator"
7420 aros_target_cpu="i386"
7421 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7422 aros_kernel_ldflags=""
7423 aros_macosx_version="10.4"
7424 aros_default_wbdepth=8
7425 gcc_target_cpu="i386"
7426 aros_object_format="elf_i386"
7427 aros_target_strip_flags="-x"
7428 target_tool_prefix="i686-apple-darwin10-"
7429 target_tool_flags="-m32"
7431 *x86_64*)
7432 aros_target_cpu="x86_64"
7433 aros_object_format="elf_x86_64"
7434 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7435 aros_macosx_version="10.6"
7436 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7437 aros_kernel_cflags="-m64"
7438 aros_kernel_ldflags="-m64"
7439 aros_target_cflags="-mcmodel=large"
7440 aros_default_wbdepth=8
7441 aros_kernel_ld="ld"
7442 target_tool_prefix="i686-apple-darwin10-"
7444 *ppc*)
7445 aros_target_cpu="ppc"
7446 aros_object_format="elf32ppc"
7447 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7448 aros_kernel_ldflags=""
7449 aros_macosx_version="10.0"
7450 aros_default_wbdepth=8
7451 gcc_target_cpu="ppc"
7452 aros_kernel_ld="ld -arch ppc"
7453 target_tool_prefix="powerpc-apple-darwin10-"
7455 *arm*)
7456 aros_ios_platform="iPhoneOS"
7457 aros_target_cpu="arm"
7458 aros_object_format="armelf_linux_eabi"
7459 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7460 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7461 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7462 aros_arch_libs="-laeabi"
7463 aros_default_wbdepth=8
7464 gcc_target_cpu="arm"
7465 aros_kernel_ld="ld -arch arm"
7466 target_tool_prefix="arm-apple-darwin10-"
7467 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7470 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7472 esac
7473 case "$aros_target_variant" in
7474 ios)
7475 aros_default_wbwidth=320
7476 aros_default_wbheight=480
7477 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7478 target_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7479 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7480 need_x11=no
7481 # This is here because it may depend on iOS or SDK version
7482 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7483 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7484 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7487 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7488 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7490 esac
7493 dragonfly*)
7494 aros_target_arch="dragonfly"
7495 aros_target_family="unix"
7496 aros_flavour="emulation"
7497 case "$target_cpu" in
7498 *i?86*)
7499 aros_target_cpu="i386"
7500 aros_object_format="elf_i386"
7501 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7503 *x86_64*)
7504 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7505 aros_target_cpu="x86_64"
7506 aros_object_format="elf_x86_64"
7507 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7510 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7512 esac
7515 netbsd*)
7516 aros_target_arch="netbsd"
7517 aros_target_family="unix"
7518 case "$target_cpu" in
7519 *m68k*)
7520 aros_target_cpu="m68k"
7521 aros_object_format="m68kelf"
7522 aros_flavour="emulcompat"
7523 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7524 gcc_target_cpu="mc68000"
7526 *i?86*)
7527 aros_target_cpu="i386"
7528 aros_object_format="elf_i386"
7529 aros_flavour="emulation"
7530 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7531 aros_default_wbdepth=8
7532 gcc_target_cpu="i386"
7535 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7537 esac
7538 aros_target_genmap="-Wl,-M -Xlinker >"
7539 aros_flavour="emulation"
7540 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7543 openbsd*)
7544 aros_target_arch="openbsd"
7545 aros_target_family="unix"
7546 case "$target_cpu" in
7547 *i?86*)
7548 aros_target_cpu="i386"
7549 aros_object_format="elf_i386"
7550 aros_flavour="emulation"
7551 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7552 gcc_target_cpu="i386"
7555 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7557 esac
7558 aros_target_genmap="-Wl,-M -Xlinker >"
7559 aros_target_nm_flags="-u"
7560 aros_flavour="emulation"
7563 solaris*)
7564 aros_target_arch="solaris"
7565 aros_target_family="unix"
7566 case "$target_cpu" in
7567 *i?86*)
7568 aros_target_cpu="i386"
7569 aros_object_format="elf_i386"
7570 aros_flavour="emulation"
7571 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7572 aros_default_wbdepth=8
7573 gcc_target_cpu="i386"
7575 *sparc*)
7576 aros_target_cpu="sparc"
7577 aros_object_format="elf_sparc"
7578 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7579 gcc_target_cpu="sparc"
7582 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7584 esac
7585 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7586 aros_flavour="emulation"
7589 morphos*)
7590 aros_target_arch="morphos"
7591 aros_shared_default="no"
7592 aros_target_cpu="ppc"
7593 aros_object_format="elf_ppc"
7594 aros_flavour="nativecompat"
7595 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7596 gcc_target_cpu="ppc"
7599 sam440)
7600 aros_target_arch="sam440"
7601 aros_shared_default="no"
7602 aros_target_cpu="ppc"
7603 aros_object_format="elf32ppc"
7604 aros_flavour="ppcnative"
7605 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7606 aros_kernel_ldflags=""
7607 aros_default_wbwidth=1024
7608 aros_default_wbheight=768
7609 aros_default_wbdepth=24
7610 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7611 gcc_target_cpu="powerpc"
7614 efika)
7615 aros_target_arch="efika"
7616 aros_shared_default="no"
7617 aros_target_cpu="arm"
7618 aros_object_format="armelf_linux_eabi"
7619 aros_flavour="standalone"
7620 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7621 aros_kernel_ldflags=""
7622 aros_default_wbwidth=1024
7623 aros_default_wbheight=600
7624 aros_arch_libs="-laeabi"
7625 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"
7626 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"
7629 chrp)
7630 aros_target_arch="chrp"
7631 aros_shared_default="no"
7632 aros_target_cpu="ppc"
7633 aros_object_format="elf32ppc"
7634 aros_flavour="ppcnative"
7635 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7636 aros_kernel_ldflags=""
7637 aros_default_wbwidth=640
7638 aros_default_wbheight=480
7639 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7640 gcc_target_cpu="powerpc"
7641 case "$aros_target_variant" in
7642 efika)
7643 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7645 esac
7648 amiga*)
7649 aros_target_arch="amiga"
7650 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7651 aros_shared_default="no"
7653 case "$target_cpu" in
7654 *m68k*)
7655 aros_enable_mmu=no
7656 aros_target_cpu="m68k"
7657 aros_object_format="m68kelf"
7658 aros_flavour="standcompat"
7659 gcc_target_cpu="m68000"
7660 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -DAROS_DOS_PACKETS -Os"
7661 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7662 target_tool_prefix="m68k-elf-"
7663 # Needed to get the correct multilib
7664 aros_config_ldflags="-${gcc_target_cpu}"
7665 aros_shared_ldflags="-${gcc_target_cpu}"
7666 aros_kernel_ldflags="-${gcc_target_cpu}"
7667 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7668 aros_target_strip_flags="-R.comment --strip-debug"
7669 aros_default_wbwidth=640
7670 aros_default_wbheight=256
7671 aros_default_wbdepth=2
7673 *ppc*)
7674 aros_cpu="ppc"
7675 aros_flavour="native"
7676 gcc_target_cpu="ppc"
7679 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7681 esac
7684 mingw*)
7685 aros_target_arch="mingw32"
7686 aros_shared_default="no"
7687 aros_flavour="emulation"
7688 aros_shared_cflags=""
7689 need_dlopen="no"
7690 rescomp="windres"
7691 case "$target_cpu" in
7692 *i?86*)
7693 aros_target_cpu="i386"
7694 aros_object_format="elf_i386"
7695 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7696 aros_default_wbdepth=8
7697 gcc_target_cpu="i386"
7699 aros_target_as="i386-aros-as"
7700 aros_target_ar="i386-aros-ar"
7701 aros_target_ranlib="i386-aros-ranlib"
7702 aros_target_nm="i386-aros-nm"
7703 aros_target_strip="i386-aros-strip"
7704 aros_target_objcopy="i386-aros-objcopy"
7705 aros_target_objdump="i386-aros-objdump"
7707 target_tool_prefix="i386-mingw32-"
7709 *x86_64*)
7710 aros_target_cpu="x86_64"
7711 aros_object_format="elf_x86_64"
7712 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7713 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7714 aros_default_wbdepth=8
7715 target_tool_prefix="x86_64-w64-mingw32-"
7717 *arm*)
7718 aros_target_cpu="arm"
7719 aros_object_format="armelf_linux_eabi"
7720 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7721 aros_arch_libs="-laeabi"
7722 aros_default_wbdepth=8
7723 gcc_target_cpu="arm"
7724 target_tool_prefix="arm-mingw32ce-"
7725 aros_default_wbwidth=160
7726 aros_default_wbheight=160
7729 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7731 esac
7732 if test $host_os = "cygwin"; then
7733 aros_kernel_cflags="-mno-cygwin"
7736 pp*)
7737 aros_target_arch="pp"
7738 aros_shared_default="no"
7739 case "$target_cpu" in
7740 *m68k*)
7741 aros_target_cpu="m68k"
7742 aros_object_format="m68kelf"
7743 aros_flavour="palmnative"
7744 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7745 aros_default_wbwidth=160
7746 aros_default_wbheight=160
7747 aros_default_wbdepth=1
7748 aros_target_ar_flags="cru"
7749 aros_compiler_libs="-lgcc1"
7750 aros_shared_default=no
7751 aros_shared_cflags="-fpic"
7752 aros_shared_aflags=""
7753 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7754 aros_kernel_ldflags="-Wl,-rpath,./lib"
7755 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7756 aros_debug_aflags=""
7757 aros_debug_ldflags="$aros_symbols_debug"
7758 aros_mungwall_debug="0"
7759 aros_modules_debug="0"
7760 gcc_target_cpu="mc68000"
7761 ignore_undefined_symbols="-ius"
7764 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7766 esac
7769 mac*)
7770 aros_target_arch="mac"
7771 aros_shared_default="no"
7772 case "$target_cpu" in
7773 *m68k*)
7774 aros_target_cpu="m68k"
7775 aros_object_format="m68kelf"
7776 aros_flavour="mac68knative"
7777 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7778 aros_default_wbwidth=512
7779 aros_default_wbheight=384
7780 aros_default_wbdepth=8
7781 aros_target_ar_flags="cru"
7782 aros_compiler_libs="-lgcc1"
7783 aros_shared_default=no
7784 aros_shared_cflags="-fpic"
7785 aros_shared_aflags=""
7786 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7787 aros_kernel_ldflags="-Wl,-rpath,./lib"
7788 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
7789 aros_debug_aflags=""
7790 aros_debug_ldflags="$aros_symbols_debug"
7791 aros_mungwall_debug="0"
7792 aros_modules_debug="0"
7793 gcc_target_cpu="mc68000"
7794 ignore_undefined_symbols="-ius"
7797 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7799 esac
7803 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7805 esac
7807 #-----------------------------------------------------------------------------
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
7809 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
7811 # Check whether --with-crosstools was given.
7812 if test "${with_crosstools+set}" = set; then :
7813 withval=$with_crosstools; with_crosstools=$withval
7814 else
7815 with_crosstools="default"
7818 if test "$with_crosstools" = "default"; then
7819 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
7820 else
7821 AROS_CROSSTOOLSDIR="$with_crosstools"
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
7824 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
7826 if test "$crosstools" != "yes" -a "$with_crosstools" != "default"; then
7827 use_aros_gcc=yes
7828 PATH=$AROS_CROSSTOOLSDIR:$PATH
7829 target_tool_prefix=${target_cpu}-aros-
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7833 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7835 # Check whether --with-aros-gcc was given.
7836 if test "${with_aros_gcc+set}" = set; then :
7837 withval=$with_aros_gcc; aros_gcc_version="$withval"
7838 else
7839 aros_gcc_version="$use_aros_gcc"
7842 case "$aros_gcc_version" in
7843 yes)
7844 aros_gcc_version="default"
7847 aros_gcc_version="none"
7849 esac
7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7851 $as_echo "$aros_gcc_version" >&6; }
7853 if test "$aros_gcc_version" != "none" -o "$crosstools" = "yes"; then
7854 if test "$aros_gcc_version" != "default" -a "$aros_gcc_version" != "none"; then
7855 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7856 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
7857 else
7858 aros_target_cc="$aros_target_cpu-aros-gcc"
7859 aros_target_cxx="$aros_target_cpu-aros-g++"
7862 aros_target_ld="$aros_target_cpu-aros-ld"
7863 aros_target_as="$aros_target_cpu-aros-as"
7864 aros_target_ar="$aros_target_cpu-aros-ar"
7865 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
7866 aros_target_nm="$aros_target_cpu-aros-nm"
7867 aros_target_strip="$aros_target_cpu-aros-strip"
7868 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
7869 aros_target_objdump="$aros_target_cpu-aros-objdump"
7872 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
7873 # Since we override specs, we may need to put these defines there
7874 if test "$gcc_target_cpu" != ""; then
7875 gcc_target_cpu="-D__${gcc_target_cpu}__"
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
7879 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
7881 # Check whether --with-portssources was given.
7882 if test "${with_portssources+set}" = set; then :
7883 withval=$with_portssources; with_portssrcdir=$withval
7884 else
7885 with_portssrcdir="default"
7888 if test "$with_portssrcdir" = "default"; then
7889 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7890 else
7891 AROS_PORTSSRCDIR="$with_portssrcdir"
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7894 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7897 $as_echo_n "checking which bootloader to use... " >&6; }
7899 # Check whether --with-bootloader was given.
7900 if test "${with_bootloader+set}" = set; then :
7901 withval=$with_bootloader; target_bootloader=$withval
7902 else
7903 target_bootloader=$target_bootloader
7906 if test "$target_bootloader" = "none"; then
7907 aros_target_bootloader=""
7908 else
7909 aros_target_bootloader="$target_bootloader"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7912 $as_echo "$target_bootloader" >&6; }
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7915 $as_echo_n "checking which icon-set to use... " >&6; }
7917 # Check whether --with-iconset was given.
7918 if test "${with_iconset+set}" = set; then :
7919 withval=$with_iconset; target_iconset=$withval
7920 else
7921 target_iconset="default"
7924 if test "$target_iconset" = "default"; then
7925 aros_target_iconset="Gorilla"
7926 target_iconset="default (Gorilla)"
7927 else
7928 aros_target_iconset="$target_iconset"
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7931 $as_echo "$target_iconset" >&6; }
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7934 $as_echo_n "checking which GUI Theme to use... " >&6; }
7936 # Check whether --with-theme was given.
7937 if test "${with_theme+set}" = set; then :
7938 withval=$with_theme; target_guitheme=$withval
7939 else
7940 target_guitheme="default"
7943 if test "$target_guitheme" = "default"; then
7944 aros_target_guitheme="Ice"
7945 else
7946 aros_target_guitheme="$target_guitheme"
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7949 $as_echo "$aros_target_guitheme" >&6; }
7951 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7952 # for target code)
7953 cross_compiling=no
7954 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7955 cross_compiling=yes
7958 if test "$aros_host_cpu" == "x86_64" ; then
7959 if test "$aros_target_cpu" == "i386" ; then
7960 if test "$aros_target_arch" != "mingw32"; then
7961 cross_compiling=no
7966 if test "$aros_host_arch" == "darwin" ; then
7967 if test "$aros_target_arch" != "darwin" ; then
7968 cross_compiling=yes
7972 # I want to have this information in configure output, although it might be
7973 # misleading, e.g. for darwin hosted you cannot compile target code without a
7974 # cross compiler, but here it says no.
7975 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
7977 # Set prefix for target compiler etc. if we're cross-compiling
7978 # (should possibly be earlier but needs to be after AC_PROG_CC)
7979 if test "$cross_compiling" = "yes" ; then
7980 CC=${target_tool_prefix}gcc
7981 CPP=${target_tool_prefix}cpp
7982 if test "$target_tool_version" != "default"; then
7983 CC="$CC-$target_tool_version"
7984 CPP="$CC-$target_tool_version"
7986 if test "$crosstools" != "yes" ; then
7987 # Extract the first word of "$CC", so it can be a program name with args.
7988 set dummy $CC; ac_word=$2
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7990 $as_echo_n "checking for $ac_word... " >&6; }
7991 if test "${ac_cv_path_CC+set}" = set; then :
7992 $as_echo_n "(cached) " >&6
7993 else
7994 case $CC in
7995 [\\/]* | ?:[\\/]*)
7996 ac_cv_path_CC="$CC" # Let the user override the test with a path.
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8002 IFS=$as_save_IFS
8003 test -z "$as_dir" && as_dir=.
8004 for ac_exec_ext in '' $ac_executable_extensions; do
8005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
8007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8008 break 2
8010 done
8011 done
8012 IFS=$as_save_IFS
8015 esac
8017 CC=$ac_cv_path_CC
8018 if test -n "$CC"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8020 $as_echo "$CC" >&6; }
8021 else
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8027 if test "$CC" = ""; then
8028 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8030 else
8031 CC=$AROS_CROSSTOOLSDIR/$CC
8034 CC="$CC $target_tool_flags"
8036 #-----------------------------------------------------------------------------
8038 # Disable pointer-signedness warnings if the compiler recognises the option
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8041 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8042 save_cflags="$CFLAGS"
8043 if test "$crosstools" != "yes" ; then
8044 CFLAGS="$CFLAGS -Wno-pointer-sign"
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046 /* end confdefs.h. */
8049 main ()
8053 return 0;
8055 _ACEOF
8056 if ac_fn_c_try_compile "$LINENO"; then :
8057 use_no_sign_warning="yes"
8058 else
8059 use_no_sign_warning="no"
8061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8062 else
8063 # we do know it is supported for the smallest version of gcc we are going to build
8064 # we assume it's also supported by later versions
8065 use_no_sign_warning=yes
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8068 $as_echo "$use_no_sign_warning" >&6; }
8069 if test "x-$use_no_sign_warning" = "x-yes" ; then
8070 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8072 CFLAGS="$save_cflags"
8074 #-----------------------------------------------------------------------------
8076 # Find all the tools we need to compile. This could be cross-compiling
8077 # though! If that is the case we use the GNU form of the target and
8078 # simply add this to the front of the binary name. This is rather simple,
8079 # but it should work under most circumstances.
8081 # The default tools are to use the same as the host, but only if the
8082 # host and target CPU are the same. With GCC this is normally enough.
8085 aros_cc_pre=""
8086 aros_shared_ld="$aros_host_ld"
8088 aros_target_mkdep="$aros_host_mkdep"
8089 aros_target_incl_def="$aros_host_incl"
8091 aros_kernel_cc="$CC"
8093 # The default tools executables to be linked to.
8094 if test "$rescomp" != ""; then
8095 if test "$cross_compiling" = "yes" ; then
8096 rescomp=${target_tool_prefix}${rescomp}
8098 # Extract the first word of "$rescomp", so it can be a program name with args.
8099 set dummy $rescomp; ac_word=$2
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8101 $as_echo_n "checking for $ac_word... " >&6; }
8102 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
8103 $as_echo_n "(cached) " >&6
8104 else
8105 case $aros_kernel_rescomp in
8106 [\\/]* | ?:[\\/]*)
8107 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8113 IFS=$as_save_IFS
8114 test -z "$as_dir" && as_dir=.
8115 for ac_exec_ext in '' $ac_executable_extensions; do
8116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8119 break 2
8121 done
8122 done
8123 IFS=$as_save_IFS
8126 esac
8128 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8129 if test -n "$aros_kernel_rescomp"; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8131 $as_echo "$aros_kernel_rescomp" >&6; }
8132 else
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8134 $as_echo "no" >&6; }
8138 if test "$aros_kernel_rescomp" = ""; then
8139 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8143 if test "$crosstools" != "yes"; then
8145 if test "$aros_kernel_ld" = ""; then
8146 if test "$cross_compiling" = "yes" ; then
8147 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8148 set dummy ${target_tool_prefix}ld; ac_word=$2
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8150 $as_echo_n "checking for $ac_word... " >&6; }
8151 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8152 $as_echo_n "(cached) " >&6
8153 else
8154 case $aros_kernel_ld in
8155 [\\/]* | ?:[\\/]*)
8156 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8162 IFS=$as_save_IFS
8163 test -z "$as_dir" && as_dir=.
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8166 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8168 break 2
8170 done
8171 done
8172 IFS=$as_save_IFS
8175 esac
8177 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8178 if test -n "$aros_kernel_ld"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8180 $as_echo "$aros_kernel_ld" >&6; }
8181 else
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 $as_echo "no" >&6; }
8187 else
8188 if test "$GCC" = "yes"; then
8189 aros_gcc_ld=`$CC -print-prog-name=ld`
8190 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8191 set dummy `basename $aros_gcc_ld`; ac_word=$2
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8193 $as_echo_n "checking for $ac_word... " >&6; }
8194 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8195 $as_echo_n "(cached) " >&6
8196 else
8197 case $aros_kernel_ld in
8198 [\\/]* | ?:[\\/]*)
8199 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8203 for as_dir in `dirname $aros_gcc_ld`
8205 IFS=$as_save_IFS
8206 test -z "$as_dir" && as_dir=.
8207 for ac_exec_ext in '' $ac_executable_extensions; do
8208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8209 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8211 break 2
8213 done
8214 done
8215 IFS=$as_save_IFS
8218 esac
8220 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8221 if test -n "$aros_kernel_ld"; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8223 $as_echo "$aros_kernel_ld" >&6; }
8224 else
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8231 if test "$aros_kernel_ld" = ""; then
8232 # Extract the first word of "ld", so it can be a program name with args.
8233 set dummy ld; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 case $aros_kernel_ld in
8240 [\\/]* | ?:[\\/]*)
8241 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8245 for as_dir in $PATH
8247 IFS=$as_save_IFS
8248 test -z "$as_dir" && as_dir=.
8249 for ac_exec_ext in '' $ac_executable_extensions; do
8250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8251 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8253 break 2
8255 done
8256 done
8257 IFS=$as_save_IFS
8260 esac
8262 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8263 if test -n "$aros_kernel_ld"; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8265 $as_echo "$aros_kernel_ld" >&6; }
8266 else
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8274 else
8275 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8276 set dummy $aros_kernel_ld; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8280 $as_echo_n "(cached) " >&6
8281 else
8282 case $aros_kernel_ld in
8283 [\\/]* | ?:[\\/]*)
8284 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 for as_dir in $PATH
8290 IFS=$as_save_IFS
8291 test -z "$as_dir" && as_dir=.
8292 for ac_exec_ext in '' $ac_executable_extensions; do
8293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8294 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 break 2
8298 done
8299 done
8300 IFS=$as_save_IFS
8303 esac
8305 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8306 if test -n "$aros_kernel_ld"; then
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8308 $as_echo "$aros_kernel_ld" >&6; }
8309 else
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8311 $as_echo "no" >&6; }
8317 if test "$aros_kernel_ld" = ""; then
8318 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8321 if test "$target_tool_prefix" != "${target_cpu}-elf-" ; then
8322 target_tool_prefix=${target_cpu}-elf-
8323 if test "$aros_target_cc" == ""; then
8324 aros_target_cc="${target_tool_prefix}gcc"
8326 if test "$aros_target_ld" == ""; then
8327 aros_target_ld="${target_tool_prefix}ld"
8331 if test "$aros_target_as" = ""; then
8332 if test "$cross_compiling" = "yes" ; then
8333 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8334 set dummy ${target_tool_prefix}as; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 case $aros_target_as_ln in
8341 [\\/]* | ?:[\\/]*)
8342 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8348 IFS=$as_save_IFS
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8352 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8354 break 2
8356 done
8357 done
8358 IFS=$as_save_IFS
8361 esac
8363 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8364 if test -n "$aros_target_as_ln"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8366 $as_echo "$aros_target_as_ln" >&6; }
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8373 else
8374 if test "$GCC" = "yes"; then
8375 aros_gcc_as=`$CC -print-prog-name=as`
8376 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8377 set dummy `basename $aros_gcc_as`; ac_word=$2
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379 $as_echo_n "checking for $ac_word... " >&6; }
8380 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8381 $as_echo_n "(cached) " >&6
8382 else
8383 case $aros_target_as_ln in
8384 [\\/]* | ?:[\\/]*)
8385 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 for as_dir in `dirname $aros_gcc_as`
8391 IFS=$as_save_IFS
8392 test -z "$as_dir" && as_dir=.
8393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8395 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8397 break 2
8399 done
8400 done
8401 IFS=$as_save_IFS
8404 esac
8406 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8407 if test -n "$aros_target_as_ln"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8409 $as_echo "$aros_target_as_ln" >&6; }
8410 else
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8417 if test "$aros_target_as_ln" = ""; then
8418 # Extract the first word of "as", so it can be a program name with args.
8419 set dummy as; ac_word=$2
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8421 $as_echo_n "checking for $ac_word... " >&6; }
8422 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8423 $as_echo_n "(cached) " >&6
8424 else
8425 case $aros_target_as_ln in
8426 [\\/]* | ?:[\\/]*)
8427 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8433 IFS=$as_save_IFS
8434 test -z "$as_dir" && as_dir=.
8435 for ac_exec_ext in '' $ac_executable_extensions; do
8436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8437 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8439 break 2
8441 done
8442 done
8443 IFS=$as_save_IFS
8446 esac
8448 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8449 if test -n "$aros_target_as_ln"; then
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8451 $as_echo "$aros_target_as_ln" >&6; }
8452 else
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8454 $as_echo "no" >&6; }
8460 else
8461 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8462 set dummy $aros_target_as; ac_word=$2
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8464 $as_echo_n "checking for $ac_word... " >&6; }
8465 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8466 $as_echo_n "(cached) " >&6
8467 else
8468 case $aros_target_as_ln in
8469 [\\/]* | ?:[\\/]*)
8470 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474 for as_dir in $PATH
8476 IFS=$as_save_IFS
8477 test -z "$as_dir" && as_dir=.
8478 for ac_exec_ext in '' $ac_executable_extensions; do
8479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8480 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8482 break 2
8484 done
8485 done
8486 IFS=$as_save_IFS
8489 esac
8491 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8492 if test -n "$aros_target_as_ln"; then
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8494 $as_echo "$aros_target_as_ln" >&6; }
8495 else
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8497 $as_echo "no" >&6; }
8503 if test "$aros_target_as_ln" = ""; then
8504 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
8507 if test "$aros_target_ar" = ""; then
8508 if test "$cross_compiling" = "yes" ; then
8509 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8510 set dummy ${target_tool_prefix}ar; ac_word=$2
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 $as_echo_n "checking for $ac_word... " >&6; }
8513 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8514 $as_echo_n "(cached) " >&6
8515 else
8516 case $aros_target_ar_ln in
8517 [\\/]* | ?:[\\/]*)
8518 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8524 IFS=$as_save_IFS
8525 test -z "$as_dir" && as_dir=.
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8528 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 break 2
8532 done
8533 done
8534 IFS=$as_save_IFS
8537 esac
8539 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8540 if test -n "$aros_target_ar_ln"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8542 $as_echo "$aros_target_ar_ln" >&6; }
8543 else
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8549 else
8550 if test "$GCC" = "yes"; then
8551 aros_gcc_ar=`$CC -print-prog-name=ar`
8552 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8553 set dummy `basename $aros_gcc_ar`; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8557 $as_echo_n "(cached) " >&6
8558 else
8559 case $aros_target_ar_ln in
8560 [\\/]* | ?:[\\/]*)
8561 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8565 for as_dir in `dirname $aros_gcc_ar`
8567 IFS=$as_save_IFS
8568 test -z "$as_dir" && as_dir=.
8569 for ac_exec_ext in '' $ac_executable_extensions; do
8570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8571 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 break 2
8575 done
8576 done
8577 IFS=$as_save_IFS
8580 esac
8582 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8583 if test -n "$aros_target_ar_ln"; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8585 $as_echo "$aros_target_ar_ln" >&6; }
8586 else
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8588 $as_echo "no" >&6; }
8593 if test "$aros_target_ar_ln" = ""; then
8594 # Extract the first word of "ar", so it can be a program name with args.
8595 set dummy ar; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 case $aros_target_ar_ln in
8602 [\\/]* | ?:[\\/]*)
8603 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8613 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 break 2
8617 done
8618 done
8619 IFS=$as_save_IFS
8622 esac
8624 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8625 if test -n "$aros_target_ar_ln"; then
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8627 $as_echo "$aros_target_ar_ln" >&6; }
8628 else
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8630 $as_echo "no" >&6; }
8636 else
8637 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8638 set dummy $aros_target_ar; ac_word=$2
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8640 $as_echo_n "checking for $ac_word... " >&6; }
8641 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8642 $as_echo_n "(cached) " >&6
8643 else
8644 case $aros_target_ar_ln in
8645 [\\/]* | ?:[\\/]*)
8646 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650 for as_dir in $PATH
8652 IFS=$as_save_IFS
8653 test -z "$as_dir" && as_dir=.
8654 for ac_exec_ext in '' $ac_executable_extensions; do
8655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8656 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8658 break 2
8660 done
8661 done
8662 IFS=$as_save_IFS
8665 esac
8667 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8668 if test -n "$aros_target_ar_ln"; then
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8670 $as_echo "$aros_target_ar_ln" >&6; }
8671 else
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8673 $as_echo "no" >&6; }
8679 if test "$aros_target_ar_ln" = ""; then
8680 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8683 if test "$aros_target_nm" = ""; then
8684 if test "$cross_compiling" = "yes" ; then
8685 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8686 set dummy ${target_tool_prefix}nm; ac_word=$2
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8688 $as_echo_n "checking for $ac_word... " >&6; }
8689 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8690 $as_echo_n "(cached) " >&6
8691 else
8692 case $aros_target_nm_ln in
8693 [\\/]* | ?:[\\/]*)
8694 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8704 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 break 2
8708 done
8709 done
8710 IFS=$as_save_IFS
8713 esac
8715 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8716 if test -n "$aros_target_nm_ln"; then
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8718 $as_echo "$aros_target_nm_ln" >&6; }
8719 else
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8721 $as_echo "no" >&6; }
8725 else
8726 if test "$GCC" = "yes"; then
8727 aros_gcc_nm=`$CC -print-prog-name=nm`
8728 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8729 set dummy `basename $aros_gcc_nm`; ac_word=$2
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8731 $as_echo_n "checking for $ac_word... " >&6; }
8732 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8733 $as_echo_n "(cached) " >&6
8734 else
8735 case $aros_target_nm_ln in
8736 [\\/]* | ?:[\\/]*)
8737 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8741 for as_dir in `dirname $aros_gcc_nm`
8743 IFS=$as_save_IFS
8744 test -z "$as_dir" && as_dir=.
8745 for ac_exec_ext in '' $ac_executable_extensions; do
8746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8747 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 break 2
8751 done
8752 done
8753 IFS=$as_save_IFS
8756 esac
8758 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8759 if test -n "$aros_target_nm_ln"; then
8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8761 $as_echo "$aros_target_nm_ln" >&6; }
8762 else
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8764 $as_echo "no" >&6; }
8769 if test "$aros_target_nm_ln" = ""; then
8770 # Extract the first word of "nm", so it can be a program name with args.
8771 set dummy nm; ac_word=$2
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8773 $as_echo_n "checking for $ac_word... " >&6; }
8774 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 case $aros_target_nm_ln in
8778 [\\/]* | ?:[\\/]*)
8779 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8783 for as_dir in $PATH
8785 IFS=$as_save_IFS
8786 test -z "$as_dir" && as_dir=.
8787 for ac_exec_ext in '' $ac_executable_extensions; do
8788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8789 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8791 break 2
8793 done
8794 done
8795 IFS=$as_save_IFS
8798 esac
8800 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8801 if test -n "$aros_target_nm_ln"; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8803 $as_echo "$aros_target_nm_ln" >&6; }
8804 else
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8806 $as_echo "no" >&6; }
8812 else
8813 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8814 set dummy $aros_target_nm; ac_word=$2
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8816 $as_echo_n "checking for $ac_word... " >&6; }
8817 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8818 $as_echo_n "(cached) " >&6
8819 else
8820 case $aros_target_nm_ln in
8821 [\\/]* | ?:[\\/]*)
8822 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8826 for as_dir in $PATH
8828 IFS=$as_save_IFS
8829 test -z "$as_dir" && as_dir=.
8830 for ac_exec_ext in '' $ac_executable_extensions; do
8831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8832 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8834 break 2
8836 done
8837 done
8838 IFS=$as_save_IFS
8841 esac
8843 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8844 if test -n "$aros_target_nm_ln"; then
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8846 $as_echo "$aros_target_nm_ln" >&6; }
8847 else
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8849 $as_echo "no" >&6; }
8855 if test "$aros_target_nm_ln" = ""; then
8856 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8859 if test "$aros_target_objcopy" = ""; then
8860 if test "$cross_compiling" = "yes" ; then
8861 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8862 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8864 $as_echo_n "checking for $ac_word... " >&6; }
8865 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8866 $as_echo_n "(cached) " >&6
8867 else
8868 case $aros_target_objcopy_ln in
8869 [\\/]* | ?:[\\/]*)
8870 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 for as_dir in $PATH
8876 IFS=$as_save_IFS
8877 test -z "$as_dir" && as_dir=.
8878 for ac_exec_ext in '' $ac_executable_extensions; do
8879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8880 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8882 break 2
8884 done
8885 done
8886 IFS=$as_save_IFS
8889 esac
8891 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8892 if test -n "$aros_target_objcopy_ln"; then
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8894 $as_echo "$aros_target_objcopy_ln" >&6; }
8895 else
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8897 $as_echo "no" >&6; }
8901 else
8902 if test "$GCC" = "yes"; then
8903 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8904 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8905 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8907 $as_echo_n "checking for $ac_word... " >&6; }
8908 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8909 $as_echo_n "(cached) " >&6
8910 else
8911 case $aros_target_objcopy_ln in
8912 [\\/]* | ?:[\\/]*)
8913 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8917 for as_dir in `dirname $aros_gcc_objcopy`
8919 IFS=$as_save_IFS
8920 test -z "$as_dir" && as_dir=.
8921 for ac_exec_ext in '' $ac_executable_extensions; do
8922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8923 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8925 break 2
8927 done
8928 done
8929 IFS=$as_save_IFS
8932 esac
8934 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8935 if test -n "$aros_target_objcopy_ln"; then
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8937 $as_echo "$aros_target_objcopy_ln" >&6; }
8938 else
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8940 $as_echo "no" >&6; }
8945 if test "$aros_target_objcopy_ln" = ""; then
8946 # Extract the first word of "objcopy", so it can be a program name with args.
8947 set dummy objcopy; ac_word=$2
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949 $as_echo_n "checking for $ac_word... " >&6; }
8950 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8951 $as_echo_n "(cached) " >&6
8952 else
8953 case $aros_target_objcopy_ln in
8954 [\\/]* | ?:[\\/]*)
8955 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8959 for as_dir in $PATH
8961 IFS=$as_save_IFS
8962 test -z "$as_dir" && as_dir=.
8963 for ac_exec_ext in '' $ac_executable_extensions; do
8964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8965 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8967 break 2
8969 done
8970 done
8971 IFS=$as_save_IFS
8974 esac
8976 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8977 if test -n "$aros_target_objcopy_ln"; then
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8979 $as_echo "$aros_target_objcopy_ln" >&6; }
8980 else
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 $as_echo "no" >&6; }
8988 else
8989 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8990 set dummy $aros_target_objcopy; ac_word=$2
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8992 $as_echo_n "checking for $ac_word... " >&6; }
8993 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8994 $as_echo_n "(cached) " >&6
8995 else
8996 case $aros_target_objcopy_ln in
8997 [\\/]* | ?:[\\/]*)
8998 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002 for as_dir in $PATH
9004 IFS=$as_save_IFS
9005 test -z "$as_dir" && as_dir=.
9006 for ac_exec_ext in '' $ac_executable_extensions; do
9007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9008 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9010 break 2
9012 done
9013 done
9014 IFS=$as_save_IFS
9017 esac
9019 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9020 if test -n "$aros_target_objcopy_ln"; then
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9022 $as_echo "$aros_target_objcopy_ln" >&6; }
9023 else
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9025 $as_echo "no" >&6; }
9031 if test "$aros_target_objcopy_ln" = ""; then
9032 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9035 if test "$aros_target_objdump" = ""; then
9036 if test "$cross_compiling" = "yes" ; then
9037 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9038 set dummy ${target_tool_prefix}objdump; ac_word=$2
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040 $as_echo_n "checking for $ac_word... " >&6; }
9041 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9042 $as_echo_n "(cached) " >&6
9043 else
9044 case $aros_target_objdump_ln in
9045 [\\/]* | ?:[\\/]*)
9046 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050 for as_dir in $PATH
9052 IFS=$as_save_IFS
9053 test -z "$as_dir" && as_dir=.
9054 for ac_exec_ext in '' $ac_executable_extensions; do
9055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9056 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 break 2
9060 done
9061 done
9062 IFS=$as_save_IFS
9065 esac
9067 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9068 if test -n "$aros_target_objdump_ln"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9070 $as_echo "$aros_target_objdump_ln" >&6; }
9071 else
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073 $as_echo "no" >&6; }
9077 else
9078 if test "$GCC" = "yes"; then
9079 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9080 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9081 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9083 $as_echo_n "checking for $ac_word... " >&6; }
9084 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9085 $as_echo_n "(cached) " >&6
9086 else
9087 case $aros_target_objdump_ln in
9088 [\\/]* | ?:[\\/]*)
9089 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9093 for as_dir in `dirname $aros_gcc_objdump`
9095 IFS=$as_save_IFS
9096 test -z "$as_dir" && as_dir=.
9097 for ac_exec_ext in '' $ac_executable_extensions; do
9098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9099 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9101 break 2
9103 done
9104 done
9105 IFS=$as_save_IFS
9108 esac
9110 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9111 if test -n "$aros_target_objdump_ln"; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9113 $as_echo "$aros_target_objdump_ln" >&6; }
9114 else
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116 $as_echo "no" >&6; }
9121 if test "$aros_target_objdump_ln" = ""; then
9122 # Extract the first word of "objdump", so it can be a program name with args.
9123 set dummy objdump; ac_word=$2
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9125 $as_echo_n "checking for $ac_word... " >&6; }
9126 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 case $aros_target_objdump_ln in
9130 [\\/]* | ?:[\\/]*)
9131 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135 for as_dir in $PATH
9137 IFS=$as_save_IFS
9138 test -z "$as_dir" && as_dir=.
9139 for ac_exec_ext in '' $ac_executable_extensions; do
9140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9141 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9143 break 2
9145 done
9146 done
9147 IFS=$as_save_IFS
9150 esac
9152 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9153 if test -n "$aros_target_objdump_ln"; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9155 $as_echo "$aros_target_objdump_ln" >&6; }
9156 else
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158 $as_echo "no" >&6; }
9164 else
9165 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9166 set dummy $aros_target_objdump; ac_word=$2
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9168 $as_echo_n "checking for $ac_word... " >&6; }
9169 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 case $aros_target_objdump_ln in
9173 [\\/]* | ?:[\\/]*)
9174 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9178 for as_dir in $PATH
9180 IFS=$as_save_IFS
9181 test -z "$as_dir" && as_dir=.
9182 for ac_exec_ext in '' $ac_executable_extensions; do
9183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9184 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 break 2
9188 done
9189 done
9190 IFS=$as_save_IFS
9193 esac
9195 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9196 if test -n "$aros_target_objdump_ln"; then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9198 $as_echo "$aros_target_objdump_ln" >&6; }
9199 else
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9201 $as_echo "no" >&6; }
9207 if test "$aros_target_objdump_ln" = ""; then
9208 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9211 if test "$aros_target_ranlib" = ""; then
9212 if test "$cross_compiling" = "yes" ; then
9213 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9214 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9216 $as_echo_n "checking for $ac_word... " >&6; }
9217 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 case $aros_target_ranlib_ln in
9221 [\\/]* | ?:[\\/]*)
9222 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9226 for as_dir in $PATH
9228 IFS=$as_save_IFS
9229 test -z "$as_dir" && as_dir=.
9230 for ac_exec_ext in '' $ac_executable_extensions; do
9231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9232 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9234 break 2
9236 done
9237 done
9238 IFS=$as_save_IFS
9241 esac
9243 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9244 if test -n "$aros_target_ranlib_ln"; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9246 $as_echo "$aros_target_ranlib_ln" >&6; }
9247 else
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9249 $as_echo "no" >&6; }
9253 else
9254 if test "$GCC" = "yes"; then
9255 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9256 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9257 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9259 $as_echo_n "checking for $ac_word... " >&6; }
9260 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9261 $as_echo_n "(cached) " >&6
9262 else
9263 case $aros_target_ranlib_ln in
9264 [\\/]* | ?:[\\/]*)
9265 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9269 for as_dir in `dirname $aros_gcc_ranlib`
9271 IFS=$as_save_IFS
9272 test -z "$as_dir" && as_dir=.
9273 for ac_exec_ext in '' $ac_executable_extensions; do
9274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9275 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9277 break 2
9279 done
9280 done
9281 IFS=$as_save_IFS
9284 esac
9286 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9287 if test -n "$aros_target_ranlib_ln"; then
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9289 $as_echo "$aros_target_ranlib_ln" >&6; }
9290 else
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9292 $as_echo "no" >&6; }
9297 if test "$aros_target_ranlib_ln" = ""; then
9298 # Extract the first word of "ranlib", so it can be a program name with args.
9299 set dummy ranlib; ac_word=$2
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9301 $as_echo_n "checking for $ac_word... " >&6; }
9302 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9303 $as_echo_n "(cached) " >&6
9304 else
9305 case $aros_target_ranlib_ln in
9306 [\\/]* | ?:[\\/]*)
9307 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9311 for as_dir in $PATH
9313 IFS=$as_save_IFS
9314 test -z "$as_dir" && as_dir=.
9315 for ac_exec_ext in '' $ac_executable_extensions; do
9316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9317 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9319 break 2
9321 done
9322 done
9323 IFS=$as_save_IFS
9326 esac
9328 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9329 if test -n "$aros_target_ranlib_ln"; then
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9331 $as_echo "$aros_target_ranlib_ln" >&6; }
9332 else
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9334 $as_echo "no" >&6; }
9340 else
9341 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9342 set dummy $aros_target_ranlib; ac_word=$2
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9344 $as_echo_n "checking for $ac_word... " >&6; }
9345 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 case $aros_target_ranlib_ln in
9349 [\\/]* | ?:[\\/]*)
9350 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9354 for as_dir in $PATH
9356 IFS=$as_save_IFS
9357 test -z "$as_dir" && as_dir=.
9358 for ac_exec_ext in '' $ac_executable_extensions; do
9359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9360 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9362 break 2
9364 done
9365 done
9366 IFS=$as_save_IFS
9369 esac
9371 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9372 if test -n "$aros_target_ranlib_ln"; then
9373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9374 $as_echo "$aros_target_ranlib_ln" >&6; }
9375 else
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9377 $as_echo "no" >&6; }
9383 if test "$aros_target_ranlib_ln" = ""; then
9384 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9387 if test "$aros_target_strip" = ""; then
9388 if test "$cross_compiling" = "yes" ; then
9389 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9390 set dummy ${target_tool_prefix}strip; ac_word=$2
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9392 $as_echo_n "checking for $ac_word... " >&6; }
9393 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9395 else
9396 case $aros_target_strip_ln in
9397 [\\/]* | ?:[\\/]*)
9398 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9402 for as_dir in $PATH
9404 IFS=$as_save_IFS
9405 test -z "$as_dir" && as_dir=.
9406 for ac_exec_ext in '' $ac_executable_extensions; do
9407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9408 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9410 break 2
9412 done
9413 done
9414 IFS=$as_save_IFS
9417 esac
9419 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9420 if test -n "$aros_target_strip_ln"; then
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9422 $as_echo "$aros_target_strip_ln" >&6; }
9423 else
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9425 $as_echo "no" >&6; }
9429 else
9430 if test "$GCC" = "yes"; then
9431 aros_gcc_strip=`$CC -print-prog-name=strip`
9432 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9433 set dummy `basename $aros_gcc_strip`; ac_word=$2
9434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9435 $as_echo_n "checking for $ac_word... " >&6; }
9436 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9437 $as_echo_n "(cached) " >&6
9438 else
9439 case $aros_target_strip_ln in
9440 [\\/]* | ?:[\\/]*)
9441 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9445 for as_dir in `dirname $aros_gcc_strip`
9447 IFS=$as_save_IFS
9448 test -z "$as_dir" && as_dir=.
9449 for ac_exec_ext in '' $ac_executable_extensions; do
9450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9451 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9453 break 2
9455 done
9456 done
9457 IFS=$as_save_IFS
9460 esac
9462 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9463 if test -n "$aros_target_strip_ln"; then
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9465 $as_echo "$aros_target_strip_ln" >&6; }
9466 else
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 $as_echo "no" >&6; }
9473 if test "$aros_target_strip_ln" = ""; then
9474 # Extract the first word of "strip", so it can be a program name with args.
9475 set dummy strip; ac_word=$2
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9477 $as_echo_n "checking for $ac_word... " >&6; }
9478 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 case $aros_target_strip_ln in
9482 [\\/]* | ?:[\\/]*)
9483 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9487 for as_dir in $PATH
9489 IFS=$as_save_IFS
9490 test -z "$as_dir" && as_dir=.
9491 for ac_exec_ext in '' $ac_executable_extensions; do
9492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9493 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9495 break 2
9497 done
9498 done
9499 IFS=$as_save_IFS
9502 esac
9504 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9505 if test -n "$aros_target_strip_ln"; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9507 $as_echo "$aros_target_strip_ln" >&6; }
9508 else
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9510 $as_echo "no" >&6; }
9516 else
9517 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9518 set dummy $aros_target_strip; ac_word=$2
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9520 $as_echo_n "checking for $ac_word... " >&6; }
9521 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 case $aros_target_strip_ln in
9525 [\\/]* | ?:[\\/]*)
9526 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9530 for as_dir in $PATH
9532 IFS=$as_save_IFS
9533 test -z "$as_dir" && as_dir=.
9534 for ac_exec_ext in '' $ac_executable_extensions; do
9535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9536 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9538 break 2
9540 done
9541 done
9542 IFS=$as_save_IFS
9545 esac
9547 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9548 if test -n "$aros_target_strip_ln"; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9550 $as_echo "$aros_target_strip_ln" >&6; }
9551 else
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9559 if test "$aros_target_strip_ln" = ""; then
9560 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9562 if test "$aros_target_cxx" != ""; then
9563 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9564 set dummy $aros_target_cxx; ac_word=$2
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9566 $as_echo_n "checking for $ac_word... " >&6; }
9567 if test "${ac_cv_path_aros_target_cxx+set}" = set; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 case $aros_target_cxx in
9571 [\\/]* | ?:[\\/]*)
9572 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
9575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9576 for as_dir in $PATH
9578 IFS=$as_save_IFS
9579 test -z "$as_dir" && as_dir=.
9580 for ac_exec_ext in '' $ac_executable_extensions; do
9581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9582 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
9583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9584 break 2
9586 done
9587 done
9588 IFS=$as_save_IFS
9591 esac
9593 aros_target_cxx=$ac_cv_path_aros_target_cxx
9594 if test -n "$aros_target_cxx"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
9596 $as_echo "$aros_target_cxx" >&6; }
9597 else
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9603 if test "$aros_target_cxx" = ""; then
9604 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
9607 else
9608 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
9609 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
9610 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
9611 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
9612 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
9613 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
9614 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
9615 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
9616 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
9618 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
9620 crosstools_target=tools-crosstools
9623 orig_target_cc=$aros_kernel_cc
9624 orig_target_ld=$aros_kernel_ld
9626 if test "$crosstools" != "yes"; then
9627 if test "$aros_target_cc" != ""; then
9628 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9629 set dummy $aros_target_cc; ac_word=$2
9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9631 $as_echo_n "checking for $ac_word... " >&6; }
9632 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 case $aros_target_cc in
9636 [\\/]* | ?:[\\/]*)
9637 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9641 for as_dir in $PATH
9643 IFS=$as_save_IFS
9644 test -z "$as_dir" && as_dir=.
9645 for ac_exec_ext in '' $ac_executable_extensions; do
9646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9647 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9649 break 2
9651 done
9652 done
9653 IFS=$as_save_IFS
9656 esac
9658 aros_target_cc=$ac_cv_path_aros_target_cc
9659 if test -n "$aros_target_cc"; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
9661 $as_echo "$aros_target_cc" >&6; }
9662 else
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9664 $as_echo "no" >&6; }
9668 if test "$aros_target_cc" = ""; then
9669 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
9671 orig_target_cc=$aros_target_cc
9673 if test "$aros_target_ld" != ""; then
9674 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9675 set dummy $aros_target_ld; ac_word=$2
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9677 $as_echo_n "checking for $ac_word... " >&6; }
9678 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
9679 $as_echo_n "(cached) " >&6
9680 else
9681 case $aros_target_ld in
9682 [\\/]* | ?:[\\/]*)
9683 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9687 for as_dir in $PATH
9689 IFS=$as_save_IFS
9690 test -z "$as_dir" && as_dir=.
9691 for ac_exec_ext in '' $ac_executable_extensions; do
9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9693 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9695 break 2
9697 done
9698 done
9699 IFS=$as_save_IFS
9702 esac
9704 aros_target_ld=$ac_cv_path_aros_target_ld
9705 if test -n "$aros_target_ld"; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
9707 $as_echo "$aros_target_ld" >&6; }
9708 else
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9710 $as_echo "no" >&6; }
9714 if test "$aros_target_ld" = ""; then
9715 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9717 orig_target_ld=$aros_target_ld
9719 else
9720 orig_target_cc=$aros_target_cc
9721 orig_target_ld=$aros_target_ld
9724 # Build crosstools if we have no C++ - temporary thing
9725 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
9726 crosstools_cxx_target=tools-crosstools
9729 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9730 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9731 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9732 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9733 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9734 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9735 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9737 # aros_cc_pre is a variable that is added to the front of the compiler name
9738 # in the generated aros-gcc shell script. We need this to enable the cache
9739 # to work across cleaned builds. Also, support DISTCC using the correct
9740 # environment variable.
9743 if test "x${DISTCC}" != "x" ; then
9744 if test "x${CCACHE}" != "x" ; then
9745 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9746 else
9747 aros_cc_pre="${DISTCC} "
9749 else
9750 if test "x${CCACHE}" != "x" ; then
9751 aros_cc_pre="${CCACHE} "
9755 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9757 aros_target_nostdinc_cflags=-nostdinc
9759 aros_target_nostartup_ldflags=-nostartfiles
9761 aros_target_nix_ldflags=-nix
9763 aros_target_detach_ldflags=-detach
9765 aros_target_nostdlib_ldflags=-nostdlib
9768 # Target tools
9769 if test "$crosstools" != "yes"; then
9770 if test "$GCC" = "yes"; then
9771 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9773 else
9774 # We do not know which gcc version we are going to build and what we need to know
9775 # here is different for different versions so this will be set later during the
9776 # build of crosstools.
9777 aros_target_cc_path=@aros_target_cc_path@
9779 aros_target_cc="${prefix}-gcc"
9780 aros_target_as="${prefix}-as"
9781 aros_target_ld="${prefix}-ld"
9782 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9783 aros_target_objcopy=${prefix}-objcopy
9784 aros_target_objdump=${prefix}-objdump
9785 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9786 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9787 aros_kernel_nm="${prefix}-nm"
9788 aros_target_strip=${prefix}-strip
9789 aros_kernel_ar="${prefix}-ar"
9791 # Find the system include path. We can suggest that an alternative is
9792 # used if we don't get it correct. The default is to use /usr/include.
9793 # Which is set in the aros_target_incl_def variable.
9795 # Check whether --enable-includes was given.
9796 if test "${enable_includes+set}" = set; then :
9797 enableval=$enable_includes; aros_target_incl=$enable_includes
9798 else
9799 aros_target_incl=$aros_target_incl_def
9803 if test "$aros_kernel_includes" = ""; then
9804 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9805 # FIXME: for cross-compiling this should point to another location
9806 aros_kernel_includes="-isystem $aros_target_incl"
9810 if test "$aros_kernel_includes" != "" ; then
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
9812 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
9813 if test "$aros_kernel_cc_includes" = "" ; then
9814 # Try to guess where the directory is.
9815 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
9816 if test -d $aros_kernel_cc_includes; then
9817 # Check if there is also an include-fixed directory and add it
9818 # to kernel compiler's include path as it may contain some of
9819 # the headers we need.
9820 if test -d "$aros_kernel_cc_includes"-fixed; then
9821 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
9823 else
9824 # The directory doesn't exist, we need to do some more work.
9825 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
9827 # These are the headers we're looking for.
9828 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9829 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9830 zutil.h"
9832 dirs=
9833 for h in $headers; do
9834 # Which other headers are needed by each of the above?
9835 deps=$(echo "#include <$h>" | \
9836 $aros_kernel_cc -E -M - 2>/dev/null | \
9837 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9839 # Copy all the needed headers to a directory beneath gendir.
9840 for d in $deps; do
9841 h=$(basename $d)
9842 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
9843 sed -n "s,^.*/include\(/.*\),\1,p")
9844 ! test -d $dir && mkdir -p $dir
9845 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9846 done
9847 done
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
9851 $as_echo "$aros_kernel_cc_includes" >&6; }
9852 # Adding -nostdinc to kernel includes as they are always used together.
9853 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
9856 if test "$crosstools" != "yes"; then
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9858 $as_echo_n "checking for the target compiler's include path... " >&6; }
9859 if test "$aros_target_cc_includes" = "" ; then
9860 #try to guess where the directory is
9861 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
9862 if ! test -d $aros_target_cc_includes; then
9863 #the directory doesn't exist, we need to do some more work
9864 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9866 #these are the headers we're looking for
9867 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9868 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9869 zutil.h"
9871 dirs=
9872 for h in $headers; do
9873 #which other headers each of the above headers needs?
9874 deps=$(echo "#include <$h>" | \
9875 $orig_target_cc -E -M - 2>/dev/null | \
9876 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9878 #copy all the needed headers to a directory beneath gendir
9879 for d in $deps; do
9880 h=$(basename $d)
9881 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9882 sed -n "s,^.*/include\(/.*\),\1,p")
9883 ! test -d $dir && mkdir -p $dir
9884 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9885 done
9886 done
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9890 $as_echo "$aros_target_cc_includes" >&6; }
9891 else
9892 # We do not know which gcc version we are going to build and what we need to know
9893 # here is different for different versions so this will be set later during the
9894 # build of crosstools.
9895 aros_target_cc_includes=@aros_target_cc_includes@
9899 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9900 # On GCC >= 4.0 -iquote should be used
9903 save_cc="$CC"
9904 save_cflags="$CFLAGS"
9905 CFLAGS="-iquote."
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9907 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9908 if test "x-$crosstools" != "x-yes"; then
9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910 /* end confdefs.h. */
9913 main ()
9917 return 0;
9919 _ACEOF
9920 if ac_fn_c_try_compile "$LINENO"; then :
9921 has_iquote="yes"
9922 else
9923 has_iquote="no"
9925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9926 else
9927 # we do know it is supported for the smallest version of gcc we are going to build
9928 # we assume it's also supported by later versions
9929 has_iquote=yes
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9932 $as_echo "$has_iquote" >&6; }
9933 if test "x-$has_iquote" = "x-yes" ; then
9934 host_cflags_iquote=-iquote
9935 host_cflags_iquote_end=
9936 else
9937 host_cflags_iquote=-I
9938 host_cflags_iquote_end=-I-
9940 kernel_cflags_iquote=$host_cflags_iquote
9941 kernel_cflags_iquote_end=$host_cflags_iquote_end
9942 if test "x-$cross_compiling" = "x-yes"; then
9943 CC="$aros_kernel_cc"
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9945 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9946 if test "x-$crosstools" != "x-yes"; then
9947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9948 /* end confdefs.h. */
9951 main ()
9955 return 0;
9957 _ACEOF
9958 if ac_fn_c_try_compile "$LINENO"; then :
9959 use_no_stack_protector="yes"
9960 else
9961 use_no_stack_protector="no"
9963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9964 else
9965 # we do know it is supported for the smallest version of gcc we are going to build
9966 # we assume it's also supported by later versions
9967 use_no_stack_protector=yes
9969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9970 $as_echo "$use_no_stack_protector" >&6; }
9971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9972 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9973 if test "x-$crosstools" != "x-yes"; then
9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9975 /* end confdefs.h. */
9978 main ()
9982 return 0;
9984 _ACEOF
9985 if ac_fn_c_try_compile "$LINENO"; then :
9986 has_iquote="yes"
9987 else
9988 has_iquote="no"
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9991 else
9992 # we do know it is supported for the smallest version of gcc we are going to build
9993 # we assume it's also supported by later versions
9994 has_iquote=yes
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9997 $as_echo "$has_iquote" >&6; }
9998 if test "x-$has_iquote" = "x-yes" ; then
9999 kernel_cflags_iquote=-iquote
10000 kernel_cflags_iquote_end=
10001 else
10002 kernel_cflags_iquote=-I
10003 kernel_cflags_iquote_end=-I-
10006 aros_cflags_iquote=$kernel_cflags_iquote
10007 aros_cflags_iquote_end=$kernel_cflags_iquote_end
10008 if test "$orig_target_cc" != "$aros_kernel_cc"; then
10009 CC="$orig_target_cc"
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10011 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10012 if test "x-$crosstools" != "x-yes"; then
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014 /* end confdefs.h. */
10017 main ()
10021 return 0;
10023 _ACEOF
10024 if ac_fn_c_try_compile "$LINENO"; then :
10025 has_iquote="yes"
10026 else
10027 has_iquote="no"
10029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10030 else
10031 # we do know it is supported for the smallest version of gcc we are going to build
10032 # we assume it's also supported by later versions
10033 has_iquote=yes
10035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10036 $as_echo "$has_iquote" >&6; }
10037 if test "x-$has_iquote" = "x-yes" ; then
10038 aros_cflags_iquote=-iquote
10039 aros_cflags_iquote_end=
10040 else
10041 aros_cflags_iquote=-I
10042 aros_cflags_iquote_end=-I-
10045 if test "x-$use_no_stack_protector" = "x-yes" ; then
10046 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
10049 #-----------------------------------------------------------------------------
10051 # Check if we can explicitly choose older version of symbol hashing
10053 CFLAGS="save_cflags -Wl,--hash-style=sysv"
10054 CC="$aros_kernel_cc"
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
10056 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
10057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10058 /* end confdefs.h. */
10061 main ()
10065 return 0;
10067 _ACEOF
10068 if ac_fn_c_try_link "$LINENO"; then :
10069 use_hash_style="yes"
10070 else
10071 use_hash_style="no"
10073 rm -f core conftest.err conftest.$ac_objext \
10074 conftest$ac_exeext conftest.$ac_ext
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
10076 $as_echo "$use_hash_style" >&6; }
10077 if test "x-$use_hash_style" = "x-yes" ; then
10078 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
10080 CC="$save_cc"
10081 CFLAGS="$save_cflags"
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
10092 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
10094 # Check whether --with-resolution was given.
10095 if test "${with_resolution+set}" = set; then :
10096 withval=$with_resolution; resolution=$withval
10097 else
10098 resolution=none
10101 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10102 if test "$resolution" = "yes" ; then
10103 resolution="none"
10105 if test "$resolution" = "no" ; then
10106 resolution="none"
10108 if test "$resolution" != "none" ; then
10109 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10110 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10111 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10114 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10115 aros_cv_default_wbwidth=$aros_default_wbwidth
10116 aros_cv_default_wbheight=$aros_default_wbheight
10117 aros_cv_default_wbdepth=$aros_default_wbdepth
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
10120 $as_echo_n "checking if serial debug is enabled... " >&6; }
10122 # Check whether --with-serial-debug was given.
10123 if test "${with_serial_debug+set}" = set; then :
10124 withval=$with_serial_debug; serial_debug=$withval
10125 else
10126 serial_debug=none
10129 if test "$aros_serial_debug" = 0 ; then
10130 serial_debug_forced=""
10131 if test "$serial_debug" = "yes" ; then
10132 serial_debug="2"
10134 if test "$serial_debug" = "no" ; then
10135 serial_debug="none"
10137 else
10138 serial_debug_forced="(forced)"
10139 serial_debug=$aros_serial_debug
10141 if test "$serial_debug" != "none" ; then
10142 aros_serial_debug=$serial_debug
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
10144 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
10145 else
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147 $as_echo "no" >&6; }
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
10151 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
10152 # Check whether --enable-palm_debug_hack was given.
10153 if test "${enable_palm_debug_hack+set}" = set; then :
10154 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10155 else
10156 palm_debug_hack="no"
10159 if test "$palm_debug_hack" = "yes" ; then
10160 aros_palm_debug_hack="1"
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
10163 $as_echo "$palm_debug_hack" >&6; }
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
10167 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10168 # Check whether --enable-nesting_supervisor was given.
10169 if test "${enable_nesting_supervisor+set}" = set; then :
10170 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10171 else
10172 nesting_supervisor="no"
10175 if test "$nesting_supervisor" = "yes" ; then
10176 aros_nesting_supervisor="1"
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
10179 $as_echo "$nesting_supervisor" >&6; }
10181 if test "$aros_enable_mmu" = "" ; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
10183 $as_echo_n "checking if MMU support is enabled... " >&6; }
10184 # Check whether --enable-mmu was given.
10185 if test "${enable_mmu+set}" = set; then :
10186 enableval=$enable_mmu; aros_enable_mmu=$enableval
10187 else
10188 aros_enable_mmu="yes"
10191 if test "$aros_enable_mmu" = "" ; then
10192 aros_enable_mmu="yes"
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
10195 $as_echo "$aros_enable_mmu" >&6; }
10197 if test "$aros_enable_mmu" = "no" ; then
10198 aros_enable_mmu="0"
10199 else
10200 aros_enable_mmu="1"
10204 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10206 if test "x-$need_dlopen" != "x-no" ; then
10207 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10208 if test "x$ac_cv_func_dlopen" = x""yes; then :
10209 have_dl="yes"
10210 else
10211 have_dl="no"
10214 if test "x-$have_dl" = "x-no" ; then
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10216 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10217 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10218 $as_echo_n "(cached) " >&6
10219 else
10220 ac_check_lib_save_LIBS=$LIBS
10221 LIBS="-ldl $LIBS"
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223 /* end confdefs.h. */
10225 /* Override any GCC internal prototype to avoid an error.
10226 Use char because int might match the return type of a GCC
10227 builtin and then its argument prototype would still apply. */
10228 #ifdef __cplusplus
10229 extern "C"
10230 #endif
10231 char dlopen ();
10233 main ()
10235 return dlopen ();
10237 return 0;
10239 _ACEOF
10240 if ac_fn_c_try_link "$LINENO"; then :
10241 ac_cv_lib_dl_dlopen=yes
10242 else
10243 ac_cv_lib_dl_dlopen=no
10245 rm -f core conftest.err conftest.$ac_objext \
10246 conftest$ac_exeext conftest.$ac_ext
10247 LIBS=$ac_check_lib_save_LIBS
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10250 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10251 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10252 have_dl="yes"
10253 aros_host_ldflags="$aros_host_ldflags -ldl"
10254 else
10255 have_dl="no"
10259 if test "x-$have_dl" = "x-no" ; then
10260 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
10265 # Check whether --enable-x11_hidd was given.
10266 if test "${enable_x11_hidd+set}" = set; then :
10267 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10268 else
10269 x11_hidd="$need_x11"
10272 case "x-$x11_hidd" in
10273 x-yes|x-no|x-auto) ;;
10274 *) x11_hidd="$need_x11" ;;
10275 esac
10277 ENABLE_X11=0
10279 if test "x-$x11_hidd" != "x-no" ; then
10281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10282 $as_echo_n "checking for X... " >&6; }
10285 # Check whether --with-x was given.
10286 if test "${with_x+set}" = set; then :
10287 withval=$with_x;
10290 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10291 if test "x$with_x" = xno; then
10292 # The user explicitly disabled X.
10293 have_x=disabled
10294 else
10295 case $x_includes,$x_libraries in #(
10296 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
10297 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10298 $as_echo_n "(cached) " >&6
10299 else
10300 # One or both of the vars are not set, and there is no cached value.
10301 ac_x_includes=no ac_x_libraries=no
10302 rm -f -r conftest.dir
10303 if mkdir conftest.dir; then
10304 cd conftest.dir
10305 cat >Imakefile <<'_ACEOF'
10306 incroot:
10307 @echo incroot='${INCROOT}'
10308 usrlibdir:
10309 @echo usrlibdir='${USRLIBDIR}'
10310 libdir:
10311 @echo libdir='${LIBDIR}'
10312 _ACEOF
10313 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10314 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10315 for ac_var in incroot usrlibdir libdir; do
10316 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10317 done
10318 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10319 for ac_extension in a so sl dylib la dll; do
10320 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10321 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10322 ac_im_usrlibdir=$ac_im_libdir; break
10324 done
10325 # Screen out bogus values from the imake configuration. They are
10326 # bogus both because they are the default anyway, and because
10327 # using them would break gcc on systems where it needs fixed includes.
10328 case $ac_im_incroot in
10329 /usr/include) ac_x_includes= ;;
10330 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10331 esac
10332 case $ac_im_usrlibdir in
10333 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10334 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10335 esac
10337 cd ..
10338 rm -f -r conftest.dir
10341 # Standard set of common directories for X headers.
10342 # Check X11 before X11Rn because it is often a symlink to the current release.
10343 ac_x_header_dirs='
10344 /usr/X11/include
10345 /usr/X11R7/include
10346 /usr/X11R6/include
10347 /usr/X11R5/include
10348 /usr/X11R4/include
10350 /usr/include/X11
10351 /usr/include/X11R7
10352 /usr/include/X11R6
10353 /usr/include/X11R5
10354 /usr/include/X11R4
10356 /usr/local/X11/include
10357 /usr/local/X11R7/include
10358 /usr/local/X11R6/include
10359 /usr/local/X11R5/include
10360 /usr/local/X11R4/include
10362 /usr/local/include/X11
10363 /usr/local/include/X11R7
10364 /usr/local/include/X11R6
10365 /usr/local/include/X11R5
10366 /usr/local/include/X11R4
10368 /usr/X386/include
10369 /usr/x386/include
10370 /usr/XFree86/include/X11
10372 /usr/include
10373 /usr/local/include
10374 /usr/unsupported/include
10375 /usr/athena/include
10376 /usr/local/x11r5/include
10377 /usr/lpp/Xamples/include
10379 /usr/openwin/include
10380 /usr/openwin/share/include'
10382 if test "$ac_x_includes" = no; then
10383 # Guess where to find include files, by looking for Xlib.h.
10384 # First, try using that file with no special directory specified.
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10387 #include <X11/Xlib.h>
10388 _ACEOF
10389 if ac_fn_c_try_cpp "$LINENO"; then :
10390 # We can compile using X headers with no special include directory.
10391 ac_x_includes=
10392 else
10393 for ac_dir in $ac_x_header_dirs; do
10394 if test -r "$ac_dir/X11/Xlib.h"; then
10395 ac_x_includes=$ac_dir
10396 break
10398 done
10400 rm -f conftest.err conftest.i conftest.$ac_ext
10401 fi # $ac_x_includes = no
10403 if test "$ac_x_libraries" = no; then
10404 # Check for the libraries.
10405 # See if we find them without any special options.
10406 # Don't add to $LIBS permanently.
10407 ac_save_LIBS=$LIBS
10408 LIBS="-lX11 $LIBS"
10409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10410 /* end confdefs.h. */
10411 #include <X11/Xlib.h>
10413 main ()
10415 XrmInitialize ()
10417 return 0;
10419 _ACEOF
10420 if ac_fn_c_try_link "$LINENO"; then :
10421 LIBS=$ac_save_LIBS
10422 # We can link X programs with no special library path.
10423 ac_x_libraries=
10424 else
10425 LIBS=$ac_save_LIBS
10426 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10428 # Don't even attempt the hair of trying to link an X program!
10429 for ac_extension in a so sl dylib la dll; do
10430 if test -r "$ac_dir/libX11.$ac_extension"; then
10431 ac_x_libraries=$ac_dir
10432 break 2
10434 done
10435 done
10437 rm -f core conftest.err conftest.$ac_objext \
10438 conftest$ac_exeext conftest.$ac_ext
10439 fi # $ac_x_libraries = no
10441 case $ac_x_includes,$ac_x_libraries in #(
10442 no,* | *,no | *\'*)
10443 # Didn't find X, or a directory has "'" in its name.
10444 ac_cv_have_x="have_x=no";; #(
10446 # Record where we found X for the cache.
10447 ac_cv_have_x="have_x=yes\
10448 ac_x_includes='$ac_x_includes'\
10449 ac_x_libraries='$ac_x_libraries'"
10450 esac
10452 ;; #(
10453 *) have_x=yes;;
10454 esac
10455 eval "$ac_cv_have_x"
10456 fi # $with_x != no
10458 if test "$have_x" != yes; then
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10460 $as_echo "$have_x" >&6; }
10461 no_x=yes
10462 else
10463 # If each of the values was on the command line, it overrides each guess.
10464 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10465 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10466 # Update the cache value to reflect the command line values.
10467 ac_cv_have_x="have_x=yes\
10468 ac_x_includes='$x_includes'\
10469 ac_x_libraries='$x_libraries'"
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10471 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10475 x_cflags=
10476 for path in $x_libraries
10478 x_cflags="$x_cflags -L$path"
10479 done
10481 for path in $x_includes
10483 x_cflags="$x_cflags -I$path"
10484 done
10486 if test "x-$no_x" = "x-yes" ; then
10488 if test "x-$x11_hidd" != "x-auto" ; then
10489 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10492 else
10493 x11_hidd_target=kernel-x11gfx-kobj
10494 ENABLE_X11=1
10496 # Check whether --enable-x11_shm was given.
10497 if test "${enable_x11_shm+set}" = set; then :
10498 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10499 else
10500 x11_hidd_shm="auto"
10503 case "x-$x11_hidd_shm" in
10504 x-yes|x-no|x-auto) ;;
10505 *) x11_hidd_shm="auto" ;;
10506 esac
10508 have_xshm=no
10510 if test "x-$x11_hidd_shm" != "x-no" ; then
10512 for ac_header in sys/ipc.h
10513 do :
10514 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10515 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
10516 cat >>confdefs.h <<_ACEOF
10517 #define HAVE_SYS_IPC_H 1
10518 _ACEOF
10522 done
10524 for ac_header in sys/shm.h
10525 do :
10526 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10527 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
10528 cat >>confdefs.h <<_ACEOF
10529 #define HAVE_SYS_SHM_H 1
10530 _ACEOF
10534 done
10537 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10539 save_cflags="$CFLAGS"
10540 CFLAGS="$CFLAGS $x_cflags"
10541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10542 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10543 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
10544 $as_echo_n "(cached) " >&6
10545 else
10546 ac_check_lib_save_LIBS=$LIBS
10547 LIBS="-lXext $LIBS"
10548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10549 /* end confdefs.h. */
10551 /* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10554 #ifdef __cplusplus
10555 extern "C"
10556 #endif
10557 char XShmQueryExtension ();
10559 main ()
10561 return XShmQueryExtension ();
10563 return 0;
10565 _ACEOF
10566 if ac_fn_c_try_link "$LINENO"; then :
10567 ac_cv_lib_Xext_XShmQueryExtension=yes
10568 else
10569 ac_cv_lib_Xext_XShmQueryExtension=no
10571 rm -f core conftest.err conftest.$ac_objext \
10572 conftest$ac_exeext conftest.$ac_ext
10573 LIBS=$ac_check_lib_save_LIBS
10575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10576 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10577 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
10578 have_xshm=yes
10581 CFLAGS="$save_cflags"
10585 if test "x-$have_xshm" = "x-yes" ; then
10586 DO_XSHM_SUPPORT="1"
10587 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10588 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10589 else
10590 DO_XSHM_SUPPORT="0"
10594 # Check whether --enable-x11_vidmode was given.
10595 if test "${enable_x11_vidmode+set}" = set; then :
10596 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10597 else
10598 x11_hidd_vidmode="auto"
10601 case "x-$x11_hidd_vidmode" in
10602 x-yes|x-no|x-auto) ;;
10603 *) x11_hidd_vidmode="auto" ;;
10604 esac
10606 have_vidmode=no
10608 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10610 save_cflags="$CFLAGS"
10611 CFLAGS="$CFLAGS $x_cflags"
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10613 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10614 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
10615 $as_echo_n "(cached) " >&6
10616 else
10617 ac_check_lib_save_LIBS=$LIBS
10618 LIBS="-lXxf86vm $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 XF86VidModeQueryExtension ();
10630 main ()
10632 return XF86VidModeQueryExtension ();
10634 return 0;
10636 _ACEOF
10637 if ac_fn_c_try_link "$LINENO"; then :
10638 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10639 else
10640 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=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_Xxf86vm_XF86VidModeQueryExtension" >&5
10647 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10648 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
10649 have_vidmode=yes
10652 CFLAGS="$save_cflags"
10655 if test "x-$have_vidmode" = "x-yes" ; then
10656 DO_VIDMODE_SUPPORT="1"
10657 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10658 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10659 else
10660 DO_VIDMODE_SUPPORT="0"
10664 aros_host_x11_includes=$x_includes
10665 aros_host_x11_libdirs=$x_libraries
10669 # Check whether --enable-sdl_hidd was given.
10670 if test "${enable_sdl_hidd+set}" = set; then :
10671 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10672 else
10673 sdl_hidd="auto"
10676 case "x-$sdl_hidd" in
10677 x-yes|x-no|x-auto) ;;
10678 *) sdl_hidd="auto" ;;
10679 esac
10681 if test "x-$sdl_hidd" != "x-no" ; then
10684 # Check whether --with-sdl-prefix was given.
10685 if test "${with_sdl_prefix+set}" = set; then :
10686 withval=$with_sdl_prefix; sdl_prefix="$withval"
10687 else
10688 sdl_prefix=""
10692 # Check whether --with-sdl-exec-prefix was given.
10693 if test "${with_sdl_exec_prefix+set}" = set; then :
10694 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10695 else
10696 sdl_exec_prefix=""
10699 # Check whether --enable-sdltest was given.
10700 if test "${enable_sdltest+set}" = set; then :
10701 enableval=$enable_sdltest;
10702 else
10703 enable_sdltest=yes
10707 if test x$sdl_exec_prefix != x ; then
10708 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10709 if test x${SDL_CONFIG+set} != xset ; then
10710 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10713 if test x$sdl_prefix != x ; then
10714 sdl_args="$sdl_args --prefix=$sdl_prefix"
10715 if test x${SDL_CONFIG+set} != xset ; then
10716 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10720 if test "x$prefix" != xNONE; then
10721 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10723 # Extract the first word of "sdl-config", so it can be a program name with args.
10724 set dummy sdl-config; ac_word=$2
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10726 $as_echo_n "checking for $ac_word... " >&6; }
10727 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
10728 $as_echo_n "(cached) " >&6
10729 else
10730 case $SDL_CONFIG in
10731 [\\/]* | ?:[\\/]*)
10732 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10736 for as_dir in $PATH
10738 IFS=$as_save_IFS
10739 test -z "$as_dir" && as_dir=.
10740 for ac_exec_ext in '' $ac_executable_extensions; do
10741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10742 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10744 break 2
10746 done
10747 done
10748 IFS=$as_save_IFS
10750 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10752 esac
10754 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10755 if test -n "$SDL_CONFIG"; then
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10757 $as_echo "$SDL_CONFIG" >&6; }
10758 else
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10760 $as_echo "no" >&6; }
10764 min_sdl_version=1.2.10
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10766 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10767 no_sdl=""
10768 if test "$SDL_CONFIG" = "no" ; then
10769 no_sdl=yes
10770 else
10771 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10772 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10774 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10775 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10776 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10777 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10778 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10779 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10780 if test "x$enable_sdltest" = "xyes" ; then
10781 ac_save_CFLAGS="$CFLAGS"
10782 ac_save_CXXFLAGS="$CXXFLAGS"
10783 ac_save_LIBS="$LIBS"
10784 CFLAGS="$CFLAGS $SDL_CFLAGS"
10785 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10786 LIBS="$LIBS $SDL_LIBS"
10787 rm -f conf.sdltest
10788 if test "$cross_compiling" = yes; then :
10789 echo $ac_n "cross compiling; assumed OK... $ac_c"
10790 else
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10794 #include <stdio.h>
10795 #include <stdlib.h>
10796 #include <string.h>
10797 #include "SDL.h"
10799 char*
10800 my_strdup (char *str)
10802 char *new_str;
10804 if (str)
10806 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10807 strcpy (new_str, str);
10809 else
10810 new_str = NULL;
10812 return new_str;
10815 int main (int argc, char *argv[])
10817 int major, minor, micro;
10818 char *tmp_version;
10820 /* This hangs on some systems (?)
10821 system ("touch conf.sdltest");
10823 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10825 /* HP/UX 9 (%@#!) writes to sscanf strings */
10826 tmp_version = my_strdup("$min_sdl_version");
10827 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10828 printf("%s, bad version string\n", "$min_sdl_version");
10829 exit(1);
10832 if (($sdl_major_version > major) ||
10833 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10834 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10836 return 0;
10838 else
10840 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10841 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10842 printf("*** best to upgrade to the required version.\n");
10843 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10844 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10845 printf("*** config.cache before re-running configure\n");
10846 return 1;
10851 _ACEOF
10852 if ac_fn_c_try_run "$LINENO"; then :
10854 else
10855 no_sdl=yes
10857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10858 conftest.$ac_objext conftest.beam conftest.$ac_ext
10861 CFLAGS="$ac_save_CFLAGS"
10862 CXXFLAGS="$ac_save_CXXFLAGS"
10863 LIBS="$ac_save_LIBS"
10866 if test "x$no_sdl" = x ; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10868 $as_echo "yes" >&6; }
10869 have_sdl="yes"
10870 else
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10872 $as_echo "no" >&6; }
10873 if test "$SDL_CONFIG" = "no" ; then
10874 echo "*** The sdl-config script installed by SDL could not be found"
10875 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10876 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10877 echo "*** full path to sdl-config."
10878 else
10879 if test -f conf.sdltest ; then
10881 else
10882 echo "*** Could not run SDL test program, checking why..."
10883 CFLAGS="$CFLAGS $SDL_CFLAGS"
10884 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10885 LIBS="$LIBS $SDL_LIBS"
10886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10887 /* end confdefs.h. */
10889 #include <stdio.h>
10890 #include "SDL.h"
10892 int main(int argc, char *argv[])
10893 { return 0; }
10894 #undef main
10895 #define main K_and_R_C_main
10898 main ()
10900 return 0;
10902 return 0;
10904 _ACEOF
10905 if ac_fn_c_try_link "$LINENO"; then :
10906 echo "*** The test program compiled, but did not run. This usually means"
10907 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10908 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10909 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10910 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10911 echo "*** is required on your system"
10912 echo "***"
10913 echo "*** If you have an old version installed, it is best to remove it, although"
10914 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10915 else
10916 echo "*** The test program failed to compile or link. See the file config.log for the"
10917 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10918 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10919 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10921 rm -f core conftest.err conftest.$ac_objext \
10922 conftest$ac_exeext conftest.$ac_ext
10923 CFLAGS="$ac_save_CFLAGS"
10924 CXXFLAGS="$ac_save_CXXFLAGS"
10925 LIBS="$ac_save_LIBS"
10928 SDL_CFLAGS=""
10929 SDL_LIBS=""
10930 have_sdl="no"
10934 rm -f conf.sdltest
10937 if test "x-$have_sdl" != "x-yes" ; then
10939 if test "x-$sdl_hidd" != "x-auto" ; then
10940 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10943 else
10944 sdl_hidd_target=kernel-hidd-sdl
10945 aros_host_sdl_cflags=SDL_CFLAGS
10946 aros_host_sdl_libs=SDL_LIBS
10950 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10951 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
10956 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
10957 oss_library_target=workbench-libs-oss-unix
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10963 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10964 # Check whether --enable-dbus was given.
10965 if test "${enable_dbus+set}" = set; then :
10966 enableval=$enable_dbus; dbus="yes"
10967 else
10968 dbus="no"
10971 if test "$dbus" = "yes" ; then
10972 ENABLE_DBUS=1
10973 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10974 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10975 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10976 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10977 else
10978 ENABLE_DBUS=0
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10981 $as_echo "$dbus" >&6; }
10985 # Generic
10996 # Host related
11020 # Target Related
11076 # Graphics Related
11093 # Native version related
11096 # Palm native version related
11099 # Unix/Hosted version related
11102 # MMU related
11105 # Apple iOS related
11110 # Android related
11114 # DBUS related
11121 #X11 related
11124 # Debug related
11130 # Collect-aros stuff: "-ius" to ignore undefined symbols
11133 # C compiler related
11136 case "$aros_flavour" in
11137 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11138 aros_flavour="emulation" ;;
11139 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11140 aros_flavour="emulation" ;;
11141 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11142 aros_flavour="standalone";;
11143 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11144 aros_flavour="standalone";;
11145 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11146 aros_flavour="native" ;;
11147 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11148 aros_flavour="native" ;;
11149 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11150 aros_flavour="linklib" ;;
11151 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11152 aros_flavour="palmnative" ;;
11153 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11154 aros_flavour="mac68knative" ;;
11155 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11156 aros_flavour="ppcnative" ;;
11157 esac
11159 if test ! -d ${aros_inc_dir} ; then
11160 ${MKDIR} ${aros_inc_dir}
11162 if test ! -d ${aros_geninc_dir} ; then
11163 ${MKDIR} ${aros_geninc_dir}
11165 if test ! -d ${aros_hostcfg_dir} ; then
11166 ${MKDIR} ${aros_hostcfg_dir}
11168 if test ! -d ${aros_targetcfg_dir} ; then
11169 ${MKDIR} ${aros_targetcfg_dir}
11171 if test ! -d ${aros_tools_dir} ; then
11172 ${MKDIR} ${aros_tools_dir}
11174 if test ! -d ${aros_scripts_dir} ; then
11175 ${MKDIR} ${aros_scripts_dir}
11178 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11181 ac_config_commands="$ac_config_commands compiler_executable"
11183 ac_config_commands="$ac_config_commands genmf_executable"
11186 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"
11189 cat >confcache <<\_ACEOF
11190 # This file is a shell script that caches the results of configure
11191 # tests run on this system so they can be shared between configure
11192 # scripts and configure runs, see configure's option --config-cache.
11193 # It is not useful on other systems. If it contains results you don't
11194 # want to keep, you may remove or edit it.
11196 # config.status only pays attention to the cache file if you give it
11197 # the --recheck option to rerun configure.
11199 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11200 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11201 # following values.
11203 _ACEOF
11205 # The following way of writing the cache mishandles newlines in values,
11206 # but we know of no workaround that is simple, portable, and efficient.
11207 # So, we kill variables containing newlines.
11208 # Ultrix sh set writes to stderr and can't be redirected directly,
11209 # and sets the high bit in the cache file unless we assign to the vars.
11211 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11212 eval ac_val=\$$ac_var
11213 case $ac_val in #(
11214 *${as_nl}*)
11215 case $ac_var in #(
11216 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11217 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11218 esac
11219 case $ac_var in #(
11220 _ | IFS | as_nl) ;; #(
11221 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11222 *) { eval $ac_var=; unset $ac_var;} ;;
11223 esac ;;
11224 esac
11225 done
11227 (set) 2>&1 |
11228 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11229 *${as_nl}ac_space=\ *)
11230 # `set' does not quote correctly, so add quotes: double-quote
11231 # substitution turns \\\\ into \\, and sed turns \\ into \.
11232 sed -n \
11233 "s/'/'\\\\''/g;
11234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11235 ;; #(
11237 # `set' quotes correctly as required by POSIX, so do not add quotes.
11238 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11240 esac |
11241 sort
11243 sed '
11244 /^ac_cv_env_/b end
11245 t clear
11246 :clear
11247 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11248 t end
11249 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11250 :end' >>confcache
11251 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11252 if test -w "$cache_file"; then
11253 test "x$cache_file" != "x/dev/null" &&
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11255 $as_echo "$as_me: updating cache $cache_file" >&6;}
11256 cat confcache >$cache_file
11257 else
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11259 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11262 rm -f confcache
11264 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11265 # Let make expand exec_prefix.
11266 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11268 DEFS=-DHAVE_CONFIG_H
11270 ac_libobjs=
11271 ac_ltlibobjs=
11273 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11274 # 1. Remove the extension, and $U if already installed.
11275 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11276 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11277 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11278 # will be set to the directory where LIBOBJS objects are built.
11279 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11280 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11281 done
11282 LIBOBJS=$ac_libobjs
11284 LTLIBOBJS=$ac_ltlibobjs
11288 : ${CONFIG_STATUS=./config.status}
11289 ac_write_fail=0
11290 ac_clean_files_save=$ac_clean_files
11291 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11293 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11294 as_write_fail=0
11295 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11296 #! $SHELL
11297 # Generated by $as_me.
11298 # Run this file to recreate the current configuration.
11299 # Compiler output produced by configure, useful for debugging
11300 # configure, is in config.log if it exists.
11302 debug=false
11303 ac_cs_recheck=false
11304 ac_cs_silent=false
11306 SHELL=\${CONFIG_SHELL-$SHELL}
11307 export SHELL
11308 _ASEOF
11309 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11310 ## -------------------- ##
11311 ## M4sh Initialization. ##
11312 ## -------------------- ##
11314 # Be more Bourne compatible
11315 DUALCASE=1; export DUALCASE # for MKS sh
11316 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11317 emulate sh
11318 NULLCMD=:
11319 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11320 # is contrary to our usage. Disable this feature.
11321 alias -g '${1+"$@"}'='"$@"'
11322 setopt NO_GLOB_SUBST
11323 else
11324 case `(set -o) 2>/dev/null` in #(
11325 *posix*) :
11326 set -o posix ;; #(
11327 *) :
11329 esac
11333 as_nl='
11335 export as_nl
11336 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11337 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11338 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11339 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11340 # Prefer a ksh shell builtin over an external printf program on Solaris,
11341 # but without wasting forks for bash or zsh.
11342 if test -z "$BASH_VERSION$ZSH_VERSION" \
11343 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11344 as_echo='print -r --'
11345 as_echo_n='print -rn --'
11346 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11347 as_echo='printf %s\n'
11348 as_echo_n='printf %s'
11349 else
11350 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11351 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11352 as_echo_n='/usr/ucb/echo -n'
11353 else
11354 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11355 as_echo_n_body='eval
11356 arg=$1;
11357 case $arg in #(
11358 *"$as_nl"*)
11359 expr "X$arg" : "X\\(.*\\)$as_nl";
11360 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11361 esac;
11362 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11364 export as_echo_n_body
11365 as_echo_n='sh -c $as_echo_n_body as_echo'
11367 export as_echo_body
11368 as_echo='sh -c $as_echo_body as_echo'
11371 # The user is always right.
11372 if test "${PATH_SEPARATOR+set}" != set; then
11373 PATH_SEPARATOR=:
11374 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11375 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11376 PATH_SEPARATOR=';'
11381 # IFS
11382 # We need space, tab and new line, in precisely that order. Quoting is
11383 # there to prevent editors from complaining about space-tab.
11384 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11385 # splitting by setting IFS to empty value.)
11386 IFS=" "" $as_nl"
11388 # Find who we are. Look in the path if we contain no directory separator.
11389 case $0 in #((
11390 *[\\/]* ) as_myself=$0 ;;
11391 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11394 IFS=$as_save_IFS
11395 test -z "$as_dir" && as_dir=.
11396 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11397 done
11398 IFS=$as_save_IFS
11401 esac
11402 # We did not find ourselves, most probably we were run as `sh COMMAND'
11403 # in which case we are not to be found in the path.
11404 if test "x$as_myself" = x; then
11405 as_myself=$0
11407 if test ! -f "$as_myself"; then
11408 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11409 exit 1
11412 # Unset variables that we do not need and which cause bugs (e.g. in
11413 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11414 # suppresses any "Segmentation fault" message there. '((' could
11415 # trigger a bug in pdksh 5.2.14.
11416 for as_var in BASH_ENV ENV MAIL MAILPATH
11417 do eval test x\${$as_var+set} = xset \
11418 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11419 done
11420 PS1='$ '
11421 PS2='> '
11422 PS4='+ '
11424 # NLS nuisances.
11425 LC_ALL=C
11426 export LC_ALL
11427 LANGUAGE=C
11428 export LANGUAGE
11430 # CDPATH.
11431 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11434 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11435 # ----------------------------------------
11436 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11437 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11438 # script with STATUS, using 1 if that was 0.
11439 as_fn_error ()
11441 as_status=$1; test $as_status -eq 0 && as_status=1
11442 if test "$4"; then
11443 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11444 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11446 $as_echo "$as_me: error: $2" >&2
11447 as_fn_exit $as_status
11448 } # as_fn_error
11451 # as_fn_set_status STATUS
11452 # -----------------------
11453 # Set $? to STATUS, without forking.
11454 as_fn_set_status ()
11456 return $1
11457 } # as_fn_set_status
11459 # as_fn_exit STATUS
11460 # -----------------
11461 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11462 as_fn_exit ()
11464 set +e
11465 as_fn_set_status $1
11466 exit $1
11467 } # as_fn_exit
11469 # as_fn_unset VAR
11470 # ---------------
11471 # Portably unset VAR.
11472 as_fn_unset ()
11474 { eval $1=; unset $1;}
11476 as_unset=as_fn_unset
11477 # as_fn_append VAR VALUE
11478 # ----------------------
11479 # Append the text in VALUE to the end of the definition contained in VAR. Take
11480 # advantage of any shell optimizations that allow amortized linear growth over
11481 # repeated appends, instead of the typical quadratic growth present in naive
11482 # implementations.
11483 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11484 eval 'as_fn_append ()
11486 eval $1+=\$2
11488 else
11489 as_fn_append ()
11491 eval $1=\$$1\$2
11493 fi # as_fn_append
11495 # as_fn_arith ARG...
11496 # ------------------
11497 # Perform arithmetic evaluation on the ARGs, and store the result in the
11498 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11499 # must be portable across $(()) and expr.
11500 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11501 eval 'as_fn_arith ()
11503 as_val=$(( $* ))
11505 else
11506 as_fn_arith ()
11508 as_val=`expr "$@" || test $? -eq 1`
11510 fi # as_fn_arith
11513 if expr a : '\(a\)' >/dev/null 2>&1 &&
11514 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11515 as_expr=expr
11516 else
11517 as_expr=false
11520 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11521 as_basename=basename
11522 else
11523 as_basename=false
11526 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11527 as_dirname=dirname
11528 else
11529 as_dirname=false
11532 as_me=`$as_basename -- "$0" ||
11533 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11534 X"$0" : 'X\(//\)$' \| \
11535 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11536 $as_echo X/"$0" |
11537 sed '/^.*\/\([^/][^/]*\)\/*$/{
11538 s//\1/
11541 /^X\/\(\/\/\)$/{
11542 s//\1/
11545 /^X\/\(\/\).*/{
11546 s//\1/
11549 s/.*/./; q'`
11551 # Avoid depending upon Character Ranges.
11552 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11553 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11554 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11555 as_cr_digits='0123456789'
11556 as_cr_alnum=$as_cr_Letters$as_cr_digits
11558 ECHO_C= ECHO_N= ECHO_T=
11559 case `echo -n x` in #(((((
11560 -n*)
11561 case `echo 'xy\c'` in
11562 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11563 xy) ECHO_C='\c';;
11564 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11565 ECHO_T=' ';;
11566 esac;;
11568 ECHO_N='-n';;
11569 esac
11571 rm -f conf$$ conf$$.exe conf$$.file
11572 if test -d conf$$.dir; then
11573 rm -f conf$$.dir/conf$$.file
11574 else
11575 rm -f conf$$.dir
11576 mkdir conf$$.dir 2>/dev/null
11578 if (echo >conf$$.file) 2>/dev/null; then
11579 if ln -s conf$$.file conf$$ 2>/dev/null; then
11580 as_ln_s='ln -s'
11581 # ... but there are two gotchas:
11582 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11583 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11584 # In both cases, we have to default to `cp -p'.
11585 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11586 as_ln_s='cp -p'
11587 elif ln conf$$.file conf$$ 2>/dev/null; then
11588 as_ln_s=ln
11589 else
11590 as_ln_s='cp -p'
11592 else
11593 as_ln_s='cp -p'
11595 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11596 rmdir conf$$.dir 2>/dev/null
11599 # as_fn_mkdir_p
11600 # -------------
11601 # Create "$as_dir" as a directory, including parents if necessary.
11602 as_fn_mkdir_p ()
11605 case $as_dir in #(
11606 -*) as_dir=./$as_dir;;
11607 esac
11608 test -d "$as_dir" || eval $as_mkdir_p || {
11609 as_dirs=
11610 while :; do
11611 case $as_dir in #(
11612 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11613 *) as_qdir=$as_dir;;
11614 esac
11615 as_dirs="'$as_qdir' $as_dirs"
11616 as_dir=`$as_dirname -- "$as_dir" ||
11617 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11618 X"$as_dir" : 'X\(//\)[^/]' \| \
11619 X"$as_dir" : 'X\(//\)$' \| \
11620 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11621 $as_echo X"$as_dir" |
11622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11623 s//\1/
11626 /^X\(\/\/\)[^/].*/{
11627 s//\1/
11630 /^X\(\/\/\)$/{
11631 s//\1/
11634 /^X\(\/\).*/{
11635 s//\1/
11638 s/.*/./; q'`
11639 test -d "$as_dir" && break
11640 done
11641 test -z "$as_dirs" || eval "mkdir $as_dirs"
11642 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11645 } # as_fn_mkdir_p
11646 if mkdir -p . 2>/dev/null; then
11647 as_mkdir_p='mkdir -p "$as_dir"'
11648 else
11649 test -d ./-p && rmdir ./-p
11650 as_mkdir_p=false
11653 if test -x / >/dev/null 2>&1; then
11654 as_test_x='test -x'
11655 else
11656 if ls -dL / >/dev/null 2>&1; then
11657 as_ls_L_option=L
11658 else
11659 as_ls_L_option=
11661 as_test_x='
11662 eval sh -c '\''
11663 if test -d "$1"; then
11664 test -d "$1/.";
11665 else
11666 case $1 in #(
11667 -*)set "./$1";;
11668 esac;
11669 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11670 ???[sx]*):;;*)false;;esac;fi
11671 '\'' sh
11674 as_executable_p=$as_test_x
11676 # Sed expression to map a string onto a valid CPP name.
11677 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11679 # Sed expression to map a string onto a valid variable name.
11680 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11683 exec 6>&1
11684 ## ----------------------------------- ##
11685 ## Main body of $CONFIG_STATUS script. ##
11686 ## ----------------------------------- ##
11687 _ASEOF
11688 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11691 # Save the log message, to keep $0 and so on meaningful, and to
11692 # report actual input values of CONFIG_FILES etc. instead of their
11693 # values after options handling.
11694 ac_log="
11695 This file was extended by $as_me, which was
11696 generated by GNU Autoconf 2.67. Invocation command line was
11698 CONFIG_FILES = $CONFIG_FILES
11699 CONFIG_HEADERS = $CONFIG_HEADERS
11700 CONFIG_LINKS = $CONFIG_LINKS
11701 CONFIG_COMMANDS = $CONFIG_COMMANDS
11702 $ $0 $@
11704 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11707 _ACEOF
11709 case $ac_config_files in *"
11710 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11711 esac
11713 case $ac_config_headers in *"
11714 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11715 esac
11718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11719 # Files that config.status was made for.
11720 config_files="$ac_config_files"
11721 config_headers="$ac_config_headers"
11722 config_commands="$ac_config_commands"
11724 _ACEOF
11726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11727 ac_cs_usage="\
11728 \`$as_me' instantiates files and other configuration actions
11729 from templates according to the current configuration. Unless the files
11730 and actions are specified as TAGs, all are instantiated by default.
11732 Usage: $0 [OPTION]... [TAG]...
11734 -h, --help print this help, then exit
11735 -V, --version print version number and configuration settings, then exit
11736 --config print configuration, then exit
11737 -q, --quiet, --silent
11738 do not print progress messages
11739 -d, --debug don't remove temporary files
11740 --recheck update $as_me by reconfiguring in the same conditions
11741 --file=FILE[:TEMPLATE]
11742 instantiate the configuration file FILE
11743 --header=FILE[:TEMPLATE]
11744 instantiate the configuration header FILE
11746 Configuration files:
11747 $config_files
11749 Configuration headers:
11750 $config_headers
11752 Configuration commands:
11753 $config_commands
11755 Report bugs to the package provider."
11757 _ACEOF
11758 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11759 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11760 ac_cs_version="\\
11761 config.status
11762 configured by $0, generated by GNU Autoconf 2.67,
11763 with options \\"\$ac_cs_config\\"
11765 Copyright (C) 2010 Free Software Foundation, Inc.
11766 This config.status script is free software; the Free Software Foundation
11767 gives unlimited permission to copy, distribute and modify it."
11769 ac_pwd='$ac_pwd'
11770 srcdir='$srcdir'
11771 test -n "\$AWK" || AWK=awk
11772 _ACEOF
11774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11775 # The default lists apply if the user does not specify any file.
11776 ac_need_defaults=:
11777 while test $# != 0
11779 case $1 in
11780 --*=?*)
11781 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11782 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11783 ac_shift=:
11785 --*=)
11786 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11787 ac_optarg=
11788 ac_shift=:
11791 ac_option=$1
11792 ac_optarg=$2
11793 ac_shift=shift
11795 esac
11797 case $ac_option in
11798 # Handling of the options.
11799 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11800 ac_cs_recheck=: ;;
11801 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11802 $as_echo "$ac_cs_version"; exit ;;
11803 --config | --confi | --conf | --con | --co | --c )
11804 $as_echo "$ac_cs_config"; exit ;;
11805 --debug | --debu | --deb | --de | --d | -d )
11806 debug=: ;;
11807 --file | --fil | --fi | --f )
11808 $ac_shift
11809 case $ac_optarg in
11810 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11811 '') as_fn_error $? "missing file argument" ;;
11812 esac
11813 as_fn_append CONFIG_FILES " '$ac_optarg'"
11814 ac_need_defaults=false;;
11815 --header | --heade | --head | --hea )
11816 $ac_shift
11817 case $ac_optarg in
11818 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11819 esac
11820 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11821 ac_need_defaults=false;;
11822 --he | --h)
11823 # Conflict between --help and --header
11824 as_fn_error $? "ambiguous option: \`$1'
11825 Try \`$0 --help' for more information.";;
11826 --help | --hel | -h )
11827 $as_echo "$ac_cs_usage"; exit ;;
11828 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11829 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11830 ac_cs_silent=: ;;
11832 # This is an error.
11833 -*) as_fn_error $? "unrecognized option: \`$1'
11834 Try \`$0 --help' for more information." ;;
11836 *) as_fn_append ac_config_targets " $1"
11837 ac_need_defaults=false ;;
11839 esac
11840 shift
11841 done
11843 ac_configure_extra_args=
11845 if $ac_cs_silent; then
11846 exec 6>/dev/null
11847 ac_configure_extra_args="$ac_configure_extra_args --silent"
11850 _ACEOF
11851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11852 if \$ac_cs_recheck; then
11853 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11854 shift
11855 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11856 CONFIG_SHELL='$SHELL'
11857 export CONFIG_SHELL
11858 exec "\$@"
11861 _ACEOF
11862 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11863 exec 5>>config.log
11865 echo
11866 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11867 ## Running $as_me. ##
11868 _ASBOX
11869 $as_echo "$ac_log"
11870 } >&5
11872 _ACEOF
11873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11875 # INIT-COMMANDS
11878 aros_host_exe_suffix=${aros_host_exe_suffix}
11879 aros_tools_dir=${aros_tools_dir}
11880 aros_target_cpu=${aros_target_cpu}
11881 aros_target_arch=${aros_target_arch}
11882 aros_target_suffix=${aros_target_suffix}
11883 aros_target_nm_ln=${aros_target_nm_ln}
11884 aros_target_as_ln=${aros_target_as_ln}
11885 aros_target_ar_ln=${aros_target_ar_ln}
11886 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11887 aros_target_objdump_ln=${aros_target_objdump_ln}
11888 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11889 aros_target_strip_ln=${aros_target_strip_ln}
11892 aros_tools_dir=${aros_tools_dir}
11895 _ACEOF
11897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11899 # Handling of arguments.
11900 for ac_config_target in $ac_config_targets
11902 case $ac_config_target in
11903 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11904 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11905 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11906 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11907 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11908 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11909 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11910 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11911 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11912 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11913 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11914 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11915 "${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" ;;
11916 "${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" ;;
11917 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11918 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11919 "${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" ;;
11921 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
11922 esac
11923 done
11926 # If the user did not use the arguments to specify the items to instantiate,
11927 # then the envvar interface is used. Set only those that are not.
11928 # We use the long form for the default assignment because of an extremely
11929 # bizarre bug on SunOS 4.1.3.
11930 if $ac_need_defaults; then
11931 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11932 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11933 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11936 # Have a temporary directory for convenience. Make it in the build tree
11937 # simply because there is no reason against having it here, and in addition,
11938 # creating and moving files from /tmp can sometimes cause problems.
11939 # Hook for its removal unless debugging.
11940 # Note that there is a small window in which the directory will not be cleaned:
11941 # after its creation but before its name has been assigned to `$tmp'.
11942 $debug ||
11944 tmp=
11945 trap 'exit_status=$?
11946 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11948 trap 'as_fn_exit 1' 1 2 13 15
11950 # Create a (secure) tmp directory for tmp files.
11953 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11954 test -n "$tmp" && test -d "$tmp"
11955 } ||
11957 tmp=./conf$$-$RANDOM
11958 (umask 077 && mkdir "$tmp")
11959 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11961 # Set up the scripts for CONFIG_FILES section.
11962 # No need to generate them if there are no CONFIG_FILES.
11963 # This happens for instance with `./config.status config.h'.
11964 if test -n "$CONFIG_FILES"; then
11967 ac_cr=`echo X | tr X '\015'`
11968 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11969 # But we know of no other shell where ac_cr would be empty at this
11970 # point, so we can use a bashism as a fallback.
11971 if test "x$ac_cr" = x; then
11972 eval ac_cr=\$\'\\r\'
11974 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11975 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11976 ac_cs_awk_cr='\\r'
11977 else
11978 ac_cs_awk_cr=$ac_cr
11981 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11982 _ACEOF
11986 echo "cat >conf$$subs.awk <<_ACEOF" &&
11987 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11988 echo "_ACEOF"
11989 } >conf$$subs.sh ||
11990 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11991 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11992 ac_delim='%!_!# '
11993 for ac_last_try in false false false false false :; do
11994 . ./conf$$subs.sh ||
11995 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11997 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11998 if test $ac_delim_n = $ac_delim_num; then
11999 break
12000 elif $ac_last_try; then
12001 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12002 else
12003 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12005 done
12006 rm -f conf$$subs.sh
12008 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12009 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12010 _ACEOF
12011 sed -n '
12013 s/^/S["/; s/!.*/"]=/
12016 s/^[^!]*!//
12017 :repl
12018 t repl
12019 s/'"$ac_delim"'$//
12020 t delim
12023 s/\(.\{148\}\)..*/\1/
12024 t more1
12025 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12028 b repl
12029 :more1
12030 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12033 s/.\{148\}//
12034 t nl
12035 :delim
12037 s/\(.\{148\}\)..*/\1/
12038 t more2
12039 s/["\\]/\\&/g; s/^/"/; s/$/"/
12042 :more2
12043 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12046 s/.\{148\}//
12047 t delim
12048 ' <conf$$subs.awk | sed '
12049 /^[^""]/{
12051 s/\n//
12053 ' >>$CONFIG_STATUS || ac_write_fail=1
12054 rm -f conf$$subs.awk
12055 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12056 _ACAWK
12057 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12058 for (key in S) S_is_set[key] = 1
12059 FS = "\a"
12063 line = $ 0
12064 nfields = split(line, field, "@")
12065 substed = 0
12066 len = length(field[1])
12067 for (i = 2; i < nfields; i++) {
12068 key = field[i]
12069 keylen = length(key)
12070 if (S_is_set[key]) {
12071 value = S[key]
12072 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12073 len += length(value) + length(field[++i])
12074 substed = 1
12075 } else
12076 len += 1 + keylen
12079 print line
12082 _ACAWK
12083 _ACEOF
12084 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12085 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12086 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12087 else
12089 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12090 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12091 _ACEOF
12093 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12094 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12095 # trailing colons and then remove the whole line if VPATH becomes empty
12096 # (actually we leave an empty line to preserve line numbers).
12097 if test "x$srcdir" = x.; then
12098 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12100 s///
12101 s/^/:/
12102 s/[ ]*$/:/
12103 s/:\$(srcdir):/:/g
12104 s/:\${srcdir}:/:/g
12105 s/:@srcdir@:/:/g
12106 s/^:*//
12107 s/:*$//
12109 s/\(=[ ]*\).*/\1/
12111 s/\n//
12112 s/^[^=]*=[ ]*$//
12116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12117 fi # test -n "$CONFIG_FILES"
12119 # Set up the scripts for CONFIG_HEADERS section.
12120 # No need to generate them if there are no CONFIG_HEADERS.
12121 # This happens for instance with `./config.status Makefile'.
12122 if test -n "$CONFIG_HEADERS"; then
12123 cat >"$tmp/defines.awk" <<\_ACAWK ||
12124 BEGIN {
12125 _ACEOF
12127 # Transform confdefs.h into an awk script `defines.awk', embedded as
12128 # here-document in config.status, that substitutes the proper values into
12129 # config.h.in to produce config.h.
12131 # Create a delimiter string that does not exist in confdefs.h, to ease
12132 # handling of long lines.
12133 ac_delim='%!_!# '
12134 for ac_last_try in false false :; do
12135 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12136 if test -z "$ac_t"; then
12137 break
12138 elif $ac_last_try; then
12139 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12140 else
12141 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12143 done
12145 # For the awk script, D is an array of macro values keyed by name,
12146 # likewise P contains macro parameters if any. Preserve backslash
12147 # newline sequences.
12149 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12150 sed -n '
12151 s/.\{148\}/&'"$ac_delim"'/g
12152 t rset
12153 :rset
12154 s/^[ ]*#[ ]*define[ ][ ]*/ /
12155 t def
12157 :def
12158 s/\\$//
12159 t bsnl
12160 s/["\\]/\\&/g
12161 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12162 D["\1"]=" \3"/p
12163 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12165 :bsnl
12166 s/["\\]/\\&/g
12167 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12168 D["\1"]=" \3\\\\\\n"\\/p
12169 t cont
12170 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12171 t cont
12173 :cont
12175 s/.\{148\}/&'"$ac_delim"'/g
12176 t clear
12177 :clear
12178 s/\\$//
12179 t bsnlc
12180 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12182 :bsnlc
12183 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12184 b cont
12185 ' <confdefs.h | sed '
12186 s/'"$ac_delim"'/"\\\
12187 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12189 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12190 for (key in D) D_is_set[key] = 1
12191 FS = "\a"
12193 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12194 line = \$ 0
12195 split(line, arg, " ")
12196 if (arg[1] == "#") {
12197 defundef = arg[2]
12198 mac1 = arg[3]
12199 } else {
12200 defundef = substr(arg[1], 2)
12201 mac1 = arg[2]
12203 split(mac1, mac2, "(") #)
12204 macro = mac2[1]
12205 prefix = substr(line, 1, index(line, defundef) - 1)
12206 if (D_is_set[macro]) {
12207 # Preserve the white space surrounding the "#".
12208 print prefix "define", macro P[macro] D[macro]
12209 next
12210 } else {
12211 # Replace #undef with comments. This is necessary, for example,
12212 # in the case of _POSIX_SOURCE, which is predefined and required
12213 # on some systems where configure will not decide to define it.
12214 if (defundef == "undef") {
12215 print "/*", prefix defundef, macro, "*/"
12216 next
12220 { print }
12221 _ACAWK
12222 _ACEOF
12223 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12224 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12225 fi # test -n "$CONFIG_HEADERS"
12228 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12229 shift
12230 for ac_tag
12232 case $ac_tag in
12233 :[FHLC]) ac_mode=$ac_tag; continue;;
12234 esac
12235 case $ac_mode$ac_tag in
12236 :[FHL]*:*);;
12237 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12238 :[FH]-) ac_tag=-:-;;
12239 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12240 esac
12241 ac_save_IFS=$IFS
12242 IFS=:
12243 set x $ac_tag
12244 IFS=$ac_save_IFS
12245 shift
12246 ac_file=$1
12247 shift
12249 case $ac_mode in
12250 :L) ac_source=$1;;
12251 :[FH])
12252 ac_file_inputs=
12253 for ac_f
12255 case $ac_f in
12256 -) ac_f="$tmp/stdin";;
12257 *) # Look for the file first in the build tree, then in the source tree
12258 # (if the path is not absolute). The absolute path cannot be DOS-style,
12259 # because $ac_f cannot contain `:'.
12260 test -f "$ac_f" ||
12261 case $ac_f in
12262 [\\/$]*) false;;
12263 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12264 esac ||
12265 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12266 esac
12267 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12268 as_fn_append ac_file_inputs " '$ac_f'"
12269 done
12271 # Let's still pretend it is `configure' which instantiates (i.e., don't
12272 # use $as_me), people would be surprised to read:
12273 # /* config.h. Generated by config.status. */
12274 configure_input='Generated from '`
12275 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12276 `' by configure.'
12277 if test x"$ac_file" != x-; then
12278 configure_input="$ac_file. $configure_input"
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12280 $as_echo "$as_me: creating $ac_file" >&6;}
12282 # Neutralize special characters interpreted by sed in replacement strings.
12283 case $configure_input in #(
12284 *\&* | *\|* | *\\* )
12285 ac_sed_conf_input=`$as_echo "$configure_input" |
12286 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12287 *) ac_sed_conf_input=$configure_input;;
12288 esac
12290 case $ac_tag in
12291 *:-:* | *:-) cat >"$tmp/stdin" \
12292 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12293 esac
12295 esac
12297 ac_dir=`$as_dirname -- "$ac_file" ||
12298 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12299 X"$ac_file" : 'X\(//\)[^/]' \| \
12300 X"$ac_file" : 'X\(//\)$' \| \
12301 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12302 $as_echo X"$ac_file" |
12303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12304 s//\1/
12307 /^X\(\/\/\)[^/].*/{
12308 s//\1/
12311 /^X\(\/\/\)$/{
12312 s//\1/
12315 /^X\(\/\).*/{
12316 s//\1/
12319 s/.*/./; q'`
12320 as_dir="$ac_dir"; as_fn_mkdir_p
12321 ac_builddir=.
12323 case "$ac_dir" in
12324 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12326 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12327 # A ".." for each directory in $ac_dir_suffix.
12328 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12329 case $ac_top_builddir_sub in
12330 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12331 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12332 esac ;;
12333 esac
12334 ac_abs_top_builddir=$ac_pwd
12335 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12336 # for backward compatibility:
12337 ac_top_builddir=$ac_top_build_prefix
12339 case $srcdir in
12340 .) # We are building in place.
12341 ac_srcdir=.
12342 ac_top_srcdir=$ac_top_builddir_sub
12343 ac_abs_top_srcdir=$ac_pwd ;;
12344 [\\/]* | ?:[\\/]* ) # Absolute name.
12345 ac_srcdir=$srcdir$ac_dir_suffix;
12346 ac_top_srcdir=$srcdir
12347 ac_abs_top_srcdir=$srcdir ;;
12348 *) # Relative name.
12349 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12350 ac_top_srcdir=$ac_top_build_prefix$srcdir
12351 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12352 esac
12353 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12356 case $ac_mode in
12359 # CONFIG_FILE
12362 _ACEOF
12364 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12365 # If the template does not know about datarootdir, expand it.
12366 # FIXME: This hack should be removed a few years after 2.60.
12367 ac_datarootdir_hack=; ac_datarootdir_seen=
12368 ac_sed_dataroot='
12369 /datarootdir/ {
12373 /@datadir@/p
12374 /@docdir@/p
12375 /@infodir@/p
12376 /@localedir@/p
12377 /@mandir@/p'
12378 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12379 *datarootdir*) ac_datarootdir_seen=yes;;
12380 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12382 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12383 _ACEOF
12384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12385 ac_datarootdir_hack='
12386 s&@datadir@&$datadir&g
12387 s&@docdir@&$docdir&g
12388 s&@infodir@&$infodir&g
12389 s&@localedir@&$localedir&g
12390 s&@mandir@&$mandir&g
12391 s&\\\${datarootdir}&$datarootdir&g' ;;
12392 esac
12393 _ACEOF
12395 # Neutralize VPATH when `$srcdir' = `.'.
12396 # Shell code in configure.ac might set extrasub.
12397 # FIXME: do we really want to maintain this feature?
12398 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12399 ac_sed_extra="$ac_vpsub
12400 $extrasub
12401 _ACEOF
12402 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12404 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12405 s|@configure_input@|$ac_sed_conf_input|;t t
12406 s&@top_builddir@&$ac_top_builddir_sub&;t t
12407 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12408 s&@srcdir@&$ac_srcdir&;t t
12409 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12410 s&@top_srcdir@&$ac_top_srcdir&;t t
12411 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12412 s&@builddir@&$ac_builddir&;t t
12413 s&@abs_builddir@&$ac_abs_builddir&;t t
12414 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12415 $ac_datarootdir_hack
12417 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12418 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12420 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12421 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12422 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12424 which seems to be undefined. Please make sure it is defined" >&5
12425 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12426 which seems to be undefined. Please make sure it is defined" >&2;}
12428 rm -f "$tmp/stdin"
12429 case $ac_file in
12430 -) cat "$tmp/out" && rm -f "$tmp/out";;
12431 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12432 esac \
12433 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12437 # CONFIG_HEADER
12439 if test x"$ac_file" != x-; then
12441 $as_echo "/* $configure_input */" \
12442 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12443 } >"$tmp/config.h" \
12444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12445 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12447 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12448 else
12449 rm -f "$ac_file"
12450 mv "$tmp/config.h" "$ac_file" \
12451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12453 else
12454 $as_echo "/* $configure_input */" \
12455 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12456 || as_fn_error $? "could not create -" "$LINENO" 5
12460 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12461 $as_echo "$as_me: executing $ac_file commands" >&6;}
12463 esac
12466 case $ac_file$ac_mode in
12467 "compiler_executable":C)
12468 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12469 mkdir -p $prefix
12470 prefix="${prefix}/${aros_target_cpu}-aros"
12471 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12473 echo ${prefix}
12474 echo ${prefix2}
12475 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12477 ln -sf ${prefix2}-gcc ${prefix}-gcc
12478 ln -sf ${prefix2}-ld ${prefix}-ld
12480 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12481 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12482 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12483 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12484 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12485 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12486 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12488 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12489 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12490 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12491 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12492 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12493 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12494 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12496 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12498 esac
12499 done # for ac_tag
12502 as_fn_exit 0
12503 _ACEOF
12504 ac_clean_files=$ac_clean_files_save
12506 test $ac_write_fail = 0 ||
12507 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12510 # configure is writing to config.log, and then calls config.status.
12511 # config.status does its own redirection, appending to config.log.
12512 # Unfortunately, on DOS this fails, as config.log is still kept open
12513 # by configure, so config.status won't be able to write to it; its
12514 # output is simply discarded. So we exec the FD to /dev/null,
12515 # effectively closing config.log, so it can be properly (re)opened and
12516 # appended to by config.status. When coming back to configure, we
12517 # need to make the FD available again.
12518 if test "$no_create" != yes; then
12519 ac_cs_success=:
12520 ac_config_status_args=
12521 test "$silent" = yes &&
12522 ac_config_status_args="$ac_config_status_args --quiet"
12523 exec 5>/dev/null
12524 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12525 exec 5>>config.log
12526 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12527 # would make configure fail if this is the last instruction.
12528 $ac_cs_success || as_fn_exit 1
12530 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12532 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12537 #XXX compatability...
12538 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12540 if test -n "$aros_shared_cflags" ; then
12541 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12542 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg