workbench/libs/.../gallium: Fix fixed defines to be fixed
[AROS.git] / configure
blob7da641434ce79391dd651793e54d66bbb5baefcc
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # 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 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=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
371 $as_echo "$as_me: error: $1" >&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, 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_ios_sdk
609 aros_ios_version
610 aros_ios_platform
611 aros_nesting_supervisor
612 aros_palm_debug_hack
613 aros_serial_debug
614 aros_host_sdl_libs
615 aros_host_sdl_cflags
616 aros_host_x11_libdirs
617 aros_host_x11_includes
618 DO_VIDMODE_SUPPORT
619 DO_XSHM_SUPPORT
620 aros_default_wbdepth
621 aros_default_wbheight
622 aros_default_wbwidth
623 sdl_hidd_target
624 x11_hidd_target
625 aros_target_strip_flags
626 aros_target_genmap
627 aros_debug_ldflags
628 aros_debug_aflags
629 aros_debug_cflags
630 aros_kernel_ldflags
631 aros_kernel_objcflags
632 aros_kernel_cflags
633 aros_shared_ldflags
634 aros_shared_aflags
635 aros_shared_cflags
636 aros_config_ldflags
637 aros_config_aflags
638 aros_config_cflags
639 aros_arch_libs
640 aros_compiler_libs
641 aros_object_format
642 aros_shared_ld
643 aros_shared_default
644 aros_target_nm
645 aros_target_strip
646 aros_target_objcopy
647 aros_target_objdump
648 aros_target_cc_path
649 aros_target_cc_includes
650 orig_target_ld
651 aros_target_as
652 aros_kernel_cc
653 aros_target_cxx
654 orig_target_cc
655 aros_kernel_nm
656 aros_target_ranlib
657 aros_target_ar
658 aros_target_incl
659 aros_target_suffix
660 aros_target_variant
661 aros_target_cpu
662 aros_target_arch
663 aros_target_bootloader
664 aros_target_iconset
665 aros_target_guitheme
666 aros_tools_dir
667 aros_host_lib_suffix
668 aros_host_exe_suffix
669 aros_host_mkargs
670 aros_host_mkdep
671 aros_host_debug
672 aros_host_ldflags
673 aros_host_cflags
674 aros_host_make
675 aros_host_cc
676 aros_host_cpu
677 aros_host_arch
678 aros_cc_pre
679 AROS_PORTSSRCDIR
680 SRCDIR
681 AROS_BUILDDIR_UNIX
682 AROS_BUILDDIR
683 aros_flavour_uc
684 aros_flavour
685 aros_cpu
686 aros_arch
687 SDL_LIBS
688 SDL_CFLAGS
689 SDL_CONFIG
690 XMKMF
691 aros_cflags_iquote_end
692 aros_cflags_iquote
693 kernel_cflags_iquote_end
694 kernel_cflags_iquote
695 host_cflags_iquote_end
696 host_cflags_iquote
697 aros_target_nostdlib_ldflags
698 aros_target_detach_ldflags
699 aros_target_nix_ldflags
700 aros_target_nostartup_ldflags
701 aros_target_nostdinc_cflags
702 aros_kernel_rescomp
703 aros_target_strip_ln
704 aros_target_ranlib_ln
705 aros_target_objdump_ln
706 aros_target_objcopy_ln
707 aros_target_nm_ln
708 aros_target_ar_ln
709 aros_kernel_ld
710 aros_target_as_ln
711 aros_target_ld
712 aros_target_cc
713 CCACHE
714 DISTCC
715 LIBOBJS
716 EGREP
717 GREP
719 TEST
722 pkgpyexecdir
723 pyexecdir
724 pkgpythondir
725 pythondir
726 PYTHON_PLATFORM
727 PYTHON_EXEC_PREFIX
728 PYTHON_PREFIX
729 PYTHON_VERSION
730 PYTHON
731 CHMOD
733 PPMTOILBM
734 PNGTOPNM
735 FLEX
736 BISON
739 UNIQ
740 SORT
741 TOUCH
742 MKDIR
743 ECHO
747 aros_host_strip
748 aros_host_ranlib
749 aros_host_ar
750 aros_host_automake
751 aros_host_autoheader
752 aros_host_autoconf
753 aros_host_aclocal
754 aros_host_ld
755 MMAKE
758 OBJEXT
759 EXEEXT
760 ac_ct_CC
761 CPPFLAGS
762 LDFLAGS
763 CFLAGS
765 host_os
766 host_vendor
767 host_cpu
768 host
769 build_os
770 build_vendor
771 build_cpu
772 build
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_URL
804 PACKAGE_BUGREPORT
805 PACKAGE_STRING
806 PACKAGE_VERSION
807 PACKAGE_TARNAME
808 PACKAGE_NAME
809 PATH_SEPARATOR
810 SHELL'
811 ac_subst_files=''
812 ac_user_opts='
813 enable_option_checking
814 enable_build_type
815 enable_debug
816 enable_crosstools
817 enable_distcc
818 enable_ccache
819 with_gcc_version
820 with_optimization
821 with_xcode_path
822 with_ios_version
823 with_ios_sdk
824 enable_target_variant
825 with_portssources
826 with_bootloader
827 with_iconset
828 with_theme
829 enable_includes
830 with_resolution
831 with_serial_debug
832 enable_palm_debug_hack
833 enable_nesting_supervisor
834 enable_x11_hidd
835 with_x
836 enable_x11_shm
837 enable_x11_vidmode
838 enable_sdl_hidd
839 with_sdl_prefix
840 with_sdl_exec_prefix
841 enable_sdltest
842 enable_dbus
844 ac_precious_vars='build_alias
845 host_alias
846 target_alias
848 CFLAGS
849 LDFLAGS
850 LIBS
851 CPPFLAGS
853 XMKMF'
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 includedir='${prefix}/include'
893 oldincludedir='/usr/include'
894 docdir='${datarootdir}/doc/${PACKAGE}'
895 infodir='${datarootdir}/info'
896 htmldir='${docdir}'
897 dvidir='${docdir}'
898 pdfdir='${docdir}'
899 psdir='${docdir}'
900 libdir='${exec_prefix}/lib'
901 localedir='${datarootdir}/locale'
902 mandir='${datarootdir}/man'
904 ac_prev=
905 ac_dashdash=
906 for ac_option
908 # If the previous option needs an argument, assign it.
909 if test -n "$ac_prev"; then
910 eval $ac_prev=\$ac_option
911 ac_prev=
912 continue
915 case $ac_option in
916 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
917 *) ac_optarg=yes ;;
918 esac
920 # Accept the important Cygnus configure options, so we can diagnose typos.
922 case $ac_dashdash$ac_option in
924 ac_dashdash=yes ;;
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
943 --config-cache | -C)
944 cache_file=config.cache ;;
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error "invalid feature name: $ac_useropt"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1143 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1144 ac_prev=sbindir ;;
1145 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1146 | --sbi=* | --sb=*)
1147 sbindir=$ac_optarg ;;
1149 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1150 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1151 | --sharedst | --shareds | --shared | --share | --shar \
1152 | --sha | --sh)
1153 ac_prev=sharedstatedir ;;
1154 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1155 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1156 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1157 | --sha=* | --sh=*)
1158 sharedstatedir=$ac_optarg ;;
1160 -site | --site | --sit)
1161 ac_prev=site ;;
1162 -site=* | --site=* | --sit=*)
1163 site=$ac_optarg ;;
1165 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1166 ac_prev=srcdir ;;
1167 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1168 srcdir=$ac_optarg ;;
1170 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1171 | --syscon | --sysco | --sysc | --sys | --sy)
1172 ac_prev=sysconfdir ;;
1173 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1174 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1175 sysconfdir=$ac_optarg ;;
1177 -target | --target | --targe | --targ | --tar | --ta | --t)
1178 ac_prev=target_alias ;;
1179 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1180 target_alias=$ac_optarg ;;
1182 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1183 verbose=yes ;;
1185 -version | --version | --versio | --versi | --vers | -V)
1186 ac_init_version=: ;;
1188 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 as_fn_error "invalid package name: $ac_useropt"
1193 ac_useropt_orig=$ac_useropt
1194 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1195 case $ac_user_opts in
1197 "with_$ac_useropt"
1198 "*) ;;
1199 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1200 ac_unrecognized_sep=', ';;
1201 esac
1202 eval with_$ac_useropt=\$ac_optarg ;;
1204 -without-* | --without-*)
1205 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1206 # Reject names that are not valid shell variable names.
1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1208 as_fn_error "invalid package name: $ac_useropt"
1209 ac_useropt_orig=$ac_useropt
1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1211 case $ac_user_opts in
1213 "with_$ac_useropt"
1214 "*) ;;
1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1216 ac_unrecognized_sep=', ';;
1217 esac
1218 eval with_$ac_useropt=no ;;
1220 --x)
1221 # Obsolete; use --with-x.
1222 with_x=yes ;;
1224 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1225 | --x-incl | --x-inc | --x-in | --x-i)
1226 ac_prev=x_includes ;;
1227 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1228 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1229 x_includes=$ac_optarg ;;
1231 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1232 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1233 ac_prev=x_libraries ;;
1234 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1235 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1236 x_libraries=$ac_optarg ;;
1238 -*) as_fn_error "unrecognized option: \`$ac_option'
1239 Try \`$0 --help' for more information."
1242 *=*)
1243 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1244 # Reject names that are not valid shell variable names.
1245 case $ac_envvar in #(
1246 '' | [0-9]* | *[!_$as_cr_alnum]* )
1247 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1248 esac
1249 eval $ac_envvar=\$ac_optarg
1250 export $ac_envvar ;;
1253 # FIXME: should be removed in autoconf 3.0.
1254 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1255 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1256 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1257 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1260 esac
1261 done
1263 if test -n "$ac_prev"; then
1264 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1265 as_fn_error "missing argument to $ac_option"
1268 if test -n "$ac_unrecognized_opts"; then
1269 case $enable_option_checking in
1270 no) ;;
1271 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1272 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1273 esac
1276 # Check all directory arguments for consistency.
1277 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1278 datadir sysconfdir sharedstatedir localstatedir includedir \
1279 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1280 libdir localedir mandir
1282 eval ac_val=\$$ac_var
1283 # Remove trailing slashes.
1284 case $ac_val in
1285 */ )
1286 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1287 eval $ac_var=\$ac_val;;
1288 esac
1289 # Be sure to have absolute directory names.
1290 case $ac_val in
1291 [\\/$]* | ?:[\\/]* ) continue;;
1292 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1293 esac
1294 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1295 done
1297 # There might be people who depend on the old broken behavior: `$host'
1298 # used to hold the argument of --host etc.
1299 # FIXME: To remove some day.
1300 build=$build_alias
1301 host=$host_alias
1302 target=$target_alias
1304 # FIXME: To remove some day.
1305 if test "x$host_alias" != x; then
1306 if test "x$build_alias" = x; then
1307 cross_compiling=maybe
1308 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1309 If a cross compiler is detected then cross compile mode will be used." >&2
1310 elif test "x$build_alias" != "x$host_alias"; then
1311 cross_compiling=yes
1315 ac_tool_prefix=
1316 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1318 test "$silent" = yes && exec 6>/dev/null
1321 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1322 ac_ls_di=`ls -di .` &&
1323 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1324 as_fn_error "working directory cannot be determined"
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 as_fn_error "pwd does not report name of working directory"
1329 # Find the source files, if location was not specified.
1330 if test -z "$srcdir"; then
1331 ac_srcdir_defaulted=yes
1332 # Try the directory containing this script, then the parent directory.
1333 ac_confdir=`$as_dirname -- "$as_myself" ||
1334 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1335 X"$as_myself" : 'X\(//\)[^/]' \| \
1336 X"$as_myself" : 'X\(//\)$' \| \
1337 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1338 $as_echo X"$as_myself" |
1339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1340 s//\1/
1343 /^X\(\/\/\)[^/].*/{
1344 s//\1/
1347 /^X\(\/\/\)$/{
1348 s//\1/
1351 /^X\(\/\).*/{
1352 s//\1/
1355 s/.*/./; q'`
1356 srcdir=$ac_confdir
1357 if test ! -r "$srcdir/$ac_unique_file"; then
1358 srcdir=..
1360 else
1361 ac_srcdir_defaulted=no
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1364 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1365 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1367 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1368 ac_abs_confdir=`(
1369 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1370 pwd)`
1371 # When building in place, set srcdir=.
1372 if test "$ac_abs_confdir" = "$ac_pwd"; then
1373 srcdir=.
1375 # Remove unnecessary trailing slashes from srcdir.
1376 # Double slashes in file names in object file debugging info
1377 # mess up M-x gdb in Emacs.
1378 case $srcdir in
1379 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1380 esac
1381 for ac_var in $ac_precious_vars; do
1382 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1383 eval ac_env_${ac_var}_value=\$${ac_var}
1384 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1386 done
1389 # Report the --help message.
1391 if test "$ac_init_help" = "long"; then
1392 # Omit some internal or obsolete options to make the list less imposing.
1393 # This message is too long to be a string in the A/UX 3.1 sh.
1394 cat <<_ACEOF
1395 \`configure' configures this package to adapt to many kinds of systems.
1397 Usage: $0 [OPTION]... [VAR=VALUE]...
1399 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1400 VAR=VALUE. See below for descriptions of some of the useful variables.
1402 Defaults for the options are specified in brackets.
1404 Configuration:
1405 -h, --help display this help and exit
1406 --help=short display options specific to this package
1407 --help=recursive display the short help of all the included packages
1408 -V, --version display version information and exit
1409 -q, --quiet, --silent do not print \`checking...' messages
1410 --cache-file=FILE cache test results in FILE [disabled]
1411 -C, --config-cache alias for \`--cache-file=config.cache'
1412 -n, --no-create do not create output files
1413 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1415 Installation directories:
1416 --prefix=PREFIX install architecture-independent files in PREFIX
1417 [$ac_default_prefix]
1418 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1419 [PREFIX]
1421 By default, \`make install' will install all the files in
1422 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1423 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1424 for instance \`--prefix=\$HOME'.
1426 For better control, use the options below.
1428 Fine tuning of the installation directories:
1429 --bindir=DIR user executables [EPREFIX/bin]
1430 --sbindir=DIR system admin executables [EPREFIX/sbin]
1431 --libexecdir=DIR program executables [EPREFIX/libexec]
1432 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1433 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1434 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1435 --libdir=DIR object code libraries [EPREFIX/lib]
1436 --includedir=DIR C header files [PREFIX/include]
1437 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1438 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1439 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1440 --infodir=DIR info documentation [DATAROOTDIR/info]
1441 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1442 --mandir=DIR man documentation [DATAROOTDIR/man]
1443 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1444 --htmldir=DIR html documentation [DOCDIR]
1445 --dvidir=DIR dvi documentation [DOCDIR]
1446 --pdfdir=DIR pdf documentation [DOCDIR]
1447 --psdir=DIR ps documentation [DOCDIR]
1448 _ACEOF
1450 cat <<\_ACEOF
1452 X features:
1453 --x-includes=DIR X include files are in DIR
1454 --x-libraries=DIR X library files are in DIR
1456 System types:
1457 --build=BUILD configure for building on BUILD [guessed]
1458 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1459 _ACEOF
1462 if test -n "$ac_init_help"; then
1464 cat <<\_ACEOF
1466 Optional Features:
1467 --disable-option-checking ignore unrecognized --enable/--with options
1468 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1469 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1470 --enable-build-type=TYPE
1471 Select the build type. Available types are:
1472 personal, nightly, snapshot, milestone, release. Do
1473 NOT use this option unless you know what you are
1474 doing! (default=personal)
1475 --enable-debug=list Enable different types of debug. Commas or
1476 whitespaces can be used to separate the items in the
1477 list. Available types of debug are: all, none,
1478 messages, stack, mungwall, modules, symbols. If no
1479 list is provided then "all" is assumed.
1480 (default=none)
1481 --enable-crosstools Build cross-compiler toolchains if necessary
1482 (default=no).
1483 --enable-distcc Use distcc as a front end to the compiler
1484 (default=no).
1485 --enable-ccache Use ccache as a front end to the compiler
1486 (default=no).
1487 --enable-target-variant=NAME
1488 Enable a specific target variant(default=none)
1489 --enable-includes=dir Alternative system include directory
1490 --enable-palm-debug-hack
1491 Enable palm debug output hack in palm native
1492 (default=no)
1493 --enable-nesting-supervisor
1494 Enable nesting supervisor support in unix
1495 (default=no)
1496 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1497 --enable-x11-shm use X11 shared memory (default=auto)
1498 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1499 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1500 --disable-sdltest Do not try to compile and run a test SDL program
1501 --enable-dbus Enable DBUS support via dbus.library (default=no)
1503 Optional Packages:
1504 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1505 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1506 --with-gcc-version=VERSION
1507 Use gcc-VERSION for building AROS
1508 --with-optimization=FLAGS
1509 Use optimization flags FLAGS (default=-O2).
1510 --with-xcode=PATH Specify XCode path for iOS targets
1511 (default=/Developer).
1512 --with-ios-version=VERSION
1513 Specify minimum supported iOS version (default=2.0).
1514 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1515 --with-portssources=DIR Where to download sourcecode for external ports
1516 --with-bootloader=NAME Use a specific bootloader
1517 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1518 --with-theme=NAME Use a specific GUI Theme
1519 --with-resolution=XRESxYRESxDEPTH
1520 Default resolution of the initial WorkbenchScreen
1521 --with-serial-debug Enable serial debug output in native (default=no)
1522 --with-x use the X Window System
1523 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1524 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1526 Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
1531 LIBS libraries to pass to the linker, e.g. -l<library>
1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1533 you have headers in a nonstandard directory <include dir>
1534 CPP C preprocessor
1535 XMKMF Path to xmkmf, Makefile generator for X Window System
1537 Use these variables to override the choices made by `configure' or to help
1538 it to find libraries and programs with nonstandard names/locations.
1540 Report bugs to the package provider.
1541 _ACEOF
1542 ac_status=$?
1545 if test "$ac_init_help" = "recursive"; then
1546 # If there are subdirs, report their specific --help.
1547 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1548 test -d "$ac_dir" ||
1549 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1550 continue
1551 ac_builddir=.
1553 case "$ac_dir" in
1554 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1556 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1557 # A ".." for each directory in $ac_dir_suffix.
1558 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1559 case $ac_top_builddir_sub in
1560 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1561 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1562 esac ;;
1563 esac
1564 ac_abs_top_builddir=$ac_pwd
1565 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1566 # for backward compatibility:
1567 ac_top_builddir=$ac_top_build_prefix
1569 case $srcdir in
1570 .) # We are building in place.
1571 ac_srcdir=.
1572 ac_top_srcdir=$ac_top_builddir_sub
1573 ac_abs_top_srcdir=$ac_pwd ;;
1574 [\\/]* | ?:[\\/]* ) # Absolute name.
1575 ac_srcdir=$srcdir$ac_dir_suffix;
1576 ac_top_srcdir=$srcdir
1577 ac_abs_top_srcdir=$srcdir ;;
1578 *) # Relative name.
1579 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1580 ac_top_srcdir=$ac_top_build_prefix$srcdir
1581 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1582 esac
1583 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1585 cd "$ac_dir" || { ac_status=$?; continue; }
1586 # Check for guested configure.
1587 if test -f "$ac_srcdir/configure.gnu"; then
1588 echo &&
1589 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1590 elif test -f "$ac_srcdir/configure"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure" --help=recursive
1593 else
1594 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1595 fi || ac_status=$?
1596 cd "$ac_pwd" || { ac_status=$?; break; }
1597 done
1600 test -n "$ac_init_help" && exit $ac_status
1601 if $ac_init_version; then
1602 cat <<\_ACEOF
1603 configure
1604 generated by GNU Autoconf 2.65
1606 Copyright (C) 2009 Free Software Foundation, Inc.
1607 This configure script is free software; the Free Software Foundation
1608 gives unlimited permission to copy, distribute and modify it.
1609 _ACEOF
1610 exit
1613 ## ------------------------ ##
1614 ## Autoconf initialization. ##
1615 ## ------------------------ ##
1617 # ac_fn_c_try_compile LINENO
1618 # --------------------------
1619 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1620 ac_fn_c_try_compile ()
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 rm -f conftest.$ac_objext
1624 if { { ac_try="$ac_compile"
1625 case "(($ac_try" in
1626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1627 *) ac_try_echo=$ac_try;;
1628 esac
1629 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1630 $as_echo "$ac_try_echo"; } >&5
1631 (eval "$ac_compile") 2>conftest.err
1632 ac_status=$?
1633 if test -s conftest.err; then
1634 grep -v '^ *+' conftest.err >conftest.er1
1635 cat conftest.er1 >&5
1636 mv -f conftest.er1 conftest.err
1638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1639 test $ac_status = 0; } && {
1640 test -z "$ac_c_werror_flag" ||
1641 test ! -s conftest.err
1642 } && test -s conftest.$ac_objext; then :
1643 ac_retval=0
1644 else
1645 $as_echo "$as_me: failed program was:" >&5
1646 sed 's/^/| /' conftest.$ac_ext >&5
1648 ac_retval=1
1650 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1651 as_fn_set_status $ac_retval
1653 } # ac_fn_c_try_compile
1655 # ac_fn_c_try_cpp LINENO
1656 # ----------------------
1657 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1658 ac_fn_c_try_cpp ()
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 if { { ac_try="$ac_cpp conftest.$ac_ext"
1662 case "(($ac_try" in
1663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1664 *) ac_try_echo=$ac_try;;
1665 esac
1666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1667 $as_echo "$ac_try_echo"; } >&5
1668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1669 ac_status=$?
1670 if test -s conftest.err; then
1671 grep -v '^ *+' conftest.err >conftest.er1
1672 cat conftest.er1 >&5
1673 mv -f conftest.er1 conftest.err
1675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676 test $ac_status = 0; } >/dev/null && {
1677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1678 test ! -s conftest.err
1679 }; then :
1680 ac_retval=0
1681 else
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1685 ac_retval=1
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 as_fn_set_status $ac_retval
1690 } # ac_fn_c_try_cpp
1692 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1693 # -------------------------------------------------------
1694 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1695 # the include files in INCLUDES and setting the cache variable VAR
1696 # accordingly.
1697 ac_fn_c_check_header_mongrel ()
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1702 $as_echo_n "checking for $2... " >&6; }
1703 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1704 $as_echo_n "(cached) " >&6
1706 eval ac_res=\$$3
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1708 $as_echo "$ac_res" >&6; }
1709 else
1710 # Is the header compilable?
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1712 $as_echo_n "checking $2 usability... " >&6; }
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1716 #include <$2>
1717 _ACEOF
1718 if ac_fn_c_try_compile "$LINENO"; then :
1719 ac_header_compiler=yes
1720 else
1721 ac_header_compiler=no
1723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1725 $as_echo "$ac_header_compiler" >&6; }
1727 # Is the header present?
1728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1729 $as_echo_n "checking $2 presence... " >&6; }
1730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1731 /* end confdefs.h. */
1732 #include <$2>
1733 _ACEOF
1734 if ac_fn_c_try_cpp "$LINENO"; then :
1735 ac_header_preproc=yes
1736 else
1737 ac_header_preproc=no
1739 rm -f conftest.err conftest.$ac_ext
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1741 $as_echo "$ac_header_preproc" >&6; }
1743 # So? What about this header?
1744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1745 yes:no: )
1746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1747 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1749 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1751 no:yes:* )
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1753 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1755 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1757 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1759 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1761 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1763 esac
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765 $as_echo_n "checking for $2... " >&6; }
1766 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1767 $as_echo_n "(cached) " >&6
1768 else
1769 eval "$3=\$ac_header_compiler"
1771 eval ac_res=\$$3
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1773 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1777 } # ac_fn_c_check_header_mongrel
1779 # ac_fn_c_try_run LINENO
1780 # ----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1782 # that executables *can* be run.
1783 ac_fn_c_try_run ()
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>&5
1794 ac_status=$?
1795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1796 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1797 { { case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_try") 2>&5
1804 ac_status=$?
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; }; }; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: program exited with status $ac_status" >&5
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1813 ac_retval=$ac_status
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 as_fn_set_status $ac_retval
1819 } # ac_fn_c_try_run
1821 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1822 # -------------------------------------------------------
1823 # Tests whether HEADER exists and can be compiled using the include files in
1824 # INCLUDES, setting the cache variable VAR accordingly.
1825 ac_fn_c_check_header_compile ()
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1829 $as_echo_n "checking for $2... " >&6; }
1830 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1831 $as_echo_n "(cached) " >&6
1832 else
1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834 /* end confdefs.h. */
1836 #include <$2>
1837 _ACEOF
1838 if ac_fn_c_try_compile "$LINENO"; then :
1839 eval "$3=yes"
1840 else
1841 eval "$3=no"
1843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 eval ac_res=\$$3
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850 } # ac_fn_c_check_header_compile
1852 # ac_fn_c_try_link LINENO
1853 # -----------------------
1854 # Try to link conftest.$ac_ext, and return whether this succeeded.
1855 ac_fn_c_try_link ()
1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858 rm -f conftest.$ac_objext conftest$ac_exeext
1859 if { { ac_try="$ac_link"
1860 case "(($ac_try" in
1861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862 *) ac_try_echo=$ac_try;;
1863 esac
1864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865 $as_echo "$ac_try_echo"; } >&5
1866 (eval "$ac_link") 2>conftest.err
1867 ac_status=$?
1868 if test -s conftest.err; then
1869 grep -v '^ *+' conftest.err >conftest.er1
1870 cat conftest.er1 >&5
1871 mv -f conftest.er1 conftest.err
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; } && {
1875 test -z "$ac_c_werror_flag" ||
1876 test ! -s conftest.err
1877 } && test -s conftest$ac_exeext && {
1878 test "$cross_compiling" = yes ||
1879 $as_test_x conftest$ac_exeext
1880 }; then :
1881 ac_retval=0
1882 else
1883 $as_echo "$as_me: failed program was:" >&5
1884 sed 's/^/| /' conftest.$ac_ext >&5
1886 ac_retval=1
1888 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1889 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1890 # interfere with the next link command; also delete a directory that is
1891 # left behind by Apple's compiler. We do this before executing the actions.
1892 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1894 as_fn_set_status $ac_retval
1896 } # ac_fn_c_try_link
1898 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1899 # ----------------------------------------------------
1900 # Tries to find if the field MEMBER exists in type AGGR, after including
1901 # INCLUDES, setting cache variable VAR accordingly.
1902 ac_fn_c_check_member ()
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1906 $as_echo_n "checking for $2.$3... " >&6; }
1907 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911 /* end confdefs.h. */
1914 main ()
1916 static $2 ac_aggr;
1917 if (ac_aggr.$3)
1918 return 0;
1920 return 0;
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 eval "$4=yes"
1925 else
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1930 main ()
1932 static $2 ac_aggr;
1933 if (sizeof ac_aggr.$3)
1934 return 0;
1936 return 0;
1938 _ACEOF
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940 eval "$4=yes"
1941 else
1942 eval "$4=no"
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1948 eval ac_res=\$$4
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 } # ac_fn_c_check_member
1955 # ac_fn_c_check_decl LINENO SYMBOL VAR
1956 # ------------------------------------
1957 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1958 ac_fn_c_check_decl ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1962 $as_echo_n "checking whether $2 is declared... " >&6; }
1963 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1965 else
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1970 main ()
1972 #ifndef $2
1973 (void) $2;
1974 #endif
1977 return 0;
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 eval "$3=yes"
1982 else
1983 eval "$3=no"
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989 $as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 } # ac_fn_c_check_decl
1994 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1995 # -------------------------------------------
1996 # Tests whether TYPE exists after having included INCLUDES, setting cache
1997 # variable VAR accordingly.
1998 ac_fn_c_check_type ()
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2004 $as_echo_n "(cached) " >&6
2005 else
2006 eval "$3=no"
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2011 main ()
2013 if (sizeof ($2))
2014 return 0;
2016 return 0;
2018 _ACEOF
2019 if ac_fn_c_try_compile "$LINENO"; then :
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2024 main ()
2026 if (sizeof (($2)))
2027 return 0;
2029 return 0;
2031 _ACEOF
2032 if ac_fn_c_try_compile "$LINENO"; then :
2034 else
2035 eval "$3=yes"
2037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 eval ac_res=\$$3
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2046 } # ac_fn_c_check_type
2048 # ac_fn_c_check_func LINENO FUNC VAR
2049 # ----------------------------------
2050 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2051 ac_fn_c_check_func ()
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2057 $as_echo_n "(cached) " >&6
2058 else
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2061 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2063 #define $2 innocuous_$2
2065 /* System header to define __stub macros and hopefully few prototypes,
2066 which can conflict with char $2 (); below.
2067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2068 <limits.h> exists even on freestanding compilers. */
2070 #ifdef __STDC__
2071 # include <limits.h>
2072 #else
2073 # include <assert.h>
2074 #endif
2076 #undef $2
2078 /* Override any GCC internal prototype to avoid an error.
2079 Use char because int might match the return type of a GCC
2080 builtin and then its argument prototype would still apply. */
2081 #ifdef __cplusplus
2082 extern "C"
2083 #endif
2084 char $2 ();
2085 /* The GNU C library defines this for functions which it implements
2086 to always fail with ENOSYS. Some functions are actually named
2087 something starting with __ and the normal name is an alias. */
2088 #if defined __stub_$2 || defined __stub___$2
2089 choke me
2090 #endif
2093 main ()
2095 return $2 ();
2097 return 0;
2099 _ACEOF
2100 if ac_fn_c_try_link "$LINENO"; then :
2101 eval "$3=yes"
2102 else
2103 eval "$3=no"
2105 rm -f core conftest.err conftest.$ac_objext \
2106 conftest$ac_exeext conftest.$ac_ext
2108 eval ac_res=\$$3
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2113 } # ac_fn_c_check_func
2114 cat >config.log <<_ACEOF
2115 This file contains any messages produced by compilers while
2116 running configure, to aid debugging if configure makes a mistake.
2118 It was created by $as_me, which was
2119 generated by GNU Autoconf 2.65. Invocation command line was
2121 $ $0 $@
2123 _ACEOF
2124 exec 5>>config.log
2126 cat <<_ASUNAME
2127 ## --------- ##
2128 ## Platform. ##
2129 ## --------- ##
2131 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2132 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2133 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2134 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2135 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2137 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2138 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2140 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2141 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2142 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2143 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2144 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2145 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2146 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2148 _ASUNAME
2150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2151 for as_dir in $PATH
2153 IFS=$as_save_IFS
2154 test -z "$as_dir" && as_dir=.
2155 $as_echo "PATH: $as_dir"
2156 done
2157 IFS=$as_save_IFS
2159 } >&5
2161 cat >&5 <<_ACEOF
2164 ## ----------- ##
2165 ## Core tests. ##
2166 ## ----------- ##
2168 _ACEOF
2171 # Keep a trace of the command line.
2172 # Strip out --no-create and --no-recursion so they do not pile up.
2173 # Strip out --silent because we don't want to record it for future runs.
2174 # Also quote any args containing shell meta-characters.
2175 # Make two passes to allow for proper duplicate-argument suppression.
2176 ac_configure_args=
2177 ac_configure_args0=
2178 ac_configure_args1=
2179 ac_must_keep_next=false
2180 for ac_pass in 1 2
2182 for ac_arg
2184 case $ac_arg in
2185 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2186 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2187 | -silent | --silent | --silen | --sile | --sil)
2188 continue ;;
2189 *\'*)
2190 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2191 esac
2192 case $ac_pass in
2193 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2195 as_fn_append ac_configure_args1 " '$ac_arg'"
2196 if test $ac_must_keep_next = true; then
2197 ac_must_keep_next=false # Got value, back to normal.
2198 else
2199 case $ac_arg in
2200 *=* | --config-cache | -C | -disable-* | --disable-* \
2201 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2202 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2203 | -with-* | --with-* | -without-* | --without-* | --x)
2204 case "$ac_configure_args0 " in
2205 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2206 esac
2208 -* ) ac_must_keep_next=true ;;
2209 esac
2211 as_fn_append ac_configure_args " '$ac_arg'"
2213 esac
2214 done
2215 done
2216 { ac_configure_args0=; unset ac_configure_args0;}
2217 { ac_configure_args1=; unset ac_configure_args1;}
2219 # When interrupted or exit'd, cleanup temporary files, and complete
2220 # config.log. We remove comments because anyway the quotes in there
2221 # would cause problems or look ugly.
2222 # WARNING: Use '\'' to represent an apostrophe within the trap.
2223 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2224 trap 'exit_status=$?
2225 # Save into config.log some information that might help in debugging.
2227 echo
2229 cat <<\_ASBOX
2230 ## ---------------- ##
2231 ## Cache variables. ##
2232 ## ---------------- ##
2233 _ASBOX
2234 echo
2235 # The following way of writing the cache mishandles newlines in values,
2237 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2238 eval ac_val=\$$ac_var
2239 case $ac_val in #(
2240 *${as_nl}*)
2241 case $ac_var in #(
2242 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2243 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2244 esac
2245 case $ac_var in #(
2246 _ | IFS | as_nl) ;; #(
2247 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2248 *) { eval $ac_var=; unset $ac_var;} ;;
2249 esac ;;
2250 esac
2251 done
2252 (set) 2>&1 |
2253 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2254 *${as_nl}ac_space=\ *)
2255 sed -n \
2256 "s/'\''/'\''\\\\'\'''\''/g;
2257 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2258 ;; #(
2260 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2262 esac |
2263 sort
2265 echo
2267 cat <<\_ASBOX
2268 ## ----------------- ##
2269 ## Output variables. ##
2270 ## ----------------- ##
2271 _ASBOX
2272 echo
2273 for ac_var in $ac_subst_vars
2275 eval ac_val=\$$ac_var
2276 case $ac_val in
2277 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278 esac
2279 $as_echo "$ac_var='\''$ac_val'\''"
2280 done | sort
2281 echo
2283 if test -n "$ac_subst_files"; then
2284 cat <<\_ASBOX
2285 ## ------------------- ##
2286 ## File substitutions. ##
2287 ## ------------------- ##
2288 _ASBOX
2289 echo
2290 for ac_var in $ac_subst_files
2292 eval ac_val=\$$ac_var
2293 case $ac_val in
2294 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2295 esac
2296 $as_echo "$ac_var='\''$ac_val'\''"
2297 done | sort
2298 echo
2301 if test -s confdefs.h; then
2302 cat <<\_ASBOX
2303 ## ----------- ##
2304 ## confdefs.h. ##
2305 ## ----------- ##
2306 _ASBOX
2307 echo
2308 cat confdefs.h
2309 echo
2311 test "$ac_signal" != 0 &&
2312 $as_echo "$as_me: caught signal $ac_signal"
2313 $as_echo "$as_me: exit $exit_status"
2314 } >&5
2315 rm -f core *.core core.conftest.* &&
2316 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2317 exit $exit_status
2319 for ac_signal in 1 2 13 15; do
2320 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2321 done
2322 ac_signal=0
2324 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2325 rm -f -r conftest* confdefs.h
2327 $as_echo "/* confdefs.h */" > confdefs.h
2329 # Predefined preprocessor variables.
2331 cat >>confdefs.h <<_ACEOF
2332 #define PACKAGE_NAME "$PACKAGE_NAME"
2333 _ACEOF
2335 cat >>confdefs.h <<_ACEOF
2336 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2337 _ACEOF
2339 cat >>confdefs.h <<_ACEOF
2340 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2341 _ACEOF
2343 cat >>confdefs.h <<_ACEOF
2344 #define PACKAGE_STRING "$PACKAGE_STRING"
2345 _ACEOF
2347 cat >>confdefs.h <<_ACEOF
2348 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2349 _ACEOF
2351 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_URL "$PACKAGE_URL"
2353 _ACEOF
2356 # Let the site file select an alternate cache file if it wants to.
2357 # Prefer an explicitly selected file to automatically selected ones.
2358 ac_site_file1=NONE
2359 ac_site_file2=NONE
2360 if test -n "$CONFIG_SITE"; then
2361 ac_site_file1=$CONFIG_SITE
2362 elif test "x$prefix" != xNONE; then
2363 ac_site_file1=$prefix/share/config.site
2364 ac_site_file2=$prefix/etc/config.site
2365 else
2366 ac_site_file1=$ac_default_prefix/share/config.site
2367 ac_site_file2=$ac_default_prefix/etc/config.site
2369 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2371 test "x$ac_site_file" = xNONE && continue
2372 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2374 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2375 sed 's/^/| /' "$ac_site_file" >&5
2376 . "$ac_site_file"
2378 done
2380 if test -r "$cache_file"; then
2381 # Some versions of bash will fail to source /dev/null (special files
2382 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2383 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2385 $as_echo "$as_me: loading cache $cache_file" >&6;}
2386 case $cache_file in
2387 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2388 *) . "./$cache_file";;
2389 esac
2391 else
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2393 $as_echo "$as_me: creating cache $cache_file" >&6;}
2394 >$cache_file
2397 as_fn_append ac_header_list " stdlib.h"
2398 as_fn_append ac_header_list " unistd.h"
2399 as_fn_append ac_header_list " sys/param.h"
2400 # Check that the precious variables saved in the cache have kept the same
2401 # value.
2402 ac_cache_corrupted=false
2403 for ac_var in $ac_precious_vars; do
2404 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2405 eval ac_new_set=\$ac_env_${ac_var}_set
2406 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2407 eval ac_new_val=\$ac_env_${ac_var}_value
2408 case $ac_old_set,$ac_new_set in
2409 set,)
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2411 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2412 ac_cache_corrupted=: ;;
2413 ,set)
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2415 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2416 ac_cache_corrupted=: ;;
2417 ,);;
2419 if test "x$ac_old_val" != "x$ac_new_val"; then
2420 # differences in whitespace do not lead to failure.
2421 ac_old_val_w=`echo x $ac_old_val`
2422 ac_new_val_w=`echo x $ac_new_val`
2423 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2425 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2426 ac_cache_corrupted=:
2427 else
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2429 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2430 eval $ac_var=\$ac_old_val
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2433 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2435 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2436 fi;;
2437 esac
2438 # Pass precious variables to config.status.
2439 if test "$ac_new_set" = set; then
2440 case $ac_new_val in
2441 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2442 *) ac_arg=$ac_var=$ac_new_val ;;
2443 esac
2444 case " $ac_configure_args " in
2445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2446 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2447 esac
2449 done
2450 if $ac_cache_corrupted; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2454 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2455 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2457 ## -------------------- ##
2458 ## Main body of script. ##
2459 ## -------------------- ##
2461 ac_ext=c
2462 ac_cpp='$CPP $CPPFLAGS'
2463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2469 ac_aux_dir=
2470 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2471 for ac_t in install-sh install.sh shtool; do
2472 if test -f "$ac_dir/$ac_t"; then
2473 ac_aux_dir=$ac_dir
2474 ac_install_sh="$ac_aux_dir/$ac_t -c"
2475 break 2
2477 done
2478 done
2479 if test -z "$ac_aux_dir"; then
2480 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2483 # These three variables are undocumented and unsupported,
2484 # and are intended to be withdrawn in a future Autoconf release.
2485 # They can cause serious problems if a builder's source tree is in a directory
2486 # whose full name contains unusual characters.
2487 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2488 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2489 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2493 # Check what host we are running on.
2494 # If a target is not suggested, we use this one.
2495 # Note that what we call a target, Autoconf calls a host.
2496 # Make sure we can run config.sub.
2497 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2498 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2501 $as_echo_n "checking build system type... " >&6; }
2502 if test "${ac_cv_build+set}" = set; then :
2503 $as_echo_n "(cached) " >&6
2504 else
2505 ac_build_alias=$build_alias
2506 test "x$ac_build_alias" = x &&
2507 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2508 test "x$ac_build_alias" = x &&
2509 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2510 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2511 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2515 $as_echo "$ac_cv_build" >&6; }
2516 case $ac_cv_build in
2517 *-*-*) ;;
2518 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2519 esac
2520 build=$ac_cv_build
2521 ac_save_IFS=$IFS; IFS='-'
2522 set x $ac_cv_build
2523 shift
2524 build_cpu=$1
2525 build_vendor=$2
2526 shift; shift
2527 # Remember, the first character of IFS is used to create $*,
2528 # except with old shells:
2529 build_os=$*
2530 IFS=$ac_save_IFS
2531 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2535 $as_echo_n "checking host system type... " >&6; }
2536 if test "${ac_cv_host+set}" = set; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 if test "x$host_alias" = x; then
2540 ac_cv_host=$ac_cv_build
2541 else
2542 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2543 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2548 $as_echo "$ac_cv_host" >&6; }
2549 case $ac_cv_host in
2550 *-*-*) ;;
2551 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2552 esac
2553 host=$ac_cv_host
2554 ac_save_IFS=$IFS; IFS='-'
2555 set x $ac_cv_host
2556 shift
2557 host_cpu=$1
2558 host_vendor=$2
2559 shift; shift
2560 # Remember, the first character of IFS is used to create $*,
2561 # except with old shells:
2562 host_os=$*
2563 IFS=$ac_save_IFS
2564 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2568 # The AROS target is slightly different to the normal GNU style
2569 # format. We don't have the middle part, and we reverse the order
2570 # of the $(CPU) and $(OS) bits.
2572 # Don't strip the version of the target yet, it might be
2573 # useful on some systems.
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2576 $as_echo_n "checking for AROS style target... " >&6; }
2578 if test "$target" = "NONE" ; then
2579 target=$host_os-$host_cpu
2580 cross_compile=no
2581 else
2582 if test "$target" = "" ; then
2583 target=$host_os-$host_cpu
2584 cross_compile=no
2585 else
2586 cross_compile=yes
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2590 $as_echo "$target" >&6; }
2592 if test "$host_os" = "mingw32" ; then
2593 PWDCMD="pwd -W"
2596 #don't know where else to put this...
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Building AROS in .. " >&5
2598 $as_echo_n "checking Building AROS in .. ... " >&6; }
2599 AROS_BUILDDIR=`${PWDCMD-pwd}`
2600 AROS_BUILDDIR_UNIX=${PWD}
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2602 $as_echo "$AROS_BUILDDIR" >&6; }
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS Source in .. " >&5
2605 $as_echo_n "checking AROS Source in .. ... " >&6; }
2606 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2607 SRCDIR=${srcpwd}
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2609 $as_echo "$SRCDIR" >&6; }
2611 # Parse the target field into something useful.
2613 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2614 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2617 aros_default_wbwidth=800
2618 aros_default_wbheight=600
2619 aros_default_wbdepth=4
2622 # The first step is to find the host binaries.
2623 # Check for a compiler.
2624 ac_ext=c
2625 ac_cpp='$CPP $CPPFLAGS'
2626 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2627 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2628 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2629 if test -n "$ac_tool_prefix"; then
2630 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2631 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2633 $as_echo_n "checking for $ac_word... " >&6; }
2634 if test "${ac_cv_prog_CC+set}" = set; then :
2635 $as_echo_n "(cached) " >&6
2636 else
2637 if test -n "$CC"; then
2638 ac_cv_prog_CC="$CC" # Let the user override the test.
2639 else
2640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641 for as_dir in $PATH
2643 IFS=$as_save_IFS
2644 test -z "$as_dir" && as_dir=.
2645 for ac_exec_ext in '' $ac_executable_extensions; do
2646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2647 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2649 break 2
2651 done
2652 done
2653 IFS=$as_save_IFS
2657 CC=$ac_cv_prog_CC
2658 if test -n "$CC"; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2660 $as_echo "$CC" >&6; }
2661 else
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2663 $as_echo "no" >&6; }
2668 if test -z "$ac_cv_prog_CC"; then
2669 ac_ct_CC=$CC
2670 # Extract the first word of "gcc", so it can be a program name with args.
2671 set dummy gcc; ac_word=$2
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2673 $as_echo_n "checking for $ac_word... " >&6; }
2674 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 if test -n "$ac_ct_CC"; then
2678 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2679 else
2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681 for as_dir in $PATH
2683 IFS=$as_save_IFS
2684 test -z "$as_dir" && as_dir=.
2685 for ac_exec_ext in '' $ac_executable_extensions; do
2686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2687 ac_cv_prog_ac_ct_CC="gcc"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2691 done
2692 done
2693 IFS=$as_save_IFS
2697 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2698 if test -n "$ac_ct_CC"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2700 $as_echo "$ac_ct_CC" >&6; }
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2706 if test "x$ac_ct_CC" = x; then
2707 CC=""
2708 else
2709 case $cross_compiling:$ac_tool_warned in
2710 yes:)
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2713 ac_tool_warned=yes ;;
2714 esac
2715 CC=$ac_ct_CC
2717 else
2718 CC="$ac_cv_prog_CC"
2721 if test -z "$CC"; then
2722 if test -n "$ac_tool_prefix"; then
2723 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2724 set dummy ${ac_tool_prefix}cc; ac_word=$2
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2726 $as_echo_n "checking for $ac_word... " >&6; }
2727 if test "${ac_cv_prog_CC+set}" = set; then :
2728 $as_echo_n "(cached) " >&6
2729 else
2730 if test -n "$CC"; then
2731 ac_cv_prog_CC="$CC" # Let the user override the test.
2732 else
2733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2734 for as_dir in $PATH
2736 IFS=$as_save_IFS
2737 test -z "$as_dir" && as_dir=.
2738 for ac_exec_ext in '' $ac_executable_extensions; do
2739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2740 ac_cv_prog_CC="${ac_tool_prefix}cc"
2741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 break 2
2744 done
2745 done
2746 IFS=$as_save_IFS
2750 CC=$ac_cv_prog_CC
2751 if test -n "$CC"; then
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2753 $as_echo "$CC" >&6; }
2754 else
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2756 $as_echo "no" >&6; }
2762 if test -z "$CC"; then
2763 # Extract the first word of "cc", so it can be a program name with args.
2764 set dummy cc; ac_word=$2
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2766 $as_echo_n "checking for $ac_word... " >&6; }
2767 if test "${ac_cv_prog_CC+set}" = set; then :
2768 $as_echo_n "(cached) " >&6
2769 else
2770 if test -n "$CC"; then
2771 ac_cv_prog_CC="$CC" # Let the user override the test.
2772 else
2773 ac_prog_rejected=no
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 for as_dir in $PATH
2777 IFS=$as_save_IFS
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2782 ac_prog_rejected=yes
2783 continue
2785 ac_cv_prog_CC="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
2793 if test $ac_prog_rejected = yes; then
2794 # We found a bogon in the path, so make sure we never use it.
2795 set dummy $ac_cv_prog_CC
2796 shift
2797 if test $# != 0; then
2798 # We chose a different compiler from the bogus one.
2799 # However, it has the same basename, so the bogon will be chosen
2800 # first if we set CC to just the basename; use the full file name.
2801 shift
2802 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2807 CC=$ac_cv_prog_CC
2808 if test -n "$CC"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2810 $as_echo "$CC" >&6; }
2811 else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2818 if test -z "$CC"; then
2819 if test -n "$ac_tool_prefix"; then
2820 for ac_prog in cl.exe
2822 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2823 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2825 $as_echo_n "checking for $ac_word... " >&6; }
2826 if test "${ac_cv_prog_CC+set}" = set; then :
2827 $as_echo_n "(cached) " >&6
2828 else
2829 if test -n "$CC"; then
2830 ac_cv_prog_CC="$CC" # Let the user override the test.
2831 else
2832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2833 for as_dir in $PATH
2835 IFS=$as_save_IFS
2836 test -z "$as_dir" && as_dir=.
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2839 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2841 break 2
2843 done
2844 done
2845 IFS=$as_save_IFS
2849 CC=$ac_cv_prog_CC
2850 if test -n "$CC"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2852 $as_echo "$CC" >&6; }
2853 else
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2855 $as_echo "no" >&6; }
2859 test -n "$CC" && break
2860 done
2862 if test -z "$CC"; then
2863 ac_ct_CC=$CC
2864 for ac_prog in cl.exe
2866 # Extract the first word of "$ac_prog", so it can be a program name with args.
2867 set dummy $ac_prog; ac_word=$2
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869 $as_echo_n "checking for $ac_word... " >&6; }
2870 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2871 $as_echo_n "(cached) " >&6
2872 else
2873 if test -n "$ac_ct_CC"; then
2874 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883 ac_cv_prog_ac_ct_CC="$ac_prog"
2884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2887 done
2888 done
2889 IFS=$as_save_IFS
2893 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2894 if test -n "$ac_ct_CC"; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2896 $as_echo "$ac_ct_CC" >&6; }
2897 else
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2899 $as_echo "no" >&6; }
2903 test -n "$ac_ct_CC" && break
2904 done
2906 if test "x$ac_ct_CC" = x; then
2907 CC=""
2908 else
2909 case $cross_compiling:$ac_tool_warned in
2910 yes:)
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2912 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2913 ac_tool_warned=yes ;;
2914 esac
2915 CC=$ac_ct_CC
2922 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2924 as_fn_error "no acceptable C compiler found in \$PATH
2925 See \`config.log' for more details." "$LINENO" 5; }
2927 # Provide some information about the compiler.
2928 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2929 set X $ac_compile
2930 ac_compiler=$2
2931 for ac_option in --version -v -V -qversion; do
2932 { { ac_try="$ac_compiler $ac_option >&5"
2933 case "(($ac_try" in
2934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2935 *) ac_try_echo=$ac_try;;
2936 esac
2937 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2938 $as_echo "$ac_try_echo"; } >&5
2939 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2940 ac_status=$?
2941 if test -s conftest.err; then
2942 sed '10a\
2943 ... rest of stderr output deleted ...
2944 10q' conftest.err >conftest.er1
2945 cat conftest.er1 >&5
2947 rm -f conftest.er1 conftest.err
2948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2949 test $ac_status = 0; }
2950 done
2952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2953 /* end confdefs.h. */
2956 main ()
2960 return 0;
2962 _ACEOF
2963 ac_clean_files_save=$ac_clean_files
2964 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2965 # Try to create an executable without -o first, disregard a.out.
2966 # It will help us diagnose broken compilers, and finding out an intuition
2967 # of exeext.
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2969 $as_echo_n "checking whether the C compiler works... " >&6; }
2970 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2972 # The possible output files:
2973 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2975 ac_rmfiles=
2976 for ac_file in $ac_files
2978 case $ac_file in
2979 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2980 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2981 esac
2982 done
2983 rm -f $ac_rmfiles
2985 if { { ac_try="$ac_link_default"
2986 case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989 esac
2990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991 $as_echo "$ac_try_echo"; } >&5
2992 (eval "$ac_link_default") 2>&5
2993 ac_status=$?
2994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995 test $ac_status = 0; }; then :
2996 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2997 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2998 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2999 # so that the user can short-circuit this test for compilers unknown to
3000 # Autoconf.
3001 for ac_file in $ac_files ''
3003 test -f "$ac_file" || continue
3004 case $ac_file in
3005 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3007 [ab].out )
3008 # We found the default executable, but exeext='' is most
3009 # certainly right.
3010 break;;
3011 *.* )
3012 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3013 then :; else
3014 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3016 # We set ac_cv_exeext here because the later test for it is not
3017 # safe: cross compilers may not add the suffix if given an `-o'
3018 # argument, so we may need to know it at that point already.
3019 # Even if this section looks crufty: it has the advantage of
3020 # actually working.
3021 break;;
3023 break;;
3024 esac
3025 done
3026 test "$ac_cv_exeext" = no && ac_cv_exeext=
3028 else
3029 ac_file=''
3031 if test -z "$ac_file"; then :
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3034 $as_echo "$as_me: failed program was:" >&5
3035 sed 's/^/| /' conftest.$ac_ext >&5
3037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3039 { as_fn_set_status 77
3040 as_fn_error "C compiler cannot create executables
3041 See \`config.log' for more details." "$LINENO" 5; }; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3044 $as_echo "yes" >&6; }
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3047 $as_echo_n "checking for C compiler default output file name... " >&6; }
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3049 $as_echo "$ac_file" >&6; }
3050 ac_exeext=$ac_cv_exeext
3052 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3053 ac_clean_files=$ac_clean_files_save
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3055 $as_echo_n "checking for suffix of executables... " >&6; }
3056 if { { ac_try="$ac_link"
3057 case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3060 esac
3061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062 $as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_link") 2>&5
3064 ac_status=$?
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066 test $ac_status = 0; }; then :
3067 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3068 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3069 # work properly (i.e., refer to `conftest.exe'), while it won't with
3070 # `rm'.
3071 for ac_file in conftest.exe conftest conftest.*; do
3072 test -f "$ac_file" || continue
3073 case $ac_file in
3074 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3075 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3076 break;;
3077 * ) break;;
3078 esac
3079 done
3080 else
3081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 as_fn_error "cannot compute suffix of executables: cannot compile and link
3084 See \`config.log' for more details." "$LINENO" 5; }
3086 rm -f conftest conftest$ac_cv_exeext
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3088 $as_echo "$ac_cv_exeext" >&6; }
3090 rm -f conftest.$ac_ext
3091 EXEEXT=$ac_cv_exeext
3092 ac_exeext=$EXEEXT
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3095 #include <stdio.h>
3097 main ()
3099 FILE *f = fopen ("conftest.out", "w");
3100 return ferror (f) || fclose (f) != 0;
3103 return 0;
3105 _ACEOF
3106 ac_clean_files="$ac_clean_files conftest.out"
3107 # Check that the compiler produces executables we can run. If not, either
3108 # the compiler is broken, or we cross compile.
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3110 $as_echo_n "checking whether we are cross compiling... " >&6; }
3111 if test "$cross_compiling" != yes; then
3112 { { ac_try="$ac_link"
3113 case "(($ac_try" in
3114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3115 *) ac_try_echo=$ac_try;;
3116 esac
3117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3118 $as_echo "$ac_try_echo"; } >&5
3119 (eval "$ac_link") 2>&5
3120 ac_status=$?
3121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3122 test $ac_status = 0; }
3123 if { ac_try='./conftest$ac_cv_exeext'
3124 { { case "(($ac_try" in
3125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3127 esac
3128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129 $as_echo "$ac_try_echo"; } >&5
3130 (eval "$ac_try") 2>&5
3131 ac_status=$?
3132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133 test $ac_status = 0; }; }; then
3134 cross_compiling=no
3135 else
3136 if test "$cross_compiling" = maybe; then
3137 cross_compiling=yes
3138 else
3139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3140 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3141 as_fn_error "cannot run C compiled programs.
3142 If you meant to cross compile, use \`--host'.
3143 See \`config.log' for more details." "$LINENO" 5; }
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3148 $as_echo "$cross_compiling" >&6; }
3150 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3151 ac_clean_files=$ac_clean_files_save
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3153 $as_echo_n "checking for suffix of object files... " >&6; }
3154 if test "${ac_cv_objext+set}" = set; then :
3155 $as_echo_n "(cached) " >&6
3156 else
3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158 /* end confdefs.h. */
3161 main ()
3165 return 0;
3167 _ACEOF
3168 rm -f conftest.o conftest.obj
3169 if { { ac_try="$ac_compile"
3170 case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3173 esac
3174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3175 $as_echo "$ac_try_echo"; } >&5
3176 (eval "$ac_compile") 2>&5
3177 ac_status=$?
3178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3179 test $ac_status = 0; }; then :
3180 for ac_file in conftest.o conftest.obj conftest.*; do
3181 test -f "$ac_file" || continue;
3182 case $ac_file in
3183 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3184 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3185 break;;
3186 esac
3187 done
3188 else
3189 $as_echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3194 as_fn_error "cannot compute suffix of object files: cannot compile
3195 See \`config.log' for more details." "$LINENO" 5; }
3197 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3200 $as_echo "$ac_cv_objext" >&6; }
3201 OBJEXT=$ac_cv_objext
3202 ac_objext=$OBJEXT
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3204 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3205 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3206 $as_echo_n "(cached) " >&6
3207 else
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3212 main ()
3214 #ifndef __GNUC__
3215 choke me
3216 #endif
3219 return 0;
3221 _ACEOF
3222 if ac_fn_c_try_compile "$LINENO"; then :
3223 ac_compiler_gnu=yes
3224 else
3225 ac_compiler_gnu=no
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3232 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3233 if test $ac_compiler_gnu = yes; then
3234 GCC=yes
3235 else
3236 GCC=
3238 ac_test_CFLAGS=${CFLAGS+set}
3239 ac_save_CFLAGS=$CFLAGS
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3241 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3242 if test "${ac_cv_prog_cc_g+set}" = set; then :
3243 $as_echo_n "(cached) " >&6
3244 else
3245 ac_save_c_werror_flag=$ac_c_werror_flag
3246 ac_c_werror_flag=yes
3247 ac_cv_prog_cc_g=no
3248 CFLAGS="-g"
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3253 main ()
3257 return 0;
3259 _ACEOF
3260 if ac_fn_c_try_compile "$LINENO"; then :
3261 ac_cv_prog_cc_g=yes
3262 else
3263 CFLAGS=""
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3268 main ()
3272 return 0;
3274 _ACEOF
3275 if ac_fn_c_try_compile "$LINENO"; then :
3277 else
3278 ac_c_werror_flag=$ac_save_c_werror_flag
3279 CFLAGS="-g"
3280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281 /* end confdefs.h. */
3284 main ()
3288 return 0;
3290 _ACEOF
3291 if ac_fn_c_try_compile "$LINENO"; then :
3292 ac_cv_prog_cc_g=yes
3294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3299 ac_c_werror_flag=$ac_save_c_werror_flag
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3302 $as_echo "$ac_cv_prog_cc_g" >&6; }
3303 if test "$ac_test_CFLAGS" = set; then
3304 CFLAGS=$ac_save_CFLAGS
3305 elif test $ac_cv_prog_cc_g = yes; then
3306 if test "$GCC" = yes; then
3307 CFLAGS="-g -O2"
3308 else
3309 CFLAGS="-g"
3311 else
3312 if test "$GCC" = yes; then
3313 CFLAGS="-O2"
3314 else
3315 CFLAGS=
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3319 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3320 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 ac_cv_prog_cc_c89=no
3324 ac_save_CC=$CC
3325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3326 /* end confdefs.h. */
3327 #include <stdarg.h>
3328 #include <stdio.h>
3329 #include <sys/types.h>
3330 #include <sys/stat.h>
3331 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3332 struct buf { int x; };
3333 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3334 static char *e (p, i)
3335 char **p;
3336 int i;
3338 return p[i];
3340 static char *f (char * (*g) (char **, int), char **p, ...)
3342 char *s;
3343 va_list v;
3344 va_start (v,p);
3345 s = g (p, va_arg (v,int));
3346 va_end (v);
3347 return s;
3350 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3351 function prototypes and stuff, but not '\xHH' hex character constants.
3352 These don't provoke an error unfortunately, instead are silently treated
3353 as 'x'. The following induces an error, until -std is added to get
3354 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3355 array size at least. It's necessary to write '\x00'==0 to get something
3356 that's true only with -std. */
3357 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3359 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3360 inside strings and character constants. */
3361 #define FOO(x) 'x'
3362 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3364 int test (int i, double x);
3365 struct s1 {int (*f) (int a);};
3366 struct s2 {int (*f) (double a);};
3367 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3368 int argc;
3369 char **argv;
3371 main ()
3373 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3375 return 0;
3377 _ACEOF
3378 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3379 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3381 CC="$ac_save_CC $ac_arg"
3382 if ac_fn_c_try_compile "$LINENO"; then :
3383 ac_cv_prog_cc_c89=$ac_arg
3385 rm -f core conftest.err conftest.$ac_objext
3386 test "x$ac_cv_prog_cc_c89" != "xno" && break
3387 done
3388 rm -f conftest.$ac_ext
3389 CC=$ac_save_CC
3392 # AC_CACHE_VAL
3393 case "x$ac_cv_prog_cc_c89" in
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3396 $as_echo "none needed" >&6; } ;;
3397 xno)
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3399 $as_echo "unsupported" >&6; } ;;
3401 CC="$CC $ac_cv_prog_cc_c89"
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3403 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3404 esac
3405 if test "x$ac_cv_prog_cc_c89" != xno; then :
3409 ac_ext=c
3410 ac_cpp='$CPP $CPPFLAGS'
3411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415 case $ac_cv_prog_cc_stdc in #(
3416 no) :
3417 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3418 *) :
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3420 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3421 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3422 $as_echo_n "(cached) " >&6
3423 else
3424 ac_cv_prog_cc_c99=no
3425 ac_save_CC=$CC
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3428 #include <stdarg.h>
3429 #include <stdbool.h>
3430 #include <stdlib.h>
3431 #include <wchar.h>
3432 #include <stdio.h>
3434 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3435 #define debug(...) fprintf (stderr, __VA_ARGS__)
3436 #define showlist(...) puts (#__VA_ARGS__)
3437 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3438 static void
3439 test_varargs_macros (void)
3441 int x = 1234;
3442 int y = 5678;
3443 debug ("Flag");
3444 debug ("X = %d\n", x);
3445 showlist (The first, second, and third items.);
3446 report (x>y, "x is %d but y is %d", x, y);
3449 // Check long long types.
3450 #define BIG64 18446744073709551615ull
3451 #define BIG32 4294967295ul
3452 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3453 #if !BIG_OK
3454 your preprocessor is broken;
3455 #endif
3456 #if BIG_OK
3457 #else
3458 your preprocessor is broken;
3459 #endif
3460 static long long int bignum = -9223372036854775807LL;
3461 static unsigned long long int ubignum = BIG64;
3463 struct incomplete_array
3465 int datasize;
3466 double data[];
3469 struct named_init {
3470 int number;
3471 const wchar_t *name;
3472 double average;
3475 typedef const char *ccp;
3477 static inline int
3478 test_restrict (ccp restrict text)
3480 // See if C++-style comments work.
3481 // Iterate through items via the restricted pointer.
3482 // Also check for declarations in for loops.
3483 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3484 continue;
3485 return 0;
3488 // Check varargs and va_copy.
3489 static void
3490 test_varargs (const char *format, ...)
3492 va_list args;
3493 va_start (args, format);
3494 va_list args_copy;
3495 va_copy (args_copy, args);
3497 const char *str;
3498 int number;
3499 float fnumber;
3501 while (*format)
3503 switch (*format++)
3505 case 's': // string
3506 str = va_arg (args_copy, const char *);
3507 break;
3508 case 'd': // int
3509 number = va_arg (args_copy, int);
3510 break;
3511 case 'f': // float
3512 fnumber = va_arg (args_copy, double);
3513 break;
3514 default:
3515 break;
3518 va_end (args_copy);
3519 va_end (args);
3523 main ()
3526 // Check bool.
3527 _Bool success = false;
3529 // Check restrict.
3530 if (test_restrict ("String literal") == 0)
3531 success = true;
3532 char *restrict newvar = "Another string";
3534 // Check varargs.
3535 test_varargs ("s, d' f .", "string", 65, 34.234);
3536 test_varargs_macros ();
3538 // Check flexible array members.
3539 struct incomplete_array *ia =
3540 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3541 ia->datasize = 10;
3542 for (int i = 0; i < ia->datasize; ++i)
3543 ia->data[i] = i * 1.234;
3545 // Check named initializers.
3546 struct named_init ni = {
3547 .number = 34,
3548 .name = L"Test wide string",
3549 .average = 543.34343,
3552 ni.number = 58;
3554 int dynamic_array[ni.number];
3555 dynamic_array[ni.number - 1] = 543;
3557 // work around unused variable warnings
3558 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3559 || dynamic_array[ni.number - 1] != 543);
3562 return 0;
3564 _ACEOF
3565 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3567 CC="$ac_save_CC $ac_arg"
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569 ac_cv_prog_cc_c99=$ac_arg
3571 rm -f core conftest.err conftest.$ac_objext
3572 test "x$ac_cv_prog_cc_c99" != "xno" && break
3573 done
3574 rm -f conftest.$ac_ext
3575 CC=$ac_save_CC
3578 # AC_CACHE_VAL
3579 case "x$ac_cv_prog_cc_c99" in
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3582 $as_echo "none needed" >&6; } ;;
3583 xno)
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3585 $as_echo "unsupported" >&6; } ;;
3587 CC="$CC $ac_cv_prog_cc_c99"
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3589 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3590 esac
3591 if test "x$ac_cv_prog_cc_c99" != xno; then :
3592 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3593 else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3595 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3596 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3597 $as_echo_n "(cached) " >&6
3598 else
3599 ac_cv_prog_cc_c89=no
3600 ac_save_CC=$CC
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3603 #include <stdarg.h>
3604 #include <stdio.h>
3605 #include <sys/types.h>
3606 #include <sys/stat.h>
3607 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3608 struct buf { int x; };
3609 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3610 static char *e (p, i)
3611 char **p;
3612 int i;
3614 return p[i];
3616 static char *f (char * (*g) (char **, int), char **p, ...)
3618 char *s;
3619 va_list v;
3620 va_start (v,p);
3621 s = g (p, va_arg (v,int));
3622 va_end (v);
3623 return s;
3626 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3627 function prototypes and stuff, but not '\xHH' hex character constants.
3628 These don't provoke an error unfortunately, instead are silently treated
3629 as 'x'. The following induces an error, until -std is added to get
3630 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3631 array size at least. It's necessary to write '\x00'==0 to get something
3632 that's true only with -std. */
3633 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3635 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3636 inside strings and character constants. */
3637 #define FOO(x) 'x'
3638 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3640 int test (int i, double x);
3641 struct s1 {int (*f) (int a);};
3642 struct s2 {int (*f) (double a);};
3643 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3644 int argc;
3645 char **argv;
3647 main ()
3649 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3651 return 0;
3653 _ACEOF
3654 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3655 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3657 CC="$ac_save_CC $ac_arg"
3658 if ac_fn_c_try_compile "$LINENO"; then :
3659 ac_cv_prog_cc_c89=$ac_arg
3661 rm -f core conftest.err conftest.$ac_objext
3662 test "x$ac_cv_prog_cc_c89" != "xno" && break
3663 done
3664 rm -f conftest.$ac_ext
3665 CC=$ac_save_CC
3668 # AC_CACHE_VAL
3669 case "x$ac_cv_prog_cc_c89" in
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3672 $as_echo "none needed" >&6; } ;;
3673 xno)
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3675 $as_echo "unsupported" >&6; } ;;
3677 CC="$CC $ac_cv_prog_cc_c89"
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3679 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3680 esac
3681 if test "x$ac_cv_prog_cc_c89" != xno; then :
3682 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3683 else
3684 ac_cv_prog_cc_stdc=no
3689 esac
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3691 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3692 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3693 $as_echo_n "(cached) " >&6
3696 case $ac_cv_prog_cc_stdc in #(
3697 no) :
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3699 $as_echo "unsupported" >&6; } ;; #(
3700 '') :
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3702 $as_echo "none needed" >&6; } ;; #(
3703 *) :
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3705 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3706 esac
3708 ac_ext=c
3709 ac_cpp='$CPP $CPPFLAGS'
3710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3714 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3715 # On Suns, sometimes $CPP names a directory.
3716 if test -n "$CPP" && test -d "$CPP"; then
3717 CPP=
3719 if test -z "$CPP"; then
3720 if test "${ac_cv_prog_CPP+set}" = set; then :
3721 $as_echo_n "(cached) " >&6
3722 else
3723 # Double quotes because CPP needs to be expanded
3724 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3726 ac_preproc_ok=false
3727 for ac_c_preproc_warn_flag in '' yes
3729 # Use a header file that comes with gcc, so configuring glibc
3730 # with a fresh cross-compiler works.
3731 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3732 # <limits.h> exists even on freestanding compilers.
3733 # On the NeXT, cc -E runs the code through the compiler's parser,
3734 # not just through cpp. "Syntax error" is here to catch this case.
3735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736 /* end confdefs.h. */
3737 #ifdef __STDC__
3738 # include <limits.h>
3739 #else
3740 # include <assert.h>
3741 #endif
3742 Syntax error
3743 _ACEOF
3744 if ac_fn_c_try_cpp "$LINENO"; then :
3746 else
3747 # Broken: fails on valid input.
3748 continue
3750 rm -f conftest.err conftest.$ac_ext
3752 # OK, works on sane cases. Now check whether nonexistent headers
3753 # can be detected and how.
3754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3755 /* end confdefs.h. */
3756 #include <ac_nonexistent.h>
3757 _ACEOF
3758 if ac_fn_c_try_cpp "$LINENO"; then :
3759 # Broken: success on invalid input.
3760 continue
3761 else
3762 # Passes both tests.
3763 ac_preproc_ok=:
3764 break
3766 rm -f conftest.err conftest.$ac_ext
3768 done
3769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3770 rm -f conftest.err conftest.$ac_ext
3771 if $ac_preproc_ok; then :
3772 break
3775 done
3776 ac_cv_prog_CPP=$CPP
3779 CPP=$ac_cv_prog_CPP
3780 else
3781 ac_cv_prog_CPP=$CPP
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3784 $as_echo "$CPP" >&6; }
3785 ac_preproc_ok=false
3786 for ac_c_preproc_warn_flag in '' yes
3788 # Use a header file that comes with gcc, so configuring glibc
3789 # with a fresh cross-compiler works.
3790 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3791 # <limits.h> exists even on freestanding compilers.
3792 # On the NeXT, cc -E runs the code through the compiler's parser,
3793 # not just through cpp. "Syntax error" is here to catch this case.
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3796 #ifdef __STDC__
3797 # include <limits.h>
3798 #else
3799 # include <assert.h>
3800 #endif
3801 Syntax error
3802 _ACEOF
3803 if ac_fn_c_try_cpp "$LINENO"; then :
3805 else
3806 # Broken: fails on valid input.
3807 continue
3809 rm -f conftest.err conftest.$ac_ext
3811 # OK, works on sane cases. Now check whether nonexistent headers
3812 # can be detected and how.
3813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3814 /* end confdefs.h. */
3815 #include <ac_nonexistent.h>
3816 _ACEOF
3817 if ac_fn_c_try_cpp "$LINENO"; then :
3818 # Broken: success on invalid input.
3819 continue
3820 else
3821 # Passes both tests.
3822 ac_preproc_ok=:
3823 break
3825 rm -f conftest.err conftest.$ac_ext
3827 done
3828 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3829 rm -f conftest.err conftest.$ac_ext
3830 if $ac_preproc_ok; then :
3832 else
3833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3835 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3836 See \`config.log' for more details." "$LINENO" 5; }
3839 ac_ext=c
3840 ac_cpp='$CPP $CPPFLAGS'
3841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846 # Check for a compatible awk
3847 for ac_prog in gawk nawk
3849 # Extract the first word of "$ac_prog", so it can be a program name with args.
3850 set dummy $ac_prog; ac_word=$2
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852 $as_echo_n "checking for $ac_word... " >&6; }
3853 if test "${ac_cv_prog_AWK+set}" = set; then :
3854 $as_echo_n "(cached) " >&6
3855 else
3856 if test -n "$AWK"; then
3857 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
3865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3866 ac_cv_prog_AWK="$ac_prog"
3867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3870 done
3871 done
3872 IFS=$as_save_IFS
3876 AWK=$ac_cv_prog_AWK
3877 if test -n "$AWK"; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3879 $as_echo "$AWK" >&6; }
3880 else
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882 $as_echo "no" >&6; }
3886 test -n "$AWK" && break
3887 done
3889 if test "$AWK" = ""; then
3890 as_fn_error "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3892 # Extract the first word of "mmake", so it can be a program name with args.
3893 set dummy mmake; ac_word=$2
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 $as_echo_n "checking for $ac_word... " >&6; }
3896 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3897 $as_echo_n "(cached) " >&6
3898 else
3899 if test -n "$MMAKE"; then
3900 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3901 else
3902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903 for as_dir in $PATH
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
3908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3909 ac_cv_prog_MMAKE="mmake "
3910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3911 break 2
3913 done
3914 done
3915 IFS=$as_save_IFS
3919 MMAKE=$ac_cv_prog_MMAKE
3920 if test -n "$MMAKE"; then
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3922 $as_echo "$MMAKE" >&6; }
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3925 $as_echo "no" >&6; }
3930 # Perform some default variable assignments. Note all of these will be
3931 # Regenerated from the script, so there is no need to cache them.
3933 aros_host_cc="$CC"
3934 if test "$GCC" = "yes"; then
3935 aros_gcc_ld=`$CC -print-prog-name=ld`
3936 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3937 set dummy `basename $aros_gcc_ld`; 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_path_aros_host_ld+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 case $aros_host_ld in
3944 [\\/]* | ?:[\\/]*)
3945 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in `dirname $aros_gcc_ld`
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3955 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3959 done
3960 done
3961 IFS=$as_save_IFS
3964 esac
3966 aros_host_ld=$ac_cv_path_aros_host_ld
3967 if test -n "$aros_host_ld"; then
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
3969 $as_echo "$aros_host_ld" >&6; }
3970 else
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3977 if test "$aros_host_ld" = ""; then
3978 # Extract the first word of "ld", so it can be a program name with args.
3979 set dummy ld; ac_word=$2
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3981 $as_echo_n "checking for $ac_word... " >&6; }
3982 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3983 $as_echo_n "(cached) " >&6
3984 else
3985 case $aros_host_ld in
3986 [\\/]* | ?:[\\/]*)
3987 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3991 for as_dir in $PATH
3993 IFS=$as_save_IFS
3994 test -z "$as_dir" && as_dir=.
3995 for ac_exec_ext in '' $ac_executable_extensions; do
3996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3997 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3999 break 2
4001 done
4002 done
4003 IFS=$as_save_IFS
4006 esac
4008 aros_host_ld=$ac_cv_path_aros_host_ld
4009 if test -n "$aros_host_ld"; then
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4011 $as_echo "$aros_host_ld" >&6; }
4012 else
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 $as_echo "no" >&6; }
4019 if test "$aros_host_ld" = ""; then
4020 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4022 aros_host_make="make"
4023 aros_host_cflags=$CFLAGS
4024 aros_host_ldflags=$LDFLAGS
4025 aros_host_debug="-g -O0"
4026 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4027 aros_host_mkargs="--no-print-directory"
4028 aros_host_incl="/usr/include"
4029 aros_host_exe_suffix="$EXEEXT"
4030 aros_host_lib_suffix=""
4032 for ac_prog in aclocal aclocal19 aclocal-1.9
4034 # Extract the first word of "$ac_prog", so it can be a program name with args.
4035 set dummy $ac_prog; ac_word=$2
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4037 $as_echo_n "checking for $ac_word... " >&6; }
4038 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4039 $as_echo_n "(cached) " >&6
4040 else
4041 if test -n "$aros_host_aclocal"; then
4042 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4043 else
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4051 ac_cv_prog_aros_host_aclocal="$ac_prog"
4052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4055 done
4056 done
4057 IFS=$as_save_IFS
4061 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4062 if test -n "$aros_host_aclocal"; then
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4064 $as_echo "$aros_host_aclocal" >&6; }
4065 else
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 $as_echo "no" >&6; }
4071 test -n "$aros_host_aclocal" && break
4072 done
4074 for ac_prog in autoconf autoconf259 autoconf253
4076 # Extract the first word of "$ac_prog", so it can be a program name with args.
4077 set dummy $ac_prog; ac_word=$2
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4079 $as_echo_n "checking for $ac_word... " >&6; }
4080 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4081 $as_echo_n "(cached) " >&6
4082 else
4083 if test -n "$aros_host_autoconf"; then
4084 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4085 else
4086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4087 for as_dir in $PATH
4089 IFS=$as_save_IFS
4090 test -z "$as_dir" && as_dir=.
4091 for ac_exec_ext in '' $ac_executable_extensions; do
4092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4093 ac_cv_prog_aros_host_autoconf="$ac_prog"
4094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4095 break 2
4097 done
4098 done
4099 IFS=$as_save_IFS
4103 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4104 if test -n "$aros_host_autoconf"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4106 $as_echo "$aros_host_autoconf" >&6; }
4107 else
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4113 test -n "$aros_host_autoconf" && break
4114 done
4116 for ac_prog in autoheader autoheader259 autoheader253
4118 # Extract the first word of "$ac_prog", so it can be a program name with args.
4119 set dummy $ac_prog; ac_word=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4124 else
4125 if test -n "$aros_host_autoheader"; then
4126 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4127 else
4128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 for as_dir in $PATH
4131 IFS=$as_save_IFS
4132 test -z "$as_dir" && as_dir=.
4133 for ac_exec_ext in '' $ac_executable_extensions; do
4134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4135 ac_cv_prog_aros_host_autoheader="$ac_prog"
4136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 break 2
4139 done
4140 done
4141 IFS=$as_save_IFS
4145 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4146 if test -n "$aros_host_autoheader"; then
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4148 $as_echo "$aros_host_autoheader" >&6; }
4149 else
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4151 $as_echo "no" >&6; }
4155 test -n "$aros_host_autoheader" && break
4156 done
4158 for ac_prog in automake automake19 automake-1.9
4160 # Extract the first word of "$ac_prog", so it can be a program name with args.
4161 set dummy $ac_prog; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4165 $as_echo_n "(cached) " >&6
4166 else
4167 if test -n "$aros_host_automake"; then
4168 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4169 else
4170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 for as_dir in $PATH
4173 IFS=$as_save_IFS
4174 test -z "$as_dir" && as_dir=.
4175 for ac_exec_ext in '' $ac_executable_extensions; do
4176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4177 ac_cv_prog_aros_host_automake="$ac_prog"
4178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4179 break 2
4181 done
4182 done
4183 IFS=$as_save_IFS
4187 aros_host_automake=$ac_cv_prog_aros_host_automake
4188 if test -n "$aros_host_automake"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4190 $as_echo "$aros_host_automake" >&6; }
4191 else
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4197 test -n "$aros_host_automake" && break
4198 done
4201 if test "$aros_host_aclocal" = ""; then
4202 as_fn_error "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4204 if test "$aros_host_automake" = ""; then
4205 as_fn_error "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4208 case "$aros_host_cc" in
4209 *gcc*)
4210 aros_host_cc_pipe="-pipe"
4212 icc)
4213 aros_host_cc_pipe=""
4216 aros_host_cc_pipe=""
4218 esac
4220 aros_target_cc_includes=""
4222 # This is the main host configuration section. It is where the host
4223 # can change the values of any variables it needs to change. We do
4224 # not look at anything that compiles to the target yet, we'll get
4225 # to that later.
4227 case "$host_os" in
4228 aros*)
4229 aros_host_arch="aros"
4230 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4231 case "$host_cpu" in
4232 *i?86*)
4233 aros_host_cpu="i386"
4235 *x86_64*)
4236 aros_host_cpu="x86_64"
4238 *powerpc*)
4239 aros_host_cpu="ppc"
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4243 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4244 aros_host_cpu="$host_cpu"
4246 esac
4249 linux*)
4250 aros_host_arch="linux"
4251 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4252 case "$host_cpu" in
4253 *i?86*)
4254 aros_host_cpu="i386"
4256 *x86_64*)
4257 aros_host_cpu="x86_64"
4259 *m68k*)
4260 aros_host_cpu="m68k"
4262 *powerpc*)
4263 aros_host_cpu="ppc"
4265 *arm*)
4266 aros_host_cpu="arm"
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4270 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4271 aros_host_cpu="$host_cpu"
4273 esac
4276 freebsd*)
4277 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4278 aros_host_make="gmake"
4279 aros_host_arch="freebsd"
4280 aros_host_cpu="i386"
4282 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4285 case $host_os in
4286 freebsd[234]*)
4287 aros_object_format="elf_i386"
4291 aros_object_format="elf_i386_fbsd"
4293 esac
4297 darwin*)
4298 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4299 aros_host_arch="darwin"
4300 case "$host_cpu" in
4301 *i?86*)
4302 aros_host_cpu="i386"
4304 *x86_64*)
4305 aros_host_cpu="x86_64"
4307 *powerpc*)
4308 aros_host_cpu="ppc"
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4312 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4313 aros_host_cpu="$host_cpu"
4315 esac
4317 aros_host_ldflags="$aros_host_ldflags -liconv"
4321 dragonfly*)
4322 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4323 aros_host_make="gmake"
4324 aros_host_arch="dragonfly"
4325 case $host_cpu in
4326 *i?86*)
4327 aros_host_cpu="i386"
4329 *amd64*)
4330 aros_host_cpu="x86_64"
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4334 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4335 aros_host_cpu="$host_cpu"
4337 esac
4340 netbsd*)
4341 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4342 aros_host_make="gmake"
4343 aros_host_arch="netbsd"
4344 case "$host_cpu" in
4345 *i?86*)
4346 aros_host_cpu="i386"
4348 *m68k*)
4349 aros_host_cpu="m68k"
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4353 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4354 aros_host_cpu="$host_cpu"
4356 esac
4357 aros_host_lib_suffix=".0.0"
4360 openbsd*)
4361 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4362 aros_host_make="gmake"
4363 aros_host_arch="openbsd"
4364 case "$host_cpu" in
4365 *i?86*)
4366 aros_host_cpu="i386"
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4370 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4371 aros_host_cpu="$host_cpu"
4373 esac
4376 solaris*)
4377 aros_host_arch="solaris"
4378 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4379 case "$host_cpu" in
4380 *i?86*)
4381 aros_host_cpu="i386"
4383 *sparc*)
4384 aros_host_cpu="sparc"
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4388 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4389 aros_host_cpu="$host_cpu"
4391 esac
4394 morphos*)
4395 aros_host_arch="morphos"
4396 aros_host_cpu="ppc"
4399 amiga*)
4400 aros_host_arch="amiga"
4401 SORT="/gg/bin/sort"
4402 TEST="/gg/bin/test"
4403 UNIQ="/gg/bin/uniq"
4404 FOR="for"
4405 TOUCH="/gg/bin/touch"
4406 case "$host_cpu" in
4407 *m68k*)
4408 aros_host_cpu="m68k"
4410 *powerpc*)
4411 aros_host_cpu="ppc"
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4415 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4416 aros_host_cpu="$host_cpu"
4418 esac
4421 cygwin*)
4422 aros_host_arch="cygwin"
4423 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4424 case "$host_cpu" in
4425 *i?86*)
4426 aros_host_cpu="i386"
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4430 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4431 aros_host_cpu="$host_cpu"
4433 esac
4436 mingw32*)
4437 aros_host_arch="mingw32"
4438 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4439 case "$host_cpu" in
4440 *i?86*)
4441 aros_host_cpu="i386"
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4445 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4446 aros_host_cpu="$host_cpu"
4448 esac
4451 as_fn_error "Unsupported host architecture $host" "$LINENO" 5
4453 esac
4455 # Extract the first word of "ar", so it can be a program name with args.
4456 set dummy ar; ac_word=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 if test -n "$aros_host_ar"; then
4463 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_aros_host_ar="ar cr"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4476 done
4477 done
4478 IFS=$as_save_IFS
4482 aros_host_ar=$ac_cv_prog_aros_host_ar
4483 if test -n "$aros_host_ar"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4485 $as_echo "$aros_host_ar" >&6; }
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4492 if test "$aros_host_ar" = ""; then
4493 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4495 # Extract the first word of "ranlib", so it can be a program name with args.
4496 set dummy ranlib; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 if test -n "$aros_host_ranlib"; then
4503 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4504 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_aros_host_ranlib="ranlib "
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4516 done
4517 done
4518 IFS=$as_save_IFS
4522 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4523 if test -n "$aros_host_ranlib"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4525 $as_echo "$aros_host_ranlib" >&6; }
4526 else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4532 if test "$aros_host_ranlib" = ""; then
4533 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4535 # Extract the first word of "strip", so it can be a program name with args.
4536 set dummy strip; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 if test -n "$aros_host_strip"; then
4543 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 ac_cv_prog_aros_host_strip="strip "
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4556 done
4557 done
4558 IFS=$as_save_IFS
4562 aros_host_strip=$ac_cv_prog_aros_host_strip
4563 if test -n "$aros_host_strip"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4565 $as_echo "$aros_host_strip" >&6; }
4566 else
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4572 if test "$aros_host_strip" = ""; then
4573 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4576 # Extract the first word of "rm", so it can be a program name with args.
4577 set dummy rm; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if test "${ac_cv_prog_RM+set}" = set; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 if test -n "$RM"; then
4584 ac_cv_prog_RM="$RM" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_prog_RM="rm -rf"
4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4599 IFS=$as_save_IFS
4603 RM=$ac_cv_prog_RM
4604 if test -n "$RM"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4606 $as_echo "$RM" >&6; }
4607 else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4613 if test "$RM" = ""; then
4614 as_fn_error "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4616 # Extract the first word of "cp", so it can be a program name with args.
4617 set dummy cp; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if test "${ac_cv_prog_CP+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if test -n "$CP"; then
4624 ac_cv_prog_CP="$CP" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_CP="cp "
4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4637 done
4638 done
4639 IFS=$as_save_IFS
4643 CP=$ac_cv_prog_CP
4644 if test -n "$CP"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4646 $as_echo "$CP" >&6; }
4647 else
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4653 if test "$CP" = ""; then
4654 as_fn_error "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4656 # Extract the first word of "mv", so it can be a program name with args.
4657 set dummy mv; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_MV+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 if test -n "$MV"; then
4664 ac_cv_prog_MV="$MV" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_MV="mv "
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4677 done
4678 done
4679 IFS=$as_save_IFS
4683 MV=$ac_cv_prog_MV
4684 if test -n "$MV"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4686 $as_echo "$MV" >&6; }
4687 else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4693 if test "$MV" = ""; then
4694 as_fn_error "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4696 # Extract the first word of "echo", so it can be a program name with args.
4697 set dummy echo; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if test "${ac_cv_prog_ECHO+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 if test -n "$ECHO"; then
4704 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_prog_ECHO="echo "
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4717 done
4718 done
4719 IFS=$as_save_IFS
4723 ECHO=$ac_cv_prog_ECHO
4724 if test -n "$ECHO"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4726 $as_echo "$ECHO" >&6; }
4727 else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4733 if test "$ECHO" = ""; then
4734 as_fn_error "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4736 # Extract the first word of "mkdir", so it can be a program name with args.
4737 set dummy mkdir; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$MKDIR"; then
4744 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_MKDIR="mkdir -p"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4757 done
4758 done
4759 IFS=$as_save_IFS
4763 MKDIR=$ac_cv_prog_MKDIR
4764 if test -n "$MKDIR"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4766 $as_echo "$MKDIR" >&6; }
4767 else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4773 if test "$MKDIR" = ""; then
4774 as_fn_error "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4776 # Extract the first word of "touch", so it can be a program name with args.
4777 set dummy touch; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 if test -n "$TOUCH"; then
4784 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_prog_TOUCH="touch "
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4797 done
4798 done
4799 IFS=$as_save_IFS
4803 TOUCH=$ac_cv_prog_TOUCH
4804 if test -n "$TOUCH"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4806 $as_echo "$TOUCH" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4813 if test "$TOUCH" = ""; then
4814 as_fn_error "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4816 # Extract the first word of "sort", so it can be a program name with args.
4817 set dummy sort; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_SORT+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 if test -n "$SORT"; then
4824 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_SORT="sort "
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4837 done
4838 done
4839 IFS=$as_save_IFS
4843 SORT=$ac_cv_prog_SORT
4844 if test -n "$SORT"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4846 $as_echo "$SORT" >&6; }
4847 else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4853 if test "$SORT" = ""; then
4854 as_fn_error "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4856 # Extract the first word of "uniq", so it can be a program name with args.
4857 set dummy uniq; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$UNIQ"; then
4864 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_UNIQ="uniq "
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4877 done
4878 done
4879 IFS=$as_save_IFS
4883 UNIQ=$ac_cv_prog_UNIQ
4884 if test -n "$UNIQ"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4886 $as_echo "$UNIQ" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4893 if test "$UNIQ" = ""; then
4894 as_fn_error "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4896 # Extract the first word of "true", so it can be a program name with args.
4897 set dummy true; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if test "${ac_cv_prog_NOP+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$NOP"; then
4904 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913 ac_cv_prog_NOP="true "
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4917 done
4918 done
4919 IFS=$as_save_IFS
4923 NOP=$ac_cv_prog_NOP
4924 if test -n "$NOP"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4926 $as_echo "$NOP" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4933 if test "$NOP" = ""; then
4934 as_fn_error "true is required to build AROS. Please install and run configure again." "$LINENO" 5
4936 # Extract the first word of "cat", so it can be a program name with args.
4937 set dummy cat; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if test "${ac_cv_prog_CAT+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$CAT"; then
4944 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4953 ac_cv_prog_CAT="cat "
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4957 done
4958 done
4959 IFS=$as_save_IFS
4963 CAT=$ac_cv_prog_CAT
4964 if test -n "$CAT"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4966 $as_echo "$CAT" >&6; }
4967 else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4973 if test "$CAT" = ""; then
4974 as_fn_error "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
4976 # Extract the first word of "bison", so it can be a program name with args.
4977 set dummy bison; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if test "${ac_cv_prog_BISON+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if test -n "$BISON"; then
4984 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 ac_cv_prog_BISON="bison "
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4997 done
4998 done
4999 IFS=$as_save_IFS
5003 BISON=$ac_cv_prog_BISON
5004 if test -n "$BISON"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5006 $as_echo "$BISON" >&6; }
5007 else
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5013 if test "$BISON" = ""; then
5014 as_fn_error "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5016 # Extract the first word of "flex", so it can be a program name with args.
5017 set dummy flex; ac_word=$2
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if test "${ac_cv_prog_FLEX+set}" = set; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 if test -n "$FLEX"; then
5024 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033 ac_cv_prog_FLEX="flex "
5034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 break 2
5037 done
5038 done
5039 IFS=$as_save_IFS
5043 FLEX=$ac_cv_prog_FLEX
5044 if test -n "$FLEX"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5046 $as_echo "$FLEX" >&6; }
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5053 if test "$FLEX" = ""; then
5054 as_fn_error "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5056 # Extract the first word of "pngtopnm", so it can be a program name with args.
5057 set dummy pngtopnm; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5063 if test -n "$PNGTOPNM"; then
5064 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073 ac_cv_prog_PNGTOPNM="pngtopnm "
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5077 done
5078 done
5079 IFS=$as_save_IFS
5083 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5084 if test -n "$PNGTOPNM"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5086 $as_echo "$PNGTOPNM" >&6; }
5087 else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5093 if test "$PNGTOPNM" = ""; then
5094 as_fn_error "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5096 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5097 set dummy ppmtoilbm; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -n "$PPMTOILBM"; then
5104 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5117 done
5118 done
5119 IFS=$as_save_IFS
5123 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5124 if test -n "$PPMTOILBM"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5126 $as_echo "$PPMTOILBM" >&6; }
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5133 if test "$PPMTOILBM" = ""; then
5134 as_fn_error "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5136 # Extract the first word of "sed", so it can be a program name with args.
5137 set dummy sed; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if test "${ac_cv_prog_SED+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 if test -n "$SED"; then
5144 ac_cv_prog_SED="$SED" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_prog_SED="sed "
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5157 done
5158 done
5159 IFS=$as_save_IFS
5163 SED=$ac_cv_prog_SED
5164 if test -n "$SED"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5166 $as_echo "$SED" >&6; }
5167 else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5173 if test "$SED" = ""; then
5174 as_fn_error "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5176 # Extract the first word of "chmod", so it can be a program name with args.
5177 set dummy chmod; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if test -n "$CHMOD"; then
5184 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_prog_CHMOD="chmod "
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5197 done
5198 done
5199 IFS=$as_save_IFS
5203 CHMOD=$ac_cv_prog_CHMOD
5204 if test -n "$CHMOD"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5206 $as_echo "$CHMOD" >&6; }
5207 else
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5213 if test "$CHMOD" = ""; then
5214 as_fn_error "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5221 if test -n "$PYTHON"; then
5222 # If the user set $PYTHON, use it and don't search something else.
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5224 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5225 prog="import sys, string
5226 # split strings by '.' and convert to numeric. Append some zeros
5227 # because we need at least 4 digits for the hex conversion.
5228 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5229 minverhex = 0
5230 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5231 sys.exit(sys.hexversion < minverhex)"
5232 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5233 ($PYTHON -c "$prog") >&5 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; then :
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5238 $as_echo "yes" >&6; }
5239 else
5240 as_fn_error "too old" "$LINENO" 5
5242 am_display_PYTHON=$PYTHON
5243 else
5244 # Otherwise, try each interpreter until we find one that satisfies
5245 # VERSION.
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5247 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5248 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5252 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
5253 test "$am_cv_pathless_PYTHON" = none && break
5254 prog="import sys, string
5255 # split strings by '.' and convert to numeric. Append some zeros
5256 # because we need at least 4 digits for the hex conversion.
5257 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5258 minverhex = 0
5259 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5260 sys.exit(sys.hexversion < minverhex)"
5261 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5262 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; then :
5266 break
5268 done
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5271 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5272 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5273 if test "$am_cv_pathless_PYTHON" = none; then
5274 PYTHON=:
5275 else
5276 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5277 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if test "${ac_cv_path_PYTHON+set}" = set; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 case $PYTHON in
5284 [\\/]* | ?:[\\/]*)
5285 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5299 done
5300 done
5301 IFS=$as_save_IFS
5304 esac
5306 PYTHON=$ac_cv_path_PYTHON
5307 if test -n "$PYTHON"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5309 $as_echo "$PYTHON" >&6; }
5310 else
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5317 am_display_PYTHON=$am_cv_pathless_PYTHON
5321 if test "$PYTHON" = :; then
5322 as_fn_error "no suitable Python interpreter found" "$LINENO" 5
5323 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5327 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5328 if test "${am_cv_python_version+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5334 $as_echo "$am_cv_python_version" >&6; }
5335 PYTHON_VERSION=$am_cv_python_version
5339 PYTHON_PREFIX='${prefix}'
5341 PYTHON_EXEC_PREFIX='${exec_prefix}'
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5346 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5347 if test "${am_cv_python_platform+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5353 $as_echo "$am_cv_python_platform" >&6; }
5354 PYTHON_PLATFORM=$am_cv_python_platform
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5360 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5361 if test "${am_cv_python_pythondir+set}" = set; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5365 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5368 $as_echo "$am_cv_python_pythondir" >&6; }
5369 pythondir=$am_cv_python_pythondir
5373 pkgpythondir=\${pythondir}/$PACKAGE
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5377 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5378 if test "${am_cv_python_pyexecdir+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5382 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5385 $as_echo "$am_cv_python_pyexecdir" >&6; }
5386 pyexecdir=$am_cv_python_pyexecdir
5390 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5398 FOR=for
5400 IF=if
5402 TEST=test
5404 CMP=cmp
5408 # Check for some includes for the X11 HIDD and the kernel
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5412 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5413 if test "${ac_cv_path_GREP+set}" = set; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 if test -z "$GREP"; then
5417 ac_path_GREP_found=false
5418 # Loop through the user's path and test for each of PROGNAME-LIST
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_prog in grep ggrep; do
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5427 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5428 # Check for GNU ac_path_GREP and select it if it is found.
5429 # Check for GNU $ac_path_GREP
5430 case `"$ac_path_GREP" --version 2>&1` in
5431 *GNU*)
5432 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5434 ac_count=0
5435 $as_echo_n 0123456789 >"conftest.in"
5436 while :
5438 cat "conftest.in" "conftest.in" >"conftest.tmp"
5439 mv "conftest.tmp" "conftest.in"
5440 cp "conftest.in" "conftest.nl"
5441 $as_echo 'GREP' >> "conftest.nl"
5442 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5444 as_fn_arith $ac_count + 1 && ac_count=$as_val
5445 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5446 # Best one so far, save it but keep looking for a better one
5447 ac_cv_path_GREP="$ac_path_GREP"
5448 ac_path_GREP_max=$ac_count
5450 # 10*(2^10) chars as input seems more than enough
5451 test $ac_count -gt 10 && break
5452 done
5453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5454 esac
5456 $ac_path_GREP_found && break 3
5457 done
5458 done
5459 done
5460 IFS=$as_save_IFS
5461 if test -z "$ac_cv_path_GREP"; then
5462 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5464 else
5465 ac_cv_path_GREP=$GREP
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5470 $as_echo "$ac_cv_path_GREP" >&6; }
5471 GREP="$ac_cv_path_GREP"
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5475 $as_echo_n "checking for egrep... " >&6; }
5476 if test "${ac_cv_path_EGREP+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5480 then ac_cv_path_EGREP="$GREP -E"
5481 else
5482 if test -z "$EGREP"; then
5483 ac_path_EGREP_found=false
5484 # Loop through the user's path and test for each of PROGNAME-LIST
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_prog in egrep; do
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5493 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5494 # Check for GNU ac_path_EGREP and select it if it is found.
5495 # Check for GNU $ac_path_EGREP
5496 case `"$ac_path_EGREP" --version 2>&1` in
5497 *GNU*)
5498 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5500 ac_count=0
5501 $as_echo_n 0123456789 >"conftest.in"
5502 while :
5504 cat "conftest.in" "conftest.in" >"conftest.tmp"
5505 mv "conftest.tmp" "conftest.in"
5506 cp "conftest.in" "conftest.nl"
5507 $as_echo 'EGREP' >> "conftest.nl"
5508 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5510 as_fn_arith $ac_count + 1 && ac_count=$as_val
5511 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5512 # Best one so far, save it but keep looking for a better one
5513 ac_cv_path_EGREP="$ac_path_EGREP"
5514 ac_path_EGREP_max=$ac_count
5516 # 10*(2^10) chars as input seems more than enough
5517 test $ac_count -gt 10 && break
5518 done
5519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5520 esac
5522 $ac_path_EGREP_found && break 3
5523 done
5524 done
5525 done
5526 IFS=$as_save_IFS
5527 if test -z "$ac_cv_path_EGREP"; then
5528 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5530 else
5531 ac_cv_path_EGREP=$EGREP
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5537 $as_echo "$ac_cv_path_EGREP" >&6; }
5538 EGREP="$ac_cv_path_EGREP"
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5542 $as_echo_n "checking for ANSI C header files... " >&6; }
5543 if test "${ac_cv_header_stdc+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 #include <stdlib.h>
5549 #include <stdarg.h>
5550 #include <string.h>
5551 #include <float.h>
5554 main ()
5558 return 0;
5560 _ACEOF
5561 if ac_fn_c_try_compile "$LINENO"; then :
5562 ac_cv_header_stdc=yes
5563 else
5564 ac_cv_header_stdc=no
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 if test $ac_cv_header_stdc = yes; then
5569 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 #include <string.h>
5574 _ACEOF
5575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5576 $EGREP "memchr" >/dev/null 2>&1; then :
5578 else
5579 ac_cv_header_stdc=no
5581 rm -f conftest*
5585 if test $ac_cv_header_stdc = yes; then
5586 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 #include <stdlib.h>
5591 _ACEOF
5592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5593 $EGREP "free" >/dev/null 2>&1; then :
5595 else
5596 ac_cv_header_stdc=no
5598 rm -f conftest*
5602 if test $ac_cv_header_stdc = yes; then
5603 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5604 if test "$cross_compiling" = yes; then :
5606 else
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #include <ctype.h>
5610 #include <stdlib.h>
5611 #if ((' ' & 0x0FF) == 0x020)
5612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5614 #else
5615 # define ISLOWER(c) \
5616 (('a' <= (c) && (c) <= 'i') \
5617 || ('j' <= (c) && (c) <= 'r') \
5618 || ('s' <= (c) && (c) <= 'z'))
5619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5620 #endif
5622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5624 main ()
5626 int i;
5627 for (i = 0; i < 256; i++)
5628 if (XOR (islower (i), ISLOWER (i))
5629 || toupper (i) != TOUPPER (i))
5630 return 2;
5631 return 0;
5633 _ACEOF
5634 if ac_fn_c_try_run "$LINENO"; then :
5636 else
5637 ac_cv_header_stdc=no
5639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5640 conftest.$ac_objext conftest.beam conftest.$ac_ext
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5646 $as_echo "$ac_cv_header_stdc" >&6; }
5647 if test $ac_cv_header_stdc = yes; then
5649 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5653 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5654 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5655 inttypes.h stdint.h unistd.h
5656 do :
5657 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5658 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5660 eval as_val=\$$as_ac_Header
5661 if test "x$as_val" = x""yes; then :
5662 cat >>confdefs.h <<_ACEOF
5663 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5664 _ACEOF
5668 done
5671 for ac_header in sys/ipc.h sys/shm.h \
5672 sys/mmap.h sys/mman.h sysexits.h \
5673 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5675 do :
5676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5677 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5678 eval as_val=\$$as_ac_Header
5679 if test "x$as_val" = x""yes; then :
5680 cat >>confdefs.h <<_ACEOF
5681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5682 _ACEOF
5686 done
5689 for ac_header in sys/mount.h
5690 do :
5691 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5693 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5694 cat >>confdefs.h <<_ACEOF
5695 #define HAVE_SYS_MOUNT_H 1
5696 _ACEOF
5700 done
5703 ac_header_dirent=no
5704 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5705 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5707 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 #include <sys/types.h>
5714 #include <$ac_hdr>
5717 main ()
5719 if ((DIR *) 0)
5720 return 0;
5722 return 0;
5724 _ACEOF
5725 if ac_fn_c_try_compile "$LINENO"; then :
5726 eval "$as_ac_Header=yes"
5727 else
5728 eval "$as_ac_Header=no"
5730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 eval ac_res=\$$as_ac_Header
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5734 $as_echo "$ac_res" >&6; }
5735 eval as_val=\$$as_ac_Header
5736 if test "x$as_val" = x""yes; then :
5737 cat >>confdefs.h <<_ACEOF
5738 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5739 _ACEOF
5741 ac_header_dirent=$ac_hdr; break
5744 done
5745 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5746 if test $ac_header_dirent = dirent.h; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5748 $as_echo_n "checking for library containing opendir... " >&6; }
5749 if test "${ac_cv_search_opendir+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 ac_func_search_save_LIBS=$LIBS
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5756 /* Override any GCC internal prototype to avoid an error.
5757 Use char because int might match the return type of a GCC
5758 builtin and then its argument prototype would still apply. */
5759 #ifdef __cplusplus
5760 extern "C"
5761 #endif
5762 char opendir ();
5764 main ()
5766 return opendir ();
5768 return 0;
5770 _ACEOF
5771 for ac_lib in '' dir; do
5772 if test -z "$ac_lib"; then
5773 ac_res="none required"
5774 else
5775 ac_res=-l$ac_lib
5776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5778 if ac_fn_c_try_link "$LINENO"; then :
5779 ac_cv_search_opendir=$ac_res
5781 rm -f core conftest.err conftest.$ac_objext \
5782 conftest$ac_exeext
5783 if test "${ac_cv_search_opendir+set}" = set; then :
5784 break
5786 done
5787 if test "${ac_cv_search_opendir+set}" = set; then :
5789 else
5790 ac_cv_search_opendir=no
5792 rm conftest.$ac_ext
5793 LIBS=$ac_func_search_save_LIBS
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5796 $as_echo "$ac_cv_search_opendir" >&6; }
5797 ac_res=$ac_cv_search_opendir
5798 if test "$ac_res" != no; then :
5799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5803 else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5805 $as_echo_n "checking for library containing opendir... " >&6; }
5806 if test "${ac_cv_search_opendir+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 ac_func_search_save_LIBS=$LIBS
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5813 /* Override any GCC internal prototype to avoid an error.
5814 Use char because int might match the return type of a GCC
5815 builtin and then its argument prototype would still apply. */
5816 #ifdef __cplusplus
5817 extern "C"
5818 #endif
5819 char opendir ();
5821 main ()
5823 return opendir ();
5825 return 0;
5827 _ACEOF
5828 for ac_lib in '' x; do
5829 if test -z "$ac_lib"; then
5830 ac_res="none required"
5831 else
5832 ac_res=-l$ac_lib
5833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5835 if ac_fn_c_try_link "$LINENO"; then :
5836 ac_cv_search_opendir=$ac_res
5838 rm -f core conftest.err conftest.$ac_objext \
5839 conftest$ac_exeext
5840 if test "${ac_cv_search_opendir+set}" = set; then :
5841 break
5843 done
5844 if test "${ac_cv_search_opendir+set}" = set; then :
5846 else
5847 ac_cv_search_opendir=no
5849 rm conftest.$ac_ext
5850 LIBS=$ac_func_search_save_LIBS
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5853 $as_echo "$ac_cv_search_opendir" >&6; }
5854 ac_res=$ac_cv_search_opendir
5855 if test "$ac_res" != no; then :
5856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5863 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5864 if test "${ac_cv_header_stat_broken+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 #include <sys/types.h>
5870 #include <sys/stat.h>
5872 #if defined S_ISBLK && defined S_IFDIR
5873 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5874 #endif
5876 #if defined S_ISBLK && defined S_IFCHR
5877 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5878 #endif
5880 #if defined S_ISLNK && defined S_IFREG
5881 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5882 #endif
5884 #if defined S_ISSOCK && defined S_IFREG
5885 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5886 #endif
5888 _ACEOF
5889 if ac_fn_c_try_compile "$LINENO"; then :
5890 ac_cv_header_stat_broken=no
5891 else
5892 ac_cv_header_stat_broken=yes
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5897 $as_echo "$ac_cv_header_stat_broken" >&6; }
5898 if test $ac_cv_header_stat_broken = yes; then
5900 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5905 $as_echo_n "checking for ANSI C header files... " >&6; }
5906 if test "${ac_cv_header_stdc+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5911 #include <stdlib.h>
5912 #include <stdarg.h>
5913 #include <string.h>
5914 #include <float.h>
5917 main ()
5921 return 0;
5923 _ACEOF
5924 if ac_fn_c_try_compile "$LINENO"; then :
5925 ac_cv_header_stdc=yes
5926 else
5927 ac_cv_header_stdc=no
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 if test $ac_cv_header_stdc = yes; then
5932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5935 #include <string.h>
5937 _ACEOF
5938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5939 $EGREP "memchr" >/dev/null 2>&1; then :
5941 else
5942 ac_cv_header_stdc=no
5944 rm -f conftest*
5948 if test $ac_cv_header_stdc = yes; then
5949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 #include <stdlib.h>
5954 _ACEOF
5955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5956 $EGREP "free" >/dev/null 2>&1; then :
5958 else
5959 ac_cv_header_stdc=no
5961 rm -f conftest*
5965 if test $ac_cv_header_stdc = yes; then
5966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5967 if test "$cross_compiling" = yes; then :
5969 else
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972 #include <ctype.h>
5973 #include <stdlib.h>
5974 #if ((' ' & 0x0FF) == 0x020)
5975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5977 #else
5978 # define ISLOWER(c) \
5979 (('a' <= (c) && (c) <= 'i') \
5980 || ('j' <= (c) && (c) <= 'r') \
5981 || ('s' <= (c) && (c) <= 'z'))
5982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5983 #endif
5985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5987 main ()
5989 int i;
5990 for (i = 0; i < 256; i++)
5991 if (XOR (islower (i), ISLOWER (i))
5992 || toupper (i) != TOUPPER (i))
5993 return 2;
5994 return 0;
5996 _ACEOF
5997 if ac_fn_c_try_run "$LINENO"; then :
5999 else
6000 ac_cv_header_stdc=no
6002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6003 conftest.$ac_objext conftest.beam conftest.$ac_ext
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6009 $as_echo "$ac_cv_header_stdc" >&6; }
6010 if test $ac_cv_header_stdc = yes; then
6012 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6017 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6018 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6023 #include <sys/types.h>
6024 #include <sys/wait.h>
6025 #ifndef WEXITSTATUS
6026 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6027 #endif
6028 #ifndef WIFEXITED
6029 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6030 #endif
6033 main ()
6035 int s;
6036 wait (&s);
6037 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6039 return 0;
6041 _ACEOF
6042 if ac_fn_c_try_compile "$LINENO"; then :
6043 ac_cv_header_sys_wait_h=yes
6044 else
6045 ac_cv_header_sys_wait_h=no
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6050 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6051 if test $ac_cv_header_sys_wait_h = yes; then
6053 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6058 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6059 if test "${ac_cv_header_time+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064 #include <sys/types.h>
6065 #include <sys/time.h>
6066 #include <time.h>
6069 main ()
6071 if ((struct tm *) 0)
6072 return 0;
6074 return 0;
6076 _ACEOF
6077 if ac_fn_c_try_compile "$LINENO"; then :
6078 ac_cv_header_time=yes
6079 else
6080 ac_cv_header_time=no
6082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6085 $as_echo "$ac_cv_header_time" >&6; }
6086 if test $ac_cv_header_time = yes; then
6088 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6092 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6093 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6095 cat >>confdefs.h <<_ACEOF
6096 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6097 _ACEOF
6100 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6105 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6106 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6108 cat >>confdefs.h <<_ACEOF
6109 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6110 _ACEOF
6113 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6115 else
6116 case " $LIBOBJS " in
6117 *" fileblocks.$ac_objext "* ) ;;
6118 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6120 esac
6125 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6126 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6128 cat >>confdefs.h <<_ACEOF
6129 #define HAVE_STRUCT_STAT_ST_RDEV 1
6130 _ACEOF
6133 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6139 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6140 if test "${ac_cv_struct_tm+set}" = set; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6145 #include <sys/types.h>
6146 #include <time.h>
6149 main ()
6151 struct tm tm;
6152 int *p = &tm.tm_sec;
6153 return !p;
6155 return 0;
6157 _ACEOF
6158 if ac_fn_c_try_compile "$LINENO"; then :
6159 ac_cv_struct_tm=time.h
6160 else
6161 ac_cv_struct_tm=sys/time.h
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6166 $as_echo "$ac_cv_struct_tm" >&6; }
6167 if test $ac_cv_struct_tm = sys/time.h; then
6169 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6173 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6174 #include <$ac_cv_struct_tm>
6177 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6179 cat >>confdefs.h <<_ACEOF
6180 #define HAVE_STRUCT_TM_TM_ZONE 1
6181 _ACEOF
6186 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6188 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6190 else
6191 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6193 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6194 ac_have_decl=1
6195 else
6196 ac_have_decl=0
6199 cat >>confdefs.h <<_ACEOF
6200 #define HAVE_DECL_TZNAME $ac_have_decl
6201 _ACEOF
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6204 $as_echo_n "checking for tzname... " >&6; }
6205 if test "${ac_cv_var_tzname+set}" = set; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210 #include <time.h>
6211 #if !HAVE_DECL_TZNAME
6212 extern char *tzname[];
6213 #endif
6216 main ()
6218 return tzname[0][0];
6220 return 0;
6222 _ACEOF
6223 if ac_fn_c_try_link "$LINENO"; then :
6224 ac_cv_var_tzname=yes
6225 else
6226 ac_cv_var_tzname=no
6228 rm -f core conftest.err conftest.$ac_objext \
6229 conftest$ac_exeext conftest.$ac_ext
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6232 $as_echo "$ac_cv_var_tzname" >&6; }
6233 if test $ac_cv_var_tzname = yes; then
6235 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6240 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6241 if test "x$ac_cv_type_off_t" = x""yes; then :
6243 else
6245 cat >>confdefs.h <<_ACEOF
6246 #define off_t long int
6247 _ACEOF
6251 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6252 if test "x$ac_cv_type_pid_t" = x""yes; then :
6254 else
6256 cat >>confdefs.h <<_ACEOF
6257 #define pid_t int
6258 _ACEOF
6262 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6263 if test "x$ac_cv_type_size_t" = x""yes; then :
6265 else
6267 cat >>confdefs.h <<_ACEOF
6268 #define size_t unsigned int
6269 _ACEOF
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6274 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6275 if test "${ac_cv_type_uid_t+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 #include <sys/types.h>
6282 _ACEOF
6283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6284 $EGREP "uid_t" >/dev/null 2>&1; then :
6285 ac_cv_type_uid_t=yes
6286 else
6287 ac_cv_type_uid_t=no
6289 rm -f conftest*
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6293 $as_echo "$ac_cv_type_uid_t" >&6; }
6294 if test $ac_cv_type_uid_t = no; then
6296 $as_echo "#define uid_t int" >>confdefs.h
6299 $as_echo "#define gid_t int" >>confdefs.h
6304 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6305 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6307 cat >>confdefs.h <<_ACEOF
6308 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6309 _ACEOF
6315 # Look for some functions
6316 for ac_func in getpagesize kqueue statfs statvfs \
6317 clone kse_create rfork_thread thr_create sa_register \
6318 getcontext makecontext setcontext sigaltstack swapcontext
6319 do :
6320 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6321 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6322 eval as_val=\$$as_ac_var
6323 if test "x$as_val" = x""yes; then :
6324 cat >>confdefs.h <<_ACEOF
6325 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6326 _ACEOF
6329 done
6335 for ac_header in $ac_header_list
6336 do :
6337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6338 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6340 eval as_val=\$$as_ac_Header
6341 if test "x$as_val" = x""yes; then :
6342 cat >>confdefs.h <<_ACEOF
6343 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6344 _ACEOF
6348 done
6357 for ac_func in getpagesize
6358 do :
6359 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6360 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6361 cat >>confdefs.h <<_ACEOF
6362 #define HAVE_GETPAGESIZE 1
6363 _ACEOF
6366 done
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6369 $as_echo_n "checking for working mmap... " >&6; }
6370 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 if test "$cross_compiling" = yes; then :
6374 ac_cv_func_mmap_fixed_mapped=no
6375 else
6376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6377 /* end confdefs.h. */
6378 $ac_includes_default
6379 /* malloc might have been renamed as rpl_malloc. */
6380 #undef malloc
6382 /* Thanks to Mike Haertel and Jim Avera for this test.
6383 Here is a matrix of mmap possibilities:
6384 mmap private not fixed
6385 mmap private fixed at somewhere currently unmapped
6386 mmap private fixed at somewhere already mapped
6387 mmap shared not fixed
6388 mmap shared fixed at somewhere currently unmapped
6389 mmap shared fixed at somewhere already mapped
6390 For private mappings, we should verify that changes cannot be read()
6391 back from the file, nor mmap's back from the file at a different
6392 address. (There have been systems where private was not correctly
6393 implemented like the infamous i386 svr4.0, and systems where the
6394 VM page cache was not coherent with the file system buffer cache
6395 like early versions of FreeBSD and possibly contemporary NetBSD.)
6396 For shared mappings, we should conversely verify that changes get
6397 propagated back to all the places they're supposed to be.
6399 Grep wants private fixed already mapped.
6400 The main things grep needs to know about mmap are:
6401 * does it exist and is it safe to write into the mmap'd area
6402 * how to use it (BSD variants) */
6404 #include <fcntl.h>
6405 #include <sys/mman.h>
6407 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6408 char *malloc ();
6409 #endif
6411 /* This mess was copied from the GNU getpagesize.h. */
6412 #ifndef HAVE_GETPAGESIZE
6413 # ifdef _SC_PAGESIZE
6414 # define getpagesize() sysconf(_SC_PAGESIZE)
6415 # else /* no _SC_PAGESIZE */
6416 # ifdef HAVE_SYS_PARAM_H
6417 # include <sys/param.h>
6418 # ifdef EXEC_PAGESIZE
6419 # define getpagesize() EXEC_PAGESIZE
6420 # else /* no EXEC_PAGESIZE */
6421 # ifdef NBPG
6422 # define getpagesize() NBPG * CLSIZE
6423 # ifndef CLSIZE
6424 # define CLSIZE 1
6425 # endif /* no CLSIZE */
6426 # else /* no NBPG */
6427 # ifdef NBPC
6428 # define getpagesize() NBPC
6429 # else /* no NBPC */
6430 # ifdef PAGESIZE
6431 # define getpagesize() PAGESIZE
6432 # endif /* PAGESIZE */
6433 # endif /* no NBPC */
6434 # endif /* no NBPG */
6435 # endif /* no EXEC_PAGESIZE */
6436 # else /* no HAVE_SYS_PARAM_H */
6437 # define getpagesize() 8192 /* punt totally */
6438 # endif /* no HAVE_SYS_PARAM_H */
6439 # endif /* no _SC_PAGESIZE */
6441 #endif /* no HAVE_GETPAGESIZE */
6444 main ()
6446 char *data, *data2, *data3;
6447 const char *cdata2;
6448 int i, pagesize;
6449 int fd, fd2;
6451 pagesize = getpagesize ();
6453 /* First, make a file with some known garbage in it. */
6454 data = (char *) malloc (pagesize);
6455 if (!data)
6456 return 1;
6457 for (i = 0; i < pagesize; ++i)
6458 *(data + i) = rand ();
6459 umask (0);
6460 fd = creat ("conftest.mmap", 0600);
6461 if (fd < 0)
6462 return 2;
6463 if (write (fd, data, pagesize) != pagesize)
6464 return 3;
6465 close (fd);
6467 /* Next, check that the tail of a page is zero-filled. File must have
6468 non-zero length, otherwise we risk SIGBUS for entire page. */
6469 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6470 if (fd2 < 0)
6471 return 4;
6472 cdata2 = "";
6473 if (write (fd2, cdata2, 1) != 1)
6474 return 5;
6475 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6476 if (data2 == MAP_FAILED)
6477 return 6;
6478 for (i = 0; i < pagesize; ++i)
6479 if (*(data2 + i))
6480 return 7;
6481 close (fd2);
6482 if (munmap (data2, pagesize))
6483 return 8;
6485 /* Next, try to mmap the file at a fixed address which already has
6486 something else allocated at it. If we can, also make sure that
6487 we see the same garbage. */
6488 fd = open ("conftest.mmap", O_RDWR);
6489 if (fd < 0)
6490 return 9;
6491 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6492 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6493 return 10;
6494 for (i = 0; i < pagesize; ++i)
6495 if (*(data + i) != *(data2 + i))
6496 return 11;
6498 /* Finally, make sure that changes to the mapped area do not
6499 percolate back to the file as seen by read(). (This is a bug on
6500 some variants of i386 svr4.0.) */
6501 for (i = 0; i < pagesize; ++i)
6502 *(data2 + i) = *(data2 + i) + 1;
6503 data3 = (char *) malloc (pagesize);
6504 if (!data3)
6505 return 12;
6506 if (read (fd, data3, pagesize) != pagesize)
6507 return 13;
6508 for (i = 0; i < pagesize; ++i)
6509 if (*(data + i) != *(data3 + i))
6510 return 14;
6511 close (fd);
6512 return 0;
6514 _ACEOF
6515 if ac_fn_c_try_run "$LINENO"; then :
6516 ac_cv_func_mmap_fixed_mapped=yes
6517 else
6518 ac_cv_func_mmap_fixed_mapped=no
6520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6521 conftest.$ac_objext conftest.beam conftest.$ac_ext
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6526 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6527 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6529 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6532 rm -f conftest.mmap conftest.txt
6537 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6538 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6539 aros_config_ldflags=""
6541 aros_shared_default=yes
6543 aros_shared_cflags="-fPIC"
6544 aros_shared_aflags=""
6545 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6546 aros_kernel_ldflags="-Wl,-rpath,./lib"
6548 aros_target_ar_flags="cr"
6549 aros_target_nm_flags="-C -ul"
6550 aros_target_strip_flags="--strip-unneeded -R.comment"
6552 aros_compiler_libs=
6553 aros_arch_libs=
6555 aros_target_genmap="-Wl,-Map -Xlinker"
6557 # Native flavour stuff
6558 aros_serial_debug="0"
6560 # Palm native flavour stuff
6561 aros_palm_debug_hack="0"
6563 # Unix flavour stuff
6564 aros_nesting_supervisor="0"
6566 # Collect-aros stuff: "-ius" to ignore undefined symbols
6567 ignore_undefined_symbols=""
6569 #-----------------------------------------------------------------------------
6572 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6573 # it switched on by default, and we use the host compiler, so it compiles AROS
6574 # code with this enabled resulting in link failures as we don't have support
6575 # for it.
6577 # We use two methods to disable it. For the host compiler (used to compile
6578 # some hosted modules), we test to see if the compiler supports stack
6579 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6580 # work on all platforms.
6582 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6583 # (this is done unconditionally, as it should have no effect on compilers
6584 # without the stack protection feature). This may be specific to the way that
6585 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6586 # strong enough to disable it in a generic way though, so we'll live with it
6587 # until another vendor ships GCC with it enabled in a different way, and deal
6588 # with it then.
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6592 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6593 save_cflags="$CFLAGS"
6594 CFLAGS="$CFLAGS -fno-stack-protector"
6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6596 /* end confdefs.h. */
6599 main ()
6603 return 0;
6605 _ACEOF
6606 if ac_fn_c_try_compile "$LINENO"; then :
6607 use_no_stack_protector="yes"
6608 else
6609 use_no_stack_protector="no"
6611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6613 $as_echo "$use_no_stack_protector" >&6; }
6614 if test "x-$use_no_stack_protector" = "x-yes" ; then
6615 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6617 CFLAGS="$save_cflags"
6619 #-----------------------------------------------------------------------------
6621 # Disable pointer-signedness warnings if the compiler recognises the option
6622 # (this only works for the host compiler at the moment)
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6625 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6626 save_cflags="$CFLAGS"
6627 CFLAGS="$CFLAGS -Wno-pointer-sign"
6628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629 /* end confdefs.h. */
6632 main ()
6636 return 0;
6638 _ACEOF
6639 if ac_fn_c_try_compile "$LINENO"; then :
6640 use_no_sign_warning="yes"
6641 else
6642 use_no_sign_warning="no"
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6646 $as_echo "$use_no_sign_warning" >&6; }
6647 if test "x-$use_no_sign_warning" = "x-yes" ; then
6648 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6650 CFLAGS="$save_cflags"
6652 #-----------------------------------------------------------------------------
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6655 $as_echo_n "checking for type of build... " >&6; }
6656 # Check whether --enable-build_type was given.
6657 if test "${enable_build_type+set}" = set; then :
6658 enableval=$enable_build_type; build_type=$enableval
6659 else
6660 build_type="personal"
6664 if test "$build_type" = "nightly"; then
6665 build_type_string="NIGHTLY"
6666 elif test "$build_type" = "snapshot"; then
6667 build_type_string="SNAPSHOT"
6668 elif test "$build_type" = "milestone"; then
6669 build_type_string="MILESTONE"
6670 elif test "$build_type" = "release"; then
6671 build_type_string="RELEASE"
6672 else
6673 build_type_string="PERSONAL"
6674 build_type="personal"
6677 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6680 $as_echo "$build_type" >&6; }
6682 #-----------------------------------------------------------------------------
6683 all_debug_types="messages stack modules mungwall symbols"
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6686 $as_echo_n "checking which debug types to enable... " >&6; }
6687 # Check whether --enable-debug was given.
6688 if test "${enable_debug+set}" = set; then :
6689 enableval=$enable_debug; debug="$enableval"
6690 else
6691 debug=""
6695 if test "$debug" = "" -o "$debug" = "no"; then
6696 debug="none"
6697 elif test "$debug" = "yes"; then
6698 debug="all"
6701 if test "$debug" = "all" ; then
6702 debug="messages stack modules symbols"
6703 for d in $all_debug_types; do
6704 export aros_${d}_debug="1"
6705 done
6706 else
6707 for d in $all_debug_types; do
6708 export aros_${d}_debug="0"
6709 done
6712 if test "$debug" != "none"; then
6713 debug=`echo $debug | sed s/,/\ /g`
6714 for d in $debug; do
6715 found="0"
6716 for d2 in $all_debug_types; do
6717 if test "$d2" = "$d"; then
6718 found="1"
6719 break
6721 done
6722 if test "$found" = "0"; then
6723 as_fn_error "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6725 export aros_${d}_debug="1"
6726 done
6727 aros_debug="yes"
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6730 $as_echo "$debug" >&6; }
6732 if test "$aros_messages_debug" = "1"; then
6733 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6734 else
6735 aros_messages_debug=""
6737 if test "$aros_symbols_debug" = "1"; then
6738 aros_symbols_debug="-g"
6739 else
6740 aros_symbols_debug=""
6743 # These are the flags to pass when compiling debugged programs
6744 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6745 aros_debug_aflags=""
6746 aros_debug_ldflags="$aros_symbols_debug"
6748 aros_crosstools="no"
6750 #-----------------------------------------------------------------------------
6751 # Checking if we should build crosstools..
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6753 $as_echo_n "checking whether to build crosstools... " >&6; }
6754 # Check whether --enable-crosstools was given.
6755 if test "${enable_crosstools+set}" = set; then :
6756 enableval=$enable_crosstools; crosstools="$enableval"
6757 else
6758 crosstools="no"
6761 if test "$crosstools" != "" -a "$crosstools" != "no"; then
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6763 $as_echo "yes" >&6; }
6764 aros_crosstools="yes"
6765 else
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6767 $as_echo "no" >&6; }
6770 #-----------------------------------------------------------------------------
6771 # Checking for distcc and ccache.
6773 # Always apply the transforms in this particular order. Basically you should
6774 # always run 'ccache distcc compiler' in that order for the best performance.
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6777 $as_echo_n "checking whether to enable distcc... " >&6; }
6778 # Check whether --enable-distcc was given.
6779 if test "${enable_distcc+set}" = set; then :
6780 enableval=$enable_distcc; distcc="$enableval"
6781 else
6782 distcc="no"
6785 if test "$distcc" != "" -a "$distcc" != "no"; then
6786 # AC_CHECK_PROG will print out the result in this case
6787 # Extract the first word of "distcc", so it can be a program name with args.
6788 set dummy distcc; ac_word=$2
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6790 $as_echo_n "checking for $ac_word... " >&6; }
6791 if test "${ac_cv_path_DISTCC+set}" = set; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 case $DISTCC in
6795 [\\/]* | ?:[\\/]*)
6796 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800 for as_dir in $PATH
6802 IFS=$as_save_IFS
6803 test -z "$as_dir" && as_dir=.
6804 for ac_exec_ext in '' $ac_executable_extensions; do
6805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6806 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6808 break 2
6810 done
6811 done
6812 IFS=$as_save_IFS
6814 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6816 esac
6818 DISTCC=$ac_cv_path_DISTCC
6819 if test -n "$DISTCC"; then
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6821 $as_echo "$DISTCC" >&6; }
6822 else
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6824 $as_echo "no" >&6; }
6828 else
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6830 $as_echo "no" >&6; }
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6834 $as_echo_n "checking whether to enable ccache... " >&6; }
6835 # Check whether --enable-ccache was given.
6836 if test "${enable_ccache+set}" = set; then :
6837 enableval=$enable_ccache; ccache="$enableval"
6838 else
6839 ccache="no"
6842 if test "$ccache" != "" -a "$ccache" != "no"; then
6843 # AC_CHECK_PROG will print out the result in this case
6844 # Extract the first word of "ccache", so it can be a program name with args.
6845 set dummy ccache; ac_word=$2
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6849 $as_echo_n "(cached) " >&6
6850 else
6851 if test -n "$CCACHE"; then
6852 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6857 IFS=$as_save_IFS
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_prog_CCACHE="ccache"
6862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863 break 2
6865 done
6866 done
6867 IFS=$as_save_IFS
6871 CCACHE=$ac_cv_prog_CCACHE
6872 if test -n "$CCACHE"; then
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
6874 $as_echo "$CCACHE" >&6; }
6875 else
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6883 $as_echo "no" >&6; }
6886 #-----------------------------------------------------------------------------
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific gcc version to use" >&5
6888 $as_echo_n "checking what specific gcc version to use... " >&6; }
6890 # Check whether --with-gcc-version was given.
6891 if test "${with_gcc_version+set}" = set; then :
6892 withval=$with_gcc_version; target_tool_version="$withval"
6893 else
6894 target_tool_version="default"
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
6898 $as_echo "$target_tool_version" >&6; }
6900 #-----------------------------------------------------------------------------
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
6902 $as_echo_n "checking what optimization flags to use... " >&6; }
6904 # Check whether --with-optimization was given.
6905 if test "${with_optimization+set}" = set; then :
6906 withval=$with_optimization; optimization="$withval"
6907 else
6908 optimization="unknown"
6911 if test "$optimization" = "unknown"; then
6912 if test "$debug" != "none"; then
6913 optimization="-O0"
6914 else
6915 optimization="-O2"
6918 aros_config_cflags="$aros_config_cflags $optimization"
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
6920 $as_echo "$optimization" >&6; }
6922 #-----------------------------------------------------------------------------
6923 if test "$target_os" = "ios"; then
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
6926 $as_echo_n "checking XCode path... " >&6; }
6928 # Check whether --with-xcode-path was given.
6929 if test "${with_xcode_path+set}" = set; then :
6930 withval=$with_xcode_path; aros_xcode_path="$withval"
6931 else
6932 aros_xcode_path="/Developer"
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
6936 $as_echo "$aros_xcode_path" >&6; }
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
6939 $as_echo_n "checking for minimum supported iOS version... " >&6; }
6941 # Check whether --with-ios-version was given.
6942 if test "${with_ios_version+set}" = set; then :
6943 withval=$with_ios_version; aros_ios_version="$withval"
6944 else
6945 aros_ios_version="2.0"
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
6949 $as_echo "$aros_ios_version" >&6; }
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
6952 $as_echo_n "checking what iOS SDK version to use... " >&6; }
6954 # Check whether --with-ios-sdk was given.
6955 if test "${with_ios_sdk+set}" = set; then :
6956 withval=$with_ios_sdk; aros_ios_sdk="$withval"
6957 else
6958 aros_ios_sdk="4.1"
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
6962 $as_echo "$aros_ios_sdk" >&6; }
6966 #-----------------------------------------------------------------------------
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
6968 $as_echo_n "checking what target variant to enable... " >&6; }
6969 # Check whether --enable-target_variant was given.
6970 if test "${enable_target_variant+set}" = set; then :
6971 enableval=$enable_target_variant; target_variant=$enableval
6972 else
6973 target_variant="none"
6976 if test "$target_variant" = "none"; then
6977 aros_target_variant=""
6978 aros_target_suffix=""
6979 else
6980 aros_target_variant="$target_variant"
6981 aros_target_suffix="-$target_variant"
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6984 $as_echo "$enableval" >&6; }
6986 target_bootloader="none"
6988 #-----------------------------------------------------------------------------
6989 # This is the target configuration switch.
6990 case "$target_os" in
6991 linux*)
6992 aros_target_arch="linux"
6993 case "$target_cpu" in
6994 *m68k*)
6995 aros_target_cpu="m68k"
6996 aros_object_format="m68kelf"
6997 aros_flavour="emulcompat"
6998 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
6999 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7000 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7001 gcc_target_cpu="mc68000"
7003 *i?86*)
7004 aros_target_cpu="i386"
7005 aros_object_format="elf_i386"
7006 aros_flavour="emulation"
7007 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7008 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7009 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7010 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7011 aros_config_ldflags="-m32 -march=i486"
7012 aros_kernel_ldflags="-melf_i386"
7013 aros_default_wbdepth=8
7014 gcc_target_cpu="i386"
7016 *x86_64*)
7017 aros_target_cpu="x86_64"
7018 aros_object_format="elf_x86_64"
7019 aros_flavour="emulation"
7020 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7021 aros_config_cflags="$aros_config_cflags -mno-red-zone"
7022 aros_default_wbdepth=8
7023 gcc_target_cpu="x86_64"
7025 *powerpc*)
7026 aros_target_cpu="ppc"
7027 aros_object_format="elf32ppc"
7028 aros_flavour="emulation"
7029 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7030 aros_default_wbdepth=8
7031 gcc_target_cpu="ppc"
7033 # TODO
7034 # Same as powerpc, but I need this for the nightly build to work again.
7035 # Actually, the nightly should be made working with powerpc target.
7036 # That just was too much work for the moment, another week or two.
7037 *ppc*)
7038 aros_target_cpu="ppc"
7039 aros_object_format="elf32ppc"
7040 aros_flavour="emulation"
7041 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7042 aros_default_wbdepth=8
7043 gcc_target_cpu="ppc"
7045 *arm*)
7046 aros_target_cpu="arm"
7047 aros_object_format="armelf_linux_eabi"
7048 aros_flavour="emulation"
7049 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7050 gcc_target_cpu="arm"
7051 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7052 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7055 as_fn_error "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7057 esac
7061 aros_target_arch="pc"
7062 aros_shared_default="no"
7063 target_bootloader="grub2"
7064 case "$target_cpu" in
7065 *i?86*)
7066 aros_target_cpu="i386"
7069 if test "$aros_object_format" = "" ; then
7070 aros_object_format="elf_i386"
7072 aros_flavour="standalone"
7073 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7074 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7075 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7076 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7077 aros_config_ldflags="-m32 -march=i486"
7078 aros_kernel_ldflags="-melf_i386"
7079 aros_default_wbwidth=640
7080 aros_default_wbheight=480
7081 gcc_target_cpu="i386"
7083 *x86_64*)
7084 aros_target_cpu="x86_64"
7085 aros_serial_debug=1
7086 if test "$aros_object_format" = "" ; then
7087 aros_object_format="elf_x86_64"
7089 aros_flavour="standalone"
7090 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7091 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
7092 aros_kernel_ldflags=""
7093 aros_default_wbwidth=640
7094 aros_default_wbheight=480
7095 gcc_target_cpu="x86_64"
7098 as_fn_error "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7100 esac
7103 prep)
7104 aros_target_arch="prep"
7105 aros_shared_default="no"
7106 aros_target_cpu="ppc"
7107 aros_object_format="elf32ppc"
7108 aros_flavour="ppcnative"
7109 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7110 aros_kernel_ldflags=""
7111 aros_default_wbwidth=640
7112 aros_default_wbheight=480
7113 gcc_target_cpu="ppc"
7116 freebsd*)
7117 aros_target_arch="freebsd"
7118 aros_target_cpu="i386"
7119 aros_flavour="emulation"
7120 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7121 gcc_target_cpu="i386"
7123 aros_target_strip_flags="-x"
7126 darwin*)
7127 aros_target_arch="darwin"
7128 aros_flavour="emulation"
7129 case "$target_cpu" in
7130 *i?86*)
7131 aros_target_cpu="i386"
7132 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7133 aros_kernel_cflags="$aros_kernel_cflags -m32"
7134 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
7135 aros_default_wbdepth=8
7136 gcc_target_cpu="i386"
7137 aros_object_format="elf_i386"
7138 aros_target_strip_flags="-x"
7139 aros_target_cc="i386-aros-gcc"
7140 aros_target_cxx="i386-aros-g++"
7141 aros_target_ld="i386-aros-ld"
7142 aros_target_as="i386-aros-as"
7143 aros_target_ar="i386-aros-ar"
7144 aros_target_ranlib="i386-aros-ranlib"
7145 aros_target_nm="i386-aros-nm"
7146 aros_target_strip="i386-aros-strip"
7147 aros_target_objcopy="i386-aros-objcopy"
7148 aros_target_objdump="i386-aros-objdump"
7149 target_tool_prefix="i686-apple-darwin10-"
7151 *x86_64*)
7152 aros_target_cpu="x86_64"
7153 aros_object_format="elf_x86_64"
7154 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7155 aros_kernel_cflags="$aros_kernel_cflags -m64"
7156 aros_kernel_ldflags="$aros_kernel_ldflags -m64"
7157 aros_default_wbdepth=8
7158 gcc_target_cpu="x86_64"
7159 aros_target_cc="x86_64-aros-gcc"
7160 aros_target_cxx="x86_64-aros-g++"
7161 aros_target_ld="x86_64-aros-ld"
7162 aros_target_as="x86_64-aros-as"
7163 aros_target_ar="x86_64-aros-ar"
7164 aros_target_ranlib="x86_64-aros-ranlib"
7165 aros_target_nm="x86_64-aros-nm"
7166 aros_target_strip="x86_64-aros-strip"
7167 aros_target_objcopy="x86_64-aros-objcopy"
7168 aros_target_objdump="x86_64-aros-objdump"
7169 target_tool_prefix="i686-apple-darwin10-"
7171 *ppc*)
7172 aros_target_cpu="ppc"
7173 aros_object_format="elf32_ppc"
7174 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7175 aros_default_wbdepth=8
7176 gcc_target_cpu="ppc"
7177 aros_target_cc="ppc-aros-gcc"
7178 aros_target_cxx="ppc-aros-g++"
7179 aros_target_ld="ppc-aros-ld"
7180 aros_target_as="ppc-aros-as"
7181 aros_target_ar="ppc-aros-ar"
7182 aros_target_ranlib="ppc-aros-ranlib"
7183 aros_target_nm="ppc-aros-nm"
7184 aros_target_strip="ppc-aros-strip"
7185 aros_target_objcopy="ppc-aros-objcopy"
7186 aros_target_objdump="ppc-aros-objdump"
7187 target_tool_prefix="powerpc-apple-darwin10-"
7190 as_fn_error "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7192 esac
7195 ios*)
7196 aros_target_arch="ios"
7197 aros_flavour="emulation"
7198 # This is here because it may depend on iOS or SDK version
7199 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7200 case "$target_cpu" in
7201 *i?86*)
7202 aros_ios_platform="iPhoneSimulator"
7203 aros_target_cpu="i386"
7204 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7205 aros_default_wbdepth=8
7206 gcc_target_cpu="i386"
7207 aros_object_format="elf_i386"
7208 aros_target_strip_flags="-x"
7209 aros_target_cc="i386-aros-gcc"
7210 aros_target_cxx="i386-aros-g++"
7211 aros_target_ld="i386-aros-ld"
7212 aros_target_as="i386-aros-as"
7213 aros_target_ar="i386-aros-ar"
7214 aros_target_ranlib="i386-aros-ranlib"
7215 aros_target_nm="i386-aros-nm"
7216 aros_target_strip="i386-aros-strip"
7217 aros_target_objcopy="i386-aros-objcopy"
7218 aros_target_objdump="i386-aros-objdump"
7219 target_tool_prefix="i686-apple-darwin10-"
7220 target_tool_flags="-m32"
7222 *arm*)
7223 aros_ios_platform="iPhoneOS"
7224 aros_target_cpu="arm"
7225 aros_object_format="armelf_linux_eabi"
7226 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7227 aros_default_wbdepth=8
7228 gcc_target_cpu="arm"
7229 aros_kernel_ld="ld -arch armv6"
7230 aros_target_cc="arm-elf-gcc"
7231 aros_target_ld="arm-elf-ld"
7232 aros_target_as="arm-elf-as"
7233 aros_target_ar="arm-elf-ar"
7234 aros_target_ranlib="arm-elf-ranlib"
7235 aros_target_nm="arm-elf-nm"
7236 aros_target_strip="arm-elf-strip"
7237 aros_target_objcopy="arm-elf-objcopy"
7238 aros_target_objdump="arm-elf-objdump"
7239 target_tool_prefix="arm-apple-darwin10-"
7240 aros_default_wbwidth=320
7241 aros_default_wbheight=480
7242 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7245 as_fn_error "\"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" "$LINENO" 5
7247 esac
7248 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7249 target_tool_flags="$target_tool_flags --sysroot $aros_ios_sdk"
7252 dragonfly*)
7253 aros_target_arch="dragonfly"
7254 aros_flavour="emulation"
7255 case "$target_cpu" in
7256 *i?86*)
7257 aros_target_cpu="i386"
7258 aros_object_format="elf_i386"
7259 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7261 *x86_64*)
7262 aros_target_cpu="x86_64"
7263 aros_object_format="elf_x86_64"
7264 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7267 as_fn_error "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7269 esac
7272 netbsd*)
7273 aros_target_arch="netbsd"
7274 case "$target_cpu" in
7275 *m68k*)
7276 aros_target_cpu="m68k"
7277 aros_object_format="m68kelf"
7278 aros_flavour="emulcompat"
7279 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7280 gcc_target_cpu="mc68000"
7282 *i?86*)
7283 aros_target_cpu="i386"
7284 aros_object_format="elf_i386"
7285 aros_flavour="emulation"
7286 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7287 aros_default_wbdepth=8
7288 gcc_target_cpu="i386"
7291 as_fn_error "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7293 esac
7294 aros_target_genmap="-Wl,-M -Xlinker >"
7295 aros_flavour="emulation"
7296 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7299 openbsd*)
7300 aros_target_arch="openbsd"
7301 case "$target_cpu" in
7302 *i?86*)
7303 aros_target_cpu="i386"
7304 aros_object_format="elf_i386"
7305 aros_flavour="emulation"
7306 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7307 gcc_target_cpu="i386"
7310 as_fn_error "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7312 esac
7313 aros_target_genmap="-Wl,-M -Xlinker >"
7314 aros_target_nm_flags="-u"
7315 aros_flavour="emulation"
7318 solaris*)
7319 aros_target_arch="solaris"
7320 case "$target_cpu" in
7321 *i?86*)
7322 aros_target_cpu="i386"
7323 aros_object_format="elf_i386"
7324 aros_flavour="emulation"
7325 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7326 aros_default_wbdepth=8
7327 gcc_target_cpu="i386"
7329 *sparc*)
7330 aros_target_cpu="sparc"
7331 aros_object_format="elf_sparc"
7332 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7333 gcc_target_cpu="sparc"
7336 as_fn_error "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7338 esac
7339 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7340 aros_flavour="emulation"
7343 morphos*)
7344 aros_target_arch="morphos"
7345 aros_shared_default="no"
7346 aros_target_cpu="ppc"
7347 aros_object_format="elf_ppc"
7348 aros_flavour="nativecompat"
7349 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7350 gcc_target_cpu="ppc"
7353 sam440)
7354 aros_target_arch="sam440"
7355 aros_shared_default="no"
7356 aros_target_cpu="ppc"
7357 aros_object_format="elf32ppc"
7358 aros_flavour="ppcnative"
7359 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7360 aros_kernel_ldflags=""
7361 aros_default_wbwidth=1024
7362 aros_default_wbheight=768
7363 aros_default_wbdepth=24
7364 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7365 gcc_target_cpu="powerpc"
7368 efika)
7369 aros_target_arch="efika"
7370 aros_shared_default="no"
7371 aros_target_cpu="arm"
7372 aros_object_format="armelf_linux_eabi"
7373 aros_flavour="standalone"
7374 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7375 aros_kernel_ldflags=""
7376 aros_default_wbwidth=1024
7377 aros_default_wbheight=600
7378 aros_arch_libs="-laeabi"
7379 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7380 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7383 chrp)
7384 aros_target_arch="chrp"
7385 aros_shared_default="no"
7386 aros_target_cpu="ppc"
7387 aros_object_format="elf32ppc"
7388 aros_flavour="ppcnative"
7389 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7390 aros_kernel_ldflags=""
7391 aros_default_wbwidth=640
7392 aros_default_wbheight=480
7393 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7394 gcc_target_cpu="powerpc"
7395 case "$aros_target_variant" in
7396 efika)
7397 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7399 esac
7402 amiga*)
7403 aros_target_arch="amiga"
7404 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7405 aros_shared_default="no"
7407 case "$target_cpu" in
7408 *m68k-eabi)
7409 aros_target_cpu="m68k"
7410 aros_object_format="m68kelf"
7411 aros_flavour="standalone"
7412 gcc_target_cpu="mc68000"
7413 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
7414 aros_config_aflags="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
7415 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
7416 target_tool_prefix="m68k-elf-"
7417 aros_target_nostdlib_ldflags="" # We always need -lgcc
7418 aros_target_strip_flags="-R.comment"
7420 *m68k*)
7421 aros_target_cpu="m68k"
7422 aros_object_format="m68kelf"
7423 aros_flavour="standcompat"
7424 gcc_target_cpu="mc68000"
7425 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
7426 aros_config_aflags="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
7427 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
7428 target_tool_prefix="m68k-elf-"
7429 aros_target_nostdlib_ldflags="" # We always need -lgcc
7430 aros_target_strip_flags="-R.comment"
7432 *ppc*)
7433 aros_cpu="ppc"
7434 aros_flavour="native"
7435 gcc_target_cpu="ppc"
7438 as_fn_error "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7440 esac
7443 mingw*)
7444 aros_target_arch="mingw32"
7445 aros_shared_default="no"
7446 aros_flavour="emulation"
7447 aros_shared_cflags=""
7448 need_dlopen="no"
7449 rescomp="windres"
7450 case "$target_cpu" in
7451 *i?86*)
7452 aros_target_cpu="i386"
7453 aros_object_format="elf_i386"
7454 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7455 aros_default_wbdepth=8
7456 gcc_target_cpu="i386"
7457 aros_target_cc="i386-aros-gcc"
7458 aros_target_cxx="i386-aros-g++"
7459 aros_target_ld="i386-aros-ld"
7460 aros_target_as="i386-aros-as"
7461 aros_target_ar="i386-aros-ar"
7462 aros_target_ranlib="i386-aros-ranlib"
7463 aros_target_nm="i386-aros-nm"
7464 aros_target_strip="i386-aros-strip"
7465 aros_target_objcopy="i386-aros-objcopy"
7466 aros_target_objdump="i386-aros-objdump"
7467 target_tool_prefix="i386-mingw32-"
7469 *x86_64*)
7470 aros_target_cpu="x86_64"
7471 aros_object_format="elf_x86_64"
7472 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7473 aros_default_wbdepth=8
7474 gcc_target_cpu="x86_64"
7475 aros_target_cc="x86_64-aros-gcc"
7476 aros_target_cxx="x86_64-aros-g++"
7477 aros_target_ld="x86_64-aros-ld"
7478 aros_target_as="x86_64-aros-as"
7479 aros_target_ar="x86_64-aros-ar"
7480 aros_target_ranlib="x86_64-aros-ranlib"
7481 aros_target_nm="x86_64-aros-nm"
7482 aros_target_strip="x86_64-aros-strip"
7483 aros_target_objcopy="x86_64-aros-objcopy"
7484 aros_target_objdump="x86_64-aros-objdump"
7485 target_tool_prefix="x86_64-w64-mingw32-"
7487 *arm*)
7488 aros_target_cpu="arm"
7489 aros_object_format="armelf_linux_eabi"
7490 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7491 aros_default_wbdepth=8
7492 gcc_target_cpu="arm"
7493 aros_target_cc="arm-elf-gcc"
7494 aros_target_ld="arm-elf-ld"
7495 aros_target_as="arm-elf-as"
7496 aros_target_ar="arm-elf-ar"
7497 aros_target_ranlib="arm-elf-ranlib"
7498 aros_target_nm="arm-elf-nm"
7499 aros_target_strip="arm-elf-strip"
7500 aros_target_objcopy="arm-elf-objcopy"
7501 aros_target_objdump="arm-elf-objdump"
7502 target_tool_prefix="arm-mingw32ce-"
7503 aros_default_wbwidth=160
7504 aros_default_wbheight=160
7507 as_fn_error "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7509 esac
7510 if test $host_os = "cygwin"; then
7511 aros_kernel_cflags="-mno-cygwin"
7514 pp*)
7515 aros_target_arch="pp"
7516 aros_shared_default="no"
7517 case "$target_cpu" in
7518 *m68k*)
7519 aros_target_cpu="m68k"
7520 aros_object_format="m68kelf"
7521 aros_flavour="palmnative"
7522 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7523 aros_default_wbwidth=160
7524 aros_default_wbheight=160
7525 aros_default_wbdepth=1
7526 aros_target_ar_flags="cru"
7527 aros_compiler_libs="-lgcc1"
7528 aros_shared_default=no
7529 aros_shared_cflags="-fpic"
7530 aros_shared_aflags=""
7531 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7532 aros_kernel_ldflags="-Wl,-rpath,./lib"
7533 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7534 aros_debug_aflags=""
7535 aros_debug_ldflags="$aros_symbols_debug"
7536 aros_mungwall_debug="0"
7537 aros_modules_debug="0"
7538 gcc_target_cpu="mc68000"
7539 ignore_undefined_symbols="-ius"
7542 as_fn_error "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7544 esac
7547 mac*)
7548 aros_target_arch="mac"
7549 aros_shared_default="no"
7550 case "$target_cpu" in
7551 *m68k*)
7552 aros_target_cpu="m68k"
7553 aros_object_format="m68kelf"
7554 aros_flavour="mac68knative"
7555 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7556 aros_default_wbwidth=512
7557 aros_default_wbheight=384
7558 aros_default_wbdepth=8
7559 aros_target_ar_flags="cru"
7560 aros_compiler_libs="-lgcc1"
7561 aros_shared_default=no
7562 aros_shared_cflags="-fpic"
7563 aros_shared_aflags=""
7564 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7565 aros_kernel_ldflags="-Wl,-rpath,./lib"
7566 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7567 aros_debug_aflags=""
7568 aros_debug_ldflags="$aros_symbols_debug"
7569 aros_mungwall_debug="0"
7570 aros_modules_debug="0"
7571 gcc_target_cpu="mc68000"
7572 ignore_undefined_symbols="-ius"
7575 as_fn_error "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7577 esac
7581 as_fn_error "Unsupported target architecture $target" "$LINENO" 5
7583 esac
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Where to download sourcecode for external ports" >&5
7586 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
7588 # Check whether --with-portssources was given.
7589 if test "${with_portssources+set}" = set; then :
7590 withval=$with_portssources; with_portssrcdir=$withval
7591 else
7592 with_portssrcdir="default"
7595 if test "$with_portssrcdir" = "default"; then
7596 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7597 else
7598 AROS_PORTSSRCDIR="$with_portssrcdir"
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7601 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7604 $as_echo_n "checking which bootloader to use... " >&6; }
7606 # Check whether --with-bootloader was given.
7607 if test "${with_bootloader+set}" = set; then :
7608 withval=$with_bootloader; target_bootloader=$withval
7609 else
7610 target_bootloader=$target_bootloader
7613 if test "$target_bootloader" = "none"; then
7614 aros_target_bootloader=""
7615 else
7616 aros_target_bootloader="$target_bootloader"
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7619 $as_echo "$target_bootloader" >&6; }
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7622 $as_echo_n "checking which icon-set to use... " >&6; }
7624 # Check whether --with-iconset was given.
7625 if test "${with_iconset+set}" = set; then :
7626 withval=$with_iconset; target_iconset=$withval
7627 else
7628 target_iconset="default"
7631 if test "$target_iconset" = "default"; then
7632 aros_target_iconset="Gorilla"
7633 target_iconset="default (Gorilla)"
7634 else
7635 aros_target_iconset="$target_iconset"
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7638 $as_echo "$target_iconset" >&6; }
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7641 $as_echo_n "checking which GUI Theme to use... " >&6; }
7643 # Check whether --with-theme was given.
7644 if test "${with_theme+set}" = set; then :
7645 withval=$with_theme; target_guitheme=$withval
7646 else
7647 target_guitheme="default"
7650 if test "$target_guitheme" = "default"; then
7651 aros_target_guitheme="Ice"
7652 else
7653 aros_target_guitheme="$target_guitheme"
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7656 $as_echo "$aros_target_guitheme" >&6; }
7658 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7659 # for target code)
7660 cross_compiling=no
7661 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7662 cross_compiling=yes
7664 if test "$aros_host_cpu" == "x86_64" ; then
7665 if test "$aros_target_cpu" == "i386" ; then
7666 if test "$aros_target_arch" != "mingw32"; then
7667 cross_compiling=no
7672 # Set prefix for target compiler etc. if we're cross-compiling
7673 # (should possibly be earlier but needs to be after AC_PROG_CC)
7674 if test "$cross_compiling" = "yes" ; then
7675 if test "$target_tool_prefix" = ""; then
7676 target_tool_prefix=${target_cpu}-elf-
7678 CC=${target_tool_prefix}gcc
7679 if test "$target_tool_version" != "default"; then
7680 CC="$CC-$target_tool_version"
7682 # Extract the first word of "$CC", so it can be a program name with args.
7683 set dummy $CC; ac_word=$2
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7685 $as_echo_n "checking for $ac_word... " >&6; }
7686 if test "${ac_cv_path_CC+set}" = set; then :
7687 $as_echo_n "(cached) " >&6
7688 else
7689 case $CC in
7690 [\\/]* | ?:[\\/]*)
7691 ac_cv_path_CC="$CC" # Let the user override the test with a path.
7694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7695 for as_dir in $PATH
7697 IFS=$as_save_IFS
7698 test -z "$as_dir" && as_dir=.
7699 for ac_exec_ext in '' $ac_executable_extensions; do
7700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7701 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
7702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 break 2
7705 done
7706 done
7707 IFS=$as_save_IFS
7710 esac
7712 CC=$ac_cv_path_CC
7713 if test -n "$CC"; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7715 $as_echo "$CC" >&6; }
7716 else
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7722 if test "$CC" = ""; then
7723 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
7726 CC="$CC $target_tool_flags"
7728 #-----------------------------------------------------------------------------
7730 # Disable pointer-signedness warnings if the compiler recognises the option
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7733 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7734 save_cflags="$CFLAGS"
7735 CFLAGS="$CFLAGS -Wno-pointer-sign"
7736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7737 /* end confdefs.h. */
7740 main ()
7744 return 0;
7746 _ACEOF
7747 if ac_fn_c_try_compile "$LINENO"; then :
7748 use_no_sign_warning="yes"
7749 else
7750 use_no_sign_warning="no"
7752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7754 $as_echo "$use_no_sign_warning" >&6; }
7755 if test "x-$use_no_sign_warning" = "x-yes" ; then
7756 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
7758 CFLAGS="$save_cflags"
7760 #-----------------------------------------------------------------------------
7762 # Find all the tools we need to compile. This could be cross-compiling
7763 # though! If that is the case we use the GNU form of the target and
7764 # simply add this to the front of the binary name. This is rather simple,
7765 # but it should work under most circumstances.
7767 # The default tools are to use the same as the host, but only if the
7768 # host and target CPU are the same. With GCC this is normally enough.
7771 aros_cc_pre=""
7772 aros_shared_ld="$aros_host_ld"
7774 aros_target_mkdep="$aros_host_mkdep"
7775 aros_target_incl_def="$aros_host_incl"
7777 aros_kernel_cc="$CC"
7779 # The default tools executables to be linked to.
7780 if test "$aros_target_cc" != ""; then
7781 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
7782 set dummy $aros_target_cc; ac_word=$2
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784 $as_echo_n "checking for $ac_word... " >&6; }
7785 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 case $aros_target_cc in
7789 [\\/]* | ?:[\\/]*)
7790 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7796 IFS=$as_save_IFS
7797 test -z "$as_dir" && as_dir=.
7798 for ac_exec_ext in '' $ac_executable_extensions; do
7799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7800 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
7801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 break 2
7804 done
7805 done
7806 IFS=$as_save_IFS
7809 esac
7811 aros_target_cc=$ac_cv_path_aros_target_cc
7812 if test -n "$aros_target_cc"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
7814 $as_echo "$aros_target_cc" >&6; }
7815 else
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7821 if test "$aros_target_cc" = ""; then
7822 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
7825 if test "$aros_target_ld" != ""; then
7826 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
7827 set dummy $aros_target_ld; ac_word=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 case $aros_target_ld in
7834 [\\/]* | ?:[\\/]*)
7835 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7845 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
7846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7849 done
7850 done
7851 IFS=$as_save_IFS
7854 esac
7856 aros_target_ld=$ac_cv_path_aros_target_ld
7857 if test -n "$aros_target_ld"; then
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
7859 $as_echo "$aros_target_ld" >&6; }
7860 else
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7862 $as_echo "no" >&6; }
7866 if test "$aros_target_ld" = ""; then
7867 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
7871 if test "$crosstools" != "yes"; then
7873 if test "$aros_target_as" = ""; then
7874 if test "$cross_compiling" = "yes" ; then
7875 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
7876 set dummy ${target_tool_prefix}as; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7880 $as_echo_n "(cached) " >&6
7881 else
7882 case $aros_target_as_ln in
7883 [\\/]* | ?:[\\/]*)
7884 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7888 for as_dir in $PATH
7890 IFS=$as_save_IFS
7891 test -z "$as_dir" && as_dir=.
7892 for ac_exec_ext in '' $ac_executable_extensions; do
7893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7894 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7896 break 2
7898 done
7899 done
7900 IFS=$as_save_IFS
7903 esac
7905 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7906 if test -n "$aros_target_as_ln"; then
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7908 $as_echo "$aros_target_as_ln" >&6; }
7909 else
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7911 $as_echo "no" >&6; }
7915 else
7916 if test "$GCC" = "yes"; then
7917 aros_gcc_as=`$CC -print-prog-name=as`
7918 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
7919 set dummy `basename $aros_gcc_as`; ac_word=$2
7920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7921 $as_echo_n "checking for $ac_word... " >&6; }
7922 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7923 $as_echo_n "(cached) " >&6
7924 else
7925 case $aros_target_as_ln in
7926 [\\/]* | ?:[\\/]*)
7927 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7931 for as_dir in `dirname $aros_gcc_as`
7933 IFS=$as_save_IFS
7934 test -z "$as_dir" && as_dir=.
7935 for ac_exec_ext in '' $ac_executable_extensions; do
7936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7937 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 break 2
7941 done
7942 done
7943 IFS=$as_save_IFS
7946 esac
7948 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7949 if test -n "$aros_target_as_ln"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7951 $as_echo "$aros_target_as_ln" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7959 if test "$aros_target_as_ln" = ""; then
7960 # Extract the first word of "as", so it can be a program name with args.
7961 set dummy as; ac_word=$2
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 $as_echo_n "checking for $ac_word... " >&6; }
7964 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
7965 $as_echo_n "(cached) " >&6
7966 else
7967 case $aros_target_as_ln in
7968 [\\/]* | ?:[\\/]*)
7969 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
7972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7973 for as_dir in $PATH
7975 IFS=$as_save_IFS
7976 test -z "$as_dir" && as_dir=.
7977 for ac_exec_ext in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981 break 2
7983 done
7984 done
7985 IFS=$as_save_IFS
7988 esac
7990 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
7991 if test -n "$aros_target_as_ln"; then
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
7993 $as_echo "$aros_target_as_ln" >&6; }
7994 else
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7996 $as_echo "no" >&6; }
8002 else
8003 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8004 set dummy $aros_target_as; ac_word=$2
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8006 $as_echo_n "checking for $ac_word... " >&6; }
8007 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8008 $as_echo_n "(cached) " >&6
8009 else
8010 case $aros_target_as_ln in
8011 [\\/]* | ?:[\\/]*)
8012 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8016 for as_dir in $PATH
8018 IFS=$as_save_IFS
8019 test -z "$as_dir" && as_dir=.
8020 for ac_exec_ext in '' $ac_executable_extensions; do
8021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8022 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8024 break 2
8026 done
8027 done
8028 IFS=$as_save_IFS
8031 esac
8033 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8034 if test -n "$aros_target_as_ln"; then
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8036 $as_echo "$aros_target_as_ln" >&6; }
8037 else
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039 $as_echo "no" >&6; }
8045 if test "$aros_target_as_ln" = ""; then
8046 as_fn_error "as is required to build AROS. Please install and run configure again." "$LINENO" 5
8049 if test "$aros_kernel_ld" = ""; then
8050 if test "$cross_compiling" = "yes" ; then
8051 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8052 set dummy ${target_tool_prefix}ld; ac_word=$2
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8054 $as_echo_n "checking for $ac_word... " >&6; }
8055 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8056 $as_echo_n "(cached) " >&6
8057 else
8058 case $aros_kernel_ld in
8059 [\\/]* | ?:[\\/]*)
8060 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 for as_dir in $PATH
8066 IFS=$as_save_IFS
8067 test -z "$as_dir" && as_dir=.
8068 for ac_exec_ext in '' $ac_executable_extensions; do
8069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8070 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8072 break 2
8074 done
8075 done
8076 IFS=$as_save_IFS
8079 esac
8081 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8082 if test -n "$aros_kernel_ld"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8084 $as_echo "$aros_kernel_ld" >&6; }
8085 else
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8091 else
8092 if test "$GCC" = "yes"; then
8093 aros_gcc_ld=`$CC -print-prog-name=ld`
8094 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8095 set dummy `basename $aros_gcc_ld`; ac_word=$2
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097 $as_echo_n "checking for $ac_word... " >&6; }
8098 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
8100 else
8101 case $aros_kernel_ld in
8102 [\\/]* | ?:[\\/]*)
8103 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8107 for as_dir in `dirname $aros_gcc_ld`
8109 IFS=$as_save_IFS
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8113 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 break 2
8117 done
8118 done
8119 IFS=$as_save_IFS
8122 esac
8124 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8125 if test -n "$aros_kernel_ld"; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8127 $as_echo "$aros_kernel_ld" >&6; }
8128 else
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8130 $as_echo "no" >&6; }
8135 if test "$aros_kernel_ld" = ""; then
8136 # Extract the first word of "ld", so it can be a program name with args.
8137 set dummy ld; ac_word=$2
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8139 $as_echo_n "checking for $ac_word... " >&6; }
8140 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8141 $as_echo_n "(cached) " >&6
8142 else
8143 case $aros_kernel_ld in
8144 [\\/]* | ?:[\\/]*)
8145 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8149 for as_dir in $PATH
8151 IFS=$as_save_IFS
8152 test -z "$as_dir" && as_dir=.
8153 for ac_exec_ext in '' $ac_executable_extensions; do
8154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8155 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8157 break 2
8159 done
8160 done
8161 IFS=$as_save_IFS
8164 esac
8166 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8167 if test -n "$aros_kernel_ld"; then
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8169 $as_echo "$aros_kernel_ld" >&6; }
8170 else
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8172 $as_echo "no" >&6; }
8178 else
8179 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8180 set dummy $aros_kernel_ld; ac_word=$2
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8182 $as_echo_n "checking for $ac_word... " >&6; }
8183 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 case $aros_kernel_ld in
8187 [\\/]* | ?:[\\/]*)
8188 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 for as_dir in $PATH
8194 IFS=$as_save_IFS
8195 test -z "$as_dir" && as_dir=.
8196 for ac_exec_ext in '' $ac_executable_extensions; do
8197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8198 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8200 break 2
8202 done
8203 done
8204 IFS=$as_save_IFS
8207 esac
8209 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8210 if test -n "$aros_kernel_ld"; then
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8212 $as_echo "$aros_kernel_ld" >&6; }
8213 else
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8215 $as_echo "no" >&6; }
8221 if test "$aros_kernel_ld" = ""; then
8222 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8225 if test "$aros_target_ar" = ""; then
8226 if test "$cross_compiling" = "yes" ; then
8227 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8228 set dummy ${target_tool_prefix}ar; ac_word=$2
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230 $as_echo_n "checking for $ac_word... " >&6; }
8231 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8232 $as_echo_n "(cached) " >&6
8233 else
8234 case $aros_target_ar_ln in
8235 [\\/]* | ?:[\\/]*)
8236 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8240 for as_dir in $PATH
8242 IFS=$as_save_IFS
8243 test -z "$as_dir" && as_dir=.
8244 for ac_exec_ext in '' $ac_executable_extensions; do
8245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8246 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 break 2
8250 done
8251 done
8252 IFS=$as_save_IFS
8255 esac
8257 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8258 if test -n "$aros_target_ar_ln"; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8260 $as_echo "$aros_target_ar_ln" >&6; }
8261 else
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8267 else
8268 if test "$GCC" = "yes"; then
8269 aros_gcc_ar=`$CC -print-prog-name=ar`
8270 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8271 set dummy `basename $aros_gcc_ar`; ac_word=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 case $aros_target_ar_ln in
8278 [\\/]* | ?:[\\/]*)
8279 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in `dirname $aros_gcc_ar`
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8289 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 break 2
8293 done
8294 done
8295 IFS=$as_save_IFS
8298 esac
8300 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8301 if test -n "$aros_target_ar_ln"; then
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8303 $as_echo "$aros_target_ar_ln" >&6; }
8304 else
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8306 $as_echo "no" >&6; }
8311 if test "$aros_target_ar_ln" = ""; then
8312 # Extract the first word of "ar", so it can be a program name with args.
8313 set dummy ar; ac_word=$2
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8315 $as_echo_n "checking for $ac_word... " >&6; }
8316 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 case $aros_target_ar_ln in
8320 [\\/]* | ?:[\\/]*)
8321 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8331 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8335 done
8336 done
8337 IFS=$as_save_IFS
8340 esac
8342 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8343 if test -n "$aros_target_ar_ln"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8345 $as_echo "$aros_target_ar_ln" >&6; }
8346 else
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8354 else
8355 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8356 set dummy $aros_target_ar; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 case $aros_target_ar_ln in
8363 [\\/]* | ?:[\\/]*)
8364 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8370 IFS=$as_save_IFS
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8374 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 break 2
8378 done
8379 done
8380 IFS=$as_save_IFS
8383 esac
8385 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8386 if test -n "$aros_target_ar_ln"; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8388 $as_echo "$aros_target_ar_ln" >&6; }
8389 else
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 $as_echo "no" >&6; }
8397 if test "$aros_target_ar_ln" = ""; then
8398 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8401 if test "$aros_target_nm" = ""; then
8402 if test "$cross_compiling" = "yes" ; then
8403 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8404 set dummy ${target_tool_prefix}nm; ac_word=$2
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406 $as_echo_n "checking for $ac_word... " >&6; }
8407 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8408 $as_echo_n "(cached) " >&6
8409 else
8410 case $aros_target_nm_ln in
8411 [\\/]* | ?:[\\/]*)
8412 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8416 for as_dir in $PATH
8418 IFS=$as_save_IFS
8419 test -z "$as_dir" && as_dir=.
8420 for ac_exec_ext in '' $ac_executable_extensions; do
8421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8422 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8424 break 2
8426 done
8427 done
8428 IFS=$as_save_IFS
8431 esac
8433 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8434 if test -n "$aros_target_nm_ln"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8436 $as_echo "$aros_target_nm_ln" >&6; }
8437 else
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8443 else
8444 if test "$GCC" = "yes"; then
8445 aros_gcc_nm=`$CC -print-prog-name=nm`
8446 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8447 set dummy `basename $aros_gcc_nm`; ac_word=$2
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8449 $as_echo_n "checking for $ac_word... " >&6; }
8450 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 case $aros_target_nm_ln in
8454 [\\/]* | ?:[\\/]*)
8455 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 for as_dir in `dirname $aros_gcc_nm`
8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8465 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 break 2
8469 done
8470 done
8471 IFS=$as_save_IFS
8474 esac
8476 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8477 if test -n "$aros_target_nm_ln"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8479 $as_echo "$aros_target_nm_ln" >&6; }
8480 else
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8482 $as_echo "no" >&6; }
8487 if test "$aros_target_nm_ln" = ""; then
8488 # Extract the first word of "nm", so it can be a program name with args.
8489 set dummy nm; ac_word=$2
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8491 $as_echo_n "checking for $ac_word... " >&6; }
8492 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8493 $as_echo_n "(cached) " >&6
8494 else
8495 case $aros_target_nm_ln in
8496 [\\/]* | ?:[\\/]*)
8497 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8501 for as_dir in $PATH
8503 IFS=$as_save_IFS
8504 test -z "$as_dir" && as_dir=.
8505 for ac_exec_ext in '' $ac_executable_extensions; do
8506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8507 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 break 2
8511 done
8512 done
8513 IFS=$as_save_IFS
8516 esac
8518 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8519 if test -n "$aros_target_nm_ln"; then
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8521 $as_echo "$aros_target_nm_ln" >&6; }
8522 else
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8524 $as_echo "no" >&6; }
8530 else
8531 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8532 set dummy $aros_target_nm; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 case $aros_target_nm_ln in
8539 [\\/]* | ?:[\\/]*)
8540 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544 for as_dir in $PATH
8546 IFS=$as_save_IFS
8547 test -z "$as_dir" && as_dir=.
8548 for ac_exec_ext in '' $ac_executable_extensions; do
8549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8550 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8552 break 2
8554 done
8555 done
8556 IFS=$as_save_IFS
8559 esac
8561 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8562 if test -n "$aros_target_nm_ln"; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8564 $as_echo "$aros_target_nm_ln" >&6; }
8565 else
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8573 if test "$aros_target_nm_ln" = ""; then
8574 as_fn_error "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8577 if test "$aros_target_objcopy" = ""; then
8578 if test "$cross_compiling" = "yes" ; then
8579 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8580 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582 $as_echo_n "checking for $ac_word... " >&6; }
8583 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8584 $as_echo_n "(cached) " >&6
8585 else
8586 case $aros_target_objcopy_ln in
8587 [\\/]* | ?:[\\/]*)
8588 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8592 for as_dir in $PATH
8594 IFS=$as_save_IFS
8595 test -z "$as_dir" && as_dir=.
8596 for ac_exec_ext in '' $ac_executable_extensions; do
8597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8598 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 break 2
8602 done
8603 done
8604 IFS=$as_save_IFS
8607 esac
8609 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8610 if test -n "$aros_target_objcopy_ln"; then
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8612 $as_echo "$aros_target_objcopy_ln" >&6; }
8613 else
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8615 $as_echo "no" >&6; }
8619 else
8620 if test "$GCC" = "yes"; then
8621 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8622 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8623 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8625 $as_echo_n "checking for $ac_word... " >&6; }
8626 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8627 $as_echo_n "(cached) " >&6
8628 else
8629 case $aros_target_objcopy_ln in
8630 [\\/]* | ?:[\\/]*)
8631 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8635 for as_dir in `dirname $aros_gcc_objcopy`
8637 IFS=$as_save_IFS
8638 test -z "$as_dir" && as_dir=.
8639 for ac_exec_ext in '' $ac_executable_extensions; do
8640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8641 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8643 break 2
8645 done
8646 done
8647 IFS=$as_save_IFS
8650 esac
8652 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8653 if test -n "$aros_target_objcopy_ln"; then
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8655 $as_echo "$aros_target_objcopy_ln" >&6; }
8656 else
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658 $as_echo "no" >&6; }
8663 if test "$aros_target_objcopy_ln" = ""; then
8664 # Extract the first word of "objcopy", so it can be a program name with args.
8665 set dummy objcopy; ac_word=$2
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8667 $as_echo_n "checking for $ac_word... " >&6; }
8668 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8669 $as_echo_n "(cached) " >&6
8670 else
8671 case $aros_target_objcopy_ln in
8672 [\\/]* | ?:[\\/]*)
8673 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8677 for as_dir in $PATH
8679 IFS=$as_save_IFS
8680 test -z "$as_dir" && as_dir=.
8681 for ac_exec_ext in '' $ac_executable_extensions; do
8682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8683 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8685 break 2
8687 done
8688 done
8689 IFS=$as_save_IFS
8692 esac
8694 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8695 if test -n "$aros_target_objcopy_ln"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8697 $as_echo "$aros_target_objcopy_ln" >&6; }
8698 else
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8700 $as_echo "no" >&6; }
8706 else
8707 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8708 set dummy $aros_target_objcopy; ac_word=$2
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8710 $as_echo_n "checking for $ac_word... " >&6; }
8711 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8712 $as_echo_n "(cached) " >&6
8713 else
8714 case $aros_target_objcopy_ln in
8715 [\\/]* | ?:[\\/]*)
8716 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8720 for as_dir in $PATH
8722 IFS=$as_save_IFS
8723 test -z "$as_dir" && as_dir=.
8724 for ac_exec_ext in '' $ac_executable_extensions; do
8725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8726 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8728 break 2
8730 done
8731 done
8732 IFS=$as_save_IFS
8735 esac
8737 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8738 if test -n "$aros_target_objcopy_ln"; then
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8740 $as_echo "$aros_target_objcopy_ln" >&6; }
8741 else
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8743 $as_echo "no" >&6; }
8749 if test "$aros_target_objcopy_ln" = ""; then
8750 as_fn_error "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
8753 if test "$aros_target_objdump" = ""; then
8754 if test "$cross_compiling" = "yes" ; then
8755 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
8756 set dummy ${target_tool_prefix}objdump; ac_word=$2
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8758 $as_echo_n "checking for $ac_word... " >&6; }
8759 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8760 $as_echo_n "(cached) " >&6
8761 else
8762 case $aros_target_objdump_ln in
8763 [\\/]* | ?:[\\/]*)
8764 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8768 for as_dir in $PATH
8770 IFS=$as_save_IFS
8771 test -z "$as_dir" && as_dir=.
8772 for ac_exec_ext in '' $ac_executable_extensions; do
8773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8774 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8776 break 2
8778 done
8779 done
8780 IFS=$as_save_IFS
8783 esac
8785 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8786 if test -n "$aros_target_objdump_ln"; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8788 $as_echo "$aros_target_objdump_ln" >&6; }
8789 else
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8791 $as_echo "no" >&6; }
8795 else
8796 if test "$GCC" = "yes"; then
8797 aros_gcc_objdump=`$CC -print-prog-name=objdump`
8798 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
8799 set dummy `basename $aros_gcc_objdump`; ac_word=$2
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8801 $as_echo_n "checking for $ac_word... " >&6; }
8802 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8803 $as_echo_n "(cached) " >&6
8804 else
8805 case $aros_target_objdump_ln in
8806 [\\/]* | ?:[\\/]*)
8807 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8811 for as_dir in `dirname $aros_gcc_objdump`
8813 IFS=$as_save_IFS
8814 test -z "$as_dir" && as_dir=.
8815 for ac_exec_ext in '' $ac_executable_extensions; do
8816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8817 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8819 break 2
8821 done
8822 done
8823 IFS=$as_save_IFS
8826 esac
8828 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8829 if test -n "$aros_target_objdump_ln"; then
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8831 $as_echo "$aros_target_objdump_ln" >&6; }
8832 else
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8834 $as_echo "no" >&6; }
8839 if test "$aros_target_objdump_ln" = ""; then
8840 # Extract the first word of "objdump", so it can be a program name with args.
8841 set dummy objdump; ac_word=$2
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8843 $as_echo_n "checking for $ac_word... " >&6; }
8844 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8845 $as_echo_n "(cached) " >&6
8846 else
8847 case $aros_target_objdump_ln in
8848 [\\/]* | ?:[\\/]*)
8849 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 for as_dir in $PATH
8855 IFS=$as_save_IFS
8856 test -z "$as_dir" && as_dir=.
8857 for ac_exec_ext in '' $ac_executable_extensions; do
8858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8859 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 break 2
8863 done
8864 done
8865 IFS=$as_save_IFS
8868 esac
8870 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8871 if test -n "$aros_target_objdump_ln"; then
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8873 $as_echo "$aros_target_objdump_ln" >&6; }
8874 else
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8876 $as_echo "no" >&6; }
8882 else
8883 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
8884 set dummy $aros_target_objdump; ac_word=$2
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8886 $as_echo_n "checking for $ac_word... " >&6; }
8887 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8888 $as_echo_n "(cached) " >&6
8889 else
8890 case $aros_target_objdump_ln in
8891 [\\/]* | ?:[\\/]*)
8892 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896 for as_dir in $PATH
8898 IFS=$as_save_IFS
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8902 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 break 2
8906 done
8907 done
8908 IFS=$as_save_IFS
8911 esac
8913 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8914 if test -n "$aros_target_objdump_ln"; then
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8916 $as_echo "$aros_target_objdump_ln" >&6; }
8917 else
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8919 $as_echo "no" >&6; }
8925 if test "$aros_target_objdump_ln" = ""; then
8926 as_fn_error "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
8929 if test "$aros_target_ranlib" = ""; then
8930 if test "$cross_compiling" = "yes" ; then
8931 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
8932 set dummy ${target_tool_prefix}ranlib; ac_word=$2
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8934 $as_echo_n "checking for $ac_word... " >&6; }
8935 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938 case $aros_target_ranlib_ln in
8939 [\\/]* | ?:[\\/]*)
8940 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8944 for as_dir in $PATH
8946 IFS=$as_save_IFS
8947 test -z "$as_dir" && as_dir=.
8948 for ac_exec_ext in '' $ac_executable_extensions; do
8949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8950 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8952 break 2
8954 done
8955 done
8956 IFS=$as_save_IFS
8959 esac
8961 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
8962 if test -n "$aros_target_ranlib_ln"; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
8964 $as_echo "$aros_target_ranlib_ln" >&6; }
8965 else
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 $as_echo "no" >&6; }
8971 else
8972 if test "$GCC" = "yes"; then
8973 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
8974 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
8975 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977 $as_echo_n "checking for $ac_word... " >&6; }
8978 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 case $aros_target_ranlib_ln in
8982 [\\/]* | ?:[\\/]*)
8983 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in `dirname $aros_gcc_ranlib`
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 break 2
8997 done
8998 done
8999 IFS=$as_save_IFS
9002 esac
9004 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9005 if test -n "$aros_target_ranlib_ln"; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9007 $as_echo "$aros_target_ranlib_ln" >&6; }
9008 else
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9015 if test "$aros_target_ranlib_ln" = ""; then
9016 # Extract the first word of "ranlib", so it can be a program name with args.
9017 set dummy ranlib; ac_word=$2
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019 $as_echo_n "checking for $ac_word... " >&6; }
9020 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9021 $as_echo_n "(cached) " >&6
9022 else
9023 case $aros_target_ranlib_ln in
9024 [\\/]* | ?:[\\/]*)
9025 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9029 for as_dir in $PATH
9031 IFS=$as_save_IFS
9032 test -z "$as_dir" && as_dir=.
9033 for ac_exec_ext in '' $ac_executable_extensions; do
9034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9035 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9037 break 2
9039 done
9040 done
9041 IFS=$as_save_IFS
9044 esac
9046 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9047 if test -n "$aros_target_ranlib_ln"; then
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9049 $as_echo "$aros_target_ranlib_ln" >&6; }
9050 else
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9052 $as_echo "no" >&6; }
9058 else
9059 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9060 set dummy $aros_target_ranlib; ac_word=$2
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9062 $as_echo_n "checking for $ac_word... " >&6; }
9063 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9064 $as_echo_n "(cached) " >&6
9065 else
9066 case $aros_target_ranlib_ln in
9067 [\\/]* | ?:[\\/]*)
9068 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9072 for as_dir in $PATH
9074 IFS=$as_save_IFS
9075 test -z "$as_dir" && as_dir=.
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9078 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9080 break 2
9082 done
9083 done
9084 IFS=$as_save_IFS
9087 esac
9089 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9090 if test -n "$aros_target_ranlib_ln"; then
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9092 $as_echo "$aros_target_ranlib_ln" >&6; }
9093 else
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9095 $as_echo "no" >&6; }
9101 if test "$aros_target_ranlib_ln" = ""; then
9102 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9105 if test "$aros_target_strip" = ""; then
9106 if test "$cross_compiling" = "yes" ; then
9107 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9108 set dummy ${target_tool_prefix}strip; ac_word=$2
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9110 $as_echo_n "checking for $ac_word... " >&6; }
9111 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 case $aros_target_strip_ln in
9115 [\\/]* | ?:[\\/]*)
9116 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9120 for as_dir in $PATH
9122 IFS=$as_save_IFS
9123 test -z "$as_dir" && as_dir=.
9124 for ac_exec_ext in '' $ac_executable_extensions; do
9125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9126 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 break 2
9130 done
9131 done
9132 IFS=$as_save_IFS
9135 esac
9137 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9138 if test -n "$aros_target_strip_ln"; then
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9140 $as_echo "$aros_target_strip_ln" >&6; }
9141 else
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9143 $as_echo "no" >&6; }
9147 else
9148 if test "$GCC" = "yes"; then
9149 aros_gcc_strip=`$CC -print-prog-name=strip`
9150 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9151 set dummy `basename $aros_gcc_strip`; ac_word=$2
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9153 $as_echo_n "checking for $ac_word... " >&6; }
9154 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9156 else
9157 case $aros_target_strip_ln in
9158 [\\/]* | ?:[\\/]*)
9159 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9163 for as_dir in `dirname $aros_gcc_strip`
9165 IFS=$as_save_IFS
9166 test -z "$as_dir" && as_dir=.
9167 for ac_exec_ext in '' $ac_executable_extensions; do
9168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9169 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9171 break 2
9173 done
9174 done
9175 IFS=$as_save_IFS
9178 esac
9180 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9181 if test -n "$aros_target_strip_ln"; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9183 $as_echo "$aros_target_strip_ln" >&6; }
9184 else
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9191 if test "$aros_target_strip_ln" = ""; then
9192 # Extract the first word of "strip", so it can be a program name with args.
9193 set dummy strip; ac_word=$2
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9195 $as_echo_n "checking for $ac_word... " >&6; }
9196 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9198 else
9199 case $aros_target_strip_ln in
9200 [\\/]* | ?:[\\/]*)
9201 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9205 for as_dir in $PATH
9207 IFS=$as_save_IFS
9208 test -z "$as_dir" && as_dir=.
9209 for ac_exec_ext in '' $ac_executable_extensions; do
9210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9211 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9213 break 2
9215 done
9216 done
9217 IFS=$as_save_IFS
9220 esac
9222 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9223 if test -n "$aros_target_strip_ln"; then
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9225 $as_echo "$aros_target_strip_ln" >&6; }
9226 else
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228 $as_echo "no" >&6; }
9234 else
9235 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9236 set dummy $aros_target_strip; ac_word=$2
9237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9238 $as_echo_n "checking for $ac_word... " >&6; }
9239 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9240 $as_echo_n "(cached) " >&6
9241 else
9242 case $aros_target_strip_ln in
9243 [\\/]* | ?:[\\/]*)
9244 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9248 for as_dir in $PATH
9250 IFS=$as_save_IFS
9251 test -z "$as_dir" && as_dir=.
9252 for ac_exec_ext in '' $ac_executable_extensions; do
9253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9254 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9256 break 2
9258 done
9259 done
9260 IFS=$as_save_IFS
9263 esac
9265 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9266 if test -n "$aros_target_strip_ln"; then
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9268 $as_echo "$aros_target_strip_ln" >&6; }
9269 else
9270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9271 $as_echo "no" >&6; }
9277 if test "$aros_target_strip_ln" = ""; then
9278 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9280 # Temporarily disabled in order to let Windows-hosted port to build.
9281 # if test "$aros_target_cxx" != ""; then
9282 # AC_PATH_PROG(aros_target_cxx,$aros_target_cxx)
9283 # AROS_REQUIRED(c++,$aros_target_cxx)
9284 # fi
9285 else
9286 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
9287 aros_target_cxx=""
9290 if test "$rescomp" != ""; then
9291 if test "$cross_compiling" = "yes" ; then
9292 rescomp=${target_tool_prefix}${rescomp}
9294 # Extract the first word of "$rescomp", so it can be a program name with args.
9295 set dummy $rescomp; ac_word=$2
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9297 $as_echo_n "checking for $ac_word... " >&6; }
9298 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
9299 $as_echo_n "(cached) " >&6
9300 else
9301 case $aros_kernel_rescomp in
9302 [\\/]* | ?:[\\/]*)
9303 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
9306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9307 for as_dir in $PATH
9309 IFS=$as_save_IFS
9310 test -z "$as_dir" && as_dir=.
9311 for ac_exec_ext in '' $ac_executable_extensions; do
9312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9313 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
9314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9315 break 2
9317 done
9318 done
9319 IFS=$as_save_IFS
9322 esac
9324 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
9325 if test -n "$aros_kernel_rescomp"; then
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
9327 $as_echo "$aros_kernel_rescomp" >&6; }
9328 else
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9330 $as_echo "no" >&6; }
9334 if test "$aros_kernel_rescomp" = ""; then
9335 as_fn_error "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
9339 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9340 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9341 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9342 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9343 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9344 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9345 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9347 # aros_cc_pre is a variable that is added to the front of the compiler name
9348 # in the generated aros-gcc shell script. We need this to enable the cache
9349 # to work across cleaned builds. Also, support DISTCC using the correct
9350 # environment variable.
9353 if test "x${DISTCC}" != "x" ; then
9354 if test "x${CCACHE}" != "x" ; then
9355 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9356 else
9357 aros_cc_pre="${DISTCC} "
9359 else
9360 if test "x${CCACHE}" != "x" ; then
9361 aros_cc_pre="${CCACHE} "
9365 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9367 aros_target_nostdinc_cflags=-nostdinc
9369 aros_target_nostartup_ldflags=-nostartfiles
9371 aros_target_nix_ldflags=-nix
9373 aros_target_detach_ldflags=-detach
9375 aros_target_nostdlib_ldflags=-nostdlib
9378 # Target tools
9379 if test "$aros_target_cc" = ""; then
9380 orig_target_cc=$aros_kernel_cc
9381 else
9382 orig_target_cc=$aros_target_cc
9384 if test "$aros_target_ld" = ""; then
9385 orig_target_ld=$aros_kernel_ld
9386 else
9387 orig_target_ld=$aros_target_ld
9389 if test "$GCC" = "yes"; then
9390 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9392 aros_target_cc="${prefix}-gcc"
9393 aros_target_as="${prefix}-as"
9394 aros_target_ld="${prefix}-ld"
9395 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9396 aros_target_objcopy=${prefix}-objcopy
9397 aros_target_objdump=${prefix}-objdump
9398 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9399 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9400 aros_kernel_nm="${prefix}-nm"
9401 aros_target_strip=${prefix}-strip
9403 # Find the system include path. We can suggest that an alternative is
9404 # used if we don't get it correct. The default is to use /usr/include.
9405 # Which is set in the aros_target_incl_def variable.
9407 # Check whether --enable-includes was given.
9408 if test "${enable_includes+set}" = set; then :
9409 enableval=$enable_includes; aros_target_incl=$enable_includes
9410 else
9411 aros_target_incl=$aros_target_incl_def
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9416 $as_echo_n "checking for the target compiler's include path... " >&6; }
9417 if test "$aros_target_cc_includes" = "" ; then
9418 #try to guess where the directory is
9419 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
9420 if ! test -d $aros_target_cc_includes; then
9421 #the directory doesn't exist, we need to do some more work
9422 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9424 #these are the headers we're looling for
9425 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9426 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9427 zutil.h"
9429 dirs=
9430 for h in $headers; do
9431 #which other headers each of the above headers needs?
9432 deps=$(echo "#include <$h>" | \
9433 $aros_host_cc -E -M - 2>/dev/null | \
9434 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9436 #copy all the needed headers to a directory beneath gendir
9437 for d in $deps; do
9438 h=$(basename $d)
9439 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9440 sed -n "s,^.*/include\(/.*\),\1,p")
9441 ! test -d $dir && mkdir -p $dir
9442 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9443 done
9444 done
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9448 $as_echo "$aros_target_cc_includes" >&6; }
9451 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9452 # On GCC >= 4.0 -iquote should be used
9455 save_cc="$CC"
9456 save_cflags="$CFLAGS"
9457 CFLAGS="-iquote."
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9459 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9464 main ()
9468 return 0;
9470 _ACEOF
9471 if ac_fn_c_try_compile "$LINENO"; then :
9472 has_iquote="yes"
9473 else
9474 has_iquote="no"
9476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9478 $as_echo "$has_iquote" >&6; }
9479 if test "x-$has_iquote" = "x-yes" ; then
9480 host_cflags_iquote=-iquote
9481 host_cflags_iquote_end=
9482 else
9483 host_cflags_iquote=-I
9484 host_cflags_iquote_end=-I-
9486 kernel_cflags_iquote=$host_cflags_iquote
9487 kernel_cflags_iquote_end=$host_cflags_iquote_end
9488 if test "x-$cross_compiling" = "x-yes"; then
9489 CC="$aros_kernel_cc"
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9491 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9496 main ()
9500 return 0;
9502 _ACEOF
9503 if ac_fn_c_try_compile "$LINENO"; then :
9504 use_no_stack_protector="yes"
9505 else
9506 use_no_stack_protector="no"
9508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9510 $as_echo "$use_no_stack_protector" >&6; }
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9512 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9517 main ()
9521 return 0;
9523 _ACEOF
9524 if ac_fn_c_try_compile "$LINENO"; then :
9525 has_iquote="yes"
9526 else
9527 has_iquote="no"
9529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9531 $as_echo "$has_iquote" >&6; }
9532 if test "x-$has_iquote" = "x-yes" ; then
9533 kernel_cflags_iquote=-iquote
9534 kernel_cflags_iquote_end=
9535 else
9536 kernel_cflags_iquote=-I
9537 kernel_cflags_iquote_end=-I-
9540 aros_cflags_iquote=$kernel_cflags_iquote
9541 aros_cflags_iquote_end=$kernel_cflags_iquote_end
9542 if test "$orig_target_cc" != "$aros_kernel_cc"; then
9543 CC="$orig_target_cc"
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9545 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9547 /* end confdefs.h. */
9550 main ()
9554 return 0;
9556 _ACEOF
9557 if ac_fn_c_try_compile "$LINENO"; then :
9558 has_iquote="yes"
9559 else
9560 has_iquote="no"
9562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9564 $as_echo "$has_iquote" >&6; }
9565 if test "x-$has_iquote" = "x-yes" ; then
9566 aros_cflags_iquote=-iquote
9567 aros_cflags_iquote_end=
9568 else
9569 aros_cflags_iquote=-I
9570 aros_cflags_iquote_end=-I-
9573 if test "x-$use_no_stack_protector" = "x-yes" ; then
9574 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
9577 #-----------------------------------------------------------------------------
9579 # Check if we can explicitly choose older version of symbol hashing
9581 CFLAGS="save_cflags -Wl,--hash-style=sysv"
9582 CC="$aros_kernel_cc"
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
9584 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
9585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9586 /* end confdefs.h. */
9589 main ()
9593 return 0;
9595 _ACEOF
9596 if ac_fn_c_try_link "$LINENO"; then :
9597 use_hash_style="yes"
9598 else
9599 use_hash_style="no"
9601 rm -f core conftest.err conftest.$ac_objext \
9602 conftest$ac_exeext conftest.$ac_ext
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
9604 $as_echo "$use_hash_style" >&6; }
9605 if test "x-$use_hash_style" = "x-yes" ; then
9606 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
9608 CC="$save_cc"
9609 CFLAGS="$save_cflags"
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
9620 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
9622 # Check whether --with-resolution was given.
9623 if test "${with_resolution+set}" = set; then :
9624 withval=$with_resolution; resolution=$withval
9625 else
9626 resolution=none
9629 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9630 if test "$resolution" = "yes" ; then
9631 resolution="none"
9633 if test "$resolution" = "no" ; then
9634 resolution="none"
9636 if test "$resolution" != "none" ; then
9637 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9638 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9639 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9642 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
9643 aros_cv_default_wbwidth=$aros_default_wbwidth
9644 aros_cv_default_wbheight=$aros_default_wbheight
9645 aros_cv_default_wbdepth=$aros_default_wbdepth
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
9648 $as_echo_n "checking if serial debug is enabled... " >&6; }
9650 # Check whether --with-serial-debug was given.
9651 if test "${with_serial_debug+set}" = set; then :
9652 withval=$with_serial_debug; serial_debug=$withval
9653 else
9654 serial_debug=none
9657 if test "$aros_serial_debug" = 0 ; then
9658 serial_debug_forced=""
9659 if test "$serial_debug" = "yes" ; then
9660 serial_debug="2"
9662 if test "$serial_debug" = "no" ; then
9663 serial_debug="none"
9665 else
9666 serial_debug_forced="(forced)"
9667 serial_debug=$aros_serial_debug
9669 if test "$serial_debug" != "none" ; then
9670 aros_serial_debug=$serial_debug
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
9672 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
9673 else
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9675 $as_echo "no" >&6; }
9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
9679 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
9680 # Check whether --enable-palm_debug_hack was given.
9681 if test "${enable_palm_debug_hack+set}" = set; then :
9682 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
9683 else
9684 palm_debug_hack="no"
9687 if test "$palm_debug_hack" = "yes" ; then
9688 aros_palm_debug_hack="1"
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
9691 $as_echo "$palm_debug_hack" >&6; }
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
9695 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
9696 # Check whether --enable-nesting_supervisor was given.
9697 if test "${enable_nesting_supervisor+set}" = set; then :
9698 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
9699 else
9700 nesting_supervisor="no"
9703 if test "$nesting_supervisor" = "yes" ; then
9704 aros_nesting_supervisor="1"
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
9707 $as_echo "$nesting_supervisor" >&6; }
9710 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9712 if test "x-$need_dlopen" != "x-no" ; then
9713 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9714 if test "x$ac_cv_func_dlopen" = x""yes; then :
9715 have_dl="yes"
9716 else
9717 have_dl="no"
9720 if test "x-$have_dl" = "x-no" ; then
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9722 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9723 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9725 else
9726 ac_check_lib_save_LIBS=$LIBS
9727 LIBS="-ldl $LIBS"
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9731 /* Override any GCC internal prototype to avoid an error.
9732 Use char because int might match the return type of a GCC
9733 builtin and then its argument prototype would still apply. */
9734 #ifdef __cplusplus
9735 extern "C"
9736 #endif
9737 char dlopen ();
9739 main ()
9741 return dlopen ();
9743 return 0;
9745 _ACEOF
9746 if ac_fn_c_try_link "$LINENO"; then :
9747 ac_cv_lib_dl_dlopen=yes
9748 else
9749 ac_cv_lib_dl_dlopen=no
9751 rm -f core conftest.err conftest.$ac_objext \
9752 conftest$ac_exeext conftest.$ac_ext
9753 LIBS=$ac_check_lib_save_LIBS
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9756 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9757 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9758 have_dl="yes"
9759 aros_host_ldflags="$aros_host_ldflags -ldl"
9760 else
9761 have_dl="no"
9765 if test "x-$have_dl" = "x-no" ; then
9766 as_fn_error "dlopen() dynamic linker functions not available" "$LINENO" 5
9771 # Check whether --enable-x11_hidd was given.
9772 if test "${enable_x11_hidd+set}" = set; then :
9773 enableval=$enable_x11_hidd; x11_hidd="$enableval"
9774 else
9775 x11_hidd="auto"
9778 case "x-$x11_hidd" in
9779 x-yes|x-no|x-auto) ;;
9780 *) x11_hidd="auto" ;;
9781 esac
9783 ENABLE_X11=0
9785 if test "x-$x11_hidd" != "x-no" ; then
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9788 $as_echo_n "checking for X... " >&6; }
9791 # Check whether --with-x was given.
9792 if test "${with_x+set}" = set; then :
9793 withval=$with_x;
9796 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9797 if test "x$with_x" = xno; then
9798 # The user explicitly disabled X.
9799 have_x=disabled
9800 else
9801 case $x_includes,$x_libraries in #(
9802 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9803 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9804 $as_echo_n "(cached) " >&6
9805 else
9806 # One or both of the vars are not set, and there is no cached value.
9807 ac_x_includes=no ac_x_libraries=no
9808 rm -f -r conftest.dir
9809 if mkdir conftest.dir; then
9810 cd conftest.dir
9811 cat >Imakefile <<'_ACEOF'
9812 incroot:
9813 @echo incroot='${INCROOT}'
9814 usrlibdir:
9815 @echo usrlibdir='${USRLIBDIR}'
9816 libdir:
9817 @echo libdir='${LIBDIR}'
9818 _ACEOF
9819 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9820 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9821 for ac_var in incroot usrlibdir libdir; do
9822 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9823 done
9824 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9825 for ac_extension in a so sl dylib la dll; do
9826 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9827 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9828 ac_im_usrlibdir=$ac_im_libdir; break
9830 done
9831 # Screen out bogus values from the imake configuration. They are
9832 # bogus both because they are the default anyway, and because
9833 # using them would break gcc on systems where it needs fixed includes.
9834 case $ac_im_incroot in
9835 /usr/include) ac_x_includes= ;;
9836 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9837 esac
9838 case $ac_im_usrlibdir in
9839 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9840 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9841 esac
9843 cd ..
9844 rm -f -r conftest.dir
9847 # Standard set of common directories for X headers.
9848 # Check X11 before X11Rn because it is often a symlink to the current release.
9849 ac_x_header_dirs='
9850 /usr/X11/include
9851 /usr/X11R7/include
9852 /usr/X11R6/include
9853 /usr/X11R5/include
9854 /usr/X11R4/include
9856 /usr/include/X11
9857 /usr/include/X11R7
9858 /usr/include/X11R6
9859 /usr/include/X11R5
9860 /usr/include/X11R4
9862 /usr/local/X11/include
9863 /usr/local/X11R7/include
9864 /usr/local/X11R6/include
9865 /usr/local/X11R5/include
9866 /usr/local/X11R4/include
9868 /usr/local/include/X11
9869 /usr/local/include/X11R7
9870 /usr/local/include/X11R6
9871 /usr/local/include/X11R5
9872 /usr/local/include/X11R4
9874 /usr/X386/include
9875 /usr/x386/include
9876 /usr/XFree86/include/X11
9878 /usr/include
9879 /usr/local/include
9880 /usr/unsupported/include
9881 /usr/athena/include
9882 /usr/local/x11r5/include
9883 /usr/lpp/Xamples/include
9885 /usr/openwin/include
9886 /usr/openwin/share/include'
9888 if test "$ac_x_includes" = no; then
9889 # Guess where to find include files, by looking for Xlib.h.
9890 # First, try using that file with no special directory specified.
9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892 /* end confdefs.h. */
9893 #include <X11/Xlib.h>
9894 _ACEOF
9895 if ac_fn_c_try_cpp "$LINENO"; then :
9896 # We can compile using X headers with no special include directory.
9897 ac_x_includes=
9898 else
9899 for ac_dir in $ac_x_header_dirs; do
9900 if test -r "$ac_dir/X11/Xlib.h"; then
9901 ac_x_includes=$ac_dir
9902 break
9904 done
9906 rm -f conftest.err conftest.$ac_ext
9907 fi # $ac_x_includes = no
9909 if test "$ac_x_libraries" = no; then
9910 # Check for the libraries.
9911 # See if we find them without any special options.
9912 # Don't add to $LIBS permanently.
9913 ac_save_LIBS=$LIBS
9914 LIBS="-lX11 $LIBS"
9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9916 /* end confdefs.h. */
9917 #include <X11/Xlib.h>
9919 main ()
9921 XrmInitialize ()
9923 return 0;
9925 _ACEOF
9926 if ac_fn_c_try_link "$LINENO"; then :
9927 LIBS=$ac_save_LIBS
9928 # We can link X programs with no special library path.
9929 ac_x_libraries=
9930 else
9931 LIBS=$ac_save_LIBS
9932 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9934 # Don't even attempt the hair of trying to link an X program!
9935 for ac_extension in a so sl dylib la dll; do
9936 if test -r "$ac_dir/libX11.$ac_extension"; then
9937 ac_x_libraries=$ac_dir
9938 break 2
9940 done
9941 done
9943 rm -f core conftest.err conftest.$ac_objext \
9944 conftest$ac_exeext conftest.$ac_ext
9945 fi # $ac_x_libraries = no
9947 case $ac_x_includes,$ac_x_libraries in #(
9948 no,* | *,no | *\'*)
9949 # Didn't find X, or a directory has "'" in its name.
9950 ac_cv_have_x="have_x=no";; #(
9952 # Record where we found X for the cache.
9953 ac_cv_have_x="have_x=yes\
9954 ac_x_includes='$ac_x_includes'\
9955 ac_x_libraries='$ac_x_libraries'"
9956 esac
9958 ;; #(
9959 *) have_x=yes;;
9960 esac
9961 eval "$ac_cv_have_x"
9962 fi # $with_x != no
9964 if test "$have_x" != yes; then
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9966 $as_echo "$have_x" >&6; }
9967 no_x=yes
9968 else
9969 # If each of the values was on the command line, it overrides each guess.
9970 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9971 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9972 # Update the cache value to reflect the command line values.
9973 ac_cv_have_x="have_x=yes\
9974 ac_x_includes='$x_includes'\
9975 ac_x_libraries='$x_libraries'"
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9977 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9981 x_cflags=
9982 for path in $x_libraries
9984 x_cflags="$x_cflags -L$path"
9985 done
9987 for path in $x_includes
9989 x_cflags="$x_cflags -I$path"
9990 done
9992 if test "x-$no_x" = "x-yes" ; then
9994 if test "x-$x11_hidd" != "x-auto" ; then
9995 as_fn_error "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
9998 else
9999 x11_hidd_target=kernel-x11gfx-kobj
10000 ENABLE_X11=1
10002 # Check whether --enable-x11_shm was given.
10003 if test "${enable_x11_shm+set}" = set; then :
10004 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10005 else
10006 x11_hidd_shm="auto"
10009 case "x-$x11_hidd_shm" in
10010 x-yes|x-no|x-auto) ;;
10011 *) x11_hidd_shm="auto" ;;
10012 esac
10014 have_xshm=no
10016 if test "x-$x11_hidd_shm" != "x-no" ; then
10018 for ac_header in sys/ipc.h
10019 do :
10020 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10021 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
10022 cat >>confdefs.h <<_ACEOF
10023 #define HAVE_SYS_IPC_H 1
10024 _ACEOF
10028 done
10030 for ac_header in sys/shm.h
10031 do :
10032 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10033 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
10034 cat >>confdefs.h <<_ACEOF
10035 #define HAVE_SYS_SHM_H 1
10036 _ACEOF
10040 done
10043 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10045 save_cflags="$CFLAGS"
10046 CFLAGS="$CFLAGS $x_cflags"
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10048 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10049 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
10050 $as_echo_n "(cached) " >&6
10051 else
10052 ac_check_lib_save_LIBS=$LIBS
10053 LIBS="-lXext $LIBS"
10054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10055 /* end confdefs.h. */
10057 /* Override any GCC internal prototype to avoid an error.
10058 Use char because int might match the return type of a GCC
10059 builtin and then its argument prototype would still apply. */
10060 #ifdef __cplusplus
10061 extern "C"
10062 #endif
10063 char XShmQueryExtension ();
10065 main ()
10067 return XShmQueryExtension ();
10069 return 0;
10071 _ACEOF
10072 if ac_fn_c_try_link "$LINENO"; then :
10073 ac_cv_lib_Xext_XShmQueryExtension=yes
10074 else
10075 ac_cv_lib_Xext_XShmQueryExtension=no
10077 rm -f core conftest.err conftest.$ac_objext \
10078 conftest$ac_exeext conftest.$ac_ext
10079 LIBS=$ac_check_lib_save_LIBS
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10082 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10083 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
10084 have_xshm=yes
10087 CFLAGS="$save_cflags"
10091 if test "x-$have_xshm" = "x-yes" ; then
10092 DO_XSHM_SUPPORT="1"
10093 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10094 as_fn_error "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10095 else
10096 DO_XSHM_SUPPORT="0"
10100 # Check whether --enable-x11_vidmode was given.
10101 if test "${enable_x11_vidmode+set}" = set; then :
10102 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10103 else
10104 x11_hidd_vidmode="auto"
10107 case "x-$x11_hidd_vidmode" in
10108 x-yes|x-no|x-auto) ;;
10109 *) x11_hidd_vidmode="auto" ;;
10110 esac
10112 have_vidmode=no
10114 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10116 save_cflags="$CFLAGS"
10117 CFLAGS="$CFLAGS $x_cflags"
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10119 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10120 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
10121 $as_echo_n "(cached) " >&6
10122 else
10123 ac_check_lib_save_LIBS=$LIBS
10124 LIBS="-lXxf86vm $LIBS"
10125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10126 /* end confdefs.h. */
10128 /* Override any GCC internal prototype to avoid an error.
10129 Use char because int might match the return type of a GCC
10130 builtin and then its argument prototype would still apply. */
10131 #ifdef __cplusplus
10132 extern "C"
10133 #endif
10134 char XF86VidModeQueryExtension ();
10136 main ()
10138 return XF86VidModeQueryExtension ();
10140 return 0;
10142 _ACEOF
10143 if ac_fn_c_try_link "$LINENO"; then :
10144 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10145 else
10146 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10148 rm -f core conftest.err conftest.$ac_objext \
10149 conftest$ac_exeext conftest.$ac_ext
10150 LIBS=$ac_check_lib_save_LIBS
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10153 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10154 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
10155 have_vidmode=yes
10158 CFLAGS="$save_cflags"
10161 if test "x-$have_vidmode" = "x-yes" ; then
10162 DO_VIDMODE_SUPPORT="1"
10163 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10164 as_fn_error "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10165 else
10166 DO_VIDMODE_SUPPORT="0"
10170 aros_host_x11_includes=$x_includes
10171 aros_host_x11_libdirs=$x_libraries
10175 # Check whether --enable-sdl_hidd was given.
10176 if test "${enable_sdl_hidd+set}" = set; then :
10177 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10178 else
10179 sdl_hidd="auto"
10182 case "x-$sdl_hidd" in
10183 x-yes|x-no|x-auto) ;;
10184 *) sdl_hidd="auto" ;;
10185 esac
10187 if test "x-$sdl_hidd" != "x-no" ; then
10190 # Check whether --with-sdl-prefix was given.
10191 if test "${with_sdl_prefix+set}" = set; then :
10192 withval=$with_sdl_prefix; sdl_prefix="$withval"
10193 else
10194 sdl_prefix=""
10198 # Check whether --with-sdl-exec-prefix was given.
10199 if test "${with_sdl_exec_prefix+set}" = set; then :
10200 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10201 else
10202 sdl_exec_prefix=""
10205 # Check whether --enable-sdltest was given.
10206 if test "${enable_sdltest+set}" = set; then :
10207 enableval=$enable_sdltest;
10208 else
10209 enable_sdltest=yes
10213 if test x$sdl_exec_prefix != x ; then
10214 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10215 if test x${SDL_CONFIG+set} != xset ; then
10216 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10219 if test x$sdl_prefix != x ; then
10220 sdl_args="$sdl_args --prefix=$sdl_prefix"
10221 if test x${SDL_CONFIG+set} != xset ; then
10222 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10226 if test "x$prefix" != xNONE; then
10227 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10229 # Extract the first word of "sdl-config", so it can be a program name with args.
10230 set dummy sdl-config; ac_word=$2
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10232 $as_echo_n "checking for $ac_word... " >&6; }
10233 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
10234 $as_echo_n "(cached) " >&6
10235 else
10236 case $SDL_CONFIG in
10237 [\\/]* | ?:[\\/]*)
10238 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10242 for as_dir in $PATH
10244 IFS=$as_save_IFS
10245 test -z "$as_dir" && as_dir=.
10246 for ac_exec_ext in '' $ac_executable_extensions; do
10247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10248 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10250 break 2
10252 done
10253 done
10254 IFS=$as_save_IFS
10256 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10258 esac
10260 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10261 if test -n "$SDL_CONFIG"; then
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10263 $as_echo "$SDL_CONFIG" >&6; }
10264 else
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10266 $as_echo "no" >&6; }
10270 min_sdl_version=1.2.10
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10272 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10273 no_sdl=""
10274 if test "$SDL_CONFIG" = "no" ; then
10275 no_sdl=yes
10276 else
10277 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10278 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10280 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10281 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10282 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10283 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10284 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10285 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10286 if test "x$enable_sdltest" = "xyes" ; then
10287 ac_save_CFLAGS="$CFLAGS"
10288 ac_save_CXXFLAGS="$CXXFLAGS"
10289 ac_save_LIBS="$LIBS"
10290 CFLAGS="$CFLAGS $SDL_CFLAGS"
10291 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10292 LIBS="$LIBS $SDL_LIBS"
10293 rm -f conf.sdltest
10294 if test "$cross_compiling" = yes; then :
10295 echo $ac_n "cross compiling; assumed OK... $ac_c"
10296 else
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10298 /* end confdefs.h. */
10300 #include <stdio.h>
10301 #include <stdlib.h>
10302 #include <string.h>
10303 #include "SDL.h"
10305 char*
10306 my_strdup (char *str)
10308 char *new_str;
10310 if (str)
10312 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10313 strcpy (new_str, str);
10315 else
10316 new_str = NULL;
10318 return new_str;
10321 int main (int argc, char *argv[])
10323 int major, minor, micro;
10324 char *tmp_version;
10326 /* This hangs on some systems (?)
10327 system ("touch conf.sdltest");
10329 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10331 /* HP/UX 9 (%@#!) writes to sscanf strings */
10332 tmp_version = my_strdup("$min_sdl_version");
10333 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10334 printf("%s, bad version string\n", "$min_sdl_version");
10335 exit(1);
10338 if (($sdl_major_version > major) ||
10339 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10340 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10342 return 0;
10344 else
10346 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10347 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10348 printf("*** best to upgrade to the required version.\n");
10349 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10350 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10351 printf("*** config.cache before re-running configure\n");
10352 return 1;
10357 _ACEOF
10358 if ac_fn_c_try_run "$LINENO"; then :
10360 else
10361 no_sdl=yes
10363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10364 conftest.$ac_objext conftest.beam conftest.$ac_ext
10367 CFLAGS="$ac_save_CFLAGS"
10368 CXXFLAGS="$ac_save_CXXFLAGS"
10369 LIBS="$ac_save_LIBS"
10372 if test "x$no_sdl" = x ; then
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10374 $as_echo "yes" >&6; }
10375 have_sdl="yes"
10376 else
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10379 if test "$SDL_CONFIG" = "no" ; then
10380 echo "*** The sdl-config script installed by SDL could not be found"
10381 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10382 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10383 echo "*** full path to sdl-config."
10384 else
10385 if test -f conf.sdltest ; then
10387 else
10388 echo "*** Could not run SDL test program, checking why..."
10389 CFLAGS="$CFLAGS $SDL_CFLAGS"
10390 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10391 LIBS="$LIBS $SDL_LIBS"
10392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10393 /* end confdefs.h. */
10395 #include <stdio.h>
10396 #include "SDL.h"
10398 int main(int argc, char *argv[])
10399 { return 0; }
10400 #undef main
10401 #define main K_and_R_C_main
10404 main ()
10406 return 0;
10408 return 0;
10410 _ACEOF
10411 if ac_fn_c_try_link "$LINENO"; then :
10412 echo "*** The test program compiled, but did not run. This usually means"
10413 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10414 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10415 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10416 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10417 echo "*** is required on your system"
10418 echo "***"
10419 echo "*** If you have an old version installed, it is best to remove it, although"
10420 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10421 else
10422 echo "*** The test program failed to compile or link. See the file config.log for the"
10423 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10424 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10425 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10427 rm -f core conftest.err conftest.$ac_objext \
10428 conftest$ac_exeext conftest.$ac_ext
10429 CFLAGS="$ac_save_CFLAGS"
10430 CXXFLAGS="$ac_save_CXXFLAGS"
10431 LIBS="$ac_save_LIBS"
10434 SDL_CFLAGS=""
10435 SDL_LIBS=""
10436 have_sdl="no"
10440 rm -f conf.sdltest
10443 if test "x-$have_sdl" != "x-yes" ; then
10445 if test "x-$sdl_hidd" != "x-auto" ; then
10446 as_fn_error "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10449 else
10450 sdl_hidd_target=kernel-hidd-sdl
10451 aros_host_sdl_cflags=SDL_CFLAGS
10452 aros_host_sdl_libs=SDL_LIBS
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10460 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10461 # Check whether --enable-dbus was given.
10462 if test "${enable_dbus+set}" = set; then :
10463 enableval=$enable_dbus; dbus="yes"
10464 else
10465 dbus="no"
10468 if test "$dbus" = "yes" ; then
10469 ENABLE_DBUS=1
10470 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10471 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10472 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10473 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10474 else
10475 ENABLE_DBUS=0
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10478 $as_echo "$dbus" >&6; }
10482 # Generic
10492 # Host related
10515 # Target Related
10564 # Graphics Related
10579 # Native version related
10582 # Palm native version related
10585 # Unix/Hosted version related
10588 # Apple iOS related
10593 # DBUS related
10600 #X11 related
10603 # Debug related
10609 # Collect-aros stuff: "-ius" to ignore undefined symbols
10612 # C compiler related
10615 case "$aros_flavour" in
10616 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
10617 aros_flavour="emulation" ;;
10618 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
10619 aros_flavour="emulation" ;;
10620 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
10621 aros_flavour="standalone";;
10622 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
10623 aros_flavour="standalone";;
10624 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
10625 aros_flavour="native" ;;
10626 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
10627 aros_flavour="native" ;;
10628 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
10629 aros_flavour="linklib" ;;
10630 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10631 aros_flavour="palmnative" ;;
10632 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10633 aros_flavour="mac68knative" ;;
10634 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
10635 aros_flavour="ppcnative" ;;
10636 esac
10638 if test ! -d ${aros_inc_dir} ; then
10639 ${MKDIR} ${aros_inc_dir}
10641 if test ! -d ${aros_geninc_dir} ; then
10642 ${MKDIR} ${aros_geninc_dir}
10644 if test ! -d ${aros_hostcfg_dir} ; then
10645 ${MKDIR} ${aros_hostcfg_dir}
10647 if test ! -d ${aros_targetcfg_dir} ; then
10648 ${MKDIR} ${aros_targetcfg_dir}
10650 if test ! -d ${aros_tools_dir} ; then
10651 ${MKDIR} ${aros_tools_dir}
10653 if test ! -d ${aros_scripts_dir} ; then
10654 ${MKDIR} ${aros_scripts_dir}
10657 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
10660 ac_config_commands="$ac_config_commands compiler_executable"
10662 ac_config_commands="$ac_config_commands genshared_executable"
10664 ac_config_commands="$ac_config_commands genmf_executable"
10667 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
10670 cat >confcache <<\_ACEOF
10671 # This file is a shell script that caches the results of configure
10672 # tests run on this system so they can be shared between configure
10673 # scripts and configure runs, see configure's option --config-cache.
10674 # It is not useful on other systems. If it contains results you don't
10675 # want to keep, you may remove or edit it.
10677 # config.status only pays attention to the cache file if you give it
10678 # the --recheck option to rerun configure.
10680 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10681 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10682 # following values.
10684 _ACEOF
10686 # The following way of writing the cache mishandles newlines in values,
10687 # but we know of no workaround that is simple, portable, and efficient.
10688 # So, we kill variables containing newlines.
10689 # Ultrix sh set writes to stderr and can't be redirected directly,
10690 # and sets the high bit in the cache file unless we assign to the vars.
10692 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10693 eval ac_val=\$$ac_var
10694 case $ac_val in #(
10695 *${as_nl}*)
10696 case $ac_var in #(
10697 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10698 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10699 esac
10700 case $ac_var in #(
10701 _ | IFS | as_nl) ;; #(
10702 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10703 *) { eval $ac_var=; unset $ac_var;} ;;
10704 esac ;;
10705 esac
10706 done
10708 (set) 2>&1 |
10709 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10710 *${as_nl}ac_space=\ *)
10711 # `set' does not quote correctly, so add quotes: double-quote
10712 # substitution turns \\\\ into \\, and sed turns \\ into \.
10713 sed -n \
10714 "s/'/'\\\\''/g;
10715 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10716 ;; #(
10718 # `set' quotes correctly as required by POSIX, so do not add quotes.
10719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10721 esac |
10722 sort
10724 sed '
10725 /^ac_cv_env_/b end
10726 t clear
10727 :clear
10728 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10729 t end
10730 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10731 :end' >>confcache
10732 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10733 if test -w "$cache_file"; then
10734 test "x$cache_file" != "x/dev/null" &&
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10736 $as_echo "$as_me: updating cache $cache_file" >&6;}
10737 cat confcache >$cache_file
10738 else
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10740 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10743 rm -f confcache
10745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10746 # Let make expand exec_prefix.
10747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10749 DEFS=-DHAVE_CONFIG_H
10751 ac_libobjs=
10752 ac_ltlibobjs=
10753 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10754 # 1. Remove the extension, and $U if already installed.
10755 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10756 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10757 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10758 # will be set to the directory where LIBOBJS objects are built.
10759 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10760 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10761 done
10762 LIBOBJS=$ac_libobjs
10764 LTLIBOBJS=$ac_ltlibobjs
10768 : ${CONFIG_STATUS=./config.status}
10769 ac_write_fail=0
10770 ac_clean_files_save=$ac_clean_files
10771 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10773 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10774 as_write_fail=0
10775 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10776 #! $SHELL
10777 # Generated by $as_me.
10778 # Run this file to recreate the current configuration.
10779 # Compiler output produced by configure, useful for debugging
10780 # configure, is in config.log if it exists.
10782 debug=false
10783 ac_cs_recheck=false
10784 ac_cs_silent=false
10786 SHELL=\${CONFIG_SHELL-$SHELL}
10787 export SHELL
10788 _ASEOF
10789 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10790 ## -------------------- ##
10791 ## M4sh Initialization. ##
10792 ## -------------------- ##
10794 # Be more Bourne compatible
10795 DUALCASE=1; export DUALCASE # for MKS sh
10796 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10797 emulate sh
10798 NULLCMD=:
10799 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10800 # is contrary to our usage. Disable this feature.
10801 alias -g '${1+"$@"}'='"$@"'
10802 setopt NO_GLOB_SUBST
10803 else
10804 case `(set -o) 2>/dev/null` in #(
10805 *posix*) :
10806 set -o posix ;; #(
10807 *) :
10809 esac
10813 as_nl='
10815 export as_nl
10816 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10817 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10819 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10820 # Prefer a ksh shell builtin over an external printf program on Solaris,
10821 # but without wasting forks for bash or zsh.
10822 if test -z "$BASH_VERSION$ZSH_VERSION" \
10823 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10824 as_echo='print -r --'
10825 as_echo_n='print -rn --'
10826 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10827 as_echo='printf %s\n'
10828 as_echo_n='printf %s'
10829 else
10830 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10831 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10832 as_echo_n='/usr/ucb/echo -n'
10833 else
10834 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10835 as_echo_n_body='eval
10836 arg=$1;
10837 case $arg in #(
10838 *"$as_nl"*)
10839 expr "X$arg" : "X\\(.*\\)$as_nl";
10840 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10841 esac;
10842 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10844 export as_echo_n_body
10845 as_echo_n='sh -c $as_echo_n_body as_echo'
10847 export as_echo_body
10848 as_echo='sh -c $as_echo_body as_echo'
10851 # The user is always right.
10852 if test "${PATH_SEPARATOR+set}" != set; then
10853 PATH_SEPARATOR=:
10854 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10855 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10856 PATH_SEPARATOR=';'
10861 # IFS
10862 # We need space, tab and new line, in precisely that order. Quoting is
10863 # there to prevent editors from complaining about space-tab.
10864 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10865 # splitting by setting IFS to empty value.)
10866 IFS=" "" $as_nl"
10868 # Find who we are. Look in the path if we contain no directory separator.
10869 case $0 in #((
10870 *[\\/]* ) as_myself=$0 ;;
10871 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872 for as_dir in $PATH
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
10876 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10877 done
10878 IFS=$as_save_IFS
10881 esac
10882 # We did not find ourselves, most probably we were run as `sh COMMAND'
10883 # in which case we are not to be found in the path.
10884 if test "x$as_myself" = x; then
10885 as_myself=$0
10887 if test ! -f "$as_myself"; then
10888 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10889 exit 1
10892 # Unset variables that we do not need and which cause bugs (e.g. in
10893 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10894 # suppresses any "Segmentation fault" message there. '((' could
10895 # trigger a bug in pdksh 5.2.14.
10896 for as_var in BASH_ENV ENV MAIL MAILPATH
10897 do eval test x\${$as_var+set} = xset \
10898 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10899 done
10900 PS1='$ '
10901 PS2='> '
10902 PS4='+ '
10904 # NLS nuisances.
10905 LC_ALL=C
10906 export LC_ALL
10907 LANGUAGE=C
10908 export LANGUAGE
10910 # CDPATH.
10911 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10914 # as_fn_error ERROR [LINENO LOG_FD]
10915 # ---------------------------------
10916 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10917 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10918 # script with status $?, using 1 if that was 0.
10919 as_fn_error ()
10921 as_status=$?; test $as_status -eq 0 && as_status=1
10922 if test "$3"; then
10923 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10924 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
10926 $as_echo "$as_me: error: $1" >&2
10927 as_fn_exit $as_status
10928 } # as_fn_error
10931 # as_fn_set_status STATUS
10932 # -----------------------
10933 # Set $? to STATUS, without forking.
10934 as_fn_set_status ()
10936 return $1
10937 } # as_fn_set_status
10939 # as_fn_exit STATUS
10940 # -----------------
10941 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10942 as_fn_exit ()
10944 set +e
10945 as_fn_set_status $1
10946 exit $1
10947 } # as_fn_exit
10949 # as_fn_unset VAR
10950 # ---------------
10951 # Portably unset VAR.
10952 as_fn_unset ()
10954 { eval $1=; unset $1;}
10956 as_unset=as_fn_unset
10957 # as_fn_append VAR VALUE
10958 # ----------------------
10959 # Append the text in VALUE to the end of the definition contained in VAR. Take
10960 # advantage of any shell optimizations that allow amortized linear growth over
10961 # repeated appends, instead of the typical quadratic growth present in naive
10962 # implementations.
10963 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10964 eval 'as_fn_append ()
10966 eval $1+=\$2
10968 else
10969 as_fn_append ()
10971 eval $1=\$$1\$2
10973 fi # as_fn_append
10975 # as_fn_arith ARG...
10976 # ------------------
10977 # Perform arithmetic evaluation on the ARGs, and store the result in the
10978 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10979 # must be portable across $(()) and expr.
10980 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10981 eval 'as_fn_arith ()
10983 as_val=$(( $* ))
10985 else
10986 as_fn_arith ()
10988 as_val=`expr "$@" || test $? -eq 1`
10990 fi # as_fn_arith
10993 if expr a : '\(a\)' >/dev/null 2>&1 &&
10994 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10995 as_expr=expr
10996 else
10997 as_expr=false
11000 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11001 as_basename=basename
11002 else
11003 as_basename=false
11006 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11007 as_dirname=dirname
11008 else
11009 as_dirname=false
11012 as_me=`$as_basename -- "$0" ||
11013 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11014 X"$0" : 'X\(//\)$' \| \
11015 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11016 $as_echo X/"$0" |
11017 sed '/^.*\/\([^/][^/]*\)\/*$/{
11018 s//\1/
11021 /^X\/\(\/\/\)$/{
11022 s//\1/
11025 /^X\/\(\/\).*/{
11026 s//\1/
11029 s/.*/./; q'`
11031 # Avoid depending upon Character Ranges.
11032 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11033 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11034 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11035 as_cr_digits='0123456789'
11036 as_cr_alnum=$as_cr_Letters$as_cr_digits
11038 ECHO_C= ECHO_N= ECHO_T=
11039 case `echo -n x` in #(((((
11040 -n*)
11041 case `echo 'xy\c'` in
11042 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11043 xy) ECHO_C='\c';;
11044 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11045 ECHO_T=' ';;
11046 esac;;
11048 ECHO_N='-n';;
11049 esac
11051 rm -f conf$$ conf$$.exe conf$$.file
11052 if test -d conf$$.dir; then
11053 rm -f conf$$.dir/conf$$.file
11054 else
11055 rm -f conf$$.dir
11056 mkdir conf$$.dir 2>/dev/null
11058 if (echo >conf$$.file) 2>/dev/null; then
11059 if ln -s conf$$.file conf$$ 2>/dev/null; then
11060 as_ln_s='ln -s'
11061 # ... but there are two gotchas:
11062 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11063 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11064 # In both cases, we have to default to `cp -p'.
11065 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11066 as_ln_s='cp -p'
11067 elif ln conf$$.file conf$$ 2>/dev/null; then
11068 as_ln_s=ln
11069 else
11070 as_ln_s='cp -p'
11072 else
11073 as_ln_s='cp -p'
11075 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11076 rmdir conf$$.dir 2>/dev/null
11079 # as_fn_mkdir_p
11080 # -------------
11081 # Create "$as_dir" as a directory, including parents if necessary.
11082 as_fn_mkdir_p ()
11085 case $as_dir in #(
11086 -*) as_dir=./$as_dir;;
11087 esac
11088 test -d "$as_dir" || eval $as_mkdir_p || {
11089 as_dirs=
11090 while :; do
11091 case $as_dir in #(
11092 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11093 *) as_qdir=$as_dir;;
11094 esac
11095 as_dirs="'$as_qdir' $as_dirs"
11096 as_dir=`$as_dirname -- "$as_dir" ||
11097 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11098 X"$as_dir" : 'X\(//\)[^/]' \| \
11099 X"$as_dir" : 'X\(//\)$' \| \
11100 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11101 $as_echo X"$as_dir" |
11102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11103 s//\1/
11106 /^X\(\/\/\)[^/].*/{
11107 s//\1/
11110 /^X\(\/\/\)$/{
11111 s//\1/
11114 /^X\(\/\).*/{
11115 s//\1/
11118 s/.*/./; q'`
11119 test -d "$as_dir" && break
11120 done
11121 test -z "$as_dirs" || eval "mkdir $as_dirs"
11122 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11125 } # as_fn_mkdir_p
11126 if mkdir -p . 2>/dev/null; then
11127 as_mkdir_p='mkdir -p "$as_dir"'
11128 else
11129 test -d ./-p && rmdir ./-p
11130 as_mkdir_p=false
11133 if test -x / >/dev/null 2>&1; then
11134 as_test_x='test -x'
11135 else
11136 if ls -dL / >/dev/null 2>&1; then
11137 as_ls_L_option=L
11138 else
11139 as_ls_L_option=
11141 as_test_x='
11142 eval sh -c '\''
11143 if test -d "$1"; then
11144 test -d "$1/.";
11145 else
11146 case $1 in #(
11147 -*)set "./$1";;
11148 esac;
11149 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11150 ???[sx]*):;;*)false;;esac;fi
11151 '\'' sh
11154 as_executable_p=$as_test_x
11156 # Sed expression to map a string onto a valid CPP name.
11157 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11159 # Sed expression to map a string onto a valid variable name.
11160 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11163 exec 6>&1
11164 ## ----------------------------------- ##
11165 ## Main body of $CONFIG_STATUS script. ##
11166 ## ----------------------------------- ##
11167 _ASEOF
11168 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11171 # Save the log message, to keep $0 and so on meaningful, and to
11172 # report actual input values of CONFIG_FILES etc. instead of their
11173 # values after options handling.
11174 ac_log="
11175 This file was extended by $as_me, which was
11176 generated by GNU Autoconf 2.65. Invocation command line was
11178 CONFIG_FILES = $CONFIG_FILES
11179 CONFIG_HEADERS = $CONFIG_HEADERS
11180 CONFIG_LINKS = $CONFIG_LINKS
11181 CONFIG_COMMANDS = $CONFIG_COMMANDS
11182 $ $0 $@
11184 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11187 _ACEOF
11189 case $ac_config_files in *"
11190 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11191 esac
11193 case $ac_config_headers in *"
11194 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11195 esac
11198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11199 # Files that config.status was made for.
11200 config_files="$ac_config_files"
11201 config_headers="$ac_config_headers"
11202 config_commands="$ac_config_commands"
11204 _ACEOF
11206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11207 ac_cs_usage="\
11208 \`$as_me' instantiates files and other configuration actions
11209 from templates according to the current configuration. Unless the files
11210 and actions are specified as TAGs, all are instantiated by default.
11212 Usage: $0 [OPTION]... [TAG]...
11214 -h, --help print this help, then exit
11215 -V, --version print version number and configuration settings, then exit
11216 --config print configuration, then exit
11217 -q, --quiet, --silent
11218 do not print progress messages
11219 -d, --debug don't remove temporary files
11220 --recheck update $as_me by reconfiguring in the same conditions
11221 --file=FILE[:TEMPLATE]
11222 instantiate the configuration file FILE
11223 --header=FILE[:TEMPLATE]
11224 instantiate the configuration header FILE
11226 Configuration files:
11227 $config_files
11229 Configuration headers:
11230 $config_headers
11232 Configuration commands:
11233 $config_commands
11235 Report bugs to the package provider."
11237 _ACEOF
11238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11239 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11240 ac_cs_version="\\
11241 config.status
11242 configured by $0, generated by GNU Autoconf 2.65,
11243 with options \\"\$ac_cs_config\\"
11245 Copyright (C) 2009 Free Software Foundation, Inc.
11246 This config.status script is free software; the Free Software Foundation
11247 gives unlimited permission to copy, distribute and modify it."
11249 ac_pwd='$ac_pwd'
11250 srcdir='$srcdir'
11251 test -n "\$AWK" || AWK=awk
11252 _ACEOF
11254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11255 # The default lists apply if the user does not specify any file.
11256 ac_need_defaults=:
11257 while test $# != 0
11259 case $1 in
11260 --*=*)
11261 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11262 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11263 ac_shift=:
11266 ac_option=$1
11267 ac_optarg=$2
11268 ac_shift=shift
11270 esac
11272 case $ac_option in
11273 # Handling of the options.
11274 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11275 ac_cs_recheck=: ;;
11276 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11277 $as_echo "$ac_cs_version"; exit ;;
11278 --config | --confi | --conf | --con | --co | --c )
11279 $as_echo "$ac_cs_config"; exit ;;
11280 --debug | --debu | --deb | --de | --d | -d )
11281 debug=: ;;
11282 --file | --fil | --fi | --f )
11283 $ac_shift
11284 case $ac_optarg in
11285 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11286 esac
11287 as_fn_append CONFIG_FILES " '$ac_optarg'"
11288 ac_need_defaults=false;;
11289 --header | --heade | --head | --hea )
11290 $ac_shift
11291 case $ac_optarg in
11292 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11293 esac
11294 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11295 ac_need_defaults=false;;
11296 --he | --h)
11297 # Conflict between --help and --header
11298 as_fn_error "ambiguous option: \`$1'
11299 Try \`$0 --help' for more information.";;
11300 --help | --hel | -h )
11301 $as_echo "$ac_cs_usage"; exit ;;
11302 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11303 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11304 ac_cs_silent=: ;;
11306 # This is an error.
11307 -*) as_fn_error "unrecognized option: \`$1'
11308 Try \`$0 --help' for more information." ;;
11310 *) as_fn_append ac_config_targets " $1"
11311 ac_need_defaults=false ;;
11313 esac
11314 shift
11315 done
11317 ac_configure_extra_args=
11319 if $ac_cs_silent; then
11320 exec 6>/dev/null
11321 ac_configure_extra_args="$ac_configure_extra_args --silent"
11324 _ACEOF
11325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11326 if \$ac_cs_recheck; then
11327 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11328 shift
11329 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11330 CONFIG_SHELL='$SHELL'
11331 export CONFIG_SHELL
11332 exec "\$@"
11335 _ACEOF
11336 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11337 exec 5>>config.log
11339 echo
11340 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11341 ## Running $as_me. ##
11342 _ASBOX
11343 $as_echo "$ac_log"
11344 } >&5
11346 _ACEOF
11347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11349 # INIT-COMMANDS
11352 aros_host_exe_suffix=${aros_host_exe_suffix}
11353 aros_tools_dir=${aros_tools_dir}
11354 aros_target_cpu=${aros_target_cpu}
11355 aros_target_arch=${aros_target_arch}
11356 aros_target_suffix=${aros_target_suffix}
11357 aros_target_nm_ln=${aros_target_nm_ln}
11358 aros_target_as_ln=${aros_target_as_ln}
11359 aros_target_ar_ln=${aros_target_ar_ln}
11360 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11361 aros_target_objdump_ln=${aros_target_objdump_ln}
11362 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11363 aros_target_strip_ln=${aros_target_strip_ln}
11366 aros_scripts_dir=${aros_scripts_dir}
11368 aros_tools_dir=${aros_tools_dir}
11371 _ACEOF
11373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11375 # Handling of arguments.
11376 for ac_config_target in $ac_config_targets
11378 case $ac_config_target in
11379 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11380 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11381 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11382 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11383 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11384 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11385 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11386 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11387 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11388 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11389 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11390 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11391 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11392 "${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" ;;
11393 "${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" ;;
11394 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
11395 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11396 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11398 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11399 esac
11400 done
11403 # If the user did not use the arguments to specify the items to instantiate,
11404 # then the envvar interface is used. Set only those that are not.
11405 # We use the long form for the default assignment because of an extremely
11406 # bizarre bug on SunOS 4.1.3.
11407 if $ac_need_defaults; then
11408 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11409 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11410 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11413 # Have a temporary directory for convenience. Make it in the build tree
11414 # simply because there is no reason against having it here, and in addition,
11415 # creating and moving files from /tmp can sometimes cause problems.
11416 # Hook for its removal unless debugging.
11417 # Note that there is a small window in which the directory will not be cleaned:
11418 # after its creation but before its name has been assigned to `$tmp'.
11419 $debug ||
11421 tmp=
11422 trap 'exit_status=$?
11423 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11425 trap 'as_fn_exit 1' 1 2 13 15
11427 # Create a (secure) tmp directory for tmp files.
11430 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11431 test -n "$tmp" && test -d "$tmp"
11432 } ||
11434 tmp=./conf$$-$RANDOM
11435 (umask 077 && mkdir "$tmp")
11436 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11438 # Set up the scripts for CONFIG_FILES section.
11439 # No need to generate them if there are no CONFIG_FILES.
11440 # This happens for instance with `./config.status config.h'.
11441 if test -n "$CONFIG_FILES"; then
11444 ac_cr=`echo X | tr X '\015'`
11445 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11446 # But we know of no other shell where ac_cr would be empty at this
11447 # point, so we can use a bashism as a fallback.
11448 if test "x$ac_cr" = x; then
11449 eval ac_cr=\$\'\\r\'
11451 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11452 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11453 ac_cs_awk_cr='\r'
11454 else
11455 ac_cs_awk_cr=$ac_cr
11458 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11459 _ACEOF
11463 echo "cat >conf$$subs.awk <<_ACEOF" &&
11464 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11465 echo "_ACEOF"
11466 } >conf$$subs.sh ||
11467 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11468 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11469 ac_delim='%!_!# '
11470 for ac_last_try in false false false false false :; do
11471 . ./conf$$subs.sh ||
11472 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11474 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11475 if test $ac_delim_n = $ac_delim_num; then
11476 break
11477 elif $ac_last_try; then
11478 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11479 else
11480 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11482 done
11483 rm -f conf$$subs.sh
11485 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11486 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11487 _ACEOF
11488 sed -n '
11490 s/^/S["/; s/!.*/"]=/
11493 s/^[^!]*!//
11494 :repl
11495 t repl
11496 s/'"$ac_delim"'$//
11497 t delim
11500 s/\(.\{148\}\)..*/\1/
11501 t more1
11502 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11505 b repl
11506 :more1
11507 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11510 s/.\{148\}//
11511 t nl
11512 :delim
11514 s/\(.\{148\}\)..*/\1/
11515 t more2
11516 s/["\\]/\\&/g; s/^/"/; s/$/"/
11519 :more2
11520 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11523 s/.\{148\}//
11524 t delim
11525 ' <conf$$subs.awk | sed '
11526 /^[^""]/{
11528 s/\n//
11530 ' >>$CONFIG_STATUS || ac_write_fail=1
11531 rm -f conf$$subs.awk
11532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11533 _ACAWK
11534 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11535 for (key in S) S_is_set[key] = 1
11536 FS = "\a"
11540 line = $ 0
11541 nfields = split(line, field, "@")
11542 substed = 0
11543 len = length(field[1])
11544 for (i = 2; i < nfields; i++) {
11545 key = field[i]
11546 keylen = length(key)
11547 if (S_is_set[key]) {
11548 value = S[key]
11549 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11550 len += length(value) + length(field[++i])
11551 substed = 1
11552 } else
11553 len += 1 + keylen
11556 print line
11559 _ACAWK
11560 _ACEOF
11561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11562 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11563 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11564 else
11566 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11567 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11568 _ACEOF
11570 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11571 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11572 # trailing colons and then remove the whole line if VPATH becomes empty
11573 # (actually we leave an empty line to preserve line numbers).
11574 if test "x$srcdir" = x.; then
11575 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11576 s/:*\$(srcdir):*/:/
11577 s/:*\${srcdir}:*/:/
11578 s/:*@srcdir@:*/:/
11579 s/^\([^=]*=[ ]*\):*/\1/
11580 s/:*$//
11581 s/^[^=]*=[ ]*$//
11585 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11586 fi # test -n "$CONFIG_FILES"
11588 # Set up the scripts for CONFIG_HEADERS section.
11589 # No need to generate them if there are no CONFIG_HEADERS.
11590 # This happens for instance with `./config.status Makefile'.
11591 if test -n "$CONFIG_HEADERS"; then
11592 cat >"$tmp/defines.awk" <<\_ACAWK ||
11593 BEGIN {
11594 _ACEOF
11596 # Transform confdefs.h into an awk script `defines.awk', embedded as
11597 # here-document in config.status, that substitutes the proper values into
11598 # config.h.in to produce config.h.
11600 # Create a delimiter string that does not exist in confdefs.h, to ease
11601 # handling of long lines.
11602 ac_delim='%!_!# '
11603 for ac_last_try in false false :; do
11604 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11605 if test -z "$ac_t"; then
11606 break
11607 elif $ac_last_try; then
11608 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
11609 else
11610 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11612 done
11614 # For the awk script, D is an array of macro values keyed by name,
11615 # likewise P contains macro parameters if any. Preserve backslash
11616 # newline sequences.
11618 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11619 sed -n '
11620 s/.\{148\}/&'"$ac_delim"'/g
11621 t rset
11622 :rset
11623 s/^[ ]*#[ ]*define[ ][ ]*/ /
11624 t def
11626 :def
11627 s/\\$//
11628 t bsnl
11629 s/["\\]/\\&/g
11630 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11631 D["\1"]=" \3"/p
11632 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11634 :bsnl
11635 s/["\\]/\\&/g
11636 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11637 D["\1"]=" \3\\\\\\n"\\/p
11638 t cont
11639 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11640 t cont
11642 :cont
11644 s/.\{148\}/&'"$ac_delim"'/g
11645 t clear
11646 :clear
11647 s/\\$//
11648 t bsnlc
11649 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11651 :bsnlc
11652 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11653 b cont
11654 ' <confdefs.h | sed '
11655 s/'"$ac_delim"'/"\\\
11656 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11659 for (key in D) D_is_set[key] = 1
11660 FS = "\a"
11662 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11663 line = \$ 0
11664 split(line, arg, " ")
11665 if (arg[1] == "#") {
11666 defundef = arg[2]
11667 mac1 = arg[3]
11668 } else {
11669 defundef = substr(arg[1], 2)
11670 mac1 = arg[2]
11672 split(mac1, mac2, "(") #)
11673 macro = mac2[1]
11674 prefix = substr(line, 1, index(line, defundef) - 1)
11675 if (D_is_set[macro]) {
11676 # Preserve the white space surrounding the "#".
11677 print prefix "define", macro P[macro] D[macro]
11678 next
11679 } else {
11680 # Replace #undef with comments. This is necessary, for example,
11681 # in the case of _POSIX_SOURCE, which is predefined and required
11682 # on some systems where configure will not decide to define it.
11683 if (defundef == "undef") {
11684 print "/*", prefix defundef, macro, "*/"
11685 next
11689 { print }
11690 _ACAWK
11691 _ACEOF
11692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11693 as_fn_error "could not setup config headers machinery" "$LINENO" 5
11694 fi # test -n "$CONFIG_HEADERS"
11697 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
11698 shift
11699 for ac_tag
11701 case $ac_tag in
11702 :[FHLC]) ac_mode=$ac_tag; continue;;
11703 esac
11704 case $ac_mode$ac_tag in
11705 :[FHL]*:*);;
11706 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
11707 :[FH]-) ac_tag=-:-;;
11708 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11709 esac
11710 ac_save_IFS=$IFS
11711 IFS=:
11712 set x $ac_tag
11713 IFS=$ac_save_IFS
11714 shift
11715 ac_file=$1
11716 shift
11718 case $ac_mode in
11719 :L) ac_source=$1;;
11720 :[FH])
11721 ac_file_inputs=
11722 for ac_f
11724 case $ac_f in
11725 -) ac_f="$tmp/stdin";;
11726 *) # Look for the file first in the build tree, then in the source tree
11727 # (if the path is not absolute). The absolute path cannot be DOS-style,
11728 # because $ac_f cannot contain `:'.
11729 test -f "$ac_f" ||
11730 case $ac_f in
11731 [\\/$]*) false;;
11732 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11733 esac ||
11734 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11735 esac
11736 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11737 as_fn_append ac_file_inputs " '$ac_f'"
11738 done
11740 # Let's still pretend it is `configure' which instantiates (i.e., don't
11741 # use $as_me), people would be surprised to read:
11742 # /* config.h. Generated by config.status. */
11743 configure_input='Generated from '`
11744 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11745 `' by configure.'
11746 if test x"$ac_file" != x-; then
11747 configure_input="$ac_file. $configure_input"
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11749 $as_echo "$as_me: creating $ac_file" >&6;}
11751 # Neutralize special characters interpreted by sed in replacement strings.
11752 case $configure_input in #(
11753 *\&* | *\|* | *\\* )
11754 ac_sed_conf_input=`$as_echo "$configure_input" |
11755 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11756 *) ac_sed_conf_input=$configure_input;;
11757 esac
11759 case $ac_tag in
11760 *:-:* | *:-) cat >"$tmp/stdin" \
11761 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
11762 esac
11764 esac
11766 ac_dir=`$as_dirname -- "$ac_file" ||
11767 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11768 X"$ac_file" : 'X\(//\)[^/]' \| \
11769 X"$ac_file" : 'X\(//\)$' \| \
11770 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11771 $as_echo X"$ac_file" |
11772 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11773 s//\1/
11776 /^X\(\/\/\)[^/].*/{
11777 s//\1/
11780 /^X\(\/\/\)$/{
11781 s//\1/
11784 /^X\(\/\).*/{
11785 s//\1/
11788 s/.*/./; q'`
11789 as_dir="$ac_dir"; as_fn_mkdir_p
11790 ac_builddir=.
11792 case "$ac_dir" in
11793 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11795 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11796 # A ".." for each directory in $ac_dir_suffix.
11797 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11798 case $ac_top_builddir_sub in
11799 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11800 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11801 esac ;;
11802 esac
11803 ac_abs_top_builddir=$ac_pwd
11804 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11805 # for backward compatibility:
11806 ac_top_builddir=$ac_top_build_prefix
11808 case $srcdir in
11809 .) # We are building in place.
11810 ac_srcdir=.
11811 ac_top_srcdir=$ac_top_builddir_sub
11812 ac_abs_top_srcdir=$ac_pwd ;;
11813 [\\/]* | ?:[\\/]* ) # Absolute name.
11814 ac_srcdir=$srcdir$ac_dir_suffix;
11815 ac_top_srcdir=$srcdir
11816 ac_abs_top_srcdir=$srcdir ;;
11817 *) # Relative name.
11818 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11819 ac_top_srcdir=$ac_top_build_prefix$srcdir
11820 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11821 esac
11822 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11825 case $ac_mode in
11828 # CONFIG_FILE
11831 _ACEOF
11833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11834 # If the template does not know about datarootdir, expand it.
11835 # FIXME: This hack should be removed a few years after 2.60.
11836 ac_datarootdir_hack=; ac_datarootdir_seen=
11837 ac_sed_dataroot='
11838 /datarootdir/ {
11842 /@datadir@/p
11843 /@docdir@/p
11844 /@infodir@/p
11845 /@localedir@/p
11846 /@mandir@/p'
11847 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11848 *datarootdir*) ac_datarootdir_seen=yes;;
11849 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11851 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11852 _ACEOF
11853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11854 ac_datarootdir_hack='
11855 s&@datadir@&$datadir&g
11856 s&@docdir@&$docdir&g
11857 s&@infodir@&$infodir&g
11858 s&@localedir@&$localedir&g
11859 s&@mandir@&$mandir&g
11860 s&\\\${datarootdir}&$datarootdir&g' ;;
11861 esac
11862 _ACEOF
11864 # Neutralize VPATH when `$srcdir' = `.'.
11865 # Shell code in configure.ac might set extrasub.
11866 # FIXME: do we really want to maintain this feature?
11867 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11868 ac_sed_extra="$ac_vpsub
11869 $extrasub
11870 _ACEOF
11871 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11873 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11874 s|@configure_input@|$ac_sed_conf_input|;t t
11875 s&@top_builddir@&$ac_top_builddir_sub&;t t
11876 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11877 s&@srcdir@&$ac_srcdir&;t t
11878 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11879 s&@top_srcdir@&$ac_top_srcdir&;t t
11880 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11881 s&@builddir@&$ac_builddir&;t t
11882 s&@abs_builddir@&$ac_abs_builddir&;t t
11883 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11884 $ac_datarootdir_hack
11886 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
11887 || as_fn_error "could not create $ac_file" "$LINENO" 5
11889 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11890 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
11891 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11893 which seems to be undefined. Please make sure it is defined." >&5
11894 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11895 which seems to be undefined. Please make sure it is defined." >&2;}
11897 rm -f "$tmp/stdin"
11898 case $ac_file in
11899 -) cat "$tmp/out" && rm -f "$tmp/out";;
11900 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
11901 esac \
11902 || as_fn_error "could not create $ac_file" "$LINENO" 5
11906 # CONFIG_HEADER
11908 if test x"$ac_file" != x-; then
11910 $as_echo "/* $configure_input */" \
11911 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
11912 } >"$tmp/config.h" \
11913 || as_fn_error "could not create $ac_file" "$LINENO" 5
11914 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11916 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11917 else
11918 rm -f "$ac_file"
11919 mv "$tmp/config.h" "$ac_file" \
11920 || as_fn_error "could not create $ac_file" "$LINENO" 5
11922 else
11923 $as_echo "/* $configure_input */" \
11924 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
11925 || as_fn_error "could not create -" "$LINENO" 5
11929 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
11930 $as_echo "$as_me: executing $ac_file commands" >&6;}
11932 esac
11935 case $ac_file$ac_mode in
11936 "compiler_executable":C)
11937 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
11938 mkdir -p $prefix
11939 prefix="${prefix}/${aros_target_cpu}-aros"
11940 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
11942 echo ${prefix}
11943 echo ${prefix2}
11944 chmod a+x ${prefix2}-gcc ${prefix2}-ld
11946 ln -sf ${prefix2}-gcc ${prefix}-gcc
11947 ln -sf ${prefix2}-ld ${prefix}-ld
11949 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
11950 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
11951 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
11952 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
11953 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
11954 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
11955 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
11957 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
11958 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
11959 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
11960 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
11961 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
11962 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
11963 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
11965 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
11966 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
11968 esac
11969 done # for ac_tag
11972 as_fn_exit 0
11973 _ACEOF
11974 ac_clean_files=$ac_clean_files_save
11976 test $ac_write_fail = 0 ||
11977 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
11980 # configure is writing to config.log, and then calls config.status.
11981 # config.status does its own redirection, appending to config.log.
11982 # Unfortunately, on DOS this fails, as config.log is still kept open
11983 # by configure, so config.status won't be able to write to it; its
11984 # output is simply discarded. So we exec the FD to /dev/null,
11985 # effectively closing config.log, so it can be properly (re)opened and
11986 # appended to by config.status. When coming back to configure, we
11987 # need to make the FD available again.
11988 if test "$no_create" != yes; then
11989 ac_cs_success=:
11990 ac_config_status_args=
11991 test "$silent" = yes &&
11992 ac_config_status_args="$ac_config_status_args --quiet"
11993 exec 5>/dev/null
11994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11995 exec 5>>config.log
11996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11997 # would make configure fail if this is the last instruction.
11998 $ac_cs_success || as_fn_exit $?
12000 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12002 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12007 #XXX compatability...
12008 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12010 if test -n "$aros_shared_cflags" ; then
12011 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12012 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg