Remove obsolete warning
[AROS.git] / configure
blobf63e268b17e70ec06587d140ecdab6fb99bcc5c1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
236 exit 1
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
254 { eval $1=; unset $1;}
256 as_unset=as_fn_unset
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
263 return $1
264 } # as_fn_set_status
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
307 /^X\(\/\/\)$/{
308 s//\1/
311 /^X\(\/\).*/{
312 s//\1/
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
332 eval $1+=\$2
334 else
335 as_fn_append ()
337 eval $1=\$$1\$2
339 fi # as_fn_append
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
349 as_val=$(( $* ))
351 else
352 as_fn_arith ()
354 as_val=`expr "$@" || test $? -eq 1`
356 fi # as_fn_arith
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr
378 else
379 as_expr=false
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383 as_basename=basename
384 else
385 as_basename=false
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390 else
391 as_dirname=false
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
400 s//\1/
403 /^X\/\(\/\/\)$/{
404 s//\1/
407 /^X\/\(\/\).*/{
408 s//\1/
411 s/.*/./; q'`
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
426 sed -n '
428 /[$]LINENO/=
429 ' <$as_myself |
430 sed '
431 s/[$]LINENO.*/&-/
432 t lineno
434 :lineno
436 :loop
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop
439 s/-\n.*//
440 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno"
448 # Exit status is that of the last command.
449 exit
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;;
462 ECHO_N='-n';;
463 esac
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
468 else
469 rm -f conf$$.dir
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
474 as_ln_s='ln -s'
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
484 as_ln_s='cp -p'
486 else
487 as_ln_s='cp -p'
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
494 else
495 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false
499 if test -x / >/dev/null 2>&1; then
500 as_test_x='test -x'
501 else
502 if ls -dL / >/dev/null 2>&1; then
503 as_ls_L_option=L
504 else
505 as_ls_L_option=
507 as_test_x='
508 eval sh -c '\''
509 if test -d "$1"; then
510 test -d "$1/.";
511 else
512 case $1 in #(
513 -*)set "./$1";;
514 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
538 # Initializations.
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
557 ac_unique_file="mmakefile"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 # include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 # include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
594 ac_header_list=
595 ac_subst_vars='LTLIBOBJS
596 gcc_target_cpu
597 ignore_undefined_symbols
598 aros_modules_debug
599 aros_stack_debug
600 aros_mungwall_debug
601 aros_debug
602 ENABLE_X11
603 KERNEL_DBUS_INCLUDES
604 KERNEL_DBUS_KOBJ
605 DBUS_LIBFLAGS
606 DBUS_CFLAGS
607 ENABLE_DBUS
608 aros_android_level
609 aros_ios_sdk
610 aros_ios_version
611 aros_ios_platform
612 aros_enable_mmu
613 aros_nesting_supervisor
614 aros_palm_debug_hack
615 aros_serial_debug
616 aros_host_sdl_libs
617 aros_host_sdl_cflags
618 aros_host_x11_libdirs
619 aros_host_x11_includes
620 DO_VIDMODE_SUPPORT
621 DO_XSHM_SUPPORT
622 aros_default_wbdepth
623 aros_default_wbheight
624 aros_default_wbwidth
625 oss_library_target
626 pci_hidd_target
627 sdl_hidd_target
628 x11_hidd_target
629 crosstools_target
630 aros_target_strip_flags
631 aros_target_genmap
632 aros_paranoia_cflags
633 aros_debug_ldflags
634 aros_debug_aflags
635 aros_debug_cflags
636 aros_target_cflags
637 aros_kernel_ldflags
638 aros_kernel_objcflags
639 aros_kernel_includes
640 aros_kernel_cflags
641 aros_shared_ldflags
642 aros_shared_aflags
643 aros_shared_cflags
644 aros_config_ldflags
645 aros_config_aflags
646 aros_config_cflags
647 aros_arch_libs
648 aros_compiler_libs
649 aros_object_format
650 aros_shared_ld
651 aros_shared_default
652 aros_target_nm
653 aros_target_strip
654 aros_target_objcopy
655 aros_target_objdump
656 aros_target_cc_path
657 aros_target_cc_includes
658 orig_target_ld
659 aros_target_as
660 aros_kernel_cc
661 orig_target_cc
662 aros_kernel_nm
663 aros_target_ranlib
664 aros_target_ar
665 aros_target_incl
666 aros_target_suffix
667 aros_target_variant
668 aros_target_cpu
669 aros_target_family
670 aros_target_arch
671 aros_target_bootloader
672 aros_target_iconset
673 aros_target_guitheme
674 aros_tools_dir
675 aros_host_lib_suffix
676 aros_host_exe_suffix
677 aros_host_mkargs
678 aros_host_mkdep
679 aros_host_debug
680 aros_host_ldflags
681 gnu89_inline
682 aros_host_cflags
683 aros_host_make
684 aros_host_cc
685 aros_host_cpu
686 aros_host_arch
687 aros_cc_pre
688 AROS_PORTSSRCDIR
689 SRCDIR
690 AROS_BUILDDIR_UNIX
691 AROS_BUILDDIR
692 aros_flavour_uc
693 aros_flavour
694 aros_cpu
695 aros_arch
696 SDL_LIBS
697 SDL_CFLAGS
698 SDL_CONFIG
699 XMKMF
700 aros_cflags_iquote_end
701 aros_cflags_iquote
702 kernel_cflags_iquote_end
703 kernel_cflags_iquote
704 host_cflags_iquote_end
705 host_cflags_iquote
706 aros_target_nostdlib_ldflags
707 aros_target_detach_ldflags
708 aros_target_nix_ldflags
709 aros_target_nostartup_ldflags
710 aros_target_nostdinc_cflags
711 aros_kernel_rescomp
712 aros_target_cxx
713 aros_target_strip_ln
714 aros_target_ranlib_ln
715 aros_target_objdump_ln
716 aros_target_objcopy_ln
717 aros_target_nm_ln
718 aros_target_ar_ln
719 aros_kernel_ld
720 aros_target_as_ln
721 aros_target_ld
722 aros_target_cc
723 android_tool
724 CCACHE
725 DISTCC
726 LIBOBJS
727 EGREP
728 GREP
730 TEST
733 pkgpyexecdir
734 pyexecdir
735 pkgpythondir
736 pythondir
737 PYTHON_PLATFORM
738 PYTHON_EXEC_PREFIX
739 PYTHON_PREFIX
740 PYTHON_VERSION
741 PYTHON
742 PATCH
743 CHMOD
745 PPMTOILBM
746 PNGTOPNM
747 FLEX
748 BISON
751 UNIQ
752 SORT
753 TOUCH
754 MKDIR
755 ECHO
759 aros_host_strip
760 aros_host_ranlib
761 aros_host_ar
762 aros_host_automake
763 aros_host_autoheader
764 aros_host_autoconf
765 aros_host_aclocal
766 aros_host_ld
767 MMAKE
770 OBJEXT
771 EXEEXT
772 ac_ct_CC
773 CPPFLAGS
774 LDFLAGS
775 CFLAGS
777 host_os
778 host_vendor
779 host_cpu
780 host
781 build_os
782 build_vendor
783 build_cpu
784 build
785 target_alias
786 host_alias
787 build_alias
788 LIBS
789 ECHO_T
790 ECHO_N
791 ECHO_C
792 DEFS
793 mandir
794 localedir
795 libdir
796 psdir
797 pdfdir
798 dvidir
799 htmldir
800 infodir
801 docdir
802 oldincludedir
803 includedir
804 localstatedir
805 sharedstatedir
806 sysconfdir
807 datadir
808 datarootdir
809 libexecdir
810 sbindir
811 bindir
812 program_transform_name
813 prefix
814 exec_prefix
815 PACKAGE_URL
816 PACKAGE_BUGREPORT
817 PACKAGE_STRING
818 PACKAGE_VERSION
819 PACKAGE_TARNAME
820 PACKAGE_NAME
821 PATH_SEPARATOR
822 SHELL'
823 ac_subst_files=''
824 ac_user_opts='
825 enable_option_checking
826 enable_build_type
827 enable_debug
828 enable_crosstools
829 enable_distcc
830 enable_ccache
831 with_gcc_version
832 with_optimization
833 with_paranoia
834 enable_target_variant
835 with_xcode
836 with_ios_version
837 with_ios_sdk
838 with_sdk
839 with_ndk
840 with_android_version
841 with_portssources
842 with_bootloader
843 with_iconset
844 with_theme
845 enable_includes
846 with_resolution
847 with_serial_debug
848 enable_palm_debug_hack
849 enable_nesting_supervisor
850 enable_mmu
851 enable_x11_hidd
852 with_x
853 enable_x11_shm
854 enable_x11_vidmode
855 enable_sdl_hidd
856 with_sdl_prefix
857 with_sdl_exec_prefix
858 enable_sdltest
859 enable_dbus
861 ac_precious_vars='build_alias
862 host_alias
863 target_alias
865 CFLAGS
866 LDFLAGS
867 LIBS
868 CPPFLAGS
870 XMKMF'
873 # Initialize some variables set by options.
874 ac_init_help=
875 ac_init_version=false
876 ac_unrecognized_opts=
877 ac_unrecognized_sep=
878 # The variables have the same names as the options, with
879 # dashes changed to underlines.
880 cache_file=/dev/null
881 exec_prefix=NONE
882 no_create=
883 no_recursion=
884 prefix=NONE
885 program_prefix=NONE
886 program_suffix=NONE
887 program_transform_name=s,x,x,
888 silent=
889 site=
890 srcdir=
891 verbose=
892 x_includes=NONE
893 x_libraries=NONE
895 # Installation directory options.
896 # These are left unexpanded so users can "make install exec_prefix=/foo"
897 # and all the variables that are supposed to be based on exec_prefix
898 # by default will actually change.
899 # Use braces instead of parens because sh, perl, etc. also accept them.
900 # (The list follows the same order as the GNU Coding Standards.)
901 bindir='${exec_prefix}/bin'
902 sbindir='${exec_prefix}/sbin'
903 libexecdir='${exec_prefix}/libexec'
904 datarootdir='${prefix}/share'
905 datadir='${datarootdir}'
906 sysconfdir='${prefix}/etc'
907 sharedstatedir='${prefix}/com'
908 localstatedir='${prefix}/var'
909 includedir='${prefix}/include'
910 oldincludedir='/usr/include'
911 docdir='${datarootdir}/doc/${PACKAGE}'
912 infodir='${datarootdir}/info'
913 htmldir='${docdir}'
914 dvidir='${docdir}'
915 pdfdir='${docdir}'
916 psdir='${docdir}'
917 libdir='${exec_prefix}/lib'
918 localedir='${datarootdir}/locale'
919 mandir='${datarootdir}/man'
921 ac_prev=
922 ac_dashdash=
923 for ac_option
925 # If the previous option needs an argument, assign it.
926 if test -n "$ac_prev"; then
927 eval $ac_prev=\$ac_option
928 ac_prev=
929 continue
932 case $ac_option in
933 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
934 *=) ac_optarg= ;;
935 *) ac_optarg=yes ;;
936 esac
938 # Accept the important Cygnus configure options, so we can diagnose typos.
940 case $ac_dashdash$ac_option in
942 ac_dashdash=yes ;;
944 -bindir | --bindir | --bindi | --bind | --bin | --bi)
945 ac_prev=bindir ;;
946 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
947 bindir=$ac_optarg ;;
949 -build | --build | --buil | --bui | --bu)
950 ac_prev=build_alias ;;
951 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
952 build_alias=$ac_optarg ;;
954 -cache-file | --cache-file | --cache-fil | --cache-fi \
955 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956 ac_prev=cache_file ;;
957 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
959 cache_file=$ac_optarg ;;
961 --config-cache | -C)
962 cache_file=config.cache ;;
964 -datadir | --datadir | --datadi | --datad)
965 ac_prev=datadir ;;
966 -datadir=* | --datadir=* | --datadi=* | --datad=*)
967 datadir=$ac_optarg ;;
969 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
970 | --dataroo | --dataro | --datar)
971 ac_prev=datarootdir ;;
972 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
973 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
974 datarootdir=$ac_optarg ;;
976 -disable-* | --disable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 as_fn_error $? "invalid feature name: $ac_useropt"
981 ac_useropt_orig=$ac_useropt
982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983 case $ac_user_opts in
985 "enable_$ac_useropt"
986 "*) ;;
987 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
988 ac_unrecognized_sep=', ';;
989 esac
990 eval enable_$ac_useropt=no ;;
992 -docdir | --docdir | --docdi | --doc | --do)
993 ac_prev=docdir ;;
994 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
995 docdir=$ac_optarg ;;
997 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
998 ac_prev=dvidir ;;
999 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000 dvidir=$ac_optarg ;;
1002 -enable-* | --enable-*)
1003 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004 # Reject names that are not valid shell variable names.
1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006 as_fn_error $? "invalid feature name: $ac_useropt"
1007 ac_useropt_orig=$ac_useropt
1008 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009 case $ac_user_opts in
1011 "enable_$ac_useropt"
1012 "*) ;;
1013 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1014 ac_unrecognized_sep=', ';;
1015 esac
1016 eval enable_$ac_useropt=\$ac_optarg ;;
1018 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020 | --exec | --exe | --ex)
1021 ac_prev=exec_prefix ;;
1022 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024 | --exec=* | --exe=* | --ex=*)
1025 exec_prefix=$ac_optarg ;;
1027 -gas | --gas | --ga | --g)
1028 # Obsolete; use --with-gas.
1029 with_gas=yes ;;
1031 -help | --help | --hel | --he | -h)
1032 ac_init_help=long ;;
1033 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034 ac_init_help=recursive ;;
1035 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036 ac_init_help=short ;;
1038 -host | --host | --hos | --ho)
1039 ac_prev=host_alias ;;
1040 -host=* | --host=* | --hos=* | --ho=*)
1041 host_alias=$ac_optarg ;;
1043 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1044 ac_prev=htmldir ;;
1045 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1046 | --ht=*)
1047 htmldir=$ac_optarg ;;
1049 -includedir | --includedir | --includedi | --included | --include \
1050 | --includ | --inclu | --incl | --inc)
1051 ac_prev=includedir ;;
1052 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053 | --includ=* | --inclu=* | --incl=* | --inc=*)
1054 includedir=$ac_optarg ;;
1056 -infodir | --infodir | --infodi | --infod | --info | --inf)
1057 ac_prev=infodir ;;
1058 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059 infodir=$ac_optarg ;;
1061 -libdir | --libdir | --libdi | --libd)
1062 ac_prev=libdir ;;
1063 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1064 libdir=$ac_optarg ;;
1066 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067 | --libexe | --libex | --libe)
1068 ac_prev=libexecdir ;;
1069 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070 | --libexe=* | --libex=* | --libe=*)
1071 libexecdir=$ac_optarg ;;
1073 -localedir | --localedir | --localedi | --localed | --locale)
1074 ac_prev=localedir ;;
1075 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076 localedir=$ac_optarg ;;
1078 -localstatedir | --localstatedir | --localstatedi | --localstated \
1079 | --localstate | --localstat | --localsta | --localst | --locals)
1080 ac_prev=localstatedir ;;
1081 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083 localstatedir=$ac_optarg ;;
1085 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1086 ac_prev=mandir ;;
1087 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088 mandir=$ac_optarg ;;
1090 -nfp | --nfp | --nf)
1091 # Obsolete; use --without-fp.
1092 with_fp=no ;;
1094 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095 | --no-cr | --no-c | -n)
1096 no_create=yes ;;
1098 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1100 no_recursion=yes ;;
1102 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104 | --oldin | --oldi | --old | --ol | --o)
1105 ac_prev=oldincludedir ;;
1106 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109 oldincludedir=$ac_optarg ;;
1111 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1112 ac_prev=prefix ;;
1113 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114 prefix=$ac_optarg ;;
1116 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1117 | --program-pre | --program-pr | --program-p)
1118 ac_prev=program_prefix ;;
1119 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1120 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121 program_prefix=$ac_optarg ;;
1123 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1124 | --program-suf | --program-su | --program-s)
1125 ac_prev=program_suffix ;;
1126 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1127 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128 program_suffix=$ac_optarg ;;
1130 -program-transform-name | --program-transform-name \
1131 | --program-transform-nam | --program-transform-na \
1132 | --program-transform-n | --program-transform- \
1133 | --program-transform | --program-transfor \
1134 | --program-transfo | --program-transf \
1135 | --program-trans | --program-tran \
1136 | --progr-tra | --program-tr | --program-t)
1137 ac_prev=program_transform_name ;;
1138 -program-transform-name=* | --program-transform-name=* \
1139 | --program-transform-nam=* | --program-transform-na=* \
1140 | --program-transform-n=* | --program-transform-=* \
1141 | --program-transform=* | --program-transfor=* \
1142 | --program-transfo=* | --program-transf=* \
1143 | --program-trans=* | --program-tran=* \
1144 | --progr-tra=* | --program-tr=* | --program-t=*)
1145 program_transform_name=$ac_optarg ;;
1147 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1148 ac_prev=pdfdir ;;
1149 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150 pdfdir=$ac_optarg ;;
1152 -psdir | --psdir | --psdi | --psd | --ps)
1153 ac_prev=psdir ;;
1154 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1155 psdir=$ac_optarg ;;
1157 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158 | -silent | --silent | --silen | --sile | --sil)
1159 silent=yes ;;
1161 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1162 ac_prev=sbindir ;;
1163 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1164 | --sbi=* | --sb=*)
1165 sbindir=$ac_optarg ;;
1167 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1168 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169 | --sharedst | --shareds | --shared | --share | --shar \
1170 | --sha | --sh)
1171 ac_prev=sharedstatedir ;;
1172 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1175 | --sha=* | --sh=*)
1176 sharedstatedir=$ac_optarg ;;
1178 -site | --site | --sit)
1179 ac_prev=site ;;
1180 -site=* | --site=* | --sit=*)
1181 site=$ac_optarg ;;
1183 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1184 ac_prev=srcdir ;;
1185 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186 srcdir=$ac_optarg ;;
1188 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189 | --syscon | --sysco | --sysc | --sys | --sy)
1190 ac_prev=sysconfdir ;;
1191 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193 sysconfdir=$ac_optarg ;;
1195 -target | --target | --targe | --targ | --tar | --ta | --t)
1196 ac_prev=target_alias ;;
1197 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198 target_alias=$ac_optarg ;;
1200 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1201 verbose=yes ;;
1203 -version | --version | --versio | --versi | --vers | -V)
1204 ac_init_version=: ;;
1206 -with-* | --with-*)
1207 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208 # Reject names that are not valid shell variable names.
1209 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210 as_fn_error $? "invalid package name: $ac_useropt"
1211 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in
1215 "with_$ac_useropt"
1216 "*) ;;
1217 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218 ac_unrecognized_sep=', ';;
1219 esac
1220 eval with_$ac_useropt=\$ac_optarg ;;
1222 -without-* | --without-*)
1223 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224 # Reject names that are not valid shell variable names.
1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226 as_fn_error $? "invalid package name: $ac_useropt"
1227 ac_useropt_orig=$ac_useropt
1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229 case $ac_user_opts in
1231 "with_$ac_useropt"
1232 "*) ;;
1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234 ac_unrecognized_sep=', ';;
1235 esac
1236 eval with_$ac_useropt=no ;;
1238 --x)
1239 # Obsolete; use --with-x.
1240 with_x=yes ;;
1242 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243 | --x-incl | --x-inc | --x-in | --x-i)
1244 ac_prev=x_includes ;;
1245 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247 x_includes=$ac_optarg ;;
1249 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1250 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251 ac_prev=x_libraries ;;
1252 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254 x_libraries=$ac_optarg ;;
1256 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1257 Try \`$0 --help' for more information"
1260 *=*)
1261 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262 # Reject names that are not valid shell variable names.
1263 case $ac_envvar in #(
1264 '' | [0-9]* | *[!_$as_cr_alnum]* )
1265 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1266 esac
1267 eval $ac_envvar=\$ac_optarg
1268 export $ac_envvar ;;
1271 # FIXME: should be removed in autoconf 3.0.
1272 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1278 esac
1279 done
1281 if test -n "$ac_prev"; then
1282 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283 as_fn_error $? "missing argument to $ac_option"
1286 if test -n "$ac_unrecognized_opts"; then
1287 case $enable_option_checking in
1288 no) ;;
1289 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1291 esac
1294 # Check all directory arguments for consistency.
1295 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296 datadir sysconfdir sharedstatedir localstatedir includedir \
1297 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298 libdir localedir mandir
1300 eval ac_val=\$$ac_var
1301 # Remove trailing slashes.
1302 case $ac_val in
1303 */ )
1304 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305 eval $ac_var=\$ac_val;;
1306 esac
1307 # Be sure to have absolute directory names.
1308 case $ac_val in
1309 [\\/$]* | ?:[\\/]* ) continue;;
1310 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1311 esac
1312 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1313 done
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324 if test "x$build_alias" = x; then
1325 cross_compiling=maybe
1326 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1327 If a cross compiler is detected then cross compile mode will be used" >&2
1328 elif test "x$build_alias" != "x$host_alias"; then
1329 cross_compiling=yes
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336 test "$silent" = yes && exec 6>/dev/null
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 as_fn_error $? "pwd does not report name of working directory"
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1358 s//\1/
1361 /^X\(\/\/\)[^/].*/{
1362 s//\1/
1365 /^X\(\/\/\)$/{
1366 s//\1/
1369 /^X\(\/\).*/{
1370 s//\1/
1373 s/.*/./; q'`
1374 srcdir=$ac_confdir
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1376 srcdir=..
1378 else
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1386 ac_abs_confdir=`(
1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1388 pwd)`
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1391 srcdir=.
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1396 case $srcdir in
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1398 esac
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1404 done
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1412 cat <<_ACEOF
1413 \`configure' configures this package to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1422 Configuration:
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking ...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1437 [PREFIX]
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --libdir=DIR object code libraries [EPREFIX/lib]
1454 --includedir=DIR C header files [PREFIX/include]
1455 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1456 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458 --infodir=DIR info documentation [DATAROOTDIR/info]
1459 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460 --mandir=DIR man documentation [DATAROOTDIR/man]
1461 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1462 --htmldir=DIR html documentation [DOCDIR]
1463 --dvidir=DIR dvi documentation [DOCDIR]
1464 --pdfdir=DIR pdf documentation [DOCDIR]
1465 --psdir=DIR ps documentation [DOCDIR]
1466 _ACEOF
1468 cat <<\_ACEOF
1470 X features:
1471 --x-includes=DIR X include files are in DIR
1472 --x-libraries=DIR X library files are in DIR
1474 System types:
1475 --build=BUILD configure for building on BUILD [guessed]
1476 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1477 _ACEOF
1480 if test -n "$ac_init_help"; then
1482 cat <<\_ACEOF
1484 Optional Features:
1485 --disable-option-checking ignore unrecognized --enable/--with options
1486 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1487 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1488 --enable-build-type=TYPE
1489 Select the build type. Available types are:
1490 personal, nightly, snapshot, milestone, release. Do
1491 NOT use this option unless you know what you are
1492 doing! (default=personal)
1493 --enable-debug=list Enable different types of debug. Commas or
1494 whitespaces can be used to separate the items in the
1495 list. Available types of debug are: all, none,
1496 messages, stack, mungwall, modules, symbols. If no
1497 list is provided then "all" is assumed.
1498 (default=none)
1499 --enable-crosstools Build cross-compiler toolchains if necessary
1500 (default=no).
1501 --enable-distcc Use distcc as a front end to the compiler
1502 (default=no).
1503 --enable-ccache Use ccache as a front end to the compiler
1504 (default=no).
1505 --enable-target-variant=NAME
1506 Enable a specific target variant(default=none)
1507 --enable-includes=dir Alternative system include directory
1508 --enable-palm-debug-hack
1509 Enable palm debug output hack in palm native
1510 (default=no)
1511 --enable-nesting-supervisor
1512 Enable nesting supervisor support in unix
1513 (default=no)
1514 --disable-mmu Disable MMU support (default=enabled)
1515 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1516 --enable-x11-shm use X11 shared memory (default=auto)
1517 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1518 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1519 --disable-sdltest Do not try to compile and run a test SDL program
1520 --enable-dbus Enable DBUS support via dbus.library (default=no)
1522 Optional Packages:
1523 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1524 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1525 --with-gcc-version=VERSION
1526 Use gcc-VERSION for building AROS
1527 --with-optimization=FLAGS
1528 Use optimization flags FLAGS (default=-O2).
1529 --with-paranoia=FLAGS CC flags to enable paranoia
1530 --with-xcode=PATH Specify XCode path for iOS targets
1531 (default=/Developer).
1532 --with-ios-version=VERSION
1533 Specify minimum supported iOS version (default=3.0).
1534 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1535 --with-sdk=PATH Specify Android SDK path
1536 (default=$default_android_sdk).
1537 --with-ndk=PATH Specify Android NDK path
1538 (default=$default_android_ndk).
1539 --with-android-version=VERSION
1540 Use Android platform VERSION (default=2.2).
1541 --with-portssources=DIR Where to download sourcecode for external ports
1542 --with-bootloader=NAME Use a specific bootloader
1543 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1544 --with-theme=NAME Use a specific GUI Theme
1545 --with-resolution=XRESxYRESxDEPTH
1546 Default resolution of the initial WorkbenchScreen
1547 --with-serial-debug Enable serial debug output in native (default=no)
1548 --with-x use the X Window System
1549 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1550 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1552 Some influential environment variables:
1553 CC C compiler command
1554 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir>
1560 CPP C preprocessor
1561 XMKMF Path to xmkmf, Makefile generator for X Window System
1563 Use these variables to override the choices made by `configure' or to help
1564 it to find libraries and programs with nonstandard names/locations.
1566 Report bugs to the package provider.
1567 _ACEOF
1568 ac_status=$?
1571 if test "$ac_init_help" = "recursive"; then
1572 # If there are subdirs, report their specific --help.
1573 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1574 test -d "$ac_dir" ||
1575 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1576 continue
1577 ac_builddir=.
1579 case "$ac_dir" in
1580 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1582 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1583 # A ".." for each directory in $ac_dir_suffix.
1584 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1585 case $ac_top_builddir_sub in
1586 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1587 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1588 esac ;;
1589 esac
1590 ac_abs_top_builddir=$ac_pwd
1591 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1592 # for backward compatibility:
1593 ac_top_builddir=$ac_top_build_prefix
1595 case $srcdir in
1596 .) # We are building in place.
1597 ac_srcdir=.
1598 ac_top_srcdir=$ac_top_builddir_sub
1599 ac_abs_top_srcdir=$ac_pwd ;;
1600 [\\/]* | ?:[\\/]* ) # Absolute name.
1601 ac_srcdir=$srcdir$ac_dir_suffix;
1602 ac_top_srcdir=$srcdir
1603 ac_abs_top_srcdir=$srcdir ;;
1604 *) # Relative name.
1605 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1606 ac_top_srcdir=$ac_top_build_prefix$srcdir
1607 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1608 esac
1609 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1611 cd "$ac_dir" || { ac_status=$?; continue; }
1612 # Check for guested configure.
1613 if test -f "$ac_srcdir/configure.gnu"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1616 elif test -f "$ac_srcdir/configure"; then
1617 echo &&
1618 $SHELL "$ac_srcdir/configure" --help=recursive
1619 else
1620 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1621 fi || ac_status=$?
1622 cd "$ac_pwd" || { ac_status=$?; break; }
1623 done
1626 test -n "$ac_init_help" && exit $ac_status
1627 if $ac_init_version; then
1628 cat <<\_ACEOF
1629 configure
1630 generated by GNU Autoconf 2.67
1632 Copyright (C) 2010 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it.
1635 _ACEOF
1636 exit
1639 ## ------------------------ ##
1640 ## Autoconf initialization. ##
1641 ## ------------------------ ##
1643 # ac_fn_c_try_compile LINENO
1644 # --------------------------
1645 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1646 ac_fn_c_try_compile ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1651 case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1669 ac_retval=0
1670 else
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1674 ac_retval=1
1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 as_fn_set_status $ac_retval
1679 } # ac_fn_c_try_compile
1681 # ac_fn_c_try_cpp LINENO
1682 # ----------------------
1683 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1684 ac_fn_c_try_cpp ()
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 if { { ac_try="$ac_cpp conftest.$ac_ext"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } > conftest.i && {
1703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 }; then :
1706 ac_retval=0
1707 else
1708 $as_echo "$as_me: failed program was:" >&5
1709 sed 's/^/| /' conftest.$ac_ext >&5
1711 ac_retval=1
1713 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1714 as_fn_set_status $ac_retval
1716 } # ac_fn_c_try_cpp
1718 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1719 # -------------------------------------------------------
1720 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1721 # the include files in INCLUDES and setting the cache variable VAR
1722 # accordingly.
1723 ac_fn_c_check_header_mongrel ()
1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1726 if eval "test \"\${$3+set}\"" = set; then :
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728 $as_echo_n "checking for $2... " >&6; }
1729 if eval "test \"\${$3+set}\"" = set; then :
1730 $as_echo_n "(cached) " >&6
1732 eval ac_res=\$$3
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734 $as_echo "$ac_res" >&6; }
1735 else
1736 # Is the header compilable?
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1738 $as_echo_n "checking $2 usability... " >&6; }
1739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1742 #include <$2>
1743 _ACEOF
1744 if ac_fn_c_try_compile "$LINENO"; then :
1745 ac_header_compiler=yes
1746 else
1747 ac_header_compiler=no
1749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1751 $as_echo "$ac_header_compiler" >&6; }
1753 # Is the header present?
1754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1755 $as_echo_n "checking $2 presence... " >&6; }
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757 /* end confdefs.h. */
1758 #include <$2>
1759 _ACEOF
1760 if ac_fn_c_try_cpp "$LINENO"; then :
1761 ac_header_preproc=yes
1762 else
1763 ac_header_preproc=no
1765 rm -f conftest.err conftest.i conftest.$ac_ext
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1767 $as_echo "$ac_header_preproc" >&6; }
1769 # So? What about this header?
1770 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1771 yes:no: )
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1773 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1775 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1777 no:yes:* )
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1779 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1781 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1783 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1785 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1787 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1789 esac
1790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1791 $as_echo_n "checking for $2... " >&6; }
1792 if eval "test \"\${$3+set}\"" = set; then :
1793 $as_echo_n "(cached) " >&6
1794 else
1795 eval "$3=\$ac_header_compiler"
1797 eval ac_res=\$$3
1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1799 $as_echo "$ac_res" >&6; }
1801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803 } # ac_fn_c_check_header_mongrel
1805 # ac_fn_c_try_run LINENO
1806 # ----------------------
1807 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1808 # that executables *can* be run.
1809 ac_fn_c_try_run ()
1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1812 if { { ac_try="$ac_link"
1813 case "(($ac_try" in
1814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1816 esac
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_link") 2>&5
1820 ac_status=$?
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1823 { { case "(($ac_try" in
1824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1825 *) ac_try_echo=$ac_try;;
1826 esac
1827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_try") 2>&5
1830 ac_status=$?
1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1832 test $ac_status = 0; }; }; then :
1833 ac_retval=0
1834 else
1835 $as_echo "$as_me: program exited with status $ac_status" >&5
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1839 ac_retval=$ac_status
1841 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1843 as_fn_set_status $ac_retval
1845 } # ac_fn_c_try_run
1847 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1848 # -------------------------------------------------------
1849 # Tests whether HEADER exists and can be compiled using the include files in
1850 # INCLUDES, setting the cache variable VAR accordingly.
1851 ac_fn_c_check_header_compile ()
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1855 $as_echo_n "checking for $2... " >&6; }
1856 if eval "test \"\${$3+set}\"" = set; then :
1857 $as_echo_n "(cached) " >&6
1858 else
1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860 /* end confdefs.h. */
1862 #include <$2>
1863 _ACEOF
1864 if ac_fn_c_try_compile "$LINENO"; then :
1865 eval "$3=yes"
1866 else
1867 eval "$3=no"
1869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1871 eval ac_res=\$$3
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1873 $as_echo "$ac_res" >&6; }
1874 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 } # ac_fn_c_check_header_compile
1878 # ac_fn_c_try_link LINENO
1879 # -----------------------
1880 # Try to link conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_c_try_link ()
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext conftest$ac_exeext
1885 if { { ac_try="$ac_link"
1886 case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_link") 2>conftest.err
1893 ac_status=$?
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_c_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest$ac_exeext && {
1904 test "$cross_compiling" = yes ||
1905 $as_test_x conftest$ac_exeext
1906 }; then :
1907 ac_retval=0
1908 else
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1912 ac_retval=1
1914 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1915 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1916 # interfere with the next link command; also delete a directory that is
1917 # left behind by Apple's compiler. We do this before executing the actions.
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 as_fn_set_status $ac_retval
1922 } # ac_fn_c_try_link
1924 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1925 # ----------------------------------------------------
1926 # Tries to find if the field MEMBER exists in type AGGR, after including
1927 # INCLUDES, setting cache variable VAR accordingly.
1928 ac_fn_c_check_member ()
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1932 $as_echo_n "checking for $2.$3... " >&6; }
1933 if eval "test \"\${$4+set}\"" = set; then :
1934 $as_echo_n "(cached) " >&6
1935 else
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1940 main ()
1942 static $2 ac_aggr;
1943 if (ac_aggr.$3)
1944 return 0;
1946 return 0;
1948 _ACEOF
1949 if ac_fn_c_try_compile "$LINENO"; then :
1950 eval "$4=yes"
1951 else
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1956 main ()
1958 static $2 ac_aggr;
1959 if (sizeof ac_aggr.$3)
1960 return 0;
1962 return 0;
1964 _ACEOF
1965 if ac_fn_c_try_compile "$LINENO"; then :
1966 eval "$4=yes"
1967 else
1968 eval "$4=no"
1970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1974 eval ac_res=\$$4
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1976 $as_echo "$ac_res" >&6; }
1977 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979 } # ac_fn_c_check_member
1981 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1982 # ---------------------------------------------
1983 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1984 # accordingly.
1985 ac_fn_c_check_decl ()
1987 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988 as_decl_name=`echo $2|sed 's/ *(.*//'`
1989 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1991 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1992 if eval "test \"\${$3+set}\"" = set; then :
1993 $as_echo_n "(cached) " >&6
1994 else
1995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1996 /* end confdefs.h. */
1999 main ()
2001 #ifndef $as_decl_name
2002 #ifdef __cplusplus
2003 (void) $as_decl_use;
2004 #else
2005 (void) $as_decl_name;
2006 #endif
2007 #endif
2010 return 0;
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 eval "$3=yes"
2015 else
2016 eval "$3=no"
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2020 eval ac_res=\$$3
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2025 } # ac_fn_c_check_decl
2027 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2028 # -------------------------------------------
2029 # Tests whether TYPE exists after having included INCLUDES, setting cache
2030 # variable VAR accordingly.
2031 ac_fn_c_check_type ()
2033 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2035 $as_echo_n "checking for $2... " >&6; }
2036 if eval "test \"\${$3+set}\"" = set; then :
2037 $as_echo_n "(cached) " >&6
2038 else
2039 eval "$3=no"
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2044 main ()
2046 if (sizeof ($2))
2047 return 0;
2049 return 0;
2051 _ACEOF
2052 if ac_fn_c_try_compile "$LINENO"; then :
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2057 main ()
2059 if (sizeof (($2)))
2060 return 0;
2062 return 0;
2064 _ACEOF
2065 if ac_fn_c_try_compile "$LINENO"; then :
2067 else
2068 eval "$3=yes"
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2074 eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2079 } # ac_fn_c_check_type
2081 # ac_fn_c_check_func LINENO FUNC VAR
2082 # ----------------------------------
2083 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2084 ac_fn_c_check_func ()
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2088 $as_echo_n "checking for $2... " >&6; }
2089 if eval "test \"\${$3+set}\"" = set; then :
2090 $as_echo_n "(cached) " >&6
2091 else
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093 /* end confdefs.h. */
2094 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2096 #define $2 innocuous_$2
2098 /* System header to define __stub macros and hopefully few prototypes,
2099 which can conflict with char $2 (); below.
2100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2101 <limits.h> exists even on freestanding compilers. */
2103 #ifdef __STDC__
2104 # include <limits.h>
2105 #else
2106 # include <assert.h>
2107 #endif
2109 #undef $2
2111 /* Override any GCC internal prototype to avoid an error.
2112 Use char because int might match the return type of a GCC
2113 builtin and then its argument prototype would still apply. */
2114 #ifdef __cplusplus
2115 extern "C"
2116 #endif
2117 char $2 ();
2118 /* The GNU C library defines this for functions which it implements
2119 to always fail with ENOSYS. Some functions are actually named
2120 something starting with __ and the normal name is an alias. */
2121 #if defined __stub_$2 || defined __stub___$2
2122 choke me
2123 #endif
2126 main ()
2128 return $2 ();
2130 return 0;
2132 _ACEOF
2133 if ac_fn_c_try_link "$LINENO"; then :
2134 eval "$3=yes"
2135 else
2136 eval "$3=no"
2138 rm -f core conftest.err conftest.$ac_objext \
2139 conftest$ac_exeext conftest.$ac_ext
2141 eval ac_res=\$$3
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2143 $as_echo "$ac_res" >&6; }
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2146 } # ac_fn_c_check_func
2147 cat >config.log <<_ACEOF
2148 This file contains any messages produced by compilers while
2149 running configure, to aid debugging if configure makes a mistake.
2151 It was created by $as_me, which was
2152 generated by GNU Autoconf 2.67. Invocation command line was
2154 $ $0 $@
2156 _ACEOF
2157 exec 5>>config.log
2159 cat <<_ASUNAME
2160 ## --------- ##
2161 ## Platform. ##
2162 ## --------- ##
2164 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2165 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2166 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2167 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2168 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2170 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2171 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2173 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2174 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2175 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2176 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2177 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2178 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2179 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2181 _ASUNAME
2183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2184 for as_dir in $PATH
2186 IFS=$as_save_IFS
2187 test -z "$as_dir" && as_dir=.
2188 $as_echo "PATH: $as_dir"
2189 done
2190 IFS=$as_save_IFS
2192 } >&5
2194 cat >&5 <<_ACEOF
2197 ## ----------- ##
2198 ## Core tests. ##
2199 ## ----------- ##
2201 _ACEOF
2204 # Keep a trace of the command line.
2205 # Strip out --no-create and --no-recursion so they do not pile up.
2206 # Strip out --silent because we don't want to record it for future runs.
2207 # Also quote any args containing shell meta-characters.
2208 # Make two passes to allow for proper duplicate-argument suppression.
2209 ac_configure_args=
2210 ac_configure_args0=
2211 ac_configure_args1=
2212 ac_must_keep_next=false
2213 for ac_pass in 1 2
2215 for ac_arg
2217 case $ac_arg in
2218 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2220 | -silent | --silent | --silen | --sile | --sil)
2221 continue ;;
2222 *\'*)
2223 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2224 esac
2225 case $ac_pass in
2226 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2228 as_fn_append ac_configure_args1 " '$ac_arg'"
2229 if test $ac_must_keep_next = true; then
2230 ac_must_keep_next=false # Got value, back to normal.
2231 else
2232 case $ac_arg in
2233 *=* | --config-cache | -C | -disable-* | --disable-* \
2234 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2235 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2236 | -with-* | --with-* | -without-* | --without-* | --x)
2237 case "$ac_configure_args0 " in
2238 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2239 esac
2241 -* ) ac_must_keep_next=true ;;
2242 esac
2244 as_fn_append ac_configure_args " '$ac_arg'"
2246 esac
2247 done
2248 done
2249 { ac_configure_args0=; unset ac_configure_args0;}
2250 { ac_configure_args1=; unset ac_configure_args1;}
2252 # When interrupted or exit'd, cleanup temporary files, and complete
2253 # config.log. We remove comments because anyway the quotes in there
2254 # would cause problems or look ugly.
2255 # WARNING: Use '\'' to represent an apostrophe within the trap.
2256 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2257 trap 'exit_status=$?
2258 # Save into config.log some information that might help in debugging.
2260 echo
2262 $as_echo "## ---------------- ##
2263 ## Cache variables. ##
2264 ## ---------------- ##"
2265 echo
2266 # The following way of writing the cache mishandles newlines in values,
2268 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2269 eval ac_val=\$$ac_var
2270 case $ac_val in #(
2271 *${as_nl}*)
2272 case $ac_var in #(
2273 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2274 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2275 esac
2276 case $ac_var in #(
2277 _ | IFS | as_nl) ;; #(
2278 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2279 *) { eval $ac_var=; unset $ac_var;} ;;
2280 esac ;;
2281 esac
2282 done
2283 (set) 2>&1 |
2284 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2285 *${as_nl}ac_space=\ *)
2286 sed -n \
2287 "s/'\''/'\''\\\\'\'''\''/g;
2288 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2289 ;; #(
2291 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2293 esac |
2294 sort
2296 echo
2298 $as_echo "## ----------------- ##
2299 ## Output variables. ##
2300 ## ----------------- ##"
2301 echo
2302 for ac_var in $ac_subst_vars
2304 eval ac_val=\$$ac_var
2305 case $ac_val in
2306 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2307 esac
2308 $as_echo "$ac_var='\''$ac_val'\''"
2309 done | sort
2310 echo
2312 if test -n "$ac_subst_files"; then
2313 $as_echo "## ------------------- ##
2314 ## File substitutions. ##
2315 ## ------------------- ##"
2316 echo
2317 for ac_var in $ac_subst_files
2319 eval ac_val=\$$ac_var
2320 case $ac_val in
2321 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2322 esac
2323 $as_echo "$ac_var='\''$ac_val'\''"
2324 done | sort
2325 echo
2328 if test -s confdefs.h; then
2329 $as_echo "## ----------- ##
2330 ## confdefs.h. ##
2331 ## ----------- ##"
2332 echo
2333 cat confdefs.h
2334 echo
2336 test "$ac_signal" != 0 &&
2337 $as_echo "$as_me: caught signal $ac_signal"
2338 $as_echo "$as_me: exit $exit_status"
2339 } >&5
2340 rm -f core *.core core.conftest.* &&
2341 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2342 exit $exit_status
2344 for ac_signal in 1 2 13 15; do
2345 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2346 done
2347 ac_signal=0
2349 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2350 rm -f -r conftest* confdefs.h
2352 $as_echo "/* confdefs.h */" > confdefs.h
2354 # Predefined preprocessor variables.
2356 cat >>confdefs.h <<_ACEOF
2357 #define PACKAGE_NAME "$PACKAGE_NAME"
2358 _ACEOF
2360 cat >>confdefs.h <<_ACEOF
2361 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2362 _ACEOF
2364 cat >>confdefs.h <<_ACEOF
2365 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2366 _ACEOF
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_STRING "$PACKAGE_STRING"
2370 _ACEOF
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2374 _ACEOF
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_URL "$PACKAGE_URL"
2378 _ACEOF
2381 # Let the site file select an alternate cache file if it wants to.
2382 # Prefer an explicitly selected file to automatically selected ones.
2383 ac_site_file1=NONE
2384 ac_site_file2=NONE
2385 if test -n "$CONFIG_SITE"; then
2386 # We do not want a PATH search for config.site.
2387 case $CONFIG_SITE in #((
2388 -*) ac_site_file1=./$CONFIG_SITE;;
2389 */*) ac_site_file1=$CONFIG_SITE;;
2390 *) ac_site_file1=./$CONFIG_SITE;;
2391 esac
2392 elif test "x$prefix" != xNONE; then
2393 ac_site_file1=$prefix/share/config.site
2394 ac_site_file2=$prefix/etc/config.site
2395 else
2396 ac_site_file1=$ac_default_prefix/share/config.site
2397 ac_site_file2=$ac_default_prefix/etc/config.site
2399 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2401 test "x$ac_site_file" = xNONE && continue
2402 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2404 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2405 sed 's/^/| /' "$ac_site_file" >&5
2406 . "$ac_site_file" \
2407 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2409 as_fn_error $? "failed to load site script $ac_site_file
2410 See \`config.log' for more details" "$LINENO" 5 ; }
2412 done
2414 if test -r "$cache_file"; then
2415 # Some versions of bash will fail to source /dev/null (special files
2416 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2417 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2419 $as_echo "$as_me: loading cache $cache_file" >&6;}
2420 case $cache_file in
2421 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2422 *) . "./$cache_file";;
2423 esac
2425 else
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2427 $as_echo "$as_me: creating cache $cache_file" >&6;}
2428 >$cache_file
2431 as_fn_append ac_header_list " stdlib.h"
2432 as_fn_append ac_header_list " unistd.h"
2433 as_fn_append ac_header_list " sys/param.h"
2434 # Check that the precious variables saved in the cache have kept the same
2435 # value.
2436 ac_cache_corrupted=false
2437 for ac_var in $ac_precious_vars; do
2438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2439 eval ac_new_set=\$ac_env_${ac_var}_set
2440 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2441 eval ac_new_val=\$ac_env_${ac_var}_value
2442 case $ac_old_set,$ac_new_set in
2443 set,)
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2445 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2446 ac_cache_corrupted=: ;;
2447 ,set)
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2449 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2450 ac_cache_corrupted=: ;;
2451 ,);;
2453 if test "x$ac_old_val" != "x$ac_new_val"; then
2454 # differences in whitespace do not lead to failure.
2455 ac_old_val_w=`echo x $ac_old_val`
2456 ac_new_val_w=`echo x $ac_new_val`
2457 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2459 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2460 ac_cache_corrupted=:
2461 else
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2463 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2464 eval $ac_var=\$ac_old_val
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2467 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2469 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2470 fi;;
2471 esac
2472 # Pass precious variables to config.status.
2473 if test "$ac_new_set" = set; then
2474 case $ac_new_val in
2475 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2476 *) ac_arg=$ac_var=$ac_new_val ;;
2477 esac
2478 case " $ac_configure_args " in
2479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2480 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2481 esac
2483 done
2484 if $ac_cache_corrupted; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2488 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2489 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2491 ## -------------------- ##
2492 ## Main body of script. ##
2493 ## -------------------- ##
2495 ac_ext=c
2496 ac_cpp='$CPP $CPPFLAGS'
2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2503 ac_aux_dir=
2504 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2505 if test -f "$ac_dir/install-sh"; then
2506 ac_aux_dir=$ac_dir
2507 ac_install_sh="$ac_aux_dir/install-sh -c"
2508 break
2509 elif test -f "$ac_dir/install.sh"; then
2510 ac_aux_dir=$ac_dir
2511 ac_install_sh="$ac_aux_dir/install.sh -c"
2512 break
2513 elif test -f "$ac_dir/shtool"; then
2514 ac_aux_dir=$ac_dir
2515 ac_install_sh="$ac_aux_dir/shtool install -c"
2516 break
2518 done
2519 if test -z "$ac_aux_dir"; then
2520 as_fn_error $? "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2523 # These three variables are undocumented and unsupported,
2524 # and are intended to be withdrawn in a future Autoconf release.
2525 # They can cause serious problems if a builder's source tree is in a directory
2526 # whose full name contains unusual characters.
2527 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2528 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2529 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2533 # Check what host we are running on.
2534 # If a target is not suggested, we use this one.
2535 # Note that what we call a target, Autoconf calls a host.
2536 # Make sure we can run config.sub.
2537 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2538 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2541 $as_echo_n "checking build system type... " >&6; }
2542 if test "${ac_cv_build+set}" = set; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 ac_build_alias=$build_alias
2546 test "x$ac_build_alias" = x &&
2547 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2548 test "x$ac_build_alias" = x &&
2549 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2550 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2551 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2555 $as_echo "$ac_cv_build" >&6; }
2556 case $ac_cv_build in
2557 *-*-*) ;;
2558 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2559 esac
2560 build=$ac_cv_build
2561 ac_save_IFS=$IFS; IFS='-'
2562 set x $ac_cv_build
2563 shift
2564 build_cpu=$1
2565 build_vendor=$2
2566 shift; shift
2567 # Remember, the first character of IFS is used to create $*,
2568 # except with old shells:
2569 build_os=$*
2570 IFS=$ac_save_IFS
2571 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2575 $as_echo_n "checking host system type... " >&6; }
2576 if test "${ac_cv_host+set}" = set; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test "x$host_alias" = x; then
2580 ac_cv_host=$ac_cv_build
2581 else
2582 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2583 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2588 $as_echo "$ac_cv_host" >&6; }
2589 case $ac_cv_host in
2590 *-*-*) ;;
2591 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2592 esac
2593 host=$ac_cv_host
2594 ac_save_IFS=$IFS; IFS='-'
2595 set x $ac_cv_host
2596 shift
2597 host_cpu=$1
2598 host_vendor=$2
2599 shift; shift
2600 # Remember, the first character of IFS is used to create $*,
2601 # except with old shells:
2602 host_os=$*
2603 IFS=$ac_save_IFS
2604 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2608 # The AROS target is slightly different to the normal GNU style
2609 # format. We don't have the middle part, and we reverse the order
2610 # of the $(CPU) and $(OS) bits.
2612 # Don't strip the version of the target yet, it might be
2613 # useful on some systems.
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2616 $as_echo_n "checking for AROS style target... " >&6; }
2618 if test "$target" = "NONE" ; then
2619 target=$host_os-$host_cpu
2620 cross_compile=no
2621 else
2622 if test "$target" = "" ; then
2623 target=$host_os-$host_cpu
2624 cross_compile=no
2625 else
2626 cross_compile=yes
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2630 $as_echo "$target" >&6; }
2632 if test "$host_os" = "mingw32" ; then
2633 PWDCMD="pwd -W"
2636 #don't know where else to put this...
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Building AROS in .. " >&5
2638 $as_echo_n "checking Building AROS in .. ... " >&6; }
2639 AROS_BUILDDIR=`${PWDCMD-pwd}`
2640 AROS_BUILDDIR_UNIX=${PWD}
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2642 $as_echo "$AROS_BUILDDIR" >&6; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS Source in .. " >&5
2645 $as_echo_n "checking AROS Source in .. ... " >&6; }
2646 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2647 SRCDIR=${srcpwd}
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2649 $as_echo "$SRCDIR" >&6; }
2651 # Parse the target field into something useful.
2653 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2654 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2657 aros_default_wbwidth=800
2658 aros_default_wbheight=600
2659 aros_default_wbdepth=4
2662 # The first step is to find the host binaries.
2663 # Check for a compiler.
2664 ac_ext=c
2665 ac_cpp='$CPP $CPPFLAGS'
2666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2669 if test -n "$ac_tool_prefix"; then
2670 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2671 set dummy ${ac_tool_prefix}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_CC+set}" = set; then :
2675 $as_echo_n "(cached) " >&6
2676 else
2677 if test -n "$CC"; then
2678 ac_cv_prog_CC="$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_CC="${ac_tool_prefix}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 CC=$ac_cv_prog_CC
2698 if test -n "$CC"; then
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2700 $as_echo "$CC" >&6; }
2701 else
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2703 $as_echo "no" >&6; }
2708 if test -z "$ac_cv_prog_CC"; then
2709 ac_ct_CC=$CC
2710 # Extract the first word of "gcc", so it can be a program name with args.
2711 set dummy gcc; ac_word=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2715 $as_echo_n "(cached) " >&6
2716 else
2717 if test -n "$ac_ct_CC"; then
2718 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2719 else
2720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2721 for as_dir in $PATH
2723 IFS=$as_save_IFS
2724 test -z "$as_dir" && as_dir=.
2725 for ac_exec_ext in '' $ac_executable_extensions; do
2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2727 ac_cv_prog_ac_ct_CC="gcc"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 break 2
2731 done
2732 done
2733 IFS=$as_save_IFS
2737 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2738 if test -n "$ac_ct_CC"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2740 $as_echo "$ac_ct_CC" >&6; }
2741 else
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
2746 if test "x$ac_ct_CC" = x; then
2747 CC=""
2748 else
2749 case $cross_compiling:$ac_tool_warned in
2750 yes:)
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2752 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2753 ac_tool_warned=yes ;;
2754 esac
2755 CC=$ac_ct_CC
2757 else
2758 CC="$ac_cv_prog_CC"
2761 if test -z "$CC"; then
2762 if test -n "$ac_tool_prefix"; then
2763 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2764 set dummy ${ac_tool_prefix}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 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2774 for as_dir in $PATH
2776 IFS=$as_save_IFS
2777 test -z "$as_dir" && as_dir=.
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780 ac_cv_prog_CC="${ac_tool_prefix}cc"
2781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 break 2
2784 done
2785 done
2786 IFS=$as_save_IFS
2790 CC=$ac_cv_prog_CC
2791 if test -n "$CC"; then
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2793 $as_echo "$CC" >&6; }
2794 else
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2796 $as_echo "no" >&6; }
2802 if test -z "$CC"; then
2803 # Extract the first word of "cc", so it can be a program name with args.
2804 set dummy cc; ac_word=$2
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2806 $as_echo_n "checking for $ac_word... " >&6; }
2807 if test "${ac_cv_prog_CC+set}" = set; then :
2808 $as_echo_n "(cached) " >&6
2809 else
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
2812 else
2813 ac_prog_rejected=no
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2817 IFS=$as_save_IFS
2818 test -z "$as_dir" && as_dir=.
2819 for ac_exec_ext in '' $ac_executable_extensions; do
2820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2821 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2822 ac_prog_rejected=yes
2823 continue
2825 ac_cv_prog_CC="cc"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 break 2
2829 done
2830 done
2831 IFS=$as_save_IFS
2833 if test $ac_prog_rejected = yes; then
2834 # We found a bogon in the path, so make sure we never use it.
2835 set dummy $ac_cv_prog_CC
2836 shift
2837 if test $# != 0; then
2838 # We chose a different compiler from the bogus one.
2839 # However, it has the same basename, so the bogon will be chosen
2840 # first if we set CC to just the basename; use the full file name.
2841 shift
2842 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2847 CC=$ac_cv_prog_CC
2848 if test -n "$CC"; then
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2850 $as_echo "$CC" >&6; }
2851 else
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2853 $as_echo "no" >&6; }
2858 if test -z "$CC"; then
2859 if test -n "$ac_tool_prefix"; then
2860 for ac_prog in cl.exe
2862 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2863 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2865 $as_echo_n "checking for $ac_word... " >&6; }
2866 if test "${ac_cv_prog_CC+set}" = set; then :
2867 $as_echo_n "(cached) " >&6
2868 else
2869 if test -n "$CC"; then
2870 ac_cv_prog_CC="$CC" # Let the user override the test.
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_exec_ext in '' $ac_executable_extensions; do
2878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2879 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2881 break 2
2883 done
2884 done
2885 IFS=$as_save_IFS
2889 CC=$ac_cv_prog_CC
2890 if test -n "$CC"; then
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2892 $as_echo "$CC" >&6; }
2893 else
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2895 $as_echo "no" >&6; }
2899 test -n "$CC" && break
2900 done
2902 if test -z "$CC"; then
2903 ac_ct_CC=$CC
2904 for ac_prog in cl.exe
2906 # Extract the first word of "$ac_prog", so it can be a program name with args.
2907 set dummy $ac_prog; ac_word=$2
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2909 $as_echo_n "checking for $ac_word... " >&6; }
2910 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2911 $as_echo_n "(cached) " >&6
2912 else
2913 if test -n "$ac_ct_CC"; then
2914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 ac_cv_prog_ac_ct_CC="$ac_prog"
2924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2927 done
2928 done
2929 IFS=$as_save_IFS
2933 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2934 if test -n "$ac_ct_CC"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2936 $as_echo "$ac_ct_CC" >&6; }
2937 else
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2939 $as_echo "no" >&6; }
2943 test -n "$ac_ct_CC" && break
2944 done
2946 if test "x$ac_ct_CC" = x; then
2947 CC=""
2948 else
2949 case $cross_compiling:$ac_tool_warned in
2950 yes:)
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2953 ac_tool_warned=yes ;;
2954 esac
2955 CC=$ac_ct_CC
2962 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2963 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2964 as_fn_error $? "no acceptable C compiler found in \$PATH
2965 See \`config.log' for more details" "$LINENO" 5 ; }
2967 # Provide some information about the compiler.
2968 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2969 set X $ac_compile
2970 ac_compiler=$2
2971 for ac_option in --version -v -V -qversion; do
2972 { { ac_try="$ac_compiler $ac_option >&5"
2973 case "(($ac_try" in
2974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2975 *) ac_try_echo=$ac_try;;
2976 esac
2977 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2978 $as_echo "$ac_try_echo"; } >&5
2979 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2980 ac_status=$?
2981 if test -s conftest.err; then
2982 sed '10a\
2983 ... rest of stderr output deleted ...
2984 10q' conftest.err >conftest.er1
2985 cat conftest.er1 >&5
2987 rm -f conftest.er1 conftest.err
2988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989 test $ac_status = 0; }
2990 done
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993 /* end confdefs.h. */
2996 main ()
3000 return 0;
3002 _ACEOF
3003 ac_clean_files_save=$ac_clean_files
3004 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3005 # Try to create an executable without -o first, disregard a.out.
3006 # It will help us diagnose broken compilers, and finding out an intuition
3007 # of exeext.
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3009 $as_echo_n "checking whether the C compiler works... " >&6; }
3010 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3012 # The possible output files:
3013 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3015 ac_rmfiles=
3016 for ac_file in $ac_files
3018 case $ac_file in
3019 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3020 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3021 esac
3022 done
3023 rm -f $ac_rmfiles
3025 if { { ac_try="$ac_link_default"
3026 case "(($ac_try" in
3027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3028 *) ac_try_echo=$ac_try;;
3029 esac
3030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3031 $as_echo "$ac_try_echo"; } >&5
3032 (eval "$ac_link_default") 2>&5
3033 ac_status=$?
3034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3035 test $ac_status = 0; }; then :
3036 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3037 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3038 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3039 # so that the user can short-circuit this test for compilers unknown to
3040 # Autoconf.
3041 for ac_file in $ac_files ''
3043 test -f "$ac_file" || continue
3044 case $ac_file in
3045 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3047 [ab].out )
3048 # We found the default executable, but exeext='' is most
3049 # certainly right.
3050 break;;
3051 *.* )
3052 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3053 then :; else
3054 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3056 # We set ac_cv_exeext here because the later test for it is not
3057 # safe: cross compilers may not add the suffix if given an `-o'
3058 # argument, so we may need to know it at that point already.
3059 # Even if this section looks crufty: it has the advantage of
3060 # actually working.
3061 break;;
3063 break;;
3064 esac
3065 done
3066 test "$ac_cv_exeext" = no && ac_cv_exeext=
3068 else
3069 ac_file=''
3071 if test -z "$ac_file"; then :
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073 $as_echo "no" >&6; }
3074 $as_echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3077 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3078 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3079 as_fn_error 77 "C compiler cannot create executables
3080 See \`config.log' for more details" "$LINENO" 5 ; }
3081 else
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3083 $as_echo "yes" >&6; }
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3086 $as_echo_n "checking for C compiler default output file name... " >&6; }
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3088 $as_echo "$ac_file" >&6; }
3089 ac_exeext=$ac_cv_exeext
3091 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3092 ac_clean_files=$ac_clean_files_save
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3094 $as_echo_n "checking for suffix of executables... " >&6; }
3095 if { { ac_try="$ac_link"
3096 case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3099 esac
3100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3101 $as_echo "$ac_try_echo"; } >&5
3102 (eval "$ac_link") 2>&5
3103 ac_status=$?
3104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3105 test $ac_status = 0; }; then :
3106 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3107 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3108 # work properly (i.e., refer to `conftest.exe'), while it won't with
3109 # `rm'.
3110 for ac_file in conftest.exe conftest conftest.*; do
3111 test -f "$ac_file" || continue
3112 case $ac_file in
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3114 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3115 break;;
3116 * ) break;;
3117 esac
3118 done
3119 else
3120 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3123 See \`config.log' for more details" "$LINENO" 5 ; }
3125 rm -f conftest conftest$ac_cv_exeext
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3127 $as_echo "$ac_cv_exeext" >&6; }
3129 rm -f conftest.$ac_ext
3130 EXEEXT=$ac_cv_exeext
3131 ac_exeext=$EXEEXT
3132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3133 /* end confdefs.h. */
3134 #include <stdio.h>
3136 main ()
3138 FILE *f = fopen ("conftest.out", "w");
3139 return ferror (f) || fclose (f) != 0;
3142 return 0;
3144 _ACEOF
3145 ac_clean_files="$ac_clean_files conftest.out"
3146 # Check that the compiler produces executables we can run. If not, either
3147 # the compiler is broken, or we cross compile.
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3149 $as_echo_n "checking whether we are cross compiling... " >&6; }
3150 if test "$cross_compiling" != yes; then
3151 { { ac_try="$ac_link"
3152 case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155 esac
3156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157 $as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_link") 2>&5
3159 ac_status=$?
3160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3161 test $ac_status = 0; }
3162 if { ac_try='./conftest$ac_cv_exeext'
3163 { { case "(($ac_try" in
3164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3165 *) ac_try_echo=$ac_try;;
3166 esac
3167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3168 $as_echo "$ac_try_echo"; } >&5
3169 (eval "$ac_try") 2>&5
3170 ac_status=$?
3171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3172 test $ac_status = 0; }; }; then
3173 cross_compiling=no
3174 else
3175 if test "$cross_compiling" = maybe; then
3176 cross_compiling=yes
3177 else
3178 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3179 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3180 as_fn_error $? "cannot run C compiled programs.
3181 If you meant to cross compile, use \`--host'.
3182 See \`config.log' for more details" "$LINENO" 5 ; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3187 $as_echo "$cross_compiling" >&6; }
3189 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3190 ac_clean_files=$ac_clean_files_save
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3192 $as_echo_n "checking for suffix of object files... " >&6; }
3193 if test "${ac_cv_objext+set}" = set; then :
3194 $as_echo_n "(cached) " >&6
3195 else
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3200 main ()
3204 return 0;
3206 _ACEOF
3207 rm -f conftest.o conftest.obj
3208 if { { ac_try="$ac_compile"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3214 $as_echo "$ac_try_echo"; } >&5
3215 (eval "$ac_compile") 2>&5
3216 ac_status=$?
3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3218 test $ac_status = 0; }; then :
3219 for ac_file in conftest.o conftest.obj conftest.*; do
3220 test -f "$ac_file" || continue;
3221 case $ac_file in
3222 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3223 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3224 break;;
3225 esac
3226 done
3227 else
3228 $as_echo "$as_me: failed program was:" >&5
3229 sed 's/^/| /' conftest.$ac_ext >&5
3231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3233 as_fn_error $? "cannot compute suffix of object files: cannot compile
3234 See \`config.log' for more details" "$LINENO" 5 ; }
3236 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3239 $as_echo "$ac_cv_objext" >&6; }
3240 OBJEXT=$ac_cv_objext
3241 ac_objext=$OBJEXT
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3243 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3244 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3245 $as_echo_n "(cached) " >&6
3246 else
3247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3248 /* end confdefs.h. */
3251 main ()
3253 #ifndef __GNUC__
3254 choke me
3255 #endif
3258 return 0;
3260 _ACEOF
3261 if ac_fn_c_try_compile "$LINENO"; then :
3262 ac_compiler_gnu=yes
3263 else
3264 ac_compiler_gnu=no
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3267 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3271 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3272 if test $ac_compiler_gnu = yes; then
3273 GCC=yes
3274 else
3275 GCC=
3277 ac_test_CFLAGS=${CFLAGS+set}
3278 ac_save_CFLAGS=$CFLAGS
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3280 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3281 if test "${ac_cv_prog_cc_g+set}" = set; then :
3282 $as_echo_n "(cached) " >&6
3283 else
3284 ac_save_c_werror_flag=$ac_c_werror_flag
3285 ac_c_werror_flag=yes
3286 ac_cv_prog_cc_g=no
3287 CFLAGS="-g"
3288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3289 /* end confdefs.h. */
3292 main ()
3296 return 0;
3298 _ACEOF
3299 if ac_fn_c_try_compile "$LINENO"; then :
3300 ac_cv_prog_cc_g=yes
3301 else
3302 CFLAGS=""
3303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3307 main ()
3311 return 0;
3313 _ACEOF
3314 if ac_fn_c_try_compile "$LINENO"; then :
3316 else
3317 ac_c_werror_flag=$ac_save_c_werror_flag
3318 CFLAGS="-g"
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3323 main ()
3327 return 0;
3329 _ACEOF
3330 if ac_fn_c_try_compile "$LINENO"; then :
3331 ac_cv_prog_cc_g=yes
3333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3338 ac_c_werror_flag=$ac_save_c_werror_flag
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3341 $as_echo "$ac_cv_prog_cc_g" >&6; }
3342 if test "$ac_test_CFLAGS" = set; then
3343 CFLAGS=$ac_save_CFLAGS
3344 elif test $ac_cv_prog_cc_g = yes; then
3345 if test "$GCC" = yes; then
3346 CFLAGS="-g -O2"
3347 else
3348 CFLAGS="-g"
3350 else
3351 if test "$GCC" = yes; then
3352 CFLAGS="-O2"
3353 else
3354 CFLAGS=
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3358 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3359 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3360 $as_echo_n "(cached) " >&6
3361 else
3362 ac_cv_prog_cc_c89=no
3363 ac_save_CC=$CC
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3366 #include <stdarg.h>
3367 #include <stdio.h>
3368 #include <sys/types.h>
3369 #include <sys/stat.h>
3370 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3371 struct buf { int x; };
3372 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3373 static char *e (p, i)
3374 char **p;
3375 int i;
3377 return p[i];
3379 static char *f (char * (*g) (char **, int), char **p, ...)
3381 char *s;
3382 va_list v;
3383 va_start (v,p);
3384 s = g (p, va_arg (v,int));
3385 va_end (v);
3386 return s;
3389 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3390 function prototypes and stuff, but not '\xHH' hex character constants.
3391 These don't provoke an error unfortunately, instead are silently treated
3392 as 'x'. The following induces an error, until -std is added to get
3393 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3394 array size at least. It's necessary to write '\x00'==0 to get something
3395 that's true only with -std. */
3396 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3398 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3399 inside strings and character constants. */
3400 #define FOO(x) 'x'
3401 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3403 int test (int i, double x);
3404 struct s1 {int (*f) (int a);};
3405 struct s2 {int (*f) (double a);};
3406 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3407 int argc;
3408 char **argv;
3410 main ()
3412 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3414 return 0;
3416 _ACEOF
3417 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3418 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3420 CC="$ac_save_CC $ac_arg"
3421 if ac_fn_c_try_compile "$LINENO"; then :
3422 ac_cv_prog_cc_c89=$ac_arg
3424 rm -f core conftest.err conftest.$ac_objext
3425 test "x$ac_cv_prog_cc_c89" != "xno" && break
3426 done
3427 rm -f conftest.$ac_ext
3428 CC=$ac_save_CC
3431 # AC_CACHE_VAL
3432 case "x$ac_cv_prog_cc_c89" in
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3435 $as_echo "none needed" >&6; } ;;
3436 xno)
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3438 $as_echo "unsupported" >&6; } ;;
3440 CC="$CC $ac_cv_prog_cc_c89"
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3442 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3443 esac
3444 if test "x$ac_cv_prog_cc_c89" != xno; then :
3448 ac_ext=c
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454 case $ac_cv_prog_cc_stdc in #(
3455 no) :
3456 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3457 *) :
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3459 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3460 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 ac_cv_prog_cc_c99=no
3464 ac_save_CC=$CC
3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3466 /* end confdefs.h. */
3467 #include <stdarg.h>
3468 #include <stdbool.h>
3469 #include <stdlib.h>
3470 #include <wchar.h>
3471 #include <stdio.h>
3473 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3474 #define debug(...) fprintf (stderr, __VA_ARGS__)
3475 #define showlist(...) puts (#__VA_ARGS__)
3476 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3477 static void
3478 test_varargs_macros (void)
3480 int x = 1234;
3481 int y = 5678;
3482 debug ("Flag");
3483 debug ("X = %d\n", x);
3484 showlist (The first, second, and third items.);
3485 report (x>y, "x is %d but y is %d", x, y);
3488 // Check long long types.
3489 #define BIG64 18446744073709551615ull
3490 #define BIG32 4294967295ul
3491 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3492 #if !BIG_OK
3493 your preprocessor is broken;
3494 #endif
3495 #if BIG_OK
3496 #else
3497 your preprocessor is broken;
3498 #endif
3499 static long long int bignum = -9223372036854775807LL;
3500 static unsigned long long int ubignum = BIG64;
3502 struct incomplete_array
3504 int datasize;
3505 double data[];
3508 struct named_init {
3509 int number;
3510 const wchar_t *name;
3511 double average;
3514 typedef const char *ccp;
3516 static inline int
3517 test_restrict (ccp restrict text)
3519 // See if C++-style comments work.
3520 // Iterate through items via the restricted pointer.
3521 // Also check for declarations in for loops.
3522 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3523 continue;
3524 return 0;
3527 // Check varargs and va_copy.
3528 static void
3529 test_varargs (const char *format, ...)
3531 va_list args;
3532 va_start (args, format);
3533 va_list args_copy;
3534 va_copy (args_copy, args);
3536 const char *str;
3537 int number;
3538 float fnumber;
3540 while (*format)
3542 switch (*format++)
3544 case 's': // string
3545 str = va_arg (args_copy, const char *);
3546 break;
3547 case 'd': // int
3548 number = va_arg (args_copy, int);
3549 break;
3550 case 'f': // float
3551 fnumber = va_arg (args_copy, double);
3552 break;
3553 default:
3554 break;
3557 va_end (args_copy);
3558 va_end (args);
3562 main ()
3565 // Check bool.
3566 _Bool success = false;
3568 // Check restrict.
3569 if (test_restrict ("String literal") == 0)
3570 success = true;
3571 char *restrict newvar = "Another string";
3573 // Check varargs.
3574 test_varargs ("s, d' f .", "string", 65, 34.234);
3575 test_varargs_macros ();
3577 // Check flexible array members.
3578 struct incomplete_array *ia =
3579 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3580 ia->datasize = 10;
3581 for (int i = 0; i < ia->datasize; ++i)
3582 ia->data[i] = i * 1.234;
3584 // Check named initializers.
3585 struct named_init ni = {
3586 .number = 34,
3587 .name = L"Test wide string",
3588 .average = 543.34343,
3591 ni.number = 58;
3593 int dynamic_array[ni.number];
3594 dynamic_array[ni.number - 1] = 543;
3596 // work around unused variable warnings
3597 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3598 || dynamic_array[ni.number - 1] != 543);
3601 return 0;
3603 _ACEOF
3604 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3606 CC="$ac_save_CC $ac_arg"
3607 if ac_fn_c_try_compile "$LINENO"; then :
3608 ac_cv_prog_cc_c99=$ac_arg
3610 rm -f core conftest.err conftest.$ac_objext
3611 test "x$ac_cv_prog_cc_c99" != "xno" && break
3612 done
3613 rm -f conftest.$ac_ext
3614 CC=$ac_save_CC
3617 # AC_CACHE_VAL
3618 case "x$ac_cv_prog_cc_c99" in
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3621 $as_echo "none needed" >&6; } ;;
3622 xno)
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3624 $as_echo "unsupported" >&6; } ;;
3626 CC="$CC $ac_cv_prog_cc_c99"
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3628 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3629 esac
3630 if test "x$ac_cv_prog_cc_c99" != xno; then :
3631 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3632 else
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3634 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3635 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 ac_cv_prog_cc_c89=no
3639 ac_save_CC=$CC
3640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3641 /* end confdefs.h. */
3642 #include <stdarg.h>
3643 #include <stdio.h>
3644 #include <sys/types.h>
3645 #include <sys/stat.h>
3646 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3647 struct buf { int x; };
3648 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3649 static char *e (p, i)
3650 char **p;
3651 int i;
3653 return p[i];
3655 static char *f (char * (*g) (char **, int), char **p, ...)
3657 char *s;
3658 va_list v;
3659 va_start (v,p);
3660 s = g (p, va_arg (v,int));
3661 va_end (v);
3662 return s;
3665 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3666 function prototypes and stuff, but not '\xHH' hex character constants.
3667 These don't provoke an error unfortunately, instead are silently treated
3668 as 'x'. The following induces an error, until -std is added to get
3669 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3670 array size at least. It's necessary to write '\x00'==0 to get something
3671 that's true only with -std. */
3672 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3674 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3675 inside strings and character constants. */
3676 #define FOO(x) 'x'
3677 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3679 int test (int i, double x);
3680 struct s1 {int (*f) (int a);};
3681 struct s2 {int (*f) (double a);};
3682 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3683 int argc;
3684 char **argv;
3686 main ()
3688 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3690 return 0;
3692 _ACEOF
3693 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3694 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3696 CC="$ac_save_CC $ac_arg"
3697 if ac_fn_c_try_compile "$LINENO"; then :
3698 ac_cv_prog_cc_c89=$ac_arg
3700 rm -f core conftest.err conftest.$ac_objext
3701 test "x$ac_cv_prog_cc_c89" != "xno" && break
3702 done
3703 rm -f conftest.$ac_ext
3704 CC=$ac_save_CC
3707 # AC_CACHE_VAL
3708 case "x$ac_cv_prog_cc_c89" in
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3711 $as_echo "none needed" >&6; } ;;
3712 xno)
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3714 $as_echo "unsupported" >&6; } ;;
3716 CC="$CC $ac_cv_prog_cc_c89"
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3718 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3719 esac
3720 if test "x$ac_cv_prog_cc_c89" != xno; then :
3721 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3722 else
3723 ac_cv_prog_cc_stdc=no
3728 esac
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3730 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3731 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3732 $as_echo_n "(cached) " >&6
3735 case $ac_cv_prog_cc_stdc in #(
3736 no) :
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3738 $as_echo "unsupported" >&6; } ;; #(
3739 '') :
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3741 $as_echo "none needed" >&6; } ;; #(
3742 *) :
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3744 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3745 esac
3747 ac_ext=c
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3753 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3754 # On Suns, sometimes $CPP names a directory.
3755 if test -n "$CPP" && test -d "$CPP"; then
3756 CPP=
3758 if test -z "$CPP"; then
3759 if test "${ac_cv_prog_CPP+set}" = set; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 # Double quotes because CPP needs to be expanded
3763 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3765 ac_preproc_ok=false
3766 for ac_c_preproc_warn_flag in '' yes
3768 # Use a header file that comes with gcc, so configuring glibc
3769 # with a fresh cross-compiler works.
3770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3771 # <limits.h> exists even on freestanding compilers.
3772 # On the NeXT, cc -E runs the code through the compiler's parser,
3773 # not just through cpp. "Syntax error" is here to catch this case.
3774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775 /* end confdefs.h. */
3776 #ifdef __STDC__
3777 # include <limits.h>
3778 #else
3779 # include <assert.h>
3780 #endif
3781 Syntax error
3782 _ACEOF
3783 if ac_fn_c_try_cpp "$LINENO"; then :
3785 else
3786 # Broken: fails on valid input.
3787 continue
3789 rm -f conftest.err conftest.i conftest.$ac_ext
3791 # OK, works on sane cases. Now check whether nonexistent headers
3792 # can be detected and how.
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795 #include <ac_nonexistent.h>
3796 _ACEOF
3797 if ac_fn_c_try_cpp "$LINENO"; then :
3798 # Broken: success on invalid input.
3799 continue
3800 else
3801 # Passes both tests.
3802 ac_preproc_ok=:
3803 break
3805 rm -f conftest.err conftest.i conftest.$ac_ext
3807 done
3808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3809 rm -f conftest.i conftest.err conftest.$ac_ext
3810 if $ac_preproc_ok; then :
3811 break
3814 done
3815 ac_cv_prog_CPP=$CPP
3818 CPP=$ac_cv_prog_CPP
3819 else
3820 ac_cv_prog_CPP=$CPP
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3823 $as_echo "$CPP" >&6; }
3824 ac_preproc_ok=false
3825 for ac_c_preproc_warn_flag in '' yes
3827 # Use a header file that comes with gcc, so configuring glibc
3828 # with a fresh cross-compiler works.
3829 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3830 # <limits.h> exists even on freestanding compilers.
3831 # On the NeXT, cc -E runs the code through the compiler's parser,
3832 # not just through cpp. "Syntax error" is here to catch this case.
3833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3834 /* end confdefs.h. */
3835 #ifdef __STDC__
3836 # include <limits.h>
3837 #else
3838 # include <assert.h>
3839 #endif
3840 Syntax error
3841 _ACEOF
3842 if ac_fn_c_try_cpp "$LINENO"; then :
3844 else
3845 # Broken: fails on valid input.
3846 continue
3848 rm -f conftest.err conftest.i conftest.$ac_ext
3850 # OK, works on sane cases. Now check whether nonexistent headers
3851 # can be detected and how.
3852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h. */
3854 #include <ac_nonexistent.h>
3855 _ACEOF
3856 if ac_fn_c_try_cpp "$LINENO"; then :
3857 # Broken: success on invalid input.
3858 continue
3859 else
3860 # Passes both tests.
3861 ac_preproc_ok=:
3862 break
3864 rm -f conftest.err conftest.i conftest.$ac_ext
3866 done
3867 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3868 rm -f conftest.i conftest.err conftest.$ac_ext
3869 if $ac_preproc_ok; then :
3871 else
3872 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3873 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3874 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3875 See \`config.log' for more details" "$LINENO" 5 ; }
3878 ac_ext=c
3879 ac_cpp='$CPP $CPPFLAGS'
3880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3885 # Check for a compatible awk
3886 for ac_prog in gawk nawk
3888 # Extract the first word of "$ac_prog", so it can be a program name with args.
3889 set dummy $ac_prog; ac_word=$2
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891 $as_echo_n "checking for $ac_word... " >&6; }
3892 if test "${ac_cv_prog_AWK+set}" = set; then :
3893 $as_echo_n "(cached) " >&6
3894 else
3895 if test -n "$AWK"; then
3896 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3901 IFS=$as_save_IFS
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905 ac_cv_prog_AWK="$ac_prog"
3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 break 2
3909 done
3910 done
3911 IFS=$as_save_IFS
3915 AWK=$ac_cv_prog_AWK
3916 if test -n "$AWK"; then
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3918 $as_echo "$AWK" >&6; }
3919 else
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921 $as_echo "no" >&6; }
3925 test -n "$AWK" && break
3926 done
3928 if test "$AWK" = ""; then
3929 as_fn_error $? "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3931 # Extract the first word of "mmake", so it can be a program name with args.
3932 set dummy mmake; ac_word=$2
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934 $as_echo_n "checking for $ac_word... " >&6; }
3935 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3936 $as_echo_n "(cached) " >&6
3937 else
3938 if test -n "$MMAKE"; then
3939 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3940 else
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3948 ac_cv_prog_MMAKE="mmake "
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3952 done
3953 done
3954 IFS=$as_save_IFS
3958 MMAKE=$ac_cv_prog_MMAKE
3959 if test -n "$MMAKE"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3961 $as_echo "$MMAKE" >&6; }
3962 else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3969 # Perform some default variable assignments. Note all of these will be
3970 # Regenerated from the script, so there is no need to cache them.
3972 aros_host_cc="$CC"
3973 if test "$GCC" = "yes"; then
3974 aros_gcc_ld=`$CC -print-prog-name=ld`
3975 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3976 set dummy `basename $aros_gcc_ld`; ac_word=$2
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978 $as_echo_n "checking for $ac_word... " >&6; }
3979 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3980 $as_echo_n "(cached) " >&6
3981 else
3982 case $aros_host_ld in
3983 [\\/]* | ?:[\\/]*)
3984 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in `dirname $aros_gcc_ld`
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
3993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3994 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 break 2
3998 done
3999 done
4000 IFS=$as_save_IFS
4003 esac
4005 aros_host_ld=$ac_cv_path_aros_host_ld
4006 if test -n "$aros_host_ld"; then
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4008 $as_echo "$aros_host_ld" >&6; }
4009 else
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4011 $as_echo "no" >&6; }
4016 if test "$aros_host_ld" = ""; then
4017 # Extract the first word of "ld", so it can be a program name with args.
4018 set dummy ld; ac_word=$2
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4020 $as_echo_n "checking for $ac_word... " >&6; }
4021 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
4022 $as_echo_n "(cached) " >&6
4023 else
4024 case $aros_host_ld in
4025 [\\/]* | ?:[\\/]*)
4026 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 for as_dir in $PATH
4032 IFS=$as_save_IFS
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4036 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
4037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4038 break 2
4040 done
4041 done
4042 IFS=$as_save_IFS
4045 esac
4047 aros_host_ld=$ac_cv_path_aros_host_ld
4048 if test -n "$aros_host_ld"; then
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4050 $as_echo "$aros_host_ld" >&6; }
4051 else
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 $as_echo "no" >&6; }
4058 if test "$aros_host_ld" = ""; then
4059 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4061 aros_host_make="make"
4062 aros_host_cflags=$CFLAGS
4063 aros_host_ldflags=$LDFLAGS
4064 aros_host_debug="-g -O0"
4065 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4066 aros_host_mkargs="--no-print-directory"
4067 aros_host_incl="/usr/include"
4068 aros_host_exe_suffix="$EXEEXT"
4069 aros_host_lib_suffix=""
4071 for ac_prog in aclocal aclocal19 aclocal-1.9
4073 # Extract the first word of "$ac_prog", so it can be a program name with args.
4074 set dummy $ac_prog; ac_word=$2
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076 $as_echo_n "checking for $ac_word... " >&6; }
4077 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4078 $as_echo_n "(cached) " >&6
4079 else
4080 if test -n "$aros_host_aclocal"; then
4081 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4082 else
4083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4084 for as_dir in $PATH
4086 IFS=$as_save_IFS
4087 test -z "$as_dir" && as_dir=.
4088 for ac_exec_ext in '' $ac_executable_extensions; do
4089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4090 ac_cv_prog_aros_host_aclocal="$ac_prog"
4091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4092 break 2
4094 done
4095 done
4096 IFS=$as_save_IFS
4100 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4101 if test -n "$aros_host_aclocal"; then
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4103 $as_echo "$aros_host_aclocal" >&6; }
4104 else
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106 $as_echo "no" >&6; }
4110 test -n "$aros_host_aclocal" && break
4111 done
4113 for ac_prog in autoconf autoconf259 autoconf253
4115 # Extract the first word of "$ac_prog", so it can be a program name with args.
4116 set dummy $ac_prog; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if test -n "$aros_host_autoconf"; then
4123 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4128 IFS=$as_save_IFS
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4132 ac_cv_prog_aros_host_autoconf="$ac_prog"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134 break 2
4136 done
4137 done
4138 IFS=$as_save_IFS
4142 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4143 if test -n "$aros_host_autoconf"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4145 $as_echo "$aros_host_autoconf" >&6; }
4146 else
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4152 test -n "$aros_host_autoconf" && break
4153 done
4155 for ac_prog in autoheader autoheader259 autoheader253
4157 # Extract the first word of "$ac_prog", so it can be a program name with args.
4158 set dummy $ac_prog; ac_word=$2
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 $as_echo_n "checking for $ac_word... " >&6; }
4161 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4162 $as_echo_n "(cached) " >&6
4163 else
4164 if test -n "$aros_host_autoheader"; then
4165 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174 ac_cv_prog_aros_host_autoheader="$ac_prog"
4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4178 done
4179 done
4180 IFS=$as_save_IFS
4184 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4185 if test -n "$aros_host_autoheader"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4187 $as_echo "$aros_host_autoheader" >&6; }
4188 else
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4194 test -n "$aros_host_autoheader" && break
4195 done
4197 for ac_prog in automake automake19 automake-1.9
4199 # Extract the first word of "$ac_prog", so it can be a program name with args.
4200 set dummy $ac_prog; ac_word=$2
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4204 $as_echo_n "(cached) " >&6
4205 else
4206 if test -n "$aros_host_automake"; then
4207 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_aros_host_automake="$ac_prog"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4220 done
4221 done
4222 IFS=$as_save_IFS
4226 aros_host_automake=$ac_cv_prog_aros_host_automake
4227 if test -n "$aros_host_automake"; then
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4229 $as_echo "$aros_host_automake" >&6; }
4230 else
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4232 $as_echo "no" >&6; }
4236 test -n "$aros_host_automake" && break
4237 done
4240 if test "$aros_host_aclocal" = ""; then
4241 as_fn_error $? "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4243 if test "$aros_host_automake" = ""; then
4244 as_fn_error $? "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4247 case "$aros_host_cc" in
4248 *gcc*)
4249 aros_host_cc_pipe="-pipe"
4251 icc)
4252 aros_host_cc_pipe=""
4255 aros_host_cc_pipe=""
4257 esac
4259 aros_kernel_cc_includes=""
4260 aros_target_cc_includes=""
4262 # This is the main host configuration section. It is where the host
4263 # can change the values of any variables it needs to change. We do
4264 # not look at anything that compiles to the target yet, we'll get
4265 # to that later.
4267 case "$host_os" in
4268 aros*)
4269 aros_host_arch="aros"
4270 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4271 case "$host_cpu" in
4272 *i?86*)
4273 aros_host_cpu="i386"
4275 *x86_64*)
4276 aros_host_cpu="x86_64"
4278 *powerpc*)
4279 aros_host_cpu="ppc"
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4283 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4284 aros_host_cpu="$host_cpu"
4286 esac
4289 linux*)
4290 aros_host_arch="linux"
4291 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4292 case "$host_cpu" in
4293 *i?86*)
4294 aros_host_cpu="i386"
4296 *x86_64*)
4297 aros_host_cpu="x86_64"
4299 *m68k*)
4300 aros_host_cpu="m68k"
4302 *powerpc*)
4303 aros_host_cpu="ppc"
4305 *arm*)
4306 aros_host_cpu="arm"
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4310 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4311 aros_host_cpu="$host_cpu"
4313 esac
4316 freebsd*)
4317 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4318 aros_host_make="gmake"
4319 aros_host_arch="freebsd"
4320 aros_host_cpu="i386"
4322 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4324 case $host_os in
4325 freebsd[234]*)
4326 aros_object_format="elf_i386"
4330 aros_object_format="elf_i386_fbsd"
4332 esac
4336 darwin*)
4337 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4338 aros_host_arch="darwin"
4339 case "$host_cpu" in
4340 *i?86*)
4341 aros_host_cpu="i386"
4343 *x86_64*)
4344 aros_host_cpu="x86_64"
4346 *powerpc*)
4347 aros_host_cpu="ppc"
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4351 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4352 aros_host_cpu="$host_cpu"
4354 esac
4356 aros_host_ldflags="$aros_host_ldflags -liconv"
4360 dragonfly*)
4361 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4362 aros_host_make="gmake"
4363 aros_host_arch="dragonfly"
4364 case $host_cpu in
4365 *i?86*)
4366 aros_host_cpu="i386"
4368 *amd64*)
4369 aros_host_cpu="x86_64"
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4373 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4374 aros_host_cpu="$host_cpu"
4376 esac
4379 netbsd*)
4380 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4381 aros_host_make="gmake"
4382 aros_host_arch="netbsd"
4383 case "$host_cpu" in
4384 *i?86*)
4385 aros_host_cpu="i386"
4387 *m68k*)
4388 aros_host_cpu="m68k"
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4392 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4393 aros_host_cpu="$host_cpu"
4395 esac
4396 aros_host_lib_suffix=".0.0"
4399 openbsd*)
4400 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4401 aros_host_make="gmake"
4402 aros_host_arch="openbsd"
4403 case "$host_cpu" in
4404 *i?86*)
4405 aros_host_cpu="i386"
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4409 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4410 aros_host_cpu="$host_cpu"
4412 esac
4415 solaris*)
4416 aros_host_arch="solaris"
4417 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4418 case "$host_cpu" in
4419 *i?86*)
4420 aros_host_cpu="i386"
4422 *sparc*)
4423 aros_host_cpu="sparc"
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4427 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4428 aros_host_cpu="$host_cpu"
4430 esac
4433 morphos*)
4434 aros_host_arch="morphos"
4435 aros_host_cpu="ppc"
4438 amiga*)
4439 aros_host_arch="amiga"
4440 SORT="/gg/bin/sort"
4441 TEST="/gg/bin/test"
4442 UNIQ="/gg/bin/uniq"
4443 FOR="for"
4444 TOUCH="/gg/bin/touch"
4445 case "$host_cpu" in
4446 *m68k*)
4447 aros_host_cpu="m68k"
4449 *powerpc*)
4450 aros_host_cpu="ppc"
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4454 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4455 aros_host_cpu="$host_cpu"
4457 esac
4460 cygwin*)
4461 aros_host_arch="cygwin"
4462 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4463 android_build_os="windows"
4464 android_tool="android.bat"
4465 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4467 case "$host_cpu" in
4468 *i?86*)
4469 aros_host_cpu="i386"
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4473 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4474 aros_host_cpu="$host_cpu"
4476 esac
4479 mingw32*)
4480 aros_host_arch="mingw32"
4481 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4482 android_build_os="windows"
4483 android_tool="android.bat"
4484 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4486 case "$host_cpu" in
4487 *i?86*)
4488 aros_host_cpu="i386"
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4492 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4493 aros_host_cpu="$host_cpu"
4495 esac
4498 as_fn_error $? "Unsupported host architecture $host" "$LINENO" 5
4500 esac
4502 # Extract the first word of "ar", so it can be a program name with args.
4503 set dummy ar; ac_word=$2
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4505 $as_echo_n "checking for $ac_word... " >&6; }
4506 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4507 $as_echo_n "(cached) " >&6
4508 else
4509 if test -n "$aros_host_ar"; then
4510 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4511 else
4512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4513 for as_dir in $PATH
4515 IFS=$as_save_IFS
4516 test -z "$as_dir" && as_dir=.
4517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4519 ac_cv_prog_aros_host_ar="ar cr"
4520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4523 done
4524 done
4525 IFS=$as_save_IFS
4529 aros_host_ar=$ac_cv_prog_aros_host_ar
4530 if test -n "$aros_host_ar"; then
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4532 $as_echo "$aros_host_ar" >&6; }
4533 else
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4535 $as_echo "no" >&6; }
4539 if test "$aros_host_ar" = ""; then
4540 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4542 # Extract the first word of "ranlib", so it can be a program name with args.
4543 set dummy ranlib; ac_word=$2
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4545 $as_echo_n "checking for $ac_word... " >&6; }
4546 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4547 $as_echo_n "(cached) " >&6
4548 else
4549 if test -n "$aros_host_ranlib"; then
4550 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4551 else
4552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 for as_dir in $PATH
4555 IFS=$as_save_IFS
4556 test -z "$as_dir" && as_dir=.
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4559 ac_cv_prog_aros_host_ranlib="ranlib "
4560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 break 2
4563 done
4564 done
4565 IFS=$as_save_IFS
4569 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4570 if test -n "$aros_host_ranlib"; then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4572 $as_echo "$aros_host_ranlib" >&6; }
4573 else
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo "no" >&6; }
4579 if test "$aros_host_ranlib" = ""; then
4580 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4582 # Extract the first word of "strip", so it can be a program name with args.
4583 set dummy strip; ac_word=$2
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4585 $as_echo_n "checking for $ac_word... " >&6; }
4586 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4587 $as_echo_n "(cached) " >&6
4588 else
4589 if test -n "$aros_host_strip"; then
4590 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4591 else
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4599 ac_cv_prog_aros_host_strip="strip "
4600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4601 break 2
4603 done
4604 done
4605 IFS=$as_save_IFS
4609 aros_host_strip=$ac_cv_prog_aros_host_strip
4610 if test -n "$aros_host_strip"; then
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4612 $as_echo "$aros_host_strip" >&6; }
4613 else
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4615 $as_echo "no" >&6; }
4619 if test "$aros_host_strip" = ""; then
4620 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4623 # Extract the first word of "rm", so it can be a program name with args.
4624 set dummy rm; ac_word=$2
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4626 $as_echo_n "checking for $ac_word... " >&6; }
4627 if test "${ac_cv_prog_RM+set}" = set; then :
4628 $as_echo_n "(cached) " >&6
4629 else
4630 if test -n "$RM"; then
4631 ac_cv_prog_RM="$RM" # Let the user override the test.
4632 else
4633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 for as_dir in $PATH
4636 IFS=$as_save_IFS
4637 test -z "$as_dir" && as_dir=.
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4640 ac_cv_prog_RM="rm -rf"
4641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4642 break 2
4644 done
4645 done
4646 IFS=$as_save_IFS
4650 RM=$ac_cv_prog_RM
4651 if test -n "$RM"; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4653 $as_echo "$RM" >&6; }
4654 else
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 $as_echo "no" >&6; }
4660 if test "$RM" = ""; then
4661 as_fn_error $? "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4663 # Extract the first word of "cp", so it can be a program name with args.
4664 set dummy cp; ac_word=$2
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 $as_echo_n "checking for $ac_word... " >&6; }
4667 if test "${ac_cv_prog_CP+set}" = set; then :
4668 $as_echo_n "(cached) " >&6
4669 else
4670 if test -n "$CP"; then
4671 ac_cv_prog_CP="$CP" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_CP="cp "
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4684 done
4685 done
4686 IFS=$as_save_IFS
4690 CP=$ac_cv_prog_CP
4691 if test -n "$CP"; then
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4693 $as_echo "$CP" >&6; }
4694 else
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4696 $as_echo "no" >&6; }
4700 if test "$CP" = ""; then
4701 as_fn_error $? "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4703 # Extract the first word of "mv", so it can be a program name with args.
4704 set dummy mv; ac_word=$2
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4706 $as_echo_n "checking for $ac_word... " >&6; }
4707 if test "${ac_cv_prog_MV+set}" = set; then :
4708 $as_echo_n "(cached) " >&6
4709 else
4710 if test -n "$MV"; then
4711 ac_cv_prog_MV="$MV" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_MV="mv "
4721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4724 done
4725 done
4726 IFS=$as_save_IFS
4730 MV=$ac_cv_prog_MV
4731 if test -n "$MV"; then
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4733 $as_echo "$MV" >&6; }
4734 else
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4736 $as_echo "no" >&6; }
4740 if test "$MV" = ""; then
4741 as_fn_error $? "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4743 # Extract the first word of "echo", so it can be a program name with args.
4744 set dummy echo; ac_word=$2
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4746 $as_echo_n "checking for $ac_word... " >&6; }
4747 if test "${ac_cv_prog_ECHO+set}" = set; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if test -n "$ECHO"; then
4751 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4752 else
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_ECHO="echo "
4761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4762 break 2
4764 done
4765 done
4766 IFS=$as_save_IFS
4770 ECHO=$ac_cv_prog_ECHO
4771 if test -n "$ECHO"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4773 $as_echo "$ECHO" >&6; }
4774 else
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4776 $as_echo "no" >&6; }
4780 if test "$ECHO" = ""; then
4781 as_fn_error $? "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4783 # Extract the first word of "mkdir", so it can be a program name with args.
4784 set dummy mkdir; ac_word=$2
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4786 $as_echo_n "checking for $ac_word... " >&6; }
4787 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 if test -n "$MKDIR"; then
4791 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4792 else
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_prog_MKDIR="mkdir -p"
4801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 break 2
4804 done
4805 done
4806 IFS=$as_save_IFS
4810 MKDIR=$ac_cv_prog_MKDIR
4811 if test -n "$MKDIR"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4813 $as_echo "$MKDIR" >&6; }
4814 else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4820 if test "$MKDIR" = ""; then
4821 as_fn_error $? "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4823 # Extract the first word of "touch", so it can be a program name with args.
4824 set dummy touch; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 if test -n "$TOUCH"; then
4831 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4832 else
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_prog_TOUCH="touch "
4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 break 2
4844 done
4845 done
4846 IFS=$as_save_IFS
4850 TOUCH=$ac_cv_prog_TOUCH
4851 if test -n "$TOUCH"; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4853 $as_echo "$TOUCH" >&6; }
4854 else
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4860 if test "$TOUCH" = ""; then
4861 as_fn_error $? "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4863 # Extract the first word of "sort", so it can be a program name with args.
4864 set dummy sort; ac_word=$2
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 $as_echo_n "checking for $ac_word... " >&6; }
4867 if test "${ac_cv_prog_SORT+set}" = set; then :
4868 $as_echo_n "(cached) " >&6
4869 else
4870 if test -n "$SORT"; then
4871 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4872 else
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in $PATH
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_prog_SORT="sort "
4881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4884 done
4885 done
4886 IFS=$as_save_IFS
4890 SORT=$ac_cv_prog_SORT
4891 if test -n "$SORT"; then
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4893 $as_echo "$SORT" >&6; }
4894 else
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 $as_echo "no" >&6; }
4900 if test "$SORT" = ""; then
4901 as_fn_error $? "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4903 # Extract the first word of "uniq", so it can be a program name with args.
4904 set dummy uniq; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$UNIQ"; then
4911 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_UNIQ="uniq "
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4924 done
4925 done
4926 IFS=$as_save_IFS
4930 UNIQ=$ac_cv_prog_UNIQ
4931 if test -n "$UNIQ"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4933 $as_echo "$UNIQ" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4940 if test "$UNIQ" = ""; then
4941 as_fn_error $? "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4943 # Extract the first word of "true", so it can be a program name with args.
4944 set dummy true; ac_word=$2
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4946 $as_echo_n "checking for $ac_word... " >&6; }
4947 if test "${ac_cv_prog_NOP+set}" = set; then :
4948 $as_echo_n "(cached) " >&6
4949 else
4950 if test -n "$NOP"; then
4951 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4952 else
4953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954 for as_dir in $PATH
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
4958 for ac_exec_ext in '' $ac_executable_extensions; do
4959 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4960 ac_cv_prog_NOP="true "
4961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4962 break 2
4964 done
4965 done
4966 IFS=$as_save_IFS
4970 NOP=$ac_cv_prog_NOP
4971 if test -n "$NOP"; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4973 $as_echo "$NOP" >&6; }
4974 else
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4976 $as_echo "no" >&6; }
4980 if test "$NOP" = ""; then
4981 as_fn_error $? "true is required to build AROS. Please install and run configure again." "$LINENO" 5
4983 # Extract the first word of "cat", so it can be a program name with args.
4984 set dummy cat; ac_word=$2
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4986 $as_echo_n "checking for $ac_word... " >&6; }
4987 if test "${ac_cv_prog_CAT+set}" = set; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if test -n "$CAT"; then
4991 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4992 else
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_exec_ext in '' $ac_executable_extensions; do
4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5000 ac_cv_prog_CAT="cat "
5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5002 break 2
5004 done
5005 done
5006 IFS=$as_save_IFS
5010 CAT=$ac_cv_prog_CAT
5011 if test -n "$CAT"; then
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
5013 $as_echo "$CAT" >&6; }
5014 else
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5016 $as_echo "no" >&6; }
5020 if test "$CAT" = ""; then
5021 as_fn_error $? "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
5023 # Extract the first word of "bison", so it can be a program name with args.
5024 set dummy bison; ac_word=$2
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5026 $as_echo_n "checking for $ac_word... " >&6; }
5027 if test "${ac_cv_prog_BISON+set}" = set; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 if test -n "$BISON"; then
5031 ac_cv_prog_BISON="$BISON" # Let the user override the test.
5032 else
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_prog_BISON="bison "
5041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5044 done
5045 done
5046 IFS=$as_save_IFS
5050 BISON=$ac_cv_prog_BISON
5051 if test -n "$BISON"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5053 $as_echo "$BISON" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5056 $as_echo "no" >&6; }
5060 if test "$BISON" = ""; then
5061 as_fn_error $? "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5063 # Extract the first word of "flex", so it can be a program name with args.
5064 set dummy flex; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if test "${ac_cv_prog_FLEX+set}" = set; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if test -n "$FLEX"; then
5071 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5072 else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5080 ac_cv_prog_FLEX="flex "
5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 break 2
5084 done
5085 done
5086 IFS=$as_save_IFS
5090 FLEX=$ac_cv_prog_FLEX
5091 if test -n "$FLEX"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5093 $as_echo "$FLEX" >&6; }
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5100 if test "$FLEX" = ""; then
5101 as_fn_error $? "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5103 # Extract the first word of "pngtopnm", so it can be a program name with args.
5104 set dummy pngtopnm; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5108 $as_echo_n "(cached) " >&6
5109 else
5110 if test -n "$PNGTOPNM"; then
5111 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5112 else
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_prog_PNGTOPNM="pngtopnm "
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5124 done
5125 done
5126 IFS=$as_save_IFS
5130 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5131 if test -n "$PNGTOPNM"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5133 $as_echo "$PNGTOPNM" >&6; }
5134 else
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5140 if test "$PNGTOPNM" = ""; then
5141 as_fn_error $? "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5143 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5144 set dummy ppmtoilbm; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if test -n "$PPMTOILBM"; then
5151 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5164 done
5165 done
5166 IFS=$as_save_IFS
5170 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5171 if test -n "$PPMTOILBM"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5173 $as_echo "$PPMTOILBM" >&6; }
5174 else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5180 if test "$PPMTOILBM" = ""; then
5181 as_fn_error $? "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5183 # Extract the first word of "sed", so it can be a program name with args.
5184 set dummy sed; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if test "${ac_cv_prog_SED+set}" = set; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$SED"; then
5191 ac_cv_prog_SED="$SED" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5200 ac_cv_prog_SED="sed "
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5206 IFS=$as_save_IFS
5210 SED=$ac_cv_prog_SED
5211 if test -n "$SED"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5213 $as_echo "$SED" >&6; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5220 if test "$SED" = ""; then
5221 as_fn_error $? "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5223 # Extract the first word of "chmod", so it can be a program name with args.
5224 set dummy chmod; ac_word=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 if test -n "$CHMOD"; then
5231 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_prog_CHMOD="chmod "
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5244 done
5245 done
5246 IFS=$as_save_IFS
5250 CHMOD=$ac_cv_prog_CHMOD
5251 if test -n "$CHMOD"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5253 $as_echo "$CHMOD" >&6; }
5254 else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5260 if test "$CHMOD" = ""; then
5261 as_fn_error $? "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5263 # Extract the first word of "patch", so it can be a program name with args.
5264 set dummy patch; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if test "${ac_cv_prog_PATCH+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -n "$PATCH"; then
5271 ac_cv_prog_PATCH="$PATCH" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280 ac_cv_prog_PATCH="patch "
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5284 done
5285 done
5286 IFS=$as_save_IFS
5290 PATCH=$ac_cv_prog_PATCH
5291 if test -n "$PATCH"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
5293 $as_echo "$PATCH" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5300 if test "$PATCH" = ""; then
5301 as_fn_error $? "patch is required to build AROS. Please install and run configure again." "$LINENO" 5
5308 if test -n "$PYTHON"; then
5309 # If the user set $PYTHON, use it and don't search something else.
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5311 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5312 prog="import sys, string
5313 # split strings by '.' and convert to numeric. Append some zeros
5314 # because we need at least 4 digits for the hex conversion.
5315 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5316 minverhex = 0
5317 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5318 sys.exit(sys.hexversion < minverhex)"
5319 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5320 ($PYTHON -c "$prog") >&5 2>&5
5321 ac_status=$?
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); }; then :
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5325 $as_echo "yes" >&6; }
5326 else
5327 as_fn_error $? "too old" "$LINENO" 5
5329 am_display_PYTHON=$PYTHON
5330 else
5331 # Otherwise, try each interpreter until we find one that satisfies
5332 # VERSION.
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5334 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5335 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5339 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
5340 test "$am_cv_pathless_PYTHON" = none && break
5341 prog="import sys, string
5342 # split strings by '.' and convert to numeric. Append some zeros
5343 # because we need at least 4 digits for the hex conversion.
5344 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5345 minverhex = 0
5346 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5347 sys.exit(sys.hexversion < minverhex)"
5348 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5349 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5350 ac_status=$?
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; then :
5353 break
5355 done
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5358 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5359 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5360 if test "$am_cv_pathless_PYTHON" = none; then
5361 PYTHON=:
5362 else
5363 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5364 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if test "${ac_cv_path_PYTHON+set}" = set; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 case $PYTHON in
5371 [\\/]* | ?:[\\/]*)
5372 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5376 for as_dir in $PATH
5378 IFS=$as_save_IFS
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5382 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 break 2
5386 done
5387 done
5388 IFS=$as_save_IFS
5391 esac
5393 PYTHON=$ac_cv_path_PYTHON
5394 if test -n "$PYTHON"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5396 $as_echo "$PYTHON" >&6; }
5397 else
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5404 am_display_PYTHON=$am_cv_pathless_PYTHON
5408 if test "$PYTHON" = :; then
5409 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5410 else
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5414 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5415 if test "${am_cv_python_version+set}" = set; then :
5416 $as_echo_n "(cached) " >&6
5417 else
5418 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5421 $as_echo "$am_cv_python_version" >&6; }
5422 PYTHON_VERSION=$am_cv_python_version
5426 PYTHON_PREFIX='${prefix}'
5428 PYTHON_EXEC_PREFIX='${exec_prefix}'
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5433 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5434 if test "${am_cv_python_platform+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5440 $as_echo "$am_cv_python_platform" >&6; }
5441 PYTHON_PLATFORM=$am_cv_python_platform
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5447 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5448 if test "${am_cv_python_pythondir+set}" = set; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5452 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5455 $as_echo "$am_cv_python_pythondir" >&6; }
5456 pythondir=$am_cv_python_pythondir
5460 pkgpythondir=\${pythondir}/$PACKAGE
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5464 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5465 if test "${am_cv_python_pyexecdir+set}" = set; then :
5466 $as_echo_n "(cached) " >&6
5467 else
5468 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5469 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5472 $as_echo "$am_cv_python_pyexecdir" >&6; }
5473 pyexecdir=$am_cv_python_pyexecdir
5477 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5485 FOR=for
5487 IF=if
5489 TEST=test
5491 CMP=cmp
5495 # Check for some includes for the X11 HIDD and the kernel
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5499 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5500 if test "${ac_cv_path_GREP+set}" = set; then :
5501 $as_echo_n "(cached) " >&6
5502 else
5503 if test -z "$GREP"; then
5504 ac_path_GREP_found=false
5505 # Loop through the user's path and test for each of PROGNAME-LIST
5506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5507 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5509 IFS=$as_save_IFS
5510 test -z "$as_dir" && as_dir=.
5511 for ac_prog in grep ggrep; do
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5514 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5515 # Check for GNU ac_path_GREP and select it if it is found.
5516 # Check for GNU $ac_path_GREP
5517 case `"$ac_path_GREP" --version 2>&1` in
5518 *GNU*)
5519 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5521 ac_count=0
5522 $as_echo_n 0123456789 >"conftest.in"
5523 while :
5525 cat "conftest.in" "conftest.in" >"conftest.tmp"
5526 mv "conftest.tmp" "conftest.in"
5527 cp "conftest.in" "conftest.nl"
5528 $as_echo 'GREP' >> "conftest.nl"
5529 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5531 as_fn_arith $ac_count + 1 && ac_count=$as_val
5532 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5533 # Best one so far, save it but keep looking for a better one
5534 ac_cv_path_GREP="$ac_path_GREP"
5535 ac_path_GREP_max=$ac_count
5537 # 10*(2^10) chars as input seems more than enough
5538 test $ac_count -gt 10 && break
5539 done
5540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5541 esac
5543 $ac_path_GREP_found && break 3
5544 done
5545 done
5546 done
5547 IFS=$as_save_IFS
5548 if test -z "$ac_cv_path_GREP"; then
5549 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5551 else
5552 ac_cv_path_GREP=$GREP
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5557 $as_echo "$ac_cv_path_GREP" >&6; }
5558 GREP="$ac_cv_path_GREP"
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5562 $as_echo_n "checking for egrep... " >&6; }
5563 if test "${ac_cv_path_EGREP+set}" = set; then :
5564 $as_echo_n "(cached) " >&6
5565 else
5566 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5567 then ac_cv_path_EGREP="$GREP -E"
5568 else
5569 if test -z "$EGREP"; then
5570 ac_path_EGREP_found=false
5571 # Loop through the user's path and test for each of PROGNAME-LIST
5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5573 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5575 IFS=$as_save_IFS
5576 test -z "$as_dir" && as_dir=.
5577 for ac_prog in egrep; do
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5580 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5581 # Check for GNU ac_path_EGREP and select it if it is found.
5582 # Check for GNU $ac_path_EGREP
5583 case `"$ac_path_EGREP" --version 2>&1` in
5584 *GNU*)
5585 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5587 ac_count=0
5588 $as_echo_n 0123456789 >"conftest.in"
5589 while :
5591 cat "conftest.in" "conftest.in" >"conftest.tmp"
5592 mv "conftest.tmp" "conftest.in"
5593 cp "conftest.in" "conftest.nl"
5594 $as_echo 'EGREP' >> "conftest.nl"
5595 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5596 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5597 as_fn_arith $ac_count + 1 && ac_count=$as_val
5598 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5599 # Best one so far, save it but keep looking for a better one
5600 ac_cv_path_EGREP="$ac_path_EGREP"
5601 ac_path_EGREP_max=$ac_count
5603 # 10*(2^10) chars as input seems more than enough
5604 test $ac_count -gt 10 && break
5605 done
5606 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5607 esac
5609 $ac_path_EGREP_found && break 3
5610 done
5611 done
5612 done
5613 IFS=$as_save_IFS
5614 if test -z "$ac_cv_path_EGREP"; then
5615 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5617 else
5618 ac_cv_path_EGREP=$EGREP
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5624 $as_echo "$ac_cv_path_EGREP" >&6; }
5625 EGREP="$ac_cv_path_EGREP"
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5629 $as_echo_n "checking for ANSI C header files... " >&6; }
5630 if test "${ac_cv_header_stdc+set}" = set; then :
5631 $as_echo_n "(cached) " >&6
5632 else
5633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634 /* end confdefs.h. */
5635 #include <stdlib.h>
5636 #include <stdarg.h>
5637 #include <string.h>
5638 #include <float.h>
5641 main ()
5645 return 0;
5647 _ACEOF
5648 if ac_fn_c_try_compile "$LINENO"; then :
5649 ac_cv_header_stdc=yes
5650 else
5651 ac_cv_header_stdc=no
5653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5655 if test $ac_cv_header_stdc = yes; then
5656 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5658 /* end confdefs.h. */
5659 #include <string.h>
5661 _ACEOF
5662 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5663 $EGREP "memchr" >/dev/null 2>&1; then :
5665 else
5666 ac_cv_header_stdc=no
5668 rm -f conftest*
5672 if test $ac_cv_header_stdc = yes; then
5673 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5675 /* end confdefs.h. */
5676 #include <stdlib.h>
5678 _ACEOF
5679 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5680 $EGREP "free" >/dev/null 2>&1; then :
5682 else
5683 ac_cv_header_stdc=no
5685 rm -f conftest*
5689 if test $ac_cv_header_stdc = yes; then
5690 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5691 if test "$cross_compiling" = yes; then :
5693 else
5694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5695 /* end confdefs.h. */
5696 #include <ctype.h>
5697 #include <stdlib.h>
5698 #if ((' ' & 0x0FF) == 0x020)
5699 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5700 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5701 #else
5702 # define ISLOWER(c) \
5703 (('a' <= (c) && (c) <= 'i') \
5704 || ('j' <= (c) && (c) <= 'r') \
5705 || ('s' <= (c) && (c) <= 'z'))
5706 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5707 #endif
5709 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5711 main ()
5713 int i;
5714 for (i = 0; i < 256; i++)
5715 if (XOR (islower (i), ISLOWER (i))
5716 || toupper (i) != TOUPPER (i))
5717 return 2;
5718 return 0;
5720 _ACEOF
5721 if ac_fn_c_try_run "$LINENO"; then :
5723 else
5724 ac_cv_header_stdc=no
5726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5727 conftest.$ac_objext conftest.beam conftest.$ac_ext
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5733 $as_echo "$ac_cv_header_stdc" >&6; }
5734 if test $ac_cv_header_stdc = yes; then
5736 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5740 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5741 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5742 inttypes.h stdint.h unistd.h
5743 do :
5744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5745 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5747 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5748 cat >>confdefs.h <<_ACEOF
5749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5750 _ACEOF
5754 done
5757 for ac_header in sys/ipc.h sys/shm.h \
5758 sys/mmap.h sys/mman.h sysexits.h \
5759 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5761 do :
5762 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5763 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5764 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5765 cat >>confdefs.h <<_ACEOF
5766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5767 _ACEOF
5771 done
5774 for ac_header in sys/mount.h
5775 do :
5776 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5778 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5779 cat >>confdefs.h <<_ACEOF
5780 #define HAVE_SYS_MOUNT_H 1
5781 _ACEOF
5785 done
5788 ac_header_dirent=no
5789 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5790 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5792 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5793 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
5794 $as_echo_n "(cached) " >&6
5795 else
5796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797 /* end confdefs.h. */
5798 #include <sys/types.h>
5799 #include <$ac_hdr>
5802 main ()
5804 if ((DIR *) 0)
5805 return 0;
5807 return 0;
5809 _ACEOF
5810 if ac_fn_c_try_compile "$LINENO"; then :
5811 eval "$as_ac_Header=yes"
5812 else
5813 eval "$as_ac_Header=no"
5815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5817 eval ac_res=\$$as_ac_Header
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5819 $as_echo "$ac_res" >&6; }
5820 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5821 cat >>confdefs.h <<_ACEOF
5822 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5823 _ACEOF
5825 ac_header_dirent=$ac_hdr; break
5828 done
5829 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5830 if test $ac_header_dirent = dirent.h; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5832 $as_echo_n "checking for library containing opendir... " >&6; }
5833 if test "${ac_cv_search_opendir+set}" = set; then :
5834 $as_echo_n "(cached) " >&6
5835 else
5836 ac_func_search_save_LIBS=$LIBS
5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5838 /* end confdefs.h. */
5840 /* Override any GCC internal prototype to avoid an error.
5841 Use char because int might match the return type of a GCC
5842 builtin and then its argument prototype would still apply. */
5843 #ifdef __cplusplus
5844 extern "C"
5845 #endif
5846 char opendir ();
5848 main ()
5850 return opendir ();
5852 return 0;
5854 _ACEOF
5855 for ac_lib in '' dir; do
5856 if test -z "$ac_lib"; then
5857 ac_res="none required"
5858 else
5859 ac_res=-l$ac_lib
5860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5862 if ac_fn_c_try_link "$LINENO"; then :
5863 ac_cv_search_opendir=$ac_res
5865 rm -f core conftest.err conftest.$ac_objext \
5866 conftest$ac_exeext
5867 if test "${ac_cv_search_opendir+set}" = set; then :
5868 break
5870 done
5871 if test "${ac_cv_search_opendir+set}" = set; then :
5873 else
5874 ac_cv_search_opendir=no
5876 rm conftest.$ac_ext
5877 LIBS=$ac_func_search_save_LIBS
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5880 $as_echo "$ac_cv_search_opendir" >&6; }
5881 ac_res=$ac_cv_search_opendir
5882 if test "$ac_res" != no; then :
5883 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5887 else
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5889 $as_echo_n "checking for library containing opendir... " >&6; }
5890 if test "${ac_cv_search_opendir+set}" = set; then :
5891 $as_echo_n "(cached) " >&6
5892 else
5893 ac_func_search_save_LIBS=$LIBS
5894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895 /* end confdefs.h. */
5897 /* Override any GCC internal prototype to avoid an error.
5898 Use char because int might match the return type of a GCC
5899 builtin and then its argument prototype would still apply. */
5900 #ifdef __cplusplus
5901 extern "C"
5902 #endif
5903 char opendir ();
5905 main ()
5907 return opendir ();
5909 return 0;
5911 _ACEOF
5912 for ac_lib in '' x; do
5913 if test -z "$ac_lib"; then
5914 ac_res="none required"
5915 else
5916 ac_res=-l$ac_lib
5917 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5919 if ac_fn_c_try_link "$LINENO"; then :
5920 ac_cv_search_opendir=$ac_res
5922 rm -f core conftest.err conftest.$ac_objext \
5923 conftest$ac_exeext
5924 if test "${ac_cv_search_opendir+set}" = set; then :
5925 break
5927 done
5928 if test "${ac_cv_search_opendir+set}" = set; then :
5930 else
5931 ac_cv_search_opendir=no
5933 rm conftest.$ac_ext
5934 LIBS=$ac_func_search_save_LIBS
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5937 $as_echo "$ac_cv_search_opendir" >&6; }
5938 ac_res=$ac_cv_search_opendir
5939 if test "$ac_res" != no; then :
5940 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5947 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5948 if test "${ac_cv_header_stat_broken+set}" = set; then :
5949 $as_echo_n "(cached) " >&6
5950 else
5951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5952 /* end confdefs.h. */
5953 #include <sys/types.h>
5954 #include <sys/stat.h>
5956 #if defined S_ISBLK && defined S_IFDIR
5957 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5958 #endif
5960 #if defined S_ISBLK && defined S_IFCHR
5961 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5962 #endif
5964 #if defined S_ISLNK && defined S_IFREG
5965 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5966 #endif
5968 #if defined S_ISSOCK && defined S_IFREG
5969 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5970 #endif
5972 _ACEOF
5973 if ac_fn_c_try_compile "$LINENO"; then :
5974 ac_cv_header_stat_broken=no
5975 else
5976 ac_cv_header_stat_broken=yes
5978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5981 $as_echo "$ac_cv_header_stat_broken" >&6; }
5982 if test $ac_cv_header_stat_broken = yes; then
5984 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5989 $as_echo_n "checking for ANSI C header files... " >&6; }
5990 if test "${ac_cv_header_stdc+set}" = set; then :
5991 $as_echo_n "(cached) " >&6
5992 else
5993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5994 /* end confdefs.h. */
5995 #include <stdlib.h>
5996 #include <stdarg.h>
5997 #include <string.h>
5998 #include <float.h>
6001 main ()
6005 return 0;
6007 _ACEOF
6008 if ac_fn_c_try_compile "$LINENO"; then :
6009 ac_cv_header_stdc=yes
6010 else
6011 ac_cv_header_stdc=no
6013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 if test $ac_cv_header_stdc = yes; then
6016 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6018 /* end confdefs.h. */
6019 #include <string.h>
6021 _ACEOF
6022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6023 $EGREP "memchr" >/dev/null 2>&1; then :
6025 else
6026 ac_cv_header_stdc=no
6028 rm -f conftest*
6032 if test $ac_cv_header_stdc = yes; then
6033 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6035 /* end confdefs.h. */
6036 #include <stdlib.h>
6038 _ACEOF
6039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6040 $EGREP "free" >/dev/null 2>&1; then :
6042 else
6043 ac_cv_header_stdc=no
6045 rm -f conftest*
6049 if test $ac_cv_header_stdc = yes; then
6050 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6051 if test "$cross_compiling" = yes; then :
6053 else
6054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6055 /* end confdefs.h. */
6056 #include <ctype.h>
6057 #include <stdlib.h>
6058 #if ((' ' & 0x0FF) == 0x020)
6059 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6060 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6061 #else
6062 # define ISLOWER(c) \
6063 (('a' <= (c) && (c) <= 'i') \
6064 || ('j' <= (c) && (c) <= 'r') \
6065 || ('s' <= (c) && (c) <= 'z'))
6066 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6067 #endif
6069 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6071 main ()
6073 int i;
6074 for (i = 0; i < 256; i++)
6075 if (XOR (islower (i), ISLOWER (i))
6076 || toupper (i) != TOUPPER (i))
6077 return 2;
6078 return 0;
6080 _ACEOF
6081 if ac_fn_c_try_run "$LINENO"; then :
6083 else
6084 ac_cv_header_stdc=no
6086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6087 conftest.$ac_objext conftest.beam conftest.$ac_ext
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6093 $as_echo "$ac_cv_header_stdc" >&6; }
6094 if test $ac_cv_header_stdc = yes; then
6096 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6101 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6102 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6103 $as_echo_n "(cached) " >&6
6104 else
6105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6106 /* end confdefs.h. */
6107 #include <sys/types.h>
6108 #include <sys/wait.h>
6109 #ifndef WEXITSTATUS
6110 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6111 #endif
6112 #ifndef WIFEXITED
6113 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6114 #endif
6117 main ()
6119 int s;
6120 wait (&s);
6121 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6123 return 0;
6125 _ACEOF
6126 if ac_fn_c_try_compile "$LINENO"; then :
6127 ac_cv_header_sys_wait_h=yes
6128 else
6129 ac_cv_header_sys_wait_h=no
6131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6134 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6135 if test $ac_cv_header_sys_wait_h = yes; then
6137 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6142 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6143 if test "${ac_cv_header_time+set}" = set; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6147 /* end confdefs.h. */
6148 #include <sys/types.h>
6149 #include <sys/time.h>
6150 #include <time.h>
6153 main ()
6155 if ((struct tm *) 0)
6156 return 0;
6158 return 0;
6160 _ACEOF
6161 if ac_fn_c_try_compile "$LINENO"; then :
6162 ac_cv_header_time=yes
6163 else
6164 ac_cv_header_time=no
6166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6169 $as_echo "$ac_cv_header_time" >&6; }
6170 if test $ac_cv_header_time = yes; then
6172 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6176 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6177 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6179 cat >>confdefs.h <<_ACEOF
6180 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6181 _ACEOF
6184 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6189 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6190 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6192 cat >>confdefs.h <<_ACEOF
6193 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6194 _ACEOF
6197 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6199 else
6200 case " $LIBOBJS " in
6201 *" fileblocks.$ac_objext "* ) ;;
6202 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6204 esac
6209 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6210 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6212 cat >>confdefs.h <<_ACEOF
6213 #define HAVE_STRUCT_STAT_ST_RDEV 1
6214 _ACEOF
6217 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6223 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6224 if test "${ac_cv_struct_tm+set}" = set; then :
6225 $as_echo_n "(cached) " >&6
6226 else
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6229 #include <sys/types.h>
6230 #include <time.h>
6233 main ()
6235 struct tm tm;
6236 int *p = &tm.tm_sec;
6237 return !p;
6239 return 0;
6241 _ACEOF
6242 if ac_fn_c_try_compile "$LINENO"; then :
6243 ac_cv_struct_tm=time.h
6244 else
6245 ac_cv_struct_tm=sys/time.h
6247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6250 $as_echo "$ac_cv_struct_tm" >&6; }
6251 if test $ac_cv_struct_tm = sys/time.h; then
6253 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6257 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6258 #include <$ac_cv_struct_tm>
6261 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6263 cat >>confdefs.h <<_ACEOF
6264 #define HAVE_STRUCT_TM_TM_ZONE 1
6265 _ACEOF
6270 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6272 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6274 else
6275 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6277 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6278 ac_have_decl=1
6279 else
6280 ac_have_decl=0
6283 cat >>confdefs.h <<_ACEOF
6284 #define HAVE_DECL_TZNAME $ac_have_decl
6285 _ACEOF
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6288 $as_echo_n "checking for tzname... " >&6; }
6289 if test "${ac_cv_var_tzname+set}" = set; then :
6290 $as_echo_n "(cached) " >&6
6291 else
6292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6293 /* end confdefs.h. */
6294 #include <time.h>
6295 #if !HAVE_DECL_TZNAME
6296 extern char *tzname[];
6297 #endif
6300 main ()
6302 return tzname[0][0];
6304 return 0;
6306 _ACEOF
6307 if ac_fn_c_try_link "$LINENO"; then :
6308 ac_cv_var_tzname=yes
6309 else
6310 ac_cv_var_tzname=no
6312 rm -f core conftest.err conftest.$ac_objext \
6313 conftest$ac_exeext conftest.$ac_ext
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6316 $as_echo "$ac_cv_var_tzname" >&6; }
6317 if test $ac_cv_var_tzname = yes; then
6319 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6324 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6325 if test "x$ac_cv_type_off_t" = x""yes; then :
6327 else
6329 cat >>confdefs.h <<_ACEOF
6330 #define off_t long int
6331 _ACEOF
6335 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6336 if test "x$ac_cv_type_pid_t" = x""yes; then :
6338 else
6340 cat >>confdefs.h <<_ACEOF
6341 #define pid_t int
6342 _ACEOF
6346 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6347 if test "x$ac_cv_type_size_t" = x""yes; then :
6349 else
6351 cat >>confdefs.h <<_ACEOF
6352 #define size_t unsigned int
6353 _ACEOF
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6358 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6359 if test "${ac_cv_type_uid_t+set}" = set; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363 /* end confdefs.h. */
6364 #include <sys/types.h>
6366 _ACEOF
6367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6368 $EGREP "uid_t" >/dev/null 2>&1; then :
6369 ac_cv_type_uid_t=yes
6370 else
6371 ac_cv_type_uid_t=no
6373 rm -f conftest*
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6377 $as_echo "$ac_cv_type_uid_t" >&6; }
6378 if test $ac_cv_type_uid_t = no; then
6380 $as_echo "#define uid_t int" >>confdefs.h
6383 $as_echo "#define gid_t int" >>confdefs.h
6388 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6389 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6391 cat >>confdefs.h <<_ACEOF
6392 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6393 _ACEOF
6399 # Look for some functions
6400 for ac_func in getpagesize kqueue statfs statvfs \
6401 clone kse_create rfork_thread thr_create sa_register \
6402 getcontext makecontext setcontext sigaltstack swapcontext
6403 do :
6404 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6405 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6406 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6407 cat >>confdefs.h <<_ACEOF
6408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6409 _ACEOF
6412 done
6418 for ac_header in $ac_header_list
6419 do :
6420 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6421 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6424 cat >>confdefs.h <<_ACEOF
6425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6426 _ACEOF
6430 done
6439 for ac_func in getpagesize
6440 do :
6441 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6442 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6443 cat >>confdefs.h <<_ACEOF
6444 #define HAVE_GETPAGESIZE 1
6445 _ACEOF
6448 done
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6451 $as_echo_n "checking for working mmap... " >&6; }
6452 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 if test "$cross_compiling" = yes; then :
6456 ac_cv_func_mmap_fixed_mapped=no
6457 else
6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6459 /* end confdefs.h. */
6460 $ac_includes_default
6461 /* malloc might have been renamed as rpl_malloc. */
6462 #undef malloc
6464 /* Thanks to Mike Haertel and Jim Avera for this test.
6465 Here is a matrix of mmap possibilities:
6466 mmap private not fixed
6467 mmap private fixed at somewhere currently unmapped
6468 mmap private fixed at somewhere already mapped
6469 mmap shared not fixed
6470 mmap shared fixed at somewhere currently unmapped
6471 mmap shared fixed at somewhere already mapped
6472 For private mappings, we should verify that changes cannot be read()
6473 back from the file, nor mmap's back from the file at a different
6474 address. (There have been systems where private was not correctly
6475 implemented like the infamous i386 svr4.0, and systems where the
6476 VM page cache was not coherent with the file system buffer cache
6477 like early versions of FreeBSD and possibly contemporary NetBSD.)
6478 For shared mappings, we should conversely verify that changes get
6479 propagated back to all the places they're supposed to be.
6481 Grep wants private fixed already mapped.
6482 The main things grep needs to know about mmap are:
6483 * does it exist and is it safe to write into the mmap'd area
6484 * how to use it (BSD variants) */
6486 #include <fcntl.h>
6487 #include <sys/mman.h>
6489 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6490 char *malloc ();
6491 #endif
6493 /* This mess was copied from the GNU getpagesize.h. */
6494 #ifndef HAVE_GETPAGESIZE
6495 # ifdef _SC_PAGESIZE
6496 # define getpagesize() sysconf(_SC_PAGESIZE)
6497 # else /* no _SC_PAGESIZE */
6498 # ifdef HAVE_SYS_PARAM_H
6499 # include <sys/param.h>
6500 # ifdef EXEC_PAGESIZE
6501 # define getpagesize() EXEC_PAGESIZE
6502 # else /* no EXEC_PAGESIZE */
6503 # ifdef NBPG
6504 # define getpagesize() NBPG * CLSIZE
6505 # ifndef CLSIZE
6506 # define CLSIZE 1
6507 # endif /* no CLSIZE */
6508 # else /* no NBPG */
6509 # ifdef NBPC
6510 # define getpagesize() NBPC
6511 # else /* no NBPC */
6512 # ifdef PAGESIZE
6513 # define getpagesize() PAGESIZE
6514 # endif /* PAGESIZE */
6515 # endif /* no NBPC */
6516 # endif /* no NBPG */
6517 # endif /* no EXEC_PAGESIZE */
6518 # else /* no HAVE_SYS_PARAM_H */
6519 # define getpagesize() 8192 /* punt totally */
6520 # endif /* no HAVE_SYS_PARAM_H */
6521 # endif /* no _SC_PAGESIZE */
6523 #endif /* no HAVE_GETPAGESIZE */
6526 main ()
6528 char *data, *data2, *data3;
6529 const char *cdata2;
6530 int i, pagesize;
6531 int fd, fd2;
6533 pagesize = getpagesize ();
6535 /* First, make a file with some known garbage in it. */
6536 data = (char *) malloc (pagesize);
6537 if (!data)
6538 return 1;
6539 for (i = 0; i < pagesize; ++i)
6540 *(data + i) = rand ();
6541 umask (0);
6542 fd = creat ("conftest.mmap", 0600);
6543 if (fd < 0)
6544 return 2;
6545 if (write (fd, data, pagesize) != pagesize)
6546 return 3;
6547 close (fd);
6549 /* Next, check that the tail of a page is zero-filled. File must have
6550 non-zero length, otherwise we risk SIGBUS for entire page. */
6551 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
6552 if (fd2 < 0)
6553 return 4;
6554 cdata2 = "";
6555 if (write (fd2, cdata2, 1) != 1)
6556 return 5;
6557 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
6558 if (data2 == MAP_FAILED)
6559 return 6;
6560 for (i = 0; i < pagesize; ++i)
6561 if (*(data2 + i))
6562 return 7;
6563 close (fd2);
6564 if (munmap (data2, pagesize))
6565 return 8;
6567 /* Next, try to mmap the file at a fixed address which already has
6568 something else allocated at it. If we can, also make sure that
6569 we see the same garbage. */
6570 fd = open ("conftest.mmap", O_RDWR);
6571 if (fd < 0)
6572 return 9;
6573 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6574 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6575 return 10;
6576 for (i = 0; i < pagesize; ++i)
6577 if (*(data + i) != *(data2 + i))
6578 return 11;
6580 /* Finally, make sure that changes to the mapped area do not
6581 percolate back to the file as seen by read(). (This is a bug on
6582 some variants of i386 svr4.0.) */
6583 for (i = 0; i < pagesize; ++i)
6584 *(data2 + i) = *(data2 + i) + 1;
6585 data3 = (char *) malloc (pagesize);
6586 if (!data3)
6587 return 12;
6588 if (read (fd, data3, pagesize) != pagesize)
6589 return 13;
6590 for (i = 0; i < pagesize; ++i)
6591 if (*(data + i) != *(data3 + i))
6592 return 14;
6593 close (fd);
6594 return 0;
6596 _ACEOF
6597 if ac_fn_c_try_run "$LINENO"; then :
6598 ac_cv_func_mmap_fixed_mapped=yes
6599 else
6600 ac_cv_func_mmap_fixed_mapped=no
6602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6603 conftest.$ac_objext conftest.beam conftest.$ac_ext
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6608 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6609 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6611 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6614 rm -f conftest.mmap conftest.txt
6619 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6620 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6621 aros_config_ldflags=""
6623 aros_shared_default=yes
6625 aros_shared_cflags="-fPIC"
6626 aros_shared_aflags=""
6627 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6628 aros_kernel_ldflags="-Wl,-rpath,./lib"
6630 aros_target_ar_flags="cr"
6631 aros_target_nm_flags="-C -ul"
6632 aros_target_strip_flags="--strip-unneeded -R.comment"
6634 aros_compiler_libs=
6635 aros_arch_libs=
6637 aros_target_genmap="-Wl,-Map -Xlinker"
6639 # Native flavour stuff
6640 aros_serial_debug="0"
6642 # Palm native flavour stuff
6643 aros_palm_debug_hack="0"
6645 # Unix flavour stuff
6646 aros_nesting_supervisor="0"
6648 # Collect-aros stuff: "-ius" to ignore undefined symbols
6649 ignore_undefined_symbols=""
6651 # Check for X11 by default
6652 need_x11="auto"
6654 #-----------------------------------------------------------------------------
6657 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6658 # it switched on by default, and we use the host compiler, so it compiles AROS
6659 # code with this enabled resulting in link failures as we don't have support
6660 # for it.
6662 # We use two methods to disable it. For the host compiler (used to compile
6663 # some hosted modules), we test to see if the compiler supports stack
6664 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6665 # work on all platforms.
6667 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6668 # (this is done unconditionally, as it should have no effect on compilers
6669 # without the stack protection feature). This may be specific to the way that
6670 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6671 # strong enough to disable it in a generic way though, so we'll live with it
6672 # until another vendor ships GCC with it enabled in a different way, and deal
6673 # with it then.
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6677 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6678 save_cflags="$CFLAGS"
6679 CFLAGS="$CFLAGS -fno-stack-protector"
6680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6681 /* end confdefs.h. */
6684 main ()
6688 return 0;
6690 _ACEOF
6691 if ac_fn_c_try_compile "$LINENO"; then :
6692 use_no_stack_protector="yes"
6693 else
6694 use_no_stack_protector="no"
6696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6698 $as_echo "$use_no_stack_protector" >&6; }
6699 if test "x-$use_no_stack_protector" = "x-yes" ; then
6700 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6702 CFLAGS="$save_cflags"
6704 #-----------------------------------------------------------------------------
6706 # Disable pointer-signedness warnings if the compiler recognises the option
6707 # (this only works for the host compiler at the moment)
6709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6710 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6711 save_cflags="$CFLAGS"
6712 CFLAGS="$CFLAGS -Wno-pointer-sign"
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6714 /* end confdefs.h. */
6717 main ()
6721 return 0;
6723 _ACEOF
6724 if ac_fn_c_try_compile "$LINENO"; then :
6725 use_no_sign_warning="yes"
6726 else
6727 use_no_sign_warning="no"
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6731 $as_echo "$use_no_sign_warning" >&6; }
6732 if test "x-$use_no_sign_warning" = "x-yes" ; then
6733 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6735 CFLAGS="$save_cflags"
6737 #-----------------------------------------------------------------------------
6739 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6742 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6743 save_cflags="$CFLAGS"
6744 CFLAGS="$CFLAGS -fgnu89-inline"
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746 /* end confdefs.h. */
6749 main ()
6753 return 0;
6755 _ACEOF
6756 if ac_fn_c_try_compile "$LINENO"; then :
6757 use_gnu89_inline="yes"
6758 else
6759 use_gnu89_inline="no"
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6763 $as_echo "$use_gnu89_inline" >&6; }
6764 if test "x-$use_gnu89_inline" = "x-yes" ; then
6765 gnu89_inline="-fgnu89-inline"
6767 CFLAGS="$save_cflags"
6769 #-----------------------------------------------------------------------------
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6772 $as_echo_n "checking for type of build... " >&6; }
6773 # Check whether --enable-build_type was given.
6774 if test "${enable_build_type+set}" = set; then :
6775 enableval=$enable_build_type; build_type=$enableval
6776 else
6777 build_type="personal"
6781 if test "$build_type" = "nightly"; then
6782 build_type_string="NIGHTLY"
6783 elif test "$build_type" = "snapshot"; then
6784 build_type_string="SNAPSHOT"
6785 elif test "$build_type" = "milestone"; then
6786 build_type_string="MILESTONE"
6787 elif test "$build_type" = "release"; then
6788 build_type_string="RELEASE"
6789 else
6790 build_type_string="PERSONAL"
6791 build_type="personal"
6794 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6797 $as_echo "$build_type" >&6; }
6799 #-----------------------------------------------------------------------------
6800 all_debug_types="messages stack modules mungwall symbols"
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6803 $as_echo_n "checking which debug types to enable... " >&6; }
6804 # Check whether --enable-debug was given.
6805 if test "${enable_debug+set}" = set; then :
6806 enableval=$enable_debug; debug="$enableval"
6807 else
6808 debug=""
6812 if test "$debug" = "" -o "$debug" = "no"; then
6813 debug="none"
6814 elif test "$debug" = "yes"; then
6815 debug="all"
6818 if test "$debug" = "all" ; then
6819 debug="messages stack modules symbols"
6820 for d in $all_debug_types; do
6821 export aros_${d}_debug="1"
6822 done
6823 else
6824 for d in $all_debug_types; do
6825 export aros_${d}_debug="0"
6826 done
6829 if test "$debug" != "none"; then
6830 debug=`echo $debug | sed s/,/\ /g`
6831 for d in $debug; do
6832 found="0"
6833 for d2 in $all_debug_types; do
6834 if test "$d2" = "$d"; then
6835 found="1"
6836 break
6838 done
6839 if test "$found" = "0"; then
6840 as_fn_error $? "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6842 export aros_${d}_debug="1"
6843 done
6844 aros_debug="yes"
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6847 $as_echo "$debug" >&6; }
6849 if test "$aros_messages_debug" = "1"; then
6850 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6851 else
6852 aros_messages_debug=""
6854 if test "$aros_symbols_debug" = "1"; then
6855 aros_symbols_debug="-g"
6856 else
6857 aros_symbols_debug=""
6860 # These are the flags to pass when compiling debugged programs
6861 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6862 aros_debug_aflags=""
6863 aros_debug_ldflags="$aros_symbols_debug"
6865 aros_crosstools="no"
6867 #-----------------------------------------------------------------------------
6868 # Checking if we should build crosstools..
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6870 $as_echo_n "checking whether to build crosstools... " >&6; }
6871 # Check whether --enable-crosstools was given.
6872 if test "${enable_crosstools+set}" = set; then :
6873 enableval=$enable_crosstools; crosstools="$enableval"
6874 else
6875 crosstools="no"
6878 if test "$crosstools" != "" -a "$crosstools" != "no"; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6880 $as_echo "yes" >&6; }
6881 aros_crosstools="yes"
6882 else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6887 #-----------------------------------------------------------------------------
6888 # Checking for distcc and ccache.
6890 # Always apply the transforms in this particular order. Basically you should
6891 # always run 'ccache distcc compiler' in that order for the best performance.
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6894 $as_echo_n "checking whether to enable distcc... " >&6; }
6895 # Check whether --enable-distcc was given.
6896 if test "${enable_distcc+set}" = set; then :
6897 enableval=$enable_distcc; distcc="$enableval"
6898 else
6899 distcc="no"
6902 if test "$distcc" != "" -a "$distcc" != "no"; then
6903 # AC_CHECK_PROG will print out the result in this case
6904 # Extract the first word of "distcc", so it can be a program name with args.
6905 set dummy distcc; ac_word=$2
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 $as_echo_n "checking for $ac_word... " >&6; }
6908 if test "${ac_cv_path_DISTCC+set}" = set; then :
6909 $as_echo_n "(cached) " >&6
6910 else
6911 case $DISTCC in
6912 [\\/]* | ?:[\\/]*)
6913 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6919 IFS=$as_save_IFS
6920 test -z "$as_dir" && as_dir=.
6921 for ac_exec_ext in '' $ac_executable_extensions; do
6922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6923 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 break 2
6927 done
6928 done
6929 IFS=$as_save_IFS
6931 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6933 esac
6935 DISTCC=$ac_cv_path_DISTCC
6936 if test -n "$DISTCC"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6938 $as_echo "$DISTCC" >&6; }
6939 else
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6941 $as_echo "no" >&6; }
6945 else
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6947 $as_echo "no" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6951 $as_echo_n "checking whether to enable ccache... " >&6; }
6952 # Check whether --enable-ccache was given.
6953 if test "${enable_ccache+set}" = set; then :
6954 enableval=$enable_ccache; ccache="$enableval"
6955 else
6956 ccache="no"
6959 if test "$ccache" != "" -a "$ccache" != "no"; then
6960 # AC_CHECK_PROG will print out the result in this case
6961 # Extract the first word of "ccache", so it can be a program name with args.
6962 set dummy ccache; ac_word=$2
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6964 $as_echo_n "checking for $ac_word... " >&6; }
6965 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 if test -n "$CCACHE"; then
6969 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6970 else
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 for as_dir in $PATH
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_prog_CCACHE="ccache"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6982 done
6983 done
6984 IFS=$as_save_IFS
6988 CCACHE=$ac_cv_prog_CCACHE
6989 if test -n "$CCACHE"; then
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
6991 $as_echo "$CCACHE" >&6; }
6992 else
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6994 $as_echo "no" >&6; }
6998 else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7003 #-----------------------------------------------------------------------------
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific gcc version to use" >&5
7005 $as_echo_n "checking what specific gcc version to use... " >&6; }
7007 # Check whether --with-gcc-version was given.
7008 if test "${with_gcc_version+set}" = set; then :
7009 withval=$with_gcc_version; target_tool_version="$withval"
7010 else
7011 target_tool_version="default"
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
7015 $as_echo "$target_tool_version" >&6; }
7017 #-----------------------------------------------------------------------------
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
7019 $as_echo_n "checking what optimization flags to use... " >&6; }
7021 # Check whether --with-optimization was given.
7022 if test "${with_optimization+set}" = set; then :
7023 withval=$with_optimization; optimization="$withval"
7024 else
7025 optimization="unknown"
7028 if test "$optimization" = "unknown"; then
7029 if test "$debug" != "none"; then
7030 optimization="-O0"
7031 else
7032 optimization="-O2"
7035 aros_config_cflags="$aros_config_cflags $optimization"
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
7037 $as_echo "$optimization" >&6; }
7039 #-----------------------------------------------------------------------------
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
7041 $as_echo_n "checking what paranoia flags to use... " >&6; }
7043 # Check whether --with-paranoia was given.
7044 if test "${with_paranoia+set}" = set; then :
7045 withval=$with_paranoia; paranoia_flags="$withval"
7046 else
7047 paranoia_flags="default"
7050 if test "$paranoia_flags" = "default"; then
7051 paranoia_flags=""
7052 else if test "$paranoia_flags" = "yes"; then
7053 paranoia_flags="-Wall -Werror"
7054 fi fi
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
7056 $as_echo "$paranoia_flags" >&6; }
7057 aros_paranoia_cflags="$paranoia_flags"
7059 #-----------------------------------------------------------------------------
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
7061 $as_echo_n "checking what target variant to enable... " >&6; }
7062 # Check whether --enable-target_variant was given.
7063 if test "${enable_target_variant+set}" = set; then :
7064 enableval=$enable_target_variant; target_variant=$enableval
7065 else
7066 target_variant=""
7069 if test "$target_variant" = ""; then
7070 aros_target_variant=""
7071 aros_target_suffix=""
7072 enableval="none"
7073 else
7074 aros_target_variant="$target_variant"
7075 aros_target_suffix="-$target_variant"
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
7078 $as_echo "$enableval" >&6; }
7080 target_bootloader="none"
7082 #-----------------------------------------------------------------------------
7083 case "$aros_target_variant" in
7084 ios)
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
7086 $as_echo_n "checking XCode path... " >&6; }
7088 # Check whether --with-xcode was given.
7089 if test "${with_xcode+set}" = set; then :
7090 withval=$with_xcode; aros_xcode_path="$withval"
7091 else
7092 aros_xcode_path="/Developer"
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
7096 $as_echo "$aros_xcode_path" >&6; }
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
7099 $as_echo_n "checking for minimum supported iOS version... " >&6; }
7101 # Check whether --with-ios-version was given.
7102 if test "${with_ios_version+set}" = set; then :
7103 withval=$with_ios_version; aros_ios_version="$withval"
7104 else
7105 aros_ios_version="3.0"
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7109 $as_echo "$aros_ios_version" >&6; }
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7112 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7114 # Check whether --with-ios-sdk was given.
7115 if test "${with_ios_sdk+set}" = set; then :
7116 withval=$with_ios_sdk; aros_ios_sdk="$withval"
7117 else
7118 aros_ios_sdk="4.1"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7122 $as_echo "$aros_ios_sdk" >&6; }
7126 "android")
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7128 $as_echo_n "checking Android SDK path... " >&6; }
7130 # Check whether --with-sdk was given.
7131 if test "${with_sdk+set}" = set; then :
7132 withval=$with_sdk; aros_android_sdk="$withval"
7133 else
7134 aros_android_sdk=$default_android_sdk
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7138 $as_echo "$aros_android_sdk" >&6; }
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7141 $as_echo_n "checking Android NDK path... " >&6; }
7143 # Check whether --with-ndk was given.
7144 if test "${with_ndk+set}" = set; then :
7145 withval=$with_ndk; aros_android_ndk="$withval"
7146 else
7147 aros_android_ndk=""
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7151 $as_echo "$aros_android_ndk" >&6; }
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android version to use" >&5
7154 $as_echo_n "checking what Android version to use... " >&6; }
7156 # Check whether --with-android-version was given.
7157 if test "${with_android_version+set}" = set; then :
7158 withval=$with_android_version; aros_android_version="$withval"
7159 else
7160 aros_android_version="2.2"
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_version" >&5
7164 $as_echo "$aros_android_version" >&6; }
7166 export PATH="$aros_android_sdk/tools:$PATH"
7167 # Extract the first word of "$android_tool", so it can be a program name with args.
7168 set dummy $android_tool; ac_word=$2
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170 $as_echo_n "checking for $ac_word... " >&6; }
7171 if test "${ac_cv_path_android_tool+set}" = set; then :
7172 $as_echo_n "(cached) " >&6
7173 else
7174 case $android_tool in
7175 [\\/]* | ?:[\\/]*)
7176 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7186 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7190 done
7191 done
7192 IFS=$as_save_IFS
7195 esac
7197 android_tool=$ac_cv_path_android_tool
7198 if test -n "$android_tool"; then
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7200 $as_echo "$android_tool" >&6; }
7201 else
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }
7207 if test "$android_tool" = ""; then
7208 as_fn_error $? "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7211 if test $host_os = "mingw32"; then
7212 android_tool="cmd //c $android_tool"
7216 esac
7218 #-----------------------------------------------------------------------------
7219 # This is the target configuration switch.
7220 case "$target_os" in
7221 linux*)
7222 aros_target_arch="linux"
7223 aros_target_family="unix"
7224 case "$target_cpu" in
7225 *m68k*)
7226 aros_target_cpu="m68k"
7227 aros_object_format="m68kelf"
7228 aros_flavour="emulcompat"
7229 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7230 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7231 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7232 gcc_target_cpu="mc68000"
7234 *i?86*)
7235 aros_target_cpu="i386"
7236 aros_object_format="elf_i386"
7237 aros_flavour="emulation"
7238 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7239 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7240 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7241 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7242 aros_config_ldflags="-m32 -march=i486"
7243 aros_kernel_ldflags="-melf_i386"
7244 aros_default_wbdepth=8
7245 gcc_target_cpu="i386"
7246 pci_hidd_target="hidd-pci-linux"
7248 *x86_64*)
7249 aros_target_cpu="x86_64"
7250 aros_object_format="elf_x86_64"
7251 aros_flavour="emulation"
7252 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7253 aros_config_cflags="$aros_config_cflags -mno-red-zone -fno-omit-frame-pointer"
7254 aros_default_wbdepth=8
7255 gcc_target_cpu="x86_64"
7256 pci_hidd_target="hidd-pci-linux"
7258 *powerpc*)
7259 aros_target_cpu="ppc"
7260 aros_object_format="elf32ppc"
7261 aros_flavour="emulation"
7262 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7263 aros_default_wbdepth=8
7264 gcc_target_cpu="ppc"
7266 # TODO
7267 # Same as powerpc, but I need this for the nightly build to work again.
7268 # Actually, the nightly should be made working with powerpc target.
7269 # That just was too much work for the moment, another week or two.
7270 *ppc*)
7271 aros_target_cpu="ppc"
7272 aros_object_format="elf32ppc"
7273 aros_flavour="emulation"
7274 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7275 aros_default_wbdepth=8
7276 gcc_target_cpu="ppc"
7278 *arm*)
7279 aros_target_cpu="arm"
7280 aros_object_format="armelf_linux_eabi"
7281 aros_flavour="emulation"
7282 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7283 gcc_target_cpu="arm"
7284 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7285 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7286 aros_arch_libs="-laeabi"
7289 as_fn_error $? "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7291 esac
7292 case "$aros_target_variant" in
7293 android)
7294 case "$aros_android_version" in
7295 2.2)
7296 aros_android_level=android-8
7299 aros_android_level=android-9
7301 esac
7302 aros_default_wbwidth=320
7303 aros_default_wbheight=480
7304 aros_target_cc="arm-aros-gcc"
7305 aros_target_cxx="arm-aros-g++"
7306 aros_target_ld="arm-aros-ld"
7307 aros_target_as="arm-aros-as"
7308 aros_target_ar="arm-aros-ar"
7309 aros_target_ranlib="arm-aros-ranlib"
7310 aros_target_nm="arm-aros-nm"
7311 aros_target_strip="arm-aros-strip"
7312 aros_target_objcopy="arm-aros-objcopy"
7313 aros_target_objdump="arm-aros-objdump"
7314 if test "$aros_android_ndk" = ""; then
7315 aros_kernel_cflags="-mandroid"
7316 aros_kernel_ldflags="-mandroid"
7317 CFLAGS="-mandroid"
7318 else
7319 export PATH="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7320 aros_android_ndk="$aros_android_ndk/platforms/$aros_android_level/arch-arm"
7321 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7322 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7323 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7324 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7326 need_x11=no
7327 target_tool_prefix="arm-linux-androideabi-"
7329 esac
7333 aros_target_arch="pc"
7334 aros_shared_default="no"
7335 target_bootloader="grub2"
7336 case "$target_cpu" in
7337 *i?86*)
7338 aros_target_cpu="i386"
7341 if test "$aros_object_format" = "" ; then
7342 aros_object_format="elf_i386"
7344 aros_flavour="standalone"
7345 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7346 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7347 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7348 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7349 aros_config_ldflags="-m32 -march=i486"
7350 aros_kernel_ldflags="-melf_i386"
7351 aros_default_wbwidth=640
7352 aros_default_wbheight=480
7353 gcc_target_cpu="i386"
7355 *x86_64*)
7356 aros_target_cpu="x86_64"
7357 aros_serial_debug=1
7358 if test "$aros_object_format" = "" ; then
7359 aros_object_format="elf_x86_64"
7361 aros_flavour="standalone"
7362 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7363 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone -fno-omit-frame-pointer"
7364 aros_kernel_ldflags=""
7365 aros_default_wbwidth=640
7366 aros_default_wbheight=480
7367 gcc_target_cpu="x86_64"
7370 as_fn_error $? "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7372 esac
7375 prep)
7376 aros_target_arch="prep"
7377 aros_shared_default="no"
7378 aros_target_cpu="ppc"
7379 aros_object_format="elf32ppc"
7380 aros_flavour="ppcnative"
7381 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7382 aros_kernel_ldflags=""
7383 aros_default_wbwidth=640
7384 aros_default_wbheight=480
7385 gcc_target_cpu="ppc"
7388 freebsd*)
7389 aros_target_arch="freebsd"
7390 aros_target_family="unix"
7391 aros_target_cpu="i386"
7392 aros_flavour="emulation"
7393 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7394 gcc_target_cpu="i386"
7396 aros_target_strip_flags="-x"
7399 darwin*)
7400 aros_target_arch="darwin"
7401 aros_target_family="unix"
7402 aros_flavour="emulation"
7403 case "$target_cpu" in
7404 *i?86*)
7405 aros_ios_platform="iPhoneSimulator"
7406 aros_target_cpu="i386"
7407 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7408 aros_kernel_ldflags=""
7409 aros_macosx_version="10.4"
7410 aros_default_wbdepth=8
7411 gcc_target_cpu="i386"
7412 aros_object_format="elf_i386"
7413 aros_target_strip_flags="-x"
7414 aros_target_cc="i386-aros-gcc"
7415 aros_target_cxx="i386-aros-g++"
7416 aros_target_ld="i386-aros-ld"
7417 aros_target_as="i386-aros-as"
7418 aros_target_ar="i386-aros-ar"
7419 aros_target_ranlib="i386-aros-ranlib"
7420 aros_target_nm="i386-aros-nm"
7421 aros_target_strip="i386-aros-strip"
7422 aros_target_objcopy="i386-aros-objcopy"
7423 aros_target_objdump="i386-aros-objdump"
7424 target_tool_prefix="i686-apple-darwin10-"
7425 target_tool_flags="-m32"
7427 *x86_64*)
7428 aros_target_cpu="x86_64"
7429 aros_object_format="elf_x86_64"
7430 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7431 aros_macosx_version="10.6"
7432 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7433 aros_kernel_cflags="-m64"
7434 aros_kernel_ldflags="-m64"
7435 aros_target_cflags="-mcmodel=large"
7436 aros_default_wbdepth=8
7437 gcc_target_cpu="x86_64"
7438 aros_kernel_ld="ld"
7439 aros_target_cc="x86_64-aros-gcc"
7440 aros_target_cxx="x86_64-aros-g++"
7441 aros_target_ld="x86_64-aros-ld"
7442 aros_target_as="x86_64-aros-as"
7443 aros_target_ar="x86_64-aros-ar"
7444 aros_target_ranlib="x86_64-aros-ranlib"
7445 aros_target_nm="x86_64-aros-nm"
7446 aros_target_strip="x86_64-aros-strip"
7447 aros_target_objcopy="x86_64-aros-objcopy"
7448 aros_target_objdump="x86_64-aros-objdump"
7449 target_tool_prefix="i686-apple-darwin10-"
7451 *ppc*)
7452 aros_target_cpu="ppc"
7453 aros_object_format="elf32ppc"
7454 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7455 aros_kernel_ldflags=""
7456 aros_macosx_version="10.0"
7457 aros_default_wbdepth=8
7458 gcc_target_cpu="ppc"
7459 aros_kernel_ld="ld -arch ppc"
7460 aros_target_cc="ppc-aros-gcc"
7461 aros_target_cxx="ppc-aros-g++"
7462 aros_target_ld="ppc-aros-ld"
7463 aros_target_as="ppc-aros-as"
7464 aros_target_ar="ppc-aros-ar"
7465 aros_target_ranlib="ppc-aros-ranlib"
7466 aros_target_nm="ppc-aros-nm"
7467 aros_target_strip="ppc-aros-strip"
7468 aros_target_objcopy="ppc-aros-objcopy"
7469 aros_target_objdump="ppc-aros-objdump"
7470 target_tool_prefix="powerpc-apple-darwin10-"
7472 *arm*)
7473 aros_ios_platform="iPhoneOS"
7474 aros_target_cpu="arm"
7475 aros_object_format="armelf_linux_eabi"
7476 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7477 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7478 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7479 aros_arch_libs="-laeabi"
7480 aros_default_wbdepth=8
7481 gcc_target_cpu="arm"
7482 aros_kernel_ld="ld -arch armv6"
7483 aros_target_cc="arm-aros-gcc"
7484 aros_target_cxx="arm-aros-g++"
7485 aros_target_ld="arm-aros-ld"
7486 aros_target_as="arm-aros-as"
7487 aros_target_ar="arm-aros-ar"
7488 aros_target_ranlib="arm-aros-ranlib"
7489 aros_target_nm="arm-aros-nm"
7490 aros_target_strip="arm-aros-strip"
7491 aros_target_objcopy="arm-aros-objcopy"
7492 aros_target_objdump="arm-aros-objdump"
7493 target_tool_prefix="arm-apple-darwin10-"
7494 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7497 as_fn_error $? "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7499 esac
7500 case "$aros_target_variant" in
7501 ios)
7502 aros_default_wbwidth=320
7503 aros_default_wbheight=480
7504 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7505 target_tool_flags="$target_tool_flags --sysroot $aros_ios_sdk"
7506 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7507 need_x11=no
7508 # This is here because it may depend on iOS or SDK version
7509 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7510 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7511 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7514 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7515 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7517 esac
7520 dragonfly*)
7521 aros_target_arch="dragonfly"
7522 aros_target_family="unix"
7523 aros_flavour="emulation"
7524 case "$target_cpu" in
7525 *i?86*)
7526 aros_target_cpu="i386"
7527 aros_object_format="elf_i386"
7528 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7530 *x86_64*)
7531 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7532 aros_target_cpu="x86_64"
7533 aros_object_format="elf_x86_64"
7534 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7537 as_fn_error $? "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7539 esac
7542 netbsd*)
7543 aros_target_arch="netbsd"
7544 aros_target_family="unix"
7545 case "$target_cpu" in
7546 *m68k*)
7547 aros_target_cpu="m68k"
7548 aros_object_format="m68kelf"
7549 aros_flavour="emulcompat"
7550 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7551 gcc_target_cpu="mc68000"
7553 *i?86*)
7554 aros_target_cpu="i386"
7555 aros_object_format="elf_i386"
7556 aros_flavour="emulation"
7557 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7558 aros_default_wbdepth=8
7559 gcc_target_cpu="i386"
7562 as_fn_error $? "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7564 esac
7565 aros_target_genmap="-Wl,-M -Xlinker >"
7566 aros_flavour="emulation"
7567 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7570 openbsd*)
7571 aros_target_arch="openbsd"
7572 aros_target_family="unix"
7573 case "$target_cpu" in
7574 *i?86*)
7575 aros_target_cpu="i386"
7576 aros_object_format="elf_i386"
7577 aros_flavour="emulation"
7578 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7579 gcc_target_cpu="i386"
7582 as_fn_error $? "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7584 esac
7585 aros_target_genmap="-Wl,-M -Xlinker >"
7586 aros_target_nm_flags="-u"
7587 aros_flavour="emulation"
7590 solaris*)
7591 aros_target_arch="solaris"
7592 aros_target_family="unix"
7593 case "$target_cpu" in
7594 *i?86*)
7595 aros_target_cpu="i386"
7596 aros_object_format="elf_i386"
7597 aros_flavour="emulation"
7598 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7599 aros_default_wbdepth=8
7600 gcc_target_cpu="i386"
7602 *sparc*)
7603 aros_target_cpu="sparc"
7604 aros_object_format="elf_sparc"
7605 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7606 gcc_target_cpu="sparc"
7609 as_fn_error $? "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7611 esac
7612 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7613 aros_flavour="emulation"
7616 morphos*)
7617 aros_target_arch="morphos"
7618 aros_shared_default="no"
7619 aros_target_cpu="ppc"
7620 aros_object_format="elf_ppc"
7621 aros_flavour="nativecompat"
7622 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7623 gcc_target_cpu="ppc"
7626 sam440)
7627 aros_target_arch="sam440"
7628 aros_shared_default="no"
7629 aros_target_cpu="ppc"
7630 aros_object_format="elf32ppc"
7631 aros_flavour="ppcnative"
7632 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7633 aros_kernel_ldflags=""
7634 aros_default_wbwidth=1024
7635 aros_default_wbheight=768
7636 aros_default_wbdepth=24
7637 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7638 gcc_target_cpu="powerpc"
7641 efika)
7642 aros_target_arch="efika"
7643 aros_shared_default="no"
7644 aros_target_cpu="arm"
7645 aros_object_format="armelf_linux_eabi"
7646 aros_flavour="standalone"
7647 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7648 aros_kernel_ldflags=""
7649 aros_default_wbwidth=1024
7650 aros_default_wbheight=600
7651 aros_arch_libs="-laeabi"
7652 aros_config_cflags="$aros_config_cflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7653 aros_config_aflags="$aros_config_aflags -marm -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7656 chrp)
7657 aros_target_arch="chrp"
7658 aros_shared_default="no"
7659 aros_target_cpu="ppc"
7660 aros_object_format="elf32ppc"
7661 aros_flavour="ppcnative"
7662 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7663 aros_kernel_ldflags=""
7664 aros_default_wbwidth=640
7665 aros_default_wbheight=480
7666 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7667 gcc_target_cpu="powerpc"
7668 case "$aros_target_variant" in
7669 efika)
7670 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7672 esac
7675 amiga*)
7676 aros_target_arch="amiga"
7677 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7678 aros_shared_default="no"
7680 case "$target_cpu" in
7681 *m68k*)
7682 aros_enable_mmu=no
7683 aros_target_cpu="m68k"
7684 aros_object_format="m68kelf"
7685 aros_flavour="standcompat"
7686 gcc_target_cpu="m68000"
7687 aros_config_cflags="$aros_config_cflags -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -DAROS_DOS_PACKETS"
7688 aros_config_aflags="$aros_config_aflags -${gcc_target_cpu}"
7689 aros_paranoia_cflags="$aros_paranoia_cflags -Wno-volatile-register-var"
7690 aros_debug_cflags="$aros_debug_cflags -Wall -Wno-volatile-register-var"
7691 target_tool_prefix="m68k-elf-"
7692 # Needed to get the correct multilib
7693 aros_config_ldflags="-${gcc_target_cpu}"
7694 aros_shared_ldflags="-${gcc_target_cpu}"
7695 aros_kernel_ldflags="-${gcc_target_cpu}"
7696 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7697 aros_target_strip_flags="-R.comment --strip-debug"
7698 aros_default_wbwidth=640
7699 aros_default_wbheight=256
7700 aros_default_wbdepth=2
7702 *ppc*)
7703 aros_cpu="ppc"
7704 aros_flavour="native"
7705 gcc_target_cpu="ppc"
7708 as_fn_error $? "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7710 esac
7713 mingw*)
7714 aros_target_arch="mingw32"
7715 aros_shared_default="no"
7716 aros_flavour="emulation"
7717 aros_shared_cflags=""
7718 need_dlopen="no"
7719 rescomp="windres"
7720 case "$target_cpu" in
7721 *i?86*)
7722 aros_target_cpu="i386"
7723 aros_object_format="elf_i386"
7724 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7725 aros_default_wbdepth=8
7726 gcc_target_cpu="i386"
7727 aros_target_cc="i386-aros-gcc"
7728 aros_target_cxx="i386-aros-g++"
7729 aros_target_ld="i386-aros-ld"
7730 aros_target_as="i386-aros-as"
7731 aros_target_ar="i386-aros-ar"
7732 aros_target_ranlib="i386-aros-ranlib"
7733 aros_target_nm="i386-aros-nm"
7734 aros_target_strip="i386-aros-strip"
7735 aros_target_objcopy="i386-aros-objcopy"
7736 aros_target_objdump="i386-aros-objdump"
7737 target_tool_prefix="i386-mingw32-"
7739 *x86_64*)
7740 aros_target_cpu="x86_64"
7741 aros_object_format="elf_x86_64"
7742 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7743 aros_config_cflags="$aros_config_cflags -fno-omit-frame-pointer"
7744 aros_default_wbdepth=8
7745 gcc_target_cpu="x86_64"
7746 aros_target_cc="x86_64-aros-gcc"
7747 aros_target_cxx="x86_64-aros-g++"
7748 aros_target_ld="x86_64-aros-ld"
7749 aros_target_as="x86_64-aros-as"
7750 aros_target_ar="x86_64-aros-ar"
7751 aros_target_ranlib="x86_64-aros-ranlib"
7752 aros_target_nm="x86_64-aros-nm"
7753 aros_target_strip="x86_64-aros-strip"
7754 aros_target_objcopy="x86_64-aros-objcopy"
7755 aros_target_objdump="x86_64-aros-objdump"
7756 target_tool_prefix="x86_64-w64-mingw32-"
7758 *arm*)
7759 aros_target_cpu="arm"
7760 aros_object_format="armelf_linux_eabi"
7761 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7762 aros_arch_libs="-laeabi"
7763 aros_default_wbdepth=8
7764 gcc_target_cpu="arm"
7765 aros_target_cc="arm-aros-gcc"
7766 aros_target_cxx="arm-aros-g++"
7767 aros_target_ld="arm-aros-ld"
7768 aros_target_as="arm-aros-as"
7769 aros_target_ar="arm-aros-ar"
7770 aros_target_ranlib="arm-aros-ranlib"
7771 aros_target_nm="arm-aros-nm"
7772 aros_target_strip="arm-aros-strip"
7773 aros_target_objcopy="arm-aros-objcopy"
7774 aros_target_objdump="arm-aros-objdump"
7775 target_tool_prefix="arm-mingw32ce-"
7776 aros_default_wbwidth=160
7777 aros_default_wbheight=160
7780 as_fn_error $? "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7782 esac
7783 if test $host_os = "cygwin"; then
7784 aros_kernel_cflags="-mno-cygwin"
7787 pp*)
7788 aros_target_arch="pp"
7789 aros_shared_default="no"
7790 case "$target_cpu" in
7791 *m68k*)
7792 aros_target_cpu="m68k"
7793 aros_object_format="m68kelf"
7794 aros_flavour="palmnative"
7795 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7796 aros_default_wbwidth=160
7797 aros_default_wbheight=160
7798 aros_default_wbdepth=1
7799 aros_target_ar_flags="cru"
7800 aros_compiler_libs="-lgcc1"
7801 aros_shared_default=no
7802 aros_shared_cflags="-fpic"
7803 aros_shared_aflags=""
7804 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7805 aros_kernel_ldflags="-Wl,-rpath,./lib"
7806 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7807 aros_debug_aflags=""
7808 aros_debug_ldflags="$aros_symbols_debug"
7809 aros_mungwall_debug="0"
7810 aros_modules_debug="0"
7811 gcc_target_cpu="mc68000"
7812 ignore_undefined_symbols="-ius"
7815 as_fn_error $? "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7817 esac
7820 mac*)
7821 aros_target_arch="mac"
7822 aros_shared_default="no"
7823 case "$target_cpu" in
7824 *m68k*)
7825 aros_target_cpu="m68k"
7826 aros_object_format="m68kelf"
7827 aros_flavour="mac68knative"
7828 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7829 aros_default_wbwidth=512
7830 aros_default_wbheight=384
7831 aros_default_wbdepth=8
7832 aros_target_ar_flags="cru"
7833 aros_compiler_libs="-lgcc1"
7834 aros_shared_default=no
7835 aros_shared_cflags="-fpic"
7836 aros_shared_aflags=""
7837 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7838 aros_kernel_ldflags="-Wl,-rpath,./lib"
7839 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7840 aros_debug_aflags=""
7841 aros_debug_ldflags="$aros_symbols_debug"
7842 aros_mungwall_debug="0"
7843 aros_modules_debug="0"
7844 gcc_target_cpu="mc68000"
7845 ignore_undefined_symbols="-ius"
7848 as_fn_error $? "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7850 esac
7854 as_fn_error $? "Unsupported target architecture $target" "$LINENO" 5
7856 esac
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Where to download sourcecode for external ports" >&5
7859 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
7861 # Check whether --with-portssources was given.
7862 if test "${with_portssources+set}" = set; then :
7863 withval=$with_portssources; with_portssrcdir=$withval
7864 else
7865 with_portssrcdir="default"
7868 if test "$with_portssrcdir" = "default"; then
7869 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7870 else
7871 AROS_PORTSSRCDIR="$with_portssrcdir"
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7874 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7877 $as_echo_n "checking which bootloader to use... " >&6; }
7879 # Check whether --with-bootloader was given.
7880 if test "${with_bootloader+set}" = set; then :
7881 withval=$with_bootloader; target_bootloader=$withval
7882 else
7883 target_bootloader=$target_bootloader
7886 if test "$target_bootloader" = "none"; then
7887 aros_target_bootloader=""
7888 else
7889 aros_target_bootloader="$target_bootloader"
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7892 $as_echo "$target_bootloader" >&6; }
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7895 $as_echo_n "checking which icon-set to use... " >&6; }
7897 # Check whether --with-iconset was given.
7898 if test "${with_iconset+set}" = set; then :
7899 withval=$with_iconset; target_iconset=$withval
7900 else
7901 target_iconset="default"
7904 if test "$target_iconset" = "default"; then
7905 aros_target_iconset="Gorilla"
7906 target_iconset="default (Gorilla)"
7907 else
7908 aros_target_iconset="$target_iconset"
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7911 $as_echo "$target_iconset" >&6; }
7913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7914 $as_echo_n "checking which GUI Theme to use... " >&6; }
7916 # Check whether --with-theme was given.
7917 if test "${with_theme+set}" = set; then :
7918 withval=$with_theme; target_guitheme=$withval
7919 else
7920 target_guitheme="default"
7923 if test "$target_guitheme" = "default"; then
7924 aros_target_guitheme="Ice"
7925 else
7926 aros_target_guitheme="$target_guitheme"
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7929 $as_echo "$aros_target_guitheme" >&6; }
7931 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7932 # for target code)
7933 cross_compiling=no
7934 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7935 cross_compiling=yes
7937 if test "$aros_host_cpu" == "x86_64" ; then
7938 if test "$aros_target_cpu" == "i386" ; then
7939 if test "$aros_target_arch" != "mingw32"; then
7940 cross_compiling=no
7944 if test "$aros_host_arch" == "darwin" ; then
7945 if test "$aros_target_arch" != "darwin" ; then
7946 cross_compiling=yes
7950 # Set prefix for target compiler etc. if we're cross-compiling
7951 # (should possibly be earlier but needs to be after AC_PROG_CC)
7952 if test "$cross_compiling" = "yes" ; then
7953 if test "$target_tool_prefix" = ""; then
7954 target_tool_prefix=${target_cpu}-elf-
7956 CC=${target_tool_prefix}gcc
7957 CPP=${target_tool_prefix}cpp
7958 if test "$target_tool_version" != "default"; then
7959 CC="$CC-$target_tool_version"
7960 CPP="$CC-$target_tool_version"
7962 # Extract the first word of "$CC", so it can be a program name with args.
7963 set dummy $CC; ac_word=$2
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 $as_echo_n "checking for $ac_word... " >&6; }
7966 if test "${ac_cv_path_CC+set}" = set; then :
7967 $as_echo_n "(cached) " >&6
7968 else
7969 case $CC in
7970 [\\/]* | ?:[\\/]*)
7971 ac_cv_path_CC="$CC" # Let the user override the test with a path.
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7977 IFS=$as_save_IFS
7978 test -z "$as_dir" && as_dir=.
7979 for ac_exec_ext in '' $ac_executable_extensions; do
7980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7981 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
7982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7983 break 2
7985 done
7986 done
7987 IFS=$as_save_IFS
7990 esac
7992 CC=$ac_cv_path_CC
7993 if test -n "$CC"; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7995 $as_echo "$CC" >&6; }
7996 else
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998 $as_echo "no" >&6; }
8002 if test "$CC" = ""; then
8003 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8006 CC="$CC $target_tool_flags"
8008 #-----------------------------------------------------------------------------
8010 # Disable pointer-signedness warnings if the compiler recognises the option
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8013 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
8014 save_cflags="$CFLAGS"
8015 CFLAGS="$CFLAGS -Wno-pointer-sign"
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8017 /* end confdefs.h. */
8020 main ()
8024 return 0;
8026 _ACEOF
8027 if ac_fn_c_try_compile "$LINENO"; then :
8028 use_no_sign_warning="yes"
8029 else
8030 use_no_sign_warning="no"
8032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
8034 $as_echo "$use_no_sign_warning" >&6; }
8035 if test "x-$use_no_sign_warning" = "x-yes" ; then
8036 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
8038 CFLAGS="$save_cflags"
8040 #-----------------------------------------------------------------------------
8042 # Find all the tools we need to compile. This could be cross-compiling
8043 # though! If that is the case we use the GNU form of the target and
8044 # simply add this to the front of the binary name. This is rather simple,
8045 # but it should work under most circumstances.
8047 # The default tools are to use the same as the host, but only if the
8048 # host and target CPU are the same. With GCC this is normally enough.
8051 aros_cc_pre=""
8052 aros_shared_ld="$aros_host_ld"
8054 aros_target_mkdep="$aros_host_mkdep"
8055 aros_target_incl_def="$aros_host_incl"
8057 aros_kernel_cc="$CC"
8059 # The default tools executables to be linked to.
8060 if test "$aros_target_cc" != ""; then
8061 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
8062 set dummy $aros_target_cc; ac_word=$2
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8064 $as_echo_n "checking for $ac_word... " >&6; }
8065 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
8066 $as_echo_n "(cached) " >&6
8067 else
8068 case $aros_target_cc in
8069 [\\/]* | ?:[\\/]*)
8070 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
8073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8074 for as_dir in $PATH
8076 IFS=$as_save_IFS
8077 test -z "$as_dir" && as_dir=.
8078 for ac_exec_ext in '' $ac_executable_extensions; do
8079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8080 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
8081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 break 2
8084 done
8085 done
8086 IFS=$as_save_IFS
8089 esac
8091 aros_target_cc=$ac_cv_path_aros_target_cc
8092 if test -n "$aros_target_cc"; then
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
8094 $as_echo "$aros_target_cc" >&6; }
8095 else
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8097 $as_echo "no" >&6; }
8101 if test "$aros_target_cc" = ""; then
8102 as_fn_error $? "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
8105 if test "$aros_target_ld" != ""; then
8106 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
8107 set dummy $aros_target_ld; ac_word=$2
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8109 $as_echo_n "checking for $ac_word... " >&6; }
8110 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
8111 $as_echo_n "(cached) " >&6
8112 else
8113 case $aros_target_ld in
8114 [\\/]* | ?:[\\/]*)
8115 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
8118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 for as_dir in $PATH
8121 IFS=$as_save_IFS
8122 test -z "$as_dir" && as_dir=.
8123 for ac_exec_ext in '' $ac_executable_extensions; do
8124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8125 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
8126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 break 2
8129 done
8130 done
8131 IFS=$as_save_IFS
8134 esac
8136 aros_target_ld=$ac_cv_path_aros_target_ld
8137 if test -n "$aros_target_ld"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
8139 $as_echo "$aros_target_ld" >&6; }
8140 else
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8146 if test "$aros_target_ld" = ""; then
8147 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8151 if test "$crosstools" != "yes"; then
8153 if test "$aros_target_as" = ""; then
8154 if test "$cross_compiling" = "yes" ; then
8155 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8156 set dummy ${target_tool_prefix}as; ac_word=$2
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8158 $as_echo_n "checking for $ac_word... " >&6; }
8159 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8160 $as_echo_n "(cached) " >&6
8161 else
8162 case $aros_target_as_ln in
8163 [\\/]* | ?:[\\/]*)
8164 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8170 IFS=$as_save_IFS
8171 test -z "$as_dir" && as_dir=.
8172 for ac_exec_ext in '' $ac_executable_extensions; do
8173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8174 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8176 break 2
8178 done
8179 done
8180 IFS=$as_save_IFS
8183 esac
8185 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8186 if test -n "$aros_target_as_ln"; then
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8188 $as_echo "$aros_target_as_ln" >&6; }
8189 else
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8191 $as_echo "no" >&6; }
8195 else
8196 if test "$GCC" = "yes"; then
8197 aros_gcc_as=`$CC -print-prog-name=as`
8198 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8199 set dummy `basename $aros_gcc_as`; ac_word=$2
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 $as_echo_n "checking for $ac_word... " >&6; }
8202 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8203 $as_echo_n "(cached) " >&6
8204 else
8205 case $aros_target_as_ln in
8206 [\\/]* | ?:[\\/]*)
8207 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8211 for as_dir in `dirname $aros_gcc_as`
8213 IFS=$as_save_IFS
8214 test -z "$as_dir" && as_dir=.
8215 for ac_exec_ext in '' $ac_executable_extensions; do
8216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8217 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 break 2
8221 done
8222 done
8223 IFS=$as_save_IFS
8226 esac
8228 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8229 if test -n "$aros_target_as_ln"; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8231 $as_echo "$aros_target_as_ln" >&6; }
8232 else
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8239 if test "$aros_target_as_ln" = ""; then
8240 # Extract the first word of "as", so it can be a program name with args.
8241 set dummy as; ac_word=$2
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8243 $as_echo_n "checking for $ac_word... " >&6; }
8244 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8245 $as_echo_n "(cached) " >&6
8246 else
8247 case $aros_target_as_ln in
8248 [\\/]* | ?:[\\/]*)
8249 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8253 for as_dir in $PATH
8255 IFS=$as_save_IFS
8256 test -z "$as_dir" && as_dir=.
8257 for ac_exec_ext in '' $ac_executable_extensions; do
8258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8259 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8261 break 2
8263 done
8264 done
8265 IFS=$as_save_IFS
8268 esac
8270 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8271 if test -n "$aros_target_as_ln"; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8273 $as_echo "$aros_target_as_ln" >&6; }
8274 else
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8276 $as_echo "no" >&6; }
8282 else
8283 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8284 set dummy $aros_target_as; ac_word=$2
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8286 $as_echo_n "checking for $ac_word... " >&6; }
8287 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8288 $as_echo_n "(cached) " >&6
8289 else
8290 case $aros_target_as_ln in
8291 [\\/]* | ?:[\\/]*)
8292 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8298 IFS=$as_save_IFS
8299 test -z "$as_dir" && as_dir=.
8300 for ac_exec_ext in '' $ac_executable_extensions; do
8301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8302 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304 break 2
8306 done
8307 done
8308 IFS=$as_save_IFS
8311 esac
8313 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8314 if test -n "$aros_target_as_ln"; then
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8316 $as_echo "$aros_target_as_ln" >&6; }
8317 else
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8319 $as_echo "no" >&6; }
8325 if test "$aros_target_as_ln" = ""; then
8326 as_fn_error $? "as is required to build AROS. Please install and run configure again." "$LINENO" 5
8329 if test "$aros_kernel_ld" = ""; then
8330 if test "$cross_compiling" = "yes" ; then
8331 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8332 set dummy ${target_tool_prefix}ld; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 case $aros_kernel_ld in
8339 [\\/]* | ?:[\\/]*)
8340 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8346 IFS=$as_save_IFS
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8350 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352 break 2
8354 done
8355 done
8356 IFS=$as_save_IFS
8359 esac
8361 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8362 if test -n "$aros_kernel_ld"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8364 $as_echo "$aros_kernel_ld" >&6; }
8365 else
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }
8371 else
8372 if test "$GCC" = "yes"; then
8373 aros_gcc_ld=`$CC -print-prog-name=ld`
8374 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8375 set dummy `basename $aros_gcc_ld`; ac_word=$2
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8377 $as_echo_n "checking for $ac_word... " >&6; }
8378 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8379 $as_echo_n "(cached) " >&6
8380 else
8381 case $aros_kernel_ld in
8382 [\\/]* | ?:[\\/]*)
8383 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8387 for as_dir in `dirname $aros_gcc_ld`
8389 IFS=$as_save_IFS
8390 test -z "$as_dir" && as_dir=.
8391 for ac_exec_ext in '' $ac_executable_extensions; do
8392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8393 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8395 break 2
8397 done
8398 done
8399 IFS=$as_save_IFS
8402 esac
8404 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8405 if test -n "$aros_kernel_ld"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8407 $as_echo "$aros_kernel_ld" >&6; }
8408 else
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8415 if test "$aros_kernel_ld" = ""; then
8416 # Extract the first word of "ld", so it can be a program name with args.
8417 set dummy ld; ac_word=$2
8418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8419 $as_echo_n "checking for $ac_word... " >&6; }
8420 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8421 $as_echo_n "(cached) " >&6
8422 else
8423 case $aros_kernel_ld in
8424 [\\/]* | ?:[\\/]*)
8425 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429 for as_dir in $PATH
8431 IFS=$as_save_IFS
8432 test -z "$as_dir" && as_dir=.
8433 for ac_exec_ext in '' $ac_executable_extensions; do
8434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8435 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8437 break 2
8439 done
8440 done
8441 IFS=$as_save_IFS
8444 esac
8446 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8447 if test -n "$aros_kernel_ld"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8449 $as_echo "$aros_kernel_ld" >&6; }
8450 else
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8458 else
8459 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8460 set dummy $aros_kernel_ld; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 case $aros_kernel_ld in
8467 [\\/]* | ?:[\\/]*)
8468 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 for as_dir in $PATH
8474 IFS=$as_save_IFS
8475 test -z "$as_dir" && as_dir=.
8476 for ac_exec_ext in '' $ac_executable_extensions; do
8477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8478 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 break 2
8482 done
8483 done
8484 IFS=$as_save_IFS
8487 esac
8489 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8490 if test -n "$aros_kernel_ld"; then
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8492 $as_echo "$aros_kernel_ld" >&6; }
8493 else
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8495 $as_echo "no" >&6; }
8501 if test "$aros_kernel_ld" = ""; then
8502 as_fn_error $? "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8505 if test "$aros_target_ar" = ""; then
8506 if test "$cross_compiling" = "yes" ; then
8507 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8508 set dummy ${target_tool_prefix}ar; ac_word=$2
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8510 $as_echo_n "checking for $ac_word... " >&6; }
8511 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8512 $as_echo_n "(cached) " >&6
8513 else
8514 case $aros_target_ar_ln in
8515 [\\/]* | ?:[\\/]*)
8516 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 for as_dir in $PATH
8522 IFS=$as_save_IFS
8523 test -z "$as_dir" && as_dir=.
8524 for ac_exec_ext in '' $ac_executable_extensions; do
8525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8526 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528 break 2
8530 done
8531 done
8532 IFS=$as_save_IFS
8535 esac
8537 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8538 if test -n "$aros_target_ar_ln"; then
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8540 $as_echo "$aros_target_ar_ln" >&6; }
8541 else
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8543 $as_echo "no" >&6; }
8547 else
8548 if test "$GCC" = "yes"; then
8549 aros_gcc_ar=`$CC -print-prog-name=ar`
8550 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8551 set dummy `basename $aros_gcc_ar`; ac_word=$2
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8553 $as_echo_n "checking for $ac_word... " >&6; }
8554 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8555 $as_echo_n "(cached) " >&6
8556 else
8557 case $aros_target_ar_ln in
8558 [\\/]* | ?:[\\/]*)
8559 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in `dirname $aros_gcc_ar`
8565 IFS=$as_save_IFS
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8569 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571 break 2
8573 done
8574 done
8575 IFS=$as_save_IFS
8578 esac
8580 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8581 if test -n "$aros_target_ar_ln"; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8583 $as_echo "$aros_target_ar_ln" >&6; }
8584 else
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8586 $as_echo "no" >&6; }
8591 if test "$aros_target_ar_ln" = ""; then
8592 # Extract the first word of "ar", so it can be a program name with args.
8593 set dummy ar; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8597 $as_echo_n "(cached) " >&6
8598 else
8599 case $aros_target_ar_ln in
8600 [\\/]* | ?:[\\/]*)
8601 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8611 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 break 2
8615 done
8616 done
8617 IFS=$as_save_IFS
8620 esac
8622 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8623 if test -n "$aros_target_ar_ln"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8625 $as_echo "$aros_target_ar_ln" >&6; }
8626 else
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8634 else
8635 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8636 set dummy $aros_target_ar; ac_word=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 case $aros_target_ar_ln in
8643 [\\/]* | ?:[\\/]*)
8644 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8648 for as_dir in $PATH
8650 IFS=$as_save_IFS
8651 test -z "$as_dir" && as_dir=.
8652 for ac_exec_ext in '' $ac_executable_extensions; do
8653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8654 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8656 break 2
8658 done
8659 done
8660 IFS=$as_save_IFS
8663 esac
8665 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8666 if test -n "$aros_target_ar_ln"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8668 $as_echo "$aros_target_ar_ln" >&6; }
8669 else
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8677 if test "$aros_target_ar_ln" = ""; then
8678 as_fn_error $? "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8681 if test "$aros_target_nm" = ""; then
8682 if test "$cross_compiling" = "yes" ; then
8683 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8684 set dummy ${target_tool_prefix}nm; ac_word=$2
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8686 $as_echo_n "checking for $ac_word... " >&6; }
8687 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8688 $as_echo_n "(cached) " >&6
8689 else
8690 case $aros_target_nm_ln in
8691 [\\/]* | ?:[\\/]*)
8692 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8696 for as_dir in $PATH
8698 IFS=$as_save_IFS
8699 test -z "$as_dir" && as_dir=.
8700 for ac_exec_ext in '' $ac_executable_extensions; do
8701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8702 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8704 break 2
8706 done
8707 done
8708 IFS=$as_save_IFS
8711 esac
8713 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8714 if test -n "$aros_target_nm_ln"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8716 $as_echo "$aros_target_nm_ln" >&6; }
8717 else
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8723 else
8724 if test "$GCC" = "yes"; then
8725 aros_gcc_nm=`$CC -print-prog-name=nm`
8726 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8727 set dummy `basename $aros_gcc_nm`; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 case $aros_target_nm_ln in
8734 [\\/]* | ?:[\\/]*)
8735 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8739 for as_dir in `dirname $aros_gcc_nm`
8741 IFS=$as_save_IFS
8742 test -z "$as_dir" && as_dir=.
8743 for ac_exec_ext in '' $ac_executable_extensions; do
8744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8745 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8747 break 2
8749 done
8750 done
8751 IFS=$as_save_IFS
8754 esac
8756 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8757 if test -n "$aros_target_nm_ln"; then
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8759 $as_echo "$aros_target_nm_ln" >&6; }
8760 else
8761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8762 $as_echo "no" >&6; }
8767 if test "$aros_target_nm_ln" = ""; then
8768 # Extract the first word of "nm", so it can be a program name with args.
8769 set dummy nm; ac_word=$2
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8771 $as_echo_n "checking for $ac_word... " >&6; }
8772 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8773 $as_echo_n "(cached) " >&6
8774 else
8775 case $aros_target_nm_ln in
8776 [\\/]* | ?:[\\/]*)
8777 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8781 for as_dir in $PATH
8783 IFS=$as_save_IFS
8784 test -z "$as_dir" && as_dir=.
8785 for ac_exec_ext in '' $ac_executable_extensions; do
8786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8787 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8789 break 2
8791 done
8792 done
8793 IFS=$as_save_IFS
8796 esac
8798 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8799 if test -n "$aros_target_nm_ln"; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8801 $as_echo "$aros_target_nm_ln" >&6; }
8802 else
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8804 $as_echo "no" >&6; }
8810 else
8811 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8812 set dummy $aros_target_nm; ac_word=$2
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8814 $as_echo_n "checking for $ac_word... " >&6; }
8815 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8816 $as_echo_n "(cached) " >&6
8817 else
8818 case $aros_target_nm_ln in
8819 [\\/]* | ?:[\\/]*)
8820 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8824 for as_dir in $PATH
8826 IFS=$as_save_IFS
8827 test -z "$as_dir" && as_dir=.
8828 for ac_exec_ext in '' $ac_executable_extensions; do
8829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8830 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 break 2
8834 done
8835 done
8836 IFS=$as_save_IFS
8839 esac
8841 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8842 if test -n "$aros_target_nm_ln"; then
8843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8844 $as_echo "$aros_target_nm_ln" >&6; }
8845 else
8846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8847 $as_echo "no" >&6; }
8853 if test "$aros_target_nm_ln" = ""; then
8854 as_fn_error $? "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8857 if test "$aros_target_objcopy" = ""; then
8858 if test "$cross_compiling" = "yes" ; then
8859 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8860 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8862 $as_echo_n "checking for $ac_word... " >&6; }
8863 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 case $aros_target_objcopy_ln in
8867 [\\/]* | ?:[\\/]*)
8868 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8872 for as_dir in $PATH
8874 IFS=$as_save_IFS
8875 test -z "$as_dir" && as_dir=.
8876 for ac_exec_ext in '' $ac_executable_extensions; do
8877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8878 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8880 break 2
8882 done
8883 done
8884 IFS=$as_save_IFS
8887 esac
8889 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8890 if test -n "$aros_target_objcopy_ln"; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8892 $as_echo "$aros_target_objcopy_ln" >&6; }
8893 else
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8899 else
8900 if test "$GCC" = "yes"; then
8901 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8902 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8903 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8905 $as_echo_n "checking for $ac_word... " >&6; }
8906 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8907 $as_echo_n "(cached) " >&6
8908 else
8909 case $aros_target_objcopy_ln in
8910 [\\/]* | ?:[\\/]*)
8911 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8915 for as_dir in `dirname $aros_gcc_objcopy`
8917 IFS=$as_save_IFS
8918 test -z "$as_dir" && as_dir=.
8919 for ac_exec_ext in '' $ac_executable_extensions; do
8920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8921 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8923 break 2
8925 done
8926 done
8927 IFS=$as_save_IFS
8930 esac
8932 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8933 if test -n "$aros_target_objcopy_ln"; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8935 $as_echo "$aros_target_objcopy_ln" >&6; }
8936 else
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938 $as_echo "no" >&6; }
8943 if test "$aros_target_objcopy_ln" = ""; then
8944 # Extract the first word of "objcopy", so it can be a program name with args.
8945 set dummy objcopy; ac_word=$2
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8947 $as_echo_n "checking for $ac_word... " >&6; }
8948 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8949 $as_echo_n "(cached) " >&6
8950 else
8951 case $aros_target_objcopy_ln in
8952 [\\/]* | ?:[\\/]*)
8953 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 for as_dir in $PATH
8959 IFS=$as_save_IFS
8960 test -z "$as_dir" && as_dir=.
8961 for ac_exec_ext in '' $ac_executable_extensions; do
8962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8963 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965 break 2
8967 done
8968 done
8969 IFS=$as_save_IFS
8972 esac
8974 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8975 if test -n "$aros_target_objcopy_ln"; then
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8977 $as_echo "$aros_target_objcopy_ln" >&6; }
8978 else
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8980 $as_echo "no" >&6; }
8986 else
8987 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8988 set dummy $aros_target_objcopy; ac_word=$2
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8990 $as_echo_n "checking for $ac_word... " >&6; }
8991 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8992 $as_echo_n "(cached) " >&6
8993 else
8994 case $aros_target_objcopy_ln in
8995 [\\/]* | ?:[\\/]*)
8996 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9000 for as_dir in $PATH
9002 IFS=$as_save_IFS
9003 test -z "$as_dir" && as_dir=.
9004 for ac_exec_ext in '' $ac_executable_extensions; do
9005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9006 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9008 break 2
9010 done
9011 done
9012 IFS=$as_save_IFS
9015 esac
9017 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9018 if test -n "$aros_target_objcopy_ln"; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
9020 $as_echo "$aros_target_objcopy_ln" >&6; }
9021 else
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9023 $as_echo "no" >&6; }
9029 if test "$aros_target_objcopy_ln" = ""; then
9030 as_fn_error $? "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
9033 if test "$aros_target_objdump" = ""; then
9034 if test "$cross_compiling" = "yes" ; then
9035 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9036 set dummy ${target_tool_prefix}objdump; ac_word=$2
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9038 $as_echo_n "checking for $ac_word... " >&6; }
9039 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9041 else
9042 case $aros_target_objdump_ln in
9043 [\\/]* | ?:[\\/]*)
9044 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048 for as_dir in $PATH
9050 IFS=$as_save_IFS
9051 test -z "$as_dir" && as_dir=.
9052 for ac_exec_ext in '' $ac_executable_extensions; do
9053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9054 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9056 break 2
9058 done
9059 done
9060 IFS=$as_save_IFS
9063 esac
9065 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9066 if test -n "$aros_target_objdump_ln"; then
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9068 $as_echo "$aros_target_objdump_ln" >&6; }
9069 else
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9075 else
9076 if test "$GCC" = "yes"; then
9077 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9078 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9079 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081 $as_echo_n "checking for $ac_word... " >&6; }
9082 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 case $aros_target_objdump_ln in
9086 [\\/]* | ?:[\\/]*)
9087 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9091 for as_dir in `dirname $aros_gcc_objdump`
9093 IFS=$as_save_IFS
9094 test -z "$as_dir" && as_dir=.
9095 for ac_exec_ext in '' $ac_executable_extensions; do
9096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9097 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9099 break 2
9101 done
9102 done
9103 IFS=$as_save_IFS
9106 esac
9108 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9109 if test -n "$aros_target_objdump_ln"; then
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9111 $as_echo "$aros_target_objdump_ln" >&6; }
9112 else
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114 $as_echo "no" >&6; }
9119 if test "$aros_target_objdump_ln" = ""; then
9120 # Extract the first word of "objdump", so it can be a program name with args.
9121 set dummy objdump; ac_word=$2
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9123 $as_echo_n "checking for $ac_word... " >&6; }
9124 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9125 $as_echo_n "(cached) " >&6
9126 else
9127 case $aros_target_objdump_ln in
9128 [\\/]* | ?:[\\/]*)
9129 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 for as_dir in $PATH
9135 IFS=$as_save_IFS
9136 test -z "$as_dir" && as_dir=.
9137 for ac_exec_ext in '' $ac_executable_extensions; do
9138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9139 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9141 break 2
9143 done
9144 done
9145 IFS=$as_save_IFS
9148 esac
9150 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9151 if test -n "$aros_target_objdump_ln"; then
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9153 $as_echo "$aros_target_objdump_ln" >&6; }
9154 else
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9156 $as_echo "no" >&6; }
9162 else
9163 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9164 set dummy $aros_target_objdump; ac_word=$2
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9166 $as_echo_n "checking for $ac_word... " >&6; }
9167 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9169 else
9170 case $aros_target_objdump_ln in
9171 [\\/]* | ?:[\\/]*)
9172 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9176 for as_dir in $PATH
9178 IFS=$as_save_IFS
9179 test -z "$as_dir" && as_dir=.
9180 for ac_exec_ext in '' $ac_executable_extensions; do
9181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9182 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9184 break 2
9186 done
9187 done
9188 IFS=$as_save_IFS
9191 esac
9193 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9194 if test -n "$aros_target_objdump_ln"; then
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9196 $as_echo "$aros_target_objdump_ln" >&6; }
9197 else
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9199 $as_echo "no" >&6; }
9205 if test "$aros_target_objdump_ln" = ""; then
9206 as_fn_error $? "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9209 if test "$aros_target_ranlib" = ""; then
9210 if test "$cross_compiling" = "yes" ; then
9211 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9212 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214 $as_echo_n "checking for $ac_word... " >&6; }
9215 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
9217 else
9218 case $aros_target_ranlib_ln in
9219 [\\/]* | ?:[\\/]*)
9220 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9224 for as_dir in $PATH
9226 IFS=$as_save_IFS
9227 test -z "$as_dir" && as_dir=.
9228 for ac_exec_ext in '' $ac_executable_extensions; do
9229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9230 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9232 break 2
9234 done
9235 done
9236 IFS=$as_save_IFS
9239 esac
9241 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9242 if test -n "$aros_target_ranlib_ln"; then
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9244 $as_echo "$aros_target_ranlib_ln" >&6; }
9245 else
9246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9247 $as_echo "no" >&6; }
9251 else
9252 if test "$GCC" = "yes"; then
9253 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9254 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9255 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9257 $as_echo_n "checking for $ac_word... " >&6; }
9258 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9259 $as_echo_n "(cached) " >&6
9260 else
9261 case $aros_target_ranlib_ln in
9262 [\\/]* | ?:[\\/]*)
9263 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9267 for as_dir in `dirname $aros_gcc_ranlib`
9269 IFS=$as_save_IFS
9270 test -z "$as_dir" && as_dir=.
9271 for ac_exec_ext in '' $ac_executable_extensions; do
9272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9273 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9275 break 2
9277 done
9278 done
9279 IFS=$as_save_IFS
9282 esac
9284 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9285 if test -n "$aros_target_ranlib_ln"; then
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9287 $as_echo "$aros_target_ranlib_ln" >&6; }
9288 else
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9290 $as_echo "no" >&6; }
9295 if test "$aros_target_ranlib_ln" = ""; then
9296 # Extract the first word of "ranlib", so it can be a program name with args.
9297 set dummy ranlib; ac_word=$2
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9299 $as_echo_n "checking for $ac_word... " >&6; }
9300 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9301 $as_echo_n "(cached) " >&6
9302 else
9303 case $aros_target_ranlib_ln in
9304 [\\/]* | ?:[\\/]*)
9305 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9309 for as_dir in $PATH
9311 IFS=$as_save_IFS
9312 test -z "$as_dir" && as_dir=.
9313 for ac_exec_ext in '' $ac_executable_extensions; do
9314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9315 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9317 break 2
9319 done
9320 done
9321 IFS=$as_save_IFS
9324 esac
9326 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9327 if test -n "$aros_target_ranlib_ln"; then
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9329 $as_echo "$aros_target_ranlib_ln" >&6; }
9330 else
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9332 $as_echo "no" >&6; }
9338 else
9339 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9340 set dummy $aros_target_ranlib; ac_word=$2
9341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9342 $as_echo_n "checking for $ac_word... " >&6; }
9343 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9344 $as_echo_n "(cached) " >&6
9345 else
9346 case $aros_target_ranlib_ln in
9347 [\\/]* | ?:[\\/]*)
9348 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9352 for as_dir in $PATH
9354 IFS=$as_save_IFS
9355 test -z "$as_dir" && as_dir=.
9356 for ac_exec_ext in '' $ac_executable_extensions; do
9357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9358 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9360 break 2
9362 done
9363 done
9364 IFS=$as_save_IFS
9367 esac
9369 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9370 if test -n "$aros_target_ranlib_ln"; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9372 $as_echo "$aros_target_ranlib_ln" >&6; }
9373 else
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375 $as_echo "no" >&6; }
9381 if test "$aros_target_ranlib_ln" = ""; then
9382 as_fn_error $? "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9385 if test "$aros_target_strip" = ""; then
9386 if test "$cross_compiling" = "yes" ; then
9387 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9388 set dummy ${target_tool_prefix}strip; ac_word=$2
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9390 $as_echo_n "checking for $ac_word... " >&6; }
9391 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9392 $as_echo_n "(cached) " >&6
9393 else
9394 case $aros_target_strip_ln in
9395 [\\/]* | ?:[\\/]*)
9396 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9400 for as_dir in $PATH
9402 IFS=$as_save_IFS
9403 test -z "$as_dir" && as_dir=.
9404 for ac_exec_ext in '' $ac_executable_extensions; do
9405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9406 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9408 break 2
9410 done
9411 done
9412 IFS=$as_save_IFS
9415 esac
9417 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9418 if test -n "$aros_target_strip_ln"; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9420 $as_echo "$aros_target_strip_ln" >&6; }
9421 else
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423 $as_echo "no" >&6; }
9427 else
9428 if test "$GCC" = "yes"; then
9429 aros_gcc_strip=`$CC -print-prog-name=strip`
9430 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9431 set dummy `basename $aros_gcc_strip`; ac_word=$2
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9433 $as_echo_n "checking for $ac_word... " >&6; }
9434 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9435 $as_echo_n "(cached) " >&6
9436 else
9437 case $aros_target_strip_ln in
9438 [\\/]* | ?:[\\/]*)
9439 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9443 for as_dir in `dirname $aros_gcc_strip`
9445 IFS=$as_save_IFS
9446 test -z "$as_dir" && as_dir=.
9447 for ac_exec_ext in '' $ac_executable_extensions; do
9448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9449 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9451 break 2
9453 done
9454 done
9455 IFS=$as_save_IFS
9458 esac
9460 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9461 if test -n "$aros_target_strip_ln"; then
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9463 $as_echo "$aros_target_strip_ln" >&6; }
9464 else
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9466 $as_echo "no" >&6; }
9471 if test "$aros_target_strip_ln" = ""; then
9472 # Extract the first word of "strip", so it can be a program name with args.
9473 set dummy strip; ac_word=$2
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9475 $as_echo_n "checking for $ac_word... " >&6; }
9476 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9477 $as_echo_n "(cached) " >&6
9478 else
9479 case $aros_target_strip_ln in
9480 [\\/]* | ?:[\\/]*)
9481 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485 for as_dir in $PATH
9487 IFS=$as_save_IFS
9488 test -z "$as_dir" && as_dir=.
9489 for ac_exec_ext in '' $ac_executable_extensions; do
9490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9491 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9493 break 2
9495 done
9496 done
9497 IFS=$as_save_IFS
9500 esac
9502 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9503 if test -n "$aros_target_strip_ln"; then
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9505 $as_echo "$aros_target_strip_ln" >&6; }
9506 else
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9508 $as_echo "no" >&6; }
9514 else
9515 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9516 set dummy $aros_target_strip; ac_word=$2
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9518 $as_echo_n "checking for $ac_word... " >&6; }
9519 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9520 $as_echo_n "(cached) " >&6
9521 else
9522 case $aros_target_strip_ln in
9523 [\\/]* | ?:[\\/]*)
9524 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528 for as_dir in $PATH
9530 IFS=$as_save_IFS
9531 test -z "$as_dir" && as_dir=.
9532 for ac_exec_ext in '' $ac_executable_extensions; do
9533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9534 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9536 break 2
9538 done
9539 done
9540 IFS=$as_save_IFS
9543 esac
9545 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9546 if test -n "$aros_target_strip_ln"; then
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9548 $as_echo "$aros_target_strip_ln" >&6; }
9549 else
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9551 $as_echo "no" >&6; }
9557 if test "$aros_target_strip_ln" = ""; then
9558 as_fn_error $? "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9560 if test "$aros_target_cxx" != ""; then
9561 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9562 set dummy $aros_target_cxx; ac_word=$2
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9564 $as_echo_n "checking for $ac_word... " >&6; }
9565 if test "${ac_cv_path_aros_target_cxx+set}" = set; then :
9566 $as_echo_n "(cached) " >&6
9567 else
9568 case $aros_target_cxx in
9569 [\\/]* | ?:[\\/]*)
9570 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
9573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9574 for as_dir in $PATH
9576 IFS=$as_save_IFS
9577 test -z "$as_dir" && as_dir=.
9578 for ac_exec_ext in '' $ac_executable_extensions; do
9579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9580 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
9581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9582 break 2
9584 done
9585 done
9586 IFS=$as_save_IFS
9589 esac
9591 aros_target_cxx=$ac_cv_path_aros_target_cxx
9592 if test -n "$aros_target_cxx"; then
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
9594 $as_echo "$aros_target_cxx" >&6; }
9595 else
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9597 $as_echo "no" >&6; }
9601 # Temporarily disabled in order to let Mingw32-hosted nightly build to work
9602 # AROS_REQUIRED(c++,$aros_target_cxx)
9604 else
9605 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
9606 aros_target_cxx=""
9609 # Build crosstools if we have no C++ - temporary thing
9610 if test "$aros_target_cxx" = ""; then
9611 crosstools_target=tools-crosstools
9614 if test "$rescomp" != ""; then
9615 if test "$cross_compiling" = "yes" ; then
9616 rescomp=${target_tool_prefix}${rescomp}
9618 # Extract the first word of "$rescomp", so it can be a program name with args.
9619 set dummy $rescomp; ac_word=$2
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9621 $as_echo_n "checking for $ac_word... " >&6; }
9622 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
9623 $as_echo_n "(cached) " >&6
9624 else
9625 case $aros_kernel_rescomp in
9626 [\\/]* | ?:[\\/]*)
9627 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
9630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9631 for as_dir in $PATH
9633 IFS=$as_save_IFS
9634 test -z "$as_dir" && as_dir=.
9635 for ac_exec_ext in '' $ac_executable_extensions; do
9636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9637 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
9638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9639 break 2
9641 done
9642 done
9643 IFS=$as_save_IFS
9646 esac
9648 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
9649 if test -n "$aros_kernel_rescomp"; then
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
9651 $as_echo "$aros_kernel_rescomp" >&6; }
9652 else
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9654 $as_echo "no" >&6; }
9658 if test "$aros_kernel_rescomp" = ""; then
9659 as_fn_error $? "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
9663 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9664 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9665 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9666 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9667 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9668 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9669 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9671 # aros_cc_pre is a variable that is added to the front of the compiler name
9672 # in the generated aros-gcc shell script. We need this to enable the cache
9673 # to work across cleaned builds. Also, support DISTCC using the correct
9674 # environment variable.
9677 if test "x${DISTCC}" != "x" ; then
9678 if test "x${CCACHE}" != "x" ; then
9679 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9680 else
9681 aros_cc_pre="${DISTCC} "
9683 else
9684 if test "x${CCACHE}" != "x" ; then
9685 aros_cc_pre="${CCACHE} "
9689 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9691 aros_target_nostdinc_cflags=-nostdinc
9693 aros_target_nostartup_ldflags=-nostartfiles
9695 aros_target_nix_ldflags=-nix
9697 aros_target_detach_ldflags=-detach
9699 aros_target_nostdlib_ldflags=-nostdlib
9702 # Target tools
9703 if test "$aros_target_cc" = ""; then
9704 orig_target_cc=$aros_kernel_cc
9705 else
9706 orig_target_cc=$aros_target_cc
9708 if test "$aros_target_ld" = ""; then
9709 orig_target_ld=$aros_kernel_ld
9710 else
9711 orig_target_ld=$aros_target_ld
9713 if test "$GCC" = "yes"; then
9714 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9716 aros_target_cc="${prefix}-gcc"
9717 aros_target_as="${prefix}-as"
9718 aros_target_ld="${prefix}-ld"
9719 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9720 aros_target_objcopy=${prefix}-objcopy
9721 aros_target_objdump=${prefix}-objdump
9722 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9723 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9724 aros_kernel_nm="${prefix}-nm"
9725 aros_target_strip=${prefix}-strip
9727 # Find the system include path. We can suggest that an alternative is
9728 # used if we don't get it correct. The default is to use /usr/include.
9729 # Which is set in the aros_target_incl_def variable.
9731 # Check whether --enable-includes was given.
9732 if test "${enable_includes+set}" = set; then :
9733 enableval=$enable_includes; aros_target_incl=$enable_includes
9734 else
9735 aros_target_incl=$aros_target_incl_def
9739 if test "$aros_kernel_includes" = ""; then
9740 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9741 # FIXME: for cross-compiling this should point to another location
9742 aros_kernel_includes="-isystem $aros_target_incl"
9746 if test "$aros_kernel_includes" != "" ; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
9748 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
9749 if test "$aros_kernel_cc_includes" = "" ; then
9750 # Try to guess where the directory is.
9751 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
9752 if test -d $aros_kernel_cc_includes; then
9753 # Check if there is also an include-fixed directory and add it
9754 # to kernel compiler's include path as it may contain some of
9755 # the headers we need.
9756 if test -d "$aros_kernel_cc_includes"-fixed; then
9757 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
9759 else
9760 # The directory doesn't exist, we need to do some more work.
9761 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
9763 # These are the headers we're looking for.
9764 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9765 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9766 zutil.h"
9768 dirs=
9769 for h in $headers; do
9770 # Which other headers are needed by each of the above?
9771 deps=$(echo "#include <$h>" | \
9772 $aros_kernel_cc -E -M - 2>/dev/null | \
9773 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9775 # Copy all the needed headers to a directory beneath gendir.
9776 for d in $deps; do
9777 h=$(basename $d)
9778 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
9779 sed -n "s,^.*/include\(/.*\),\1,p")
9780 ! test -d $dir && mkdir -p $dir
9781 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9782 done
9783 done
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
9787 $as_echo "$aros_kernel_cc_includes" >&6; }
9788 # Adding -nostdinc to kernel includes as they are always used together.
9789 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9793 $as_echo_n "checking for the target compiler's include path... " >&6; }
9794 if test "$aros_target_cc_includes" = "" ; then
9795 #try to guess where the directory is
9796 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
9797 if ! test -d $aros_target_cc_includes; then
9798 #the directory doesn't exist, we need to do some more work
9799 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9801 #these are the headers we're looling for
9802 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9803 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9804 zutil.h"
9806 dirs=
9807 for h in $headers; do
9808 #which other headers each of the above headers needs?
9809 deps=$(echo "#include <$h>" | \
9810 $orig_target_cc -E -M - 2>/dev/null | \
9811 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9813 #copy all the needed headers to a directory beneath gendir
9814 for d in $deps; do
9815 h=$(basename $d)
9816 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9817 sed -n "s,^.*/include\(/.*\),\1,p")
9818 ! test -d $dir && mkdir -p $dir
9819 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9820 done
9821 done
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9825 $as_echo "$aros_target_cc_includes" >&6; }
9828 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9829 # On GCC >= 4.0 -iquote should be used
9832 save_cc="$CC"
9833 save_cflags="$CFLAGS"
9834 CFLAGS="-iquote."
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9836 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838 /* end confdefs.h. */
9841 main ()
9845 return 0;
9847 _ACEOF
9848 if ac_fn_c_try_compile "$LINENO"; then :
9849 has_iquote="yes"
9850 else
9851 has_iquote="no"
9853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9855 $as_echo "$has_iquote" >&6; }
9856 if test "x-$has_iquote" = "x-yes" ; then
9857 host_cflags_iquote=-iquote
9858 host_cflags_iquote_end=
9859 else
9860 host_cflags_iquote=-I
9861 host_cflags_iquote_end=-I-
9863 kernel_cflags_iquote=$host_cflags_iquote
9864 kernel_cflags_iquote_end=$host_cflags_iquote_end
9865 if test "x-$cross_compiling" = "x-yes"; then
9866 CC="$aros_kernel_cc"
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9868 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9870 /* end confdefs.h. */
9873 main ()
9877 return 0;
9879 _ACEOF
9880 if ac_fn_c_try_compile "$LINENO"; then :
9881 use_no_stack_protector="yes"
9882 else
9883 use_no_stack_protector="no"
9885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9887 $as_echo "$use_no_stack_protector" >&6; }
9888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9889 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9891 /* end confdefs.h. */
9894 main ()
9898 return 0;
9900 _ACEOF
9901 if ac_fn_c_try_compile "$LINENO"; then :
9902 has_iquote="yes"
9903 else
9904 has_iquote="no"
9906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9908 $as_echo "$has_iquote" >&6; }
9909 if test "x-$has_iquote" = "x-yes" ; then
9910 kernel_cflags_iquote=-iquote
9911 kernel_cflags_iquote_end=
9912 else
9913 kernel_cflags_iquote=-I
9914 kernel_cflags_iquote_end=-I-
9917 aros_cflags_iquote=$kernel_cflags_iquote
9918 aros_cflags_iquote_end=$kernel_cflags_iquote_end
9919 if test "$orig_target_cc" != "$aros_kernel_cc"; then
9920 CC="$orig_target_cc"
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9922 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9927 main ()
9931 return 0;
9933 _ACEOF
9934 if ac_fn_c_try_compile "$LINENO"; then :
9935 has_iquote="yes"
9936 else
9937 has_iquote="no"
9939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9941 $as_echo "$has_iquote" >&6; }
9942 if test "x-$has_iquote" = "x-yes" ; then
9943 aros_cflags_iquote=-iquote
9944 aros_cflags_iquote_end=
9945 else
9946 aros_cflags_iquote=-I
9947 aros_cflags_iquote_end=-I-
9950 if test "x-$use_no_stack_protector" = "x-yes" ; then
9951 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
9954 #-----------------------------------------------------------------------------
9956 # Check if we can explicitly choose older version of symbol hashing
9958 CFLAGS="save_cflags -Wl,--hash-style=sysv"
9959 CC="$aros_kernel_cc"
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
9961 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
9962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9963 /* end confdefs.h. */
9966 main ()
9970 return 0;
9972 _ACEOF
9973 if ac_fn_c_try_link "$LINENO"; then :
9974 use_hash_style="yes"
9975 else
9976 use_hash_style="no"
9978 rm -f core conftest.err conftest.$ac_objext \
9979 conftest$ac_exeext conftest.$ac_ext
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
9981 $as_echo "$use_hash_style" >&6; }
9982 if test "x-$use_hash_style" = "x-yes" ; then
9983 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
9985 CC="$save_cc"
9986 CFLAGS="$save_cflags"
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
9997 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
9999 # Check whether --with-resolution was given.
10000 if test "${with_resolution+set}" = set; then :
10001 withval=$with_resolution; resolution=$withval
10002 else
10003 resolution=none
10006 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10007 if test "$resolution" = "yes" ; then
10008 resolution="none"
10010 if test "$resolution" = "no" ; then
10011 resolution="none"
10013 if test "$resolution" != "none" ; then
10014 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10015 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10016 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10019 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10020 aros_cv_default_wbwidth=$aros_default_wbwidth
10021 aros_cv_default_wbheight=$aros_default_wbheight
10022 aros_cv_default_wbdepth=$aros_default_wbdepth
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
10025 $as_echo_n "checking if serial debug is enabled... " >&6; }
10027 # Check whether --with-serial-debug was given.
10028 if test "${with_serial_debug+set}" = set; then :
10029 withval=$with_serial_debug; serial_debug=$withval
10030 else
10031 serial_debug=none
10034 if test "$aros_serial_debug" = 0 ; then
10035 serial_debug_forced=""
10036 if test "$serial_debug" = "yes" ; then
10037 serial_debug="2"
10039 if test "$serial_debug" = "no" ; then
10040 serial_debug="none"
10042 else
10043 serial_debug_forced="(forced)"
10044 serial_debug=$aros_serial_debug
10046 if test "$serial_debug" != "none" ; then
10047 aros_serial_debug=$serial_debug
10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
10049 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
10050 else
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10052 $as_echo "no" >&6; }
10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
10056 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
10057 # Check whether --enable-palm_debug_hack was given.
10058 if test "${enable_palm_debug_hack+set}" = set; then :
10059 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
10060 else
10061 palm_debug_hack="no"
10064 if test "$palm_debug_hack" = "yes" ; then
10065 aros_palm_debug_hack="1"
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
10068 $as_echo "$palm_debug_hack" >&6; }
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
10072 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
10073 # Check whether --enable-nesting_supervisor was given.
10074 if test "${enable_nesting_supervisor+set}" = set; then :
10075 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
10076 else
10077 nesting_supervisor="no"
10080 if test "$nesting_supervisor" = "yes" ; then
10081 aros_nesting_supervisor="1"
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
10084 $as_echo "$nesting_supervisor" >&6; }
10086 if test "$aros_enable_mmu" = "" ; then
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
10088 $as_echo_n "checking if MMU support is enabled... " >&6; }
10089 # Check whether --enable-mmu was given.
10090 if test "${enable_mmu+set}" = set; then :
10091 enableval=$enable_mmu; aros_enable_mmu=$enableval
10092 else
10093 aros_enable_mmu="yes"
10096 if test "$aros_enable_mmu" = "" ; then
10097 aros_enable_mmu="yes"
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
10100 $as_echo "$aros_enable_mmu" >&6; }
10102 if test "$aros_enable_mmu" = "no" ; then
10103 aros_enable_mmu="0"
10104 else
10105 aros_enable_mmu="1"
10109 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10111 if test "x-$need_dlopen" != "x-no" ; then
10112 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10113 if test "x$ac_cv_func_dlopen" = x""yes; then :
10114 have_dl="yes"
10115 else
10116 have_dl="no"
10119 if test "x-$have_dl" = "x-no" ; then
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10121 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10122 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10123 $as_echo_n "(cached) " >&6
10124 else
10125 ac_check_lib_save_LIBS=$LIBS
10126 LIBS="-ldl $LIBS"
10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10130 /* Override any GCC internal prototype to avoid an error.
10131 Use char because int might match the return type of a GCC
10132 builtin and then its argument prototype would still apply. */
10133 #ifdef __cplusplus
10134 extern "C"
10135 #endif
10136 char dlopen ();
10138 main ()
10140 return dlopen ();
10142 return 0;
10144 _ACEOF
10145 if ac_fn_c_try_link "$LINENO"; then :
10146 ac_cv_lib_dl_dlopen=yes
10147 else
10148 ac_cv_lib_dl_dlopen=no
10150 rm -f core conftest.err conftest.$ac_objext \
10151 conftest$ac_exeext conftest.$ac_ext
10152 LIBS=$ac_check_lib_save_LIBS
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10155 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10156 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10157 have_dl="yes"
10158 aros_host_ldflags="$aros_host_ldflags -ldl"
10159 else
10160 have_dl="no"
10164 if test "x-$have_dl" = "x-no" ; then
10165 as_fn_error $? "dlopen() dynamic linker functions not available" "$LINENO" 5
10170 # Check whether --enable-x11_hidd was given.
10171 if test "${enable_x11_hidd+set}" = set; then :
10172 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10173 else
10174 x11_hidd="$need_x11"
10177 case "x-$x11_hidd" in
10178 x-yes|x-no|x-auto) ;;
10179 *) x11_hidd="$need_x11" ;;
10180 esac
10182 ENABLE_X11=0
10184 if test "x-$x11_hidd" != "x-no" ; then
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10187 $as_echo_n "checking for X... " >&6; }
10190 # Check whether --with-x was given.
10191 if test "${with_x+set}" = set; then :
10192 withval=$with_x;
10195 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10196 if test "x$with_x" = xno; then
10197 # The user explicitly disabled X.
10198 have_x=disabled
10199 else
10200 case $x_includes,$x_libraries in #(
10201 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
10202 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10203 $as_echo_n "(cached) " >&6
10204 else
10205 # One or both of the vars are not set, and there is no cached value.
10206 ac_x_includes=no ac_x_libraries=no
10207 rm -f -r conftest.dir
10208 if mkdir conftest.dir; then
10209 cd conftest.dir
10210 cat >Imakefile <<'_ACEOF'
10211 incroot:
10212 @echo incroot='${INCROOT}'
10213 usrlibdir:
10214 @echo usrlibdir='${USRLIBDIR}'
10215 libdir:
10216 @echo libdir='${LIBDIR}'
10217 _ACEOF
10218 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10219 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
10220 for ac_var in incroot usrlibdir libdir; do
10221 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10222 done
10223 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10224 for ac_extension in a so sl dylib la dll; do
10225 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10226 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10227 ac_im_usrlibdir=$ac_im_libdir; break
10229 done
10230 # Screen out bogus values from the imake configuration. They are
10231 # bogus both because they are the default anyway, and because
10232 # using them would break gcc on systems where it needs fixed includes.
10233 case $ac_im_incroot in
10234 /usr/include) ac_x_includes= ;;
10235 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10236 esac
10237 case $ac_im_usrlibdir in
10238 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10239 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10240 esac
10242 cd ..
10243 rm -f -r conftest.dir
10246 # Standard set of common directories for X headers.
10247 # Check X11 before X11Rn because it is often a symlink to the current release.
10248 ac_x_header_dirs='
10249 /usr/X11/include
10250 /usr/X11R7/include
10251 /usr/X11R6/include
10252 /usr/X11R5/include
10253 /usr/X11R4/include
10255 /usr/include/X11
10256 /usr/include/X11R7
10257 /usr/include/X11R6
10258 /usr/include/X11R5
10259 /usr/include/X11R4
10261 /usr/local/X11/include
10262 /usr/local/X11R7/include
10263 /usr/local/X11R6/include
10264 /usr/local/X11R5/include
10265 /usr/local/X11R4/include
10267 /usr/local/include/X11
10268 /usr/local/include/X11R7
10269 /usr/local/include/X11R6
10270 /usr/local/include/X11R5
10271 /usr/local/include/X11R4
10273 /usr/X386/include
10274 /usr/x386/include
10275 /usr/XFree86/include/X11
10277 /usr/include
10278 /usr/local/include
10279 /usr/unsupported/include
10280 /usr/athena/include
10281 /usr/local/x11r5/include
10282 /usr/lpp/Xamples/include
10284 /usr/openwin/include
10285 /usr/openwin/share/include'
10287 if test "$ac_x_includes" = no; then
10288 # Guess where to find include files, by looking for Xlib.h.
10289 # First, try using that file with no special directory specified.
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10292 #include <X11/Xlib.h>
10293 _ACEOF
10294 if ac_fn_c_try_cpp "$LINENO"; then :
10295 # We can compile using X headers with no special include directory.
10296 ac_x_includes=
10297 else
10298 for ac_dir in $ac_x_header_dirs; do
10299 if test -r "$ac_dir/X11/Xlib.h"; then
10300 ac_x_includes=$ac_dir
10301 break
10303 done
10305 rm -f conftest.err conftest.i conftest.$ac_ext
10306 fi # $ac_x_includes = no
10308 if test "$ac_x_libraries" = no; then
10309 # Check for the libraries.
10310 # See if we find them without any special options.
10311 # Don't add to $LIBS permanently.
10312 ac_save_LIBS=$LIBS
10313 LIBS="-lX11 $LIBS"
10314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10315 /* end confdefs.h. */
10316 #include <X11/Xlib.h>
10318 main ()
10320 XrmInitialize ()
10322 return 0;
10324 _ACEOF
10325 if ac_fn_c_try_link "$LINENO"; then :
10326 LIBS=$ac_save_LIBS
10327 # We can link X programs with no special library path.
10328 ac_x_libraries=
10329 else
10330 LIBS=$ac_save_LIBS
10331 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10333 # Don't even attempt the hair of trying to link an X program!
10334 for ac_extension in a so sl dylib la dll; do
10335 if test -r "$ac_dir/libX11.$ac_extension"; then
10336 ac_x_libraries=$ac_dir
10337 break 2
10339 done
10340 done
10342 rm -f core conftest.err conftest.$ac_objext \
10343 conftest$ac_exeext conftest.$ac_ext
10344 fi # $ac_x_libraries = no
10346 case $ac_x_includes,$ac_x_libraries in #(
10347 no,* | *,no | *\'*)
10348 # Didn't find X, or a directory has "'" in its name.
10349 ac_cv_have_x="have_x=no";; #(
10351 # Record where we found X for the cache.
10352 ac_cv_have_x="have_x=yes\
10353 ac_x_includes='$ac_x_includes'\
10354 ac_x_libraries='$ac_x_libraries'"
10355 esac
10357 ;; #(
10358 *) have_x=yes;;
10359 esac
10360 eval "$ac_cv_have_x"
10361 fi # $with_x != no
10363 if test "$have_x" != yes; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10365 $as_echo "$have_x" >&6; }
10366 no_x=yes
10367 else
10368 # If each of the values was on the command line, it overrides each guess.
10369 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10370 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10371 # Update the cache value to reflect the command line values.
10372 ac_cv_have_x="have_x=yes\
10373 ac_x_includes='$x_includes'\
10374 ac_x_libraries='$x_libraries'"
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10376 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10380 x_cflags=
10381 for path in $x_libraries
10383 x_cflags="$x_cflags -L$path"
10384 done
10386 for path in $x_includes
10388 x_cflags="$x_cflags -I$path"
10389 done
10391 if test "x-$no_x" = "x-yes" ; then
10393 if test "x-$x11_hidd" != "x-auto" ; then
10394 as_fn_error $? "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10397 else
10398 x11_hidd_target=kernel-x11gfx-kobj
10399 ENABLE_X11=1
10401 # Check whether --enable-x11_shm was given.
10402 if test "${enable_x11_shm+set}" = set; then :
10403 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10404 else
10405 x11_hidd_shm="auto"
10408 case "x-$x11_hidd_shm" in
10409 x-yes|x-no|x-auto) ;;
10410 *) x11_hidd_shm="auto" ;;
10411 esac
10413 have_xshm=no
10415 if test "x-$x11_hidd_shm" != "x-no" ; then
10417 for ac_header in sys/ipc.h
10418 do :
10419 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10420 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
10421 cat >>confdefs.h <<_ACEOF
10422 #define HAVE_SYS_IPC_H 1
10423 _ACEOF
10427 done
10429 for ac_header in sys/shm.h
10430 do :
10431 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10432 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
10433 cat >>confdefs.h <<_ACEOF
10434 #define HAVE_SYS_SHM_H 1
10435 _ACEOF
10439 done
10442 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10444 save_cflags="$CFLAGS"
10445 CFLAGS="$CFLAGS $x_cflags"
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10447 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10448 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
10449 $as_echo_n "(cached) " >&6
10450 else
10451 ac_check_lib_save_LIBS=$LIBS
10452 LIBS="-lXext $LIBS"
10453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10454 /* end confdefs.h. */
10456 /* Override any GCC internal prototype to avoid an error.
10457 Use char because int might match the return type of a GCC
10458 builtin and then its argument prototype would still apply. */
10459 #ifdef __cplusplus
10460 extern "C"
10461 #endif
10462 char XShmQueryExtension ();
10464 main ()
10466 return XShmQueryExtension ();
10468 return 0;
10470 _ACEOF
10471 if ac_fn_c_try_link "$LINENO"; then :
10472 ac_cv_lib_Xext_XShmQueryExtension=yes
10473 else
10474 ac_cv_lib_Xext_XShmQueryExtension=no
10476 rm -f core conftest.err conftest.$ac_objext \
10477 conftest$ac_exeext conftest.$ac_ext
10478 LIBS=$ac_check_lib_save_LIBS
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10481 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10482 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
10483 have_xshm=yes
10486 CFLAGS="$save_cflags"
10490 if test "x-$have_xshm" = "x-yes" ; then
10491 DO_XSHM_SUPPORT="1"
10492 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10493 as_fn_error $? "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10494 else
10495 DO_XSHM_SUPPORT="0"
10499 # Check whether --enable-x11_vidmode was given.
10500 if test "${enable_x11_vidmode+set}" = set; then :
10501 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10502 else
10503 x11_hidd_vidmode="auto"
10506 case "x-$x11_hidd_vidmode" in
10507 x-yes|x-no|x-auto) ;;
10508 *) x11_hidd_vidmode="auto" ;;
10509 esac
10511 have_vidmode=no
10513 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10515 save_cflags="$CFLAGS"
10516 CFLAGS="$CFLAGS $x_cflags"
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10518 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10519 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
10520 $as_echo_n "(cached) " >&6
10521 else
10522 ac_check_lib_save_LIBS=$LIBS
10523 LIBS="-lXxf86vm $LIBS"
10524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10527 /* Override any GCC internal prototype to avoid an error.
10528 Use char because int might match the return type of a GCC
10529 builtin and then its argument prototype would still apply. */
10530 #ifdef __cplusplus
10531 extern "C"
10532 #endif
10533 char XF86VidModeQueryExtension ();
10535 main ()
10537 return XF86VidModeQueryExtension ();
10539 return 0;
10541 _ACEOF
10542 if ac_fn_c_try_link "$LINENO"; then :
10543 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10544 else
10545 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10547 rm -f core conftest.err conftest.$ac_objext \
10548 conftest$ac_exeext conftest.$ac_ext
10549 LIBS=$ac_check_lib_save_LIBS
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10552 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10553 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
10554 have_vidmode=yes
10557 CFLAGS="$save_cflags"
10560 if test "x-$have_vidmode" = "x-yes" ; then
10561 DO_VIDMODE_SUPPORT="1"
10562 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10563 as_fn_error $? "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10564 else
10565 DO_VIDMODE_SUPPORT="0"
10569 aros_host_x11_includes=$x_includes
10570 aros_host_x11_libdirs=$x_libraries
10574 # Check whether --enable-sdl_hidd was given.
10575 if test "${enable_sdl_hidd+set}" = set; then :
10576 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10577 else
10578 sdl_hidd="auto"
10581 case "x-$sdl_hidd" in
10582 x-yes|x-no|x-auto) ;;
10583 *) sdl_hidd="auto" ;;
10584 esac
10586 if test "x-$sdl_hidd" != "x-no" ; then
10589 # Check whether --with-sdl-prefix was given.
10590 if test "${with_sdl_prefix+set}" = set; then :
10591 withval=$with_sdl_prefix; sdl_prefix="$withval"
10592 else
10593 sdl_prefix=""
10597 # Check whether --with-sdl-exec-prefix was given.
10598 if test "${with_sdl_exec_prefix+set}" = set; then :
10599 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10600 else
10601 sdl_exec_prefix=""
10604 # Check whether --enable-sdltest was given.
10605 if test "${enable_sdltest+set}" = set; then :
10606 enableval=$enable_sdltest;
10607 else
10608 enable_sdltest=yes
10612 if test x$sdl_exec_prefix != x ; then
10613 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10614 if test x${SDL_CONFIG+set} != xset ; then
10615 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10618 if test x$sdl_prefix != x ; then
10619 sdl_args="$sdl_args --prefix=$sdl_prefix"
10620 if test x${SDL_CONFIG+set} != xset ; then
10621 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10625 if test "x$prefix" != xNONE; then
10626 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10628 # Extract the first word of "sdl-config", so it can be a program name with args.
10629 set dummy sdl-config; ac_word=$2
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631 $as_echo_n "checking for $ac_word... " >&6; }
10632 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
10633 $as_echo_n "(cached) " >&6
10634 else
10635 case $SDL_CONFIG in
10636 [\\/]* | ?:[\\/]*)
10637 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641 for as_dir in $PATH
10643 IFS=$as_save_IFS
10644 test -z "$as_dir" && as_dir=.
10645 for ac_exec_ext in '' $ac_executable_extensions; do
10646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10647 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10649 break 2
10651 done
10652 done
10653 IFS=$as_save_IFS
10655 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10657 esac
10659 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10660 if test -n "$SDL_CONFIG"; then
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10662 $as_echo "$SDL_CONFIG" >&6; }
10663 else
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10665 $as_echo "no" >&6; }
10669 min_sdl_version=1.2.10
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10671 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10672 no_sdl=""
10673 if test "$SDL_CONFIG" = "no" ; then
10674 no_sdl=yes
10675 else
10676 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10677 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10679 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10680 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10681 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10682 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10683 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10684 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10685 if test "x$enable_sdltest" = "xyes" ; then
10686 ac_save_CFLAGS="$CFLAGS"
10687 ac_save_CXXFLAGS="$CXXFLAGS"
10688 ac_save_LIBS="$LIBS"
10689 CFLAGS="$CFLAGS $SDL_CFLAGS"
10690 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10691 LIBS="$LIBS $SDL_LIBS"
10692 rm -f conf.sdltest
10693 if test "$cross_compiling" = yes; then :
10694 echo $ac_n "cross compiling; assumed OK... $ac_c"
10695 else
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10699 #include <stdio.h>
10700 #include <stdlib.h>
10701 #include <string.h>
10702 #include "SDL.h"
10704 char*
10705 my_strdup (char *str)
10707 char *new_str;
10709 if (str)
10711 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10712 strcpy (new_str, str);
10714 else
10715 new_str = NULL;
10717 return new_str;
10720 int main (int argc, char *argv[])
10722 int major, minor, micro;
10723 char *tmp_version;
10725 /* This hangs on some systems (?)
10726 system ("touch conf.sdltest");
10728 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10730 /* HP/UX 9 (%@#!) writes to sscanf strings */
10731 tmp_version = my_strdup("$min_sdl_version");
10732 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10733 printf("%s, bad version string\n", "$min_sdl_version");
10734 exit(1);
10737 if (($sdl_major_version > major) ||
10738 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10739 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10741 return 0;
10743 else
10745 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10746 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10747 printf("*** best to upgrade to the required version.\n");
10748 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10749 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10750 printf("*** config.cache before re-running configure\n");
10751 return 1;
10756 _ACEOF
10757 if ac_fn_c_try_run "$LINENO"; then :
10759 else
10760 no_sdl=yes
10762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10763 conftest.$ac_objext conftest.beam conftest.$ac_ext
10766 CFLAGS="$ac_save_CFLAGS"
10767 CXXFLAGS="$ac_save_CXXFLAGS"
10768 LIBS="$ac_save_LIBS"
10771 if test "x$no_sdl" = x ; then
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10773 $as_echo "yes" >&6; }
10774 have_sdl="yes"
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10778 if test "$SDL_CONFIG" = "no" ; then
10779 echo "*** The sdl-config script installed by SDL could not be found"
10780 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10781 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10782 echo "*** full path to sdl-config."
10783 else
10784 if test -f conf.sdltest ; then
10786 else
10787 echo "*** Could not run SDL test program, checking why..."
10788 CFLAGS="$CFLAGS $SDL_CFLAGS"
10789 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10790 LIBS="$LIBS $SDL_LIBS"
10791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10792 /* end confdefs.h. */
10794 #include <stdio.h>
10795 #include "SDL.h"
10797 int main(int argc, char *argv[])
10798 { return 0; }
10799 #undef main
10800 #define main K_and_R_C_main
10803 main ()
10805 return 0;
10807 return 0;
10809 _ACEOF
10810 if ac_fn_c_try_link "$LINENO"; then :
10811 echo "*** The test program compiled, but did not run. This usually means"
10812 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10813 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10814 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10815 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10816 echo "*** is required on your system"
10817 echo "***"
10818 echo "*** If you have an old version installed, it is best to remove it, although"
10819 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10820 else
10821 echo "*** The test program failed to compile or link. See the file config.log for the"
10822 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10823 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10824 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10826 rm -f core conftest.err conftest.$ac_objext \
10827 conftest$ac_exeext conftest.$ac_ext
10828 CFLAGS="$ac_save_CFLAGS"
10829 CXXFLAGS="$ac_save_CXXFLAGS"
10830 LIBS="$ac_save_LIBS"
10833 SDL_CFLAGS=""
10834 SDL_LIBS=""
10835 have_sdl="no"
10839 rm -f conf.sdltest
10842 if test "x-$have_sdl" != "x-yes" ; then
10844 if test "x-$sdl_hidd" != "x-auto" ; then
10845 as_fn_error $? "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10848 else
10849 sdl_hidd_target=kernel-hidd-sdl
10850 aros_host_sdl_cflags=SDL_CFLAGS
10851 aros_host_sdl_libs=SDL_LIBS
10855 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10856 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
10861 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
10862 oss_library_target=workbench-libs-oss-unix
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10868 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10869 # Check whether --enable-dbus was given.
10870 if test "${enable_dbus+set}" = set; then :
10871 enableval=$enable_dbus; dbus="yes"
10872 else
10873 dbus="no"
10876 if test "$dbus" = "yes" ; then
10877 ENABLE_DBUS=1
10878 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10879 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10880 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10881 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10882 else
10883 ENABLE_DBUS=0
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10886 $as_echo "$dbus" >&6; }
10890 # Generic
10900 # Host related
10924 # Target Related
10979 # Graphics Related
10996 # Native version related
10999 # Palm native version related
11002 # Unix/Hosted version related
11005 # MMU related
11008 # Apple iOS related
11013 # Android related
11017 # DBUS related
11024 #X11 related
11027 # Debug related
11033 # Collect-aros stuff: "-ius" to ignore undefined symbols
11036 # C compiler related
11039 case "$aros_flavour" in
11040 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11041 aros_flavour="emulation" ;;
11042 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11043 aros_flavour="emulation" ;;
11044 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11045 aros_flavour="standalone";;
11046 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11047 aros_flavour="standalone";;
11048 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11049 aros_flavour="native" ;;
11050 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11051 aros_flavour="native" ;;
11052 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11053 aros_flavour="linklib" ;;
11054 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11055 aros_flavour="palmnative" ;;
11056 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11057 aros_flavour="mac68knative" ;;
11058 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
11059 aros_flavour="ppcnative" ;;
11060 esac
11062 if test ! -d ${aros_inc_dir} ; then
11063 ${MKDIR} ${aros_inc_dir}
11065 if test ! -d ${aros_geninc_dir} ; then
11066 ${MKDIR} ${aros_geninc_dir}
11068 if test ! -d ${aros_hostcfg_dir} ; then
11069 ${MKDIR} ${aros_hostcfg_dir}
11071 if test ! -d ${aros_targetcfg_dir} ; then
11072 ${MKDIR} ${aros_targetcfg_dir}
11074 if test ! -d ${aros_tools_dir} ; then
11075 ${MKDIR} ${aros_tools_dir}
11077 if test ! -d ${aros_scripts_dir} ; then
11078 ${MKDIR} ${aros_scripts_dir}
11081 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11084 ac_config_commands="$ac_config_commands compiler_executable"
11086 ac_config_commands="$ac_config_commands genshared_executable"
11088 ac_config_commands="$ac_config_commands genmf_executable"
11091 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/library_template_c/source/lib_source/genshared.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in"
11094 cat >confcache <<\_ACEOF
11095 # This file is a shell script that caches the results of configure
11096 # tests run on this system so they can be shared between configure
11097 # scripts and configure runs, see configure's option --config-cache.
11098 # It is not useful on other systems. If it contains results you don't
11099 # want to keep, you may remove or edit it.
11101 # config.status only pays attention to the cache file if you give it
11102 # the --recheck option to rerun configure.
11104 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11105 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11106 # following values.
11108 _ACEOF
11110 # The following way of writing the cache mishandles newlines in values,
11111 # but we know of no workaround that is simple, portable, and efficient.
11112 # So, we kill variables containing newlines.
11113 # Ultrix sh set writes to stderr and can't be redirected directly,
11114 # and sets the high bit in the cache file unless we assign to the vars.
11116 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11117 eval ac_val=\$$ac_var
11118 case $ac_val in #(
11119 *${as_nl}*)
11120 case $ac_var in #(
11121 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11122 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11123 esac
11124 case $ac_var in #(
11125 _ | IFS | as_nl) ;; #(
11126 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11127 *) { eval $ac_var=; unset $ac_var;} ;;
11128 esac ;;
11129 esac
11130 done
11132 (set) 2>&1 |
11133 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11134 *${as_nl}ac_space=\ *)
11135 # `set' does not quote correctly, so add quotes: double-quote
11136 # substitution turns \\\\ into \\, and sed turns \\ into \.
11137 sed -n \
11138 "s/'/'\\\\''/g;
11139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11140 ;; #(
11142 # `set' quotes correctly as required by POSIX, so do not add quotes.
11143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11145 esac |
11146 sort
11148 sed '
11149 /^ac_cv_env_/b end
11150 t clear
11151 :clear
11152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11153 t end
11154 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11155 :end' >>confcache
11156 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11157 if test -w "$cache_file"; then
11158 test "x$cache_file" != "x/dev/null" &&
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11160 $as_echo "$as_me: updating cache $cache_file" >&6;}
11161 cat confcache >$cache_file
11162 else
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11164 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11167 rm -f confcache
11169 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11170 # Let make expand exec_prefix.
11171 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11173 DEFS=-DHAVE_CONFIG_H
11175 ac_libobjs=
11176 ac_ltlibobjs=
11178 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11179 # 1. Remove the extension, and $U if already installed.
11180 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11181 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11182 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11183 # will be set to the directory where LIBOBJS objects are built.
11184 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11185 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11186 done
11187 LIBOBJS=$ac_libobjs
11189 LTLIBOBJS=$ac_ltlibobjs
11193 : ${CONFIG_STATUS=./config.status}
11194 ac_write_fail=0
11195 ac_clean_files_save=$ac_clean_files
11196 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11198 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11199 as_write_fail=0
11200 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11201 #! $SHELL
11202 # Generated by $as_me.
11203 # Run this file to recreate the current configuration.
11204 # Compiler output produced by configure, useful for debugging
11205 # configure, is in config.log if it exists.
11207 debug=false
11208 ac_cs_recheck=false
11209 ac_cs_silent=false
11211 SHELL=\${CONFIG_SHELL-$SHELL}
11212 export SHELL
11213 _ASEOF
11214 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11215 ## -------------------- ##
11216 ## M4sh Initialization. ##
11217 ## -------------------- ##
11219 # Be more Bourne compatible
11220 DUALCASE=1; export DUALCASE # for MKS sh
11221 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11222 emulate sh
11223 NULLCMD=:
11224 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11225 # is contrary to our usage. Disable this feature.
11226 alias -g '${1+"$@"}'='"$@"'
11227 setopt NO_GLOB_SUBST
11228 else
11229 case `(set -o) 2>/dev/null` in #(
11230 *posix*) :
11231 set -o posix ;; #(
11232 *) :
11234 esac
11238 as_nl='
11240 export as_nl
11241 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11242 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11243 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11244 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11245 # Prefer a ksh shell builtin over an external printf program on Solaris,
11246 # but without wasting forks for bash or zsh.
11247 if test -z "$BASH_VERSION$ZSH_VERSION" \
11248 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11249 as_echo='print -r --'
11250 as_echo_n='print -rn --'
11251 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11252 as_echo='printf %s\n'
11253 as_echo_n='printf %s'
11254 else
11255 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11256 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11257 as_echo_n='/usr/ucb/echo -n'
11258 else
11259 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11260 as_echo_n_body='eval
11261 arg=$1;
11262 case $arg in #(
11263 *"$as_nl"*)
11264 expr "X$arg" : "X\\(.*\\)$as_nl";
11265 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11266 esac;
11267 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11269 export as_echo_n_body
11270 as_echo_n='sh -c $as_echo_n_body as_echo'
11272 export as_echo_body
11273 as_echo='sh -c $as_echo_body as_echo'
11276 # The user is always right.
11277 if test "${PATH_SEPARATOR+set}" != set; then
11278 PATH_SEPARATOR=:
11279 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11280 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11281 PATH_SEPARATOR=';'
11286 # IFS
11287 # We need space, tab and new line, in precisely that order. Quoting is
11288 # there to prevent editors from complaining about space-tab.
11289 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11290 # splitting by setting IFS to empty value.)
11291 IFS=" "" $as_nl"
11293 # Find who we are. Look in the path if we contain no directory separator.
11294 case $0 in #((
11295 *[\\/]* ) as_myself=$0 ;;
11296 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11297 for as_dir in $PATH
11299 IFS=$as_save_IFS
11300 test -z "$as_dir" && as_dir=.
11301 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11302 done
11303 IFS=$as_save_IFS
11306 esac
11307 # We did not find ourselves, most probably we were run as `sh COMMAND'
11308 # in which case we are not to be found in the path.
11309 if test "x$as_myself" = x; then
11310 as_myself=$0
11312 if test ! -f "$as_myself"; then
11313 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11314 exit 1
11317 # Unset variables that we do not need and which cause bugs (e.g. in
11318 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11319 # suppresses any "Segmentation fault" message there. '((' could
11320 # trigger a bug in pdksh 5.2.14.
11321 for as_var in BASH_ENV ENV MAIL MAILPATH
11322 do eval test x\${$as_var+set} = xset \
11323 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11324 done
11325 PS1='$ '
11326 PS2='> '
11327 PS4='+ '
11329 # NLS nuisances.
11330 LC_ALL=C
11331 export LC_ALL
11332 LANGUAGE=C
11333 export LANGUAGE
11335 # CDPATH.
11336 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11339 # as_fn_error STATUS ERROR [LINENO LOG_FD]
11340 # ----------------------------------------
11341 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11342 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11343 # script with STATUS, using 1 if that was 0.
11344 as_fn_error ()
11346 as_status=$1; test $as_status -eq 0 && as_status=1
11347 if test "$4"; then
11348 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11349 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
11351 $as_echo "$as_me: error: $2" >&2
11352 as_fn_exit $as_status
11353 } # as_fn_error
11356 # as_fn_set_status STATUS
11357 # -----------------------
11358 # Set $? to STATUS, without forking.
11359 as_fn_set_status ()
11361 return $1
11362 } # as_fn_set_status
11364 # as_fn_exit STATUS
11365 # -----------------
11366 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11367 as_fn_exit ()
11369 set +e
11370 as_fn_set_status $1
11371 exit $1
11372 } # as_fn_exit
11374 # as_fn_unset VAR
11375 # ---------------
11376 # Portably unset VAR.
11377 as_fn_unset ()
11379 { eval $1=; unset $1;}
11381 as_unset=as_fn_unset
11382 # as_fn_append VAR VALUE
11383 # ----------------------
11384 # Append the text in VALUE to the end of the definition contained in VAR. Take
11385 # advantage of any shell optimizations that allow amortized linear growth over
11386 # repeated appends, instead of the typical quadratic growth present in naive
11387 # implementations.
11388 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11389 eval 'as_fn_append ()
11391 eval $1+=\$2
11393 else
11394 as_fn_append ()
11396 eval $1=\$$1\$2
11398 fi # as_fn_append
11400 # as_fn_arith ARG...
11401 # ------------------
11402 # Perform arithmetic evaluation on the ARGs, and store the result in the
11403 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11404 # must be portable across $(()) and expr.
11405 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11406 eval 'as_fn_arith ()
11408 as_val=$(( $* ))
11410 else
11411 as_fn_arith ()
11413 as_val=`expr "$@" || test $? -eq 1`
11415 fi # as_fn_arith
11418 if expr a : '\(a\)' >/dev/null 2>&1 &&
11419 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11420 as_expr=expr
11421 else
11422 as_expr=false
11425 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11426 as_basename=basename
11427 else
11428 as_basename=false
11431 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11432 as_dirname=dirname
11433 else
11434 as_dirname=false
11437 as_me=`$as_basename -- "$0" ||
11438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11439 X"$0" : 'X\(//\)$' \| \
11440 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11441 $as_echo X/"$0" |
11442 sed '/^.*\/\([^/][^/]*\)\/*$/{
11443 s//\1/
11446 /^X\/\(\/\/\)$/{
11447 s//\1/
11450 /^X\/\(\/\).*/{
11451 s//\1/
11454 s/.*/./; q'`
11456 # Avoid depending upon Character Ranges.
11457 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11458 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11459 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11460 as_cr_digits='0123456789'
11461 as_cr_alnum=$as_cr_Letters$as_cr_digits
11463 ECHO_C= ECHO_N= ECHO_T=
11464 case `echo -n x` in #(((((
11465 -n*)
11466 case `echo 'xy\c'` in
11467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11468 xy) ECHO_C='\c';;
11469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11470 ECHO_T=' ';;
11471 esac;;
11473 ECHO_N='-n';;
11474 esac
11476 rm -f conf$$ conf$$.exe conf$$.file
11477 if test -d conf$$.dir; then
11478 rm -f conf$$.dir/conf$$.file
11479 else
11480 rm -f conf$$.dir
11481 mkdir conf$$.dir 2>/dev/null
11483 if (echo >conf$$.file) 2>/dev/null; then
11484 if ln -s conf$$.file conf$$ 2>/dev/null; then
11485 as_ln_s='ln -s'
11486 # ... but there are two gotchas:
11487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11489 # In both cases, we have to default to `cp -p'.
11490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11491 as_ln_s='cp -p'
11492 elif ln conf$$.file conf$$ 2>/dev/null; then
11493 as_ln_s=ln
11494 else
11495 as_ln_s='cp -p'
11497 else
11498 as_ln_s='cp -p'
11500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11501 rmdir conf$$.dir 2>/dev/null
11504 # as_fn_mkdir_p
11505 # -------------
11506 # Create "$as_dir" as a directory, including parents if necessary.
11507 as_fn_mkdir_p ()
11510 case $as_dir in #(
11511 -*) as_dir=./$as_dir;;
11512 esac
11513 test -d "$as_dir" || eval $as_mkdir_p || {
11514 as_dirs=
11515 while :; do
11516 case $as_dir in #(
11517 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11518 *) as_qdir=$as_dir;;
11519 esac
11520 as_dirs="'$as_qdir' $as_dirs"
11521 as_dir=`$as_dirname -- "$as_dir" ||
11522 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11523 X"$as_dir" : 'X\(//\)[^/]' \| \
11524 X"$as_dir" : 'X\(//\)$' \| \
11525 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11526 $as_echo X"$as_dir" |
11527 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11528 s//\1/
11531 /^X\(\/\/\)[^/].*/{
11532 s//\1/
11535 /^X\(\/\/\)$/{
11536 s//\1/
11539 /^X\(\/\).*/{
11540 s//\1/
11543 s/.*/./; q'`
11544 test -d "$as_dir" && break
11545 done
11546 test -z "$as_dirs" || eval "mkdir $as_dirs"
11547 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
11550 } # as_fn_mkdir_p
11551 if mkdir -p . 2>/dev/null; then
11552 as_mkdir_p='mkdir -p "$as_dir"'
11553 else
11554 test -d ./-p && rmdir ./-p
11555 as_mkdir_p=false
11558 if test -x / >/dev/null 2>&1; then
11559 as_test_x='test -x'
11560 else
11561 if ls -dL / >/dev/null 2>&1; then
11562 as_ls_L_option=L
11563 else
11564 as_ls_L_option=
11566 as_test_x='
11567 eval sh -c '\''
11568 if test -d "$1"; then
11569 test -d "$1/.";
11570 else
11571 case $1 in #(
11572 -*)set "./$1";;
11573 esac;
11574 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11575 ???[sx]*):;;*)false;;esac;fi
11576 '\'' sh
11579 as_executable_p=$as_test_x
11581 # Sed expression to map a string onto a valid CPP name.
11582 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11584 # Sed expression to map a string onto a valid variable name.
11585 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11588 exec 6>&1
11589 ## ----------------------------------- ##
11590 ## Main body of $CONFIG_STATUS script. ##
11591 ## ----------------------------------- ##
11592 _ASEOF
11593 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11596 # Save the log message, to keep $0 and so on meaningful, and to
11597 # report actual input values of CONFIG_FILES etc. instead of their
11598 # values after options handling.
11599 ac_log="
11600 This file was extended by $as_me, which was
11601 generated by GNU Autoconf 2.67. Invocation command line was
11603 CONFIG_FILES = $CONFIG_FILES
11604 CONFIG_HEADERS = $CONFIG_HEADERS
11605 CONFIG_LINKS = $CONFIG_LINKS
11606 CONFIG_COMMANDS = $CONFIG_COMMANDS
11607 $ $0 $@
11609 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11612 _ACEOF
11614 case $ac_config_files in *"
11615 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11616 esac
11618 case $ac_config_headers in *"
11619 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11620 esac
11623 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11624 # Files that config.status was made for.
11625 config_files="$ac_config_files"
11626 config_headers="$ac_config_headers"
11627 config_commands="$ac_config_commands"
11629 _ACEOF
11631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11632 ac_cs_usage="\
11633 \`$as_me' instantiates files and other configuration actions
11634 from templates according to the current configuration. Unless the files
11635 and actions are specified as TAGs, all are instantiated by default.
11637 Usage: $0 [OPTION]... [TAG]...
11639 -h, --help print this help, then exit
11640 -V, --version print version number and configuration settings, then exit
11641 --config print configuration, then exit
11642 -q, --quiet, --silent
11643 do not print progress messages
11644 -d, --debug don't remove temporary files
11645 --recheck update $as_me by reconfiguring in the same conditions
11646 --file=FILE[:TEMPLATE]
11647 instantiate the configuration file FILE
11648 --header=FILE[:TEMPLATE]
11649 instantiate the configuration header FILE
11651 Configuration files:
11652 $config_files
11654 Configuration headers:
11655 $config_headers
11657 Configuration commands:
11658 $config_commands
11660 Report bugs to the package provider."
11662 _ACEOF
11663 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11664 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
11665 ac_cs_version="\\
11666 config.status
11667 configured by $0, generated by GNU Autoconf 2.67,
11668 with options \\"\$ac_cs_config\\"
11670 Copyright (C) 2010 Free Software Foundation, Inc.
11671 This config.status script is free software; the Free Software Foundation
11672 gives unlimited permission to copy, distribute and modify it."
11674 ac_pwd='$ac_pwd'
11675 srcdir='$srcdir'
11676 test -n "\$AWK" || AWK=awk
11677 _ACEOF
11679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11680 # The default lists apply if the user does not specify any file.
11681 ac_need_defaults=:
11682 while test $# != 0
11684 case $1 in
11685 --*=?*)
11686 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11687 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11688 ac_shift=:
11690 --*=)
11691 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11692 ac_optarg=
11693 ac_shift=:
11696 ac_option=$1
11697 ac_optarg=$2
11698 ac_shift=shift
11700 esac
11702 case $ac_option in
11703 # Handling of the options.
11704 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11705 ac_cs_recheck=: ;;
11706 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11707 $as_echo "$ac_cs_version"; exit ;;
11708 --config | --confi | --conf | --con | --co | --c )
11709 $as_echo "$ac_cs_config"; exit ;;
11710 --debug | --debu | --deb | --de | --d | -d )
11711 debug=: ;;
11712 --file | --fil | --fi | --f )
11713 $ac_shift
11714 case $ac_optarg in
11715 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11716 '') as_fn_error $? "missing file argument" ;;
11717 esac
11718 as_fn_append CONFIG_FILES " '$ac_optarg'"
11719 ac_need_defaults=false;;
11720 --header | --heade | --head | --hea )
11721 $ac_shift
11722 case $ac_optarg in
11723 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11724 esac
11725 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11726 ac_need_defaults=false;;
11727 --he | --h)
11728 # Conflict between --help and --header
11729 as_fn_error $? "ambiguous option: \`$1'
11730 Try \`$0 --help' for more information.";;
11731 --help | --hel | -h )
11732 $as_echo "$ac_cs_usage"; exit ;;
11733 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11734 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11735 ac_cs_silent=: ;;
11737 # This is an error.
11738 -*) as_fn_error $? "unrecognized option: \`$1'
11739 Try \`$0 --help' for more information." ;;
11741 *) as_fn_append ac_config_targets " $1"
11742 ac_need_defaults=false ;;
11744 esac
11745 shift
11746 done
11748 ac_configure_extra_args=
11750 if $ac_cs_silent; then
11751 exec 6>/dev/null
11752 ac_configure_extra_args="$ac_configure_extra_args --silent"
11755 _ACEOF
11756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11757 if \$ac_cs_recheck; then
11758 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11759 shift
11760 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11761 CONFIG_SHELL='$SHELL'
11762 export CONFIG_SHELL
11763 exec "\$@"
11766 _ACEOF
11767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11768 exec 5>>config.log
11770 echo
11771 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11772 ## Running $as_me. ##
11773 _ASBOX
11774 $as_echo "$ac_log"
11775 } >&5
11777 _ACEOF
11778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11780 # INIT-COMMANDS
11783 aros_host_exe_suffix=${aros_host_exe_suffix}
11784 aros_tools_dir=${aros_tools_dir}
11785 aros_target_cpu=${aros_target_cpu}
11786 aros_target_arch=${aros_target_arch}
11787 aros_target_suffix=${aros_target_suffix}
11788 aros_target_nm_ln=${aros_target_nm_ln}
11789 aros_target_as_ln=${aros_target_as_ln}
11790 aros_target_ar_ln=${aros_target_ar_ln}
11791 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11792 aros_target_objdump_ln=${aros_target_objdump_ln}
11793 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11794 aros_target_strip_ln=${aros_target_strip_ln}
11797 aros_scripts_dir=${aros_scripts_dir}
11799 aros_tools_dir=${aros_tools_dir}
11802 _ACEOF
11804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11806 # Handling of arguments.
11807 for ac_config_target in $ac_config_targets
11809 case $ac_config_target in
11810 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11811 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11812 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11813 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11814 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11815 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11816 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11817 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11818 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11819 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11820 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11821 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11822 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11823 "${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" ;;
11824 "${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" ;;
11825 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/library_template_c/source/lib_source/genshared.in" ;;
11826 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11827 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11828 "${aros_gendir}/arch/all-android/bootstrap/app/default.properties") CONFIG_FILES="$CONFIG_FILES ${aros_gendir}/arch/all-android/bootstrap/app/default.properties:arch/all-android/bootstrap/app/default.properties.in" ;;
11830 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
11831 esac
11832 done
11835 # If the user did not use the arguments to specify the items to instantiate,
11836 # then the envvar interface is used. Set only those that are not.
11837 # We use the long form for the default assignment because of an extremely
11838 # bizarre bug on SunOS 4.1.3.
11839 if $ac_need_defaults; then
11840 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11841 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11842 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11845 # Have a temporary directory for convenience. Make it in the build tree
11846 # simply because there is no reason against having it here, and in addition,
11847 # creating and moving files from /tmp can sometimes cause problems.
11848 # Hook for its removal unless debugging.
11849 # Note that there is a small window in which the directory will not be cleaned:
11850 # after its creation but before its name has been assigned to `$tmp'.
11851 $debug ||
11853 tmp=
11854 trap 'exit_status=$?
11855 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11857 trap 'as_fn_exit 1' 1 2 13 15
11859 # Create a (secure) tmp directory for tmp files.
11862 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11863 test -n "$tmp" && test -d "$tmp"
11864 } ||
11866 tmp=./conf$$-$RANDOM
11867 (umask 077 && mkdir "$tmp")
11868 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11870 # Set up the scripts for CONFIG_FILES section.
11871 # No need to generate them if there are no CONFIG_FILES.
11872 # This happens for instance with `./config.status config.h'.
11873 if test -n "$CONFIG_FILES"; then
11876 ac_cr=`echo X | tr X '\015'`
11877 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11878 # But we know of no other shell where ac_cr would be empty at this
11879 # point, so we can use a bashism as a fallback.
11880 if test "x$ac_cr" = x; then
11881 eval ac_cr=\$\'\\r\'
11883 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11884 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11885 ac_cs_awk_cr='\\r'
11886 else
11887 ac_cs_awk_cr=$ac_cr
11890 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11891 _ACEOF
11895 echo "cat >conf$$subs.awk <<_ACEOF" &&
11896 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11897 echo "_ACEOF"
11898 } >conf$$subs.sh ||
11899 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11900 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11901 ac_delim='%!_!# '
11902 for ac_last_try in false false false false false :; do
11903 . ./conf$$subs.sh ||
11904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11906 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11907 if test $ac_delim_n = $ac_delim_num; then
11908 break
11909 elif $ac_last_try; then
11910 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11911 else
11912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11914 done
11915 rm -f conf$$subs.sh
11917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11918 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11919 _ACEOF
11920 sed -n '
11922 s/^/S["/; s/!.*/"]=/
11925 s/^[^!]*!//
11926 :repl
11927 t repl
11928 s/'"$ac_delim"'$//
11929 t delim
11932 s/\(.\{148\}\)..*/\1/
11933 t more1
11934 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11937 b repl
11938 :more1
11939 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11942 s/.\{148\}//
11943 t nl
11944 :delim
11946 s/\(.\{148\}\)..*/\1/
11947 t more2
11948 s/["\\]/\\&/g; s/^/"/; s/$/"/
11951 :more2
11952 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11955 s/.\{148\}//
11956 t delim
11957 ' <conf$$subs.awk | sed '
11958 /^[^""]/{
11960 s/\n//
11962 ' >>$CONFIG_STATUS || ac_write_fail=1
11963 rm -f conf$$subs.awk
11964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11965 _ACAWK
11966 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11967 for (key in S) S_is_set[key] = 1
11968 FS = "\a"
11972 line = $ 0
11973 nfields = split(line, field, "@")
11974 substed = 0
11975 len = length(field[1])
11976 for (i = 2; i < nfields; i++) {
11977 key = field[i]
11978 keylen = length(key)
11979 if (S_is_set[key]) {
11980 value = S[key]
11981 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11982 len += length(value) + length(field[++i])
11983 substed = 1
11984 } else
11985 len += 1 + keylen
11988 print line
11991 _ACAWK
11992 _ACEOF
11993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11994 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11995 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11996 else
11998 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11999 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12000 _ACEOF
12002 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12003 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12004 # trailing colons and then remove the whole line if VPATH becomes empty
12005 # (actually we leave an empty line to preserve line numbers).
12006 if test "x$srcdir" = x.; then
12007 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12009 s///
12010 s/^/:/
12011 s/[ ]*$/:/
12012 s/:\$(srcdir):/:/g
12013 s/:\${srcdir}:/:/g
12014 s/:@srcdir@:/:/g
12015 s/^:*//
12016 s/:*$//
12018 s/\(=[ ]*\).*/\1/
12020 s/\n//
12021 s/^[^=]*=[ ]*$//
12025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12026 fi # test -n "$CONFIG_FILES"
12028 # Set up the scripts for CONFIG_HEADERS section.
12029 # No need to generate them if there are no CONFIG_HEADERS.
12030 # This happens for instance with `./config.status Makefile'.
12031 if test -n "$CONFIG_HEADERS"; then
12032 cat >"$tmp/defines.awk" <<\_ACAWK ||
12033 BEGIN {
12034 _ACEOF
12036 # Transform confdefs.h into an awk script `defines.awk', embedded as
12037 # here-document in config.status, that substitutes the proper values into
12038 # config.h.in to produce config.h.
12040 # Create a delimiter string that does not exist in confdefs.h, to ease
12041 # handling of long lines.
12042 ac_delim='%!_!# '
12043 for ac_last_try in false false :; do
12044 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12045 if test -z "$ac_t"; then
12046 break
12047 elif $ac_last_try; then
12048 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12049 else
12050 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12052 done
12054 # For the awk script, D is an array of macro values keyed by name,
12055 # likewise P contains macro parameters if any. Preserve backslash
12056 # newline sequences.
12058 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12059 sed -n '
12060 s/.\{148\}/&'"$ac_delim"'/g
12061 t rset
12062 :rset
12063 s/^[ ]*#[ ]*define[ ][ ]*/ /
12064 t def
12066 :def
12067 s/\\$//
12068 t bsnl
12069 s/["\\]/\\&/g
12070 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12071 D["\1"]=" \3"/p
12072 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12074 :bsnl
12075 s/["\\]/\\&/g
12076 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12077 D["\1"]=" \3\\\\\\n"\\/p
12078 t cont
12079 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12080 t cont
12082 :cont
12084 s/.\{148\}/&'"$ac_delim"'/g
12085 t clear
12086 :clear
12087 s/\\$//
12088 t bsnlc
12089 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12091 :bsnlc
12092 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12093 b cont
12094 ' <confdefs.h | sed '
12095 s/'"$ac_delim"'/"\\\
12096 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12099 for (key in D) D_is_set[key] = 1
12100 FS = "\a"
12102 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12103 line = \$ 0
12104 split(line, arg, " ")
12105 if (arg[1] == "#") {
12106 defundef = arg[2]
12107 mac1 = arg[3]
12108 } else {
12109 defundef = substr(arg[1], 2)
12110 mac1 = arg[2]
12112 split(mac1, mac2, "(") #)
12113 macro = mac2[1]
12114 prefix = substr(line, 1, index(line, defundef) - 1)
12115 if (D_is_set[macro]) {
12116 # Preserve the white space surrounding the "#".
12117 print prefix "define", macro P[macro] D[macro]
12118 next
12119 } else {
12120 # Replace #undef with comments. This is necessary, for example,
12121 # in the case of _POSIX_SOURCE, which is predefined and required
12122 # on some systems where configure will not decide to define it.
12123 if (defundef == "undef") {
12124 print "/*", prefix defundef, macro, "*/"
12125 next
12129 { print }
12130 _ACAWK
12131 _ACEOF
12132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12133 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12134 fi # test -n "$CONFIG_HEADERS"
12137 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12138 shift
12139 for ac_tag
12141 case $ac_tag in
12142 :[FHLC]) ac_mode=$ac_tag; continue;;
12143 esac
12144 case $ac_mode$ac_tag in
12145 :[FHL]*:*);;
12146 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12147 :[FH]-) ac_tag=-:-;;
12148 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12149 esac
12150 ac_save_IFS=$IFS
12151 IFS=:
12152 set x $ac_tag
12153 IFS=$ac_save_IFS
12154 shift
12155 ac_file=$1
12156 shift
12158 case $ac_mode in
12159 :L) ac_source=$1;;
12160 :[FH])
12161 ac_file_inputs=
12162 for ac_f
12164 case $ac_f in
12165 -) ac_f="$tmp/stdin";;
12166 *) # Look for the file first in the build tree, then in the source tree
12167 # (if the path is not absolute). The absolute path cannot be DOS-style,
12168 # because $ac_f cannot contain `:'.
12169 test -f "$ac_f" ||
12170 case $ac_f in
12171 [\\/$]*) false;;
12172 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12173 esac ||
12174 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12175 esac
12176 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12177 as_fn_append ac_file_inputs " '$ac_f'"
12178 done
12180 # Let's still pretend it is `configure' which instantiates (i.e., don't
12181 # use $as_me), people would be surprised to read:
12182 # /* config.h. Generated by config.status. */
12183 configure_input='Generated from '`
12184 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12185 `' by configure.'
12186 if test x"$ac_file" != x-; then
12187 configure_input="$ac_file. $configure_input"
12188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12189 $as_echo "$as_me: creating $ac_file" >&6;}
12191 # Neutralize special characters interpreted by sed in replacement strings.
12192 case $configure_input in #(
12193 *\&* | *\|* | *\\* )
12194 ac_sed_conf_input=`$as_echo "$configure_input" |
12195 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12196 *) ac_sed_conf_input=$configure_input;;
12197 esac
12199 case $ac_tag in
12200 *:-:* | *:-) cat >"$tmp/stdin" \
12201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12202 esac
12204 esac
12206 ac_dir=`$as_dirname -- "$ac_file" ||
12207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12208 X"$ac_file" : 'X\(//\)[^/]' \| \
12209 X"$ac_file" : 'X\(//\)$' \| \
12210 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12211 $as_echo X"$ac_file" |
12212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12213 s//\1/
12216 /^X\(\/\/\)[^/].*/{
12217 s//\1/
12220 /^X\(\/\/\)$/{
12221 s//\1/
12224 /^X\(\/\).*/{
12225 s//\1/
12228 s/.*/./; q'`
12229 as_dir="$ac_dir"; as_fn_mkdir_p
12230 ac_builddir=.
12232 case "$ac_dir" in
12233 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12235 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12236 # A ".." for each directory in $ac_dir_suffix.
12237 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12238 case $ac_top_builddir_sub in
12239 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12240 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12241 esac ;;
12242 esac
12243 ac_abs_top_builddir=$ac_pwd
12244 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12245 # for backward compatibility:
12246 ac_top_builddir=$ac_top_build_prefix
12248 case $srcdir in
12249 .) # We are building in place.
12250 ac_srcdir=.
12251 ac_top_srcdir=$ac_top_builddir_sub
12252 ac_abs_top_srcdir=$ac_pwd ;;
12253 [\\/]* | ?:[\\/]* ) # Absolute name.
12254 ac_srcdir=$srcdir$ac_dir_suffix;
12255 ac_top_srcdir=$srcdir
12256 ac_abs_top_srcdir=$srcdir ;;
12257 *) # Relative name.
12258 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12259 ac_top_srcdir=$ac_top_build_prefix$srcdir
12260 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12261 esac
12262 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12265 case $ac_mode in
12268 # CONFIG_FILE
12271 _ACEOF
12273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12274 # If the template does not know about datarootdir, expand it.
12275 # FIXME: This hack should be removed a few years after 2.60.
12276 ac_datarootdir_hack=; ac_datarootdir_seen=
12277 ac_sed_dataroot='
12278 /datarootdir/ {
12282 /@datadir@/p
12283 /@docdir@/p
12284 /@infodir@/p
12285 /@localedir@/p
12286 /@mandir@/p'
12287 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12288 *datarootdir*) ac_datarootdir_seen=yes;;
12289 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12291 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12292 _ACEOF
12293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12294 ac_datarootdir_hack='
12295 s&@datadir@&$datadir&g
12296 s&@docdir@&$docdir&g
12297 s&@infodir@&$infodir&g
12298 s&@localedir@&$localedir&g
12299 s&@mandir@&$mandir&g
12300 s&\\\${datarootdir}&$datarootdir&g' ;;
12301 esac
12302 _ACEOF
12304 # Neutralize VPATH when `$srcdir' = `.'.
12305 # Shell code in configure.ac might set extrasub.
12306 # FIXME: do we really want to maintain this feature?
12307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12308 ac_sed_extra="$ac_vpsub
12309 $extrasub
12310 _ACEOF
12311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12314 s|@configure_input@|$ac_sed_conf_input|;t t
12315 s&@top_builddir@&$ac_top_builddir_sub&;t t
12316 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12317 s&@srcdir@&$ac_srcdir&;t t
12318 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12319 s&@top_srcdir@&$ac_top_srcdir&;t t
12320 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12321 s&@builddir@&$ac_builddir&;t t
12322 s&@abs_builddir@&$ac_abs_builddir&;t t
12323 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12324 $ac_datarootdir_hack
12326 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12327 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12329 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12330 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12331 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12333 which seems to be undefined. Please make sure it is defined" >&5
12334 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12335 which seems to be undefined. Please make sure it is defined" >&2;}
12337 rm -f "$tmp/stdin"
12338 case $ac_file in
12339 -) cat "$tmp/out" && rm -f "$tmp/out";;
12340 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12341 esac \
12342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12346 # CONFIG_HEADER
12348 if test x"$ac_file" != x-; then
12350 $as_echo "/* $configure_input */" \
12351 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12352 } >"$tmp/config.h" \
12353 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12354 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12356 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12357 else
12358 rm -f "$ac_file"
12359 mv "$tmp/config.h" "$ac_file" \
12360 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
12362 else
12363 $as_echo "/* $configure_input */" \
12364 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12365 || as_fn_error $? "could not create -" "$LINENO" 5
12369 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12370 $as_echo "$as_me: executing $ac_file commands" >&6;}
12372 esac
12375 case $ac_file$ac_mode in
12376 "compiler_executable":C)
12377 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12378 mkdir -p $prefix
12379 prefix="${prefix}/${aros_target_cpu}-aros"
12380 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12382 echo ${prefix}
12383 echo ${prefix2}
12384 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12386 ln -sf ${prefix2}-gcc ${prefix}-gcc
12387 ln -sf ${prefix2}-ld ${prefix}-ld
12389 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12390 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12391 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12392 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12393 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12394 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12395 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12397 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12398 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12399 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12400 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12401 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12402 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12403 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12405 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
12406 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12408 esac
12409 done # for ac_tag
12412 as_fn_exit 0
12413 _ACEOF
12414 ac_clean_files=$ac_clean_files_save
12416 test $ac_write_fail = 0 ||
12417 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
12420 # configure is writing to config.log, and then calls config.status.
12421 # config.status does its own redirection, appending to config.log.
12422 # Unfortunately, on DOS this fails, as config.log is still kept open
12423 # by configure, so config.status won't be able to write to it; its
12424 # output is simply discarded. So we exec the FD to /dev/null,
12425 # effectively closing config.log, so it can be properly (re)opened and
12426 # appended to by config.status. When coming back to configure, we
12427 # need to make the FD available again.
12428 if test "$no_create" != yes; then
12429 ac_cs_success=:
12430 ac_config_status_args=
12431 test "$silent" = yes &&
12432 ac_config_status_args="$ac_config_status_args --quiet"
12433 exec 5>/dev/null
12434 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12435 exec 5>>config.log
12436 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12437 # would make configure fail if this is the last instruction.
12438 $ac_cs_success || as_fn_exit 1
12440 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12442 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12447 #XXX compatability...
12448 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12450 if test -n "$aros_shared_cflags" ; then
12451 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12452 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg