muimaster: Fix up two broken .conf files
[AROS.git] / configure
blob7f866900915bb0a473ee8dea17c488efb68f1e33
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_usb30_code
615 aros_palm_debug_hack
616 aros_serial_debug
617 aros_host_sdl_libs
618 aros_host_sdl_cflags
619 aros_host_x11_libdirs
620 aros_host_x11_includes
621 DO_VIDMODE_SUPPORT
622 DO_XSHM_SUPPORT
623 aros_default_wbdepth
624 aros_default_wbheight
625 aros_default_wbwidth
626 oss_library_target
627 pci_hidd_target
628 sdl_hidd_target
629 x11_hidd_target
630 crosstools_cxx_target
631 crosstools_target
632 aros_target_strip_flags
633 aros_target_genmap
634 aros_debug_ldflags
635 aros_debug_aflags
636 aros_debug_cflags
637 aros_target_cflags
638 aros_kernel_ldflags
639 aros_kernel_objcflags
640 aros_kernel_includes
641 aros_kernel_cflags
642 aros_shared_ldflags
643 aros_shared_aflags
644 aros_shared_cflags
645 aros_config_ldflags
646 aros_config_aflags
647 aros_config_cflags
648 aros_arch_libs
649 aros_compiler_libs
650 aros_object_format
651 aros_shared_ld
652 aros_shared_default
653 aros_target_nm
654 aros_target_strip
655 aros_target_objcopy
656 aros_target_objdump
657 aros_target_cc_path
658 aros_target_cc_includes
659 orig_target_ld
660 aros_target_as
661 aros_kernel_cc
662 orig_target_cc
663 aros_kernel_ar
664 aros_kernel_nm
665 aros_target_ranlib
666 aros_target_ar
667 aros_target_incl
668 aros_target_suffix
669 aros_target_variant
670 aros_target_cpu
671 aros_target_family
672 aros_target_arch
673 aros_target_bootloader
674 aros_target_iconset
675 aros_target_guitheme
676 aros_tools_dir
677 aros_host_lib_suffix
678 aros_host_exe_suffix
679 aros_host_mkargs
680 aros_host_mkdep
681 aros_host_debug
682 aros_host_ldflags
683 gnu89_inline
684 aros_host_cflags
685 aros_host_make
686 aros_host_cc
687 aros_host_cpu
688 aros_host_arch
689 aros_cc_pre
690 AROS_PORTSSRCDIR
691 AROS_CROSSTOOLSDIR
692 SRCDIR
693 AROS_BUILDDIR_UNIX
694 AROS_BUILDDIR
695 aros_flavour_uc
696 aros_flavour
697 aros_cpu
698 aros_arch
699 SDL_LIBS
700 SDL_CFLAGS
701 SDL_CONFIG
702 XMKMF
703 aros_cflags_iquote_end
704 aros_cflags_iquote
705 kernel_cflags_iquote_end
706 kernel_cflags_iquote
707 host_cflags_iquote_end
708 host_cflags_iquote
709 aros_target_nostdlib_ldflags
710 aros_target_detach_ldflags
711 aros_target_nix_ldflags
712 aros_target_nostartup_ldflags
713 aros_target_nostdinc_cflags
714 aros_target_ld
715 aros_target_cc
716 aros_target_cxx
717 aros_target_strip_ln
718 aros_target_ranlib_ln
719 aros_target_objdump_ln
720 aros_target_objcopy_ln
721 aros_target_nm_ln
722 aros_target_ar_ln
723 aros_target_as_ln
724 aros_kernel_ld
725 aros_kernel_rescomp
726 android_tool
727 CCACHE
728 DISTCC
729 LIBOBJS
730 EGREP
731 GREP
733 TEST
736 pkgpyexecdir
737 pyexecdir
738 pkgpythondir
739 pythondir
740 PYTHON_PLATFORM
741 PYTHON_EXEC_PREFIX
742 PYTHON_PREFIX
743 PYTHON_VERSION
744 PYTHON
745 PATCH
746 CHMOD
748 PPMTOILBM
749 PNGTOPNM
750 FLEX
751 BISON
754 UNIQ
755 SORT
756 TOUCH
757 MKDIR
758 ECHO
762 aros_host_strip
763 aros_host_ranlib
764 aros_host_ar
765 aros_host_automake
766 aros_host_autoheader
767 aros_host_autoconf
768 aros_host_aclocal
769 aros_host_ld
770 MMAKE
773 OBJEXT
774 EXEEXT
775 ac_ct_CC
776 CPPFLAGS
777 LDFLAGS
778 CFLAGS
780 host_os
781 host_vendor
782 host_cpu
783 host
784 build_os
785 build_vendor
786 build_cpu
787 build
788 target_alias
789 host_alias
790 build_alias
791 LIBS
792 ECHO_T
793 ECHO_N
794 ECHO_C
795 DEFS
796 mandir
797 localedir
798 libdir
799 psdir
800 pdfdir
801 dvidir
802 htmldir
803 infodir
804 docdir
805 oldincludedir
806 includedir
807 localstatedir
808 sharedstatedir
809 sysconfdir
810 datadir
811 datarootdir
812 libexecdir
813 sbindir
814 bindir
815 program_transform_name
816 prefix
817 exec_prefix
818 PACKAGE_URL
819 PACKAGE_BUGREPORT
820 PACKAGE_STRING
821 PACKAGE_VERSION
822 PACKAGE_TARNAME
823 PACKAGE_NAME
824 PATH_SEPARATOR
825 SHELL'
826 ac_subst_files=''
827 ac_user_opts='
828 enable_option_checking
829 enable_build_type
830 enable_debug
831 enable_crosstools
832 enable_distcc
833 enable_ccache
834 with_gcc_version
835 with_optimization
836 with_paranoia
837 enable_target_variant
838 with_xcode
839 with_ios_version
840 with_ios_sdk
841 with_sdk
842 with_ndk
843 with_android_version
844 with_crosstools
845 with_aros_gcc
846 with_portssources
847 with_bootloader
848 with_iconset
849 with_theme
850 enable_includes
851 with_resolution
852 with_serial_debug
853 enable_palm_debug_hack
854 enable_usb30_code
855 enable_nesting_supervisor
856 enable_mmu
857 enable_x11_hidd
858 with_x
859 enable_x11_shm
860 enable_x11_vidmode
861 enable_sdl_hidd
862 with_sdl_prefix
863 with_sdl_exec_prefix
864 enable_sdltest
865 enable_dbus
867 ac_precious_vars='build_alias
868 host_alias
869 target_alias
871 CFLAGS
872 LDFLAGS
873 LIBS
874 CPPFLAGS
876 XMKMF'
879 # Initialize some variables set by options.
880 ac_init_help=
881 ac_init_version=false
882 ac_unrecognized_opts=
883 ac_unrecognized_sep=
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
886 cache_file=/dev/null
887 exec_prefix=NONE
888 no_create=
889 no_recursion=
890 prefix=NONE
891 program_prefix=NONE
892 program_suffix=NONE
893 program_transform_name=s,x,x,
894 silent=
895 site=
896 srcdir=
897 verbose=
898 x_includes=NONE
899 x_libraries=NONE
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
927 ac_prev=
928 ac_dashdash=
929 for ac_option
931 # If the previous option needs an argument, assign it.
932 if test -n "$ac_prev"; then
933 eval $ac_prev=\$ac_option
934 ac_prev=
935 continue
938 case $ac_option in
939 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940 *=) ac_optarg= ;;
941 *) ac_optarg=yes ;;
942 esac
944 # Accept the important Cygnus configure options, so we can diagnose typos.
946 case $ac_dashdash$ac_option in
948 ac_dashdash=yes ;;
950 -bindir | --bindir | --bindi | --bind | --bin | --bi)
951 ac_prev=bindir ;;
952 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953 bindir=$ac_optarg ;;
955 -build | --build | --buil | --bui | --bu)
956 ac_prev=build_alias ;;
957 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958 build_alias=$ac_optarg ;;
960 -cache-file | --cache-file | --cache-fil | --cache-fi \
961 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962 ac_prev=cache_file ;;
963 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965 cache_file=$ac_optarg ;;
967 --config-cache | -C)
968 cache_file=config.cache ;;
970 -datadir | --datadir | --datadi | --datad)
971 ac_prev=datadir ;;
972 -datadir=* | --datadir=* | --datadi=* | --datad=*)
973 datadir=$ac_optarg ;;
975 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976 | --dataroo | --dataro | --datar)
977 ac_prev=datarootdir ;;
978 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980 datarootdir=$ac_optarg ;;
982 -disable-* | --disable-*)
983 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984 # Reject names that are not valid shell variable names.
985 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986 as_fn_error $? "invalid feature name: $ac_useropt"
987 ac_useropt_orig=$ac_useropt
988 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989 case $ac_user_opts in
991 "enable_$ac_useropt"
992 "*) ;;
993 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994 ac_unrecognized_sep=', ';;
995 esac
996 eval enable_$ac_useropt=no ;;
998 -docdir | --docdir | --docdi | --doc | --do)
999 ac_prev=docdir ;;
1000 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001 docdir=$ac_optarg ;;
1003 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004 ac_prev=dvidir ;;
1005 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006 dvidir=$ac_optarg ;;
1008 -enable-* | --enable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=\$ac_optarg ;;
1024 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026 | --exec | --exe | --ex)
1027 ac_prev=exec_prefix ;;
1028 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030 | --exec=* | --exe=* | --ex=*)
1031 exec_prefix=$ac_optarg ;;
1033 -gas | --gas | --ga | --g)
1034 # Obsolete; use --with-gas.
1035 with_gas=yes ;;
1037 -help | --help | --hel | --he | -h)
1038 ac_init_help=long ;;
1039 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040 ac_init_help=recursive ;;
1041 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042 ac_init_help=short ;;
1044 -host | --host | --hos | --ho)
1045 ac_prev=host_alias ;;
1046 -host=* | --host=* | --hos=* | --ho=*)
1047 host_alias=$ac_optarg ;;
1049 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050 ac_prev=htmldir ;;
1051 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052 | --ht=*)
1053 htmldir=$ac_optarg ;;
1055 -includedir | --includedir | --includedi | --included | --include \
1056 | --includ | --inclu | --incl | --inc)
1057 ac_prev=includedir ;;
1058 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059 | --includ=* | --inclu=* | --incl=* | --inc=*)
1060 includedir=$ac_optarg ;;
1062 -infodir | --infodir | --infodi | --infod | --info | --inf)
1063 ac_prev=infodir ;;
1064 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065 infodir=$ac_optarg ;;
1067 -libdir | --libdir | --libdi | --libd)
1068 ac_prev=libdir ;;
1069 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070 libdir=$ac_optarg ;;
1072 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073 | --libexe | --libex | --libe)
1074 ac_prev=libexecdir ;;
1075 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076 | --libexe=* | --libex=* | --libe=*)
1077 libexecdir=$ac_optarg ;;
1079 -localedir | --localedir | --localedi | --localed | --locale)
1080 ac_prev=localedir ;;
1081 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082 localedir=$ac_optarg ;;
1084 -localstatedir | --localstatedir | --localstatedi | --localstated \
1085 | --localstate | --localstat | --localsta | --localst | --locals)
1086 ac_prev=localstatedir ;;
1087 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089 localstatedir=$ac_optarg ;;
1091 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092 ac_prev=mandir ;;
1093 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094 mandir=$ac_optarg ;;
1096 -nfp | --nfp | --nf)
1097 # Obsolete; use --without-fp.
1098 with_fp=no ;;
1100 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101 | --no-cr | --no-c | -n)
1102 no_create=yes ;;
1104 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106 no_recursion=yes ;;
1108 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110 | --oldin | --oldi | --old | --ol | --o)
1111 ac_prev=oldincludedir ;;
1112 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115 oldincludedir=$ac_optarg ;;
1117 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118 ac_prev=prefix ;;
1119 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120 prefix=$ac_optarg ;;
1122 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123 | --program-pre | --program-pr | --program-p)
1124 ac_prev=program_prefix ;;
1125 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127 program_prefix=$ac_optarg ;;
1129 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130 | --program-suf | --program-su | --program-s)
1131 ac_prev=program_suffix ;;
1132 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134 program_suffix=$ac_optarg ;;
1136 -program-transform-name | --program-transform-name \
1137 | --program-transform-nam | --program-transform-na \
1138 | --program-transform-n | --program-transform- \
1139 | --program-transform | --program-transfor \
1140 | --program-transfo | --program-transf \
1141 | --program-trans | --program-tran \
1142 | --progr-tra | --program-tr | --program-t)
1143 ac_prev=program_transform_name ;;
1144 -program-transform-name=* | --program-transform-name=* \
1145 | --program-transform-nam=* | --program-transform-na=* \
1146 | --program-transform-n=* | --program-transform-=* \
1147 | --program-transform=* | --program-transfor=* \
1148 | --program-transfo=* | --program-transf=* \
1149 | --program-trans=* | --program-tran=* \
1150 | --progr-tra=* | --program-tr=* | --program-t=*)
1151 program_transform_name=$ac_optarg ;;
1153 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154 ac_prev=pdfdir ;;
1155 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156 pdfdir=$ac_optarg ;;
1158 -psdir | --psdir | --psdi | --psd | --ps)
1159 ac_prev=psdir ;;
1160 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161 psdir=$ac_optarg ;;
1163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164 | -silent | --silent | --silen | --sile | --sil)
1165 silent=yes ;;
1167 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168 ac_prev=sbindir ;;
1169 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170 | --sbi=* | --sb=*)
1171 sbindir=$ac_optarg ;;
1173 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175 | --sharedst | --shareds | --shared | --share | --shar \
1176 | --sha | --sh)
1177 ac_prev=sharedstatedir ;;
1178 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181 | --sha=* | --sh=*)
1182 sharedstatedir=$ac_optarg ;;
1184 -site | --site | --sit)
1185 ac_prev=site ;;
1186 -site=* | --site=* | --sit=*)
1187 site=$ac_optarg ;;
1189 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190 ac_prev=srcdir ;;
1191 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192 srcdir=$ac_optarg ;;
1194 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195 | --syscon | --sysco | --sysc | --sys | --sy)
1196 ac_prev=sysconfdir ;;
1197 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199 sysconfdir=$ac_optarg ;;
1201 -target | --target | --targe | --targ | --tar | --ta | --t)
1202 ac_prev=target_alias ;;
1203 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204 target_alias=$ac_optarg ;;
1206 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207 verbose=yes ;;
1209 -version | --version | --versio | --versi | --vers | -V)
1210 ac_init_version=: ;;
1212 -with-* | --with-*)
1213 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214 # Reject names that are not valid shell variable names.
1215 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216 as_fn_error $? "invalid package name: $ac_useropt"
1217 ac_useropt_orig=$ac_useropt
1218 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219 case $ac_user_opts in
1221 "with_$ac_useropt"
1222 "*) ;;
1223 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224 ac_unrecognized_sep=', ';;
1225 esac
1226 eval with_$ac_useropt=\$ac_optarg ;;
1228 -without-* | --without-*)
1229 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232 as_fn_error $? "invalid package name: $ac_useropt"
1233 ac_useropt_orig=$ac_useropt
1234 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1237 "with_$ac_useropt"
1238 "*) ;;
1239 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240 ac_unrecognized_sep=', ';;
1241 esac
1242 eval with_$ac_useropt=no ;;
1244 --x)
1245 # Obsolete; use --with-x.
1246 with_x=yes ;;
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1262 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information"
1266 *=*)
1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268 # Reject names that are not valid shell variable names.
1269 case $ac_envvar in #(
1270 '' | [0-9]* | *[!_$as_cr_alnum]* )
1271 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272 esac
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1277 # FIXME: should be removed in autoconf 3.0.
1278 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1284 esac
1285 done
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 as_fn_error $? "missing argument to $ac_option"
1292 if test -n "$ac_unrecognized_opts"; then
1293 case $enable_option_checking in
1294 no) ;;
1295 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 esac
1300 # Check all directory arguments for consistency.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1308 case $ac_val in
1309 */ )
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1312 esac
1313 # Be sure to have absolute directory names.
1314 case $ac_val in
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 esac
1318 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319 done
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330 if test "x$build_alias" = x; then
1331 cross_compiling=maybe
1332 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1333 If a cross compiler is detected then cross compile mode will be used" >&2
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342 test "$silent" = yes && exec 6>/dev/null
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 as_fn_error $? "working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 as_fn_error $? "pwd does not report name of working directory"
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 $as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1371 /^X\(\/\/\)$/{
1372 s//\1/
1375 /^X\(\/\).*/{
1376 s//\1/
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1384 else
1385 ac_srcdir_defaulted=no
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 ac_abs_confdir=`(
1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394 pwd)`
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1402 case $srcdir in
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 esac
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 done
1413 # Report the --help message.
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419 \`configure' configures this package to adapt to many kinds of systems.
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1426 Defaults for the options are specified in brackets.
1428 Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking ...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 [PREFIX]
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1450 For better control, use the options below.
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1472 _ACEOF
1474 cat <<\_ACEOF
1476 X features:
1477 --x-includes=DIR X include files are in DIR
1478 --x-libraries=DIR X library files are in DIR
1480 System types:
1481 --build=BUILD configure for building on BUILD [guessed]
1482 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1483 _ACEOF
1486 if test -n "$ac_init_help"; then
1488 cat <<\_ACEOF
1490 Optional Features:
1491 --disable-option-checking ignore unrecognized --enable/--with options
1492 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1493 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1494 --enable-build-type=TYPE
1495 Select the build type. Available types are:
1496 personal, nightly, snapshot, milestone, release. Do
1497 NOT use this option unless you know what you are
1498 doing! (default=personal)
1499 --enable-debug=list Enable different types of debug. Commas or
1500 whitespaces can be used to separate the items in the
1501 list. Available types of debug are: all, none,
1502 messages, stack, mungwall, modules, symbols. If no
1503 list is provided then "all" is assumed.
1504 (default=none)
1505 --enable-crosstools Build cross-compiler toolchains if necessary
1506 (default=no).
1507 --enable-distcc Use distcc as a front end to the compiler
1508 (default=no).
1509 --enable-ccache Use ccache as a front end to the compiler
1510 (default=no).
1511 --enable-target-variant=NAME
1512 Enable a specific target variant(default=none)
1513 --enable-includes=dir Alternative system include directory
1514 --enable-palm-debug-hack
1515 Enable palm debug output hack in palm native
1516 (default=no)
1517 --enable-usb30-code Enable usb3.0 code (default=no)
1518 --enable-nesting-supervisor
1519 Enable nesting supervisor support in unix
1520 (default=no)
1521 --disable-mmu Disable MMU support (default=enabled)
1522 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1523 --enable-x11-shm use X11 shared memory (default=auto)
1524 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1525 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1526 --disable-sdltest Do not try to compile and run a test SDL program
1527 --enable-dbus Enable DBUS support via dbus.library (default=no)
1529 Optional Packages:
1530 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1531 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1532 --with-gcc-version=VERSION
1533 Use host gcc-VERSION for building AROS
1534 --with-optimization=FLAGS
1535 Use optimization flags FLAGS (default=-O2).
1536 --with-paranoia=FLAGS CC flags to enable paranoia
1537 --with-xcode=PATH Specify XCode path for iOS targets
1538 (default=/Developer).
1539 --with-ios-version=VERSION
1540 Specify minimum supported iOS version (default=3.0).
1541 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1542 --with-sdk=PATH Specify Android SDK path
1543 (default=$default_android_sdk).
1544 --with-ndk=PATH Specify Android NDK path
1545 (default=$default_android_ndk).
1546 --with-android-version=VERSION
1547 Use Android platform VERSION (default=2.2).
1548 --with-crosstools=DIR Where to install or search for cross tools binaries
1549 --with-aros-gcc=VERSION Use aros-gcc-VERSION for building AROS
1550 --with-portssources=DIR Where to download sourcecode for external ports
1551 --with-bootloader=NAME Use a specific bootloader
1552 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1553 --with-theme=NAME Use a specific GUI Theme
1554 --with-resolution=XRESxYRESxDEPTH
1555 Default resolution of the initial WorkbenchScreen
1556 --with-serial-debug Enable serial debug output in native (default=no)
1557 --with-x use the X Window System
1558 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1559 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1561 Some influential environment variables:
1562 CC C compiler command
1563 CFLAGS C compiler flags
1564 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1565 nonstandard directory <lib dir>
1566 LIBS libraries to pass to the linker, e.g. -l<library>
1567 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1568 you have headers in a nonstandard directory <include dir>
1569 CPP C preprocessor
1570 XMKMF Path to xmkmf, Makefile generator for X Window System
1572 Use these variables to override the choices made by `configure' or to help
1573 it to find libraries and programs with nonstandard names/locations.
1575 Report bugs to the package provider.
1576 _ACEOF
1577 ac_status=$?
1580 if test "$ac_init_help" = "recursive"; then
1581 # If there are subdirs, report their specific --help.
1582 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1583 test -d "$ac_dir" ||
1584 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1585 continue
1586 ac_builddir=.
1588 case "$ac_dir" in
1589 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1592 # A ".." for each directory in $ac_dir_suffix.
1593 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1594 case $ac_top_builddir_sub in
1595 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1596 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1597 esac ;;
1598 esac
1599 ac_abs_top_builddir=$ac_pwd
1600 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1601 # for backward compatibility:
1602 ac_top_builddir=$ac_top_build_prefix
1604 case $srcdir in
1605 .) # We are building in place.
1606 ac_srcdir=.
1607 ac_top_srcdir=$ac_top_builddir_sub
1608 ac_abs_top_srcdir=$ac_pwd ;;
1609 [\\/]* | ?:[\\/]* ) # Absolute name.
1610 ac_srcdir=$srcdir$ac_dir_suffix;
1611 ac_top_srcdir=$srcdir
1612 ac_abs_top_srcdir=$srcdir ;;
1613 *) # Relative name.
1614 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1615 ac_top_srcdir=$ac_top_build_prefix$srcdir
1616 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1617 esac
1618 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1620 cd "$ac_dir" || { ac_status=$?; continue; }
1621 # Check for guested configure.
1622 if test -f "$ac_srcdir/configure.gnu"; then
1623 echo &&
1624 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1625 elif test -f "$ac_srcdir/configure"; then
1626 echo &&
1627 $SHELL "$ac_srcdir/configure" --help=recursive
1628 else
1629 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1630 fi || ac_status=$?
1631 cd "$ac_pwd" || { ac_status=$?; break; }
1632 done
1635 test -n "$ac_init_help" && exit $ac_status
1636 if $ac_init_version; then
1637 cat <<\_ACEOF
1638 configure
1639 generated by GNU Autoconf 2.67
1641 Copyright (C) 2010 Free Software Foundation, Inc.
1642 This configure script is free software; the Free Software Foundation
1643 gives unlimited permission to copy, distribute and modify it.
1644 _ACEOF
1645 exit
1648 ## ------------------------ ##
1649 ## Autoconf initialization. ##
1650 ## ------------------------ ##
1652 # ac_fn_c_try_compile LINENO
1653 # --------------------------
1654 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1655 ac_fn_c_try_compile ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 rm -f conftest.$ac_objext
1659 if { { ac_try="$ac_compile"
1660 case "(($ac_try" in
1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1662 *) ac_try_echo=$ac_try;;
1663 esac
1664 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1665 $as_echo "$ac_try_echo"; } >&5
1666 (eval "$ac_compile") 2>conftest.err
1667 ac_status=$?
1668 if test -s conftest.err; then
1669 grep -v '^ *+' conftest.err >conftest.er1
1670 cat conftest.er1 >&5
1671 mv -f conftest.er1 conftest.err
1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1674 test $ac_status = 0; } && {
1675 test -z "$ac_c_werror_flag" ||
1676 test ! -s conftest.err
1677 } && test -s conftest.$ac_objext; then :
1678 ac_retval=0
1679 else
1680 $as_echo "$as_me: failed program was:" >&5
1681 sed 's/^/| /' conftest.$ac_ext >&5
1683 ac_retval=1
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686 as_fn_set_status $ac_retval
1688 } # ac_fn_c_try_compile
1690 # ac_fn_c_try_cpp LINENO
1691 # ----------------------
1692 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693 ac_fn_c_try_cpp ()
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_cpp conftest.$ac_ext"
1697 case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700 esac
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } > conftest.i && {
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 }; then :
1715 ac_retval=0
1716 else
1717 $as_echo "$as_me: failed program was:" >&5
1718 sed 's/^/| /' conftest.$ac_ext >&5
1720 ac_retval=1
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 as_fn_set_status $ac_retval
1725 } # ac_fn_c_try_cpp
1727 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1730 # the include files in INCLUDES and setting the cache variable VAR
1731 # accordingly.
1732 ac_fn_c_check_header_mongrel ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if eval "test \"\${$3+set}\"" = set; then :
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval "test \"\${$3+set}\"" = set; then :
1739 $as_echo_n "(cached) " >&6
1741 eval ac_res=\$$3
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743 $as_echo "$ac_res" >&6; }
1744 else
1745 # Is the header compilable?
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1747 $as_echo_n "checking $2 usability... " >&6; }
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 ac_header_compiler=yes
1755 else
1756 ac_header_compiler=no
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1760 $as_echo "$ac_header_compiler" >&6; }
1762 # Is the header present?
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1764 $as_echo_n "checking $2 presence... " >&6; }
1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1767 #include <$2>
1768 _ACEOF
1769 if ac_fn_c_try_cpp "$LINENO"; then :
1770 ac_header_preproc=yes
1771 else
1772 ac_header_preproc=no
1774 rm -f conftest.err conftest.i conftest.$ac_ext
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1776 $as_echo "$ac_header_preproc" >&6; }
1778 # So? What about this header?
1779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1780 yes:no: )
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1782 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1784 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1786 no:yes:* )
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1788 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1790 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1792 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1794 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1798 esac
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800 $as_echo_n "checking for $2... " >&6; }
1801 if eval "test \"\${$3+set}\"" = set; then :
1802 $as_echo_n "(cached) " >&6
1803 else
1804 eval "$3=\$ac_header_compiler"
1806 eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808 $as_echo "$ac_res" >&6; }
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812 } # ac_fn_c_check_header_mongrel
1814 # ac_fn_c_try_run LINENO
1815 # ----------------------
1816 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817 # that executables *can* be run.
1818 ac_fn_c_try_run ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_link"
1822 case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825 esac
1826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827 $as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>&5
1829 ac_status=$?
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1832 { { case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 $as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_try") 2>&5
1839 ac_status=$?
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; }; }; then :
1842 ac_retval=0
1843 else
1844 $as_echo "$as_me: program exited with status $ac_status" >&5
1845 $as_echo "$as_me: failed program was:" >&5
1846 sed 's/^/| /' conftest.$ac_ext >&5
1848 ac_retval=$ac_status
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 as_fn_set_status $ac_retval
1854 } # ac_fn_c_try_run
1856 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1857 # -------------------------------------------------------
1858 # Tests whether HEADER exists and can be compiled using the include files in
1859 # INCLUDES, setting the cache variable VAR accordingly.
1860 ac_fn_c_check_header_compile ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864 $as_echo_n "checking for $2... " >&6; }
1865 if eval "test \"\${$3+set}\"" = set; then :
1866 $as_echo_n "(cached) " >&6
1867 else
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869 /* end confdefs.h. */
1871 #include <$2>
1872 _ACEOF
1873 if ac_fn_c_try_compile "$LINENO"; then :
1874 eval "$3=yes"
1875 else
1876 eval "$3=no"
1878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1880 eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882 $as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1885 } # ac_fn_c_check_header_compile
1887 # ac_fn_c_try_link LINENO
1888 # -----------------------
1889 # Try to link conftest.$ac_ext, and return whether this succeeded.
1890 ac_fn_c_try_link ()
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 rm -f conftest.$ac_objext conftest$ac_exeext
1894 if { { ac_try="$ac_link"
1895 case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898 esac
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>conftest.err
1902 ac_status=$?
1903 if test -s conftest.err; then
1904 grep -v '^ *+' conftest.err >conftest.er1
1905 cat conftest.er1 >&5
1906 mv -f conftest.er1 conftest.err
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; } && {
1910 test -z "$ac_c_werror_flag" ||
1911 test ! -s conftest.err
1912 } && test -s conftest$ac_exeext && {
1913 test "$cross_compiling" = yes ||
1914 $as_test_x conftest$ac_exeext
1915 }; then :
1916 ac_retval=0
1917 else
1918 $as_echo "$as_me: failed program was:" >&5
1919 sed 's/^/| /' conftest.$ac_ext >&5
1921 ac_retval=1
1923 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1924 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1925 # interfere with the next link command; also delete a directory that is
1926 # left behind by Apple's compiler. We do this before executing the actions.
1927 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1928 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929 as_fn_set_status $ac_retval
1931 } # ac_fn_c_try_link
1933 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1934 # ----------------------------------------------------
1935 # Tries to find if the field MEMBER exists in type AGGR, after including
1936 # INCLUDES, setting cache variable VAR accordingly.
1937 ac_fn_c_check_member ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1941 $as_echo_n "checking for $2.$3... " >&6; }
1942 if eval "test \"\${$4+set}\"" = set; then :
1943 $as_echo_n "(cached) " >&6
1944 else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1949 main ()
1951 static $2 ac_aggr;
1952 if (ac_aggr.$3)
1953 return 0;
1955 return 0;
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 eval "$4=yes"
1960 else
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1965 main ()
1967 static $2 ac_aggr;
1968 if (sizeof ac_aggr.$3)
1969 return 0;
1971 return 0;
1973 _ACEOF
1974 if ac_fn_c_try_compile "$LINENO"; then :
1975 eval "$4=yes"
1976 else
1977 eval "$4=no"
1979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1983 eval ac_res=\$$4
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985 $as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988 } # ac_fn_c_check_member
1990 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1991 # ---------------------------------------------
1992 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1993 # accordingly.
1994 ac_fn_c_check_decl ()
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 as_decl_name=`echo $2|sed 's/ *(.*//'`
1998 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2000 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2001 if eval "test \"\${$3+set}\"" = set; then :
2002 $as_echo_n "(cached) " >&6
2003 else
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2008 main ()
2010 #ifndef $as_decl_name
2011 #ifdef __cplusplus
2012 (void) $as_decl_use;
2013 #else
2014 (void) $as_decl_name;
2015 #endif
2016 #endif
2019 return 0;
2021 _ACEOF
2022 if ac_fn_c_try_compile "$LINENO"; then :
2023 eval "$3=yes"
2024 else
2025 eval "$3=no"
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 eval ac_res=\$$3
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2031 $as_echo "$ac_res" >&6; }
2032 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2034 } # ac_fn_c_check_decl
2036 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2037 # -------------------------------------------
2038 # Tests whether TYPE exists after having included INCLUDES, setting cache
2039 # variable VAR accordingly.
2040 ac_fn_c_check_type ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if eval "test \"\${$3+set}\"" = set; then :
2046 $as_echo_n "(cached) " >&6
2047 else
2048 eval "$3=no"
2049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2050 /* end confdefs.h. */
2053 main ()
2055 if (sizeof ($2))
2056 return 0;
2058 return 0;
2060 _ACEOF
2061 if ac_fn_c_try_compile "$LINENO"; then :
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2066 main ()
2068 if (sizeof (($2)))
2069 return 0;
2071 return 0;
2073 _ACEOF
2074 if ac_fn_c_try_compile "$LINENO"; then :
2076 else
2077 eval "$3=yes"
2079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 eval ac_res=\$$3
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2088 } # ac_fn_c_check_type
2090 # ac_fn_c_check_func LINENO FUNC VAR
2091 # ----------------------------------
2092 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2093 ac_fn_c_check_func ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval "test \"\${$3+set}\"" = set; then :
2099 $as_echo_n "(cached) " >&6
2100 else
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2105 #define $2 innocuous_$2
2107 /* System header to define __stub macros and hopefully few prototypes,
2108 which can conflict with char $2 (); below.
2109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2110 <limits.h> exists even on freestanding compilers. */
2112 #ifdef __STDC__
2113 # include <limits.h>
2114 #else
2115 # include <assert.h>
2116 #endif
2118 #undef $2
2120 /* Override any GCC internal prototype to avoid an error.
2121 Use char because int might match the return type of a GCC
2122 builtin and then its argument prototype would still apply. */
2123 #ifdef __cplusplus
2124 extern "C"
2125 #endif
2126 char $2 ();
2127 /* The GNU C library defines this for functions which it implements
2128 to always fail with ENOSYS. Some functions are actually named
2129 something starting with __ and the normal name is an alias. */
2130 #if defined __stub_$2 || defined __stub___$2
2131 choke me
2132 #endif
2135 main ()
2137 return $2 ();
2139 return 0;
2141 _ACEOF
2142 if ac_fn_c_try_link "$LINENO"; then :
2143 eval "$3=yes"
2144 else
2145 eval "$3=no"
2147 rm -f core conftest.err conftest.$ac_objext \
2148 conftest$ac_exeext conftest.$ac_ext
2150 eval ac_res=\$$3
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2155 } # ac_fn_c_check_func
2156 cat >config.log <<_ACEOF
2157 This file contains any messages produced by compilers while
2158 running configure, to aid debugging if configure makes a mistake.
2160 It was created by $as_me, which was
2161 generated by GNU Autoconf 2.67. Invocation command line was
2163 $ $0 $@
2165 _ACEOF
2166 exec 5>>config.log
2168 cat <<_ASUNAME
2169 ## --------- ##
2170 ## Platform. ##
2171 ## --------- ##
2173 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2174 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2175 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2176 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2177 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2179 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2180 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2182 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2183 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2184 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2185 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2186 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2187 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2188 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2190 _ASUNAME
2192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2193 for as_dir in $PATH
2195 IFS=$as_save_IFS
2196 test -z "$as_dir" && as_dir=.
2197 $as_echo "PATH: $as_dir"
2198 done
2199 IFS=$as_save_IFS
2201 } >&5
2203 cat >&5 <<_ACEOF
2206 ## ----------- ##
2207 ## Core tests. ##
2208 ## ----------- ##
2210 _ACEOF
2213 # Keep a trace of the command line.
2214 # Strip out --no-create and --no-recursion so they do not pile up.
2215 # Strip out --silent because we don't want to record it for future runs.
2216 # Also quote any args containing shell meta-characters.
2217 # Make two passes to allow for proper duplicate-argument suppression.
2218 ac_configure_args=
2219 ac_configure_args0=
2220 ac_configure_args1=
2221 ac_must_keep_next=false
2222 for ac_pass in 1 2
2224 for ac_arg
2226 case $ac_arg in
2227 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2228 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2229 | -silent | --silent | --silen | --sile | --sil)
2230 continue ;;
2231 *\'*)
2232 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2233 esac
2234 case $ac_pass in
2235 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2237 as_fn_append ac_configure_args1 " '$ac_arg'"
2238 if test $ac_must_keep_next = true; then
2239 ac_must_keep_next=false # Got value, back to normal.
2240 else
2241 case $ac_arg in
2242 *=* | --config-cache | -C | -disable-* | --disable-* \
2243 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2244 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2245 | -with-* | --with-* | -without-* | --without-* | --x)
2246 case "$ac_configure_args0 " in
2247 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2248 esac
2250 -* ) ac_must_keep_next=true ;;
2251 esac
2253 as_fn_append ac_configure_args " '$ac_arg'"
2255 esac
2256 done
2257 done
2258 { ac_configure_args0=; unset ac_configure_args0;}
2259 { ac_configure_args1=; unset ac_configure_args1;}
2261 # When interrupted or exit'd, cleanup temporary files, and complete
2262 # config.log. We remove comments because anyway the quotes in there
2263 # would cause problems or look ugly.
2264 # WARNING: Use '\'' to represent an apostrophe within the trap.
2265 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2266 trap 'exit_status=$?
2267 # Save into config.log some information that might help in debugging.
2269 echo
2271 $as_echo "## ---------------- ##
2272 ## Cache variables. ##
2273 ## ---------------- ##"
2274 echo
2275 # The following way of writing the cache mishandles newlines in values,
2277 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2278 eval ac_val=\$$ac_var
2279 case $ac_val in #(
2280 *${as_nl}*)
2281 case $ac_var in #(
2282 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2283 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2284 esac
2285 case $ac_var in #(
2286 _ | IFS | as_nl) ;; #(
2287 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2288 *) { eval $ac_var=; unset $ac_var;} ;;
2289 esac ;;
2290 esac
2291 done
2292 (set) 2>&1 |
2293 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2294 *${as_nl}ac_space=\ *)
2295 sed -n \
2296 "s/'\''/'\''\\\\'\'''\''/g;
2297 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2298 ;; #(
2300 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2302 esac |
2303 sort
2305 echo
2307 $as_echo "## ----------------- ##
2308 ## Output variables. ##
2309 ## ----------------- ##"
2310 echo
2311 for ac_var in $ac_subst_vars
2313 eval ac_val=\$$ac_var
2314 case $ac_val in
2315 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2316 esac
2317 $as_echo "$ac_var='\''$ac_val'\''"
2318 done | sort
2319 echo
2321 if test -n "$ac_subst_files"; then
2322 $as_echo "## ------------------- ##
2323 ## File substitutions. ##
2324 ## ------------------- ##"
2325 echo
2326 for ac_var in $ac_subst_files
2328 eval ac_val=\$$ac_var
2329 case $ac_val in
2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331 esac
2332 $as_echo "$ac_var='\''$ac_val'\''"
2333 done | sort
2334 echo
2337 if test -s confdefs.h; then
2338 $as_echo "## ----------- ##
2339 ## confdefs.h. ##
2340 ## ----------- ##"
2341 echo
2342 cat confdefs.h
2343 echo
2345 test "$ac_signal" != 0 &&
2346 $as_echo "$as_me: caught signal $ac_signal"
2347 $as_echo "$as_me: exit $exit_status"
2348 } >&5
2349 rm -f core *.core core.conftest.* &&
2350 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2351 exit $exit_status
2353 for ac_signal in 1 2 13 15; do
2354 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2355 done
2356 ac_signal=0
2358 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2359 rm -f -r conftest* confdefs.h
2361 $as_echo "/* confdefs.h */" > confdefs.h
2363 # Predefined preprocessor variables.
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_NAME "$PACKAGE_NAME"
2367 _ACEOF
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2371 _ACEOF
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2375 _ACEOF
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_STRING "$PACKAGE_STRING"
2379 _ACEOF
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2383 _ACEOF
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_URL "$PACKAGE_URL"
2387 _ACEOF
2390 # Let the site file select an alternate cache file if it wants to.
2391 # Prefer an explicitly selected file to automatically selected ones.
2392 ac_site_file1=NONE
2393 ac_site_file2=NONE
2394 if test -n "$CONFIG_SITE"; then
2395 # We do not want a PATH search for config.site.
2396 case $CONFIG_SITE in #((
2397 -*) ac_site_file1=./$CONFIG_SITE;;
2398 */*) ac_site_file1=$CONFIG_SITE;;
2399 *) ac_site_file1=./$CONFIG_SITE;;
2400 esac
2401 elif test "x$prefix" != xNONE; then
2402 ac_site_file1=$prefix/share/config.site
2403 ac_site_file2=$prefix/etc/config.site
2404 else
2405 ac_site_file1=$ac_default_prefix/share/config.site
2406 ac_site_file2=$ac_default_prefix/etc/config.site
2408 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2410 test "x$ac_site_file" = xNONE && continue
2411 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2413 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2414 sed 's/^/| /' "$ac_site_file" >&5
2415 . "$ac_site_file" \
2416 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2418 as_fn_error $? "failed to load site script $ac_site_file
2419 See \`config.log' for more details" "$LINENO" 5 ; }
2421 done
2423 if test -r "$cache_file"; then
2424 # Some versions of bash will fail to source /dev/null (special files
2425 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2426 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2428 $as_echo "$as_me: loading cache $cache_file" >&6;}
2429 case $cache_file in
2430 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2431 *) . "./$cache_file";;
2432 esac
2434 else
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2436 $as_echo "$as_me: creating cache $cache_file" >&6;}
2437 >$cache_file
2440 as_fn_append ac_header_list " stdlib.h"
2441 as_fn_append ac_header_list " unistd.h"
2442 as_fn_append ac_header_list " sys/param.h"
2443 # Check that the precious variables saved in the cache have kept the same
2444 # value.
2445 ac_cache_corrupted=false
2446 for ac_var in $ac_precious_vars; do
2447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2448 eval ac_new_set=\$ac_env_${ac_var}_set
2449 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2450 eval ac_new_val=\$ac_env_${ac_var}_value
2451 case $ac_old_set,$ac_new_set in
2452 set,)
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2454 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2455 ac_cache_corrupted=: ;;
2456 ,set)
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2458 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2459 ac_cache_corrupted=: ;;
2460 ,);;
2462 if test "x$ac_old_val" != "x$ac_new_val"; then
2463 # differences in whitespace do not lead to failure.
2464 ac_old_val_w=`echo x $ac_old_val`
2465 ac_new_val_w=`echo x $ac_new_val`
2466 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2468 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2469 ac_cache_corrupted=:
2470 else
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2472 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2473 eval $ac_var=\$ac_old_val
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2476 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2478 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2479 fi;;
2480 esac
2481 # Pass precious variables to config.status.
2482 if test "$ac_new_set" = set; then
2483 case $ac_new_val in
2484 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2485 *) ac_arg=$ac_var=$ac_new_val ;;
2486 esac
2487 case " $ac_configure_args " in
2488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2489 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2490 esac
2492 done
2493 if $ac_cache_corrupted; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2497 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2498 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2500 ## -------------------- ##
2501 ## Main body of script. ##
2502 ## -------------------- ##
2504 ac_ext=c
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2512 ac_aux_dir=
2513 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2514 if test -f "$ac_dir/install-sh"; then
2515 ac_aux_dir=$ac_dir
2516 ac_install_sh="$ac_aux_dir/install-sh -c"
2517 break
2518 elif test -f "$ac_dir/install.sh"; then
2519 ac_aux_dir=$ac_dir
2520 ac_install_sh="$ac_aux_dir/install.sh -c"
2521 break
2522 elif test -f "$ac_dir/shtool"; then
2523 ac_aux_dir=$ac_dir
2524 ac_install_sh="$ac_aux_dir/shtool install -c"
2525 break
2527 done
2528 if test -z "$ac_aux_dir"; then
2529 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2532 # These three variables are undocumented and unsupported,
2533 # and are intended to be withdrawn in a future Autoconf release.
2534 # They can cause serious problems if a builder's source tree is in a directory
2535 # whose full name contains unusual characters.
2536 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2537 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2538 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2542 # Check what host we are running on.
2543 # If a target is not suggested, we use this one.
2544 # Note that what we call a target, Autoconf calls a host.
2545 # Make sure we can run config.sub.
2546 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2547 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2550 $as_echo_n "checking build system type... " >&6; }
2551 if test "${ac_cv_build+set}" = set; then :
2552 $as_echo_n "(cached) " >&6
2553 else
2554 ac_build_alias=$build_alias
2555 test "x$ac_build_alias" = x &&
2556 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2557 test "x$ac_build_alias" = x &&
2558 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2559 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2560 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2564 $as_echo "$ac_cv_build" >&6; }
2565 case $ac_cv_build in
2566 *-*-*) ;;
2567 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2568 esac
2569 build=$ac_cv_build
2570 ac_save_IFS=$IFS; IFS='-'
2571 set x $ac_cv_build
2572 shift
2573 build_cpu=$1
2574 build_vendor=$2
2575 shift; shift
2576 # Remember, the first character of IFS is used to create $*,
2577 # except with old shells:
2578 build_os=$*
2579 IFS=$ac_save_IFS
2580 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2584 $as_echo_n "checking host system type... " >&6; }
2585 if test "${ac_cv_host+set}" = set; then :
2586 $as_echo_n "(cached) " >&6
2587 else
2588 if test "x$host_alias" = x; then
2589 ac_cv_host=$ac_cv_build
2590 else
2591 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2592 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2597 $as_echo "$ac_cv_host" >&6; }
2598 case $ac_cv_host in
2599 *-*-*) ;;
2600 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2601 esac
2602 host=$ac_cv_host
2603 ac_save_IFS=$IFS; IFS='-'
2604 set x $ac_cv_host
2605 shift
2606 host_cpu=$1
2607 host_vendor=$2
2608 shift; shift
2609 # Remember, the first character of IFS is used to create $*,
2610 # except with old shells:
2611 host_os=$*
2612 IFS=$ac_save_IFS
2613 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2617 # The AROS target is slightly different to the normal GNU style
2618 # format. We don't have the middle part, and we reverse the order
2619 # of the $(CPU) and $(OS) bits.
2621 # Don't strip the version of the target yet, it might be
2622 # useful on some systems.
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2625 $as_echo_n "checking for AROS style target... " >&6; }
2627 if test "$target" = "NONE" ; then
2628 target=$host_os-$host_cpu
2629 else
2630 if test "$target" = "" ; then
2631 target=$host_os-$host_cpu
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2635 $as_echo "$target" >&6; }
2637 if test "$host_os" = "mingw32" ; then
2638 PWDCMD="pwd -W"
2641 #don't know where else to put this...
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking building AROS in" >&5
2643 $as_echo_n "checking building AROS in... " >&6; }
2644 AROS_BUILDDIR=`${PWDCMD-pwd}`
2645 AROS_BUILDDIR_UNIX=${PWD}
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2647 $as_echo "$AROS_BUILDDIR" >&6; }
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS source in" >&5
2650 $as_echo_n "checking AROS source in... " >&6; }
2651 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2652 SRCDIR=${srcpwd}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2654 $as_echo "$SRCDIR" >&6; }
2656 # Parse the target field into something useful.
2658 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2659 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2662 aros_default_wbwidth=800
2663 aros_default_wbheight=600
2664 aros_default_wbdepth=4
2667 # The first step is to find the host binaries.
2668 # Check for a compiler.
2669 ac_ext=c
2670 ac_cpp='$CPP $CPPFLAGS'
2671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674 if test -n "$ac_tool_prefix"; then
2675 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2676 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2678 $as_echo_n "checking for $ac_word... " >&6; }
2679 if test "${ac_cv_prog_CC+set}" = set; then :
2680 $as_echo_n "(cached) " >&6
2681 else
2682 if test -n "$CC"; then
2683 ac_cv_prog_CC="$CC" # Let the user override the test.
2684 else
2685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2686 for as_dir in $PATH
2688 IFS=$as_save_IFS
2689 test -z "$as_dir" && as_dir=.
2690 for ac_exec_ext in '' $ac_executable_extensions; do
2691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2692 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2694 break 2
2696 done
2697 done
2698 IFS=$as_save_IFS
2702 CC=$ac_cv_prog_CC
2703 if test -n "$CC"; then
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2705 $as_echo "$CC" >&6; }
2706 else
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2708 $as_echo "no" >&6; }
2713 if test -z "$ac_cv_prog_CC"; then
2714 ac_ct_CC=$CC
2715 # Extract the first word of "gcc", so it can be a program name with args.
2716 set dummy gcc; ac_word=$2
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718 $as_echo_n "checking for $ac_word... " >&6; }
2719 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2720 $as_echo_n "(cached) " >&6
2721 else
2722 if test -n "$ac_ct_CC"; then
2723 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2724 else
2725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 for as_dir in $PATH
2728 IFS=$as_save_IFS
2729 test -z "$as_dir" && as_dir=.
2730 for ac_exec_ext in '' $ac_executable_extensions; do
2731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732 ac_cv_prog_ac_ct_CC="gcc"
2733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734 break 2
2736 done
2737 done
2738 IFS=$as_save_IFS
2742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2743 if test -n "$ac_ct_CC"; then
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2745 $as_echo "$ac_ct_CC" >&6; }
2746 else
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748 $as_echo "no" >&6; }
2751 if test "x$ac_ct_CC" = x; then
2752 CC=""
2753 else
2754 case $cross_compiling:$ac_tool_warned in
2755 yes:)
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2758 ac_tool_warned=yes ;;
2759 esac
2760 CC=$ac_ct_CC
2762 else
2763 CC="$ac_cv_prog_CC"
2766 if test -z "$CC"; then
2767 if test -n "$ac_tool_prefix"; then
2768 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2769 set dummy ${ac_tool_prefix}cc; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if test "${ac_cv_prog_CC+set}" = set; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 if test -n "$CC"; then
2776 ac_cv_prog_CC="$CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2785 ac_cv_prog_CC="${ac_tool_prefix}cc"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2789 done
2790 done
2791 IFS=$as_save_IFS
2795 CC=$ac_cv_prog_CC
2796 if test -n "$CC"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2798 $as_echo "$CC" >&6; }
2799 else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2807 if test -z "$CC"; then
2808 # Extract the first word of "cc", so it can be a program name with args.
2809 set dummy cc; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if test "${ac_cv_prog_CC+set}" = set; then :
2813 $as_echo_n "(cached) " >&6
2814 else
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC="$CC" # Let the user override the test.
2817 else
2818 ac_prog_rejected=no
2819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820 for as_dir in $PATH
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2826 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2827 ac_prog_rejected=yes
2828 continue
2830 ac_cv_prog_CC="cc"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 break 2
2834 done
2835 done
2836 IFS=$as_save_IFS
2838 if test $ac_prog_rejected = yes; then
2839 # We found a bogon in the path, so make sure we never use it.
2840 set dummy $ac_cv_prog_CC
2841 shift
2842 if test $# != 0; then
2843 # We chose a different compiler from the bogus one.
2844 # However, it has the same basename, so the bogon will be chosen
2845 # first if we set CC to just the basename; use the full file name.
2846 shift
2847 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2852 CC=$ac_cv_prog_CC
2853 if test -n "$CC"; then
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2855 $as_echo "$CC" >&6; }
2856 else
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2858 $as_echo "no" >&6; }
2863 if test -z "$CC"; then
2864 if test -n "$ac_tool_prefix"; then
2865 for ac_prog in cl.exe
2867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2870 $as_echo_n "checking for $ac_word... " >&6; }
2871 if test "${ac_cv_prog_CC+set}" = set; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2880 IFS=$as_save_IFS
2881 test -z "$as_dir" && as_dir=.
2882 for ac_exec_ext in '' $ac_executable_extensions; do
2883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2884 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2886 break 2
2888 done
2889 done
2890 IFS=$as_save_IFS
2894 CC=$ac_cv_prog_CC
2895 if test -n "$CC"; then
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2897 $as_echo "$CC" >&6; }
2898 else
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2900 $as_echo "no" >&6; }
2904 test -n "$CC" && break
2905 done
2907 if test -z "$CC"; then
2908 ac_ct_CC=$CC
2909 for ac_prog in cl.exe
2911 # Extract the first word of "$ac_prog", so it can be a program name with args.
2912 set dummy $ac_prog; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2916 $as_echo_n "(cached) " >&6
2917 else
2918 if test -n "$ac_ct_CC"; then
2919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
2926 for ac_exec_ext in '' $ac_executable_extensions; do
2927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928 ac_cv_prog_ac_ct_CC="$ac_prog"
2929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930 break 2
2932 done
2933 done
2934 IFS=$as_save_IFS
2938 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939 if test -n "$ac_ct_CC"; then
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2941 $as_echo "$ac_ct_CC" >&6; }
2942 else
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2948 test -n "$ac_ct_CC" && break
2949 done
2951 if test "x$ac_ct_CC" = x; then
2952 CC=""
2953 else
2954 case $cross_compiling:$ac_tool_warned in
2955 yes:)
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958 ac_tool_warned=yes ;;
2959 esac
2960 CC=$ac_ct_CC
2967 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 as_fn_error $? "no acceptable C compiler found in \$PATH
2970 See \`config.log' for more details" "$LINENO" 5 ; }
2972 # Provide some information about the compiler.
2973 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2974 set X $ac_compile
2975 ac_compiler=$2
2976 for ac_option in --version -v -V -qversion; do
2977 { { ac_try="$ac_compiler $ac_option >&5"
2978 case "(($ac_try" in
2979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2980 *) ac_try_echo=$ac_try;;
2981 esac
2982 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2983 $as_echo "$ac_try_echo"; } >&5
2984 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2985 ac_status=$?
2986 if test -s conftest.err; then
2987 sed '10a\
2988 ... rest of stderr output deleted ...
2989 10q' conftest.err >conftest.er1
2990 cat conftest.er1 >&5
2992 rm -f conftest.er1 conftest.err
2993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2994 test $ac_status = 0; }
2995 done
2997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2998 /* end confdefs.h. */
3001 main ()
3005 return 0;
3007 _ACEOF
3008 ac_clean_files_save=$ac_clean_files
3009 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3010 # Try to create an executable without -o first, disregard a.out.
3011 # It will help us diagnose broken compilers, and finding out an intuition
3012 # of exeext.
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3014 $as_echo_n "checking whether the C compiler works... " >&6; }
3015 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3017 # The possible output files:
3018 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3020 ac_rmfiles=
3021 for ac_file in $ac_files
3023 case $ac_file in
3024 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3025 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3026 esac
3027 done
3028 rm -f $ac_rmfiles
3030 if { { ac_try="$ac_link_default"
3031 case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3034 esac
3035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3036 $as_echo "$ac_try_echo"; } >&5
3037 (eval "$ac_link_default") 2>&5
3038 ac_status=$?
3039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3040 test $ac_status = 0; }; then :
3041 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3042 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3043 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3044 # so that the user can short-circuit this test for compilers unknown to
3045 # Autoconf.
3046 for ac_file in $ac_files ''
3048 test -f "$ac_file" || continue
3049 case $ac_file in
3050 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3052 [ab].out )
3053 # We found the default executable, but exeext='' is most
3054 # certainly right.
3055 break;;
3056 *.* )
3057 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3058 then :; else
3059 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3061 # We set ac_cv_exeext here because the later test for it is not
3062 # safe: cross compilers may not add the suffix if given an `-o'
3063 # argument, so we may need to know it at that point already.
3064 # Even if this section looks crufty: it has the advantage of
3065 # actually working.
3066 break;;
3068 break;;
3069 esac
3070 done
3071 test "$ac_cv_exeext" = no && ac_cv_exeext=
3073 else
3074 ac_file=''
3076 if test -z "$ac_file"; then :
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 $as_echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3084 as_fn_error 77 "C compiler cannot create executables
3085 See \`config.log' for more details" "$LINENO" 5 ; }
3086 else
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3088 $as_echo "yes" >&6; }
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3091 $as_echo_n "checking for C compiler default output file name... " >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3093 $as_echo "$ac_file" >&6; }
3094 ac_exeext=$ac_cv_exeext
3096 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3097 ac_clean_files=$ac_clean_files_save
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3099 $as_echo_n "checking for suffix of executables... " >&6; }
3100 if { { ac_try="$ac_link"
3101 case "(($ac_try" in
3102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3103 *) ac_try_echo=$ac_try;;
3104 esac
3105 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3106 $as_echo "$ac_try_echo"; } >&5
3107 (eval "$ac_link") 2>&5
3108 ac_status=$?
3109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3110 test $ac_status = 0; }; then :
3111 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3112 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3113 # work properly (i.e., refer to `conftest.exe'), while it won't with
3114 # `rm'.
3115 for ac_file in conftest.exe conftest conftest.*; do
3116 test -f "$ac_file" || continue
3117 case $ac_file in
3118 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3119 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3120 break;;
3121 * ) break;;
3122 esac
3123 done
3124 else
3125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3127 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3128 See \`config.log' for more details" "$LINENO" 5 ; }
3130 rm -f conftest conftest$ac_cv_exeext
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3132 $as_echo "$ac_cv_exeext" >&6; }
3134 rm -f conftest.$ac_ext
3135 EXEEXT=$ac_cv_exeext
3136 ac_exeext=$EXEEXT
3137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138 /* end confdefs.h. */
3139 #include <stdio.h>
3141 main ()
3143 FILE *f = fopen ("conftest.out", "w");
3144 return ferror (f) || fclose (f) != 0;
3147 return 0;
3149 _ACEOF
3150 ac_clean_files="$ac_clean_files conftest.out"
3151 # Check that the compiler produces executables we can run. If not, either
3152 # the compiler is broken, or we cross compile.
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3154 $as_echo_n "checking whether we are cross compiling... " >&6; }
3155 if test "$cross_compiling" != yes; then
3156 { { ac_try="$ac_link"
3157 case "(($ac_try" in
3158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3159 *) ac_try_echo=$ac_try;;
3160 esac
3161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3162 $as_echo "$ac_try_echo"; } >&5
3163 (eval "$ac_link") 2>&5
3164 ac_status=$?
3165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3166 test $ac_status = 0; }
3167 if { ac_try='./conftest$ac_cv_exeext'
3168 { { case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3173 $as_echo "$ac_try_echo"; } >&5
3174 (eval "$ac_try") 2>&5
3175 ac_status=$?
3176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3177 test $ac_status = 0; }; }; then
3178 cross_compiling=no
3179 else
3180 if test "$cross_compiling" = maybe; then
3181 cross_compiling=yes
3182 else
3183 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3184 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3185 as_fn_error $? "cannot run C compiled programs.
3186 If you meant to cross compile, use \`--host'.
3187 See \`config.log' for more details" "$LINENO" 5 ; }
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3192 $as_echo "$cross_compiling" >&6; }
3194 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3195 ac_clean_files=$ac_clean_files_save
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3197 $as_echo_n "checking for suffix of object files... " >&6; }
3198 if test "${ac_cv_objext+set}" = set; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3202 /* end confdefs.h. */
3205 main ()
3209 return 0;
3211 _ACEOF
3212 rm -f conftest.o conftest.obj
3213 if { { ac_try="$ac_compile"
3214 case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217 esac
3218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219 $as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_compile") 2>&5
3221 ac_status=$?
3222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }; then :
3224 for ac_file in conftest.o conftest.obj conftest.*; do
3225 test -f "$ac_file" || continue;
3226 case $ac_file in
3227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3228 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3229 break;;
3230 esac
3231 done
3232 else
3233 $as_echo "$as_me: failed program was:" >&5
3234 sed 's/^/| /' conftest.$ac_ext >&5
3236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3238 as_fn_error $? "cannot compute suffix of object files: cannot compile
3239 See \`config.log' for more details" "$LINENO" 5 ; }
3241 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3244 $as_echo "$ac_cv_objext" >&6; }
3245 OBJEXT=$ac_cv_objext
3246 ac_objext=$OBJEXT
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3248 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3249 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3250 $as_echo_n "(cached) " >&6
3251 else
3252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253 /* end confdefs.h. */
3256 main ()
3258 #ifndef __GNUC__
3259 choke me
3260 #endif
3263 return 0;
3265 _ACEOF
3266 if ac_fn_c_try_compile "$LINENO"; then :
3267 ac_compiler_gnu=yes
3268 else
3269 ac_compiler_gnu=no
3271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3276 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3277 if test $ac_compiler_gnu = yes; then
3278 GCC=yes
3279 else
3280 GCC=
3282 ac_test_CFLAGS=${CFLAGS+set}
3283 ac_save_CFLAGS=$CFLAGS
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3285 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3286 if test "${ac_cv_prog_cc_g+set}" = set; then :
3287 $as_echo_n "(cached) " >&6
3288 else
3289 ac_save_c_werror_flag=$ac_c_werror_flag
3290 ac_c_werror_flag=yes
3291 ac_cv_prog_cc_g=no
3292 CFLAGS="-g"
3293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3294 /* end confdefs.h. */
3297 main ()
3301 return 0;
3303 _ACEOF
3304 if ac_fn_c_try_compile "$LINENO"; then :
3305 ac_cv_prog_cc_g=yes
3306 else
3307 CFLAGS=""
3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309 /* end confdefs.h. */
3312 main ()
3316 return 0;
3318 _ACEOF
3319 if ac_fn_c_try_compile "$LINENO"; then :
3321 else
3322 ac_c_werror_flag=$ac_save_c_werror_flag
3323 CFLAGS="-g"
3324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3325 /* end confdefs.h. */
3328 main ()
3332 return 0;
3334 _ACEOF
3335 if ac_fn_c_try_compile "$LINENO"; then :
3336 ac_cv_prog_cc_g=yes
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 ac_c_werror_flag=$ac_save_c_werror_flag
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3346 $as_echo "$ac_cv_prog_cc_g" >&6; }
3347 if test "$ac_test_CFLAGS" = set; then
3348 CFLAGS=$ac_save_CFLAGS
3349 elif test $ac_cv_prog_cc_g = yes; then
3350 if test "$GCC" = yes; then
3351 CFLAGS="-g -O2"
3352 else
3353 CFLAGS="-g"
3355 else
3356 if test "$GCC" = yes; then
3357 CFLAGS="-O2"
3358 else
3359 CFLAGS=
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3363 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3364 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 ac_cv_prog_cc_c89=no
3368 ac_save_CC=$CC
3369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3371 #include <stdarg.h>
3372 #include <stdio.h>
3373 #include <sys/types.h>
3374 #include <sys/stat.h>
3375 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3376 struct buf { int x; };
3377 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3378 static char *e (p, i)
3379 char **p;
3380 int i;
3382 return p[i];
3384 static char *f (char * (*g) (char **, int), char **p, ...)
3386 char *s;
3387 va_list v;
3388 va_start (v,p);
3389 s = g (p, va_arg (v,int));
3390 va_end (v);
3391 return s;
3394 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3395 function prototypes and stuff, but not '\xHH' hex character constants.
3396 These don't provoke an error unfortunately, instead are silently treated
3397 as 'x'. The following induces an error, until -std is added to get
3398 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3399 array size at least. It's necessary to write '\x00'==0 to get something
3400 that's true only with -std. */
3401 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3403 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3404 inside strings and character constants. */
3405 #define FOO(x) 'x'
3406 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3408 int test (int i, double x);
3409 struct s1 {int (*f) (int a);};
3410 struct s2 {int (*f) (double a);};
3411 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3412 int argc;
3413 char **argv;
3415 main ()
3417 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3419 return 0;
3421 _ACEOF
3422 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3423 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3425 CC="$ac_save_CC $ac_arg"
3426 if ac_fn_c_try_compile "$LINENO"; then :
3427 ac_cv_prog_cc_c89=$ac_arg
3429 rm -f core conftest.err conftest.$ac_objext
3430 test "x$ac_cv_prog_cc_c89" != "xno" && break
3431 done
3432 rm -f conftest.$ac_ext
3433 CC=$ac_save_CC
3436 # AC_CACHE_VAL
3437 case "x$ac_cv_prog_cc_c89" in
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3440 $as_echo "none needed" >&6; } ;;
3441 xno)
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3443 $as_echo "unsupported" >&6; } ;;
3445 CC="$CC $ac_cv_prog_cc_c89"
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3447 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3448 esac
3449 if test "x$ac_cv_prog_cc_c89" != xno; then :
3453 ac_ext=c
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3459 case $ac_cv_prog_cc_stdc in #(
3460 no) :
3461 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3462 *) :
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3464 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3465 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3466 $as_echo_n "(cached) " >&6
3467 else
3468 ac_cv_prog_cc_c99=no
3469 ac_save_CC=$CC
3470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471 /* end confdefs.h. */
3472 #include <stdarg.h>
3473 #include <stdbool.h>
3474 #include <stdlib.h>
3475 #include <wchar.h>
3476 #include <stdio.h>
3478 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3479 #define debug(...) fprintf (stderr, __VA_ARGS__)
3480 #define showlist(...) puts (#__VA_ARGS__)
3481 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3482 static void
3483 test_varargs_macros (void)
3485 int x = 1234;
3486 int y = 5678;
3487 debug ("Flag");
3488 debug ("X = %d\n", x);
3489 showlist (The first, second, and third items.);
3490 report (x>y, "x is %d but y is %d", x, y);
3493 // Check long long types.
3494 #define BIG64 18446744073709551615ull
3495 #define BIG32 4294967295ul
3496 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3497 #if !BIG_OK
3498 your preprocessor is broken;
3499 #endif
3500 #if BIG_OK
3501 #else
3502 your preprocessor is broken;
3503 #endif
3504 static long long int bignum = -9223372036854775807LL;
3505 static unsigned long long int ubignum = BIG64;
3507 struct incomplete_array
3509 int datasize;
3510 double data[];
3513 struct named_init {
3514 int number;
3515 const wchar_t *name;
3516 double average;
3519 typedef const char *ccp;
3521 static inline int
3522 test_restrict (ccp restrict text)
3524 // See if C++-style comments work.
3525 // Iterate through items via the restricted pointer.
3526 // Also check for declarations in for loops.
3527 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3528 continue;
3529 return 0;
3532 // Check varargs and va_copy.
3533 static void
3534 test_varargs (const char *format, ...)
3536 va_list args;
3537 va_start (args, format);
3538 va_list args_copy;
3539 va_copy (args_copy, args);
3541 const char *str;
3542 int number;
3543 float fnumber;
3545 while (*format)
3547 switch (*format++)
3549 case 's': // string
3550 str = va_arg (args_copy, const char *);
3551 break;
3552 case 'd': // int
3553 number = va_arg (args_copy, int);
3554 break;
3555 case 'f': // float
3556 fnumber = va_arg (args_copy, double);
3557 break;
3558 default:
3559 break;
3562 va_end (args_copy);
3563 va_end (args);
3567 main ()
3570 // Check bool.
3571 _Bool success = false;
3573 // Check restrict.
3574 if (test_restrict ("String literal") == 0)
3575 success = true;
3576 char *restrict newvar = "Another string";
3578 // Check varargs.
3579 test_varargs ("s, d' f .", "string", 65, 34.234);
3580 test_varargs_macros ();
3582 // Check flexible array members.
3583 struct incomplete_array *ia =
3584 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3585 ia->datasize = 10;
3586 for (int i = 0; i < ia->datasize; ++i)
3587 ia->data[i] = i * 1.234;
3589 // Check named initializers.
3590 struct named_init ni = {
3591 .number = 34,
3592 .name = L"Test wide string",
3593 .average = 543.34343,
3596 ni.number = 58;
3598 int dynamic_array[ni.number];
3599 dynamic_array[ni.number - 1] = 543;
3601 // work around unused variable warnings
3602 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3603 || dynamic_array[ni.number - 1] != 543);
3606 return 0;
3608 _ACEOF
3609 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3611 CC="$ac_save_CC $ac_arg"
3612 if ac_fn_c_try_compile "$LINENO"; then :
3613 ac_cv_prog_cc_c99=$ac_arg
3615 rm -f core conftest.err conftest.$ac_objext
3616 test "x$ac_cv_prog_cc_c99" != "xno" && break
3617 done
3618 rm -f conftest.$ac_ext
3619 CC=$ac_save_CC
3622 # AC_CACHE_VAL
3623 case "x$ac_cv_prog_cc_c99" in
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3626 $as_echo "none needed" >&6; } ;;
3627 xno)
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3629 $as_echo "unsupported" >&6; } ;;
3631 CC="$CC $ac_cv_prog_cc_c99"
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3633 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3634 esac
3635 if test "x$ac_cv_prog_cc_c99" != xno; then :
3636 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3637 else
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3639 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3640 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3641 $as_echo_n "(cached) " >&6
3642 else
3643 ac_cv_prog_cc_c89=no
3644 ac_save_CC=$CC
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3647 #include <stdarg.h>
3648 #include <stdio.h>
3649 #include <sys/types.h>
3650 #include <sys/stat.h>
3651 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3652 struct buf { int x; };
3653 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3654 static char *e (p, i)
3655 char **p;
3656 int i;
3658 return p[i];
3660 static char *f (char * (*g) (char **, int), char **p, ...)
3662 char *s;
3663 va_list v;
3664 va_start (v,p);
3665 s = g (p, va_arg (v,int));
3666 va_end (v);
3667 return s;
3670 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3671 function prototypes and stuff, but not '\xHH' hex character constants.
3672 These don't provoke an error unfortunately, instead are silently treated
3673 as 'x'. The following induces an error, until -std is added to get
3674 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3675 array size at least. It's necessary to write '\x00'==0 to get something
3676 that's true only with -std. */
3677 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3679 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3680 inside strings and character constants. */
3681 #define FOO(x) 'x'
3682 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3684 int test (int i, double x);
3685 struct s1 {int (*f) (int a);};
3686 struct s2 {int (*f) (double a);};
3687 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3688 int argc;
3689 char **argv;
3691 main ()
3693 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3695 return 0;
3697 _ACEOF
3698 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3699 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3701 CC="$ac_save_CC $ac_arg"
3702 if ac_fn_c_try_compile "$LINENO"; then :
3703 ac_cv_prog_cc_c89=$ac_arg
3705 rm -f core conftest.err conftest.$ac_objext
3706 test "x$ac_cv_prog_cc_c89" != "xno" && break
3707 done
3708 rm -f conftest.$ac_ext
3709 CC=$ac_save_CC
3712 # AC_CACHE_VAL
3713 case "x$ac_cv_prog_cc_c89" in
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3716 $as_echo "none needed" >&6; } ;;
3717 xno)
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3719 $as_echo "unsupported" >&6; } ;;
3721 CC="$CC $ac_cv_prog_cc_c89"
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3723 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3724 esac
3725 if test "x$ac_cv_prog_cc_c89" != xno; then :
3726 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3727 else
3728 ac_cv_prog_cc_stdc=no
3733 esac
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3735 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3736 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3737 $as_echo_n "(cached) " >&6
3740 case $ac_cv_prog_cc_stdc in #(
3741 no) :
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3743 $as_echo "unsupported" >&6; } ;; #(
3744 '') :
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3746 $as_echo "none needed" >&6; } ;; #(
3747 *) :
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3749 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3750 esac
3752 ac_ext=c
3753 ac_cpp='$CPP $CPPFLAGS'
3754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3758 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3759 # On Suns, sometimes $CPP names a directory.
3760 if test -n "$CPP" && test -d "$CPP"; then
3761 CPP=
3763 if test -z "$CPP"; then
3764 if test "${ac_cv_prog_CPP+set}" = set; then :
3765 $as_echo_n "(cached) " >&6
3766 else
3767 # Double quotes because CPP needs to be expanded
3768 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3770 ac_preproc_ok=false
3771 for ac_c_preproc_warn_flag in '' yes
3773 # Use a header file that comes with gcc, so configuring glibc
3774 # with a fresh cross-compiler works.
3775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3776 # <limits.h> exists even on freestanding compilers.
3777 # On the NeXT, cc -E runs the code through the compiler's parser,
3778 # not just through cpp. "Syntax error" is here to catch this case.
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781 #ifdef __STDC__
3782 # include <limits.h>
3783 #else
3784 # include <assert.h>
3785 #endif
3786 Syntax error
3787 _ACEOF
3788 if ac_fn_c_try_cpp "$LINENO"; then :
3790 else
3791 # Broken: fails on valid input.
3792 continue
3794 rm -f conftest.err conftest.i conftest.$ac_ext
3796 # OK, works on sane cases. Now check whether nonexistent headers
3797 # can be detected and how.
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3800 #include <ac_nonexistent.h>
3801 _ACEOF
3802 if ac_fn_c_try_cpp "$LINENO"; then :
3803 # Broken: success on invalid input.
3804 continue
3805 else
3806 # Passes both tests.
3807 ac_preproc_ok=:
3808 break
3810 rm -f conftest.err conftest.i conftest.$ac_ext
3812 done
3813 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3814 rm -f conftest.i conftest.err conftest.$ac_ext
3815 if $ac_preproc_ok; then :
3816 break
3819 done
3820 ac_cv_prog_CPP=$CPP
3823 CPP=$ac_cv_prog_CPP
3824 else
3825 ac_cv_prog_CPP=$CPP
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3828 $as_echo "$CPP" >&6; }
3829 ac_preproc_ok=false
3830 for ac_c_preproc_warn_flag in '' yes
3832 # Use a header file that comes with gcc, so configuring glibc
3833 # with a fresh cross-compiler works.
3834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3835 # <limits.h> exists even on freestanding compilers.
3836 # On the NeXT, cc -E runs the code through the compiler's parser,
3837 # not just through cpp. "Syntax error" is here to catch this case.
3838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3839 /* end confdefs.h. */
3840 #ifdef __STDC__
3841 # include <limits.h>
3842 #else
3843 # include <assert.h>
3844 #endif
3845 Syntax error
3846 _ACEOF
3847 if ac_fn_c_try_cpp "$LINENO"; then :
3849 else
3850 # Broken: fails on valid input.
3851 continue
3853 rm -f conftest.err conftest.i conftest.$ac_ext
3855 # OK, works on sane cases. Now check whether nonexistent headers
3856 # can be detected and how.
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3859 #include <ac_nonexistent.h>
3860 _ACEOF
3861 if ac_fn_c_try_cpp "$LINENO"; then :
3862 # Broken: success on invalid input.
3863 continue
3864 else
3865 # Passes both tests.
3866 ac_preproc_ok=:
3867 break
3869 rm -f conftest.err conftest.i conftest.$ac_ext
3871 done
3872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3873 rm -f conftest.i conftest.err conftest.$ac_ext
3874 if $ac_preproc_ok; then :
3876 else
3877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3879 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3880 See \`config.log' for more details" "$LINENO" 5 ; }
3883 ac_ext=c
3884 ac_cpp='$CPP $CPPFLAGS'
3885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3890 # Check for a compatible awk
3891 for ac_prog in gawk nawk
3893 # Extract the first word of "$ac_prog", so it can be a program name with args.
3894 set dummy $ac_prog; ac_word=$2
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896 $as_echo_n "checking for $ac_word... " >&6; }
3897 if test "${ac_cv_prog_AWK+set}" = set; then :
3898 $as_echo_n "(cached) " >&6
3899 else
3900 if test -n "$AWK"; then
3901 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3910 ac_cv_prog_AWK="$ac_prog"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3912 break 2
3914 done
3915 done
3916 IFS=$as_save_IFS
3920 AWK=$ac_cv_prog_AWK
3921 if test -n "$AWK"; then
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3923 $as_echo "$AWK" >&6; }
3924 else
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3926 $as_echo "no" >&6; }
3930 test -n "$AWK" && break
3931 done
3933 if test "$AWK" = ""; then
3934 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3936 # Extract the first word of "mmake", so it can be a program name with args.
3937 set dummy mmake; ac_word=$2
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3939 $as_echo_n "checking for $ac_word... " >&6; }
3940 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 if test -n "$MMAKE"; then
3944 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3945 else
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3947 for as_dir in $PATH
3949 IFS=$as_save_IFS
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3953 ac_cv_prog_MMAKE="mmake "
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 break 2
3957 done
3958 done
3959 IFS=$as_save_IFS
3963 MMAKE=$ac_cv_prog_MMAKE
3964 if test -n "$MMAKE"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3966 $as_echo "$MMAKE" >&6; }
3967 else
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3974 # Perform some default variable assignments. Note all of these will be
3975 # Regenerated from the script, so there is no need to cache them.
3977 aros_host_cc="$CC"
3978 if test "$GCC" = "yes"; then
3979 aros_gcc_ld=`$CC -print-prog-name=ld`
3980 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3981 set dummy `basename $aros_gcc_ld`; ac_word=$2
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3983 $as_echo_n "checking for $ac_word... " >&6; }
3984 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3985 $as_echo_n "(cached) " >&6
3986 else
3987 case $aros_host_ld in
3988 [\\/]* | ?:[\\/]*)
3989 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3993 for as_dir in `dirname $aros_gcc_ld`
3995 IFS=$as_save_IFS
3996 test -z "$as_dir" && as_dir=.
3997 for ac_exec_ext in '' $ac_executable_extensions; do
3998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3999 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4001 break 2
4003 done
4004 done
4005 IFS=$as_save_IFS
4008 esac
4010 aros_host_ld=$ac_cv_path_aros_host_ld
4011 if test -n "$aros_host_ld"; then
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4013 $as_echo "$aros_host_ld" >&6; }
4014 else
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4016 $as_echo "no" >&6; }
4021 if test "$aros_host_ld" = ""; then
4022 # Extract the first word of "ld", so it can be a program name with args.
4023 set dummy ld; ac_word=$2
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4025 $as_echo_n "checking for $ac_word... " >&6; }
4026 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4027 $as_echo_n "(cached) " >&6
4028 else
4029 case $aros_host_ld in
4030 [\\/]* | ?:[\\/]*)
4031 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 for as_dir in $PATH
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
4040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4041 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4045 done
4046 done
4047 IFS=$as_save_IFS
4050 esac
4052 aros_host_ld=$ac_cv_path_aros_host_ld
4053 if test -n "$aros_host_ld"; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4055 $as_echo "$aros_host_ld" >&6; }
4056 else
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 $as_echo "no" >&6; }
4063 if test "$aros_host_ld" = ""; then
4064 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4066 aros_host_make="make"
4067 aros_host_cflags=$CFLAGS
4068 aros_host_ldflags=$LDFLAGS
4069 aros_host_debug="-g -O0"
4070 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4071 aros_host_mkargs="--no-print-directory"
4072 aros_host_incl="/usr/include"
4073 aros_host_exe_suffix="$EXEEXT"
4074 aros_host_lib_suffix=""
4076 for ac_prog in aclocal aclocal19 aclocal-1.9
4078 # Extract the first word of "$ac_prog", so it can be a program name with args.
4079 set dummy $ac_prog; ac_word=$2
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4081 $as_echo_n "checking for $ac_word... " >&6; }
4082 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 if test -n "$aros_host_aclocal"; then
4086 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4087 else
4088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 for as_dir in $PATH
4091 IFS=$as_save_IFS
4092 test -z "$as_dir" && as_dir=.
4093 for ac_exec_ext in '' $ac_executable_extensions; do
4094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4095 ac_cv_prog_aros_host_aclocal="$ac_prog"
4096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4097 break 2
4099 done
4100 done
4101 IFS=$as_save_IFS
4105 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4106 if test -n "$aros_host_aclocal"; then
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4108 $as_echo "$aros_host_aclocal" >&6; }
4109 else
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4115 test -n "$aros_host_aclocal" && break
4116 done
4118 for ac_prog in autoconf autoconf259 autoconf253
4120 # Extract the first word of "$ac_prog", so it can be a program name with args.
4121 set dummy $ac_prog; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4125 $as_echo_n "(cached) " >&6
4126 else
4127 if test -n "$aros_host_autoconf"; then
4128 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137 ac_cv_prog_aros_host_autoconf="$ac_prog"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139 break 2
4141 done
4142 done
4143 IFS=$as_save_IFS
4147 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4148 if test -n "$aros_host_autoconf"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4150 $as_echo "$aros_host_autoconf" >&6; }
4151 else
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4157 test -n "$aros_host_autoconf" && break
4158 done
4160 for ac_prog in autoheader autoheader259 autoheader253
4162 # Extract the first word of "$ac_prog", so it can be a program name with args.
4163 set dummy $ac_prog; ac_word=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 if test -n "$aros_host_autoheader"; then
4170 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4179 ac_cv_prog_aros_host_autoheader="$ac_prog"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 break 2
4183 done
4184 done
4185 IFS=$as_save_IFS
4189 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4190 if test -n "$aros_host_autoheader"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4192 $as_echo "$aros_host_autoheader" >&6; }
4193 else
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4199 test -n "$aros_host_autoheader" && break
4200 done
4202 for ac_prog in automake automake19 automake-1.9
4204 # Extract the first word of "$ac_prog", so it can be a program name with args.
4205 set dummy $ac_prog; ac_word=$2
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 if test -n "$aros_host_automake"; then
4212 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4213 else
4214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4215 for as_dir in $PATH
4217 IFS=$as_save_IFS
4218 test -z "$as_dir" && as_dir=.
4219 for ac_exec_ext in '' $ac_executable_extensions; do
4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4221 ac_cv_prog_aros_host_automake="$ac_prog"
4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 break 2
4225 done
4226 done
4227 IFS=$as_save_IFS
4231 aros_host_automake=$ac_cv_prog_aros_host_automake
4232 if test -n "$aros_host_automake"; then
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4234 $as_echo "$aros_host_automake" >&6; }
4235 else
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4237 $as_echo "no" >&6; }
4241 test -n "$aros_host_automake" && break
4242 done
4245 if test "$aros_host_aclocal" = ""; then
4246 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4248 if test "$aros_host_automake" = ""; then
4249 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4252 case "$aros_host_cc" in
4253 *gcc*)
4254 aros_host_cc_pipe="-pipe"
4256 icc)
4257 aros_host_cc_pipe=""
4260 aros_host_cc_pipe=""
4262 esac
4264 aros_kernel_cc_includes=""
4265 aros_target_cc_includes=""
4267 # ----------------------------------------------------------------------------------------
4268 # Host-specific defaults
4270 # Override this to "yes" in order to force a specific build to use real AROS crosscompiler
4271 # instead of a wrapper script.
4272 # Useful for non-ELF hosts (like Windows and Darwin).
4273 # Can also be overriden in target section below
4274 use_aros_gcc="no"
4276 # This is the main host configuration section. It is where the host
4277 # can change the values of any variables it needs to change. We do
4278 # not look at anything that compiles to the target yet, we'll get
4279 # to that later.
4281 case "$host_os" in
4282 aros*)
4283 aros_host_arch="aros"
4284 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4285 case "$host_cpu" in
4286 *i?86*)
4287 aros_host_cpu="i386"
4289 *x86_64*)
4290 aros_host_cpu="x86_64"
4292 *powerpc*)
4293 aros_host_cpu="ppc"
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4297 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4298 aros_host_cpu="$host_cpu"
4300 esac
4303 linux*)
4304 aros_host_arch="linux"
4305 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4306 case "$host_cpu" in
4307 *i?86*)
4308 aros_host_cpu="i386"
4310 *x86_64*)
4311 aros_host_cpu="x86_64"
4313 *m68k*)
4314 aros_host_cpu="m68k"
4316 *powerpc*)
4317 aros_host_cpu="ppc"
4319 *arm*)
4320 aros_host_cpu="arm"
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4324 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4325 aros_host_cpu="$host_cpu"
4327 esac
4330 freebsd*)
4331 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4332 aros_host_make="gmake"
4333 aros_host_arch="freebsd"
4334 aros_host_cpu="i386"
4336 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4338 case $host_os in
4339 freebsd[234]*)
4340 aros_object_format="elf_i386"
4344 aros_object_format="elf_i386_fbsd"
4346 esac
4350 darwin*)
4351 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4352 aros_host_arch="darwin"
4353 use_aros_gcc="yes"
4354 android_build_os="darwin-x86"
4355 android_tool="android"
4356 default_android_sdk="/android-sdk-mac_x86"
4357 default_android_ndk="/android-ndk-r5b"
4358 case "$host_cpu" in
4359 *i?86*)
4360 aros_host_cpu="i386"
4362 *x86_64*)
4363 aros_host_cpu="x86_64"
4365 *powerpc*)
4366 aros_host_cpu="ppc"
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4370 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4371 aros_host_cpu="$host_cpu"
4373 esac
4375 aros_host_ldflags="$aros_host_ldflags -liconv"
4379 dragonfly*)
4380 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4381 aros_host_make="gmake"
4382 aros_host_arch="dragonfly"
4383 case $host_cpu in
4384 *i?86*)
4385 aros_host_cpu="i386"
4387 *amd64*)
4388 aros_host_cpu="x86_64"
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4392 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4393 aros_host_cpu="$host_cpu"
4395 esac
4398 netbsd*)
4399 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4400 aros_host_make="gmake"
4401 aros_host_arch="netbsd"
4402 case "$host_cpu" in
4403 *i?86*)
4404 aros_host_cpu="i386"
4406 *m68k*)
4407 aros_host_cpu="m68k"
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4411 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4412 aros_host_cpu="$host_cpu"
4414 esac
4415 aros_host_lib_suffix=".0.0"
4418 openbsd*)
4419 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4420 aros_host_make="gmake"
4421 aros_host_arch="openbsd"
4422 case "$host_cpu" in
4423 *i?86*)
4424 aros_host_cpu="i386"
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4428 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4429 aros_host_cpu="$host_cpu"
4431 esac
4434 solaris*)
4435 aros_host_arch="solaris"
4436 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4437 case "$host_cpu" in
4438 *i?86*)
4439 aros_host_cpu="i386"
4441 *sparc*)
4442 aros_host_cpu="sparc"
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4446 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4447 aros_host_cpu="$host_cpu"
4449 esac
4452 morphos*)
4453 aros_host_arch="morphos"
4454 aros_host_cpu="ppc"
4457 amiga*)
4458 aros_host_arch="amiga"
4459 SORT="/gg/bin/sort"
4460 TEST="/gg/bin/test"
4461 UNIQ="/gg/bin/uniq"
4462 FOR="for"
4463 TOUCH="/gg/bin/touch"
4464 case "$host_cpu" in
4465 *m68k*)
4466 aros_host_cpu="m68k"
4468 *powerpc*)
4469 aros_host_cpu="ppc"
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4473 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4474 aros_host_cpu="$host_cpu"
4476 esac
4479 cygwin*)
4480 aros_host_arch="cygwin"
4481 use_aros_gcc="yes"
4482 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4483 android_build_os="windows"
4484 android_tool="android.bat"
4485 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4487 case "$host_cpu" in
4488 *i?86*)
4489 aros_host_cpu="i386"
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4493 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4494 aros_host_cpu="$host_cpu"
4496 esac
4499 mingw32*)
4500 aros_host_arch="mingw32"
4501 use_aros_gcc="yes"
4502 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4503 android_build_os="windows"
4504 android_tool="android.bat"
4505 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4507 case "$host_cpu" in
4508 *i?86*)
4509 aros_host_cpu="i386"
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4513 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4514 aros_host_cpu="$host_cpu"
4516 esac
4519 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4521 esac
4523 # Extract the first word of "ar", so it can be a program name with args.
4524 set dummy ar; ac_word=$2
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4526 $as_echo_n "checking for $ac_word... " >&6; }
4527 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4528 $as_echo_n "(cached) " >&6
4529 else
4530 if test -n "$aros_host_ar"; then
4531 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_prog_aros_host_ar="ar cr"
4541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4544 done
4545 done
4546 IFS=$as_save_IFS
4550 aros_host_ar=$ac_cv_prog_aros_host_ar
4551 if test -n "$aros_host_ar"; then
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4553 $as_echo "$aros_host_ar" >&6; }
4554 else
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4556 $as_echo "no" >&6; }
4560 if test "$aros_host_ar" = ""; then
4561 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4563 # Extract the first word of "ranlib", so it can be a program name with args.
4564 set dummy ranlib; ac_word=$2
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4566 $as_echo_n "checking for $ac_word... " >&6; }
4567 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4568 $as_echo_n "(cached) " >&6
4569 else
4570 if test -n "$aros_host_ranlib"; then
4571 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4572 else
4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 for as_dir in $PATH
4576 IFS=$as_save_IFS
4577 test -z "$as_dir" && as_dir=.
4578 for ac_exec_ext in '' $ac_executable_extensions; do
4579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4580 ac_cv_prog_aros_host_ranlib="ranlib "
4581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4582 break 2
4584 done
4585 done
4586 IFS=$as_save_IFS
4590 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4591 if test -n "$aros_host_ranlib"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4593 $as_echo "$aros_host_ranlib" >&6; }
4594 else
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4600 if test "$aros_host_ranlib" = ""; then
4601 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4603 # Extract the first word of "strip", so it can be a program name with args.
4604 set dummy strip; ac_word=$2
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4606 $as_echo_n "checking for $ac_word... " >&6; }
4607 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if test -n "$aros_host_strip"; then
4611 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4612 else
4613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4614 for as_dir in $PATH
4616 IFS=$as_save_IFS
4617 test -z "$as_dir" && as_dir=.
4618 for ac_exec_ext in '' $ac_executable_extensions; do
4619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4620 ac_cv_prog_aros_host_strip="strip "
4621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 break 2
4624 done
4625 done
4626 IFS=$as_save_IFS
4630 aros_host_strip=$ac_cv_prog_aros_host_strip
4631 if test -n "$aros_host_strip"; then
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4633 $as_echo "$aros_host_strip" >&6; }
4634 else
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4636 $as_echo "no" >&6; }
4640 if test "$aros_host_strip" = ""; then
4641 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4644 # Extract the first word of "rm", so it can be a program name with args.
4645 set dummy rm; ac_word=$2
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4647 $as_echo_n "checking for $ac_word... " >&6; }
4648 if test "${ac_cv_prog_RM+set}" = set; then :
4649 $as_echo_n "(cached) " >&6
4650 else
4651 if test -n "$RM"; then
4652 ac_cv_prog_RM="$RM" # Let the user override the test.
4653 else
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4655 for as_dir in $PATH
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4661 ac_cv_prog_RM="rm -rf"
4662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4663 break 2
4665 done
4666 done
4667 IFS=$as_save_IFS
4671 RM=$ac_cv_prog_RM
4672 if test -n "$RM"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4674 $as_echo "$RM" >&6; }
4675 else
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4681 if test "$RM" = ""; then
4682 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4684 # Extract the first word of "cp", so it can be a program name with args.
4685 set dummy cp; ac_word=$2
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4687 $as_echo_n "checking for $ac_word... " >&6; }
4688 if test "${ac_cv_prog_CP+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 if test -n "$CP"; then
4692 ac_cv_prog_CP="$CP" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_CP="cp "
4702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4705 done
4706 done
4707 IFS=$as_save_IFS
4711 CP=$ac_cv_prog_CP
4712 if test -n "$CP"; then
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4714 $as_echo "$CP" >&6; }
4715 else
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4717 $as_echo "no" >&6; }
4721 if test "$CP" = ""; then
4722 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4724 # Extract the first word of "mv", so it can be a program name with args.
4725 set dummy mv; ac_word=$2
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4727 $as_echo_n "checking for $ac_word... " >&6; }
4728 if test "${ac_cv_prog_MV+set}" = set; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 if test -n "$MV"; then
4732 ac_cv_prog_MV="$MV" # Let the user override the test.
4733 else
4734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 for as_dir in $PATH
4737 IFS=$as_save_IFS
4738 test -z "$as_dir" && as_dir=.
4739 for ac_exec_ext in '' $ac_executable_extensions; do
4740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4741 ac_cv_prog_MV="mv "
4742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4743 break 2
4745 done
4746 done
4747 IFS=$as_save_IFS
4751 MV=$ac_cv_prog_MV
4752 if test -n "$MV"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4754 $as_echo "$MV" >&6; }
4755 else
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757 $as_echo "no" >&6; }
4761 if test "$MV" = ""; then
4762 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4764 # Extract the first word of "echo", so it can be a program name with args.
4765 set dummy echo; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if test "${ac_cv_prog_ECHO+set}" = set; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 if test -n "$ECHO"; then
4772 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4773 else
4774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4775 for as_dir in $PATH
4777 IFS=$as_save_IFS
4778 test -z "$as_dir" && as_dir=.
4779 for ac_exec_ext in '' $ac_executable_extensions; do
4780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4781 ac_cv_prog_ECHO="echo "
4782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 break 2
4785 done
4786 done
4787 IFS=$as_save_IFS
4791 ECHO=$ac_cv_prog_ECHO
4792 if test -n "$ECHO"; then
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4794 $as_echo "$ECHO" >&6; }
4795 else
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4797 $as_echo "no" >&6; }
4801 if test "$ECHO" = ""; then
4802 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4804 # Extract the first word of "mkdir", so it can be a program name with args.
4805 set dummy mkdir; ac_word=$2
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4807 $as_echo_n "checking for $ac_word... " >&6; }
4808 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4809 $as_echo_n "(cached) " >&6
4810 else
4811 if test -n "$MKDIR"; then
4812 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4813 else
4814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 for as_dir in $PATH
4817 IFS=$as_save_IFS
4818 test -z "$as_dir" && as_dir=.
4819 for ac_exec_ext in '' $ac_executable_extensions; do
4820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4821 ac_cv_prog_MKDIR="mkdir -p"
4822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4823 break 2
4825 done
4826 done
4827 IFS=$as_save_IFS
4831 MKDIR=$ac_cv_prog_MKDIR
4832 if test -n "$MKDIR"; then
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4834 $as_echo "$MKDIR" >&6; }
4835 else
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4837 $as_echo "no" >&6; }
4841 if test "$MKDIR" = ""; then
4842 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4844 # Extract the first word of "touch", so it can be a program name with args.
4845 set dummy touch; ac_word=$2
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4847 $as_echo_n "checking for $ac_word... " >&6; }
4848 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 if test -n "$TOUCH"; then
4852 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4853 else
4854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855 for as_dir in $PATH
4857 IFS=$as_save_IFS
4858 test -z "$as_dir" && as_dir=.
4859 for ac_exec_ext in '' $ac_executable_extensions; do
4860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861 ac_cv_prog_TOUCH="touch "
4862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863 break 2
4865 done
4866 done
4867 IFS=$as_save_IFS
4871 TOUCH=$ac_cv_prog_TOUCH
4872 if test -n "$TOUCH"; then
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4874 $as_echo "$TOUCH" >&6; }
4875 else
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4877 $as_echo "no" >&6; }
4881 if test "$TOUCH" = ""; then
4882 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4884 # Extract the first word of "sort", so it can be a program name with args.
4885 set dummy sort; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if test "${ac_cv_prog_SORT+set}" = set; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if test -n "$SORT"; then
4892 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_prog_SORT="sort "
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4905 done
4906 done
4907 IFS=$as_save_IFS
4911 SORT=$ac_cv_prog_SORT
4912 if test -n "$SORT"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4914 $as_echo "$SORT" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4921 if test "$SORT" = ""; then
4922 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4924 # Extract the first word of "uniq", so it can be a program name with args.
4925 set dummy uniq; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$UNIQ"; then
4932 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_UNIQ="uniq "
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4945 done
4946 done
4947 IFS=$as_save_IFS
4951 UNIQ=$ac_cv_prog_UNIQ
4952 if test -n "$UNIQ"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4954 $as_echo "$UNIQ" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4961 if test "$UNIQ" = ""; then
4962 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4964 # Extract the first word of "true", so it can be a program name with args.
4965 set dummy true; ac_word=$2
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4967 $as_echo_n "checking for $ac_word... " >&6; }
4968 if test "${ac_cv_prog_NOP+set}" = set; then :
4969 $as_echo_n "(cached) " >&6
4970 else
4971 if test -n "$NOP"; then
4972 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4973 else
4974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975 for as_dir in $PATH
4977 IFS=$as_save_IFS
4978 test -z "$as_dir" && as_dir=.
4979 for ac_exec_ext in '' $ac_executable_extensions; do
4980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981 ac_cv_prog_NOP="true "
4982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4983 break 2
4985 done
4986 done
4987 IFS=$as_save_IFS
4991 NOP=$ac_cv_prog_NOP
4992 if test -n "$NOP"; then
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4994 $as_echo "$NOP" >&6; }
4995 else
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4997 $as_echo "no" >&6; }
5001 if test "$NOP" = ""; then
5002 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
5004 # Extract the first word of "cat", so it can be a program name with args.
5005 set dummy cat; ac_word=$2
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 $as_echo_n "checking for $ac_word... " >&6; }
5008 if test "${ac_cv_prog_CAT+set}" = set; then :
5009 $as_echo_n "(cached) " >&6
5010 else
5011 if test -n "$CAT"; then
5012 ac_cv_prog_CAT="$CAT" # Let the user override the test.
5013 else
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_exec_ext in '' $ac_executable_extensions; do
5020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021 ac_cv_prog_CAT="cat "
5022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5025 done
5026 done
5027 IFS=$as_save_IFS
5031 CAT=$ac_cv_prog_CAT
5032 if test -n "$CAT"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5034 $as_echo "$CAT" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5041 if test "$CAT" = ""; then
5042 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5044 # Extract the first word of "bison", so it can be a program name with args.
5045 set dummy bison; ac_word=$2
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5047 $as_echo_n "checking for $ac_word... " >&6; }
5048 if test "${ac_cv_prog_BISON+set}" = set; then :
5049 $as_echo_n "(cached) " >&6
5050 else
5051 if test -n "$BISON"; then
5052 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5053 else
5054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5055 for as_dir in $PATH
5057 IFS=$as_save_IFS
5058 test -z "$as_dir" && as_dir=.
5059 for ac_exec_ext in '' $ac_executable_extensions; do
5060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5061 ac_cv_prog_BISON="bison "
5062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5063 break 2
5065 done
5066 done
5067 IFS=$as_save_IFS
5071 BISON=$ac_cv_prog_BISON
5072 if test -n "$BISON"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5074 $as_echo "$BISON" >&6; }
5075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5081 if test "$BISON" = ""; then
5082 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5084 # Extract the first word of "flex", so it can be a program name with args.
5085 set dummy flex; ac_word=$2
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087 $as_echo_n "checking for $ac_word... " >&6; }
5088 if test "${ac_cv_prog_FLEX+set}" = set; then :
5089 $as_echo_n "(cached) " >&6
5090 else
5091 if test -n "$FLEX"; then
5092 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5093 else
5094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5095 for as_dir in $PATH
5097 IFS=$as_save_IFS
5098 test -z "$as_dir" && as_dir=.
5099 for ac_exec_ext in '' $ac_executable_extensions; do
5100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5101 ac_cv_prog_FLEX="flex "
5102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5103 break 2
5105 done
5106 done
5107 IFS=$as_save_IFS
5111 FLEX=$ac_cv_prog_FLEX
5112 if test -n "$FLEX"; then
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5114 $as_echo "$FLEX" >&6; }
5115 else
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5117 $as_echo "no" >&6; }
5121 if test "$FLEX" = ""; then
5122 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5124 # Extract the first word of "pngtopnm", so it can be a program name with args.
5125 set dummy pngtopnm; ac_word=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$PNGTOPNM"; then
5132 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_PNGTOPNM="pngtopnm "
5142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5145 done
5146 done
5147 IFS=$as_save_IFS
5151 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5152 if test -n "$PNGTOPNM"; then
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5154 $as_echo "$PNGTOPNM" >&6; }
5155 else
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5157 $as_echo "no" >&6; }
5161 if test "$PNGTOPNM" = ""; then
5162 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5164 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5165 set dummy ppmtoilbm; ac_word=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5169 $as_echo_n "(cached) " >&6
5170 else
5171 if test -n "$PPMTOILBM"; then
5172 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5173 else
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 for as_dir in $PATH
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5181 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5185 done
5186 done
5187 IFS=$as_save_IFS
5191 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5192 if test -n "$PPMTOILBM"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5194 $as_echo "$PPMTOILBM" >&6; }
5195 else
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5197 $as_echo "no" >&6; }
5201 if test "$PPMTOILBM" = ""; then
5202 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5204 # Extract the first word of "sed", so it can be a program name with args.
5205 set dummy sed; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if test "${ac_cv_prog_SED+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 if test -n "$SED"; then
5212 ac_cv_prog_SED="$SED" # Let the user override the test.
5213 else
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5215 for as_dir in $PATH
5217 IFS=$as_save_IFS
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5221 ac_cv_prog_SED="sed "
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5223 break 2
5225 done
5226 done
5227 IFS=$as_save_IFS
5231 SED=$ac_cv_prog_SED
5232 if test -n "$SED"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5234 $as_echo "$SED" >&6; }
5235 else
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5241 if test "$SED" = ""; then
5242 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5244 # Extract the first word of "chmod", so it can be a program name with args.
5245 set dummy chmod; ac_word=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5251 if test -n "$CHMOD"; then
5252 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5253 else
5254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5255 for as_dir in $PATH
5257 IFS=$as_save_IFS
5258 test -z "$as_dir" && as_dir=.
5259 for ac_exec_ext in '' $ac_executable_extensions; do
5260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5261 ac_cv_prog_CHMOD="chmod "
5262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5263 break 2
5265 done
5266 done
5267 IFS=$as_save_IFS
5271 CHMOD=$ac_cv_prog_CHMOD
5272 if test -n "$CHMOD"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5274 $as_echo "$CHMOD" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5281 if test "$CHMOD" = ""; then
5282 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5284 # Extract the first word of "patch", so it can be a program name with args.
5285 set dummy patch; ac_word=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if test "${ac_cv_prog_PATCH+set}" = set; then :
5289 $as_echo_n "(cached) " >&6
5290 else
5291 if test -n "$PATCH"; then
5292 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5293 else
5294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5295 for as_dir in $PATH
5297 IFS=$as_save_IFS
5298 test -z "$as_dir" && as_dir=.
5299 for ac_exec_ext in '' $ac_executable_extensions; do
5300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5301 ac_cv_prog_PATCH="patch "
5302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5303 break 2
5305 done
5306 done
5307 IFS=$as_save_IFS
5311 PATCH=$ac_cv_prog_PATCH
5312 if test -n "$PATCH"; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5314 $as_echo "$PATCH" >&6; }
5315 else
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5317 $as_echo "no" >&6; }
5321 if test "$PATCH" = ""; then
5322 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5329 if test -n "$PYTHON"; then
5330 # If the user set $PYTHON, use it and don't search something else.
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5332 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5333 prog="import sys, string
5334 # split strings by '.' and convert to numeric. Append some zeros
5335 # because we need at least 4 digits for the hex conversion.
5336 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5337 minverhex = 0
5338 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5339 sys.exit(sys.hexversion < minverhex)"
5340 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5341 ($PYTHON -c "$prog") >&5 2>&5
5342 ac_status=$?
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); }; then :
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5346 $as_echo "yes" >&6; }
5347 else
5348 as_fn_error $? "too old" "$LINENO" 5
5350 am_display_PYTHON=$PYTHON
5351 else
5352 # Otherwise, try each interpreter until we find one that satisfies
5353 # VERSION.
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5355 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5356 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358 else
5360 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
5361 test "$am_cv_pathless_PYTHON" = none && break
5362 prog="import sys, string
5363 # split strings by '.' and convert to numeric. Append some zeros
5364 # because we need at least 4 digits for the hex conversion.
5365 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5366 minverhex = 0
5367 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5368 sys.exit(sys.hexversion < minverhex)"
5369 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5370 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); }; then :
5374 break
5376 done
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5379 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5380 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5381 if test "$am_cv_pathless_PYTHON" = none; then
5382 PYTHON=:
5383 else
5384 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5385 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if test "${ac_cv_path_PYTHON+set}" = set; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 case $PYTHON in
5392 [\\/]* | ?:[\\/]*)
5393 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397 for as_dir in $PATH
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
5401 for ac_exec_ext in '' $ac_executable_extensions; do
5402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5403 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5405 break 2
5407 done
5408 done
5409 IFS=$as_save_IFS
5412 esac
5414 PYTHON=$ac_cv_path_PYTHON
5415 if test -n "$PYTHON"; then
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5417 $as_echo "$PYTHON" >&6; }
5418 else
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5420 $as_echo "no" >&6; }
5425 am_display_PYTHON=$am_cv_pathless_PYTHON
5429 if test "$PYTHON" = :; then
5430 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5431 else
5434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5435 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5436 if test "${am_cv_python_version+set}" = set; then :
5437 $as_echo_n "(cached) " >&6
5438 else
5439 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5442 $as_echo "$am_cv_python_version" >&6; }
5443 PYTHON_VERSION=$am_cv_python_version
5447 PYTHON_PREFIX='${prefix}'
5449 PYTHON_EXEC_PREFIX='${exec_prefix}'
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5454 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5455 if test "${am_cv_python_platform+set}" = set; then :
5456 $as_echo_n "(cached) " >&6
5457 else
5458 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5461 $as_echo "$am_cv_python_platform" >&6; }
5462 PYTHON_PLATFORM=$am_cv_python_platform
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5468 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5469 if test "${am_cv_python_pythondir+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5473 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5476 $as_echo "$am_cv_python_pythondir" >&6; }
5477 pythondir=$am_cv_python_pythondir
5481 pkgpythondir=\${pythondir}/$PACKAGE
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5485 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5486 if test "${am_cv_python_pyexecdir+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5490 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5493 $as_echo "$am_cv_python_pyexecdir" >&6; }
5494 pyexecdir=$am_cv_python_pyexecdir
5498 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5506 FOR=for
5508 IF=if
5510 TEST=test
5512 CMP=cmp
5516 # Check for some includes for the X11 HIDD and the kernel
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5520 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5521 if test "${ac_cv_path_GREP+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -z "$GREP"; then
5525 ac_path_GREP_found=false
5526 # Loop through the user's path and test for each of PROGNAME-LIST
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_prog in grep ggrep; do
5533 for ac_exec_ext in '' $ac_executable_extensions; do
5534 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5535 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5536 # Check for GNU ac_path_GREP and select it if it is found.
5537 # Check for GNU $ac_path_GREP
5538 case `"$ac_path_GREP" --version 2>&1` in
5539 *GNU*)
5540 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5542 ac_count=0
5543 $as_echo_n 0123456789 >"conftest.in"
5544 while :
5546 cat "conftest.in" "conftest.in" >"conftest.tmp"
5547 mv "conftest.tmp" "conftest.in"
5548 cp "conftest.in" "conftest.nl"
5549 $as_echo 'GREP' >> "conftest.nl"
5550 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5551 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5552 as_fn_arith $ac_count + 1 && ac_count=$as_val
5553 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5554 # Best one so far, save it but keep looking for a better one
5555 ac_cv_path_GREP="$ac_path_GREP"
5556 ac_path_GREP_max=$ac_count
5558 # 10*(2^10) chars as input seems more than enough
5559 test $ac_count -gt 10 && break
5560 done
5561 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5562 esac
5564 $ac_path_GREP_found && break 3
5565 done
5566 done
5567 done
5568 IFS=$as_save_IFS
5569 if test -z "$ac_cv_path_GREP"; then
5570 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5572 else
5573 ac_cv_path_GREP=$GREP
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5578 $as_echo "$ac_cv_path_GREP" >&6; }
5579 GREP="$ac_cv_path_GREP"
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5583 $as_echo_n "checking for egrep... " >&6; }
5584 if test "${ac_cv_path_EGREP+set}" = set; then :
5585 $as_echo_n "(cached) " >&6
5586 else
5587 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5588 then ac_cv_path_EGREP="$GREP -E"
5589 else
5590 if test -z "$EGREP"; then
5591 ac_path_EGREP_found=false
5592 # Loop through the user's path and test for each of PROGNAME-LIST
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_prog in egrep; do
5599 for ac_exec_ext in '' $ac_executable_extensions; do
5600 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5601 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5602 # Check for GNU ac_path_EGREP and select it if it is found.
5603 # Check for GNU $ac_path_EGREP
5604 case `"$ac_path_EGREP" --version 2>&1` in
5605 *GNU*)
5606 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5608 ac_count=0
5609 $as_echo_n 0123456789 >"conftest.in"
5610 while :
5612 cat "conftest.in" "conftest.in" >"conftest.tmp"
5613 mv "conftest.tmp" "conftest.in"
5614 cp "conftest.in" "conftest.nl"
5615 $as_echo 'EGREP' >> "conftest.nl"
5616 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5617 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5618 as_fn_arith $ac_count + 1 && ac_count=$as_val
5619 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5620 # Best one so far, save it but keep looking for a better one
5621 ac_cv_path_EGREP="$ac_path_EGREP"
5622 ac_path_EGREP_max=$ac_count
5624 # 10*(2^10) chars as input seems more than enough
5625 test $ac_count -gt 10 && break
5626 done
5627 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5628 esac
5630 $ac_path_EGREP_found && break 3
5631 done
5632 done
5633 done
5634 IFS=$as_save_IFS
5635 if test -z "$ac_cv_path_EGREP"; then
5636 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5638 else
5639 ac_cv_path_EGREP=$EGREP
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5645 $as_echo "$ac_cv_path_EGREP" >&6; }
5646 EGREP="$ac_cv_path_EGREP"
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5650 $as_echo_n "checking for ANSI C header files... " >&6; }
5651 if test "${ac_cv_header_stdc+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5655 /* end confdefs.h. */
5656 #include <stdlib.h>
5657 #include <stdarg.h>
5658 #include <string.h>
5659 #include <float.h>
5662 main ()
5666 return 0;
5668 _ACEOF
5669 if ac_fn_c_try_compile "$LINENO"; then :
5670 ac_cv_header_stdc=yes
5671 else
5672 ac_cv_header_stdc=no
5674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5676 if test $ac_cv_header_stdc = yes; then
5677 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5680 #include <string.h>
5682 _ACEOF
5683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5684 $EGREP "memchr" >/dev/null 2>&1; then :
5686 else
5687 ac_cv_header_stdc=no
5689 rm -f conftest*
5693 if test $ac_cv_header_stdc = yes; then
5694 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5696 /* end confdefs.h. */
5697 #include <stdlib.h>
5699 _ACEOF
5700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5701 $EGREP "free" >/dev/null 2>&1; then :
5703 else
5704 ac_cv_header_stdc=no
5706 rm -f conftest*
5710 if test $ac_cv_header_stdc = yes; then
5711 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5712 if test "$cross_compiling" = yes; then :
5714 else
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717 #include <ctype.h>
5718 #include <stdlib.h>
5719 #if ((' ' & 0x0FF) == 0x020)
5720 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5721 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5722 #else
5723 # define ISLOWER(c) \
5724 (('a' <= (c) && (c) <= 'i') \
5725 || ('j' <= (c) && (c) <= 'r') \
5726 || ('s' <= (c) && (c) <= 'z'))
5727 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5728 #endif
5730 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5732 main ()
5734 int i;
5735 for (i = 0; i < 256; i++)
5736 if (XOR (islower (i), ISLOWER (i))
5737 || toupper (i) != TOUPPER (i))
5738 return 2;
5739 return 0;
5741 _ACEOF
5742 if ac_fn_c_try_run "$LINENO"; then :
5744 else
5745 ac_cv_header_stdc=no
5747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5748 conftest.$ac_objext conftest.beam conftest.$ac_ext
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5754 $as_echo "$ac_cv_header_stdc" >&6; }
5755 if test $ac_cv_header_stdc = yes; then
5757 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5761 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5762 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5763 inttypes.h stdint.h unistd.h
5764 do :
5765 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5766 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5768 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5769 cat >>confdefs.h <<_ACEOF
5770 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5771 _ACEOF
5775 done
5778 for ac_header in sys/ipc.h sys/shm.h \
5779 sys/mmap.h sys/mman.h sysexits.h \
5780 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5782 do :
5783 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5784 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5785 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5786 cat >>confdefs.h <<_ACEOF
5787 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5788 _ACEOF
5792 done
5795 for ac_header in sys/mount.h
5796 do :
5797 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5799 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5800 cat >>confdefs.h <<_ACEOF
5801 #define HAVE_SYS_MOUNT_H 1
5802 _ACEOF
5806 done
5809 ac_header_dirent=no
5810 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5811 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5813 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5814 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
5815 $as_echo_n "(cached) " >&6
5816 else
5817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5818 /* end confdefs.h. */
5819 #include <sys/types.h>
5820 #include <$ac_hdr>
5823 main ()
5825 if ((DIR *) 0)
5826 return 0;
5828 return 0;
5830 _ACEOF
5831 if ac_fn_c_try_compile "$LINENO"; then :
5832 eval "$as_ac_Header=yes"
5833 else
5834 eval "$as_ac_Header=no"
5836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5838 eval ac_res=\$$as_ac_Header
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5840 $as_echo "$ac_res" >&6; }
5841 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5842 cat >>confdefs.h <<_ACEOF
5843 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5844 _ACEOF
5846 ac_header_dirent=$ac_hdr; break
5849 done
5850 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5851 if test $ac_header_dirent = dirent.h; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5853 $as_echo_n "checking for library containing opendir... " >&6; }
5854 if test "${ac_cv_search_opendir+set}" = set; then :
5855 $as_echo_n "(cached) " >&6
5856 else
5857 ac_func_search_save_LIBS=$LIBS
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5861 /* Override any GCC internal prototype to avoid an error.
5862 Use char because int might match the return type of a GCC
5863 builtin and then its argument prototype would still apply. */
5864 #ifdef __cplusplus
5865 extern "C"
5866 #endif
5867 char opendir ();
5869 main ()
5871 return opendir ();
5873 return 0;
5875 _ACEOF
5876 for ac_lib in '' dir; do
5877 if test -z "$ac_lib"; then
5878 ac_res="none required"
5879 else
5880 ac_res=-l$ac_lib
5881 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5883 if ac_fn_c_try_link "$LINENO"; then :
5884 ac_cv_search_opendir=$ac_res
5886 rm -f core conftest.err conftest.$ac_objext \
5887 conftest$ac_exeext
5888 if test "${ac_cv_search_opendir+set}" = set; then :
5889 break
5891 done
5892 if test "${ac_cv_search_opendir+set}" = set; then :
5894 else
5895 ac_cv_search_opendir=no
5897 rm conftest.$ac_ext
5898 LIBS=$ac_func_search_save_LIBS
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5901 $as_echo "$ac_cv_search_opendir" >&6; }
5902 ac_res=$ac_cv_search_opendir
5903 if test "$ac_res" != no; then :
5904 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5910 $as_echo_n "checking for library containing opendir... " >&6; }
5911 if test "${ac_cv_search_opendir+set}" = set; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 ac_func_search_save_LIBS=$LIBS
5915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* end confdefs.h. */
5918 /* Override any GCC internal prototype to avoid an error.
5919 Use char because int might match the return type of a GCC
5920 builtin and then its argument prototype would still apply. */
5921 #ifdef __cplusplus
5922 extern "C"
5923 #endif
5924 char opendir ();
5926 main ()
5928 return opendir ();
5930 return 0;
5932 _ACEOF
5933 for ac_lib in '' x; do
5934 if test -z "$ac_lib"; then
5935 ac_res="none required"
5936 else
5937 ac_res=-l$ac_lib
5938 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5940 if ac_fn_c_try_link "$LINENO"; then :
5941 ac_cv_search_opendir=$ac_res
5943 rm -f core conftest.err conftest.$ac_objext \
5944 conftest$ac_exeext
5945 if test "${ac_cv_search_opendir+set}" = set; then :
5946 break
5948 done
5949 if test "${ac_cv_search_opendir+set}" = set; then :
5951 else
5952 ac_cv_search_opendir=no
5954 rm conftest.$ac_ext
5955 LIBS=$ac_func_search_save_LIBS
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5958 $as_echo "$ac_cv_search_opendir" >&6; }
5959 ac_res=$ac_cv_search_opendir
5960 if test "$ac_res" != no; then :
5961 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5968 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5969 if test "${ac_cv_header_stat_broken+set}" = set; then :
5970 $as_echo_n "(cached) " >&6
5971 else
5972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5973 /* end confdefs.h. */
5974 #include <sys/types.h>
5975 #include <sys/stat.h>
5977 #if defined S_ISBLK && defined S_IFDIR
5978 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5979 #endif
5981 #if defined S_ISBLK && defined S_IFCHR
5982 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5983 #endif
5985 #if defined S_ISLNK && defined S_IFREG
5986 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5987 #endif
5989 #if defined S_ISSOCK && defined S_IFREG
5990 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5991 #endif
5993 _ACEOF
5994 if ac_fn_c_try_compile "$LINENO"; then :
5995 ac_cv_header_stat_broken=no
5996 else
5997 ac_cv_header_stat_broken=yes
5999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
6002 $as_echo "$ac_cv_header_stat_broken" >&6; }
6003 if test $ac_cv_header_stat_broken = yes; then
6005 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6010 $as_echo_n "checking for ANSI C header files... " >&6; }
6011 if test "${ac_cv_header_stdc+set}" = set; then :
6012 $as_echo_n "(cached) " >&6
6013 else
6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6015 /* end confdefs.h. */
6016 #include <stdlib.h>
6017 #include <stdarg.h>
6018 #include <string.h>
6019 #include <float.h>
6022 main ()
6026 return 0;
6028 _ACEOF
6029 if ac_fn_c_try_compile "$LINENO"; then :
6030 ac_cv_header_stdc=yes
6031 else
6032 ac_cv_header_stdc=no
6034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036 if test $ac_cv_header_stdc = yes; then
6037 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6040 #include <string.h>
6042 _ACEOF
6043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6044 $EGREP "memchr" >/dev/null 2>&1; then :
6046 else
6047 ac_cv_header_stdc=no
6049 rm -f conftest*
6053 if test $ac_cv_header_stdc = yes; then
6054 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6056 /* end confdefs.h. */
6057 #include <stdlib.h>
6059 _ACEOF
6060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6061 $EGREP "free" >/dev/null 2>&1; then :
6063 else
6064 ac_cv_header_stdc=no
6066 rm -f conftest*
6070 if test $ac_cv_header_stdc = yes; then
6071 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6072 if test "$cross_compiling" = yes; then :
6074 else
6075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6076 /* end confdefs.h. */
6077 #include <ctype.h>
6078 #include <stdlib.h>
6079 #if ((' ' & 0x0FF) == 0x020)
6080 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6081 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6082 #else
6083 # define ISLOWER(c) \
6084 (('a' <= (c) && (c) <= 'i') \
6085 || ('j' <= (c) && (c) <= 'r') \
6086 || ('s' <= (c) && (c) <= 'z'))
6087 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6088 #endif
6090 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6092 main ()
6094 int i;
6095 for (i = 0; i < 256; i++)
6096 if (XOR (islower (i), ISLOWER (i))
6097 || toupper (i) != TOUPPER (i))
6098 return 2;
6099 return 0;
6101 _ACEOF
6102 if ac_fn_c_try_run "$LINENO"; then :
6104 else
6105 ac_cv_header_stdc=no
6107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6108 conftest.$ac_objext conftest.beam conftest.$ac_ext
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6114 $as_echo "$ac_cv_header_stdc" >&6; }
6115 if test $ac_cv_header_stdc = yes; then
6117 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6122 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6123 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127 /* end confdefs.h. */
6128 #include <sys/types.h>
6129 #include <sys/wait.h>
6130 #ifndef WEXITSTATUS
6131 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6132 #endif
6133 #ifndef WIFEXITED
6134 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6135 #endif
6138 main ()
6140 int s;
6141 wait (&s);
6142 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6144 return 0;
6146 _ACEOF
6147 if ac_fn_c_try_compile "$LINENO"; then :
6148 ac_cv_header_sys_wait_h=yes
6149 else
6150 ac_cv_header_sys_wait_h=no
6152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6155 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6156 if test $ac_cv_header_sys_wait_h = yes; then
6158 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6163 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6164 if test "${ac_cv_header_time+set}" = set; then :
6165 $as_echo_n "(cached) " >&6
6166 else
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168 /* end confdefs.h. */
6169 #include <sys/types.h>
6170 #include <sys/time.h>
6171 #include <time.h>
6174 main ()
6176 if ((struct tm *) 0)
6177 return 0;
6179 return 0;
6181 _ACEOF
6182 if ac_fn_c_try_compile "$LINENO"; then :
6183 ac_cv_header_time=yes
6184 else
6185 ac_cv_header_time=no
6187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6190 $as_echo "$ac_cv_header_time" >&6; }
6191 if test $ac_cv_header_time = yes; then
6193 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6197 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6198 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6200 cat >>confdefs.h <<_ACEOF
6201 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6202 _ACEOF
6205 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6210 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6211 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6213 cat >>confdefs.h <<_ACEOF
6214 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6215 _ACEOF
6218 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6220 else
6221 case " $LIBOBJS " in
6222 *" fileblocks.$ac_objext "* ) ;;
6223 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6225 esac
6230 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6231 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6233 cat >>confdefs.h <<_ACEOF
6234 #define HAVE_STRUCT_STAT_ST_RDEV 1
6235 _ACEOF
6238 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6244 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6245 if test "${ac_cv_struct_tm+set}" = set; then :
6246 $as_echo_n "(cached) " >&6
6247 else
6248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6249 /* end confdefs.h. */
6250 #include <sys/types.h>
6251 #include <time.h>
6254 main ()
6256 struct tm tm;
6257 int *p = &tm.tm_sec;
6258 return !p;
6260 return 0;
6262 _ACEOF
6263 if ac_fn_c_try_compile "$LINENO"; then :
6264 ac_cv_struct_tm=time.h
6265 else
6266 ac_cv_struct_tm=sys/time.h
6268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6271 $as_echo "$ac_cv_struct_tm" >&6; }
6272 if test $ac_cv_struct_tm = sys/time.h; then
6274 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6278 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6279 #include <$ac_cv_struct_tm>
6282 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6284 cat >>confdefs.h <<_ACEOF
6285 #define HAVE_STRUCT_TM_TM_ZONE 1
6286 _ACEOF
6291 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6293 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6295 else
6296 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6298 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6299 ac_have_decl=1
6300 else
6301 ac_have_decl=0
6304 cat >>confdefs.h <<_ACEOF
6305 #define HAVE_DECL_TZNAME $ac_have_decl
6306 _ACEOF
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6309 $as_echo_n "checking for tzname... " >&6; }
6310 if test "${ac_cv_var_tzname+set}" = set; then :
6311 $as_echo_n "(cached) " >&6
6312 else
6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 #include <time.h>
6316 #if !HAVE_DECL_TZNAME
6317 extern char *tzname[];
6318 #endif
6321 main ()
6323 return tzname[0][0];
6325 return 0;
6327 _ACEOF
6328 if ac_fn_c_try_link "$LINENO"; then :
6329 ac_cv_var_tzname=yes
6330 else
6331 ac_cv_var_tzname=no
6333 rm -f core conftest.err conftest.$ac_objext \
6334 conftest$ac_exeext conftest.$ac_ext
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6337 $as_echo "$ac_cv_var_tzname" >&6; }
6338 if test $ac_cv_var_tzname = yes; then
6340 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6345 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6346 if test "x$ac_cv_type_off_t" = x""yes; then :
6348 else
6350 cat >>confdefs.h <<_ACEOF
6351 #define off_t long int
6352 _ACEOF
6356 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6357 if test "x$ac_cv_type_pid_t" = x""yes; then :
6359 else
6361 cat >>confdefs.h <<_ACEOF
6362 #define pid_t int
6363 _ACEOF
6367 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6368 if test "x$ac_cv_type_size_t" = x""yes; then :
6370 else
6372 cat >>confdefs.h <<_ACEOF
6373 #define size_t unsigned int
6374 _ACEOF
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6379 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6380 if test "${ac_cv_type_uid_t+set}" = set; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6385 #include <sys/types.h>
6387 _ACEOF
6388 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6389 $EGREP "uid_t" >/dev/null 2>&1; then :
6390 ac_cv_type_uid_t=yes
6391 else
6392 ac_cv_type_uid_t=no
6394 rm -f conftest*
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6398 $as_echo "$ac_cv_type_uid_t" >&6; }
6399 if test $ac_cv_type_uid_t = no; then
6401 $as_echo "#define uid_t int" >>confdefs.h
6404 $as_echo "#define gid_t int" >>confdefs.h
6409 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6410 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6412 cat >>confdefs.h <<_ACEOF
6413 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6414 _ACEOF
6420 # Look for some functions
6421 for ac_func in getpagesize kqueue statfs statvfs \
6422 clone kse_create rfork_thread thr_create sa_register \
6423 getcontext makecontext setcontext sigaltstack swapcontext
6424 do :
6425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6426 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6427 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6428 cat >>confdefs.h <<_ACEOF
6429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6430 _ACEOF
6433 done
6439 for ac_header in $ac_header_list
6440 do :
6441 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6442 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6444 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6445 cat >>confdefs.h <<_ACEOF
6446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6447 _ACEOF
6451 done
6460 for ac_func in getpagesize
6461 do :
6462 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6463 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6464 cat >>confdefs.h <<_ACEOF
6465 #define HAVE_GETPAGESIZE 1
6466 _ACEOF
6469 done
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6472 $as_echo_n "checking for working mmap... " >&6; }
6473 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6474 $as_echo_n "(cached) " >&6
6475 else
6476 if test "$cross_compiling" = yes; then :
6477 ac_cv_func_mmap_fixed_mapped=no
6478 else
6479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6480 /* end confdefs.h. */
6481 $ac_includes_default
6482 /* malloc might have been renamed as rpl_malloc. */
6483 #undef malloc
6485 /* Thanks to Mike Haertel and Jim Avera for this test.
6486 Here is a matrix of mmap possibilities:
6487 mmap private not fixed
6488 mmap private fixed at somewhere currently unmapped
6489 mmap private fixed at somewhere already mapped
6490 mmap shared not fixed
6491 mmap shared fixed at somewhere currently unmapped
6492 mmap shared fixed at somewhere already mapped
6493 For private mappings, we should verify that changes cannot be read()
6494 back from the file, nor mmap's back from the file at a different
6495 address. (There have been systems where private was not correctly
6496 implemented like the infamous i386 svr4.0, and systems where the
6497 VM page cache was not coherent with the file system buffer cache
6498 like early versions of FreeBSD and possibly contemporary NetBSD.)
6499 For shared mappings, we should conversely verify that changes get
6500 propagated back to all the places they're supposed to be.
6502 Grep wants private fixed already mapped.
6503 The main things grep needs to know about mmap are:
6504 * does it exist and is it safe to write into the mmap'd area
6505 * how to use it (BSD variants) */
6507 #include <fcntl.h>
6508 #include <sys/mman.h>
6510 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6511 char *malloc ();
6512 #endif
6514 /* This mess was copied from the GNU getpagesize.h. */
6515 #ifndef HAVE_GETPAGESIZE
6516 # ifdef _SC_PAGESIZE
6517 # define getpagesize() sysconf(_SC_PAGESIZE)
6518 # else /* no _SC_PAGESIZE */
6519 # ifdef HAVE_SYS_PARAM_H
6520 # include <sys/param.h>
6521 # ifdef EXEC_PAGESIZE
6522 # define getpagesize() EXEC_PAGESIZE
6523 # else /* no EXEC_PAGESIZE */
6524 # ifdef NBPG
6525 # define getpagesize() NBPG * CLSIZE
6526 # ifndef CLSIZE
6527 # define CLSIZE 1
6528 # endif /* no CLSIZE */
6529 # else /* no NBPG */
6530 # ifdef NBPC
6531 # define getpagesize() NBPC
6532 # else /* no NBPC */
6533 # ifdef PAGESIZE
6534 # define getpagesize() PAGESIZE
6535 # endif /* PAGESIZE */
6536 # endif /* no NBPC */
6537 # endif /* no NBPG */
6538 # endif /* no EXEC_PAGESIZE */
6539 # else /* no HAVE_SYS_PARAM_H */
6540 # define getpagesize() 8192 /* punt totally */
6541 # endif /* no HAVE_SYS_PARAM_H */
6542 # endif /* no _SC_PAGESIZE */
6544 #endif /* no HAVE_GETPAGESIZE */
6547 main ()
6549 char *data, *data2, *data3;
6550 const char *cdata2;
6551 int i, pagesize;
6552 int fd, fd2;
6554 pagesize = getpagesize ();
6556 /* First, make a file with some known garbage in it. */
6557 data = (char *) malloc (pagesize);
6558 if (!data)
6559 return 1;
6560 for (i = 0; i < pagesize; ++i)
6561 *(data + i) = rand ();
6562 umask (0);
6563 fd = creat ("conftest.mmap", 0600);
6564 if (fd < 0)
6565 return 2;
6566 if (write (fd, data, pagesize) != pagesize)
6567 return 3;
6568 close (fd);
6570 /* Next, check that the tail of a page is zero-filled. File must have
6571 non-zero length, otherwise we risk SIGBUS for entire page. */
6572 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6573 if (fd2 < 0)
6574 return 4;
6575 cdata2 = "";
6576 if (write (fd2, cdata2, 1) != 1)
6577 return 5;
6578 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6579 if (data2 == MAP_FAILED)
6580 return 6;
6581 for (i = 0; i < pagesize; ++i)
6582 if (*(data2 + i))
6583 return 7;
6584 close (fd2);
6585 if (munmap (data2, pagesize))
6586 return 8;
6588 /* Next, try to mmap the file at a fixed address which already has
6589 something else allocated at it. If we can, also make sure that
6590 we see the same garbage. */
6591 fd = open ("conftest.mmap", O_RDWR);
6592 if (fd < 0)
6593 return 9;
6594 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6595 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6596 return 10;
6597 for (i = 0; i < pagesize; ++i)
6598 if (*(data + i) != *(data2 + i))
6599 return 11;
6601 /* Finally, make sure that changes to the mapped area do not
6602 percolate back to the file as seen by read(). (This is a bug on
6603 some variants of i386 svr4.0.) */
6604 for (i = 0; i < pagesize; ++i)
6605 *(data2 + i) = *(data2 + i) + 1;
6606 data3 = (char *) malloc (pagesize);
6607 if (!data3)
6608 return 12;
6609 if (read (fd, data3, pagesize) != pagesize)
6610 return 13;
6611 for (i = 0; i < pagesize; ++i)
6612 if (*(data + i) != *(data3 + i))
6613 return 14;
6614 close (fd);
6615 return 0;
6617 _ACEOF
6618 if ac_fn_c_try_run "$LINENO"; then :
6619 ac_cv_func_mmap_fixed_mapped=yes
6620 else
6621 ac_cv_func_mmap_fixed_mapped=no
6623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6624 conftest.$ac_objext conftest.beam conftest.$ac_ext
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6629 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6630 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6632 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6635 rm -f conftest.mmap conftest.txt
6640 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6641 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6642 aros_config_ldflags=""
6644 aros_shared_default=yes
6646 aros_shared_cflags="-fPIC"
6647 aros_shared_aflags=""
6648 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6649 aros_kernel_ldflags="-Wl,-rpath,./lib"
6651 aros_target_ar_flags="cr"
6652 aros_target_nm_flags="-C -ul"
6653 aros_target_strip_flags="--strip-unneeded -R.comment"
6655 aros_compiler_libs=
6656 aros_arch_libs=
6658 aros_target_genmap="-Wl,-Map -Xlinker"
6660 # Native flavour stuff
6661 aros_serial_debug="0"
6663 # Palm native flavour stuff
6664 aros_palm_debug_hack="0"
6666 # Unix flavour stuff
6667 aros_nesting_supervisor="0"
6669 # Collect-aros stuff: "-ius" to ignore undefined symbols
6670 ignore_undefined_symbols=""
6672 # Check for X11 by default
6673 need_x11="auto"
6675 #-----------------------------------------------------------------------------
6678 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6679 # it switched on by default, and we use the host compiler, so it compiles AROS
6680 # code with this enabled resulting in link failures as we don't have support
6681 # for it.
6683 # We use two methods to disable it. For the host compiler (used to compile
6684 # some hosted modules), we test to see if the compiler supports stack
6685 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6686 # work on all platforms.
6688 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6689 # (this is done unconditionally, as it should have no effect on compilers
6690 # without the stack protection feature). This may be specific to the way that
6691 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6692 # strong enough to disable it in a generic way though, so we'll live with it
6693 # until another vendor ships GCC with it enabled in a different way, and deal
6694 # with it then.
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6698 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6699 save_cflags="$CFLAGS"
6700 CFLAGS="$CFLAGS -fno-stack-protector"
6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6702 /* end confdefs.h. */
6705 main ()
6709 return 0;
6711 _ACEOF
6712 if ac_fn_c_try_compile "$LINENO"; then :
6713 use_no_stack_protector="yes"
6714 else
6715 use_no_stack_protector="no"
6717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6719 $as_echo "$use_no_stack_protector" >&6; }
6720 if test "x-$use_no_stack_protector" = "x-yes" ; then
6721 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6723 CFLAGS="$save_cflags"
6725 #-----------------------------------------------------------------------------
6727 # Disable pointer-signedness warnings if the compiler recognises the option
6728 # (this only works for the host compiler at the moment)
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6731 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6732 save_cflags="$CFLAGS"
6733 CFLAGS="$CFLAGS -Wno-pointer-sign"
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6738 main ()
6742 return 0;
6744 _ACEOF
6745 if ac_fn_c_try_compile "$LINENO"; then :
6746 use_no_sign_warning="yes"
6747 else
6748 use_no_sign_warning="no"
6750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6752 $as_echo "$use_no_sign_warning" >&6; }
6753 if test "x-$use_no_sign_warning" = "x-yes" ; then
6754 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6756 CFLAGS="$save_cflags"
6758 #-----------------------------------------------------------------------------
6760 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6763 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6764 save_cflags="$CFLAGS"
6765 CFLAGS="$CFLAGS -fgnu89-inline"
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6770 main ()
6774 return 0;
6776 _ACEOF
6777 if ac_fn_c_try_compile "$LINENO"; then :
6778 use_gnu89_inline="yes"
6779 else
6780 use_gnu89_inline="no"
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6784 $as_echo "$use_gnu89_inline" >&6; }
6785 if test "x-$use_gnu89_inline" = "x-yes" ; then
6786 gnu89_inline="-fgnu89-inline"
6788 CFLAGS="$save_cflags"
6790 #-----------------------------------------------------------------------------
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6793 $as_echo_n "checking for type of build... " >&6; }
6794 # Check whether --enable-build_type was given.
6795 if test "${enable_build_type+set}" = set; then :
6796 enableval=$enable_build_type; build_type=$enableval
6797 else
6798 build_type="personal"
6802 if test "$build_type" = "nightly"; then
6803 build_type_string="NIGHTLY"
6804 elif test "$build_type" = "snapshot"; then
6805 build_type_string="SNAPSHOT"
6806 elif test "$build_type" = "milestone"; then
6807 build_type_string="MILESTONE"
6808 elif test "$build_type" = "release"; then
6809 build_type_string="RELEASE"
6810 else
6811 build_type_string="PERSONAL"
6812 build_type="personal"
6815 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6818 $as_echo "$build_type" >&6; }
6820 #-----------------------------------------------------------------------------
6821 all_debug_types="messages stack modules mungwall symbols"
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6824 $as_echo_n "checking which debug types to enable... " >&6; }
6825 # Check whether --enable-debug was given.
6826 if test "${enable_debug+set}" = set; then :
6827 enableval=$enable_debug; debug="$enableval"
6828 else
6829 debug=""
6833 if test "$debug" = "" -o "$debug" = "no"; then
6834 debug="none"
6835 elif test "$debug" = "yes"; then
6836 debug="all"
6839 if test "$debug" = "all" ; then
6840 debug="messages stack modules symbols"
6841 for d in $all_debug_types; do
6842 export aros_${d}_debug="1"
6843 done
6844 else
6845 for d in $all_debug_types; do
6846 export aros_${d}_debug="0"
6847 done
6850 if test "$debug" != "none"; then
6851 debug=`echo $debug | sed s/,/\ /g`
6852 for d in $debug; do
6853 found="0"
6854 for d2 in $all_debug_types; do
6855 if test "$d2" = "$d"; then
6856 found="1"
6857 break
6859 done
6860 if test "$found" = "0"; then
6861 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6863 export aros_${d}_debug="1"
6864 done
6865 aros_debug="yes"
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6868 $as_echo "$debug" >&6; }
6870 if test "$aros_messages_debug" = "1"; then
6871 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6872 else
6873 aros_messages_debug=""
6875 if test "$aros_symbols_debug" = "1"; then
6876 aros_symbols_debug="-g"
6877 else
6878 aros_symbols_debug=""
6881 # These are the flags to pass when compiling debugged programs
6882 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6883 aros_debug_aflags=""
6884 aros_debug_ldflags="$aros_symbols_debug"
6886 #-----------------------------------------------------------------------------
6887 # Checking if we should build crosstools..
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6889 $as_echo_n "checking whether to build crosstools... " >&6; }
6890 # Check whether --enable-crosstools was given.
6891 if test "${enable_crosstools+set}" = set; then :
6892 enableval=$enable_crosstools; crosstools="$enableval"
6893 else
6894 crosstools="no"
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $crosstools" >&5
6898 $as_echo "$crosstools" >&6; }
6900 #-----------------------------------------------------------------------------
6901 # Checking for distcc and ccache.
6903 # Always apply the transforms in this particular order. Basically you should
6904 # always run 'ccache distcc compiler' in that order for the best performance.
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6907 $as_echo_n "checking whether to enable distcc... " >&6; }
6908 # Check whether --enable-distcc was given.
6909 if test "${enable_distcc+set}" = set; then :
6910 enableval=$enable_distcc; distcc="$enableval"
6911 else
6912 distcc="no"
6915 if test "$distcc" != "" -a "$distcc" != "no"; then
6916 # AC_CHECK_PROG will print out the result in this case
6917 # Extract the first word of "distcc", so it can be a program name with args.
6918 set dummy distcc; ac_word=$2
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if test "${ac_cv_path_DISTCC+set}" = set; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 case $DISTCC in
6925 [\\/]* | ?:[\\/]*)
6926 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6930 for as_dir in $PATH
6932 IFS=$as_save_IFS
6933 test -z "$as_dir" && as_dir=.
6934 for ac_exec_ext in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6938 break 2
6940 done
6941 done
6942 IFS=$as_save_IFS
6944 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6946 esac
6948 DISTCC=$ac_cv_path_DISTCC
6949 if test -n "$DISTCC"; then
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6951 $as_echo "$DISTCC" >&6; }
6952 else
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6954 $as_echo "no" >&6; }
6958 else
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6960 $as_echo "no" >&6; }
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6964 $as_echo_n "checking whether to enable ccache... " >&6; }
6965 # Check whether --enable-ccache was given.
6966 if test "${enable_ccache+set}" = set; then :
6967 enableval=$enable_ccache; ccache="$enableval"
6968 else
6969 ccache="no"
6972 if test "$ccache" != "" -a "$ccache" != "no"; then
6973 # AC_CHECK_PROG will print out the result in this case
6974 # Extract the first word of "ccache", so it can be a program name with args.
6975 set dummy ccache; ac_word=$2
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6977 $as_echo_n "checking for $ac_word... " >&6; }
6978 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6979 $as_echo_n "(cached) " >&6
6980 else
6981 if test -n "$CCACHE"; then
6982 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6983 else
6984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985 for as_dir in $PATH
6987 IFS=$as_save_IFS
6988 test -z "$as_dir" && as_dir=.
6989 for ac_exec_ext in '' $ac_executable_extensions; do
6990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6991 ac_cv_prog_CCACHE="ccache"
6992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 break 2
6995 done
6996 done
6997 IFS=$as_save_IFS
7001 CCACHE=$ac_cv_prog_CCACHE
7002 if test -n "$CCACHE"; then
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
7004 $as_echo "$CCACHE" >&6; }
7005 else
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7007 $as_echo "no" >&6; }
7011 else
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7016 #-----------------------------------------------------------------------------
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific host gcc version to use" >&5
7018 $as_echo_n "checking what specific host gcc version to use... " >&6; }
7020 # Check whether --with-gcc-version was given.
7021 if test "${with_gcc_version+set}" = set; then :
7022 withval=$with_gcc_version; target_tool_version="$withval"
7023 else
7024 target_tool_version="default"
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7028 $as_echo "$target_tool_version" >&6; }
7030 #-----------------------------------------------------------------------------
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7032 $as_echo_n "checking what optimization flags to use... " >&6; }
7034 # Check whether --with-optimization was given.
7035 if test "${with_optimization+set}" = set; then :
7036 withval=$with_optimization; optimization="$withval"
7037 else
7038 optimization="unknown"
7041 if test "$optimization" = "unknown"; then
7042 if test "$debug" != "none"; then
7043 optimization="-O0"
7044 else
7045 optimization="-O2"
7048 aros_config_cflags="$aros_config_cflags $optimization"
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7050 $as_echo "$optimization" >&6; }
7052 #-----------------------------------------------------------------------------
7053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7054 $as_echo_n "checking what paranoia flags to use... " >&6; }
7056 # Check whether --with-paranoia was given.
7057 if test "${with_paranoia+set}" = set; then :
7058 withval=$with_paranoia; paranoia_flags="$withval"
7059 else
7060 paranoia_flags="default"
7063 if test "$paranoia_flags" = "default"; then
7064 paranoia_flags=""
7065 else if test "$paranoia_flags" = "yes"; then
7066 paranoia_flags="-Wall -Werror"
7067 fi fi
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7069 $as_echo "$paranoia_flags" >&6; }
7070 aros_config_cflags="$aros_config_cflags $paranoia_flags"
7072 #-----------------------------------------------------------------------------
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7074 $as_echo_n "checking what target variant to enable... " >&6; }
7075 # Check whether --enable-target_variant was given.
7076 if test "${enable_target_variant+set}" = set; then :
7077 enableval=$enable_target_variant; target_variant=$enableval
7078 else
7079 target_variant=""
7082 if test "$target_variant" = ""; then
7083 aros_target_variant=""
7084 aros_target_suffix=""
7085 enableval="none"
7086 else
7087 aros_target_variant="$target_variant"
7088 aros_target_suffix="-$target_variant"
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7091 $as_echo "$enableval" >&6; }
7093 #-----------------------------------------------------------------------------
7094 # Target-specific defaults. You can override then on a per-target basis.
7096 # Bootloader name. Currently used by PC target.
7097 target_bootloader="none"
7099 # Prefix for toolchain used to build bootstrap. For hosted ports, this should be a toolchain for target host OS.
7100 # (i. e. when building mingw32-i386 port this should be set to "i386-mingw32-").
7101 # For native ports this toolchain is used to build a bootloader and second-level bootstrap (if present).
7102 if test "$crosstools" != "yes"; then
7103 target_tool_prefix=${target_cpu}-elf-
7104 else
7105 target_tool_prefix=${target_cpu}-aros-
7108 #-----------------------------------------------------------------------------
7109 # Additional options for some specific targets
7111 case "$aros_target_variant" in
7112 ios)
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7114 $as_echo_n "checking XCode path... " >&6; }
7116 # Check whether --with-xcode was given.
7117 if test "${with_xcode+set}" = set; then :
7118 withval=$with_xcode; aros_xcode_path="$withval"
7119 else
7120 aros_xcode_path="/Developer"
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7124 $as_echo "$aros_xcode_path" >&6; }
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7127 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7129 # Check whether --with-ios-version was given.
7130 if test "${with_ios_version+set}" = set; then :
7131 withval=$with_ios_version; aros_ios_version="$withval"
7132 else
7133 aros_ios_version="3.0"
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7137 $as_echo "$aros_ios_version" >&6; }
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7140 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7142 # Check whether --with-ios-sdk was given.
7143 if test "${with_ios_sdk+set}" = set; then :
7144 withval=$with_ios_sdk; aros_ios_sdk="$withval"
7145 else
7146 aros_ios_sdk="4.1"
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7150 $as_echo "$aros_ios_sdk" >&6; }
7154 "android")
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7156 $as_echo_n "checking Android SDK path... " >&6; }
7158 # Check whether --with-sdk was given.
7159 if test "${with_sdk+set}" = set; then :
7160 withval=$with_sdk; aros_android_sdk="$withval"
7161 else
7162 aros_android_sdk=$default_android_sdk
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7166 $as_echo "$aros_android_sdk" >&6; }
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7169 $as_echo_n "checking Android NDK path... " >&6; }
7171 # Check whether --with-ndk was given.
7172 if test "${with_ndk+set}" = set; then :
7173 withval=$with_ndk; aros_android_ndk="$withval"
7174 else
7175 aros_android_ndk="$default_android_ndk"
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7179 $as_echo "$aros_android_ndk" >&6; }
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android version to use" >&5
7182 $as_echo_n "checking what Android version to use... " >&6; }
7184 # Check whether --with-android-version was given.
7185 if test "${with_android_version+set}" = set; then :
7186 withval=$with_android_version; aros_android_version="$withval"
7187 else
7188 aros_android_version="2.2"
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_version" >&5
7192 $as_echo "$aros_android_version" >&6; }
7194 export PATH="$aros_android_sdk/tools:$PATH"
7195 # Extract the first word of "$android_tool", so it can be a program name with args.
7196 set dummy $android_tool; ac_word=$2
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7198 $as_echo_n "checking for $ac_word... " >&6; }
7199 if test "${ac_cv_path_android_tool+set}" = set; then :
7200 $as_echo_n "(cached) " >&6
7201 else
7202 case $android_tool in
7203 [\\/]* | ?:[\\/]*)
7204 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7214 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7218 done
7219 done
7220 IFS=$as_save_IFS
7223 esac
7225 android_tool=$ac_cv_path_android_tool
7226 if test -n "$android_tool"; then
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7228 $as_echo "$android_tool" >&6; }
7229 else
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7231 $as_echo "no" >&6; }
7235 if test "$android_tool" = ""; then
7236 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7239 if test $host_os = "mingw32"; then
7240 android_tool="cmd //c $android_tool"
7244 esac
7246 #-----------------------------------------------------------------------------
7247 # This is the target configuration switch.
7248 case "$target_os" in
7249 linux*)
7250 aros_target_arch="linux"
7251 aros_target_family="unix"
7252 case "$target_cpu" in
7253 *m68k*)
7254 aros_target_cpu="m68k"
7255 aros_object_format="m68kelf"
7256 aros_flavour="emulcompat"
7257 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7258 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7259 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7260 gcc_target_cpu="mc68000"
7262 *i?86*)
7263 aros_target_cpu="i386"
7264 aros_object_format="elf_i386"
7265 aros_flavour="emulation"
7266 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7267 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7268 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7269 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7270 aros_config_ldflags="-m32 -march=i486"
7271 aros_kernel_ldflags="-melf_i386"
7272 aros_default_wbdepth=8
7273 gcc_target_cpu="i386"
7274 pci_hidd_target="hidd-pci-linux"
7276 *x86_64*)
7277 aros_target_cpu="x86_64"
7278 aros_object_format="elf_x86_64"
7279 aros_flavour="emulation"
7280 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7281 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7282 aros_default_wbdepth=8
7283 pci_hidd_target="hidd-pci-linux"
7285 *powerpc*)
7286 aros_target_cpu="ppc"
7287 aros_object_format="elf32ppc"
7288 aros_flavour="emulation"
7289 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7290 aros_default_wbdepth=8
7291 gcc_target_cpu="ppc"
7293 # TODO
7294 # Same as powerpc, but I need this for the nightly build to work again.
7295 # Actually, the nightly should be made working with powerpc target.
7296 # That just was too much work for the moment, another week or two.
7297 *ppc*)
7298 aros_target_cpu="ppc"
7299 aros_object_format="elf32ppc"
7300 aros_flavour="emulation"
7301 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7302 aros_default_wbdepth=8
7303 gcc_target_cpu="ppc"
7305 *arm*)
7306 aros_target_cpu="arm"
7307 aros_object_format="armelf_linux_eabi"
7308 aros_flavour="emulation"
7309 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7310 gcc_target_cpu="arm"
7311 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"
7312 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"
7313 aros_arch_libs="-laeabi"
7316 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7318 esac
7319 case "$aros_target_variant" in
7320 android)
7321 case "$aros_android_version" in
7322 2.2)
7323 aros_android_level=android-8
7326 aros_android_level=android-9
7328 esac
7329 aros_default_wbwidth=320
7330 aros_default_wbheight=480
7331 use_aros_gcc="yes"
7332 if test "$aros_android_ndk" = ""; then
7333 aros_kernel_cflags="-mandroid"
7334 aros_kernel_ldflags="-mandroid"
7335 CFLAGS="-mandroid"
7336 else
7337 export PATH="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7338 aros_android_ndk="$aros_android_ndk/platforms/$aros_android_level/arch-arm"
7339 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7340 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7341 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7342 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7344 need_x11=no
7345 target_tool_prefix="arm-linux-androideabi-"
7347 esac
7351 aros_target_arch="pc"
7352 aros_shared_default="no"
7353 target_bootloader="grub2"
7354 case "$target_cpu" in
7355 *i?86*)
7356 aros_target_cpu="i386"
7359 if test "$aros_object_format" = "" ; then
7360 aros_object_format="elf_i386"
7362 aros_flavour="standalone"
7363 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7364 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7365 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7366 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7367 aros_config_ldflags="-m32 -march=i486"
7368 aros_kernel_ldflags="-melf_i386"
7369 aros_default_wbwidth=640
7370 aros_default_wbheight=480
7371 gcc_target_cpu="i386"
7373 *x86_64*)
7374 aros_target_cpu="x86_64"
7375 aros_serial_debug=1
7376 if test "$aros_object_format" = "" ; then
7377 aros_object_format="elf_x86_64"
7379 aros_flavour="standalone"
7380 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7381 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7382 aros_kernel_ldflags=""
7383 aros_default_wbwidth=640
7384 aros_default_wbheight=480
7387 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7389 esac
7392 prep)
7393 aros_target_arch="prep"
7394 aros_shared_default="no"
7395 aros_target_cpu="ppc"
7396 aros_object_format="elf32ppc"
7397 aros_flavour="ppcnative"
7398 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7399 aros_kernel_ldflags=""
7400 aros_default_wbwidth=640
7401 aros_default_wbheight=480
7402 gcc_target_cpu="ppc"
7405 freebsd*)
7406 aros_target_arch="freebsd"
7407 aros_target_family="unix"
7408 aros_target_cpu="i386"
7409 aros_flavour="emulation"
7410 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7411 gcc_target_cpu="i386"
7413 aros_target_strip_flags="-x"
7416 darwin*)
7417 aros_target_arch="darwin"
7418 aros_target_family="unix"
7419 aros_flavour="emulation"
7420 case "$target_cpu" in
7421 *i?86*)
7422 aros_ios_platform="iPhoneSimulator"
7423 aros_target_cpu="i386"
7424 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7425 aros_kernel_ldflags=""
7426 aros_macosx_version="10.4"
7427 aros_default_wbdepth=8
7428 gcc_target_cpu="i386"
7429 aros_object_format="elf_i386"
7430 aros_target_strip_flags="-x"
7431 target_tool_prefix="i686-apple-darwin10-"
7432 target_tool_flags="-m32"
7434 *x86_64*)
7435 aros_target_cpu="x86_64"
7436 aros_object_format="elf_x86_64"
7437 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7438 aros_macosx_version="10.6"
7439 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7440 aros_kernel_cflags="-m64"
7441 aros_kernel_ldflags="-m64"
7442 aros_target_cflags="-mcmodel=large"
7443 aros_default_wbdepth=8
7444 aros_kernel_ld="ld"
7445 target_tool_prefix="i686-apple-darwin10-"
7447 *ppc*)
7448 aros_target_cpu="ppc"
7449 aros_object_format="elf32ppc"
7450 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7451 aros_kernel_ldflags=""
7452 aros_macosx_version="10.0"
7453 aros_default_wbdepth=8
7454 gcc_target_cpu="ppc"
7455 aros_kernel_ld="ld -arch ppc"
7456 target_tool_prefix="powerpc-apple-darwin10-"
7458 *arm*)
7459 aros_ios_platform="iPhoneOS"
7460 aros_target_cpu="arm"
7461 aros_object_format="armelf_linux_eabi"
7462 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7463 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7464 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7465 aros_arch_libs="-laeabi"
7466 aros_default_wbdepth=8
7467 gcc_target_cpu="arm"
7468 aros_kernel_ld="ld -arch arm"
7469 target_tool_prefix="arm-apple-darwin10-"
7470 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7473 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7475 esac
7476 case "$aros_target_variant" in
7477 ios)
7478 aros_default_wbwidth=320
7479 aros_default_wbheight=480
7480 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7481 target_tool_flags="$target_tool_flags -isysroot $aros_ios_sdk"
7482 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7483 need_x11=no
7484 # This is here because it may depend on iOS or SDK version
7485 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7486 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7487 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7490 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7491 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7493 esac
7496 dragonfly*)
7497 aros_target_arch="dragonfly"
7498 aros_target_family="unix"
7499 aros_flavour="emulation"
7500 case "$target_cpu" in
7501 *i?86*)
7502 aros_target_cpu="i386"
7503 aros_object_format="elf_i386"
7504 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7506 *x86_64*)
7507 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7508 aros_target_cpu="x86_64"
7509 aros_object_format="elf_x86_64"
7510 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7513 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7515 esac
7518 netbsd*)
7519 aros_target_arch="netbsd"
7520 aros_target_family="unix"
7521 case "$target_cpu" in
7522 *m68k*)
7523 aros_target_cpu="m68k"
7524 aros_object_format="m68kelf"
7525 aros_flavour="emulcompat"
7526 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7527 gcc_target_cpu="mc68000"
7529 *i?86*)
7530 aros_target_cpu="i386"
7531 aros_object_format="elf_i386"
7532 aros_flavour="emulation"
7533 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7534 aros_default_wbdepth=8
7535 gcc_target_cpu="i386"
7538 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7540 esac
7541 aros_target_genmap="-Wl,-M -Xlinker >"
7542 aros_flavour="emulation"
7543 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7546 openbsd*)
7547 aros_target_arch="openbsd"
7548 aros_target_family="unix"
7549 case "$target_cpu" in
7550 *i?86*)
7551 aros_target_cpu="i386"
7552 aros_object_format="elf_i386"
7553 aros_flavour="emulation"
7554 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7555 gcc_target_cpu="i386"
7558 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7560 esac
7561 aros_target_genmap="-Wl,-M -Xlinker >"
7562 aros_target_nm_flags="-u"
7563 aros_flavour="emulation"
7566 solaris*)
7567 aros_target_arch="solaris"
7568 aros_target_family="unix"
7569 case "$target_cpu" in
7570 *i?86*)
7571 aros_target_cpu="i386"
7572 aros_object_format="elf_i386"
7573 aros_flavour="emulation"
7574 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7575 aros_default_wbdepth=8
7576 gcc_target_cpu="i386"
7578 *sparc*)
7579 aros_target_cpu="sparc"
7580 aros_object_format="elf_sparc"
7581 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7582 gcc_target_cpu="sparc"
7585 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7587 esac
7588 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7589 aros_flavour="emulation"
7592 morphos*)
7593 aros_target_arch="morphos"
7594 aros_shared_default="no"
7595 aros_target_cpu="ppc"
7596 aros_object_format="elf_ppc"
7597 aros_flavour="nativecompat"
7598 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7599 gcc_target_cpu="ppc"
7602 sam440)
7603 aros_target_arch="sam440"
7604 aros_shared_default="no"
7605 aros_target_cpu="ppc"
7606 aros_object_format="elf32ppc"
7607 aros_flavour="ppcnative"
7608 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7609 aros_kernel_ldflags=""
7610 aros_default_wbwidth=1024
7611 aros_default_wbheight=768
7612 aros_default_wbdepth=24
7613 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7614 gcc_target_cpu="powerpc"
7617 efika)
7618 aros_target_arch="efika"
7619 aros_shared_default="no"
7620 aros_target_cpu="arm"
7621 aros_object_format="armelf_linux_eabi"
7622 aros_flavour="standalone"
7623 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7624 aros_kernel_ldflags=""
7625 aros_default_wbwidth=1024
7626 aros_default_wbheight=600
7627 aros_arch_libs="-laeabi"
7628 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"
7629 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"
7632 chrp)
7633 aros_target_arch="chrp"
7634 aros_shared_default="no"
7635 aros_target_cpu="ppc"
7636 aros_object_format="elf32ppc"
7637 aros_flavour="ppcnative"
7638 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7639 aros_kernel_ldflags=""
7640 aros_default_wbwidth=640
7641 aros_default_wbheight=480
7642 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7643 gcc_target_cpu="powerpc"
7644 case "$aros_target_variant" in
7645 efika)
7646 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7648 esac
7651 amiga*)
7652 aros_target_arch="amiga"
7653 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7654 aros_shared_default="no"
7656 case "$target_cpu" in
7657 *m68k*)
7658 aros_enable_mmu=no
7659 aros_target_cpu="m68k"
7660 aros_object_format="m68kelf"
7661 aros_flavour="standcompat"
7662 gcc_target_cpu="m68000"
7663 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -Os"
7664 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7665 target_tool_prefix="m68k-elf-"
7666 # Needed to get the correct multilib
7667 aros_config_ldflags="-${gcc_target_cpu}"
7668 aros_shared_ldflags="-${gcc_target_cpu}"
7669 aros_kernel_ldflags="-${gcc_target_cpu}"
7670 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7671 aros_target_strip_flags="-R.comment --strip-debug"
7672 aros_default_wbwidth=640
7673 aros_default_wbheight=256
7674 aros_default_wbdepth=2
7676 *ppc*)
7677 aros_cpu="ppc"
7678 aros_flavour="native"
7679 gcc_target_cpu="ppc"
7682 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7684 esac
7687 mingw*)
7688 aros_target_arch="mingw32"
7689 aros_shared_default="no"
7690 aros_flavour="emulation"
7691 aros_shared_cflags=""
7692 need_dlopen="no"
7693 rescomp="windres"
7694 case "$target_cpu" in
7695 *i?86*)
7696 aros_target_cpu="i386"
7697 aros_object_format="elf_i386"
7698 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7699 aros_default_wbdepth=8
7700 gcc_target_cpu="i386"
7702 aros_target_as="i386-aros-as"
7703 aros_target_ar="i386-aros-ar"
7704 aros_target_ranlib="i386-aros-ranlib"
7705 aros_target_nm="i386-aros-nm"
7706 aros_target_strip="i386-aros-strip"
7707 aros_target_objcopy="i386-aros-objcopy"
7708 aros_target_objdump="i386-aros-objdump"
7710 target_tool_prefix="i386-mingw32-"
7712 *x86_64*)
7713 aros_target_cpu="x86_64"
7714 aros_object_format="elf_x86_64"
7715 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7716 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7717 aros_default_wbdepth=8
7718 target_tool_prefix="x86_64-w64-mingw32-"
7720 *arm*)
7721 aros_target_cpu="arm"
7722 aros_object_format="armelf_linux_eabi"
7723 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7724 aros_arch_libs="-laeabi"
7725 aros_default_wbdepth=8
7726 gcc_target_cpu="arm"
7727 target_tool_prefix="arm-mingw32ce-"
7728 aros_default_wbwidth=160
7729 aros_default_wbheight=160
7732 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7734 esac
7735 if test $host_os = "cygwin"; then
7736 aros_kernel_cflags="-mno-cygwin"
7739 pp*)
7740 aros_target_arch="pp"
7741 aros_shared_default="no"
7742 case "$target_cpu" in
7743 *m68k*)
7744 aros_target_cpu="m68k"
7745 aros_object_format="m68kelf"
7746 aros_flavour="palmnative"
7747 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7748 aros_default_wbwidth=160
7749 aros_default_wbheight=160
7750 aros_default_wbdepth=1
7751 aros_target_ar_flags="cru"
7752 aros_compiler_libs="-lgcc1"
7753 aros_shared_default=no
7754 aros_shared_cflags="-fpic"
7755 aros_shared_aflags=""
7756 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7757 aros_kernel_ldflags="-Wl,-rpath,./lib"
7758 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7759 aros_debug_aflags=""
7760 aros_debug_ldflags="$aros_symbols_debug"
7761 aros_mungwall_debug="0"
7762 aros_modules_debug="0"
7763 gcc_target_cpu="mc68000"
7764 ignore_undefined_symbols="-ius"
7767 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7769 esac
7772 mac*)
7773 aros_target_arch="mac"
7774 aros_shared_default="no"
7775 case "$target_cpu" in
7776 *m68k*)
7777 aros_target_cpu="m68k"
7778 aros_object_format="m68kelf"
7779 aros_flavour="mac68knative"
7780 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7781 aros_default_wbwidth=512
7782 aros_default_wbheight=384
7783 aros_default_wbdepth=8
7784 aros_target_ar_flags="cru"
7785 aros_compiler_libs="-lgcc1"
7786 aros_shared_default=no
7787 aros_shared_cflags="-fpic"
7788 aros_shared_aflags=""
7789 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7790 aros_kernel_ldflags="-Wl,-rpath,./lib"
7791 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug -mc68000"
7792 aros_debug_aflags=""
7793 aros_debug_ldflags="$aros_symbols_debug"
7794 aros_mungwall_debug="0"
7795 aros_modules_debug="0"
7796 gcc_target_cpu="mc68000"
7797 ignore_undefined_symbols="-ius"
7800 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7802 esac
7806 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7808 esac
7810 #-----------------------------------------------------------------------------
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to install or search for cross tools binaries" >&5
7812 $as_echo_n "checking where to install or search for cross tools binaries... " >&6; }
7814 # Check whether --with-crosstools was given.
7815 if test "${with_crosstools+set}" = set; then :
7816 withval=$with_crosstools; with_crosstools=$withval
7817 else
7818 with_crosstools="default"
7821 if test "$with_crosstools" = "default"; then
7822 AROS_CROSSTOOLSDIR="$AROS_BUILDDIR_UNIX/bin/$aros_host_arch-$aros_host_cpu/tools/crosstools"
7823 else
7824 AROS_CROSSTOOLSDIR="$with_crosstools"
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_CROSSTOOLSDIR" >&5
7827 $as_echo "$AROS_CROSSTOOLSDIR" >&6; }
7829 if test "$crosstools" != "yes" -a "$with_crosstools" != "default"; then
7830 use_aros_gcc=yes
7831 PATH=$AROS_CROSSTOOLSDIR:$PATH
7832 target_tool_prefix=${target_cpu}-aros-
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific AROS gcc version to use" >&5
7836 $as_echo_n "checking what specific AROS gcc version to use... " >&6; }
7838 # Check whether --with-aros-gcc was given.
7839 if test "${with_aros_gcc+set}" = set; then :
7840 withval=$with_aros_gcc; aros_gcc_version="$withval"
7841 else
7842 aros_gcc_version="$use_aros_gcc"
7845 case "$aros_gcc_version" in
7846 yes)
7847 aros_gcc_version="default"
7850 aros_gcc_version="none"
7852 esac
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_gcc_version" >&5
7854 $as_echo "$aros_gcc_version" >&6; }
7856 if test "$aros_gcc_version" != "none" -o "$crosstools" = "yes"; then
7857 if test "$aros_gcc_version" != "default" -a "$aros_gcc_version" != "none"; then
7858 aros_target_cc="$aros_target_cpu-aros-gcc-$aros_gcc_version"
7859 aros_target_cxx="$aros_target_cpu-aros-g++-$aros_gcc_version"
7860 else
7861 aros_target_cc="$aros_target_cpu-aros-gcc"
7862 aros_target_cxx="$aros_target_cpu-aros-g++"
7865 aros_target_ld="$aros_target_cpu-aros-ld"
7866 aros_target_as="$aros_target_cpu-aros-as"
7867 aros_target_ar="$aros_target_cpu-aros-ar"
7868 aros_target_ranlib="$aros_target_cpu-aros-ranlib"
7869 aros_target_nm="$aros_target_cpu-aros-nm"
7870 aros_target_strip="$aros_target_cpu-aros-strip"
7871 aros_target_objcopy="$aros_target_cpu-aros-objcopy"
7872 aros_target_objdump="$aros_target_cpu-aros-objdump"
7875 # Some compilers (ppc-elf-gcc is known to) have CPU defines in specs
7876 # Since we override specs, we may need to put these defines there
7877 if test "$gcc_target_cpu" != ""; then
7878 gcc_target_cpu="-D__${gcc_target_cpu}__"
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to download sourcecode for external ports" >&5
7882 $as_echo_n "checking where to download sourcecode for external ports... " >&6; }
7884 # Check whether --with-portssources was given.
7885 if test "${with_portssources+set}" = set; then :
7886 withval=$with_portssources; with_portssrcdir=$withval
7887 else
7888 with_portssrcdir="default"
7891 if test "$with_portssrcdir" = "default"; then
7892 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7893 else
7894 AROS_PORTSSRCDIR="$with_portssrcdir"
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7897 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7900 $as_echo_n "checking which bootloader to use... " >&6; }
7902 # Check whether --with-bootloader was given.
7903 if test "${with_bootloader+set}" = set; then :
7904 withval=$with_bootloader; target_bootloader=$withval
7905 else
7906 target_bootloader=$target_bootloader
7909 if test "$target_bootloader" = "none"; then
7910 aros_target_bootloader=""
7911 else
7912 aros_target_bootloader="$target_bootloader"
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7915 $as_echo "$target_bootloader" >&6; }
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7918 $as_echo_n "checking which icon-set to use... " >&6; }
7920 # Check whether --with-iconset was given.
7921 if test "${with_iconset+set}" = set; then :
7922 withval=$with_iconset; target_iconset=$withval
7923 else
7924 target_iconset="default"
7927 if test "$target_iconset" = "default"; then
7928 aros_target_iconset="Gorilla"
7929 target_iconset="default (Gorilla)"
7930 else
7931 aros_target_iconset="$target_iconset"
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7934 $as_echo "$target_iconset" >&6; }
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7937 $as_echo_n "checking which GUI Theme to use... " >&6; }
7939 # Check whether --with-theme was given.
7940 if test "${with_theme+set}" = set; then :
7941 withval=$with_theme; target_guitheme=$withval
7942 else
7943 target_guitheme="default"
7946 if test "$target_guitheme" = "default"; then
7947 aros_target_guitheme="Ice"
7948 else
7949 aros_target_guitheme="$target_guitheme"
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7952 $as_echo "$aros_target_guitheme" >&6; }
7954 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7955 # for target code)
7956 cross_compiling=no
7957 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7958 cross_compiling=yes
7961 if test "$aros_host_cpu" == "x86_64" ; then
7962 if test "$aros_target_cpu" == "i386" ; then
7963 if test "$aros_target_arch" != "mingw32"; then
7964 cross_compiling=no
7969 if test "$aros_host_arch" == "darwin" ; then
7970 if test "$aros_target_arch" != "darwin" ; then
7971 cross_compiling=yes
7975 # I want to have this information in configure output, although it might be
7976 # misleading, e.g. for darwin hosted you cannot compile target code without a
7977 # cross compiler, but here it says no.
7978 echo "checking wether we are (AROS style) cross compiling... $cross_compiling"
7980 # Set prefix for target compiler etc. if we're cross-compiling
7981 # (should possibly be earlier but needs to be after AC_PROG_CC)
7982 if test "$cross_compiling" = "yes" ; then
7983 CC=${target_tool_prefix}gcc
7984 CPP=${target_tool_prefix}cpp
7985 if test "$target_tool_version" != "default"; then
7986 CC="$CC-$target_tool_version"
7987 CPP="$CC-$target_tool_version"
7989 if test "$crosstools" != "yes" ; then
7990 # Extract the first word of "$CC", so it can be a program name with args.
7991 set dummy $CC; ac_word=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if test "${ac_cv_path_CC+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
7996 else
7997 case $CC in
7998 [\\/]* | ?:[\\/]*)
7999 ac_cv_path_CC="$CC" # Let the user override the test with a path.
8002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8003 for as_dir in $PATH
8005 IFS=$as_save_IFS
8006 test -z "$as_dir" && as_dir=.
8007 for ac_exec_ext in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8011 break 2
8013 done
8014 done
8015 IFS=$as_save_IFS
8018 esac
8020 CC=$ac_cv_path_CC
8021 if test -n "$CC"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8023 $as_echo "$CC" >&6; }
8024 else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8030 if test "$CC" = ""; then
8031 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8033 else
8034 CC=$AROS_CROSSTOOLSDIR/$CC
8037 CC="$CC $target_tool_flags"
8039 #-----------------------------------------------------------------------------
8041 # Disable pointer-signedness warnings if the compiler recognises the option
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8044 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8045 save_cflags="$CFLAGS"
8046 if test "$crosstools" != "yes" ; then
8047 CFLAGS="$CFLAGS -Wno-pointer-sign"
8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8049 /* end confdefs.h. */
8052 main ()
8056 return 0;
8058 _ACEOF
8059 if ac_fn_c_try_compile "$LINENO"; then :
8060 use_no_sign_warning="yes"
8061 else
8062 use_no_sign_warning="no"
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 else
8066 # we do know it is supported for the smallest version of gcc we are going to build
8067 # we assume it's also supported by later versions
8068 use_no_sign_warning=yes
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8071 $as_echo "$use_no_sign_warning" >&6; }
8072 if test "x-$use_no_sign_warning" = "x-yes" ; then
8073 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8075 CFLAGS="$save_cflags"
8077 #-----------------------------------------------------------------------------
8079 # Find all the tools we need to compile. This could be cross-compiling
8080 # though! If that is the case we use the GNU form of the target and
8081 # simply add this to the front of the binary name. This is rather simple,
8082 # but it should work under most circumstances.
8084 # The default tools are to use the same as the host, but only if the
8085 # host and target CPU are the same. With GCC this is normally enough.
8088 aros_cc_pre=""
8089 aros_shared_ld="$aros_host_ld"
8091 aros_target_mkdep="$aros_host_mkdep"
8092 aros_target_incl_def="$aros_host_incl"
8094 aros_kernel_cc="$CC"
8096 # The default tools executables to be linked to.
8097 if test "$rescomp" != ""; then
8098 if test "$cross_compiling" = "yes" ; then
8099 rescomp=${target_tool_prefix}${rescomp}
8101 # Extract the first word of "$rescomp", so it can be a program name with args.
8102 set dummy $rescomp; ac_word=$2
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8104 $as_echo_n "checking for $ac_word... " >&6; }
8105 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
8106 $as_echo_n "(cached) " >&6
8107 else
8108 case $aros_kernel_rescomp in
8109 [\\/]* | ?:[\\/]*)
8110 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
8113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8114 for as_dir in $PATH
8116 IFS=$as_save_IFS
8117 test -z "$as_dir" && as_dir=.
8118 for ac_exec_ext in '' $ac_executable_extensions; do
8119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8120 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
8121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8122 break 2
8124 done
8125 done
8126 IFS=$as_save_IFS
8129 esac
8131 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
8132 if test -n "$aros_kernel_rescomp"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
8134 $as_echo "$aros_kernel_rescomp" >&6; }
8135 else
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8141 if test "$aros_kernel_rescomp" = ""; then
8142 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
8146 if test "$crosstools" != "yes"; then
8148 if test "$aros_kernel_ld" = ""; then
8149 if test "$cross_compiling" = "yes" ; then
8150 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8151 set dummy ${target_tool_prefix}ld; ac_word=$2
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153 $as_echo_n "checking for $ac_word... " >&6; }
8154 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 case $aros_kernel_ld in
8158 [\\/]* | ?:[\\/]*)
8159 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8169 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8173 done
8174 done
8175 IFS=$as_save_IFS
8178 esac
8180 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8181 if test -n "$aros_kernel_ld"; then
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8183 $as_echo "$aros_kernel_ld" >&6; }
8184 else
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8186 $as_echo "no" >&6; }
8190 else
8191 if test "$GCC" = "yes"; then
8192 aros_gcc_ld=`$CC -print-prog-name=ld`
8193 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8194 set dummy `basename $aros_gcc_ld`; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8198 $as_echo_n "(cached) " >&6
8199 else
8200 case $aros_kernel_ld in
8201 [\\/]* | ?:[\\/]*)
8202 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in `dirname $aros_gcc_ld`
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8212 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214 break 2
8216 done
8217 done
8218 IFS=$as_save_IFS
8221 esac
8223 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8224 if test -n "$aros_kernel_ld"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8226 $as_echo "$aros_kernel_ld" >&6; }
8227 else
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8234 if test "$aros_kernel_ld" = ""; then
8235 # Extract the first word of "ld", so it can be a program name with args.
8236 set dummy ld; ac_word=$2
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 $as_echo_n "checking for $ac_word... " >&6; }
8239 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 case $aros_kernel_ld in
8243 [\\/]* | ?:[\\/]*)
8244 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8248 for as_dir in $PATH
8250 IFS=$as_save_IFS
8251 test -z "$as_dir" && as_dir=.
8252 for ac_exec_ext in '' $ac_executable_extensions; do
8253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8254 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8256 break 2
8258 done
8259 done
8260 IFS=$as_save_IFS
8263 esac
8265 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8266 if test -n "$aros_kernel_ld"; then
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8268 $as_echo "$aros_kernel_ld" >&6; }
8269 else
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8271 $as_echo "no" >&6; }
8277 else
8278 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8279 set dummy $aros_kernel_ld; ac_word=$2
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8281 $as_echo_n "checking for $ac_word... " >&6; }
8282 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8283 $as_echo_n "(cached) " >&6
8284 else
8285 case $aros_kernel_ld in
8286 [\\/]* | ?:[\\/]*)
8287 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8291 for as_dir in $PATH
8293 IFS=$as_save_IFS
8294 test -z "$as_dir" && as_dir=.
8295 for ac_exec_ext in '' $ac_executable_extensions; do
8296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8297 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299 break 2
8301 done
8302 done
8303 IFS=$as_save_IFS
8306 esac
8308 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8309 if test -n "$aros_kernel_ld"; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8311 $as_echo "$aros_kernel_ld" >&6; }
8312 else
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8314 $as_echo "no" >&6; }
8320 if test "$aros_kernel_ld" = ""; then
8321 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8324 if test "$target_tool_prefix" != "${target_cpu}-elf-" ; then
8325 target_tool_prefix=${target_cpu}-elf-
8326 if test "$aros_target_cc" == ""; then
8327 aros_target_cc="${target_tool_prefix}gcc"
8329 if test "$aros_target_ld" == ""; then
8330 aros_target_ld="${target_tool_prefix}ld"
8334 if test "$aros_target_as" = ""; then
8335 if test "$cross_compiling" = "yes" ; then
8336 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8337 set dummy ${target_tool_prefix}as; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 case $aros_target_as_ln in
8344 [\\/]* | ?:[\\/]*)
8345 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8349 for as_dir in $PATH
8351 IFS=$as_save_IFS
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8355 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8357 break 2
8359 done
8360 done
8361 IFS=$as_save_IFS
8364 esac
8366 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8367 if test -n "$aros_target_as_ln"; then
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8369 $as_echo "$aros_target_as_ln" >&6; }
8370 else
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8372 $as_echo "no" >&6; }
8376 else
8377 if test "$GCC" = "yes"; then
8378 aros_gcc_as=`$CC -print-prog-name=as`
8379 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8380 set dummy `basename $aros_gcc_as`; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 case $aros_target_as_ln in
8387 [\\/]* | ?:[\\/]*)
8388 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 for as_dir in `dirname $aros_gcc_as`
8394 IFS=$as_save_IFS
8395 test -z "$as_dir" && as_dir=.
8396 for ac_exec_ext in '' $ac_executable_extensions; do
8397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8398 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8400 break 2
8402 done
8403 done
8404 IFS=$as_save_IFS
8407 esac
8409 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8410 if test -n "$aros_target_as_ln"; then
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8412 $as_echo "$aros_target_as_ln" >&6; }
8413 else
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8420 if test "$aros_target_as_ln" = ""; then
8421 # Extract the first word of "as", so it can be a program name with args.
8422 set dummy as; ac_word=$2
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424 $as_echo_n "checking for $ac_word... " >&6; }
8425 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 case $aros_target_as_ln in
8429 [\\/]* | ?:[\\/]*)
8430 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 for as_dir in $PATH
8436 IFS=$as_save_IFS
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8440 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 break 2
8444 done
8445 done
8446 IFS=$as_save_IFS
8449 esac
8451 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8452 if test -n "$aros_target_as_ln"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8454 $as_echo "$aros_target_as_ln" >&6; }
8455 else
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8463 else
8464 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8465 set dummy $aros_target_as; ac_word=$2
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8467 $as_echo_n "checking for $ac_word... " >&6; }
8468 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8469 $as_echo_n "(cached) " >&6
8470 else
8471 case $aros_target_as_ln in
8472 [\\/]* | ?:[\\/]*)
8473 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8477 for as_dir in $PATH
8479 IFS=$as_save_IFS
8480 test -z "$as_dir" && as_dir=.
8481 for ac_exec_ext in '' $ac_executable_extensions; do
8482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8483 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8485 break 2
8487 done
8488 done
8489 IFS=$as_save_IFS
8492 esac
8494 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8495 if test -n "$aros_target_as_ln"; then
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8497 $as_echo "$aros_target_as_ln" >&6; }
8498 else
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 $as_echo "no" >&6; }
8506 if test "$aros_target_as_ln" = ""; then
8507 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
8510 if test "$aros_target_ar" = ""; then
8511 if test "$cross_compiling" = "yes" ; then
8512 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8513 set dummy ${target_tool_prefix}ar; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 case $aros_target_ar_ln in
8520 [\\/]* | ?:[\\/]*)
8521 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 break 2
8535 done
8536 done
8537 IFS=$as_save_IFS
8540 esac
8542 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8543 if test -n "$aros_target_ar_ln"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8545 $as_echo "$aros_target_ar_ln" >&6; }
8546 else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8552 else
8553 if test "$GCC" = "yes"; then
8554 aros_gcc_ar=`$CC -print-prog-name=ar`
8555 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8556 set dummy `basename $aros_gcc_ar`; ac_word=$2
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8558 $as_echo_n "checking for $ac_word... " >&6; }
8559 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8560 $as_echo_n "(cached) " >&6
8561 else
8562 case $aros_target_ar_ln in
8563 [\\/]* | ?:[\\/]*)
8564 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in `dirname $aros_gcc_ar`
8570 IFS=$as_save_IFS
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8574 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8576 break 2
8578 done
8579 done
8580 IFS=$as_save_IFS
8583 esac
8585 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8586 if test -n "$aros_target_ar_ln"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8588 $as_echo "$aros_target_ar_ln" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8596 if test "$aros_target_ar_ln" = ""; then
8597 # Extract the first word of "ar", so it can be a program name with args.
8598 set dummy ar; ac_word=$2
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8600 $as_echo_n "checking for $ac_word... " >&6; }
8601 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8602 $as_echo_n "(cached) " >&6
8603 else
8604 case $aros_target_ar_ln in
8605 [\\/]* | ?:[\\/]*)
8606 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8610 for as_dir in $PATH
8612 IFS=$as_save_IFS
8613 test -z "$as_dir" && as_dir=.
8614 for ac_exec_ext in '' $ac_executable_extensions; do
8615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8616 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8618 break 2
8620 done
8621 done
8622 IFS=$as_save_IFS
8625 esac
8627 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8628 if test -n "$aros_target_ar_ln"; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8630 $as_echo "$aros_target_ar_ln" >&6; }
8631 else
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8633 $as_echo "no" >&6; }
8639 else
8640 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8641 set dummy $aros_target_ar; ac_word=$2
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8643 $as_echo_n "checking for $ac_word... " >&6; }
8644 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 case $aros_target_ar_ln in
8648 [\\/]* | ?:[\\/]*)
8649 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653 for as_dir in $PATH
8655 IFS=$as_save_IFS
8656 test -z "$as_dir" && as_dir=.
8657 for ac_exec_ext in '' $ac_executable_extensions; do
8658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8659 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661 break 2
8663 done
8664 done
8665 IFS=$as_save_IFS
8668 esac
8670 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8671 if test -n "$aros_target_ar_ln"; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8673 $as_echo "$aros_target_ar_ln" >&6; }
8674 else
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676 $as_echo "no" >&6; }
8682 if test "$aros_target_ar_ln" = ""; then
8683 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8686 if test "$aros_target_nm" = ""; then
8687 if test "$cross_compiling" = "yes" ; then
8688 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8689 set dummy ${target_tool_prefix}nm; ac_word=$2
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8691 $as_echo_n "checking for $ac_word... " >&6; }
8692 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8693 $as_echo_n "(cached) " >&6
8694 else
8695 case $aros_target_nm_ln in
8696 [\\/]* | ?:[\\/]*)
8697 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8707 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8711 done
8712 done
8713 IFS=$as_save_IFS
8716 esac
8718 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8719 if test -n "$aros_target_nm_ln"; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8721 $as_echo "$aros_target_nm_ln" >&6; }
8722 else
8723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8724 $as_echo "no" >&6; }
8728 else
8729 if test "$GCC" = "yes"; then
8730 aros_gcc_nm=`$CC -print-prog-name=nm`
8731 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8732 set dummy `basename $aros_gcc_nm`; ac_word=$2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734 $as_echo_n "checking for $ac_word... " >&6; }
8735 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8737 else
8738 case $aros_target_nm_ln in
8739 [\\/]* | ?:[\\/]*)
8740 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8744 for as_dir in `dirname $aros_gcc_nm`
8746 IFS=$as_save_IFS
8747 test -z "$as_dir" && as_dir=.
8748 for ac_exec_ext in '' $ac_executable_extensions; do
8749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8750 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8752 break 2
8754 done
8755 done
8756 IFS=$as_save_IFS
8759 esac
8761 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8762 if test -n "$aros_target_nm_ln"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8764 $as_echo "$aros_target_nm_ln" >&6; }
8765 else
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8772 if test "$aros_target_nm_ln" = ""; then
8773 # Extract the first word of "nm", so it can be a program name with args.
8774 set dummy nm; ac_word=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8778 $as_echo_n "(cached) " >&6
8779 else
8780 case $aros_target_nm_ln in
8781 [\\/]* | ?:[\\/]*)
8782 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8786 for as_dir in $PATH
8788 IFS=$as_save_IFS
8789 test -z "$as_dir" && as_dir=.
8790 for ac_exec_ext in '' $ac_executable_extensions; do
8791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8792 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8794 break 2
8796 done
8797 done
8798 IFS=$as_save_IFS
8801 esac
8803 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8804 if test -n "$aros_target_nm_ln"; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8806 $as_echo "$aros_target_nm_ln" >&6; }
8807 else
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8815 else
8816 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8817 set dummy $aros_target_nm; ac_word=$2
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8819 $as_echo_n "checking for $ac_word... " >&6; }
8820 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8821 $as_echo_n "(cached) " >&6
8822 else
8823 case $aros_target_nm_ln in
8824 [\\/]* | ?:[\\/]*)
8825 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 for as_dir in $PATH
8831 IFS=$as_save_IFS
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8835 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8837 break 2
8839 done
8840 done
8841 IFS=$as_save_IFS
8844 esac
8846 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8847 if test -n "$aros_target_nm_ln"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8849 $as_echo "$aros_target_nm_ln" >&6; }
8850 else
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8858 if test "$aros_target_nm_ln" = ""; then
8859 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8862 if test "$aros_target_objcopy" = ""; then
8863 if test "$cross_compiling" = "yes" ; then
8864 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8865 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8867 $as_echo_n "checking for $ac_word... " >&6; }
8868 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8869 $as_echo_n "(cached) " >&6
8870 else
8871 case $aros_target_objcopy_ln in
8872 [\\/]* | ?:[\\/]*)
8873 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8877 for as_dir in $PATH
8879 IFS=$as_save_IFS
8880 test -z "$as_dir" && as_dir=.
8881 for ac_exec_ext in '' $ac_executable_extensions; do
8882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8883 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8885 break 2
8887 done
8888 done
8889 IFS=$as_save_IFS
8892 esac
8894 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8895 if test -n "$aros_target_objcopy_ln"; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8897 $as_echo "$aros_target_objcopy_ln" >&6; }
8898 else
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8900 $as_echo "no" >&6; }
8904 else
8905 if test "$GCC" = "yes"; then
8906 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8907 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8908 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8910 $as_echo_n "checking for $ac_word... " >&6; }
8911 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8912 $as_echo_n "(cached) " >&6
8913 else
8914 case $aros_target_objcopy_ln in
8915 [\\/]* | ?:[\\/]*)
8916 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8920 for as_dir in `dirname $aros_gcc_objcopy`
8922 IFS=$as_save_IFS
8923 test -z "$as_dir" && as_dir=.
8924 for ac_exec_ext in '' $ac_executable_extensions; do
8925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8926 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8928 break 2
8930 done
8931 done
8932 IFS=$as_save_IFS
8935 esac
8937 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8938 if test -n "$aros_target_objcopy_ln"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8940 $as_echo "$aros_target_objcopy_ln" >&6; }
8941 else
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8948 if test "$aros_target_objcopy_ln" = ""; then
8949 # Extract the first word of "objcopy", so it can be a program name with args.
8950 set dummy objcopy; ac_word=$2
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8952 $as_echo_n "checking for $ac_word... " >&6; }
8953 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8954 $as_echo_n "(cached) " >&6
8955 else
8956 case $aros_target_objcopy_ln in
8957 [\\/]* | ?:[\\/]*)
8958 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962 for as_dir in $PATH
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8968 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970 break 2
8972 done
8973 done
8974 IFS=$as_save_IFS
8977 esac
8979 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8980 if test -n "$aros_target_objcopy_ln"; then
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8982 $as_echo "$aros_target_objcopy_ln" >&6; }
8983 else
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }
8991 else
8992 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8993 set dummy $aros_target_objcopy; ac_word=$2
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8995 $as_echo_n "checking for $ac_word... " >&6; }
8996 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8997 $as_echo_n "(cached) " >&6
8998 else
8999 case $aros_target_objcopy_ln in
9000 [\\/]* | ?:[\\/]*)
9001 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9005 for as_dir in $PATH
9007 IFS=$as_save_IFS
9008 test -z "$as_dir" && as_dir=.
9009 for ac_exec_ext in '' $ac_executable_extensions; do
9010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9011 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9013 break 2
9015 done
9016 done
9017 IFS=$as_save_IFS
9020 esac
9022 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9023 if test -n "$aros_target_objcopy_ln"; then
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9025 $as_echo "$aros_target_objcopy_ln" >&6; }
9026 else
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9034 if test "$aros_target_objcopy_ln" = ""; then
9035 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9038 if test "$aros_target_objdump" = ""; then
9039 if test "$cross_compiling" = "yes" ; then
9040 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9041 set dummy ${target_tool_prefix}objdump; ac_word=$2
9042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043 $as_echo_n "checking for $ac_word... " >&6; }
9044 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9045 $as_echo_n "(cached) " >&6
9046 else
9047 case $aros_target_objdump_ln in
9048 [\\/]* | ?:[\\/]*)
9049 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 for as_dir in $PATH
9055 IFS=$as_save_IFS
9056 test -z "$as_dir" && as_dir=.
9057 for ac_exec_ext in '' $ac_executable_extensions; do
9058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9059 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9061 break 2
9063 done
9064 done
9065 IFS=$as_save_IFS
9068 esac
9070 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9071 if test -n "$aros_target_objdump_ln"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9073 $as_echo "$aros_target_objdump_ln" >&6; }
9074 else
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9080 else
9081 if test "$GCC" = "yes"; then
9082 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9083 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9084 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086 $as_echo_n "checking for $ac_word... " >&6; }
9087 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9088 $as_echo_n "(cached) " >&6
9089 else
9090 case $aros_target_objdump_ln in
9091 [\\/]* | ?:[\\/]*)
9092 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9096 for as_dir in `dirname $aros_gcc_objdump`
9098 IFS=$as_save_IFS
9099 test -z "$as_dir" && as_dir=.
9100 for ac_exec_ext in '' $ac_executable_extensions; do
9101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9102 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9104 break 2
9106 done
9107 done
9108 IFS=$as_save_IFS
9111 esac
9113 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9114 if test -n "$aros_target_objdump_ln"; then
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9116 $as_echo "$aros_target_objdump_ln" >&6; }
9117 else
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9119 $as_echo "no" >&6; }
9124 if test "$aros_target_objdump_ln" = ""; then
9125 # Extract the first word of "objdump", so it can be a program name with args.
9126 set dummy objdump; ac_word=$2
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9128 $as_echo_n "checking for $ac_word... " >&6; }
9129 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9130 $as_echo_n "(cached) " >&6
9131 else
9132 case $aros_target_objdump_ln in
9133 [\\/]* | ?:[\\/]*)
9134 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9138 for as_dir in $PATH
9140 IFS=$as_save_IFS
9141 test -z "$as_dir" && as_dir=.
9142 for ac_exec_ext in '' $ac_executable_extensions; do
9143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9144 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9146 break 2
9148 done
9149 done
9150 IFS=$as_save_IFS
9153 esac
9155 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9156 if test -n "$aros_target_objdump_ln"; then
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9158 $as_echo "$aros_target_objdump_ln" >&6; }
9159 else
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9161 $as_echo "no" >&6; }
9167 else
9168 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9169 set dummy $aros_target_objdump; ac_word=$2
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9171 $as_echo_n "checking for $ac_word... " >&6; }
9172 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9173 $as_echo_n "(cached) " >&6
9174 else
9175 case $aros_target_objdump_ln in
9176 [\\/]* | ?:[\\/]*)
9177 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181 for as_dir in $PATH
9183 IFS=$as_save_IFS
9184 test -z "$as_dir" && as_dir=.
9185 for ac_exec_ext in '' $ac_executable_extensions; do
9186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9187 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9189 break 2
9191 done
9192 done
9193 IFS=$as_save_IFS
9196 esac
9198 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9199 if test -n "$aros_target_objdump_ln"; then
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9201 $as_echo "$aros_target_objdump_ln" >&6; }
9202 else
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9204 $as_echo "no" >&6; }
9210 if test "$aros_target_objdump_ln" = ""; then
9211 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9214 if test "$aros_target_ranlib" = ""; then
9215 if test "$cross_compiling" = "yes" ; then
9216 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9217 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9219 $as_echo_n "checking for $ac_word... " >&6; }
9220 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9221 $as_echo_n "(cached) " >&6
9222 else
9223 case $aros_target_ranlib_ln in
9224 [\\/]* | ?:[\\/]*)
9225 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9229 for as_dir in $PATH
9231 IFS=$as_save_IFS
9232 test -z "$as_dir" && as_dir=.
9233 for ac_exec_ext in '' $ac_executable_extensions; do
9234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9235 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9237 break 2
9239 done
9240 done
9241 IFS=$as_save_IFS
9244 esac
9246 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9247 if test -n "$aros_target_ranlib_ln"; then
9248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9249 $as_echo "$aros_target_ranlib_ln" >&6; }
9250 else
9251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 $as_echo "no" >&6; }
9256 else
9257 if test "$GCC" = "yes"; then
9258 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9259 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9260 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9262 $as_echo_n "checking for $ac_word... " >&6; }
9263 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 case $aros_target_ranlib_ln in
9267 [\\/]* | ?:[\\/]*)
9268 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272 for as_dir in `dirname $aros_gcc_ranlib`
9274 IFS=$as_save_IFS
9275 test -z "$as_dir" && as_dir=.
9276 for ac_exec_ext in '' $ac_executable_extensions; do
9277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9278 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9280 break 2
9282 done
9283 done
9284 IFS=$as_save_IFS
9287 esac
9289 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9290 if test -n "$aros_target_ranlib_ln"; then
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9292 $as_echo "$aros_target_ranlib_ln" >&6; }
9293 else
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295 $as_echo "no" >&6; }
9300 if test "$aros_target_ranlib_ln" = ""; then
9301 # Extract the first word of "ranlib", so it can be a program name with args.
9302 set dummy ranlib; ac_word=$2
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9304 $as_echo_n "checking for $ac_word... " >&6; }
9305 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9306 $as_echo_n "(cached) " >&6
9307 else
9308 case $aros_target_ranlib_ln in
9309 [\\/]* | ?:[\\/]*)
9310 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314 for as_dir in $PATH
9316 IFS=$as_save_IFS
9317 test -z "$as_dir" && as_dir=.
9318 for ac_exec_ext in '' $ac_executable_extensions; do
9319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9320 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9322 break 2
9324 done
9325 done
9326 IFS=$as_save_IFS
9329 esac
9331 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9332 if test -n "$aros_target_ranlib_ln"; then
9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9334 $as_echo "$aros_target_ranlib_ln" >&6; }
9335 else
9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9337 $as_echo "no" >&6; }
9343 else
9344 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9345 set dummy $aros_target_ranlib; ac_word=$2
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9347 $as_echo_n "checking for $ac_word... " >&6; }
9348 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9349 $as_echo_n "(cached) " >&6
9350 else
9351 case $aros_target_ranlib_ln in
9352 [\\/]* | ?:[\\/]*)
9353 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357 for as_dir in $PATH
9359 IFS=$as_save_IFS
9360 test -z "$as_dir" && as_dir=.
9361 for ac_exec_ext in '' $ac_executable_extensions; do
9362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9363 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9365 break 2
9367 done
9368 done
9369 IFS=$as_save_IFS
9372 esac
9374 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9375 if test -n "$aros_target_ranlib_ln"; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9377 $as_echo "$aros_target_ranlib_ln" >&6; }
9378 else
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9380 $as_echo "no" >&6; }
9386 if test "$aros_target_ranlib_ln" = ""; then
9387 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9390 if test "$aros_target_strip" = ""; then
9391 if test "$cross_compiling" = "yes" ; then
9392 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9393 set dummy ${target_tool_prefix}strip; ac_word=$2
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9395 $as_echo_n "checking for $ac_word... " >&6; }
9396 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9397 $as_echo_n "(cached) " >&6
9398 else
9399 case $aros_target_strip_ln in
9400 [\\/]* | ?:[\\/]*)
9401 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9405 for as_dir in $PATH
9407 IFS=$as_save_IFS
9408 test -z "$as_dir" && as_dir=.
9409 for ac_exec_ext in '' $ac_executable_extensions; do
9410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9411 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9413 break 2
9415 done
9416 done
9417 IFS=$as_save_IFS
9420 esac
9422 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9423 if test -n "$aros_target_strip_ln"; then
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9425 $as_echo "$aros_target_strip_ln" >&6; }
9426 else
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9428 $as_echo "no" >&6; }
9432 else
9433 if test "$GCC" = "yes"; then
9434 aros_gcc_strip=`$CC -print-prog-name=strip`
9435 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9436 set dummy `basename $aros_gcc_strip`; ac_word=$2
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9438 $as_echo_n "checking for $ac_word... " >&6; }
9439 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9440 $as_echo_n "(cached) " >&6
9441 else
9442 case $aros_target_strip_ln in
9443 [\\/]* | ?:[\\/]*)
9444 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9448 for as_dir in `dirname $aros_gcc_strip`
9450 IFS=$as_save_IFS
9451 test -z "$as_dir" && as_dir=.
9452 for ac_exec_ext in '' $ac_executable_extensions; do
9453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9454 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9456 break 2
9458 done
9459 done
9460 IFS=$as_save_IFS
9463 esac
9465 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9466 if test -n "$aros_target_strip_ln"; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9468 $as_echo "$aros_target_strip_ln" >&6; }
9469 else
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9471 $as_echo "no" >&6; }
9476 if test "$aros_target_strip_ln" = ""; then
9477 # Extract the first word of "strip", so it can be a program name with args.
9478 set dummy strip; ac_word=$2
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9480 $as_echo_n "checking for $ac_word... " >&6; }
9481 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 case $aros_target_strip_ln in
9485 [\\/]* | ?:[\\/]*)
9486 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9490 for as_dir in $PATH
9492 IFS=$as_save_IFS
9493 test -z "$as_dir" && as_dir=.
9494 for ac_exec_ext in '' $ac_executable_extensions; do
9495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9496 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9498 break 2
9500 done
9501 done
9502 IFS=$as_save_IFS
9505 esac
9507 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9508 if test -n "$aros_target_strip_ln"; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9510 $as_echo "$aros_target_strip_ln" >&6; }
9511 else
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9513 $as_echo "no" >&6; }
9519 else
9520 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9521 set dummy $aros_target_strip; ac_word=$2
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9523 $as_echo_n "checking for $ac_word... " >&6; }
9524 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 case $aros_target_strip_ln in
9528 [\\/]* | ?:[\\/]*)
9529 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9533 for as_dir in $PATH
9535 IFS=$as_save_IFS
9536 test -z "$as_dir" && as_dir=.
9537 for ac_exec_ext in '' $ac_executable_extensions; do
9538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9539 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9541 break 2
9543 done
9544 done
9545 IFS=$as_save_IFS
9548 esac
9550 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9551 if test -n "$aros_target_strip_ln"; then
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9553 $as_echo "$aros_target_strip_ln" >&6; }
9554 else
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 $as_echo "no" >&6; }
9562 if test "$aros_target_strip_ln" = ""; then
9563 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9565 if test "$aros_target_cxx" != ""; then
9566 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9567 set dummy $aros_target_cxx; ac_word=$2
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9569 $as_echo_n "checking for $ac_word... " >&6; }
9570 if test "${ac_cv_path_aros_target_cxx+set}" = set; then :
9571 $as_echo_n "(cached) " >&6
9572 else
9573 case $aros_target_cxx in
9574 [\\/]* | ?:[\\/]*)
9575 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
9578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9579 for as_dir in $PATH
9581 IFS=$as_save_IFS
9582 test -z "$as_dir" && as_dir=.
9583 for ac_exec_ext in '' $ac_executable_extensions; do
9584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9585 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
9586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9587 break 2
9589 done
9590 done
9591 IFS=$as_save_IFS
9594 esac
9596 aros_target_cxx=$ac_cv_path_aros_target_cxx
9597 if test -n "$aros_target_cxx"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
9599 $as_echo "$aros_target_cxx" >&6; }
9600 else
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9606 if test "$aros_target_cxx" = ""; then
9607 as_fn_error $? "c++ is required to build AROS. Please install and run configure again." "$LINENO" 5
9610 else
9611 aros_target_cc=$AROS_CROSSTOOLSDIR/$aros_target_cc
9612 aros_target_cxx=$AROS_CROSSTOOLSDIR/$aros_target_cxx
9613 aros_target_as_ln=$AROS_CROSSTOOLSDIR/$aros_target_as
9614 aros_target_ar_ln=$AROS_CROSSTOOLSDIR/$aros_target_ar
9615 aros_target_nm_ln=$AROS_CROSSTOOLSDIR/$aros_target_nm
9616 aros_target_objcopy_ln=$AROS_CROSSTOOLSDIR/$aros_target_objcopy
9617 aros_target_objdump_ln=$AROS_CROSSTOOLSDIR/$aros_target_objdump
9618 aros_target_ranlib_ln=$AROS_CROSSTOOLSDIR/$aros_target_ranlib
9619 aros_target_strip_ln=$AROS_CROSSTOOLSDIR/$aros_target_strip
9621 aros_kernel_ld=$AROS_CROSSTOOLSDIR/$aros_target_ld
9623 crosstools_target=tools-crosstools
9626 orig_target_cc=$aros_kernel_cc
9627 orig_target_ld=$aros_kernel_ld
9629 if test "$crosstools" != "yes"; then
9630 if test "$aros_target_cc" != ""; then
9631 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9632 set dummy $aros_target_cc; ac_word=$2
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9634 $as_echo_n "checking for $ac_word... " >&6; }
9635 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 case $aros_target_cc in
9639 [\\/]* | ?:[\\/]*)
9640 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 for as_dir in $PATH
9646 IFS=$as_save_IFS
9647 test -z "$as_dir" && as_dir=.
9648 for ac_exec_ext in '' $ac_executable_extensions; do
9649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9650 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9652 break 2
9654 done
9655 done
9656 IFS=$as_save_IFS
9659 esac
9661 aros_target_cc=$ac_cv_path_aros_target_cc
9662 if test -n "$aros_target_cc"; then
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
9664 $as_echo "$aros_target_cc" >&6; }
9665 else
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9667 $as_echo "no" >&6; }
9671 if test "$aros_target_cc" = ""; then
9672 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
9674 orig_target_cc=$aros_target_cc
9676 if test "$aros_target_ld" != ""; then
9677 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9678 set dummy $aros_target_ld; ac_word=$2
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9680 $as_echo_n "checking for $ac_word... " >&6; }
9681 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
9682 $as_echo_n "(cached) " >&6
9683 else
9684 case $aros_target_ld in
9685 [\\/]* | ?:[\\/]*)
9686 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9690 for as_dir in $PATH
9692 IFS=$as_save_IFS
9693 test -z "$as_dir" && as_dir=.
9694 for ac_exec_ext in '' $ac_executable_extensions; do
9695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9696 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9698 break 2
9700 done
9701 done
9702 IFS=$as_save_IFS
9705 esac
9707 aros_target_ld=$ac_cv_path_aros_target_ld
9708 if test -n "$aros_target_ld"; then
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
9710 $as_echo "$aros_target_ld" >&6; }
9711 else
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9713 $as_echo "no" >&6; }
9717 if test "$aros_target_ld" = ""; then
9718 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
9720 orig_target_ld=$aros_target_ld
9722 else
9723 orig_target_cc=$aros_target_cc
9724 orig_target_ld=$aros_target_ld
9727 # Build crosstools if we have no C++ - temporary thing
9728 if test "$aros_target_cxx" = "" -a "$crosstools" != "yes"; then
9729 crosstools_cxx_target=tools-crosstools
9732 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9733 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9734 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9735 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9736 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9737 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9738 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9740 # aros_cc_pre is a variable that is added to the front of the compiler name
9741 # in the generated aros-gcc shell script. We need this to enable the cache
9742 # to work across cleaned builds. Also, support DISTCC using the correct
9743 # environment variable.
9746 if test "x${DISTCC}" != "x" ; then
9747 if test "x${CCACHE}" != "x" ; then
9748 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9749 else
9750 aros_cc_pre="${DISTCC} "
9752 else
9753 if test "x${CCACHE}" != "x" ; then
9754 aros_cc_pre="${CCACHE} "
9758 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9760 aros_target_nostdinc_cflags=-nostdinc
9762 aros_target_nostartup_ldflags=-nostartfiles
9764 aros_target_nix_ldflags=-nix
9766 aros_target_detach_ldflags=-detach
9768 aros_target_nostdlib_ldflags=-nostdlib
9771 # Target tools
9772 if test "$crosstools" != "yes"; then
9773 if test "$GCC" = "yes"; then
9774 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9776 else
9777 # We do not know which gcc version we are going to build and what we need to know
9778 # here is different for different versions so this will be set later during the
9779 # build of crosstools.
9780 aros_target_cc_path=@aros_target_cc_path@
9782 aros_target_cc="${prefix}-gcc"
9783 aros_target_as="${prefix}-as"
9784 aros_target_ld="${prefix}-ld"
9785 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9786 aros_target_objcopy=${prefix}-objcopy
9787 aros_target_objdump=${prefix}-objdump
9788 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9789 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9790 aros_kernel_nm="${prefix}-nm"
9791 aros_target_strip=${prefix}-strip
9792 aros_kernel_ar="${prefix}-ar"
9794 # Find the system include path. We can suggest that an alternative is
9795 # used if we don't get it correct. The default is to use /usr/include.
9796 # Which is set in the aros_target_incl_def variable.
9798 # Check whether --enable-includes was given.
9799 if test "${enable_includes+set}" = set; then :
9800 enableval=$enable_includes; aros_target_incl=$enable_includes
9801 else
9802 aros_target_incl=$aros_target_incl_def
9806 if test "$aros_kernel_includes" = ""; then
9807 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9808 # FIXME: for cross-compiling this should point to another location
9809 aros_kernel_includes="-isystem $aros_target_incl"
9813 if test "$aros_kernel_includes" != "" ; then
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
9815 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
9816 if test "$aros_kernel_cc_includes" = "" ; then
9817 # Try to guess where the directory is.
9818 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
9819 if test -d $aros_kernel_cc_includes; then
9820 # Check if there is also an include-fixed directory and add it
9821 # to kernel compiler's include path as it may contain some of
9822 # the headers we need.
9823 if test -d "$aros_kernel_cc_includes"-fixed; then
9824 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
9826 else
9827 # The directory doesn't exist, we need to do some more work.
9828 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
9830 # These are the headers we're looking for.
9831 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9832 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9833 zutil.h"
9835 dirs=
9836 for h in $headers; do
9837 # Which other headers are needed by each of the above?
9838 deps=$(echo "#include <$h>" | \
9839 $aros_kernel_cc -E -M - 2>/dev/null | \
9840 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9842 # Copy all the needed headers to a directory beneath gendir.
9843 for d in $deps; do
9844 h=$(basename $d)
9845 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
9846 sed -n "s,^.*/include\(/.*\),\1,p")
9847 ! test -d $dir && mkdir -p $dir
9848 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9849 done
9850 done
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
9854 $as_echo "$aros_kernel_cc_includes" >&6; }
9855 # Adding -nostdinc to kernel includes as they are always used together.
9856 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
9859 if test "$crosstools" != "yes"; then
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9861 $as_echo_n "checking for the target compiler's include path... " >&6; }
9862 if test "$aros_target_cc_includes" = "" ; then
9863 #try to guess where the directory is
9864 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
9865 if ! test -d $aros_target_cc_includes; then
9866 #the directory doesn't exist, we need to do some more work
9867 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9869 #these are the headers we're looking for
9870 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9871 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9872 zutil.h"
9874 dirs=
9875 for h in $headers; do
9876 #which other headers each of the above headers needs?
9877 deps=$(echo "#include <$h>" | \
9878 $orig_target_cc -E -M - 2>/dev/null | \
9879 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9881 #copy all the needed headers to a directory beneath gendir
9882 for d in $deps; do
9883 h=$(basename $d)
9884 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9885 sed -n "s,^.*/include\(/.*\),\1,p")
9886 ! test -d $dir && mkdir -p $dir
9887 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9888 done
9889 done
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9893 $as_echo "$aros_target_cc_includes" >&6; }
9894 else
9895 # We do not know which gcc version we are going to build and what we need to know
9896 # here is different for different versions so this will be set later during the
9897 # build of crosstools.
9898 aros_target_cc_includes=@aros_target_cc_includes@
9902 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9903 # On GCC >= 4.0 -iquote should be used
9906 save_cc="$CC"
9907 save_cflags="$CFLAGS"
9908 CFLAGS="-iquote."
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9910 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9911 if test "x-$crosstools" != "x-yes"; then
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913 /* end confdefs.h. */
9916 main ()
9920 return 0;
9922 _ACEOF
9923 if ac_fn_c_try_compile "$LINENO"; then :
9924 has_iquote="yes"
9925 else
9926 has_iquote="no"
9928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9929 else
9930 # we do know it is supported for the smallest version of gcc we are going to build
9931 # we assume it's also supported by later versions
9932 has_iquote=yes
9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9935 $as_echo "$has_iquote" >&6; }
9936 if test "x-$has_iquote" = "x-yes" ; then
9937 host_cflags_iquote=-iquote
9938 host_cflags_iquote_end=
9939 else
9940 host_cflags_iquote=-I
9941 host_cflags_iquote_end=-I-
9943 kernel_cflags_iquote=$host_cflags_iquote
9944 kernel_cflags_iquote_end=$host_cflags_iquote_end
9945 if test "x-$cross_compiling" = "x-yes"; then
9946 CC="$aros_kernel_cc"
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9948 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9949 if test "x-$crosstools" != "x-yes"; then
9950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9951 /* end confdefs.h. */
9954 main ()
9958 return 0;
9960 _ACEOF
9961 if ac_fn_c_try_compile "$LINENO"; then :
9962 use_no_stack_protector="yes"
9963 else
9964 use_no_stack_protector="no"
9966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967 else
9968 # we do know it is supported for the smallest version of gcc we are going to build
9969 # we assume it's also supported by later versions
9970 use_no_stack_protector=yes
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9973 $as_echo "$use_no_stack_protector" >&6; }
9974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9975 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9976 if test "x-$crosstools" != "x-yes"; then
9977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9978 /* end confdefs.h. */
9981 main ()
9985 return 0;
9987 _ACEOF
9988 if ac_fn_c_try_compile "$LINENO"; then :
9989 has_iquote="yes"
9990 else
9991 has_iquote="no"
9993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9994 else
9995 # we do know it is supported for the smallest version of gcc we are going to build
9996 # we assume it's also supported by later versions
9997 has_iquote=yes
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10000 $as_echo "$has_iquote" >&6; }
10001 if test "x-$has_iquote" = "x-yes" ; then
10002 kernel_cflags_iquote=-iquote
10003 kernel_cflags_iquote_end=
10004 else
10005 kernel_cflags_iquote=-I
10006 kernel_cflags_iquote_end=-I-
10009 aros_cflags_iquote=$kernel_cflags_iquote
10010 aros_cflags_iquote_end=$kernel_cflags_iquote_end
10011 if test "$orig_target_cc" != "$aros_kernel_cc"; then
10012 CC="$orig_target_cc"
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
10014 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
10015 if test "x-$crosstools" != "x-yes"; then
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10020 main ()
10024 return 0;
10026 _ACEOF
10027 if ac_fn_c_try_compile "$LINENO"; then :
10028 has_iquote="yes"
10029 else
10030 has_iquote="no"
10032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10033 else
10034 # we do know it is supported for the smallest version of gcc we are going to build
10035 # we assume it's also supported by later versions
10036 has_iquote=yes
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
10039 $as_echo "$has_iquote" >&6; }
10040 if test "x-$has_iquote" = "x-yes" ; then
10041 aros_cflags_iquote=-iquote
10042 aros_cflags_iquote_end=
10043 else
10044 aros_cflags_iquote=-I
10045 aros_cflags_iquote_end=-I-
10048 if test "x-$use_no_stack_protector" = "x-yes" ; then
10049 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
10052 #-----------------------------------------------------------------------------
10054 # Check if we can explicitly choose older version of symbol hashing
10056 CFLAGS="save_cflags -Wl,--hash-style=sysv"
10057 CC="$aros_kernel_cc"
10058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
10059 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
10060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10061 /* end confdefs.h. */
10064 main ()
10068 return 0;
10070 _ACEOF
10071 if ac_fn_c_try_link "$LINENO"; then :
10072 use_hash_style="yes"
10073 else
10074 use_hash_style="no"
10076 rm -f core conftest.err conftest.$ac_objext \
10077 conftest$ac_exeext conftest.$ac_ext
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
10079 $as_echo "$use_hash_style" >&6; }
10080 if test "x-$use_hash_style" = "x-yes" ; then
10081 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
10083 CC="$save_cc"
10084 CFLAGS="$save_cflags"
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
10095 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
10097 # Check whether --with-resolution was given.
10098 if test "${with_resolution+set}" = set; then :
10099 withval=$with_resolution; resolution=$withval
10100 else
10101 resolution=none
10104 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10105 if test "$resolution" = "yes" ; then
10106 resolution="none"
10108 if test "$resolution" = "no" ; then
10109 resolution="none"
10111 if test "$resolution" != "none" ; then
10112 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10113 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10114 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10117 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10118 aros_cv_default_wbwidth=$aros_default_wbwidth
10119 aros_cv_default_wbheight=$aros_default_wbheight
10120 aros_cv_default_wbdepth=$aros_default_wbdepth
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
10123 $as_echo_n "checking if serial debug is enabled... " >&6; }
10125 # Check whether --with-serial-debug was given.
10126 if test "${with_serial_debug+set}" = set; then :
10127 withval=$with_serial_debug; serial_debug=$withval
10128 else
10129 serial_debug=none
10132 if test "$aros_serial_debug" = 0 ; then
10133 serial_debug_forced=""
10134 if test "$serial_debug" = "yes" ; then
10135 serial_debug="1"
10137 if test "$serial_debug" = "no" ; then
10138 serial_debug="none"
10140 else
10141 serial_debug_forced="(forced)"
10142 serial_debug=$aros_serial_debug
10144 if test "$serial_debug" != "none" ; then
10145 aros_serial_debug=$serial_debug
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
10147 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
10148 else
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10150 $as_echo "no" >&6; }
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
10154 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
10155 # Check whether --enable-palm_debug_hack was given.
10156 if test "${enable_palm_debug_hack+set}" = set; then :
10157 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10158 else
10159 palm_debug_hack="no"
10162 if test "$palm_debug_hack" = "yes" ; then
10163 aros_palm_debug_hack="1"
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
10166 $as_echo "$palm_debug_hack" >&6; }
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if usb3.0 code is enabled" >&5
10169 $as_echo_n "checking if usb3.0 code is enabled... " >&6; }
10170 # Check whether --enable-usb30_code was given.
10171 if test "${enable_usb30_code+set}" = set; then :
10172 enableval=$enable_usb30_code; usb30_code="yes"
10173 else
10174 usb30_code="no"
10177 if test "$usb30_code" = "yes" ; then
10178 aros_usb30_code="1"
10179 else
10180 aros_usb30_code="0"
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
10183 $as_echo "$usb30_code" >&6; }
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
10186 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10187 # Check whether --enable-nesting_supervisor was given.
10188 if test "${enable_nesting_supervisor+set}" = set; then :
10189 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10190 else
10191 nesting_supervisor="no"
10194 if test "$nesting_supervisor" = "yes" ; then
10195 aros_nesting_supervisor="1"
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
10198 $as_echo "$nesting_supervisor" >&6; }
10200 if test "$aros_enable_mmu" = "" ; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
10202 $as_echo_n "checking if MMU support is enabled... " >&6; }
10203 # Check whether --enable-mmu was given.
10204 if test "${enable_mmu+set}" = set; then :
10205 enableval=$enable_mmu; aros_enable_mmu=$enableval
10206 else
10207 aros_enable_mmu="yes"
10210 if test "$aros_enable_mmu" = "" ; then
10211 aros_enable_mmu="yes"
10213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
10214 $as_echo "$aros_enable_mmu" >&6; }
10216 if test "$aros_enable_mmu" = "no" ; then
10217 aros_enable_mmu="0"
10218 else
10219 aros_enable_mmu="1"
10223 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10225 if test "x-$need_dlopen" != "x-no" ; then
10226 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10227 if test "x$ac_cv_func_dlopen" = x""yes; then :
10228 have_dl="yes"
10229 else
10230 have_dl="no"
10233 if test "x-$have_dl" = "x-no" ; then
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10235 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10236 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10237 $as_echo_n "(cached) " >&6
10238 else
10239 ac_check_lib_save_LIBS=$LIBS
10240 LIBS="-ldl $LIBS"
10241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10242 /* end confdefs.h. */
10244 /* Override any GCC internal prototype to avoid an error.
10245 Use char because int might match the return type of a GCC
10246 builtin and then its argument prototype would still apply. */
10247 #ifdef __cplusplus
10248 extern "C"
10249 #endif
10250 char dlopen ();
10252 main ()
10254 return dlopen ();
10256 return 0;
10258 _ACEOF
10259 if ac_fn_c_try_link "$LINENO"; then :
10260 ac_cv_lib_dl_dlopen=yes
10261 else
10262 ac_cv_lib_dl_dlopen=no
10264 rm -f core conftest.err conftest.$ac_objext \
10265 conftest$ac_exeext conftest.$ac_ext
10266 LIBS=$ac_check_lib_save_LIBS
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10269 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10270 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10271 have_dl="yes"
10272 aros_host_ldflags="$aros_host_ldflags -ldl"
10273 else
10274 have_dl="no"
10278 if test "x-$have_dl" = "x-no" ; then
10279 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
10284 # Check whether --enable-x11_hidd was given.
10285 if test "${enable_x11_hidd+set}" = set; then :
10286 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10287 else
10288 x11_hidd="$need_x11"
10291 case "x-$x11_hidd" in
10292 x-yes|x-no|x-auto) ;;
10293 *) x11_hidd="$need_x11" ;;
10294 esac
10296 ENABLE_X11=0
10298 if test "x-$x11_hidd" != "x-no" ; then
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10301 $as_echo_n "checking for X... " >&6; }
10304 # Check whether --with-x was given.
10305 if test "${with_x+set}" = set; then :
10306 withval=$with_x;
10309 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10310 if test "x$with_x" = xno; then
10311 # The user explicitly disabled X.
10312 have_x=disabled
10313 else
10314 case $x_includes,$x_libraries in #(
10315 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
10316 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10317 $as_echo_n "(cached) " >&6
10318 else
10319 # One or both of the vars are not set, and there is no cached value.
10320 ac_x_includes=no ac_x_libraries=no
10321 rm -f -r conftest.dir
10322 if mkdir conftest.dir; then
10323 cd conftest.dir
10324 cat >Imakefile <<'_ACEOF'
10325 incroot:
10326 @echo incroot='${INCROOT}'
10327 usrlibdir:
10328 @echo usrlibdir='${USRLIBDIR}'
10329 libdir:
10330 @echo libdir='${LIBDIR}'
10331 _ACEOF
10332 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10333 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10334 for ac_var in incroot usrlibdir libdir; do
10335 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10336 done
10337 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10338 for ac_extension in a so sl dylib la dll; do
10339 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10340 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10341 ac_im_usrlibdir=$ac_im_libdir; break
10343 done
10344 # Screen out bogus values from the imake configuration. They are
10345 # bogus both because they are the default anyway, and because
10346 # using them would break gcc on systems where it needs fixed includes.
10347 case $ac_im_incroot in
10348 /usr/include) ac_x_includes= ;;
10349 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10350 esac
10351 case $ac_im_usrlibdir in
10352 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10353 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10354 esac
10356 cd ..
10357 rm -f -r conftest.dir
10360 # Standard set of common directories for X headers.
10361 # Check X11 before X11Rn because it is often a symlink to the current release.
10362 ac_x_header_dirs='
10363 /usr/X11/include
10364 /usr/X11R7/include
10365 /usr/X11R6/include
10366 /usr/X11R5/include
10367 /usr/X11R4/include
10369 /usr/include/X11
10370 /usr/include/X11R7
10371 /usr/include/X11R6
10372 /usr/include/X11R5
10373 /usr/include/X11R4
10375 /usr/local/X11/include
10376 /usr/local/X11R7/include
10377 /usr/local/X11R6/include
10378 /usr/local/X11R5/include
10379 /usr/local/X11R4/include
10381 /usr/local/include/X11
10382 /usr/local/include/X11R7
10383 /usr/local/include/X11R6
10384 /usr/local/include/X11R5
10385 /usr/local/include/X11R4
10387 /usr/X386/include
10388 /usr/x386/include
10389 /usr/XFree86/include/X11
10391 /usr/include
10392 /usr/local/include
10393 /usr/unsupported/include
10394 /usr/athena/include
10395 /usr/local/x11r5/include
10396 /usr/lpp/Xamples/include
10398 /usr/openwin/include
10399 /usr/openwin/share/include'
10401 if test "$ac_x_includes" = no; then
10402 # Guess where to find include files, by looking for Xlib.h.
10403 # First, try using that file with no special directory specified.
10404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10405 /* end confdefs.h. */
10406 #include <X11/Xlib.h>
10407 _ACEOF
10408 if ac_fn_c_try_cpp "$LINENO"; then :
10409 # We can compile using X headers with no special include directory.
10410 ac_x_includes=
10411 else
10412 for ac_dir in $ac_x_header_dirs; do
10413 if test -r "$ac_dir/X11/Xlib.h"; then
10414 ac_x_includes=$ac_dir
10415 break
10417 done
10419 rm -f conftest.err conftest.i conftest.$ac_ext
10420 fi # $ac_x_includes = no
10422 if test "$ac_x_libraries" = no; then
10423 # Check for the libraries.
10424 # See if we find them without any special options.
10425 # Don't add to $LIBS permanently.
10426 ac_save_LIBS=$LIBS
10427 LIBS="-lX11 $LIBS"
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10430 #include <X11/Xlib.h>
10432 main ()
10434 XrmInitialize ()
10436 return 0;
10438 _ACEOF
10439 if ac_fn_c_try_link "$LINENO"; then :
10440 LIBS=$ac_save_LIBS
10441 # We can link X programs with no special library path.
10442 ac_x_libraries=
10443 else
10444 LIBS=$ac_save_LIBS
10445 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10447 # Don't even attempt the hair of trying to link an X program!
10448 for ac_extension in a so sl dylib la dll; do
10449 if test -r "$ac_dir/libX11.$ac_extension"; then
10450 ac_x_libraries=$ac_dir
10451 break 2
10453 done
10454 done
10456 rm -f core conftest.err conftest.$ac_objext \
10457 conftest$ac_exeext conftest.$ac_ext
10458 fi # $ac_x_libraries = no
10460 case $ac_x_includes,$ac_x_libraries in #(
10461 no,* | *,no | *\'*)
10462 # Didn't find X, or a directory has "'" in its name.
10463 ac_cv_have_x="have_x=no";; #(
10465 # Record where we found X for the cache.
10466 ac_cv_have_x="have_x=yes\
10467 ac_x_includes='$ac_x_includes'\
10468 ac_x_libraries='$ac_x_libraries'"
10469 esac
10471 ;; #(
10472 *) have_x=yes;;
10473 esac
10474 eval "$ac_cv_have_x"
10475 fi # $with_x != no
10477 if test "$have_x" != yes; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10479 $as_echo "$have_x" >&6; }
10480 no_x=yes
10481 else
10482 # If each of the values was on the command line, it overrides each guess.
10483 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10484 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10485 # Update the cache value to reflect the command line values.
10486 ac_cv_have_x="have_x=yes\
10487 ac_x_includes='$x_includes'\
10488 ac_x_libraries='$x_libraries'"
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10490 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10494 x_cflags=
10495 for path in $x_libraries
10497 x_cflags="$x_cflags -L$path"
10498 done
10500 for path in $x_includes
10502 x_cflags="$x_cflags -I$path"
10503 done
10505 if test "x-$no_x" = "x-yes" ; then
10507 if test "x-$x11_hidd" != "x-auto" ; then
10508 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10511 else
10512 x11_hidd_target=kernel-x11gfx-kobj
10513 ENABLE_X11=1
10515 # Check whether --enable-x11_shm was given.
10516 if test "${enable_x11_shm+set}" = set; then :
10517 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10518 else
10519 x11_hidd_shm="auto"
10522 case "x-$x11_hidd_shm" in
10523 x-yes|x-no|x-auto) ;;
10524 *) x11_hidd_shm="auto" ;;
10525 esac
10527 have_xshm=no
10529 if test "x-$x11_hidd_shm" != "x-no" ; then
10531 for ac_header in sys/ipc.h
10532 do :
10533 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10534 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
10535 cat >>confdefs.h <<_ACEOF
10536 #define HAVE_SYS_IPC_H 1
10537 _ACEOF
10541 done
10543 for ac_header in sys/shm.h
10544 do :
10545 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10546 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
10547 cat >>confdefs.h <<_ACEOF
10548 #define HAVE_SYS_SHM_H 1
10549 _ACEOF
10553 done
10556 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10558 save_cflags="$CFLAGS"
10559 CFLAGS="$CFLAGS $x_cflags"
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10561 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10562 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
10563 $as_echo_n "(cached) " >&6
10564 else
10565 ac_check_lib_save_LIBS=$LIBS
10566 LIBS="-lXext $LIBS"
10567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10568 /* end confdefs.h. */
10570 /* Override any GCC internal prototype to avoid an error.
10571 Use char because int might match the return type of a GCC
10572 builtin and then its argument prototype would still apply. */
10573 #ifdef __cplusplus
10574 extern "C"
10575 #endif
10576 char XShmQueryExtension ();
10578 main ()
10580 return XShmQueryExtension ();
10582 return 0;
10584 _ACEOF
10585 if ac_fn_c_try_link "$LINENO"; then :
10586 ac_cv_lib_Xext_XShmQueryExtension=yes
10587 else
10588 ac_cv_lib_Xext_XShmQueryExtension=no
10590 rm -f core conftest.err conftest.$ac_objext \
10591 conftest$ac_exeext conftest.$ac_ext
10592 LIBS=$ac_check_lib_save_LIBS
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10595 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10596 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
10597 have_xshm=yes
10600 CFLAGS="$save_cflags"
10604 if test "x-$have_xshm" = "x-yes" ; then
10605 DO_XSHM_SUPPORT="1"
10606 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10607 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10608 else
10609 DO_XSHM_SUPPORT="0"
10613 # Check whether --enable-x11_vidmode was given.
10614 if test "${enable_x11_vidmode+set}" = set; then :
10615 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10616 else
10617 x11_hidd_vidmode="auto"
10620 case "x-$x11_hidd_vidmode" in
10621 x-yes|x-no|x-auto) ;;
10622 *) x11_hidd_vidmode="auto" ;;
10623 esac
10625 have_vidmode=no
10627 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10629 save_cflags="$CFLAGS"
10630 CFLAGS="$CFLAGS $x_cflags"
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10632 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10633 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
10634 $as_echo_n "(cached) " >&6
10635 else
10636 ac_check_lib_save_LIBS=$LIBS
10637 LIBS="-lXxf86vm $LIBS"
10638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10639 /* end confdefs.h. */
10641 /* Override any GCC internal prototype to avoid an error.
10642 Use char because int might match the return type of a GCC
10643 builtin and then its argument prototype would still apply. */
10644 #ifdef __cplusplus
10645 extern "C"
10646 #endif
10647 char XF86VidModeQueryExtension ();
10649 main ()
10651 return XF86VidModeQueryExtension ();
10653 return 0;
10655 _ACEOF
10656 if ac_fn_c_try_link "$LINENO"; then :
10657 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10658 else
10659 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10661 rm -f core conftest.err conftest.$ac_objext \
10662 conftest$ac_exeext conftest.$ac_ext
10663 LIBS=$ac_check_lib_save_LIBS
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10666 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10667 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
10668 have_vidmode=yes
10671 CFLAGS="$save_cflags"
10674 if test "x-$have_vidmode" = "x-yes" ; then
10675 DO_VIDMODE_SUPPORT="1"
10676 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10677 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10678 else
10679 DO_VIDMODE_SUPPORT="0"
10683 aros_host_x11_includes=$x_includes
10684 aros_host_x11_libdirs=$x_libraries
10688 # Check whether --enable-sdl_hidd was given.
10689 if test "${enable_sdl_hidd+set}" = set; then :
10690 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10691 else
10692 sdl_hidd="auto"
10695 case "x-$sdl_hidd" in
10696 x-yes|x-no|x-auto) ;;
10697 *) sdl_hidd="auto" ;;
10698 esac
10700 if test "x-$sdl_hidd" != "x-no" ; then
10703 # Check whether --with-sdl-prefix was given.
10704 if test "${with_sdl_prefix+set}" = set; then :
10705 withval=$with_sdl_prefix; sdl_prefix="$withval"
10706 else
10707 sdl_prefix=""
10711 # Check whether --with-sdl-exec-prefix was given.
10712 if test "${with_sdl_exec_prefix+set}" = set; then :
10713 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10714 else
10715 sdl_exec_prefix=""
10718 # Check whether --enable-sdltest was given.
10719 if test "${enable_sdltest+set}" = set; then :
10720 enableval=$enable_sdltest;
10721 else
10722 enable_sdltest=yes
10726 if test x$sdl_exec_prefix != x ; then
10727 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10728 if test x${SDL_CONFIG+set} != xset ; then
10729 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10732 if test x$sdl_prefix != x ; then
10733 sdl_args="$sdl_args --prefix=$sdl_prefix"
10734 if test x${SDL_CONFIG+set} != xset ; then
10735 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10739 if test "x$prefix" != xNONE; then
10740 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10742 # Extract the first word of "sdl-config", so it can be a program name with args.
10743 set dummy sdl-config; ac_word=$2
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10745 $as_echo_n "checking for $ac_word... " >&6; }
10746 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
10747 $as_echo_n "(cached) " >&6
10748 else
10749 case $SDL_CONFIG in
10750 [\\/]* | ?:[\\/]*)
10751 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10755 for as_dir in $PATH
10757 IFS=$as_save_IFS
10758 test -z "$as_dir" && as_dir=.
10759 for ac_exec_ext in '' $ac_executable_extensions; do
10760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10761 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10763 break 2
10765 done
10766 done
10767 IFS=$as_save_IFS
10769 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10771 esac
10773 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10774 if test -n "$SDL_CONFIG"; then
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10776 $as_echo "$SDL_CONFIG" >&6; }
10777 else
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 $as_echo "no" >&6; }
10783 min_sdl_version=1.2.10
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10785 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10786 no_sdl=""
10787 if test "$SDL_CONFIG" = "no" ; then
10788 no_sdl=yes
10789 else
10790 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10791 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10793 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10794 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10795 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10796 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10797 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10798 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10799 if test "x$enable_sdltest" = "xyes" ; then
10800 ac_save_CFLAGS="$CFLAGS"
10801 ac_save_CXXFLAGS="$CXXFLAGS"
10802 ac_save_LIBS="$LIBS"
10803 CFLAGS="$CFLAGS $SDL_CFLAGS"
10804 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10805 LIBS="$LIBS $SDL_LIBS"
10806 rm -f conf.sdltest
10807 if test "$cross_compiling" = yes; then :
10808 echo $ac_n "cross compiling; assumed OK... $ac_c"
10809 else
10810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10811 /* end confdefs.h. */
10813 #include <stdio.h>
10814 #include <stdlib.h>
10815 #include <string.h>
10816 #include "SDL.h"
10818 char*
10819 my_strdup (char *str)
10821 char *new_str;
10823 if (str)
10825 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10826 strcpy (new_str, str);
10828 else
10829 new_str = NULL;
10831 return new_str;
10834 int main (int argc, char *argv[])
10836 int major, minor, micro;
10837 char *tmp_version;
10839 /* This hangs on some systems (?)
10840 system ("touch conf.sdltest");
10842 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10844 /* HP/UX 9 (%@#!) writes to sscanf strings */
10845 tmp_version = my_strdup("$min_sdl_version");
10846 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10847 printf("%s, bad version string\n", "$min_sdl_version");
10848 exit(1);
10851 if (($sdl_major_version > major) ||
10852 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10853 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10855 return 0;
10857 else
10859 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10860 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10861 printf("*** best to upgrade to the required version.\n");
10862 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10863 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10864 printf("*** config.cache before re-running configure\n");
10865 return 1;
10870 _ACEOF
10871 if ac_fn_c_try_run "$LINENO"; then :
10873 else
10874 no_sdl=yes
10876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10877 conftest.$ac_objext conftest.beam conftest.$ac_ext
10880 CFLAGS="$ac_save_CFLAGS"
10881 CXXFLAGS="$ac_save_CXXFLAGS"
10882 LIBS="$ac_save_LIBS"
10885 if test "x$no_sdl" = x ; then
10886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10887 $as_echo "yes" >&6; }
10888 have_sdl="yes"
10889 else
10890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10891 $as_echo "no" >&6; }
10892 if test "$SDL_CONFIG" = "no" ; then
10893 echo "*** The sdl-config script installed by SDL could not be found"
10894 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10895 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10896 echo "*** full path to sdl-config."
10897 else
10898 if test -f conf.sdltest ; then
10900 else
10901 echo "*** Could not run SDL test program, checking why..."
10902 CFLAGS="$CFLAGS $SDL_CFLAGS"
10903 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10904 LIBS="$LIBS $SDL_LIBS"
10905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10906 /* end confdefs.h. */
10908 #include <stdio.h>
10909 #include "SDL.h"
10911 int main(int argc, char *argv[])
10912 { return 0; }
10913 #undef main
10914 #define main K_and_R_C_main
10917 main ()
10919 return 0;
10921 return 0;
10923 _ACEOF
10924 if ac_fn_c_try_link "$LINENO"; then :
10925 echo "*** The test program compiled, but did not run. This usually means"
10926 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10927 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10928 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10929 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10930 echo "*** is required on your system"
10931 echo "***"
10932 echo "*** If you have an old version installed, it is best to remove it, although"
10933 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10934 else
10935 echo "*** The test program failed to compile or link. See the file config.log for the"
10936 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10937 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10938 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10940 rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10942 CFLAGS="$ac_save_CFLAGS"
10943 CXXFLAGS="$ac_save_CXXFLAGS"
10944 LIBS="$ac_save_LIBS"
10947 SDL_CFLAGS=""
10948 SDL_LIBS=""
10949 have_sdl="no"
10953 rm -f conf.sdltest
10956 if test "x-$have_sdl" != "x-yes" ; then
10958 if test "x-$sdl_hidd" != "x-auto" ; then
10959 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10962 else
10963 sdl_hidd_target=kernel-hidd-sdl
10964 aros_host_sdl_cflags=SDL_CFLAGS
10965 aros_host_sdl_libs=SDL_LIBS
10969 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10970 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
10975 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
10976 oss_library_target=workbench-libs-oss-unix
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10982 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10983 # Check whether --enable-dbus was given.
10984 if test "${enable_dbus+set}" = set; then :
10985 enableval=$enable_dbus; dbus="yes"
10986 else
10987 dbus="no"
10990 if test "$dbus" = "yes" ; then
10991 ENABLE_DBUS=1
10992 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10993 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10994 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10995 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10996 else
10997 ENABLE_DBUS=0
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
11000 $as_echo "$dbus" >&6; }
11004 # Generic
11015 # Host related
11039 # Target Related
11095 # Graphics Related
11112 # Native version related
11115 # Palm native version related
11118 # USB3.0 code
11121 # Unix/Hosted version related
11124 # MMU related
11127 # Apple iOS related
11132 # Android related
11136 # DBUS related
11143 #X11 related
11146 # Debug related
11152 # Collect-aros stuff: "-ius" to ignore undefined symbols
11155 # C compiler related
11158 case "$aros_flavour" in
11159 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11160 aros_flavour="emulation" ;;
11161 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11162 aros_flavour="emulation" ;;
11163 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11164 aros_flavour="standalone";;
11165 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11166 aros_flavour="standalone";;
11167 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11168 aros_flavour="native" ;;
11169 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11170 aros_flavour="native" ;;
11171 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11172 aros_flavour="linklib" ;;
11173 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11174 aros_flavour="palmnative" ;;
11175 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11176 aros_flavour="mac68knative" ;;
11177 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11178 aros_flavour="ppcnative" ;;
11179 esac
11181 if test ! -d ${aros_inc_dir} ; then
11182 ${MKDIR} ${aros_inc_dir}
11184 if test ! -d ${aros_geninc_dir} ; then
11185 ${MKDIR} ${aros_geninc_dir}
11187 if test ! -d ${aros_hostcfg_dir} ; then
11188 ${MKDIR} ${aros_hostcfg_dir}
11190 if test ! -d ${aros_targetcfg_dir} ; then
11191 ${MKDIR} ${aros_targetcfg_dir}
11193 if test ! -d ${aros_tools_dir} ; then
11194 ${MKDIR} ${aros_tools_dir}
11196 if test ! -d ${aros_scripts_dir} ; then
11197 ${MKDIR} ${aros_scripts_dir}
11200 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11203 ac_config_commands="$ac_config_commands compiler_executable"
11205 ac_config_commands="$ac_config_commands genmf_executable"
11208 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"
11211 cat >confcache <<\_ACEOF
11212 # This file is a shell script that caches the results of configure
11213 # tests run on this system so they can be shared between configure
11214 # scripts and configure runs, see configure's option --config-cache.
11215 # It is not useful on other systems. If it contains results you don't
11216 # want to keep, you may remove or edit it.
11218 # config.status only pays attention to the cache file if you give it
11219 # the --recheck option to rerun configure.
11221 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11222 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11223 # following values.
11225 _ACEOF
11227 # The following way of writing the cache mishandles newlines in values,
11228 # but we know of no workaround that is simple, portable, and efficient.
11229 # So, we kill variables containing newlines.
11230 # Ultrix sh set writes to stderr and can't be redirected directly,
11231 # and sets the high bit in the cache file unless we assign to the vars.
11233 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11234 eval ac_val=\$$ac_var
11235 case $ac_val in #(
11236 *${as_nl}*)
11237 case $ac_var in #(
11238 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11239 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11240 esac
11241 case $ac_var in #(
11242 _ | IFS | as_nl) ;; #(
11243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11244 *) { eval $ac_var=; unset $ac_var;} ;;
11245 esac ;;
11246 esac
11247 done
11249 (set) 2>&1 |
11250 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11251 *${as_nl}ac_space=\ *)
11252 # `set' does not quote correctly, so add quotes: double-quote
11253 # substitution turns \\\\ into \\, and sed turns \\ into \.
11254 sed -n \
11255 "s/'/'\\\\''/g;
11256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11257 ;; #(
11259 # `set' quotes correctly as required by POSIX, so do not add quotes.
11260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11262 esac |
11263 sort
11265 sed '
11266 /^ac_cv_env_/b end
11267 t clear
11268 :clear
11269 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11270 t end
11271 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11272 :end' >>confcache
11273 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11274 if test -w "$cache_file"; then
11275 test "x$cache_file" != "x/dev/null" &&
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11277 $as_echo "$as_me: updating cache $cache_file" >&6;}
11278 cat confcache >$cache_file
11279 else
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11281 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11284 rm -f confcache
11286 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11287 # Let make expand exec_prefix.
11288 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11290 DEFS=-DHAVE_CONFIG_H
11292 ac_libobjs=
11293 ac_ltlibobjs=
11295 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11296 # 1. Remove the extension, and $U if already installed.
11297 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11298 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11299 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11300 # will be set to the directory where LIBOBJS objects are built.
11301 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11302 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11303 done
11304 LIBOBJS=$ac_libobjs
11306 LTLIBOBJS=$ac_ltlibobjs
11310 : ${CONFIG_STATUS=./config.status}
11311 ac_write_fail=0
11312 ac_clean_files_save=$ac_clean_files
11313 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11315 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11316 as_write_fail=0
11317 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11318 #! $SHELL
11319 # Generated by $as_me.
11320 # Run this file to recreate the current configuration.
11321 # Compiler output produced by configure, useful for debugging
11322 # configure, is in config.log if it exists.
11324 debug=false
11325 ac_cs_recheck=false
11326 ac_cs_silent=false
11328 SHELL=\${CONFIG_SHELL-$SHELL}
11329 export SHELL
11330 _ASEOF
11331 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11332 ## -------------------- ##
11333 ## M4sh Initialization. ##
11334 ## -------------------- ##
11336 # Be more Bourne compatible
11337 DUALCASE=1; export DUALCASE # for MKS sh
11338 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11339 emulate sh
11340 NULLCMD=:
11341 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11342 # is contrary to our usage. Disable this feature.
11343 alias -g '${1+"$@"}'='"$@"'
11344 setopt NO_GLOB_SUBST
11345 else
11346 case `(set -o) 2>/dev/null` in #(
11347 *posix*) :
11348 set -o posix ;; #(
11349 *) :
11351 esac
11355 as_nl='
11357 export as_nl
11358 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11359 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11360 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11361 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11362 # Prefer a ksh shell builtin over an external printf program on Solaris,
11363 # but without wasting forks for bash or zsh.
11364 if test -z "$BASH_VERSION$ZSH_VERSION" \
11365 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11366 as_echo='print -r --'
11367 as_echo_n='print -rn --'
11368 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11369 as_echo='printf %s\n'
11370 as_echo_n='printf %s'
11371 else
11372 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11373 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11374 as_echo_n='/usr/ucb/echo -n'
11375 else
11376 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11377 as_echo_n_body='eval
11378 arg=$1;
11379 case $arg in #(
11380 *"$as_nl"*)
11381 expr "X$arg" : "X\\(.*\\)$as_nl";
11382 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11383 esac;
11384 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11386 export as_echo_n_body
11387 as_echo_n='sh -c $as_echo_n_body as_echo'
11389 export as_echo_body
11390 as_echo='sh -c $as_echo_body as_echo'
11393 # The user is always right.
11394 if test "${PATH_SEPARATOR+set}" != set; then
11395 PATH_SEPARATOR=:
11396 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11397 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11398 PATH_SEPARATOR=';'
11403 # IFS
11404 # We need space, tab and new line, in precisely that order. Quoting is
11405 # there to prevent editors from complaining about space-tab.
11406 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11407 # splitting by setting IFS to empty value.)
11408 IFS=" "" $as_nl"
11410 # Find who we are. Look in the path if we contain no directory separator.
11411 case $0 in #((
11412 *[\\/]* ) as_myself=$0 ;;
11413 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11414 for as_dir in $PATH
11416 IFS=$as_save_IFS
11417 test -z "$as_dir" && as_dir=.
11418 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11419 done
11420 IFS=$as_save_IFS
11423 esac
11424 # We did not find ourselves, most probably we were run as `sh COMMAND'
11425 # in which case we are not to be found in the path.
11426 if test "x$as_myself" = x; then
11427 as_myself=$0
11429 if test ! -f "$as_myself"; then
11430 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11431 exit 1
11434 # Unset variables that we do not need and which cause bugs (e.g. in
11435 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11436 # suppresses any "Segmentation fault" message there. '((' could
11437 # trigger a bug in pdksh 5.2.14.
11438 for as_var in BASH_ENV ENV MAIL MAILPATH
11439 do eval test x\${$as_var+set} = xset \
11440 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11441 done
11442 PS1='$ '
11443 PS2='> '
11444 PS4='+ '
11446 # NLS nuisances.
11447 LC_ALL=C
11448 export LC_ALL
11449 LANGUAGE=C
11450 export LANGUAGE
11452 # CDPATH.
11453 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11456 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11457 # ----------------------------------------
11458 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11459 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11460 # script with STATUS, using 1 if that was 0.
11461 as_fn_error ()
11463 as_status=$1; test $as_status -eq 0 && as_status=1
11464 if test "$4"; then
11465 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11466 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11468 $as_echo "$as_me: error: $2" >&2
11469 as_fn_exit $as_status
11470 } # as_fn_error
11473 # as_fn_set_status STATUS
11474 # -----------------------
11475 # Set $? to STATUS, without forking.
11476 as_fn_set_status ()
11478 return $1
11479 } # as_fn_set_status
11481 # as_fn_exit STATUS
11482 # -----------------
11483 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11484 as_fn_exit ()
11486 set +e
11487 as_fn_set_status $1
11488 exit $1
11489 } # as_fn_exit
11491 # as_fn_unset VAR
11492 # ---------------
11493 # Portably unset VAR.
11494 as_fn_unset ()
11496 { eval $1=; unset $1;}
11498 as_unset=as_fn_unset
11499 # as_fn_append VAR VALUE
11500 # ----------------------
11501 # Append the text in VALUE to the end of the definition contained in VAR. Take
11502 # advantage of any shell optimizations that allow amortized linear growth over
11503 # repeated appends, instead of the typical quadratic growth present in naive
11504 # implementations.
11505 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11506 eval 'as_fn_append ()
11508 eval $1+=\$2
11510 else
11511 as_fn_append ()
11513 eval $1=\$$1\$2
11515 fi # as_fn_append
11517 # as_fn_arith ARG...
11518 # ------------------
11519 # Perform arithmetic evaluation on the ARGs, and store the result in the
11520 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11521 # must be portable across $(()) and expr.
11522 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11523 eval 'as_fn_arith ()
11525 as_val=$(( $* ))
11527 else
11528 as_fn_arith ()
11530 as_val=`expr "$@" || test $? -eq 1`
11532 fi # as_fn_arith
11535 if expr a : '\(a\)' >/dev/null 2>&1 &&
11536 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11537 as_expr=expr
11538 else
11539 as_expr=false
11542 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11543 as_basename=basename
11544 else
11545 as_basename=false
11548 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11549 as_dirname=dirname
11550 else
11551 as_dirname=false
11554 as_me=`$as_basename -- "$0" ||
11555 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11556 X"$0" : 'X\(//\)$' \| \
11557 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11558 $as_echo X/"$0" |
11559 sed '/^.*\/\([^/][^/]*\)\/*$/{
11560 s//\1/
11563 /^X\/\(\/\/\)$/{
11564 s//\1/
11567 /^X\/\(\/\).*/{
11568 s//\1/
11571 s/.*/./; q'`
11573 # Avoid depending upon Character Ranges.
11574 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11575 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11576 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11577 as_cr_digits='0123456789'
11578 as_cr_alnum=$as_cr_Letters$as_cr_digits
11580 ECHO_C= ECHO_N= ECHO_T=
11581 case `echo -n x` in #(((((
11582 -n*)
11583 case `echo 'xy\c'` in
11584 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11585 xy) ECHO_C='\c';;
11586 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11587 ECHO_T=' ';;
11588 esac;;
11590 ECHO_N='-n';;
11591 esac
11593 rm -f conf$$ conf$$.exe conf$$.file
11594 if test -d conf$$.dir; then
11595 rm -f conf$$.dir/conf$$.file
11596 else
11597 rm -f conf$$.dir
11598 mkdir conf$$.dir 2>/dev/null
11600 if (echo >conf$$.file) 2>/dev/null; then
11601 if ln -s conf$$.file conf$$ 2>/dev/null; then
11602 as_ln_s='ln -s'
11603 # ... but there are two gotchas:
11604 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11605 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11606 # In both cases, we have to default to `cp -p'.
11607 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11608 as_ln_s='cp -p'
11609 elif ln conf$$.file conf$$ 2>/dev/null; then
11610 as_ln_s=ln
11611 else
11612 as_ln_s='cp -p'
11614 else
11615 as_ln_s='cp -p'
11617 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11618 rmdir conf$$.dir 2>/dev/null
11621 # as_fn_mkdir_p
11622 # -------------
11623 # Create "$as_dir" as a directory, including parents if necessary.
11624 as_fn_mkdir_p ()
11627 case $as_dir in #(
11628 -*) as_dir=./$as_dir;;
11629 esac
11630 test -d "$as_dir" || eval $as_mkdir_p || {
11631 as_dirs=
11632 while :; do
11633 case $as_dir in #(
11634 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11635 *) as_qdir=$as_dir;;
11636 esac
11637 as_dirs="'$as_qdir' $as_dirs"
11638 as_dir=`$as_dirname -- "$as_dir" ||
11639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11640 X"$as_dir" : 'X\(//\)[^/]' \| \
11641 X"$as_dir" : 'X\(//\)$' \| \
11642 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11643 $as_echo X"$as_dir" |
11644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11645 s//\1/
11648 /^X\(\/\/\)[^/].*/{
11649 s//\1/
11652 /^X\(\/\/\)$/{
11653 s//\1/
11656 /^X\(\/\).*/{
11657 s//\1/
11660 s/.*/./; q'`
11661 test -d "$as_dir" && break
11662 done
11663 test -z "$as_dirs" || eval "mkdir $as_dirs"
11664 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11667 } # as_fn_mkdir_p
11668 if mkdir -p . 2>/dev/null; then
11669 as_mkdir_p='mkdir -p "$as_dir"'
11670 else
11671 test -d ./-p && rmdir ./-p
11672 as_mkdir_p=false
11675 if test -x / >/dev/null 2>&1; then
11676 as_test_x='test -x'
11677 else
11678 if ls -dL / >/dev/null 2>&1; then
11679 as_ls_L_option=L
11680 else
11681 as_ls_L_option=
11683 as_test_x='
11684 eval sh -c '\''
11685 if test -d "$1"; then
11686 test -d "$1/.";
11687 else
11688 case $1 in #(
11689 -*)set "./$1";;
11690 esac;
11691 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11692 ???[sx]*):;;*)false;;esac;fi
11693 '\'' sh
11696 as_executable_p=$as_test_x
11698 # Sed expression to map a string onto a valid CPP name.
11699 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11701 # Sed expression to map a string onto a valid variable name.
11702 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11705 exec 6>&1
11706 ## ----------------------------------- ##
11707 ## Main body of $CONFIG_STATUS script. ##
11708 ## ----------------------------------- ##
11709 _ASEOF
11710 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11713 # Save the log message, to keep $0 and so on meaningful, and to
11714 # report actual input values of CONFIG_FILES etc. instead of their
11715 # values after options handling.
11716 ac_log="
11717 This file was extended by $as_me, which was
11718 generated by GNU Autoconf 2.67. Invocation command line was
11720 CONFIG_FILES = $CONFIG_FILES
11721 CONFIG_HEADERS = $CONFIG_HEADERS
11722 CONFIG_LINKS = $CONFIG_LINKS
11723 CONFIG_COMMANDS = $CONFIG_COMMANDS
11724 $ $0 $@
11726 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11729 _ACEOF
11731 case $ac_config_files in *"
11732 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11733 esac
11735 case $ac_config_headers in *"
11736 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11737 esac
11740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11741 # Files that config.status was made for.
11742 config_files="$ac_config_files"
11743 config_headers="$ac_config_headers"
11744 config_commands="$ac_config_commands"
11746 _ACEOF
11748 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11749 ac_cs_usage="\
11750 \`$as_me' instantiates files and other configuration actions
11751 from templates according to the current configuration. Unless the files
11752 and actions are specified as TAGs, all are instantiated by default.
11754 Usage: $0 [OPTION]... [TAG]...
11756 -h, --help print this help, then exit
11757 -V, --version print version number and configuration settings, then exit
11758 --config print configuration, then exit
11759 -q, --quiet, --silent
11760 do not print progress messages
11761 -d, --debug don't remove temporary files
11762 --recheck update $as_me by reconfiguring in the same conditions
11763 --file=FILE[:TEMPLATE]
11764 instantiate the configuration file FILE
11765 --header=FILE[:TEMPLATE]
11766 instantiate the configuration header FILE
11768 Configuration files:
11769 $config_files
11771 Configuration headers:
11772 $config_headers
11774 Configuration commands:
11775 $config_commands
11777 Report bugs to the package provider."
11779 _ACEOF
11780 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11781 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11782 ac_cs_version="\\
11783 config.status
11784 configured by $0, generated by GNU Autoconf 2.67,
11785 with options \\"\$ac_cs_config\\"
11787 Copyright (C) 2010 Free Software Foundation, Inc.
11788 This config.status script is free software; the Free Software Foundation
11789 gives unlimited permission to copy, distribute and modify it."
11791 ac_pwd='$ac_pwd'
11792 srcdir='$srcdir'
11793 test -n "\$AWK" || AWK=awk
11794 _ACEOF
11796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11797 # The default lists apply if the user does not specify any file.
11798 ac_need_defaults=:
11799 while test $# != 0
11801 case $1 in
11802 --*=?*)
11803 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11804 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11805 ac_shift=:
11807 --*=)
11808 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11809 ac_optarg=
11810 ac_shift=:
11813 ac_option=$1
11814 ac_optarg=$2
11815 ac_shift=shift
11817 esac
11819 case $ac_option in
11820 # Handling of the options.
11821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11822 ac_cs_recheck=: ;;
11823 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11824 $as_echo "$ac_cs_version"; exit ;;
11825 --config | --confi | --conf | --con | --co | --c )
11826 $as_echo "$ac_cs_config"; exit ;;
11827 --debug | --debu | --deb | --de | --d | -d )
11828 debug=: ;;
11829 --file | --fil | --fi | --f )
11830 $ac_shift
11831 case $ac_optarg in
11832 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11833 '') as_fn_error $? "missing file argument" ;;
11834 esac
11835 as_fn_append CONFIG_FILES " '$ac_optarg'"
11836 ac_need_defaults=false;;
11837 --header | --heade | --head | --hea )
11838 $ac_shift
11839 case $ac_optarg in
11840 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11841 esac
11842 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11843 ac_need_defaults=false;;
11844 --he | --h)
11845 # Conflict between --help and --header
11846 as_fn_error $? "ambiguous option: \`$1'
11847 Try \`$0 --help' for more information.";;
11848 --help | --hel | -h )
11849 $as_echo "$ac_cs_usage"; exit ;;
11850 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11851 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11852 ac_cs_silent=: ;;
11854 # This is an error.
11855 -*) as_fn_error $? "unrecognized option: \`$1'
11856 Try \`$0 --help' for more information." ;;
11858 *) as_fn_append ac_config_targets " $1"
11859 ac_need_defaults=false ;;
11861 esac
11862 shift
11863 done
11865 ac_configure_extra_args=
11867 if $ac_cs_silent; then
11868 exec 6>/dev/null
11869 ac_configure_extra_args="$ac_configure_extra_args --silent"
11872 _ACEOF
11873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11874 if \$ac_cs_recheck; then
11875 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11876 shift
11877 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11878 CONFIG_SHELL='$SHELL'
11879 export CONFIG_SHELL
11880 exec "\$@"
11883 _ACEOF
11884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11885 exec 5>>config.log
11887 echo
11888 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11889 ## Running $as_me. ##
11890 _ASBOX
11891 $as_echo "$ac_log"
11892 } >&5
11894 _ACEOF
11895 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11897 # INIT-COMMANDS
11900 aros_host_exe_suffix=${aros_host_exe_suffix}
11901 aros_tools_dir=${aros_tools_dir}
11902 aros_target_cpu=${aros_target_cpu}
11903 aros_target_arch=${aros_target_arch}
11904 aros_target_suffix=${aros_target_suffix}
11905 aros_target_nm_ln=${aros_target_nm_ln}
11906 aros_target_as_ln=${aros_target_as_ln}
11907 aros_target_ar_ln=${aros_target_ar_ln}
11908 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11909 aros_target_objdump_ln=${aros_target_objdump_ln}
11910 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11911 aros_target_strip_ln=${aros_target_strip_ln}
11914 aros_tools_dir=${aros_tools_dir}
11917 _ACEOF
11919 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11921 # Handling of arguments.
11922 for ac_config_target in $ac_config_targets
11924 case $ac_config_target in
11925 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11926 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11927 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11928 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11929 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11930 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11931 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11932 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11933 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11934 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11935 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11936 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11937 "${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" ;;
11938 "${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" ;;
11939 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11940 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11941 "${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" ;;
11943 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
11944 esac
11945 done
11948 # If the user did not use the arguments to specify the items to instantiate,
11949 # then the envvar interface is used. Set only those that are not.
11950 # We use the long form for the default assignment because of an extremely
11951 # bizarre bug on SunOS 4.1.3.
11952 if $ac_need_defaults; then
11953 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11954 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11955 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11958 # Have a temporary directory for convenience. Make it in the build tree
11959 # simply because there is no reason against having it here, and in addition,
11960 # creating and moving files from /tmp can sometimes cause problems.
11961 # Hook for its removal unless debugging.
11962 # Note that there is a small window in which the directory will not be cleaned:
11963 # after its creation but before its name has been assigned to `$tmp'.
11964 $debug ||
11966 tmp=
11967 trap 'exit_status=$?
11968 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11970 trap 'as_fn_exit 1' 1 2 13 15
11972 # Create a (secure) tmp directory for tmp files.
11975 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11976 test -n "$tmp" && test -d "$tmp"
11977 } ||
11979 tmp=./conf$$-$RANDOM
11980 (umask 077 && mkdir "$tmp")
11981 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11983 # Set up the scripts for CONFIG_FILES section.
11984 # No need to generate them if there are no CONFIG_FILES.
11985 # This happens for instance with `./config.status config.h'.
11986 if test -n "$CONFIG_FILES"; then
11989 ac_cr=`echo X | tr X '\015'`
11990 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11991 # But we know of no other shell where ac_cr would be empty at this
11992 # point, so we can use a bashism as a fallback.
11993 if test "x$ac_cr" = x; then
11994 eval ac_cr=\$\'\\r\'
11996 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11997 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11998 ac_cs_awk_cr='\\r'
11999 else
12000 ac_cs_awk_cr=$ac_cr
12003 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12004 _ACEOF
12008 echo "cat >conf$$subs.awk <<_ACEOF" &&
12009 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12010 echo "_ACEOF"
12011 } >conf$$subs.sh ||
12012 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12013 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12014 ac_delim='%!_!# '
12015 for ac_last_try in false false false false false :; do
12016 . ./conf$$subs.sh ||
12017 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12019 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12020 if test $ac_delim_n = $ac_delim_num; then
12021 break
12022 elif $ac_last_try; then
12023 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12024 else
12025 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12027 done
12028 rm -f conf$$subs.sh
12030 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12031 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12032 _ACEOF
12033 sed -n '
12035 s/^/S["/; s/!.*/"]=/
12038 s/^[^!]*!//
12039 :repl
12040 t repl
12041 s/'"$ac_delim"'$//
12042 t delim
12045 s/\(.\{148\}\)..*/\1/
12046 t more1
12047 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12050 b repl
12051 :more1
12052 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12055 s/.\{148\}//
12056 t nl
12057 :delim
12059 s/\(.\{148\}\)..*/\1/
12060 t more2
12061 s/["\\]/\\&/g; s/^/"/; s/$/"/
12064 :more2
12065 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12068 s/.\{148\}//
12069 t delim
12070 ' <conf$$subs.awk | sed '
12071 /^[^""]/{
12073 s/\n//
12075 ' >>$CONFIG_STATUS || ac_write_fail=1
12076 rm -f conf$$subs.awk
12077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12078 _ACAWK
12079 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12080 for (key in S) S_is_set[key] = 1
12081 FS = "\a"
12085 line = $ 0
12086 nfields = split(line, field, "@")
12087 substed = 0
12088 len = length(field[1])
12089 for (i = 2; i < nfields; i++) {
12090 key = field[i]
12091 keylen = length(key)
12092 if (S_is_set[key]) {
12093 value = S[key]
12094 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12095 len += length(value) + length(field[++i])
12096 substed = 1
12097 } else
12098 len += 1 + keylen
12101 print line
12104 _ACAWK
12105 _ACEOF
12106 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12107 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12108 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12109 else
12111 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12112 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12113 _ACEOF
12115 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12116 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12117 # trailing colons and then remove the whole line if VPATH becomes empty
12118 # (actually we leave an empty line to preserve line numbers).
12119 if test "x$srcdir" = x.; then
12120 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12122 s///
12123 s/^/:/
12124 s/[ ]*$/:/
12125 s/:\$(srcdir):/:/g
12126 s/:\${srcdir}:/:/g
12127 s/:@srcdir@:/:/g
12128 s/^:*//
12129 s/:*$//
12131 s/\(=[ ]*\).*/\1/
12133 s/\n//
12134 s/^[^=]*=[ ]*$//
12138 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12139 fi # test -n "$CONFIG_FILES"
12141 # Set up the scripts for CONFIG_HEADERS section.
12142 # No need to generate them if there are no CONFIG_HEADERS.
12143 # This happens for instance with `./config.status Makefile'.
12144 if test -n "$CONFIG_HEADERS"; then
12145 cat >"$tmp/defines.awk" <<\_ACAWK ||
12146 BEGIN {
12147 _ACEOF
12149 # Transform confdefs.h into an awk script `defines.awk', embedded as
12150 # here-document in config.status, that substitutes the proper values into
12151 # config.h.in to produce config.h.
12153 # Create a delimiter string that does not exist in confdefs.h, to ease
12154 # handling of long lines.
12155 ac_delim='%!_!# '
12156 for ac_last_try in false false :; do
12157 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12158 if test -z "$ac_t"; then
12159 break
12160 elif $ac_last_try; then
12161 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12162 else
12163 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12165 done
12167 # For the awk script, D is an array of macro values keyed by name,
12168 # likewise P contains macro parameters if any. Preserve backslash
12169 # newline sequences.
12171 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12172 sed -n '
12173 s/.\{148\}/&'"$ac_delim"'/g
12174 t rset
12175 :rset
12176 s/^[ ]*#[ ]*define[ ][ ]*/ /
12177 t def
12179 :def
12180 s/\\$//
12181 t bsnl
12182 s/["\\]/\\&/g
12183 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12184 D["\1"]=" \3"/p
12185 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12187 :bsnl
12188 s/["\\]/\\&/g
12189 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12190 D["\1"]=" \3\\\\\\n"\\/p
12191 t cont
12192 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12193 t cont
12195 :cont
12197 s/.\{148\}/&'"$ac_delim"'/g
12198 t clear
12199 :clear
12200 s/\\$//
12201 t bsnlc
12202 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12204 :bsnlc
12205 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12206 b cont
12207 ' <confdefs.h | sed '
12208 s/'"$ac_delim"'/"\\\
12209 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12211 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12212 for (key in D) D_is_set[key] = 1
12213 FS = "\a"
12215 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12216 line = \$ 0
12217 split(line, arg, " ")
12218 if (arg[1] == "#") {
12219 defundef = arg[2]
12220 mac1 = arg[3]
12221 } else {
12222 defundef = substr(arg[1], 2)
12223 mac1 = arg[2]
12225 split(mac1, mac2, "(") #)
12226 macro = mac2[1]
12227 prefix = substr(line, 1, index(line, defundef) - 1)
12228 if (D_is_set[macro]) {
12229 # Preserve the white space surrounding the "#".
12230 print prefix "define", macro P[macro] D[macro]
12231 next
12232 } else {
12233 # Replace #undef with comments. This is necessary, for example,
12234 # in the case of _POSIX_SOURCE, which is predefined and required
12235 # on some systems where configure will not decide to define it.
12236 if (defundef == "undef") {
12237 print "/*", prefix defundef, macro, "*/"
12238 next
12242 { print }
12243 _ACAWK
12244 _ACEOF
12245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12246 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12247 fi # test -n "$CONFIG_HEADERS"
12250 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12251 shift
12252 for ac_tag
12254 case $ac_tag in
12255 :[FHLC]) ac_mode=$ac_tag; continue;;
12256 esac
12257 case $ac_mode$ac_tag in
12258 :[FHL]*:*);;
12259 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12260 :[FH]-) ac_tag=-:-;;
12261 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12262 esac
12263 ac_save_IFS=$IFS
12264 IFS=:
12265 set x $ac_tag
12266 IFS=$ac_save_IFS
12267 shift
12268 ac_file=$1
12269 shift
12271 case $ac_mode in
12272 :L) ac_source=$1;;
12273 :[FH])
12274 ac_file_inputs=
12275 for ac_f
12277 case $ac_f in
12278 -) ac_f="$tmp/stdin";;
12279 *) # Look for the file first in the build tree, then in the source tree
12280 # (if the path is not absolute). The absolute path cannot be DOS-style,
12281 # because $ac_f cannot contain `:'.
12282 test -f "$ac_f" ||
12283 case $ac_f in
12284 [\\/$]*) false;;
12285 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12286 esac ||
12287 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12288 esac
12289 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12290 as_fn_append ac_file_inputs " '$ac_f'"
12291 done
12293 # Let's still pretend it is `configure' which instantiates (i.e., don't
12294 # use $as_me), people would be surprised to read:
12295 # /* config.h. Generated by config.status. */
12296 configure_input='Generated from '`
12297 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12298 `' by configure.'
12299 if test x"$ac_file" != x-; then
12300 configure_input="$ac_file. $configure_input"
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12302 $as_echo "$as_me: creating $ac_file" >&6;}
12304 # Neutralize special characters interpreted by sed in replacement strings.
12305 case $configure_input in #(
12306 *\&* | *\|* | *\\* )
12307 ac_sed_conf_input=`$as_echo "$configure_input" |
12308 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12309 *) ac_sed_conf_input=$configure_input;;
12310 esac
12312 case $ac_tag in
12313 *:-:* | *:-) cat >"$tmp/stdin" \
12314 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12315 esac
12317 esac
12319 ac_dir=`$as_dirname -- "$ac_file" ||
12320 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12321 X"$ac_file" : 'X\(//\)[^/]' \| \
12322 X"$ac_file" : 'X\(//\)$' \| \
12323 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12324 $as_echo X"$ac_file" |
12325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12326 s//\1/
12329 /^X\(\/\/\)[^/].*/{
12330 s//\1/
12333 /^X\(\/\/\)$/{
12334 s//\1/
12337 /^X\(\/\).*/{
12338 s//\1/
12341 s/.*/./; q'`
12342 as_dir="$ac_dir"; as_fn_mkdir_p
12343 ac_builddir=.
12345 case "$ac_dir" in
12346 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12348 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12349 # A ".." for each directory in $ac_dir_suffix.
12350 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12351 case $ac_top_builddir_sub in
12352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12354 esac ;;
12355 esac
12356 ac_abs_top_builddir=$ac_pwd
12357 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12358 # for backward compatibility:
12359 ac_top_builddir=$ac_top_build_prefix
12361 case $srcdir in
12362 .) # We are building in place.
12363 ac_srcdir=.
12364 ac_top_srcdir=$ac_top_builddir_sub
12365 ac_abs_top_srcdir=$ac_pwd ;;
12366 [\\/]* | ?:[\\/]* ) # Absolute name.
12367 ac_srcdir=$srcdir$ac_dir_suffix;
12368 ac_top_srcdir=$srcdir
12369 ac_abs_top_srcdir=$srcdir ;;
12370 *) # Relative name.
12371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12372 ac_top_srcdir=$ac_top_build_prefix$srcdir
12373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12374 esac
12375 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12378 case $ac_mode in
12381 # CONFIG_FILE
12384 _ACEOF
12386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12387 # If the template does not know about datarootdir, expand it.
12388 # FIXME: This hack should be removed a few years after 2.60.
12389 ac_datarootdir_hack=; ac_datarootdir_seen=
12390 ac_sed_dataroot='
12391 /datarootdir/ {
12395 /@datadir@/p
12396 /@docdir@/p
12397 /@infodir@/p
12398 /@localedir@/p
12399 /@mandir@/p'
12400 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12401 *datarootdir*) ac_datarootdir_seen=yes;;
12402 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12404 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12405 _ACEOF
12406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12407 ac_datarootdir_hack='
12408 s&@datadir@&$datadir&g
12409 s&@docdir@&$docdir&g
12410 s&@infodir@&$infodir&g
12411 s&@localedir@&$localedir&g
12412 s&@mandir@&$mandir&g
12413 s&\\\${datarootdir}&$datarootdir&g' ;;
12414 esac
12415 _ACEOF
12417 # Neutralize VPATH when `$srcdir' = `.'.
12418 # Shell code in configure.ac might set extrasub.
12419 # FIXME: do we really want to maintain this feature?
12420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12421 ac_sed_extra="$ac_vpsub
12422 $extrasub
12423 _ACEOF
12424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12427 s|@configure_input@|$ac_sed_conf_input|;t t
12428 s&@top_builddir@&$ac_top_builddir_sub&;t t
12429 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12430 s&@srcdir@&$ac_srcdir&;t t
12431 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12432 s&@top_srcdir@&$ac_top_srcdir&;t t
12433 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12434 s&@builddir@&$ac_builddir&;t t
12435 s&@abs_builddir@&$ac_abs_builddir&;t t
12436 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12437 $ac_datarootdir_hack
12439 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12440 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12442 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12443 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12444 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12446 which seems to be undefined. Please make sure it is defined" >&5
12447 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12448 which seems to be undefined. Please make sure it is defined" >&2;}
12450 rm -f "$tmp/stdin"
12451 case $ac_file in
12452 -) cat "$tmp/out" && rm -f "$tmp/out";;
12453 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12454 esac \
12455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12459 # CONFIG_HEADER
12461 if test x"$ac_file" != x-; then
12463 $as_echo "/* $configure_input */" \
12464 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12465 } >"$tmp/config.h" \
12466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12467 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12469 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12470 else
12471 rm -f "$ac_file"
12472 mv "$tmp/config.h" "$ac_file" \
12473 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12475 else
12476 $as_echo "/* $configure_input */" \
12477 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12478 || as_fn_error $? "could not create -" "$LINENO" 5
12482 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12483 $as_echo "$as_me: executing $ac_file commands" >&6;}
12485 esac
12488 case $ac_file$ac_mode in
12489 "compiler_executable":C)
12490 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12491 mkdir -p $prefix
12492 prefix="${prefix}/${aros_target_cpu}-aros"
12493 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12495 echo ${prefix}
12496 echo ${prefix2}
12497 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12499 ln -sf ${prefix2}-gcc ${prefix}-gcc
12500 ln -sf ${prefix2}-ld ${prefix}-ld
12502 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12503 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12504 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12505 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12506 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12507 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12508 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12510 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12511 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12512 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12513 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12514 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12515 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12516 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12518 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12520 esac
12521 done # for ac_tag
12524 as_fn_exit 0
12525 _ACEOF
12526 ac_clean_files=$ac_clean_files_save
12528 test $ac_write_fail = 0 ||
12529 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12532 # configure is writing to config.log, and then calls config.status.
12533 # config.status does its own redirection, appending to config.log.
12534 # Unfortunately, on DOS this fails, as config.log is still kept open
12535 # by configure, so config.status won't be able to write to it; its
12536 # output is simply discarded. So we exec the FD to /dev/null,
12537 # effectively closing config.log, so it can be properly (re)opened and
12538 # appended to by config.status. When coming back to configure, we
12539 # need to make the FD available again.
12540 if test "$no_create" != yes; then
12541 ac_cs_success=:
12542 ac_config_status_args=
12543 test "$silent" = yes &&
12544 ac_config_status_args="$ac_config_status_args --quiet"
12545 exec 5>/dev/null
12546 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12547 exec 5>>config.log
12548 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12549 # would make configure fail if this is the last instruction.
12550 $ac_cs_success || as_fn_exit 1
12552 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12554 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12559 #XXX compatability...
12560 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12562 if test -n "$aros_shared_cflags" ; then
12563 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12564 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg