- Add "--enable-usb30-code" in configure, defaults to no
[AROS.git] / configure
blob9b16b3a33b7d51c25e287b8cf4c8ecd5fd75852c
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 -DAROS_DOS_PACKETS -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="2"
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"
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $usb30_code" >&5
10181 $as_echo "$usb30_code" >&6; }
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
10184 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10185 # Check whether --enable-nesting_supervisor was given.
10186 if test "${enable_nesting_supervisor+set}" = set; then :
10187 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10188 else
10189 nesting_supervisor="no"
10192 if test "$nesting_supervisor" = "yes" ; then
10193 aros_nesting_supervisor="1"
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
10196 $as_echo "$nesting_supervisor" >&6; }
10198 if test "$aros_enable_mmu" = "" ; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
10200 $as_echo_n "checking if MMU support is enabled... " >&6; }
10201 # Check whether --enable-mmu was given.
10202 if test "${enable_mmu+set}" = set; then :
10203 enableval=$enable_mmu; aros_enable_mmu=$enableval
10204 else
10205 aros_enable_mmu="yes"
10208 if test "$aros_enable_mmu" = "" ; then
10209 aros_enable_mmu="yes"
10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
10212 $as_echo "$aros_enable_mmu" >&6; }
10214 if test "$aros_enable_mmu" = "no" ; then
10215 aros_enable_mmu="0"
10216 else
10217 aros_enable_mmu="1"
10221 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10223 if test "x-$need_dlopen" != "x-no" ; then
10224 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10225 if test "x$ac_cv_func_dlopen" = x""yes; then :
10226 have_dl="yes"
10227 else
10228 have_dl="no"
10231 if test "x-$have_dl" = "x-no" ; then
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10233 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10234 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10235 $as_echo_n "(cached) " >&6
10236 else
10237 ac_check_lib_save_LIBS=$LIBS
10238 LIBS="-ldl $LIBS"
10239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10240 /* end confdefs.h. */
10242 /* Override any GCC internal prototype to avoid an error.
10243 Use char because int might match the return type of a GCC
10244 builtin and then its argument prototype would still apply. */
10245 #ifdef __cplusplus
10246 extern "C"
10247 #endif
10248 char dlopen ();
10250 main ()
10252 return dlopen ();
10254 return 0;
10256 _ACEOF
10257 if ac_fn_c_try_link "$LINENO"; then :
10258 ac_cv_lib_dl_dlopen=yes
10259 else
10260 ac_cv_lib_dl_dlopen=no
10262 rm -f core conftest.err conftest.$ac_objext \
10263 conftest$ac_exeext conftest.$ac_ext
10264 LIBS=$ac_check_lib_save_LIBS
10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10267 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10268 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10269 have_dl="yes"
10270 aros_host_ldflags="$aros_host_ldflags -ldl"
10271 else
10272 have_dl="no"
10276 if test "x-$have_dl" = "x-no" ; then
10277 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
10282 # Check whether --enable-x11_hidd was given.
10283 if test "${enable_x11_hidd+set}" = set; then :
10284 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10285 else
10286 x11_hidd="$need_x11"
10289 case "x-$x11_hidd" in
10290 x-yes|x-no|x-auto) ;;
10291 *) x11_hidd="$need_x11" ;;
10292 esac
10294 ENABLE_X11=0
10296 if test "x-$x11_hidd" != "x-no" ; then
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10299 $as_echo_n "checking for X... " >&6; }
10302 # Check whether --with-x was given.
10303 if test "${with_x+set}" = set; then :
10304 withval=$with_x;
10307 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10308 if test "x$with_x" = xno; then
10309 # The user explicitly disabled X.
10310 have_x=disabled
10311 else
10312 case $x_includes,$x_libraries in #(
10313 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
10314 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10315 $as_echo_n "(cached) " >&6
10316 else
10317 # One or both of the vars are not set, and there is no cached value.
10318 ac_x_includes=no ac_x_libraries=no
10319 rm -f -r conftest.dir
10320 if mkdir conftest.dir; then
10321 cd conftest.dir
10322 cat >Imakefile <<'_ACEOF'
10323 incroot:
10324 @echo incroot='${INCROOT}'
10325 usrlibdir:
10326 @echo usrlibdir='${USRLIBDIR}'
10327 libdir:
10328 @echo libdir='${LIBDIR}'
10329 _ACEOF
10330 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10331 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10332 for ac_var in incroot usrlibdir libdir; do
10333 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10334 done
10335 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10336 for ac_extension in a so sl dylib la dll; do
10337 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10338 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10339 ac_im_usrlibdir=$ac_im_libdir; break
10341 done
10342 # Screen out bogus values from the imake configuration. They are
10343 # bogus both because they are the default anyway, and because
10344 # using them would break gcc on systems where it needs fixed includes.
10345 case $ac_im_incroot in
10346 /usr/include) ac_x_includes= ;;
10347 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10348 esac
10349 case $ac_im_usrlibdir in
10350 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10351 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10352 esac
10354 cd ..
10355 rm -f -r conftest.dir
10358 # Standard set of common directories for X headers.
10359 # Check X11 before X11Rn because it is often a symlink to the current release.
10360 ac_x_header_dirs='
10361 /usr/X11/include
10362 /usr/X11R7/include
10363 /usr/X11R6/include
10364 /usr/X11R5/include
10365 /usr/X11R4/include
10367 /usr/include/X11
10368 /usr/include/X11R7
10369 /usr/include/X11R6
10370 /usr/include/X11R5
10371 /usr/include/X11R4
10373 /usr/local/X11/include
10374 /usr/local/X11R7/include
10375 /usr/local/X11R6/include
10376 /usr/local/X11R5/include
10377 /usr/local/X11R4/include
10379 /usr/local/include/X11
10380 /usr/local/include/X11R7
10381 /usr/local/include/X11R6
10382 /usr/local/include/X11R5
10383 /usr/local/include/X11R4
10385 /usr/X386/include
10386 /usr/x386/include
10387 /usr/XFree86/include/X11
10389 /usr/include
10390 /usr/local/include
10391 /usr/unsupported/include
10392 /usr/athena/include
10393 /usr/local/x11r5/include
10394 /usr/lpp/Xamples/include
10396 /usr/openwin/include
10397 /usr/openwin/share/include'
10399 if test "$ac_x_includes" = no; then
10400 # Guess where to find include files, by looking for Xlib.h.
10401 # First, try using that file with no special directory specified.
10402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10403 /* end confdefs.h. */
10404 #include <X11/Xlib.h>
10405 _ACEOF
10406 if ac_fn_c_try_cpp "$LINENO"; then :
10407 # We can compile using X headers with no special include directory.
10408 ac_x_includes=
10409 else
10410 for ac_dir in $ac_x_header_dirs; do
10411 if test -r "$ac_dir/X11/Xlib.h"; then
10412 ac_x_includes=$ac_dir
10413 break
10415 done
10417 rm -f conftest.err conftest.i conftest.$ac_ext
10418 fi # $ac_x_includes = no
10420 if test "$ac_x_libraries" = no; then
10421 # Check for the libraries.
10422 # See if we find them without any special options.
10423 # Don't add to $LIBS permanently.
10424 ac_save_LIBS=$LIBS
10425 LIBS="-lX11 $LIBS"
10426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10427 /* end confdefs.h. */
10428 #include <X11/Xlib.h>
10430 main ()
10432 XrmInitialize ()
10434 return 0;
10436 _ACEOF
10437 if ac_fn_c_try_link "$LINENO"; then :
10438 LIBS=$ac_save_LIBS
10439 # We can link X programs with no special library path.
10440 ac_x_libraries=
10441 else
10442 LIBS=$ac_save_LIBS
10443 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10445 # Don't even attempt the hair of trying to link an X program!
10446 for ac_extension in a so sl dylib la dll; do
10447 if test -r "$ac_dir/libX11.$ac_extension"; then
10448 ac_x_libraries=$ac_dir
10449 break 2
10451 done
10452 done
10454 rm -f core conftest.err conftest.$ac_objext \
10455 conftest$ac_exeext conftest.$ac_ext
10456 fi # $ac_x_libraries = no
10458 case $ac_x_includes,$ac_x_libraries in #(
10459 no,* | *,no | *\'*)
10460 # Didn't find X, or a directory has "'" in its name.
10461 ac_cv_have_x="have_x=no";; #(
10463 # Record where we found X for the cache.
10464 ac_cv_have_x="have_x=yes\
10465 ac_x_includes='$ac_x_includes'\
10466 ac_x_libraries='$ac_x_libraries'"
10467 esac
10469 ;; #(
10470 *) have_x=yes;;
10471 esac
10472 eval "$ac_cv_have_x"
10473 fi # $with_x != no
10475 if test "$have_x" != yes; then
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10477 $as_echo "$have_x" >&6; }
10478 no_x=yes
10479 else
10480 # If each of the values was on the command line, it overrides each guess.
10481 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10482 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10483 # Update the cache value to reflect the command line values.
10484 ac_cv_have_x="have_x=yes\
10485 ac_x_includes='$x_includes'\
10486 ac_x_libraries='$x_libraries'"
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10488 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10492 x_cflags=
10493 for path in $x_libraries
10495 x_cflags="$x_cflags -L$path"
10496 done
10498 for path in $x_includes
10500 x_cflags="$x_cflags -I$path"
10501 done
10503 if test "x-$no_x" = "x-yes" ; then
10505 if test "x-$x11_hidd" != "x-auto" ; then
10506 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10509 else
10510 x11_hidd_target=kernel-x11gfx-kobj
10511 ENABLE_X11=1
10513 # Check whether --enable-x11_shm was given.
10514 if test "${enable_x11_shm+set}" = set; then :
10515 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10516 else
10517 x11_hidd_shm="auto"
10520 case "x-$x11_hidd_shm" in
10521 x-yes|x-no|x-auto) ;;
10522 *) x11_hidd_shm="auto" ;;
10523 esac
10525 have_xshm=no
10527 if test "x-$x11_hidd_shm" != "x-no" ; then
10529 for ac_header in sys/ipc.h
10530 do :
10531 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10532 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
10533 cat >>confdefs.h <<_ACEOF
10534 #define HAVE_SYS_IPC_H 1
10535 _ACEOF
10539 done
10541 for ac_header in sys/shm.h
10542 do :
10543 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10544 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
10545 cat >>confdefs.h <<_ACEOF
10546 #define HAVE_SYS_SHM_H 1
10547 _ACEOF
10551 done
10554 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10556 save_cflags="$CFLAGS"
10557 CFLAGS="$CFLAGS $x_cflags"
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10559 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10560 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
10561 $as_echo_n "(cached) " >&6
10562 else
10563 ac_check_lib_save_LIBS=$LIBS
10564 LIBS="-lXext $LIBS"
10565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10566 /* end confdefs.h. */
10568 /* Override any GCC internal prototype to avoid an error.
10569 Use char because int might match the return type of a GCC
10570 builtin and then its argument prototype would still apply. */
10571 #ifdef __cplusplus
10572 extern "C"
10573 #endif
10574 char XShmQueryExtension ();
10576 main ()
10578 return XShmQueryExtension ();
10580 return 0;
10582 _ACEOF
10583 if ac_fn_c_try_link "$LINENO"; then :
10584 ac_cv_lib_Xext_XShmQueryExtension=yes
10585 else
10586 ac_cv_lib_Xext_XShmQueryExtension=no
10588 rm -f core conftest.err conftest.$ac_objext \
10589 conftest$ac_exeext conftest.$ac_ext
10590 LIBS=$ac_check_lib_save_LIBS
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10593 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10594 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
10595 have_xshm=yes
10598 CFLAGS="$save_cflags"
10602 if test "x-$have_xshm" = "x-yes" ; then
10603 DO_XSHM_SUPPORT="1"
10604 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10605 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10606 else
10607 DO_XSHM_SUPPORT="0"
10611 # Check whether --enable-x11_vidmode was given.
10612 if test "${enable_x11_vidmode+set}" = set; then :
10613 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10614 else
10615 x11_hidd_vidmode="auto"
10618 case "x-$x11_hidd_vidmode" in
10619 x-yes|x-no|x-auto) ;;
10620 *) x11_hidd_vidmode="auto" ;;
10621 esac
10623 have_vidmode=no
10625 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10627 save_cflags="$CFLAGS"
10628 CFLAGS="$CFLAGS $x_cflags"
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10630 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10631 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
10632 $as_echo_n "(cached) " >&6
10633 else
10634 ac_check_lib_save_LIBS=$LIBS
10635 LIBS="-lXxf86vm $LIBS"
10636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10637 /* end confdefs.h. */
10639 /* Override any GCC internal prototype to avoid an error.
10640 Use char because int might match the return type of a GCC
10641 builtin and then its argument prototype would still apply. */
10642 #ifdef __cplusplus
10643 extern "C"
10644 #endif
10645 char XF86VidModeQueryExtension ();
10647 main ()
10649 return XF86VidModeQueryExtension ();
10651 return 0;
10653 _ACEOF
10654 if ac_fn_c_try_link "$LINENO"; then :
10655 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10656 else
10657 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10659 rm -f core conftest.err conftest.$ac_objext \
10660 conftest$ac_exeext conftest.$ac_ext
10661 LIBS=$ac_check_lib_save_LIBS
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10664 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10665 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
10666 have_vidmode=yes
10669 CFLAGS="$save_cflags"
10672 if test "x-$have_vidmode" = "x-yes" ; then
10673 DO_VIDMODE_SUPPORT="1"
10674 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10675 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10676 else
10677 DO_VIDMODE_SUPPORT="0"
10681 aros_host_x11_includes=$x_includes
10682 aros_host_x11_libdirs=$x_libraries
10686 # Check whether --enable-sdl_hidd was given.
10687 if test "${enable_sdl_hidd+set}" = set; then :
10688 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10689 else
10690 sdl_hidd="auto"
10693 case "x-$sdl_hidd" in
10694 x-yes|x-no|x-auto) ;;
10695 *) sdl_hidd="auto" ;;
10696 esac
10698 if test "x-$sdl_hidd" != "x-no" ; then
10701 # Check whether --with-sdl-prefix was given.
10702 if test "${with_sdl_prefix+set}" = set; then :
10703 withval=$with_sdl_prefix; sdl_prefix="$withval"
10704 else
10705 sdl_prefix=""
10709 # Check whether --with-sdl-exec-prefix was given.
10710 if test "${with_sdl_exec_prefix+set}" = set; then :
10711 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10712 else
10713 sdl_exec_prefix=""
10716 # Check whether --enable-sdltest was given.
10717 if test "${enable_sdltest+set}" = set; then :
10718 enableval=$enable_sdltest;
10719 else
10720 enable_sdltest=yes
10724 if test x$sdl_exec_prefix != x ; then
10725 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10726 if test x${SDL_CONFIG+set} != xset ; then
10727 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10730 if test x$sdl_prefix != x ; then
10731 sdl_args="$sdl_args --prefix=$sdl_prefix"
10732 if test x${SDL_CONFIG+set} != xset ; then
10733 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10737 if test "x$prefix" != xNONE; then
10738 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10740 # Extract the first word of "sdl-config", so it can be a program name with args.
10741 set dummy sdl-config; ac_word=$2
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10743 $as_echo_n "checking for $ac_word... " >&6; }
10744 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
10745 $as_echo_n "(cached) " >&6
10746 else
10747 case $SDL_CONFIG in
10748 [\\/]* | ?:[\\/]*)
10749 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753 for as_dir in $PATH
10755 IFS=$as_save_IFS
10756 test -z "$as_dir" && as_dir=.
10757 for ac_exec_ext in '' $ac_executable_extensions; do
10758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10759 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10761 break 2
10763 done
10764 done
10765 IFS=$as_save_IFS
10767 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10769 esac
10771 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10772 if test -n "$SDL_CONFIG"; then
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10774 $as_echo "$SDL_CONFIG" >&6; }
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10781 min_sdl_version=1.2.10
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10783 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10784 no_sdl=""
10785 if test "$SDL_CONFIG" = "no" ; then
10786 no_sdl=yes
10787 else
10788 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10789 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10791 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10792 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10793 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10794 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10795 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10796 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10797 if test "x$enable_sdltest" = "xyes" ; then
10798 ac_save_CFLAGS="$CFLAGS"
10799 ac_save_CXXFLAGS="$CXXFLAGS"
10800 ac_save_LIBS="$LIBS"
10801 CFLAGS="$CFLAGS $SDL_CFLAGS"
10802 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10803 LIBS="$LIBS $SDL_LIBS"
10804 rm -f conf.sdltest
10805 if test "$cross_compiling" = yes; then :
10806 echo $ac_n "cross compiling; assumed OK... $ac_c"
10807 else
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10811 #include <stdio.h>
10812 #include <stdlib.h>
10813 #include <string.h>
10814 #include "SDL.h"
10816 char*
10817 my_strdup (char *str)
10819 char *new_str;
10821 if (str)
10823 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10824 strcpy (new_str, str);
10826 else
10827 new_str = NULL;
10829 return new_str;
10832 int main (int argc, char *argv[])
10834 int major, minor, micro;
10835 char *tmp_version;
10837 /* This hangs on some systems (?)
10838 system ("touch conf.sdltest");
10840 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10842 /* HP/UX 9 (%@#!) writes to sscanf strings */
10843 tmp_version = my_strdup("$min_sdl_version");
10844 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10845 printf("%s, bad version string\n", "$min_sdl_version");
10846 exit(1);
10849 if (($sdl_major_version > major) ||
10850 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10851 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10853 return 0;
10855 else
10857 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10858 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10859 printf("*** best to upgrade to the required version.\n");
10860 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10861 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10862 printf("*** config.cache before re-running configure\n");
10863 return 1;
10868 _ACEOF
10869 if ac_fn_c_try_run "$LINENO"; then :
10871 else
10872 no_sdl=yes
10874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10875 conftest.$ac_objext conftest.beam conftest.$ac_ext
10878 CFLAGS="$ac_save_CFLAGS"
10879 CXXFLAGS="$ac_save_CXXFLAGS"
10880 LIBS="$ac_save_LIBS"
10883 if test "x$no_sdl" = x ; then
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10885 $as_echo "yes" >&6; }
10886 have_sdl="yes"
10887 else
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10889 $as_echo "no" >&6; }
10890 if test "$SDL_CONFIG" = "no" ; then
10891 echo "*** The sdl-config script installed by SDL could not be found"
10892 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10893 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10894 echo "*** full path to sdl-config."
10895 else
10896 if test -f conf.sdltest ; then
10898 else
10899 echo "*** Could not run SDL test program, checking why..."
10900 CFLAGS="$CFLAGS $SDL_CFLAGS"
10901 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10902 LIBS="$LIBS $SDL_LIBS"
10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904 /* end confdefs.h. */
10906 #include <stdio.h>
10907 #include "SDL.h"
10909 int main(int argc, char *argv[])
10910 { return 0; }
10911 #undef main
10912 #define main K_and_R_C_main
10915 main ()
10917 return 0;
10919 return 0;
10921 _ACEOF
10922 if ac_fn_c_try_link "$LINENO"; then :
10923 echo "*** The test program compiled, but did not run. This usually means"
10924 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10925 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10926 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10927 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10928 echo "*** is required on your system"
10929 echo "***"
10930 echo "*** If you have an old version installed, it is best to remove it, although"
10931 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10932 else
10933 echo "*** The test program failed to compile or link. See the file config.log for the"
10934 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10935 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10936 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10938 rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10940 CFLAGS="$ac_save_CFLAGS"
10941 CXXFLAGS="$ac_save_CXXFLAGS"
10942 LIBS="$ac_save_LIBS"
10945 SDL_CFLAGS=""
10946 SDL_LIBS=""
10947 have_sdl="no"
10951 rm -f conf.sdltest
10954 if test "x-$have_sdl" != "x-yes" ; then
10956 if test "x-$sdl_hidd" != "x-auto" ; then
10957 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10960 else
10961 sdl_hidd_target=kernel-hidd-sdl
10962 aros_host_sdl_cflags=SDL_CFLAGS
10963 aros_host_sdl_libs=SDL_LIBS
10967 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10968 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
10973 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
10974 oss_library_target=workbench-libs-oss-unix
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10980 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10981 # Check whether --enable-dbus was given.
10982 if test "${enable_dbus+set}" = set; then :
10983 enableval=$enable_dbus; dbus="yes"
10984 else
10985 dbus="no"
10988 if test "$dbus" = "yes" ; then
10989 ENABLE_DBUS=1
10990 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10991 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10992 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10993 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10994 else
10995 ENABLE_DBUS=0
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10998 $as_echo "$dbus" >&6; }
11002 # Generic
11013 # Host related
11037 # Target Related
11093 # Graphics Related
11110 # Native version related
11113 # Palm native version related
11116 # USB3.0 code
11119 # Unix/Hosted version related
11122 # MMU related
11125 # Apple iOS related
11130 # Android related
11134 # DBUS related
11141 #X11 related
11144 # Debug related
11150 # Collect-aros stuff: "-ius" to ignore undefined symbols
11153 # C compiler related
11156 case "$aros_flavour" in
11157 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11158 aros_flavour="emulation" ;;
11159 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11160 aros_flavour="emulation" ;;
11161 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11162 aros_flavour="standalone";;
11163 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11164 aros_flavour="standalone";;
11165 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11166 aros_flavour="native" ;;
11167 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11168 aros_flavour="native" ;;
11169 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11170 aros_flavour="linklib" ;;
11171 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11172 aros_flavour="palmnative" ;;
11173 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11174 aros_flavour="mac68knative" ;;
11175 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11176 aros_flavour="ppcnative" ;;
11177 esac
11179 if test ! -d ${aros_inc_dir} ; then
11180 ${MKDIR} ${aros_inc_dir}
11182 if test ! -d ${aros_geninc_dir} ; then
11183 ${MKDIR} ${aros_geninc_dir}
11185 if test ! -d ${aros_hostcfg_dir} ; then
11186 ${MKDIR} ${aros_hostcfg_dir}
11188 if test ! -d ${aros_targetcfg_dir} ; then
11189 ${MKDIR} ${aros_targetcfg_dir}
11191 if test ! -d ${aros_tools_dir} ; then
11192 ${MKDIR} ${aros_tools_dir}
11194 if test ! -d ${aros_scripts_dir} ; then
11195 ${MKDIR} ${aros_scripts_dir}
11198 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11201 ac_config_commands="$ac_config_commands compiler_executable"
11203 ac_config_commands="$ac_config_commands genmf_executable"
11206 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"
11209 cat >confcache <<\_ACEOF
11210 # This file is a shell script that caches the results of configure
11211 # tests run on this system so they can be shared between configure
11212 # scripts and configure runs, see configure's option --config-cache.
11213 # It is not useful on other systems. If it contains results you don't
11214 # want to keep, you may remove or edit it.
11216 # config.status only pays attention to the cache file if you give it
11217 # the --recheck option to rerun configure.
11219 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11220 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11221 # following values.
11223 _ACEOF
11225 # The following way of writing the cache mishandles newlines in values,
11226 # but we know of no workaround that is simple, portable, and efficient.
11227 # So, we kill variables containing newlines.
11228 # Ultrix sh set writes to stderr and can't be redirected directly,
11229 # and sets the high bit in the cache file unless we assign to the vars.
11231 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11232 eval ac_val=\$$ac_var
11233 case $ac_val in #(
11234 *${as_nl}*)
11235 case $ac_var in #(
11236 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11237 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11238 esac
11239 case $ac_var in #(
11240 _ | IFS | as_nl) ;; #(
11241 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11242 *) { eval $ac_var=; unset $ac_var;} ;;
11243 esac ;;
11244 esac
11245 done
11247 (set) 2>&1 |
11248 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11249 *${as_nl}ac_space=\ *)
11250 # `set' does not quote correctly, so add quotes: double-quote
11251 # substitution turns \\\\ into \\, and sed turns \\ into \.
11252 sed -n \
11253 "s/'/'\\\\''/g;
11254 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11255 ;; #(
11257 # `set' quotes correctly as required by POSIX, so do not add quotes.
11258 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11260 esac |
11261 sort
11263 sed '
11264 /^ac_cv_env_/b end
11265 t clear
11266 :clear
11267 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11268 t end
11269 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11270 :end' >>confcache
11271 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11272 if test -w "$cache_file"; then
11273 test "x$cache_file" != "x/dev/null" &&
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11275 $as_echo "$as_me: updating cache $cache_file" >&6;}
11276 cat confcache >$cache_file
11277 else
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11279 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11282 rm -f confcache
11284 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11285 # Let make expand exec_prefix.
11286 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11288 DEFS=-DHAVE_CONFIG_H
11290 ac_libobjs=
11291 ac_ltlibobjs=
11293 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11294 # 1. Remove the extension, and $U if already installed.
11295 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11296 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11297 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11298 # will be set to the directory where LIBOBJS objects are built.
11299 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11300 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11301 done
11302 LIBOBJS=$ac_libobjs
11304 LTLIBOBJS=$ac_ltlibobjs
11308 : ${CONFIG_STATUS=./config.status}
11309 ac_write_fail=0
11310 ac_clean_files_save=$ac_clean_files
11311 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11313 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11314 as_write_fail=0
11315 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11316 #! $SHELL
11317 # Generated by $as_me.
11318 # Run this file to recreate the current configuration.
11319 # Compiler output produced by configure, useful for debugging
11320 # configure, is in config.log if it exists.
11322 debug=false
11323 ac_cs_recheck=false
11324 ac_cs_silent=false
11326 SHELL=\${CONFIG_SHELL-$SHELL}
11327 export SHELL
11328 _ASEOF
11329 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11330 ## -------------------- ##
11331 ## M4sh Initialization. ##
11332 ## -------------------- ##
11334 # Be more Bourne compatible
11335 DUALCASE=1; export DUALCASE # for MKS sh
11336 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11337 emulate sh
11338 NULLCMD=:
11339 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11340 # is contrary to our usage. Disable this feature.
11341 alias -g '${1+"$@"}'='"$@"'
11342 setopt NO_GLOB_SUBST
11343 else
11344 case `(set -o) 2>/dev/null` in #(
11345 *posix*) :
11346 set -o posix ;; #(
11347 *) :
11349 esac
11353 as_nl='
11355 export as_nl
11356 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11357 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11358 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11359 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11360 # Prefer a ksh shell builtin over an external printf program on Solaris,
11361 # but without wasting forks for bash or zsh.
11362 if test -z "$BASH_VERSION$ZSH_VERSION" \
11363 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11364 as_echo='print -r --'
11365 as_echo_n='print -rn --'
11366 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11367 as_echo='printf %s\n'
11368 as_echo_n='printf %s'
11369 else
11370 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11371 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11372 as_echo_n='/usr/ucb/echo -n'
11373 else
11374 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11375 as_echo_n_body='eval
11376 arg=$1;
11377 case $arg in #(
11378 *"$as_nl"*)
11379 expr "X$arg" : "X\\(.*\\)$as_nl";
11380 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11381 esac;
11382 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11384 export as_echo_n_body
11385 as_echo_n='sh -c $as_echo_n_body as_echo'
11387 export as_echo_body
11388 as_echo='sh -c $as_echo_body as_echo'
11391 # The user is always right.
11392 if test "${PATH_SEPARATOR+set}" != set; then
11393 PATH_SEPARATOR=:
11394 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11395 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11396 PATH_SEPARATOR=';'
11401 # IFS
11402 # We need space, tab and new line, in precisely that order. Quoting is
11403 # there to prevent editors from complaining about space-tab.
11404 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11405 # splitting by setting IFS to empty value.)
11406 IFS=" "" $as_nl"
11408 # Find who we are. Look in the path if we contain no directory separator.
11409 case $0 in #((
11410 *[\\/]* ) as_myself=$0 ;;
11411 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11412 for as_dir in $PATH
11414 IFS=$as_save_IFS
11415 test -z "$as_dir" && as_dir=.
11416 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11417 done
11418 IFS=$as_save_IFS
11421 esac
11422 # We did not find ourselves, most probably we were run as `sh COMMAND'
11423 # in which case we are not to be found in the path.
11424 if test "x$as_myself" = x; then
11425 as_myself=$0
11427 if test ! -f "$as_myself"; then
11428 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11429 exit 1
11432 # Unset variables that we do not need and which cause bugs (e.g. in
11433 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11434 # suppresses any "Segmentation fault" message there. '((' could
11435 # trigger a bug in pdksh 5.2.14.
11436 for as_var in BASH_ENV ENV MAIL MAILPATH
11437 do eval test x\${$as_var+set} = xset \
11438 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11439 done
11440 PS1='$ '
11441 PS2='> '
11442 PS4='+ '
11444 # NLS nuisances.
11445 LC_ALL=C
11446 export LC_ALL
11447 LANGUAGE=C
11448 export LANGUAGE
11450 # CDPATH.
11451 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11454 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11455 # ----------------------------------------
11456 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11457 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11458 # script with STATUS, using 1 if that was 0.
11459 as_fn_error ()
11461 as_status=$1; test $as_status -eq 0 && as_status=1
11462 if test "$4"; then
11463 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11464 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11466 $as_echo "$as_me: error: $2" >&2
11467 as_fn_exit $as_status
11468 } # as_fn_error
11471 # as_fn_set_status STATUS
11472 # -----------------------
11473 # Set $? to STATUS, without forking.
11474 as_fn_set_status ()
11476 return $1
11477 } # as_fn_set_status
11479 # as_fn_exit STATUS
11480 # -----------------
11481 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11482 as_fn_exit ()
11484 set +e
11485 as_fn_set_status $1
11486 exit $1
11487 } # as_fn_exit
11489 # as_fn_unset VAR
11490 # ---------------
11491 # Portably unset VAR.
11492 as_fn_unset ()
11494 { eval $1=; unset $1;}
11496 as_unset=as_fn_unset
11497 # as_fn_append VAR VALUE
11498 # ----------------------
11499 # Append the text in VALUE to the end of the definition contained in VAR. Take
11500 # advantage of any shell optimizations that allow amortized linear growth over
11501 # repeated appends, instead of the typical quadratic growth present in naive
11502 # implementations.
11503 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11504 eval 'as_fn_append ()
11506 eval $1+=\$2
11508 else
11509 as_fn_append ()
11511 eval $1=\$$1\$2
11513 fi # as_fn_append
11515 # as_fn_arith ARG...
11516 # ------------------
11517 # Perform arithmetic evaluation on the ARGs, and store the result in the
11518 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11519 # must be portable across $(()) and expr.
11520 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11521 eval 'as_fn_arith ()
11523 as_val=$(( $* ))
11525 else
11526 as_fn_arith ()
11528 as_val=`expr "$@" || test $? -eq 1`
11530 fi # as_fn_arith
11533 if expr a : '\(a\)' >/dev/null 2>&1 &&
11534 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11535 as_expr=expr
11536 else
11537 as_expr=false
11540 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11541 as_basename=basename
11542 else
11543 as_basename=false
11546 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11547 as_dirname=dirname
11548 else
11549 as_dirname=false
11552 as_me=`$as_basename -- "$0" ||
11553 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11554 X"$0" : 'X\(//\)$' \| \
11555 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11556 $as_echo X/"$0" |
11557 sed '/^.*\/\([^/][^/]*\)\/*$/{
11558 s//\1/
11561 /^X\/\(\/\/\)$/{
11562 s//\1/
11565 /^X\/\(\/\).*/{
11566 s//\1/
11569 s/.*/./; q'`
11571 # Avoid depending upon Character Ranges.
11572 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11573 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11574 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11575 as_cr_digits='0123456789'
11576 as_cr_alnum=$as_cr_Letters$as_cr_digits
11578 ECHO_C= ECHO_N= ECHO_T=
11579 case `echo -n x` in #(((((
11580 -n*)
11581 case `echo 'xy\c'` in
11582 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11583 xy) ECHO_C='\c';;
11584 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11585 ECHO_T=' ';;
11586 esac;;
11588 ECHO_N='-n';;
11589 esac
11591 rm -f conf$$ conf$$.exe conf$$.file
11592 if test -d conf$$.dir; then
11593 rm -f conf$$.dir/conf$$.file
11594 else
11595 rm -f conf$$.dir
11596 mkdir conf$$.dir 2>/dev/null
11598 if (echo >conf$$.file) 2>/dev/null; then
11599 if ln -s conf$$.file conf$$ 2>/dev/null; then
11600 as_ln_s='ln -s'
11601 # ... but there are two gotchas:
11602 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11603 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11604 # In both cases, we have to default to `cp -p'.
11605 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11606 as_ln_s='cp -p'
11607 elif ln conf$$.file conf$$ 2>/dev/null; then
11608 as_ln_s=ln
11609 else
11610 as_ln_s='cp -p'
11612 else
11613 as_ln_s='cp -p'
11615 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11616 rmdir conf$$.dir 2>/dev/null
11619 # as_fn_mkdir_p
11620 # -------------
11621 # Create "$as_dir" as a directory, including parents if necessary.
11622 as_fn_mkdir_p ()
11625 case $as_dir in #(
11626 -*) as_dir=./$as_dir;;
11627 esac
11628 test -d "$as_dir" || eval $as_mkdir_p || {
11629 as_dirs=
11630 while :; do
11631 case $as_dir in #(
11632 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11633 *) as_qdir=$as_dir;;
11634 esac
11635 as_dirs="'$as_qdir' $as_dirs"
11636 as_dir=`$as_dirname -- "$as_dir" ||
11637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11638 X"$as_dir" : 'X\(//\)[^/]' \| \
11639 X"$as_dir" : 'X\(//\)$' \| \
11640 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11641 $as_echo X"$as_dir" |
11642 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11643 s//\1/
11646 /^X\(\/\/\)[^/].*/{
11647 s//\1/
11650 /^X\(\/\/\)$/{
11651 s//\1/
11654 /^X\(\/\).*/{
11655 s//\1/
11658 s/.*/./; q'`
11659 test -d "$as_dir" && break
11660 done
11661 test -z "$as_dirs" || eval "mkdir $as_dirs"
11662 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11665 } # as_fn_mkdir_p
11666 if mkdir -p . 2>/dev/null; then
11667 as_mkdir_p='mkdir -p "$as_dir"'
11668 else
11669 test -d ./-p && rmdir ./-p
11670 as_mkdir_p=false
11673 if test -x / >/dev/null 2>&1; then
11674 as_test_x='test -x'
11675 else
11676 if ls -dL / >/dev/null 2>&1; then
11677 as_ls_L_option=L
11678 else
11679 as_ls_L_option=
11681 as_test_x='
11682 eval sh -c '\''
11683 if test -d "$1"; then
11684 test -d "$1/.";
11685 else
11686 case $1 in #(
11687 -*)set "./$1";;
11688 esac;
11689 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11690 ???[sx]*):;;*)false;;esac;fi
11691 '\'' sh
11694 as_executable_p=$as_test_x
11696 # Sed expression to map a string onto a valid CPP name.
11697 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11699 # Sed expression to map a string onto a valid variable name.
11700 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11703 exec 6>&1
11704 ## ----------------------------------- ##
11705 ## Main body of $CONFIG_STATUS script. ##
11706 ## ----------------------------------- ##
11707 _ASEOF
11708 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11710 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11711 # Save the log message, to keep $0 and so on meaningful, and to
11712 # report actual input values of CONFIG_FILES etc. instead of their
11713 # values after options handling.
11714 ac_log="
11715 This file was extended by $as_me, which was
11716 generated by GNU Autoconf 2.67. Invocation command line was
11718 CONFIG_FILES = $CONFIG_FILES
11719 CONFIG_HEADERS = $CONFIG_HEADERS
11720 CONFIG_LINKS = $CONFIG_LINKS
11721 CONFIG_COMMANDS = $CONFIG_COMMANDS
11722 $ $0 $@
11724 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11727 _ACEOF
11729 case $ac_config_files in *"
11730 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11731 esac
11733 case $ac_config_headers in *"
11734 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11735 esac
11738 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11739 # Files that config.status was made for.
11740 config_files="$ac_config_files"
11741 config_headers="$ac_config_headers"
11742 config_commands="$ac_config_commands"
11744 _ACEOF
11746 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11747 ac_cs_usage="\
11748 \`$as_me' instantiates files and other configuration actions
11749 from templates according to the current configuration. Unless the files
11750 and actions are specified as TAGs, all are instantiated by default.
11752 Usage: $0 [OPTION]... [TAG]...
11754 -h, --help print this help, then exit
11755 -V, --version print version number and configuration settings, then exit
11756 --config print configuration, then exit
11757 -q, --quiet, --silent
11758 do not print progress messages
11759 -d, --debug don't remove temporary files
11760 --recheck update $as_me by reconfiguring in the same conditions
11761 --file=FILE[:TEMPLATE]
11762 instantiate the configuration file FILE
11763 --header=FILE[:TEMPLATE]
11764 instantiate the configuration header FILE
11766 Configuration files:
11767 $config_files
11769 Configuration headers:
11770 $config_headers
11772 Configuration commands:
11773 $config_commands
11775 Report bugs to the package provider."
11777 _ACEOF
11778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11779 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11780 ac_cs_version="\\
11781 config.status
11782 configured by $0, generated by GNU Autoconf 2.67,
11783 with options \\"\$ac_cs_config\\"
11785 Copyright (C) 2010 Free Software Foundation, Inc.
11786 This config.status script is free software; the Free Software Foundation
11787 gives unlimited permission to copy, distribute and modify it."
11789 ac_pwd='$ac_pwd'
11790 srcdir='$srcdir'
11791 test -n "\$AWK" || AWK=awk
11792 _ACEOF
11794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11795 # The default lists apply if the user does not specify any file.
11796 ac_need_defaults=:
11797 while test $# != 0
11799 case $1 in
11800 --*=?*)
11801 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11802 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11803 ac_shift=:
11805 --*=)
11806 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11807 ac_optarg=
11808 ac_shift=:
11811 ac_option=$1
11812 ac_optarg=$2
11813 ac_shift=shift
11815 esac
11817 case $ac_option in
11818 # Handling of the options.
11819 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11820 ac_cs_recheck=: ;;
11821 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11822 $as_echo "$ac_cs_version"; exit ;;
11823 --config | --confi | --conf | --con | --co | --c )
11824 $as_echo "$ac_cs_config"; exit ;;
11825 --debug | --debu | --deb | --de | --d | -d )
11826 debug=: ;;
11827 --file | --fil | --fi | --f )
11828 $ac_shift
11829 case $ac_optarg in
11830 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11831 '') as_fn_error $? "missing file argument" ;;
11832 esac
11833 as_fn_append CONFIG_FILES " '$ac_optarg'"
11834 ac_need_defaults=false;;
11835 --header | --heade | --head | --hea )
11836 $ac_shift
11837 case $ac_optarg in
11838 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11839 esac
11840 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11841 ac_need_defaults=false;;
11842 --he | --h)
11843 # Conflict between --help and --header
11844 as_fn_error $? "ambiguous option: \`$1'
11845 Try \`$0 --help' for more information.";;
11846 --help | --hel | -h )
11847 $as_echo "$ac_cs_usage"; exit ;;
11848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11849 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11850 ac_cs_silent=: ;;
11852 # This is an error.
11853 -*) as_fn_error $? "unrecognized option: \`$1'
11854 Try \`$0 --help' for more information." ;;
11856 *) as_fn_append ac_config_targets " $1"
11857 ac_need_defaults=false ;;
11859 esac
11860 shift
11861 done
11863 ac_configure_extra_args=
11865 if $ac_cs_silent; then
11866 exec 6>/dev/null
11867 ac_configure_extra_args="$ac_configure_extra_args --silent"
11870 _ACEOF
11871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11872 if \$ac_cs_recheck; then
11873 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11874 shift
11875 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11876 CONFIG_SHELL='$SHELL'
11877 export CONFIG_SHELL
11878 exec "\$@"
11881 _ACEOF
11882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11883 exec 5>>config.log
11885 echo
11886 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11887 ## Running $as_me. ##
11888 _ASBOX
11889 $as_echo "$ac_log"
11890 } >&5
11892 _ACEOF
11893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11895 # INIT-COMMANDS
11898 aros_host_exe_suffix=${aros_host_exe_suffix}
11899 aros_tools_dir=${aros_tools_dir}
11900 aros_target_cpu=${aros_target_cpu}
11901 aros_target_arch=${aros_target_arch}
11902 aros_target_suffix=${aros_target_suffix}
11903 aros_target_nm_ln=${aros_target_nm_ln}
11904 aros_target_as_ln=${aros_target_as_ln}
11905 aros_target_ar_ln=${aros_target_ar_ln}
11906 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11907 aros_target_objdump_ln=${aros_target_objdump_ln}
11908 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11909 aros_target_strip_ln=${aros_target_strip_ln}
11912 aros_tools_dir=${aros_tools_dir}
11915 _ACEOF
11917 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11919 # Handling of arguments.
11920 for ac_config_target in $ac_config_targets
11922 case $ac_config_target in
11923 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11924 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11925 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11926 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11927 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11928 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11929 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11930 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11931 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11932 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11933 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11934 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11935 "${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" ;;
11936 "${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" ;;
11937 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11938 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11939 "${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" ;;
11941 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
11942 esac
11943 done
11946 # If the user did not use the arguments to specify the items to instantiate,
11947 # then the envvar interface is used. Set only those that are not.
11948 # We use the long form for the default assignment because of an extremely
11949 # bizarre bug on SunOS 4.1.3.
11950 if $ac_need_defaults; then
11951 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11952 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11953 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11956 # Have a temporary directory for convenience. Make it in the build tree
11957 # simply because there is no reason against having it here, and in addition,
11958 # creating and moving files from /tmp can sometimes cause problems.
11959 # Hook for its removal unless debugging.
11960 # Note that there is a small window in which the directory will not be cleaned:
11961 # after its creation but before its name has been assigned to `$tmp'.
11962 $debug ||
11964 tmp=
11965 trap 'exit_status=$?
11966 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11968 trap 'as_fn_exit 1' 1 2 13 15
11970 # Create a (secure) tmp directory for tmp files.
11973 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11974 test -n "$tmp" && test -d "$tmp"
11975 } ||
11977 tmp=./conf$$-$RANDOM
11978 (umask 077 && mkdir "$tmp")
11979 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11981 # Set up the scripts for CONFIG_FILES section.
11982 # No need to generate them if there are no CONFIG_FILES.
11983 # This happens for instance with `./config.status config.h'.
11984 if test -n "$CONFIG_FILES"; then
11987 ac_cr=`echo X | tr X '\015'`
11988 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11989 # But we know of no other shell where ac_cr would be empty at this
11990 # point, so we can use a bashism as a fallback.
11991 if test "x$ac_cr" = x; then
11992 eval ac_cr=\$\'\\r\'
11994 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11995 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11996 ac_cs_awk_cr='\\r'
11997 else
11998 ac_cs_awk_cr=$ac_cr
12001 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12002 _ACEOF
12006 echo "cat >conf$$subs.awk <<_ACEOF" &&
12007 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12008 echo "_ACEOF"
12009 } >conf$$subs.sh ||
12010 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12011 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12012 ac_delim='%!_!# '
12013 for ac_last_try in false false false false false :; do
12014 . ./conf$$subs.sh ||
12015 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12017 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12018 if test $ac_delim_n = $ac_delim_num; then
12019 break
12020 elif $ac_last_try; then
12021 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12022 else
12023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12025 done
12026 rm -f conf$$subs.sh
12028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12029 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12030 _ACEOF
12031 sed -n '
12033 s/^/S["/; s/!.*/"]=/
12036 s/^[^!]*!//
12037 :repl
12038 t repl
12039 s/'"$ac_delim"'$//
12040 t delim
12043 s/\(.\{148\}\)..*/\1/
12044 t more1
12045 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12048 b repl
12049 :more1
12050 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12053 s/.\{148\}//
12054 t nl
12055 :delim
12057 s/\(.\{148\}\)..*/\1/
12058 t more2
12059 s/["\\]/\\&/g; s/^/"/; s/$/"/
12062 :more2
12063 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12066 s/.\{148\}//
12067 t delim
12068 ' <conf$$subs.awk | sed '
12069 /^[^""]/{
12071 s/\n//
12073 ' >>$CONFIG_STATUS || ac_write_fail=1
12074 rm -f conf$$subs.awk
12075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12076 _ACAWK
12077 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12078 for (key in S) S_is_set[key] = 1
12079 FS = "\a"
12083 line = $ 0
12084 nfields = split(line, field, "@")
12085 substed = 0
12086 len = length(field[1])
12087 for (i = 2; i < nfields; i++) {
12088 key = field[i]
12089 keylen = length(key)
12090 if (S_is_set[key]) {
12091 value = S[key]
12092 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12093 len += length(value) + length(field[++i])
12094 substed = 1
12095 } else
12096 len += 1 + keylen
12099 print line
12102 _ACAWK
12103 _ACEOF
12104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12105 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12106 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12107 else
12109 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12110 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12111 _ACEOF
12113 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12114 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12115 # trailing colons and then remove the whole line if VPATH becomes empty
12116 # (actually we leave an empty line to preserve line numbers).
12117 if test "x$srcdir" = x.; then
12118 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12120 s///
12121 s/^/:/
12122 s/[ ]*$/:/
12123 s/:\$(srcdir):/:/g
12124 s/:\${srcdir}:/:/g
12125 s/:@srcdir@:/:/g
12126 s/^:*//
12127 s/:*$//
12129 s/\(=[ ]*\).*/\1/
12131 s/\n//
12132 s/^[^=]*=[ ]*$//
12136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12137 fi # test -n "$CONFIG_FILES"
12139 # Set up the scripts for CONFIG_HEADERS section.
12140 # No need to generate them if there are no CONFIG_HEADERS.
12141 # This happens for instance with `./config.status Makefile'.
12142 if test -n "$CONFIG_HEADERS"; then
12143 cat >"$tmp/defines.awk" <<\_ACAWK ||
12144 BEGIN {
12145 _ACEOF
12147 # Transform confdefs.h into an awk script `defines.awk', embedded as
12148 # here-document in config.status, that substitutes the proper values into
12149 # config.h.in to produce config.h.
12151 # Create a delimiter string that does not exist in confdefs.h, to ease
12152 # handling of long lines.
12153 ac_delim='%!_!# '
12154 for ac_last_try in false false :; do
12155 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12156 if test -z "$ac_t"; then
12157 break
12158 elif $ac_last_try; then
12159 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12160 else
12161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12163 done
12165 # For the awk script, D is an array of macro values keyed by name,
12166 # likewise P contains macro parameters if any. Preserve backslash
12167 # newline sequences.
12169 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12170 sed -n '
12171 s/.\{148\}/&'"$ac_delim"'/g
12172 t rset
12173 :rset
12174 s/^[ ]*#[ ]*define[ ][ ]*/ /
12175 t def
12177 :def
12178 s/\\$//
12179 t bsnl
12180 s/["\\]/\\&/g
12181 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12182 D["\1"]=" \3"/p
12183 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12185 :bsnl
12186 s/["\\]/\\&/g
12187 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12188 D["\1"]=" \3\\\\\\n"\\/p
12189 t cont
12190 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12191 t cont
12193 :cont
12195 s/.\{148\}/&'"$ac_delim"'/g
12196 t clear
12197 :clear
12198 s/\\$//
12199 t bsnlc
12200 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12202 :bsnlc
12203 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12204 b cont
12205 ' <confdefs.h | sed '
12206 s/'"$ac_delim"'/"\\\
12207 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12210 for (key in D) D_is_set[key] = 1
12211 FS = "\a"
12213 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12214 line = \$ 0
12215 split(line, arg, " ")
12216 if (arg[1] == "#") {
12217 defundef = arg[2]
12218 mac1 = arg[3]
12219 } else {
12220 defundef = substr(arg[1], 2)
12221 mac1 = arg[2]
12223 split(mac1, mac2, "(") #)
12224 macro = mac2[1]
12225 prefix = substr(line, 1, index(line, defundef) - 1)
12226 if (D_is_set[macro]) {
12227 # Preserve the white space surrounding the "#".
12228 print prefix "define", macro P[macro] D[macro]
12229 next
12230 } else {
12231 # Replace #undef with comments. This is necessary, for example,
12232 # in the case of _POSIX_SOURCE, which is predefined and required
12233 # on some systems where configure will not decide to define it.
12234 if (defundef == "undef") {
12235 print "/*", prefix defundef, macro, "*/"
12236 next
12240 { print }
12241 _ACAWK
12242 _ACEOF
12243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12244 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12245 fi # test -n "$CONFIG_HEADERS"
12248 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12249 shift
12250 for ac_tag
12252 case $ac_tag in
12253 :[FHLC]) ac_mode=$ac_tag; continue;;
12254 esac
12255 case $ac_mode$ac_tag in
12256 :[FHL]*:*);;
12257 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12258 :[FH]-) ac_tag=-:-;;
12259 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12260 esac
12261 ac_save_IFS=$IFS
12262 IFS=:
12263 set x $ac_tag
12264 IFS=$ac_save_IFS
12265 shift
12266 ac_file=$1
12267 shift
12269 case $ac_mode in
12270 :L) ac_source=$1;;
12271 :[FH])
12272 ac_file_inputs=
12273 for ac_f
12275 case $ac_f in
12276 -) ac_f="$tmp/stdin";;
12277 *) # Look for the file first in the build tree, then in the source tree
12278 # (if the path is not absolute). The absolute path cannot be DOS-style,
12279 # because $ac_f cannot contain `:'.
12280 test -f "$ac_f" ||
12281 case $ac_f in
12282 [\\/$]*) false;;
12283 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12284 esac ||
12285 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12286 esac
12287 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12288 as_fn_append ac_file_inputs " '$ac_f'"
12289 done
12291 # Let's still pretend it is `configure' which instantiates (i.e., don't
12292 # use $as_me), people would be surprised to read:
12293 # /* config.h. Generated by config.status. */
12294 configure_input='Generated from '`
12295 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12296 `' by configure.'
12297 if test x"$ac_file" != x-; then
12298 configure_input="$ac_file. $configure_input"
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12300 $as_echo "$as_me: creating $ac_file" >&6;}
12302 # Neutralize special characters interpreted by sed in replacement strings.
12303 case $configure_input in #(
12304 *\&* | *\|* | *\\* )
12305 ac_sed_conf_input=`$as_echo "$configure_input" |
12306 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12307 *) ac_sed_conf_input=$configure_input;;
12308 esac
12310 case $ac_tag in
12311 *:-:* | *:-) cat >"$tmp/stdin" \
12312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12313 esac
12315 esac
12317 ac_dir=`$as_dirname -- "$ac_file" ||
12318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12319 X"$ac_file" : 'X\(//\)[^/]' \| \
12320 X"$ac_file" : 'X\(//\)$' \| \
12321 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12322 $as_echo X"$ac_file" |
12323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12324 s//\1/
12327 /^X\(\/\/\)[^/].*/{
12328 s//\1/
12331 /^X\(\/\/\)$/{
12332 s//\1/
12335 /^X\(\/\).*/{
12336 s//\1/
12339 s/.*/./; q'`
12340 as_dir="$ac_dir"; as_fn_mkdir_p
12341 ac_builddir=.
12343 case "$ac_dir" in
12344 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12346 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12347 # A ".." for each directory in $ac_dir_suffix.
12348 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12349 case $ac_top_builddir_sub in
12350 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12351 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12352 esac ;;
12353 esac
12354 ac_abs_top_builddir=$ac_pwd
12355 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12356 # for backward compatibility:
12357 ac_top_builddir=$ac_top_build_prefix
12359 case $srcdir in
12360 .) # We are building in place.
12361 ac_srcdir=.
12362 ac_top_srcdir=$ac_top_builddir_sub
12363 ac_abs_top_srcdir=$ac_pwd ;;
12364 [\\/]* | ?:[\\/]* ) # Absolute name.
12365 ac_srcdir=$srcdir$ac_dir_suffix;
12366 ac_top_srcdir=$srcdir
12367 ac_abs_top_srcdir=$srcdir ;;
12368 *) # Relative name.
12369 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12370 ac_top_srcdir=$ac_top_build_prefix$srcdir
12371 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12372 esac
12373 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12376 case $ac_mode in
12379 # CONFIG_FILE
12382 _ACEOF
12384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12385 # If the template does not know about datarootdir, expand it.
12386 # FIXME: This hack should be removed a few years after 2.60.
12387 ac_datarootdir_hack=; ac_datarootdir_seen=
12388 ac_sed_dataroot='
12389 /datarootdir/ {
12393 /@datadir@/p
12394 /@docdir@/p
12395 /@infodir@/p
12396 /@localedir@/p
12397 /@mandir@/p'
12398 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12399 *datarootdir*) ac_datarootdir_seen=yes;;
12400 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12402 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12403 _ACEOF
12404 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12405 ac_datarootdir_hack='
12406 s&@datadir@&$datadir&g
12407 s&@docdir@&$docdir&g
12408 s&@infodir@&$infodir&g
12409 s&@localedir@&$localedir&g
12410 s&@mandir@&$mandir&g
12411 s&\\\${datarootdir}&$datarootdir&g' ;;
12412 esac
12413 _ACEOF
12415 # Neutralize VPATH when `$srcdir' = `.'.
12416 # Shell code in configure.ac might set extrasub.
12417 # FIXME: do we really want to maintain this feature?
12418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12419 ac_sed_extra="$ac_vpsub
12420 $extrasub
12421 _ACEOF
12422 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12424 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12425 s|@configure_input@|$ac_sed_conf_input|;t t
12426 s&@top_builddir@&$ac_top_builddir_sub&;t t
12427 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12428 s&@srcdir@&$ac_srcdir&;t t
12429 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12430 s&@top_srcdir@&$ac_top_srcdir&;t t
12431 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12432 s&@builddir@&$ac_builddir&;t t
12433 s&@abs_builddir@&$ac_abs_builddir&;t t
12434 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12435 $ac_datarootdir_hack
12437 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12438 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12440 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12441 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12442 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12444 which seems to be undefined. Please make sure it is defined" >&5
12445 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12446 which seems to be undefined. Please make sure it is defined" >&2;}
12448 rm -f "$tmp/stdin"
12449 case $ac_file in
12450 -) cat "$tmp/out" && rm -f "$tmp/out";;
12451 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12452 esac \
12453 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12457 # CONFIG_HEADER
12459 if test x"$ac_file" != x-; then
12461 $as_echo "/* $configure_input */" \
12462 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12463 } >"$tmp/config.h" \
12464 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12465 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12467 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12468 else
12469 rm -f "$ac_file"
12470 mv "$tmp/config.h" "$ac_file" \
12471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12473 else
12474 $as_echo "/* $configure_input */" \
12475 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12476 || as_fn_error $? "could not create -" "$LINENO" 5
12480 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12481 $as_echo "$as_me: executing $ac_file commands" >&6;}
12483 esac
12486 case $ac_file$ac_mode in
12487 "compiler_executable":C)
12488 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12489 mkdir -p $prefix
12490 prefix="${prefix}/${aros_target_cpu}-aros"
12491 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12493 echo ${prefix}
12494 echo ${prefix2}
12495 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12497 ln -sf ${prefix2}-gcc ${prefix}-gcc
12498 ln -sf ${prefix2}-ld ${prefix}-ld
12500 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12501 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12502 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12503 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12504 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12505 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12506 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12508 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12509 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12510 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12511 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12512 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12513 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12514 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12516 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12518 esac
12519 done # for ac_tag
12522 as_fn_exit 0
12523 _ACEOF
12524 ac_clean_files=$ac_clean_files_save
12526 test $ac_write_fail = 0 ||
12527 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12530 # configure is writing to config.log, and then calls config.status.
12531 # config.status does its own redirection, appending to config.log.
12532 # Unfortunately, on DOS this fails, as config.log is still kept open
12533 # by configure, so config.status won't be able to write to it; its
12534 # output is simply discarded. So we exec the FD to /dev/null,
12535 # effectively closing config.log, so it can be properly (re)opened and
12536 # appended to by config.status. When coming back to configure, we
12537 # need to make the FD available again.
12538 if test "$no_create" != yes; then
12539 ac_cs_success=:
12540 ac_config_status_args=
12541 test "$silent" = yes &&
12542 ac_config_status_args="$ac_config_status_args --quiet"
12543 exec 5>/dev/null
12544 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12545 exec 5>>config.log
12546 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12547 # would make configure fail if this is the last instruction.
12548 $ac_cs_success || as_fn_exit 1
12550 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12552 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12557 #XXX compatability...
12558 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12560 if test -n "$aros_shared_cflags" ; then
12561 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12562 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg