Fix consistency of use of AROS calling macro's:
[AROS.git] / configure
bloba0c1f57c0fea4b9ffcb9f3458d477c412b140572
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175 else
176 as_have_required=no
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
182 as_found=false
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=.
187 as_found=:
188 case $as_dir in #(
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
200 done;;
201 esac
202 as_found=false
203 done
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207 fi; }
208 IFS=$as_save_IFS
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
215 BASH_ENV=/dev/null
216 ENV=/dev/null
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
218 export CONFIG_SHELL
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
234 exit 1
238 SHELL=${CONFIG_SHELL-/bin/sh}
239 export SHELL
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
247 # as_fn_unset VAR
248 # ---------------
249 # Portably unset VAR.
250 as_fn_unset ()
252 { eval $1=; unset $1;}
254 as_unset=as_fn_unset
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
259 as_fn_set_status ()
261 return $1
262 } # as_fn_set_status
264 # as_fn_exit STATUS
265 # -----------------
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
267 as_fn_exit ()
269 set +e
270 as_fn_set_status $1
271 exit $1
272 } # as_fn_exit
274 # as_fn_mkdir_p
275 # -------------
276 # Create "$as_dir" as a directory, including parents if necessary.
277 as_fn_mkdir_p ()
280 case $as_dir in #(
281 -*) as_dir=./$as_dir;;
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
305 /^X\(\/\/\)$/{
306 s//\1/
309 /^X\(\/\).*/{
310 s//\1/
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320 } # as_fn_mkdir_p
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
326 # implementations.
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
330 eval $1+=\$2
332 else
333 as_fn_append ()
335 eval $1=\$$1\$2
337 fi # as_fn_append
339 # as_fn_arith ARG...
340 # ------------------
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
347 as_val=$(( $* ))
349 else
350 as_fn_arith ()
352 as_val=`expr "$@" || test $? -eq 1`
354 fi # as_fn_arith
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
362 as_fn_error ()
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371 } # as_fn_error
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
375 as_expr=expr
376 else
377 as_expr=false
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
381 as_basename=basename
382 else
383 as_basename=false
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
387 as_dirname=dirname
388 else
389 as_dirname=false
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
396 $as_echo X/"$0" |
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
398 s//\1/
401 /^X\/\(\/\/\)$/{
402 s//\1/
405 /^X\/\(\/\).*/{
406 s//\1/
409 s/.*/./; q'`
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n '
426 /[$]LINENO/=
427 ' <$as_myself |
428 sed '
429 s/[$]LINENO.*/&-/
430 t lineno
432 :lineno
434 :loop
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
436 t loop
437 s/-\n.*//
438 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
445 . "./$as_me.lineno"
446 # Exit status is that of the last command.
447 exit
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
452 -n*)
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;;
460 ECHO_N='-n';;
461 esac
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
466 else
467 rm -f conf$$.dir
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
472 as_ln_s='ln -s'
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
478 as_ln_s='cp -p'
479 elif ln conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s=ln
481 else
482 as_ln_s='cp -p'
484 else
485 as_ln_s='cp -p'
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
492 else
493 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false
497 if test -x / >/dev/null 2>&1; then
498 as_test_x='test -x'
499 else
500 if ls -dL / >/dev/null 2>&1; then
501 as_ls_L_option=L
502 else
503 as_ls_L_option=
505 as_test_x='
506 eval sh -c '\''
507 if test -d "$1"; then
508 test -d "$1/.";
509 else
510 case $1 in #(
511 -*)set "./$1";;
512 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 exec 7<&0 </dev/null 6>&1
529 # Name of the host.
530 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
531 # so uname gets run too.
532 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
535 # Initializations.
537 ac_default_prefix=/usr/local
538 ac_clean_files=
539 ac_config_libobj_dir=.
540 LIBOBJS=
541 cross_compiling=no
542 subdirs=
543 MFLAGS=
544 MAKEFLAGS=
546 # Identity of this package.
547 PACKAGE_NAME=
548 PACKAGE_TARNAME=
549 PACKAGE_VERSION=
550 PACKAGE_STRING=
551 PACKAGE_BUGREPORT=
552 PACKAGE_URL=
554 ac_unique_file="mmakefile"
555 # Factoring default headers for most tests.
556 ac_includes_default="\
557 #include <stdio.h>
558 #ifdef HAVE_SYS_TYPES_H
559 # include <sys/types.h>
560 #endif
561 #ifdef HAVE_SYS_STAT_H
562 # include <sys/stat.h>
563 #endif
564 #ifdef STDC_HEADERS
565 # include <stdlib.h>
566 # include <stddef.h>
567 #else
568 # ifdef HAVE_STDLIB_H
569 # include <stdlib.h>
570 # endif
571 #endif
572 #ifdef HAVE_STRING_H
573 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
574 # include <memory.h>
575 # endif
576 # include <string.h>
577 #endif
578 #ifdef HAVE_STRINGS_H
579 # include <strings.h>
580 #endif
581 #ifdef HAVE_INTTYPES_H
582 # include <inttypes.h>
583 #endif
584 #ifdef HAVE_STDINT_H
585 # include <stdint.h>
586 #endif
587 #ifdef HAVE_UNISTD_H
588 # include <unistd.h>
589 #endif"
591 ac_subst_vars='LTLIBOBJS
592 gcc_target_cpu
593 ignore_undefined_symbols
594 aros_modules_debug
595 aros_stack_debug
596 aros_mungwall_debug
597 aros_debug
598 ENABLE_X11
599 KERNEL_DBUS_INCLUDES
600 KERNEL_DBUS_KOBJ
601 DBUS_LIBFLAGS
602 DBUS_CFLAGS
603 ENABLE_DBUS
604 aros_android_level
605 aros_ios_sdk
606 aros_ios_version
607 aros_ios_platform
608 aros_enable_mmu
609 aros_nesting_supervisor
610 aros_palm_debug_hack
611 aros_serial_debug
612 aros_host_sdl_libs
613 aros_host_sdl_cflags
614 aros_host_x11_libdirs
615 aros_host_x11_includes
616 DO_VIDMODE_SUPPORT
617 DO_XSHM_SUPPORT
618 aros_default_wbdepth
619 aros_default_wbheight
620 aros_default_wbwidth
621 oss_library_target
622 pci_hidd_target
623 sdl_hidd_target
624 x11_hidd_target
625 crosstools_target
626 aros_target_strip_flags
627 aros_target_genmap
628 aros_paranoia_cflags
629 aros_debug_ldflags
630 aros_debug_aflags
631 aros_debug_cflags
632 aros_kernel_ldflags
633 aros_kernel_objcflags
634 aros_kernel_includes
635 aros_kernel_cflags
636 aros_shared_ldflags
637 aros_shared_aflags
638 aros_shared_cflags
639 aros_config_ldflags
640 aros_config_aflags
641 aros_config_cflags
642 aros_arch_libs
643 aros_compiler_libs
644 aros_object_format
645 aros_shared_ld
646 aros_shared_default
647 aros_target_nm
648 aros_target_strip
649 aros_target_objcopy
650 aros_target_objdump
651 aros_target_cc_path
652 aros_target_cc_includes
653 orig_target_ld
654 aros_target_as
655 aros_kernel_cc
656 orig_target_cc
657 aros_kernel_nm
658 aros_target_ranlib
659 aros_target_ar
660 aros_target_incl
661 aros_target_suffix
662 aros_target_variant
663 aros_target_cpu
664 aros_target_family
665 aros_target_arch
666 aros_target_bootloader
667 aros_target_iconset
668 aros_target_guitheme
669 aros_tools_dir
670 aros_host_lib_suffix
671 aros_host_exe_suffix
672 aros_host_mkargs
673 aros_host_mkdep
674 aros_host_debug
675 aros_host_ldflags
676 gnu89_inline
677 aros_host_cflags
678 aros_host_make
679 aros_host_cc
680 aros_host_cpu
681 aros_host_arch
682 aros_cc_pre
683 AROS_PORTSSRCDIR
684 SRCDIR
685 AROS_BUILDDIR_UNIX
686 AROS_BUILDDIR
687 aros_flavour_uc
688 aros_flavour
689 aros_cpu
690 aros_arch
691 SDL_LIBS
692 SDL_CFLAGS
693 SDL_CONFIG
694 XMKMF
695 aros_cflags_iquote_end
696 aros_cflags_iquote
697 kernel_cflags_iquote_end
698 kernel_cflags_iquote
699 host_cflags_iquote_end
700 host_cflags_iquote
701 aros_target_nostdlib_ldflags
702 aros_target_detach_ldflags
703 aros_target_nix_ldflags
704 aros_target_nostartup_ldflags
705 aros_target_nostdinc_cflags
706 aros_kernel_rescomp
707 aros_target_cxx
708 aros_target_strip_ln
709 aros_target_ranlib_ln
710 aros_target_objdump_ln
711 aros_target_objcopy_ln
712 aros_target_nm_ln
713 aros_target_ar_ln
714 aros_kernel_ld
715 aros_target_as_ln
716 aros_target_ld
717 aros_target_cc
718 android_tool
719 CCACHE
720 DISTCC
721 LIBOBJS
722 EGREP
723 GREP
725 TEST
728 pkgpyexecdir
729 pyexecdir
730 pkgpythondir
731 pythondir
732 PYTHON_PLATFORM
733 PYTHON_EXEC_PREFIX
734 PYTHON_PREFIX
735 PYTHON_VERSION
736 PYTHON
737 CHMOD
739 PPMTOILBM
740 PNGTOPNM
741 FLEX
742 BISON
745 UNIQ
746 SORT
747 TOUCH
748 MKDIR
749 ECHO
753 aros_host_strip
754 aros_host_ranlib
755 aros_host_ar
756 aros_host_automake
757 aros_host_autoheader
758 aros_host_autoconf
759 aros_host_aclocal
760 aros_host_ld
761 MMAKE
764 OBJEXT
765 EXEEXT
766 ac_ct_CC
767 CPPFLAGS
768 LDFLAGS
769 CFLAGS
771 host_os
772 host_vendor
773 host_cpu
774 host
775 build_os
776 build_vendor
777 build_cpu
778 build
779 target_alias
780 host_alias
781 build_alias
782 LIBS
783 ECHO_T
784 ECHO_N
785 ECHO_C
786 DEFS
787 mandir
788 localedir
789 libdir
790 psdir
791 pdfdir
792 dvidir
793 htmldir
794 infodir
795 docdir
796 oldincludedir
797 includedir
798 localstatedir
799 sharedstatedir
800 sysconfdir
801 datadir
802 datarootdir
803 libexecdir
804 sbindir
805 bindir
806 program_transform_name
807 prefix
808 exec_prefix
809 PACKAGE_URL
810 PACKAGE_BUGREPORT
811 PACKAGE_STRING
812 PACKAGE_VERSION
813 PACKAGE_TARNAME
814 PACKAGE_NAME
815 PATH_SEPARATOR
816 SHELL'
817 ac_subst_files=''
818 ac_user_opts='
819 enable_option_checking
820 enable_build_type
821 enable_debug
822 enable_crosstools
823 enable_distcc
824 enable_ccache
825 with_gcc_version
826 with_optimization
827 with_paranoia
828 enable_target_variant
829 with_xcode
830 with_ios_version
831 with_ios_sdk
832 with_sdk
833 with_ndk
834 with_android_version
835 with_portssources
836 with_bootloader
837 with_iconset
838 with_theme
839 enable_includes
840 with_resolution
841 with_serial_debug
842 enable_palm_debug_hack
843 enable_nesting_supervisor
844 enable_mmu
845 enable_x11_hidd
846 with_x
847 enable_x11_shm
848 enable_x11_vidmode
849 enable_sdl_hidd
850 with_sdl_prefix
851 with_sdl_exec_prefix
852 enable_sdltest
853 enable_dbus
855 ac_precious_vars='build_alias
856 host_alias
857 target_alias
859 CFLAGS
860 LDFLAGS
861 LIBS
862 CPPFLAGS
864 XMKMF'
867 # Initialize some variables set by options.
868 ac_init_help=
869 ac_init_version=false
870 ac_unrecognized_opts=
871 ac_unrecognized_sep=
872 # The variables have the same names as the options, with
873 # dashes changed to underlines.
874 cache_file=/dev/null
875 exec_prefix=NONE
876 no_create=
877 no_recursion=
878 prefix=NONE
879 program_prefix=NONE
880 program_suffix=NONE
881 program_transform_name=s,x,x,
882 silent=
883 site=
884 srcdir=
885 verbose=
886 x_includes=NONE
887 x_libraries=NONE
889 # Installation directory options.
890 # These are left unexpanded so users can "make install exec_prefix=/foo"
891 # and all the variables that are supposed to be based on exec_prefix
892 # by default will actually change.
893 # Use braces instead of parens because sh, perl, etc. also accept them.
894 # (The list follows the same order as the GNU Coding Standards.)
895 bindir='${exec_prefix}/bin'
896 sbindir='${exec_prefix}/sbin'
897 libexecdir='${exec_prefix}/libexec'
898 datarootdir='${prefix}/share'
899 datadir='${datarootdir}'
900 sysconfdir='${prefix}/etc'
901 sharedstatedir='${prefix}/com'
902 localstatedir='${prefix}/var'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE}'
906 infodir='${datarootdir}/info'
907 htmldir='${docdir}'
908 dvidir='${docdir}'
909 pdfdir='${docdir}'
910 psdir='${docdir}'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
915 ac_prev=
916 ac_dashdash=
917 for ac_option
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\$ac_option
922 ac_prev=
923 continue
926 case $ac_option in
927 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *) ac_optarg=yes ;;
929 esac
931 # Accept the important Cygnus configure options, so we can diagnose typos.
933 case $ac_dashdash$ac_option in
935 ac_dashdash=yes ;;
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
938 ac_prev=bindir ;;
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
940 bindir=$ac_optarg ;;
942 -build | --build | --buil | --bui | --bu)
943 ac_prev=build_alias ;;
944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945 build_alias=$ac_optarg ;;
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952 cache_file=$ac_optarg ;;
954 --config-cache | -C)
955 cache_file=config.cache ;;
957 -datadir | --datadir | --datadi | --datad)
958 ac_prev=datadir ;;
959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
960 datadir=$ac_optarg ;;
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
969 -disable-* | --disable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
978 "enable_$ac_useropt"
979 "*) ;;
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
982 esac
983 eval enable_$ac_useropt=no ;;
985 -docdir | --docdir | --docdi | --doc | --do)
986 ac_prev=docdir ;;
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
988 docdir=$ac_optarg ;;
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
991 ac_prev=dvidir ;;
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
993 dvidir=$ac_optarg ;;
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1005 "*) ;;
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1008 esac
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1022 with_gas=yes ;;
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1037 ac_prev=htmldir ;;
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1039 | --ht=*)
1040 htmldir=$ac_optarg ;;
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1050 ac_prev=infodir ;;
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1054 -libdir | --libdir | --libdi | --libd)
1055 ac_prev=libdir ;;
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1079 ac_prev=mandir ;;
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1085 with_fp=no ;;
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1089 no_create=yes ;;
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1093 no_recursion=yes ;;
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1105 ac_prev=prefix ;;
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1141 ac_prev=pdfdir ;;
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1145 -psdir | --psdir | --psdi | --psd | --ps)
1146 ac_prev=psdir ;;
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1148 psdir=$ac_optarg ;;
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1152 silent=yes ;;
1154 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1155 ac_prev=sbindir ;;
1156 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1157 | --sbi=* | --sb=*)
1158 sbindir=$ac_optarg ;;
1160 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1161 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1162 | --sharedst | --shareds | --shared | --share | --shar \
1163 | --sha | --sh)
1164 ac_prev=sharedstatedir ;;
1165 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1166 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1167 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1168 | --sha=* | --sh=*)
1169 sharedstatedir=$ac_optarg ;;
1171 -site | --site | --sit)
1172 ac_prev=site ;;
1173 -site=* | --site=* | --sit=*)
1174 site=$ac_optarg ;;
1176 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1177 ac_prev=srcdir ;;
1178 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1179 srcdir=$ac_optarg ;;
1181 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1182 | --syscon | --sysco | --sysc | --sys | --sy)
1183 ac_prev=sysconfdir ;;
1184 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1185 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1186 sysconfdir=$ac_optarg ;;
1188 -target | --target | --targe | --targ | --tar | --ta | --t)
1189 ac_prev=target_alias ;;
1190 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1191 target_alias=$ac_optarg ;;
1193 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1194 verbose=yes ;;
1196 -version | --version | --versio | --versi | --vers | -V)
1197 ac_init_version=: ;;
1199 -with-* | --with-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1201 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 as_fn_error "invalid package name: $ac_useropt"
1204 ac_useropt_orig=$ac_useropt
1205 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1206 case $ac_user_opts in
1208 "with_$ac_useropt"
1209 "*) ;;
1210 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1211 ac_unrecognized_sep=', ';;
1212 esac
1213 eval with_$ac_useropt=\$ac_optarg ;;
1215 -without-* | --without-*)
1216 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1217 # Reject names that are not valid shell variable names.
1218 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1219 as_fn_error "invalid package name: $ac_useropt"
1220 ac_useropt_orig=$ac_useropt
1221 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1222 case $ac_user_opts in
1224 "with_$ac_useropt"
1225 "*) ;;
1226 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1227 ac_unrecognized_sep=', ';;
1228 esac
1229 eval with_$ac_useropt=no ;;
1231 --x)
1232 # Obsolete; use --with-x.
1233 with_x=yes ;;
1235 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1236 | --x-incl | --x-inc | --x-in | --x-i)
1237 ac_prev=x_includes ;;
1238 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1239 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1240 x_includes=$ac_optarg ;;
1242 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1243 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1244 ac_prev=x_libraries ;;
1245 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1246 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1247 x_libraries=$ac_optarg ;;
1249 -*) as_fn_error "unrecognized option: \`$ac_option'
1250 Try \`$0 --help' for more information."
1253 *=*)
1254 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1255 # Reject names that are not valid shell variable names.
1256 case $ac_envvar in #(
1257 '' | [0-9]* | *[!_$as_cr_alnum]* )
1258 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1259 esac
1260 eval $ac_envvar=\$ac_optarg
1261 export $ac_envvar ;;
1264 # FIXME: should be removed in autoconf 3.0.
1265 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1266 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1267 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1268 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1271 esac
1272 done
1274 if test -n "$ac_prev"; then
1275 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1276 as_fn_error "missing argument to $ac_option"
1279 if test -n "$ac_unrecognized_opts"; then
1280 case $enable_option_checking in
1281 no) ;;
1282 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1283 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1284 esac
1287 # Check all directory arguments for consistency.
1288 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1289 datadir sysconfdir sharedstatedir localstatedir includedir \
1290 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1291 libdir localedir mandir
1293 eval ac_val=\$$ac_var
1294 # Remove trailing slashes.
1295 case $ac_val in
1296 */ )
1297 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1298 eval $ac_var=\$ac_val;;
1299 esac
1300 # Be sure to have absolute directory names.
1301 case $ac_val in
1302 [\\/$]* | ?:[\\/]* ) continue;;
1303 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1304 esac
1305 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1306 done
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1311 build=$build_alias
1312 host=$host_alias
1313 target=$target_alias
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317 if test "x$build_alias" = x; then
1318 cross_compiling=maybe
1319 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1320 If a cross compiler is detected then cross compile mode will be used." >&2
1321 elif test "x$build_alias" != "x$host_alias"; then
1322 cross_compiling=yes
1326 ac_tool_prefix=
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1329 test "$silent" = yes && exec 6>/dev/null
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335 as_fn_error "working directory cannot be determined"
1336 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1337 as_fn_error "pwd does not report name of working directory"
1340 # Find the source files, if location was not specified.
1341 if test -z "$srcdir"; then
1342 ac_srcdir_defaulted=yes
1343 # Try the directory containing this script, then the parent directory.
1344 ac_confdir=`$as_dirname -- "$as_myself" ||
1345 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1346 X"$as_myself" : 'X\(//\)[^/]' \| \
1347 X"$as_myself" : 'X\(//\)$' \| \
1348 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1349 $as_echo X"$as_myself" |
1350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1351 s//\1/
1354 /^X\(\/\/\)[^/].*/{
1355 s//\1/
1358 /^X\(\/\/\)$/{
1359 s//\1/
1362 /^X\(\/\).*/{
1363 s//\1/
1366 s/.*/./; q'`
1367 srcdir=$ac_confdir
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 srcdir=..
1371 else
1372 ac_srcdir_defaulted=no
1374 if test ! -r "$srcdir/$ac_unique_file"; then
1375 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1376 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1378 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379 ac_abs_confdir=`(
1380 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1381 pwd)`
1382 # When building in place, set srcdir=.
1383 if test "$ac_abs_confdir" = "$ac_pwd"; then
1384 srcdir=.
1386 # Remove unnecessary trailing slashes from srcdir.
1387 # Double slashes in file names in object file debugging info
1388 # mess up M-x gdb in Emacs.
1389 case $srcdir in
1390 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1391 esac
1392 for ac_var in $ac_precious_vars; do
1393 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1394 eval ac_env_${ac_var}_value=\$${ac_var}
1395 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1396 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1397 done
1400 # Report the --help message.
1402 if test "$ac_init_help" = "long"; then
1403 # Omit some internal or obsolete options to make the list less imposing.
1404 # This message is too long to be a string in the A/UX 3.1 sh.
1405 cat <<_ACEOF
1406 \`configure' configures this package to adapt to many kinds of systems.
1408 Usage: $0 [OPTION]... [VAR=VALUE]...
1410 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1411 VAR=VALUE. See below for descriptions of some of the useful variables.
1413 Defaults for the options are specified in brackets.
1415 Configuration:
1416 -h, --help display this help and exit
1417 --help=short display options specific to this package
1418 --help=recursive display the short help of all the included packages
1419 -V, --version display version information and exit
1420 -q, --quiet, --silent do not print \`checking...' messages
1421 --cache-file=FILE cache test results in FILE [disabled]
1422 -C, --config-cache alias for \`--cache-file=config.cache'
1423 -n, --no-create do not create output files
1424 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1426 Installation directories:
1427 --prefix=PREFIX install architecture-independent files in PREFIX
1428 [$ac_default_prefix]
1429 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1430 [PREFIX]
1432 By default, \`make install' will install all the files in
1433 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1434 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1435 for instance \`--prefix=\$HOME'.
1437 For better control, use the options below.
1439 Fine tuning of the installation directories:
1440 --bindir=DIR user executables [EPREFIX/bin]
1441 --sbindir=DIR system admin executables [EPREFIX/sbin]
1442 --libexecdir=DIR program executables [EPREFIX/libexec]
1443 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1444 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1445 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1446 --libdir=DIR object code libraries [EPREFIX/lib]
1447 --includedir=DIR C header files [PREFIX/include]
1448 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1451 --infodir=DIR info documentation [DATAROOTDIR/info]
1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1453 --mandir=DIR man documentation [DATAROOTDIR/man]
1454 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1455 --htmldir=DIR html documentation [DOCDIR]
1456 --dvidir=DIR dvi documentation [DOCDIR]
1457 --pdfdir=DIR pdf documentation [DOCDIR]
1458 --psdir=DIR ps documentation [DOCDIR]
1459 _ACEOF
1461 cat <<\_ACEOF
1463 X features:
1464 --x-includes=DIR X include files are in DIR
1465 --x-libraries=DIR X library files are in DIR
1467 System types:
1468 --build=BUILD configure for building on BUILD [guessed]
1469 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1470 _ACEOF
1473 if test -n "$ac_init_help"; then
1475 cat <<\_ACEOF
1477 Optional Features:
1478 --disable-option-checking ignore unrecognized --enable/--with options
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --enable-build-type=TYPE
1482 Select the build type. Available types are:
1483 personal, nightly, snapshot, milestone, release. Do
1484 NOT use this option unless you know what you are
1485 doing! (default=personal)
1486 --enable-debug=list Enable different types of debug. Commas or
1487 whitespaces can be used to separate the items in the
1488 list. Available types of debug are: all, none,
1489 messages, stack, mungwall, modules, symbols. If no
1490 list is provided then "all" is assumed.
1491 (default=none)
1492 --enable-crosstools Build cross-compiler toolchains if necessary
1493 (default=no).
1494 --enable-distcc Use distcc as a front end to the compiler
1495 (default=no).
1496 --enable-ccache Use ccache as a front end to the compiler
1497 (default=no).
1498 --enable-target-variant=NAME
1499 Enable a specific target variant(default=none)
1500 --enable-includes=dir Alternative system include directory
1501 --enable-palm-debug-hack
1502 Enable palm debug output hack in palm native
1503 (default=no)
1504 --enable-nesting-supervisor
1505 Enable nesting supervisor support in unix
1506 (default=no)
1507 --disable-mmu Disable MMU support (default=enabled)
1508 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1509 --enable-x11-shm use X11 shared memory (default=auto)
1510 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1511 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1512 --disable-sdltest Do not try to compile and run a test SDL program
1513 --enable-dbus Enable DBUS support via dbus.library (default=no)
1515 Optional Packages:
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-gcc-version=VERSION
1519 Use gcc-VERSION for building AROS
1520 --with-optimization=FLAGS
1521 Use optimization flags FLAGS (default=-O2).
1522 --with-paranoia=FLAGS CC flags to enable paranoia
1523 --with-xcode=PATH Specify XCode path for iOS targets
1524 (default=/Developer).
1525 --with-ios-version=VERSION
1526 Specify minimum supported iOS version (default=3.0).
1527 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1528 --with-sdk=PATH Specify Android SDK path
1529 (default=$default_android_sdk).
1530 --with-ndk=PATH Specify Android NDK path
1531 (default=$default_android_ndk).
1532 --with-android-version=VERSION
1533 Use Android platform VERSION (default=2.2).
1534 --with-portssources=DIR Where to download sourcecode for external ports
1535 --with-bootloader=NAME Use a specific bootloader
1536 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1537 --with-theme=NAME Use a specific GUI Theme
1538 --with-resolution=XRESxYRESxDEPTH
1539 Default resolution of the initial WorkbenchScreen
1540 --with-serial-debug Enable serial debug output in native (default=no)
1541 --with-x use the X Window System
1542 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1543 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1545 Some influential environment variables:
1546 CC C compiler command
1547 CFLAGS C compiler flags
1548 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549 nonstandard directory <lib dir>
1550 LIBS libraries to pass to the linker, e.g. -l<library>
1551 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1552 you have headers in a nonstandard directory <include dir>
1553 CPP C preprocessor
1554 XMKMF Path to xmkmf, Makefile generator for X Window System
1556 Use these variables to override the choices made by `configure' or to help
1557 it to find libraries and programs with nonstandard names/locations.
1559 Report bugs to the package provider.
1560 _ACEOF
1561 ac_status=$?
1564 if test "$ac_init_help" = "recursive"; then
1565 # If there are subdirs, report their specific --help.
1566 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1567 test -d "$ac_dir" ||
1568 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1569 continue
1570 ac_builddir=.
1572 case "$ac_dir" in
1573 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1576 # A ".." for each directory in $ac_dir_suffix.
1577 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1578 case $ac_top_builddir_sub in
1579 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1581 esac ;;
1582 esac
1583 ac_abs_top_builddir=$ac_pwd
1584 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1585 # for backward compatibility:
1586 ac_top_builddir=$ac_top_build_prefix
1588 case $srcdir in
1589 .) # We are building in place.
1590 ac_srcdir=.
1591 ac_top_srcdir=$ac_top_builddir_sub
1592 ac_abs_top_srcdir=$ac_pwd ;;
1593 [\\/]* | ?:[\\/]* ) # Absolute name.
1594 ac_srcdir=$srcdir$ac_dir_suffix;
1595 ac_top_srcdir=$srcdir
1596 ac_abs_top_srcdir=$srcdir ;;
1597 *) # Relative name.
1598 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1599 ac_top_srcdir=$ac_top_build_prefix$srcdir
1600 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1601 esac
1602 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604 cd "$ac_dir" || { ac_status=$?; continue; }
1605 # Check for guested configure.
1606 if test -f "$ac_srcdir/configure.gnu"; then
1607 echo &&
1608 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1609 elif test -f "$ac_srcdir/configure"; then
1610 echo &&
1611 $SHELL "$ac_srcdir/configure" --help=recursive
1612 else
1613 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1614 fi || ac_status=$?
1615 cd "$ac_pwd" || { ac_status=$?; break; }
1616 done
1619 test -n "$ac_init_help" && exit $ac_status
1620 if $ac_init_version; then
1621 cat <<\_ACEOF
1622 configure
1623 generated by GNU Autoconf 2.64
1625 Copyright (C) 2009 Free Software Foundation, Inc.
1626 This configure script is free software; the Free Software Foundation
1627 gives unlimited permission to copy, distribute and modify it.
1628 _ACEOF
1629 exit
1632 ## ------------------------ ##
1633 ## Autoconf initialization. ##
1634 ## ------------------------ ##
1636 # ac_fn_c_try_compile LINENO
1637 # --------------------------
1638 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1639 ac_fn_c_try_compile ()
1641 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1642 rm -f conftest.$ac_objext
1643 if { { ac_try="$ac_compile"
1644 case "(($ac_try" in
1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1646 *) ac_try_echo=$ac_try;;
1647 esac
1648 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1649 $as_echo "$ac_try_echo"; } >&5
1650 (eval "$ac_compile") 2>conftest.err
1651 ac_status=$?
1652 if test -s conftest.err; then
1653 grep -v '^ *+' conftest.err >conftest.er1
1654 cat conftest.er1 >&5
1655 mv -f conftest.er1 conftest.err
1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1658 test $ac_status = 0; } && {
1659 test -z "$ac_c_werror_flag" ||
1660 test ! -s conftest.err
1661 } && test -s conftest.$ac_objext; then :
1662 ac_retval=0
1663 else
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1667 ac_retval=1
1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670 return $ac_retval
1672 } # ac_fn_c_try_compile
1674 # ac_fn_c_try_cpp LINENO
1675 # ----------------------
1676 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_cpp ()
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } >/dev/null && {
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=1
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 return $ac_retval
1709 } # ac_fn_c_try_cpp
1711 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714 # the include files in INCLUDES and setting the cache variable VAR
1715 # accordingly.
1716 ac_fn_c_check_header_mongrel ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1723 $as_echo_n "(cached) " >&6
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 else
1729 # Is the header compilable?
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731 $as_echo_n "checking $2 usability... " >&6; }
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_header_compiler=yes
1739 else
1740 ac_header_compiler=no
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744 $as_echo "$ac_header_compiler" >&6; }
1746 # Is the header present?
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748 $as_echo_n "checking $2 presence... " >&6; }
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_cpp "$LINENO"; then :
1754 ac_header_preproc=yes
1755 else
1756 ac_header_preproc=no
1758 rm -f conftest.err conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760 $as_echo "$ac_header_preproc" >&6; }
1762 # So? What about this header?
1763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 yes:no: )
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1770 no:yes:* )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1782 esac
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 eval "$3=\$ac_header_compiler"
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796 } # ac_fn_c_check_header_mongrel
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1802 ac_fn_c_try_run ()
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 ac_retval=$ac_status
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 return $ac_retval
1838 } # ac_fn_c_try_run
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 } # ac_fn_c_check_header_compile
1871 # ac_fn_c_try_link LINENO
1872 # -----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_c_try_link ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 $as_test_x conftest$ac_exeext
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=1
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 return $ac_retval
1915 } # ac_fn_c_try_link
1917 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1918 # ----------------------------------------------------
1919 # Tries to find if the field MEMBER exists in type AGGR, after including
1920 # INCLUDES, setting cache variable VAR accordingly.
1921 ac_fn_c_check_member ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1925 $as_echo_n "checking for $2.$3... " >&6; }
1926 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1928 else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930 /* end confdefs.h. */
1933 main ()
1935 static $2 ac_aggr;
1936 if (ac_aggr.$3)
1937 return 0;
1939 return 0;
1941 _ACEOF
1942 if ac_fn_c_try_compile "$LINENO"; then :
1943 eval "$4=yes"
1944 else
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1949 main ()
1951 static $2 ac_aggr;
1952 if (sizeof ac_aggr.$3)
1953 return 0;
1955 return 0;
1957 _ACEOF
1958 if ac_fn_c_try_compile "$LINENO"; then :
1959 eval "$4=yes"
1960 else
1961 eval "$4=no"
1963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 eval ac_res=\$$4
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969 $as_echo "$ac_res" >&6; }
1970 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 } # ac_fn_c_check_member
1974 # ac_fn_c_check_decl LINENO SYMBOL VAR
1975 # ------------------------------------
1976 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1977 ac_fn_c_check_decl ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1981 $as_echo_n "checking whether $2 is declared... " >&6; }
1982 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1983 $as_echo_n "(cached) " >&6
1984 else
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1989 main ()
1991 #ifndef $2
1992 (void) $2;
1993 #endif
1996 return 0;
1998 _ACEOF
1999 if ac_fn_c_try_compile "$LINENO"; then :
2000 eval "$3=yes"
2001 else
2002 eval "$3=no"
2004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011 } # ac_fn_c_check_decl
2013 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2014 # -------------------------------------------
2015 # Tests whether TYPE exists after having included INCLUDES, setting cache
2016 # variable VAR accordingly.
2017 ac_fn_c_check_type ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2023 $as_echo_n "(cached) " >&6
2024 else
2025 eval "$3=no"
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2030 main ()
2032 if (sizeof ($2))
2033 return 0;
2035 return 0;
2037 _ACEOF
2038 if ac_fn_c_try_compile "$LINENO"; then :
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2043 main ()
2045 if (sizeof (($2)))
2046 return 0;
2048 return 0;
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2053 else
2054 eval "$3=yes"
2056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2060 eval ac_res=\$$3
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2062 $as_echo "$ac_res" >&6; }
2063 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2065 } # ac_fn_c_check_type
2067 # ac_fn_c_check_func LINENO FUNC VAR
2068 # ----------------------------------
2069 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2070 ac_fn_c_check_func ()
2072 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2074 $as_echo_n "checking for $2... " >&6; }
2075 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2076 $as_echo_n "(cached) " >&6
2077 else
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2080 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2081 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2082 #define $2 innocuous_$2
2084 /* System header to define __stub macros and hopefully few prototypes,
2085 which can conflict with char $2 (); below.
2086 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2087 <limits.h> exists even on freestanding compilers. */
2089 #ifdef __STDC__
2090 # include <limits.h>
2091 #else
2092 # include <assert.h>
2093 #endif
2095 #undef $2
2097 /* Override any GCC internal prototype to avoid an error.
2098 Use char because int might match the return type of a GCC
2099 builtin and then its argument prototype would still apply. */
2100 #ifdef __cplusplus
2101 extern "C"
2102 #endif
2103 char $2 ();
2104 /* The GNU C library defines this for functions which it implements
2105 to always fail with ENOSYS. Some functions are actually named
2106 something starting with __ and the normal name is an alias. */
2107 #if defined __stub_$2 || defined __stub___$2
2108 choke me
2109 #endif
2112 main ()
2114 return $2 ();
2116 return 0;
2118 _ACEOF
2119 if ac_fn_c_try_link "$LINENO"; then :
2120 eval "$3=yes"
2121 else
2122 eval "$3=no"
2124 rm -f core conftest.err conftest.$ac_objext \
2125 conftest$ac_exeext conftest.$ac_ext
2127 eval ac_res=\$$3
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2129 $as_echo "$ac_res" >&6; }
2130 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132 } # ac_fn_c_check_func
2133 cat >config.log <<_ACEOF
2134 This file contains any messages produced by compilers while
2135 running configure, to aid debugging if configure makes a mistake.
2137 It was created by $as_me, which was
2138 generated by GNU Autoconf 2.64. Invocation command line was
2140 $ $0 $@
2142 _ACEOF
2143 exec 5>>config.log
2145 cat <<_ASUNAME
2146 ## --------- ##
2147 ## Platform. ##
2148 ## --------- ##
2150 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2151 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2152 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2153 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2154 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2156 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2157 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2159 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2160 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2161 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2162 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2163 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2164 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2165 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2167 _ASUNAME
2169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2170 for as_dir in $PATH
2172 IFS=$as_save_IFS
2173 test -z "$as_dir" && as_dir=.
2174 $as_echo "PATH: $as_dir"
2175 done
2176 IFS=$as_save_IFS
2178 } >&5
2180 cat >&5 <<_ACEOF
2183 ## ----------- ##
2184 ## Core tests. ##
2185 ## ----------- ##
2187 _ACEOF
2190 # Keep a trace of the command line.
2191 # Strip out --no-create and --no-recursion so they do not pile up.
2192 # Strip out --silent because we don't want to record it for future runs.
2193 # Also quote any args containing shell meta-characters.
2194 # Make two passes to allow for proper duplicate-argument suppression.
2195 ac_configure_args=
2196 ac_configure_args0=
2197 ac_configure_args1=
2198 ac_must_keep_next=false
2199 for ac_pass in 1 2
2201 for ac_arg
2203 case $ac_arg in
2204 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2205 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2206 | -silent | --silent | --silen | --sile | --sil)
2207 continue ;;
2208 *\'*)
2209 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2210 esac
2211 case $ac_pass in
2212 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2214 as_fn_append ac_configure_args1 " '$ac_arg'"
2215 if test $ac_must_keep_next = true; then
2216 ac_must_keep_next=false # Got value, back to normal.
2217 else
2218 case $ac_arg in
2219 *=* | --config-cache | -C | -disable-* | --disable-* \
2220 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2221 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2222 | -with-* | --with-* | -without-* | --without-* | --x)
2223 case "$ac_configure_args0 " in
2224 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2225 esac
2227 -* ) ac_must_keep_next=true ;;
2228 esac
2230 as_fn_append ac_configure_args " '$ac_arg'"
2232 esac
2233 done
2234 done
2235 { ac_configure_args0=; unset ac_configure_args0;}
2236 { ac_configure_args1=; unset ac_configure_args1;}
2238 # When interrupted or exit'd, cleanup temporary files, and complete
2239 # config.log. We remove comments because anyway the quotes in there
2240 # would cause problems or look ugly.
2241 # WARNING: Use '\'' to represent an apostrophe within the trap.
2242 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2243 trap 'exit_status=$?
2244 # Save into config.log some information that might help in debugging.
2246 echo
2248 cat <<\_ASBOX
2249 ## ---------------- ##
2250 ## Cache variables. ##
2251 ## ---------------- ##
2252 _ASBOX
2253 echo
2254 # The following way of writing the cache mishandles newlines in values,
2256 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2257 eval ac_val=\$$ac_var
2258 case $ac_val in #(
2259 *${as_nl}*)
2260 case $ac_var in #(
2261 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2262 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2263 esac
2264 case $ac_var in #(
2265 _ | IFS | as_nl) ;; #(
2266 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2267 *) { eval $ac_var=; unset $ac_var;} ;;
2268 esac ;;
2269 esac
2270 done
2271 (set) 2>&1 |
2272 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2273 *${as_nl}ac_space=\ *)
2274 sed -n \
2275 "s/'\''/'\''\\\\'\'''\''/g;
2276 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2277 ;; #(
2279 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2281 esac |
2282 sort
2284 echo
2286 cat <<\_ASBOX
2287 ## ----------------- ##
2288 ## Output variables. ##
2289 ## ----------------- ##
2290 _ASBOX
2291 echo
2292 for ac_var in $ac_subst_vars
2294 eval ac_val=\$$ac_var
2295 case $ac_val in
2296 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2297 esac
2298 $as_echo "$ac_var='\''$ac_val'\''"
2299 done | sort
2300 echo
2302 if test -n "$ac_subst_files"; then
2303 cat <<\_ASBOX
2304 ## ------------------- ##
2305 ## File substitutions. ##
2306 ## ------------------- ##
2307 _ASBOX
2308 echo
2309 for ac_var in $ac_subst_files
2311 eval ac_val=\$$ac_var
2312 case $ac_val in
2313 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2314 esac
2315 $as_echo "$ac_var='\''$ac_val'\''"
2316 done | sort
2317 echo
2320 if test -s confdefs.h; then
2321 cat <<\_ASBOX
2322 ## ----------- ##
2323 ## confdefs.h. ##
2324 ## ----------- ##
2325 _ASBOX
2326 echo
2327 cat confdefs.h
2328 echo
2330 test "$ac_signal" != 0 &&
2331 $as_echo "$as_me: caught signal $ac_signal"
2332 $as_echo "$as_me: exit $exit_status"
2333 } >&5
2334 rm -f core *.core core.conftest.* &&
2335 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2336 exit $exit_status
2338 for ac_signal in 1 2 13 15; do
2339 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2340 done
2341 ac_signal=0
2343 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2344 rm -f -r conftest* confdefs.h
2346 $as_echo "/* confdefs.h */" > confdefs.h
2348 # Predefined preprocessor variables.
2350 cat >>confdefs.h <<_ACEOF
2351 #define PACKAGE_NAME "$PACKAGE_NAME"
2352 _ACEOF
2354 cat >>confdefs.h <<_ACEOF
2355 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2356 _ACEOF
2358 cat >>confdefs.h <<_ACEOF
2359 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2360 _ACEOF
2362 cat >>confdefs.h <<_ACEOF
2363 #define PACKAGE_STRING "$PACKAGE_STRING"
2364 _ACEOF
2366 cat >>confdefs.h <<_ACEOF
2367 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2368 _ACEOF
2370 cat >>confdefs.h <<_ACEOF
2371 #define PACKAGE_URL "$PACKAGE_URL"
2372 _ACEOF
2375 # Let the site file select an alternate cache file if it wants to.
2376 # Prefer an explicitly selected file to automatically selected ones.
2377 ac_site_file1=NONE
2378 ac_site_file2=NONE
2379 if test -n "$CONFIG_SITE"; then
2380 ac_site_file1=$CONFIG_SITE
2381 elif test "x$prefix" != xNONE; then
2382 ac_site_file1=$prefix/share/config.site
2383 ac_site_file2=$prefix/etc/config.site
2384 else
2385 ac_site_file1=$ac_default_prefix/share/config.site
2386 ac_site_file2=$ac_default_prefix/etc/config.site
2388 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2390 test "x$ac_site_file" = xNONE && continue
2391 if test -r "$ac_site_file"; then
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2393 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2394 sed 's/^/| /' "$ac_site_file" >&5
2395 . "$ac_site_file"
2397 done
2399 if test -r "$cache_file"; then
2400 # Some versions of bash will fail to source /dev/null (special
2401 # files actually), so we avoid doing that.
2402 if test -f "$cache_file"; then
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2404 $as_echo "$as_me: loading cache $cache_file" >&6;}
2405 case $cache_file in
2406 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2407 *) . "./$cache_file";;
2408 esac
2410 else
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2412 $as_echo "$as_me: creating cache $cache_file" >&6;}
2413 >$cache_file
2416 # Check that the precious variables saved in the cache have kept the same
2417 # value.
2418 ac_cache_corrupted=false
2419 for ac_var in $ac_precious_vars; do
2420 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2421 eval ac_new_set=\$ac_env_${ac_var}_set
2422 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2423 eval ac_new_val=\$ac_env_${ac_var}_value
2424 case $ac_old_set,$ac_new_set in
2425 set,)
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2427 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2428 ac_cache_corrupted=: ;;
2429 ,set)
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2431 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2432 ac_cache_corrupted=: ;;
2433 ,);;
2435 if test "x$ac_old_val" != "x$ac_new_val"; then
2436 # differences in whitespace do not lead to failure.
2437 ac_old_val_w=`echo x $ac_old_val`
2438 ac_new_val_w=`echo x $ac_new_val`
2439 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2441 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2442 ac_cache_corrupted=:
2443 else
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2445 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2446 eval $ac_var=\$ac_old_val
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2449 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2451 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2452 fi;;
2453 esac
2454 # Pass precious variables to config.status.
2455 if test "$ac_new_set" = set; then
2456 case $ac_new_val in
2457 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2458 *) ac_arg=$ac_var=$ac_new_val ;;
2459 esac
2460 case " $ac_configure_args " in
2461 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2462 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2463 esac
2465 done
2466 if $ac_cache_corrupted; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2470 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2471 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2473 ## -------------------- ##
2474 ## Main body of script. ##
2475 ## -------------------- ##
2477 ac_ext=c
2478 ac_cpp='$CPP $CPPFLAGS'
2479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2485 ac_aux_dir=
2486 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
2487 for ac_t in install-sh install.sh shtool; do
2488 if test -f "$ac_dir/$ac_t"; then
2489 ac_aux_dir=$ac_dir
2490 ac_install_sh="$ac_aux_dir/$ac_t -c"
2491 break 2
2493 done
2494 done
2495 if test -z "$ac_aux_dir"; then
2496 as_fn_error "cannot find install-sh, install.sh, or shtool in scripts/autoconf \"$srcdir\"/scripts/autoconf" "$LINENO" 5
2499 # These three variables are undocumented and unsupported,
2500 # and are intended to be withdrawn in a future Autoconf release.
2501 # They can cause serious problems if a builder's source tree is in a directory
2502 # whose full name contains unusual characters.
2503 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2504 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2505 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2509 # Check what host we are running on.
2510 # If a target is not suggested, we use this one.
2511 # Note that what we call a target, Autoconf calls a host.
2512 # Make sure we can run config.sub.
2513 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2514 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2517 $as_echo_n "checking build system type... " >&6; }
2518 if test "${ac_cv_build+set}" = set; then :
2519 $as_echo_n "(cached) " >&6
2520 else
2521 ac_build_alias=$build_alias
2522 test "x$ac_build_alias" = x &&
2523 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2524 test "x$ac_build_alias" = x &&
2525 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2526 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2527 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2531 $as_echo "$ac_cv_build" >&6; }
2532 case $ac_cv_build in
2533 *-*-*) ;;
2534 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2535 esac
2536 build=$ac_cv_build
2537 ac_save_IFS=$IFS; IFS='-'
2538 set x $ac_cv_build
2539 shift
2540 build_cpu=$1
2541 build_vendor=$2
2542 shift; shift
2543 # Remember, the first character of IFS is used to create $*,
2544 # except with old shells:
2545 build_os=$*
2546 IFS=$ac_save_IFS
2547 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2551 $as_echo_n "checking host system type... " >&6; }
2552 if test "${ac_cv_host+set}" = set; then :
2553 $as_echo_n "(cached) " >&6
2554 else
2555 if test "x$host_alias" = x; then
2556 ac_cv_host=$ac_cv_build
2557 else
2558 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2559 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2564 $as_echo "$ac_cv_host" >&6; }
2565 case $ac_cv_host in
2566 *-*-*) ;;
2567 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2568 esac
2569 host=$ac_cv_host
2570 ac_save_IFS=$IFS; IFS='-'
2571 set x $ac_cv_host
2572 shift
2573 host_cpu=$1
2574 host_vendor=$2
2575 shift; shift
2576 # Remember, the first character of IFS is used to create $*,
2577 # except with old shells:
2578 host_os=$*
2579 IFS=$ac_save_IFS
2580 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2584 # The AROS target is slightly different to the normal GNU style
2585 # format. We don't have the middle part, and we reverse the order
2586 # of the $(CPU) and $(OS) bits.
2588 # Don't strip the version of the target yet, it might be
2589 # useful on some systems.
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AROS style target" >&5
2592 $as_echo_n "checking for AROS style target... " >&6; }
2594 if test "$target" = "NONE" ; then
2595 target=$host_os-$host_cpu
2596 cross_compile=no
2597 else
2598 if test "$target" = "" ; then
2599 target=$host_os-$host_cpu
2600 cross_compile=no
2601 else
2602 cross_compile=yes
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target" >&5
2606 $as_echo "$target" >&6; }
2608 if test "$host_os" = "mingw32" ; then
2609 PWDCMD="pwd -W"
2612 #don't know where else to put this...
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Building AROS in .. " >&5
2614 $as_echo_n "checking Building AROS in .. ... " >&6; }
2615 AROS_BUILDDIR=`${PWDCMD-pwd}`
2616 AROS_BUILDDIR_UNIX=${PWD}
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_BUILDDIR" >&5
2618 $as_echo "$AROS_BUILDDIR" >&6; }
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking AROS Source in .. " >&5
2621 $as_echo_n "checking AROS Source in .. ... " >&6; }
2622 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2623 SRCDIR=${srcpwd}
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SRCDIR" >&5
2625 $as_echo "$SRCDIR" >&6; }
2627 # Parse the target field into something useful.
2629 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2630 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2633 aros_default_wbwidth=800
2634 aros_default_wbheight=600
2635 aros_default_wbdepth=4
2638 # The first step is to find the host binaries.
2639 # Check for a compiler.
2640 ac_ext=c
2641 ac_cpp='$CPP $CPPFLAGS'
2642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645 if test -n "$ac_tool_prefix"; then
2646 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2647 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if test "${ac_cv_prog_CC+set}" = set; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 if test -n "$CC"; then
2654 ac_cv_prog_CC="$CC" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2667 done
2668 done
2669 IFS=$as_save_IFS
2673 CC=$ac_cv_prog_CC
2674 if test -n "$CC"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2676 $as_echo "$CC" >&6; }
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2684 if test -z "$ac_cv_prog_CC"; then
2685 ac_ct_CC=$CC
2686 # Extract the first word of "gcc", so it can be a program name with args.
2687 set dummy gcc; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2691 $as_echo_n "(cached) " >&6
2692 else
2693 if test -n "$ac_ct_CC"; then
2694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_ac_ct_CC="gcc"
2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2707 done
2708 done
2709 IFS=$as_save_IFS
2713 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2714 if test -n "$ac_ct_CC"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2716 $as_echo "$ac_ct_CC" >&6; }
2717 else
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2722 if test "x$ac_ct_CC" = x; then
2723 CC=""
2724 else
2725 case $cross_compiling:$ac_tool_warned in
2726 yes:)
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729 ac_tool_warned=yes ;;
2730 esac
2731 CC=$ac_ct_CC
2733 else
2734 CC="$ac_cv_prog_CC"
2737 if test -z "$CC"; then
2738 if test -n "$ac_tool_prefix"; then
2739 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2740 set dummy ${ac_tool_prefix}cc; ac_word=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if test "${ac_cv_prog_CC+set}" = set; then :
2744 $as_echo_n "(cached) " >&6
2745 else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 ac_cv_prog_CC="${ac_tool_prefix}cc"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2760 done
2761 done
2762 IFS=$as_save_IFS
2766 CC=$ac_cv_prog_CC
2767 if test -n "$CC"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2769 $as_echo "$CC" >&6; }
2770 else
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2778 if test -z "$CC"; then
2779 # Extract the first word of "cc", so it can be a program name with args.
2780 set dummy cc; ac_word=$2
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if test "${ac_cv_prog_CC+set}" = set; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2788 else
2789 ac_prog_rejected=no
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2798 ac_prog_rejected=yes
2799 continue
2801 ac_cv_prog_CC="cc"
2802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2803 break 2
2805 done
2806 done
2807 IFS=$as_save_IFS
2809 if test $ac_prog_rejected = yes; then
2810 # We found a bogon in the path, so make sure we never use it.
2811 set dummy $ac_cv_prog_CC
2812 shift
2813 if test $# != 0; then
2814 # We chose a different compiler from the bogus one.
2815 # However, it has the same basename, so the bogon will be chosen
2816 # first if we set CC to just the basename; use the full file name.
2817 shift
2818 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2823 CC=$ac_cv_prog_CC
2824 if test -n "$CC"; then
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2826 $as_echo "$CC" >&6; }
2827 else
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2829 $as_echo "no" >&6; }
2834 if test -z "$CC"; then
2835 if test -n "$ac_tool_prefix"; then
2836 for ac_prog in cl.exe
2838 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2839 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 $as_echo_n "checking for $ac_word... " >&6; }
2842 if test "${ac_cv_prog_CC+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
2844 else
2845 if test -n "$CC"; then
2846 ac_cv_prog_CC="$CC" # Let the user override the test.
2847 else
2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849 for as_dir in $PATH
2851 IFS=$as_save_IFS
2852 test -z "$as_dir" && as_dir=.
2853 for ac_exec_ext in '' $ac_executable_extensions; do
2854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 break 2
2859 done
2860 done
2861 IFS=$as_save_IFS
2865 CC=$ac_cv_prog_CC
2866 if test -n "$CC"; then
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2868 $as_echo "$CC" >&6; }
2869 else
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 $as_echo "no" >&6; }
2875 test -n "$CC" && break
2876 done
2878 if test -z "$CC"; then
2879 ac_ct_CC=$CC
2880 for ac_prog in cl.exe
2882 # Extract the first word of "$ac_prog", so it can be a program name with args.
2883 set dummy $ac_prog; ac_word=$2
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2885 $as_echo_n "checking for $ac_word... " >&6; }
2886 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2887 $as_echo_n "(cached) " >&6
2888 else
2889 if test -n "$ac_ct_CC"; then
2890 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2895 IFS=$as_save_IFS
2896 test -z "$as_dir" && as_dir=.
2897 for ac_exec_ext in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_ac_ct_CC="$ac_prog"
2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 break 2
2903 done
2904 done
2905 IFS=$as_save_IFS
2909 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2910 if test -n "$ac_ct_CC"; then
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2912 $as_echo "$ac_ct_CC" >&6; }
2913 else
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2915 $as_echo "no" >&6; }
2919 test -n "$ac_ct_CC" && break
2920 done
2922 if test "x$ac_ct_CC" = x; then
2923 CC=""
2924 else
2925 case $cross_compiling:$ac_tool_warned in
2926 yes:)
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2929 ac_tool_warned=yes ;;
2930 esac
2931 CC=$ac_ct_CC
2938 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940 as_fn_error "no acceptable C compiler found in \$PATH
2941 See \`config.log' for more details." "$LINENO" 5; }
2943 # Provide some information about the compiler.
2944 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2945 set X $ac_compile
2946 ac_compiler=$2
2947 for ac_option in --version -v -V -qversion; do
2948 { { ac_try="$ac_compiler $ac_option >&5"
2949 case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952 esac
2953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954 $as_echo "$ac_try_echo"; } >&5
2955 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2956 ac_status=$?
2957 if test -s conftest.err; then
2958 sed '10a\
2959 ... rest of stderr output deleted ...
2960 10q' conftest.err >conftest.er1
2961 cat conftest.er1 >&5
2962 rm -f conftest.er1 conftest.err
2964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2965 test $ac_status = 0; }
2966 done
2968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2969 /* end confdefs.h. */
2970 #include <stdio.h>
2972 main ()
2974 FILE *f = fopen ("conftest.out", "w");
2975 return ferror (f) || fclose (f) != 0;
2978 return 0;
2980 _ACEOF
2981 ac_clean_files_save=$ac_clean_files
2982 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
2983 # Try to create an executable without -o first, disregard a.out.
2984 # It will help us diagnose broken compilers, and finding out an intuition
2985 # of exeext.
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2987 $as_echo_n "checking for C compiler default output file name... " >&6; }
2988 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2990 # The possible output files:
2991 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2993 ac_rmfiles=
2994 for ac_file in $ac_files
2996 case $ac_file in
2997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2998 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2999 esac
3000 done
3001 rm -f $ac_rmfiles
3003 if { { ac_try="$ac_link_default"
3004 case "(($ac_try" in
3005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3006 *) ac_try_echo=$ac_try;;
3007 esac
3008 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3009 $as_echo "$ac_try_echo"; } >&5
3010 (eval "$ac_link_default") 2>&5
3011 ac_status=$?
3012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3013 test $ac_status = 0; }; then :
3014 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3015 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3016 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3017 # so that the user can short-circuit this test for compilers unknown to
3018 # Autoconf.
3019 for ac_file in $ac_files ''
3021 test -f "$ac_file" || continue
3022 case $ac_file in
3023 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3025 [ab].out )
3026 # We found the default executable, but exeext='' is most
3027 # certainly right.
3028 break;;
3029 *.* )
3030 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3031 then :; else
3032 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3034 # We set ac_cv_exeext here because the later test for it is not
3035 # safe: cross compilers may not add the suffix if given an `-o'
3036 # argument, so we may need to know it at that point already.
3037 # Even if this section looks crufty: it has the advantage of
3038 # actually working.
3039 break;;
3041 break;;
3042 esac
3043 done
3044 test "$ac_cv_exeext" = no && ac_cv_exeext=
3046 else
3047 ac_file=''
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3050 $as_echo "$ac_file" >&6; }
3051 if test -z "$ac_file"; then :
3052 $as_echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3057 { as_fn_set_status 77
3058 as_fn_error "C compiler cannot create executables
3059 See \`config.log' for more details." "$LINENO" 5; }; }
3061 ac_exeext=$ac_cv_exeext
3063 # Check that the compiler produces executables we can run. If not, either
3064 # the compiler is broken, or we cross compile.
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3066 $as_echo_n "checking whether the C compiler works... " >&6; }
3067 # If not cross compiling, check that we can run a simple program.
3068 if test "$cross_compiling" != yes; then
3069 if { ac_try='./$ac_file'
3070 { { case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3075 $as_echo "$ac_try_echo"; } >&5
3076 (eval "$ac_try") 2>&5
3077 ac_status=$?
3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3079 test $ac_status = 0; }; }; then
3080 cross_compiling=no
3081 else
3082 if test "$cross_compiling" = maybe; then
3083 cross_compiling=yes
3084 else
3085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3087 as_fn_error "cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details." "$LINENO" 5; }
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3094 $as_echo "yes" >&6; }
3096 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3097 ac_clean_files=$ac_clean_files_save
3098 # Check that the compiler produces executables we can run. If not, either
3099 # the compiler is broken, or we cross compile.
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3101 $as_echo_n "checking whether we are cross compiling... " >&6; }
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3103 $as_echo "$cross_compiling" >&6; }
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3106 $as_echo_n "checking for suffix of executables... " >&6; }
3107 if { { ac_try="$ac_link"
3108 case "(($ac_try" in
3109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3110 *) ac_try_echo=$ac_try;;
3111 esac
3112 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3113 $as_echo "$ac_try_echo"; } >&5
3114 (eval "$ac_link") 2>&5
3115 ac_status=$?
3116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3117 test $ac_status = 0; }; then :
3118 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3119 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3120 # work properly (i.e., refer to `conftest.exe'), while it won't with
3121 # `rm'.
3122 for ac_file in conftest.exe conftest conftest.*; do
3123 test -f "$ac_file" || continue
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 break;;
3128 * ) break;;
3129 esac
3130 done
3131 else
3132 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3133 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3134 as_fn_error "cannot compute suffix of executables: cannot compile and link
3135 See \`config.log' for more details." "$LINENO" 5; }
3137 rm -f conftest$ac_cv_exeext
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3139 $as_echo "$ac_cv_exeext" >&6; }
3141 rm -f conftest.$ac_ext
3142 EXEEXT=$ac_cv_exeext
3143 ac_exeext=$EXEEXT
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3145 $as_echo_n "checking for suffix of object files... " >&6; }
3146 if test "${ac_cv_objext+set}" = set; then :
3147 $as_echo_n "(cached) " >&6
3148 else
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h. */
3153 main ()
3157 return 0;
3159 _ACEOF
3160 rm -f conftest.o conftest.obj
3161 if { { ac_try="$ac_compile"
3162 case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3165 esac
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_compile") 2>&5
3169 ac_status=$?
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }; then :
3172 for ac_file in conftest.o conftest.obj conftest.*; do
3173 test -f "$ac_file" || continue;
3174 case $ac_file in
3175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3176 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3177 break;;
3178 esac
3179 done
3180 else
3181 $as_echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3186 as_fn_error "cannot compute suffix of object files: cannot compile
3187 See \`config.log' for more details." "$LINENO" 5; }
3189 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3192 $as_echo "$ac_cv_objext" >&6; }
3193 OBJEXT=$ac_cv_objext
3194 ac_objext=$OBJEXT
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3196 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3197 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3198 $as_echo_n "(cached) " >&6
3199 else
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3204 main ()
3206 #ifndef __GNUC__
3207 choke me
3208 #endif
3211 return 0;
3213 _ACEOF
3214 if ac_fn_c_try_compile "$LINENO"; then :
3215 ac_compiler_gnu=yes
3216 else
3217 ac_compiler_gnu=no
3219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3220 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3224 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3225 if test $ac_compiler_gnu = yes; then
3226 GCC=yes
3227 else
3228 GCC=
3230 ac_test_CFLAGS=${CFLAGS+set}
3231 ac_save_CFLAGS=$CFLAGS
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3233 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3234 if test "${ac_cv_prog_cc_g+set}" = set; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 ac_save_c_werror_flag=$ac_c_werror_flag
3238 ac_c_werror_flag=yes
3239 ac_cv_prog_cc_g=no
3240 CFLAGS="-g"
3241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3242 /* end confdefs.h. */
3245 main ()
3249 return 0;
3251 _ACEOF
3252 if ac_fn_c_try_compile "$LINENO"; then :
3253 ac_cv_prog_cc_g=yes
3254 else
3255 CFLAGS=""
3256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3257 /* end confdefs.h. */
3260 main ()
3264 return 0;
3266 _ACEOF
3267 if ac_fn_c_try_compile "$LINENO"; then :
3269 else
3270 ac_c_werror_flag=$ac_save_c_werror_flag
3271 CFLAGS="-g"
3272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3273 /* end confdefs.h. */
3276 main ()
3280 return 0;
3282 _ACEOF
3283 if ac_fn_c_try_compile "$LINENO"; then :
3284 ac_cv_prog_cc_g=yes
3286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3291 ac_c_werror_flag=$ac_save_c_werror_flag
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3294 $as_echo "$ac_cv_prog_cc_g" >&6; }
3295 if test "$ac_test_CFLAGS" = set; then
3296 CFLAGS=$ac_save_CFLAGS
3297 elif test $ac_cv_prog_cc_g = yes; then
3298 if test "$GCC" = yes; then
3299 CFLAGS="-g -O2"
3300 else
3301 CFLAGS="-g"
3303 else
3304 if test "$GCC" = yes; then
3305 CFLAGS="-O2"
3306 else
3307 CFLAGS=
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3311 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3312 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3313 $as_echo_n "(cached) " >&6
3314 else
3315 ac_cv_prog_cc_c89=no
3316 ac_save_CC=$CC
3317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3318 /* end confdefs.h. */
3319 #include <stdarg.h>
3320 #include <stdio.h>
3321 #include <sys/types.h>
3322 #include <sys/stat.h>
3323 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3324 struct buf { int x; };
3325 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3326 static char *e (p, i)
3327 char **p;
3328 int i;
3330 return p[i];
3332 static char *f (char * (*g) (char **, int), char **p, ...)
3334 char *s;
3335 va_list v;
3336 va_start (v,p);
3337 s = g (p, va_arg (v,int));
3338 va_end (v);
3339 return s;
3342 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3343 function prototypes and stuff, but not '\xHH' hex character constants.
3344 These don't provoke an error unfortunately, instead are silently treated
3345 as 'x'. The following induces an error, until -std is added to get
3346 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3347 array size at least. It's necessary to write '\x00'==0 to get something
3348 that's true only with -std. */
3349 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3351 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3352 inside strings and character constants. */
3353 #define FOO(x) 'x'
3354 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3356 int test (int i, double x);
3357 struct s1 {int (*f) (int a);};
3358 struct s2 {int (*f) (double a);};
3359 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3360 int argc;
3361 char **argv;
3363 main ()
3365 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3367 return 0;
3369 _ACEOF
3370 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3371 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3373 CC="$ac_save_CC $ac_arg"
3374 if ac_fn_c_try_compile "$LINENO"; then :
3375 ac_cv_prog_cc_c89=$ac_arg
3377 rm -f core conftest.err conftest.$ac_objext
3378 test "x$ac_cv_prog_cc_c89" != "xno" && break
3379 done
3380 rm -f conftest.$ac_ext
3381 CC=$ac_save_CC
3384 # AC_CACHE_VAL
3385 case "x$ac_cv_prog_cc_c89" in
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3388 $as_echo "none needed" >&6; } ;;
3389 xno)
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3391 $as_echo "unsupported" >&6; } ;;
3393 CC="$CC $ac_cv_prog_cc_c89"
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3395 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3396 esac
3397 if test "x$ac_cv_prog_cc_c89" != xno; then :
3401 ac_ext=c
3402 ac_cpp='$CPP $CPPFLAGS'
3403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407 case $ac_cv_prog_cc_stdc in #(
3408 no) :
3409 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
3410 *) :
3411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3412 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3413 if test "${ac_cv_prog_cc_c99+set}" = set; then :
3414 $as_echo_n "(cached) " >&6
3415 else
3416 ac_cv_prog_cc_c99=no
3417 ac_save_CC=$CC
3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3419 /* end confdefs.h. */
3420 #include <stdarg.h>
3421 #include <stdbool.h>
3422 #include <stdlib.h>
3423 #include <wchar.h>
3424 #include <stdio.h>
3426 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3427 #define debug(...) fprintf (stderr, __VA_ARGS__)
3428 #define showlist(...) puts (#__VA_ARGS__)
3429 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3430 static void
3431 test_varargs_macros (void)
3433 int x = 1234;
3434 int y = 5678;
3435 debug ("Flag");
3436 debug ("X = %d\n", x);
3437 showlist (The first, second, and third items.);
3438 report (x>y, "x is %d but y is %d", x, y);
3441 // Check long long types.
3442 #define BIG64 18446744073709551615ull
3443 #define BIG32 4294967295ul
3444 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3445 #if !BIG_OK
3446 your preprocessor is broken;
3447 #endif
3448 #if BIG_OK
3449 #else
3450 your preprocessor is broken;
3451 #endif
3452 static long long int bignum = -9223372036854775807LL;
3453 static unsigned long long int ubignum = BIG64;
3455 struct incomplete_array
3457 int datasize;
3458 double data[];
3461 struct named_init {
3462 int number;
3463 const wchar_t *name;
3464 double average;
3467 typedef const char *ccp;
3469 static inline int
3470 test_restrict (ccp restrict text)
3472 // See if C++-style comments work.
3473 // Iterate through items via the restricted pointer.
3474 // Also check for declarations in for loops.
3475 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3476 continue;
3477 return 0;
3480 // Check varargs and va_copy.
3481 static void
3482 test_varargs (const char *format, ...)
3484 va_list args;
3485 va_start (args, format);
3486 va_list args_copy;
3487 va_copy (args_copy, args);
3489 const char *str;
3490 int number;
3491 float fnumber;
3493 while (*format)
3495 switch (*format++)
3497 case 's': // string
3498 str = va_arg (args_copy, const char *);
3499 break;
3500 case 'd': // int
3501 number = va_arg (args_copy, int);
3502 break;
3503 case 'f': // float
3504 fnumber = va_arg (args_copy, double);
3505 break;
3506 default:
3507 break;
3510 va_end (args_copy);
3511 va_end (args);
3515 main ()
3518 // Check bool.
3519 _Bool success = false;
3521 // Check restrict.
3522 if (test_restrict ("String literal") == 0)
3523 success = true;
3524 char *restrict newvar = "Another string";
3526 // Check varargs.
3527 test_varargs ("s, d' f .", "string", 65, 34.234);
3528 test_varargs_macros ();
3530 // Check flexible array members.
3531 struct incomplete_array *ia =
3532 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3533 ia->datasize = 10;
3534 for (int i = 0; i < ia->datasize; ++i)
3535 ia->data[i] = i * 1.234;
3537 // Check named initializers.
3538 struct named_init ni = {
3539 .number = 34,
3540 .name = L"Test wide string",
3541 .average = 543.34343,
3544 ni.number = 58;
3546 int dynamic_array[ni.number];
3547 dynamic_array[ni.number - 1] = 543;
3549 // work around unused variable warnings
3550 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3551 || dynamic_array[ni.number - 1] != 543);
3554 return 0;
3556 _ACEOF
3557 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
3559 CC="$ac_save_CC $ac_arg"
3560 if ac_fn_c_try_compile "$LINENO"; then :
3561 ac_cv_prog_cc_c99=$ac_arg
3563 rm -f core conftest.err conftest.$ac_objext
3564 test "x$ac_cv_prog_cc_c99" != "xno" && break
3565 done
3566 rm -f conftest.$ac_ext
3567 CC=$ac_save_CC
3570 # AC_CACHE_VAL
3571 case "x$ac_cv_prog_cc_c99" in
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3574 $as_echo "none needed" >&6; } ;;
3575 xno)
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3577 $as_echo "unsupported" >&6; } ;;
3579 CC="$CC $ac_cv_prog_cc_c99"
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3581 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3582 esac
3583 if test "x$ac_cv_prog_cc_c99" != xno; then :
3584 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3585 else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3587 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3588 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3589 $as_echo_n "(cached) " >&6
3590 else
3591 ac_cv_prog_cc_c89=no
3592 ac_save_CC=$CC
3593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3594 /* end confdefs.h. */
3595 #include <stdarg.h>
3596 #include <stdio.h>
3597 #include <sys/types.h>
3598 #include <sys/stat.h>
3599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3600 struct buf { int x; };
3601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3602 static char *e (p, i)
3603 char **p;
3604 int i;
3606 return p[i];
3608 static char *f (char * (*g) (char **, int), char **p, ...)
3610 char *s;
3611 va_list v;
3612 va_start (v,p);
3613 s = g (p, va_arg (v,int));
3614 va_end (v);
3615 return s;
3618 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3619 function prototypes and stuff, but not '\xHH' hex character constants.
3620 These don't provoke an error unfortunately, instead are silently treated
3621 as 'x'. The following induces an error, until -std is added to get
3622 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3623 array size at least. It's necessary to write '\x00'==0 to get something
3624 that's true only with -std. */
3625 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3627 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3628 inside strings and character constants. */
3629 #define FOO(x) 'x'
3630 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3632 int test (int i, double x);
3633 struct s1 {int (*f) (int a);};
3634 struct s2 {int (*f) (double a);};
3635 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3636 int argc;
3637 char **argv;
3639 main ()
3641 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3643 return 0;
3645 _ACEOF
3646 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3647 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3649 CC="$ac_save_CC $ac_arg"
3650 if ac_fn_c_try_compile "$LINENO"; then :
3651 ac_cv_prog_cc_c89=$ac_arg
3653 rm -f core conftest.err conftest.$ac_objext
3654 test "x$ac_cv_prog_cc_c89" != "xno" && break
3655 done
3656 rm -f conftest.$ac_ext
3657 CC=$ac_save_CC
3660 # AC_CACHE_VAL
3661 case "x$ac_cv_prog_cc_c89" in
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3664 $as_echo "none needed" >&6; } ;;
3665 xno)
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3667 $as_echo "unsupported" >&6; } ;;
3669 CC="$CC $ac_cv_prog_cc_c89"
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3671 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3672 esac
3673 if test "x$ac_cv_prog_cc_c89" != xno; then :
3674 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3675 else
3676 ac_cv_prog_cc_stdc=no
3681 esac
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
3683 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
3684 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
3685 $as_echo_n "(cached) " >&6
3688 case $ac_cv_prog_cc_stdc in #(
3689 no) :
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3691 $as_echo "unsupported" >&6; } ;; #(
3692 '') :
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3694 $as_echo "none needed" >&6; } ;; #(
3695 *) :
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
3697 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
3698 esac
3700 ac_ext=c
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3706 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3707 # On Suns, sometimes $CPP names a directory.
3708 if test -n "$CPP" && test -d "$CPP"; then
3709 CPP=
3711 if test -z "$CPP"; then
3712 if test "${ac_cv_prog_CPP+set}" = set; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 # Double quotes because CPP needs to be expanded
3716 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3718 ac_preproc_ok=false
3719 for ac_c_preproc_warn_flag in '' yes
3721 # Use a header file that comes with gcc, so configuring glibc
3722 # with a fresh cross-compiler works.
3723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3724 # <limits.h> exists even on freestanding compilers.
3725 # On the NeXT, cc -E runs the code through the compiler's parser,
3726 # not just through cpp. "Syntax error" is here to catch this case.
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3729 #ifdef __STDC__
3730 # include <limits.h>
3731 #else
3732 # include <assert.h>
3733 #endif
3734 Syntax error
3735 _ACEOF
3736 if ac_fn_c_try_cpp "$LINENO"; then :
3738 else
3739 # Broken: fails on valid input.
3740 continue
3742 rm -f conftest.err conftest.$ac_ext
3744 # OK, works on sane cases. Now check whether nonexistent headers
3745 # can be detected and how.
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3748 #include <ac_nonexistent.h>
3749 _ACEOF
3750 if ac_fn_c_try_cpp "$LINENO"; then :
3751 # Broken: success on invalid input.
3752 continue
3753 else
3754 # Passes both tests.
3755 ac_preproc_ok=:
3756 break
3758 rm -f conftest.err conftest.$ac_ext
3760 done
3761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3762 rm -f conftest.err conftest.$ac_ext
3763 if $ac_preproc_ok; then :
3764 break
3767 done
3768 ac_cv_prog_CPP=$CPP
3771 CPP=$ac_cv_prog_CPP
3772 else
3773 ac_cv_prog_CPP=$CPP
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3776 $as_echo "$CPP" >&6; }
3777 ac_preproc_ok=false
3778 for ac_c_preproc_warn_flag in '' yes
3780 # Use a header file that comes with gcc, so configuring glibc
3781 # with a fresh cross-compiler works.
3782 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3783 # <limits.h> exists even on freestanding compilers.
3784 # On the NeXT, cc -E runs the code through the compiler's parser,
3785 # not just through cpp. "Syntax error" is here to catch this case.
3786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 /* end confdefs.h. */
3788 #ifdef __STDC__
3789 # include <limits.h>
3790 #else
3791 # include <assert.h>
3792 #endif
3793 Syntax error
3794 _ACEOF
3795 if ac_fn_c_try_cpp "$LINENO"; then :
3797 else
3798 # Broken: fails on valid input.
3799 continue
3801 rm -f conftest.err conftest.$ac_ext
3803 # OK, works on sane cases. Now check whether nonexistent headers
3804 # can be detected and how.
3805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806 /* end confdefs.h. */
3807 #include <ac_nonexistent.h>
3808 _ACEOF
3809 if ac_fn_c_try_cpp "$LINENO"; then :
3810 # Broken: success on invalid input.
3811 continue
3812 else
3813 # Passes both tests.
3814 ac_preproc_ok=:
3815 break
3817 rm -f conftest.err conftest.$ac_ext
3819 done
3820 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3821 rm -f conftest.err conftest.$ac_ext
3822 if $ac_preproc_ok; then :
3824 else
3825 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3826 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3827 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3828 See \`config.log' for more details." "$LINENO" 5; }
3831 ac_ext=c
3832 ac_cpp='$CPP $CPPFLAGS'
3833 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3834 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3835 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3838 # Check for a compatible awk
3839 for ac_prog in gawk nawk
3841 # Extract the first word of "$ac_prog", so it can be a program name with args.
3842 set dummy $ac_prog; ac_word=$2
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3844 $as_echo_n "checking for $ac_word... " >&6; }
3845 if test "${ac_cv_prog_AWK+set}" = set; then :
3846 $as_echo_n "(cached) " >&6
3847 else
3848 if test -n "$AWK"; then
3849 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3850 else
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 for as_dir in $PATH
3854 IFS=$as_save_IFS
3855 test -z "$as_dir" && as_dir=.
3856 for ac_exec_ext in '' $ac_executable_extensions; do
3857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3858 ac_cv_prog_AWK="$ac_prog"
3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3860 break 2
3862 done
3863 done
3864 IFS=$as_save_IFS
3868 AWK=$ac_cv_prog_AWK
3869 if test -n "$AWK"; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3871 $as_echo "$AWK" >&6; }
3872 else
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3874 $as_echo "no" >&6; }
3878 test -n "$AWK" && break
3879 done
3881 if test "$AWK" = ""; then
3882 as_fn_error "gawk is required to build AROS. Please install and run configure again." "$LINENO" 5
3884 # Extract the first word of "mmake", so it can be a program name with args.
3885 set dummy mmake; ac_word=$2
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887 $as_echo_n "checking for $ac_word... " >&6; }
3888 if test "${ac_cv_prog_MMAKE+set}" = set; then :
3889 $as_echo_n "(cached) " >&6
3890 else
3891 if test -n "$MMAKE"; then
3892 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3893 else
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 for as_dir in $PATH
3897 IFS=$as_save_IFS
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3901 ac_cv_prog_MMAKE="mmake "
3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 break 2
3905 done
3906 done
3907 IFS=$as_save_IFS
3911 MMAKE=$ac_cv_prog_MMAKE
3912 if test -n "$MMAKE"; then
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MMAKE" >&5
3914 $as_echo "$MMAKE" >&6; }
3915 else
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3917 $as_echo "no" >&6; }
3922 # Perform some default variable assignments. Note all of these will be
3923 # Regenerated from the script, so there is no need to cache them.
3925 aros_host_cc="$CC"
3926 if test "$GCC" = "yes"; then
3927 aros_gcc_ld=`$CC -print-prog-name=ld`
3928 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3929 set dummy `basename $aros_gcc_ld`; ac_word=$2
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3931 $as_echo_n "checking for $ac_word... " >&6; }
3932 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3933 $as_echo_n "(cached) " >&6
3934 else
3935 case $aros_host_ld in
3936 [\\/]* | ?:[\\/]*)
3937 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in `dirname $aros_gcc_ld`
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3947 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3949 break 2
3951 done
3952 done
3953 IFS=$as_save_IFS
3956 esac
3958 aros_host_ld=$ac_cv_path_aros_host_ld
3959 if test -n "$aros_host_ld"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
3961 $as_echo "$aros_host_ld" >&6; }
3962 else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964 $as_echo "no" >&6; }
3969 if test "$aros_host_ld" = ""; then
3970 # Extract the first word of "ld", so it can be a program name with args.
3971 set dummy ld; ac_word=$2
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3973 $as_echo_n "checking for $ac_word... " >&6; }
3974 if test "${ac_cv_path_aros_host_ld+set}" = set; then :
3975 $as_echo_n "(cached) " >&6
3976 else
3977 case $aros_host_ld in
3978 [\\/]* | ?:[\\/]*)
3979 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3983 for as_dir in $PATH
3985 IFS=$as_save_IFS
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3989 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 break 2
3993 done
3994 done
3995 IFS=$as_save_IFS
3998 esac
4000 aros_host_ld=$ac_cv_path_aros_host_ld
4001 if test -n "$aros_host_ld"; then
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ld" >&5
4003 $as_echo "$aros_host_ld" >&6; }
4004 else
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4006 $as_echo "no" >&6; }
4011 if test "$aros_host_ld" = ""; then
4012 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
4014 aros_host_make="make"
4015 aros_host_cflags=$CFLAGS
4016 aros_host_ldflags=$LDFLAGS
4017 aros_host_debug="-g -O0"
4018 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
4019 aros_host_mkargs="--no-print-directory"
4020 aros_host_incl="/usr/include"
4021 aros_host_exe_suffix="$EXEEXT"
4022 aros_host_lib_suffix=""
4024 for ac_prog in aclocal aclocal19 aclocal-1.9
4026 # Extract the first word of "$ac_prog", so it can be a program name with args.
4027 set dummy $ac_prog; ac_word=$2
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4029 $as_echo_n "checking for $ac_word... " >&6; }
4030 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then :
4031 $as_echo_n "(cached) " >&6
4032 else
4033 if test -n "$aros_host_aclocal"; then
4034 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
4035 else
4036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 for as_dir in $PATH
4039 IFS=$as_save_IFS
4040 test -z "$as_dir" && as_dir=.
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4043 ac_cv_prog_aros_host_aclocal="$ac_prog"
4044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 break 2
4047 done
4048 done
4049 IFS=$as_save_IFS
4053 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
4054 if test -n "$aros_host_aclocal"; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_aclocal" >&5
4056 $as_echo "$aros_host_aclocal" >&6; }
4057 else
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4059 $as_echo "no" >&6; }
4063 test -n "$aros_host_aclocal" && break
4064 done
4066 for ac_prog in autoconf autoconf259 autoconf253
4068 # Extract the first word of "$ac_prog", so it can be a program name with args.
4069 set dummy $ac_prog; ac_word=$2
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071 $as_echo_n "checking for $ac_word... " >&6; }
4072 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then :
4073 $as_echo_n "(cached) " >&6
4074 else
4075 if test -n "$aros_host_autoconf"; then
4076 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
4077 else
4078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4079 for as_dir in $PATH
4081 IFS=$as_save_IFS
4082 test -z "$as_dir" && as_dir=.
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4085 ac_cv_prog_aros_host_autoconf="$ac_prog"
4086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4087 break 2
4089 done
4090 done
4091 IFS=$as_save_IFS
4095 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
4096 if test -n "$aros_host_autoconf"; then
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoconf" >&5
4098 $as_echo "$aros_host_autoconf" >&6; }
4099 else
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4101 $as_echo "no" >&6; }
4105 test -n "$aros_host_autoconf" && break
4106 done
4108 for ac_prog in autoheader autoheader259 autoheader253
4110 # Extract the first word of "$ac_prog", so it can be a program name with args.
4111 set dummy $ac_prog; ac_word=$2
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4113 $as_echo_n "checking for $ac_word... " >&6; }
4114 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 if test -n "$aros_host_autoheader"; then
4118 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
4119 else
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4127 ac_cv_prog_aros_host_autoheader="$ac_prog"
4128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4129 break 2
4131 done
4132 done
4133 IFS=$as_save_IFS
4137 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
4138 if test -n "$aros_host_autoheader"; then
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_autoheader" >&5
4140 $as_echo "$aros_host_autoheader" >&6; }
4141 else
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4143 $as_echo "no" >&6; }
4147 test -n "$aros_host_autoheader" && break
4148 done
4150 for ac_prog in automake automake19 automake-1.9
4152 # Extract the first word of "$ac_prog", so it can be a program name with args.
4153 set dummy $ac_prog; ac_word=$2
4154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4155 $as_echo_n "checking for $ac_word... " >&6; }
4156 if test "${ac_cv_prog_aros_host_automake+set}" = set; then :
4157 $as_echo_n "(cached) " >&6
4158 else
4159 if test -n "$aros_host_automake"; then
4160 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
4161 else
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163 for as_dir in $PATH
4165 IFS=$as_save_IFS
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4169 ac_cv_prog_aros_host_automake="$ac_prog"
4170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4171 break 2
4173 done
4174 done
4175 IFS=$as_save_IFS
4179 aros_host_automake=$ac_cv_prog_aros_host_automake
4180 if test -n "$aros_host_automake"; then
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_automake" >&5
4182 $as_echo "$aros_host_automake" >&6; }
4183 else
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4185 $as_echo "no" >&6; }
4189 test -n "$aros_host_automake" && break
4190 done
4193 if test "$aros_host_aclocal" = ""; then
4194 as_fn_error "aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4196 if test "$aros_host_automake" = ""; then
4197 as_fn_error "automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." "$LINENO" 5
4200 case "$aros_host_cc" in
4201 *gcc*)
4202 aros_host_cc_pipe="-pipe"
4204 icc)
4205 aros_host_cc_pipe=""
4208 aros_host_cc_pipe=""
4210 esac
4212 aros_kernel_cc_includes=""
4213 aros_target_cc_includes=""
4215 # This is the main host configuration section. It is where the host
4216 # can change the values of any variables it needs to change. We do
4217 # not look at anything that compiles to the target yet, we'll get
4218 # to that later.
4220 case "$host_os" in
4221 aros*)
4222 aros_host_arch="aros"
4223 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4224 case "$host_cpu" in
4225 *i?86*)
4226 aros_host_cpu="i386"
4228 *x86_64*)
4229 aros_host_cpu="x86_64"
4231 *powerpc*)
4232 aros_host_cpu="ppc"
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4236 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4237 aros_host_cpu="$host_cpu"
4239 esac
4242 linux*)
4243 aros_host_arch="linux"
4244 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4245 case "$host_cpu" in
4246 *i?86*)
4247 aros_host_cpu="i386"
4249 *x86_64*)
4250 aros_host_cpu="x86_64"
4252 *m68k*)
4253 aros_host_cpu="m68k"
4255 *powerpc*)
4256 aros_host_cpu="ppc"
4258 *arm*)
4259 aros_host_cpu="arm"
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4263 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4264 aros_host_cpu="$host_cpu"
4266 esac
4269 freebsd*)
4270 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4271 aros_host_make="gmake"
4272 aros_host_arch="freebsd"
4273 aros_host_cpu="i386"
4275 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4277 case $host_os in
4278 freebsd[234]*)
4279 aros_object_format="elf_i386"
4283 aros_object_format="elf_i386_fbsd"
4285 esac
4289 darwin*)
4290 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4291 aros_host_arch="darwin"
4292 case "$host_cpu" in
4293 *i?86*)
4294 aros_host_cpu="i386"
4296 *x86_64*)
4297 aros_host_cpu="x86_64"
4299 *powerpc*)
4300 aros_host_cpu="ppc"
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4304 $as_echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4305 aros_host_cpu="$host_cpu"
4307 esac
4309 aros_host_ldflags="$aros_host_ldflags -liconv"
4313 dragonfly*)
4314 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4315 aros_host_make="gmake"
4316 aros_host_arch="dragonfly"
4317 case $host_cpu in
4318 *i?86*)
4319 aros_host_cpu="i386"
4321 *amd64*)
4322 aros_host_cpu="x86_64"
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4326 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4327 aros_host_cpu="$host_cpu"
4329 esac
4332 netbsd*)
4333 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4334 aros_host_make="gmake"
4335 aros_host_arch="netbsd"
4336 case "$host_cpu" in
4337 *i?86*)
4338 aros_host_cpu="i386"
4340 *m68k*)
4341 aros_host_cpu="m68k"
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4345 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4346 aros_host_cpu="$host_cpu"
4348 esac
4349 aros_host_lib_suffix=".0.0"
4352 openbsd*)
4353 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4354 aros_host_make="gmake"
4355 aros_host_arch="openbsd"
4356 case "$host_cpu" in
4357 *i?86*)
4358 aros_host_cpu="i386"
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4362 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4363 aros_host_cpu="$host_cpu"
4365 esac
4368 solaris*)
4369 aros_host_arch="solaris"
4370 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4371 case "$host_cpu" in
4372 *i?86*)
4373 aros_host_cpu="i386"
4375 *sparc*)
4376 aros_host_cpu="sparc"
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4380 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4381 aros_host_cpu="$host_cpu"
4383 esac
4386 morphos*)
4387 aros_host_arch="morphos"
4388 aros_host_cpu="ppc"
4391 amiga*)
4392 aros_host_arch="amiga"
4393 SORT="/gg/bin/sort"
4394 TEST="/gg/bin/test"
4395 UNIQ="/gg/bin/uniq"
4396 FOR="for"
4397 TOUCH="/gg/bin/touch"
4398 case "$host_cpu" in
4399 *m68k*)
4400 aros_host_cpu="m68k"
4402 *powerpc*)
4403 aros_host_cpu="ppc"
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4407 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4408 aros_host_cpu="$host_cpu"
4410 esac
4413 cygwin*)
4414 aros_host_arch="cygwin"
4415 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4416 android_build_os="windows"
4417 android_tool="android.bat"
4418 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4420 case "$host_cpu" in
4421 *i?86*)
4422 aros_host_cpu="i386"
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4426 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4427 aros_host_cpu="$host_cpu"
4429 esac
4432 mingw32*)
4433 aros_host_arch="mingw32"
4434 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4435 android_build_os="windows"
4436 android_tool="android.bat"
4437 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4439 case "$host_cpu" in
4440 *i?86*)
4441 aros_host_cpu="i386"
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4445 $as_echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4446 aros_host_cpu="$host_cpu"
4448 esac
4451 as_fn_error "Unsupported host architecture $host" "$LINENO" 5
4453 esac
4455 # Extract the first word of "ar", so it can be a program name with args.
4456 set dummy ar; ac_word=$2
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if test "${ac_cv_prog_aros_host_ar+set}" = set; then :
4460 $as_echo_n "(cached) " >&6
4461 else
4462 if test -n "$aros_host_ar"; then
4463 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_aros_host_ar="ar cr"
4473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4476 done
4477 done
4478 IFS=$as_save_IFS
4482 aros_host_ar=$ac_cv_prog_aros_host_ar
4483 if test -n "$aros_host_ar"; then
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ar" >&5
4485 $as_echo "$aros_host_ar" >&6; }
4486 else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488 $as_echo "no" >&6; }
4492 if test "$aros_host_ar" = ""; then
4493 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
4495 # Extract the first word of "ranlib", so it can be a program name with args.
4496 set dummy ranlib; ac_word=$2
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then :
4500 $as_echo_n "(cached) " >&6
4501 else
4502 if test -n "$aros_host_ranlib"; then
4503 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4504 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_aros_host_ranlib="ranlib "
4513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4516 done
4517 done
4518 IFS=$as_save_IFS
4522 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4523 if test -n "$aros_host_ranlib"; then
4524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_ranlib" >&5
4525 $as_echo "$aros_host_ranlib" >&6; }
4526 else
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4528 $as_echo "no" >&6; }
4532 if test "$aros_host_ranlib" = ""; then
4533 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
4535 # Extract the first word of "strip", so it can be a program name with args.
4536 set dummy strip; ac_word=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if test "${ac_cv_prog_aros_host_strip+set}" = set; then :
4540 $as_echo_n "(cached) " >&6
4541 else
4542 if test -n "$aros_host_strip"; then
4543 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 ac_cv_prog_aros_host_strip="strip "
4553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4556 done
4557 done
4558 IFS=$as_save_IFS
4562 aros_host_strip=$ac_cv_prog_aros_host_strip
4563 if test -n "$aros_host_strip"; then
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_host_strip" >&5
4565 $as_echo "$aros_host_strip" >&6; }
4566 else
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4568 $as_echo "no" >&6; }
4572 if test "$aros_host_strip" = ""; then
4573 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
4576 # Extract the first word of "rm", so it can be a program name with args.
4577 set dummy rm; ac_word=$2
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4579 $as_echo_n "checking for $ac_word... " >&6; }
4580 if test "${ac_cv_prog_RM+set}" = set; then :
4581 $as_echo_n "(cached) " >&6
4582 else
4583 if test -n "$RM"; then
4584 ac_cv_prog_RM="$RM" # Let the user override the test.
4585 else
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4593 ac_cv_prog_RM="rm -rf"
4594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4595 break 2
4597 done
4598 done
4599 IFS=$as_save_IFS
4603 RM=$ac_cv_prog_RM
4604 if test -n "$RM"; then
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4606 $as_echo "$RM" >&6; }
4607 else
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4609 $as_echo "no" >&6; }
4613 if test "$RM" = ""; then
4614 as_fn_error "rm is required to build AROS. Please install and run configure again." "$LINENO" 5
4616 # Extract the first word of "cp", so it can be a program name with args.
4617 set dummy cp; ac_word=$2
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4619 $as_echo_n "checking for $ac_word... " >&6; }
4620 if test "${ac_cv_prog_CP+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4622 else
4623 if test -n "$CP"; then
4624 ac_cv_prog_CP="$CP" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4629 IFS=$as_save_IFS
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 ac_cv_prog_CP="cp "
4634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4635 break 2
4637 done
4638 done
4639 IFS=$as_save_IFS
4643 CP=$ac_cv_prog_CP
4644 if test -n "$CP"; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4646 $as_echo "$CP" >&6; }
4647 else
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4649 $as_echo "no" >&6; }
4653 if test "$CP" = ""; then
4654 as_fn_error "cp is required to build AROS. Please install and run configure again." "$LINENO" 5
4656 # Extract the first word of "mv", so it can be a program name with args.
4657 set dummy mv; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if test "${ac_cv_prog_MV+set}" = set; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 if test -n "$MV"; then
4664 ac_cv_prog_MV="$MV" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4673 ac_cv_prog_MV="mv "
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4677 done
4678 done
4679 IFS=$as_save_IFS
4683 MV=$ac_cv_prog_MV
4684 if test -n "$MV"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4686 $as_echo "$MV" >&6; }
4687 else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4693 if test "$MV" = ""; then
4694 as_fn_error "mv is required to build AROS. Please install and run configure again." "$LINENO" 5
4696 # Extract the first word of "echo", so it can be a program name with args.
4697 set dummy echo; ac_word=$2
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4699 $as_echo_n "checking for $ac_word... " >&6; }
4700 if test "${ac_cv_prog_ECHO+set}" = set; then :
4701 $as_echo_n "(cached) " >&6
4702 else
4703 if test -n "$ECHO"; then
4704 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4705 else
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_exec_ext in '' $ac_executable_extensions; do
4712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4713 ac_cv_prog_ECHO="echo "
4714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4715 break 2
4717 done
4718 done
4719 IFS=$as_save_IFS
4723 ECHO=$ac_cv_prog_ECHO
4724 if test -n "$ECHO"; then
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4726 $as_echo "$ECHO" >&6; }
4727 else
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4729 $as_echo "no" >&6; }
4733 if test "$ECHO" = ""; then
4734 as_fn_error "echo is required to build AROS. Please install and run configure again." "$LINENO" 5
4736 # Extract the first word of "mkdir", so it can be a program name with args.
4737 set dummy mkdir; ac_word=$2
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4739 $as_echo_n "checking for $ac_word... " >&6; }
4740 if test "${ac_cv_prog_MKDIR+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 if test -n "$MKDIR"; then
4744 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4745 else
4746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747 for as_dir in $PATH
4749 IFS=$as_save_IFS
4750 test -z "$as_dir" && as_dir=.
4751 for ac_exec_ext in '' $ac_executable_extensions; do
4752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4753 ac_cv_prog_MKDIR="mkdir -p"
4754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 break 2
4757 done
4758 done
4759 IFS=$as_save_IFS
4763 MKDIR=$ac_cv_prog_MKDIR
4764 if test -n "$MKDIR"; then
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4766 $as_echo "$MKDIR" >&6; }
4767 else
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 $as_echo "no" >&6; }
4773 if test "$MKDIR" = ""; then
4774 as_fn_error "mkdir is required to build AROS. Please install and run configure again." "$LINENO" 5
4776 # Extract the first word of "touch", so it can be a program name with args.
4777 set dummy touch; ac_word=$2
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4779 $as_echo_n "checking for $ac_word... " >&6; }
4780 if test "${ac_cv_prog_TOUCH+set}" = set; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 if test -n "$TOUCH"; then
4784 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_prog_TOUCH="touch "
4794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4797 done
4798 done
4799 IFS=$as_save_IFS
4803 TOUCH=$ac_cv_prog_TOUCH
4804 if test -n "$TOUCH"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
4806 $as_echo "$TOUCH" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4813 if test "$TOUCH" = ""; then
4814 as_fn_error "touch is required to build AROS. Please install and run configure again." "$LINENO" 5
4816 # Extract the first word of "sort", so it can be a program name with args.
4817 set dummy sort; ac_word=$2
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4819 $as_echo_n "checking for $ac_word... " >&6; }
4820 if test "${ac_cv_prog_SORT+set}" = set; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 if test -n "$SORT"; then
4824 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833 ac_cv_prog_SORT="sort "
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4837 done
4838 done
4839 IFS=$as_save_IFS
4843 SORT=$ac_cv_prog_SORT
4844 if test -n "$SORT"; then
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4846 $as_echo "$SORT" >&6; }
4847 else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4849 $as_echo "no" >&6; }
4853 if test "$SORT" = ""; then
4854 as_fn_error "sort is required to build AROS. Please install and run configure again." "$LINENO" 5
4856 # Extract the first word of "uniq", so it can be a program name with args.
4857 set dummy uniq; ac_word=$2
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4859 $as_echo_n "checking for $ac_word... " >&6; }
4860 if test "${ac_cv_prog_UNIQ+set}" = set; then :
4861 $as_echo_n "(cached) " >&6
4862 else
4863 if test -n "$UNIQ"; then
4864 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873 ac_cv_prog_UNIQ="uniq "
4874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4877 done
4878 done
4879 IFS=$as_save_IFS
4883 UNIQ=$ac_cv_prog_UNIQ
4884 if test -n "$UNIQ"; then
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5
4886 $as_echo "$UNIQ" >&6; }
4887 else
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4889 $as_echo "no" >&6; }
4893 if test "$UNIQ" = ""; then
4894 as_fn_error "uniq is required to build AROS. Please install and run configure again." "$LINENO" 5
4896 # Extract the first word of "true", so it can be a program name with args.
4897 set dummy true; ac_word=$2
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4899 $as_echo_n "checking for $ac_word... " >&6; }
4900 if test "${ac_cv_prog_NOP+set}" = set; then :
4901 $as_echo_n "(cached) " >&6
4902 else
4903 if test -n "$NOP"; then
4904 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4905 else
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4913 ac_cv_prog_NOP="true "
4914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4915 break 2
4917 done
4918 done
4919 IFS=$as_save_IFS
4923 NOP=$ac_cv_prog_NOP
4924 if test -n "$NOP"; then
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NOP" >&5
4926 $as_echo "$NOP" >&6; }
4927 else
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4929 $as_echo "no" >&6; }
4933 if test "$NOP" = ""; then
4934 as_fn_error "true is required to build AROS. Please install and run configure again." "$LINENO" 5
4936 # Extract the first word of "cat", so it can be a program name with args.
4937 set dummy cat; ac_word=$2
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4939 $as_echo_n "checking for $ac_word... " >&6; }
4940 if test "${ac_cv_prog_CAT+set}" = set; then :
4941 $as_echo_n "(cached) " >&6
4942 else
4943 if test -n "$CAT"; then
4944 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4945 else
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4953 ac_cv_prog_CAT="cat "
4954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4957 done
4958 done
4959 IFS=$as_save_IFS
4963 CAT=$ac_cv_prog_CAT
4964 if test -n "$CAT"; then
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
4966 $as_echo "$CAT" >&6; }
4967 else
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4969 $as_echo "no" >&6; }
4973 if test "$CAT" = ""; then
4974 as_fn_error "cat is required to build AROS. Please install and run configure again." "$LINENO" 5
4976 # Extract the first word of "bison", so it can be a program name with args.
4977 set dummy bison; ac_word=$2
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 $as_echo_n "checking for $ac_word... " >&6; }
4980 if test "${ac_cv_prog_BISON+set}" = set; then :
4981 $as_echo_n "(cached) " >&6
4982 else
4983 if test -n "$BISON"; then
4984 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4985 else
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4989 IFS=$as_save_IFS
4990 test -z "$as_dir" && as_dir=.
4991 for ac_exec_ext in '' $ac_executable_extensions; do
4992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993 ac_cv_prog_BISON="bison "
4994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995 break 2
4997 done
4998 done
4999 IFS=$as_save_IFS
5003 BISON=$ac_cv_prog_BISON
5004 if test -n "$BISON"; then
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
5006 $as_echo "$BISON" >&6; }
5007 else
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5013 if test "$BISON" = ""; then
5014 as_fn_error "bison is required to build AROS. Please install and run configure again." "$LINENO" 5
5016 # Extract the first word of "flex", so it can be a program name with args.
5017 set dummy flex; ac_word=$2
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5019 $as_echo_n "checking for $ac_word... " >&6; }
5020 if test "${ac_cv_prog_FLEX+set}" = set; then :
5021 $as_echo_n "(cached) " >&6
5022 else
5023 if test -n "$FLEX"; then
5024 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5029 IFS=$as_save_IFS
5030 test -z "$as_dir" && as_dir=.
5031 for ac_exec_ext in '' $ac_executable_extensions; do
5032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5033 ac_cv_prog_FLEX="flex "
5034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5035 break 2
5037 done
5038 done
5039 IFS=$as_save_IFS
5043 FLEX=$ac_cv_prog_FLEX
5044 if test -n "$FLEX"; then
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
5046 $as_echo "$FLEX" >&6; }
5047 else
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5053 if test "$FLEX" = ""; then
5054 as_fn_error "flex is required to build AROS. Please install and run configure again." "$LINENO" 5
5056 # Extract the first word of "pngtopnm", so it can be a program name with args.
5057 set dummy pngtopnm; ac_word=$2
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059 $as_echo_n "checking for $ac_word... " >&6; }
5060 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then :
5061 $as_echo_n "(cached) " >&6
5062 else
5063 if test -n "$PNGTOPNM"; then
5064 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073 ac_cv_prog_PNGTOPNM="pngtopnm "
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5077 done
5078 done
5079 IFS=$as_save_IFS
5083 PNGTOPNM=$ac_cv_prog_PNGTOPNM
5084 if test -n "$PNGTOPNM"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PNGTOPNM" >&5
5086 $as_echo "$PNGTOPNM" >&6; }
5087 else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089 $as_echo "no" >&6; }
5093 if test "$PNGTOPNM" = ""; then
5094 as_fn_error "pngtopnm is required to build AROS. Please install and run configure again." "$LINENO" 5
5096 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
5097 set dummy ppmtoilbm; ac_word=$2
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5099 $as_echo_n "checking for $ac_word... " >&6; }
5100 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then :
5101 $as_echo_n "(cached) " >&6
5102 else
5103 if test -n "$PPMTOILBM"; then
5104 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
5105 else
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_prog_PPMTOILBM="ppmtoilbm "
5114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5117 done
5118 done
5119 IFS=$as_save_IFS
5123 PPMTOILBM=$ac_cv_prog_PPMTOILBM
5124 if test -n "$PPMTOILBM"; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PPMTOILBM" >&5
5126 $as_echo "$PPMTOILBM" >&6; }
5127 else
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129 $as_echo "no" >&6; }
5133 if test "$PPMTOILBM" = ""; then
5134 as_fn_error "ppmtoilbm is required to build AROS. Please install and run configure again." "$LINENO" 5
5136 # Extract the first word of "sed", so it can be a program name with args.
5137 set dummy sed; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if test "${ac_cv_prog_SED+set}" = set; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 if test -n "$SED"; then
5144 ac_cv_prog_SED="$SED" # Let the user override the test.
5145 else
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in $PATH
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_prog_SED="sed "
5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5157 done
5158 done
5159 IFS=$as_save_IFS
5163 SED=$ac_cv_prog_SED
5164 if test -n "$SED"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5166 $as_echo "$SED" >&6; }
5167 else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5169 $as_echo "no" >&6; }
5173 if test "$SED" = ""; then
5174 as_fn_error "sed is required to build AROS. Please install and run configure again." "$LINENO" 5
5176 # Extract the first word of "chmod", so it can be a program name with args.
5177 set dummy chmod; ac_word=$2
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5179 $as_echo_n "checking for $ac_word... " >&6; }
5180 if test "${ac_cv_prog_CHMOD+set}" = set; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if test -n "$CHMOD"; then
5184 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
5185 else
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_prog_CHMOD="chmod "
5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5197 done
5198 done
5199 IFS=$as_save_IFS
5203 CHMOD=$ac_cv_prog_CHMOD
5204 if test -n "$CHMOD"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
5206 $as_echo "$CHMOD" >&6; }
5207 else
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5209 $as_echo "no" >&6; }
5213 if test "$CHMOD" = ""; then
5214 as_fn_error "chmod is required to build AROS. Please install and run configure again." "$LINENO" 5
5221 if test -n "$PYTHON"; then
5222 # If the user set $PYTHON, use it and don't search something else.
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.5" >&5
5224 $as_echo_n "checking whether $PYTHON version >= 2.5... " >&6; }
5225 prog="import sys, string
5226 # split strings by '.' and convert to numeric. Append some zeros
5227 # because we need at least 4 digits for the hex conversion.
5228 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5229 minverhex = 0
5230 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5231 sys.exit(sys.hexversion < minverhex)"
5232 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5233 ($PYTHON -c "$prog") >&5 2>&5
5234 ac_status=$?
5235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5236 (exit $ac_status); }; then :
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5238 $as_echo "yes" >&6; }
5239 else
5240 as_fn_error "too old" "$LINENO" 5
5242 am_display_PYTHON=$PYTHON
5243 else
5244 # Otherwise, try each interpreter until we find one that satisfies
5245 # VERSION.
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.5" >&5
5247 $as_echo_n "checking for a Python interpreter with version >= 2.5... " >&6; }
5248 if test "${am_cv_pathless_PYTHON+set}" = set; then :
5249 $as_echo_n "(cached) " >&6
5250 else
5252 for am_cv_pathless_PYTHON in python python2 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
5253 test "$am_cv_pathless_PYTHON" = none && break
5254 prog="import sys, string
5255 # split strings by '.' and convert to numeric. Append some zeros
5256 # because we need at least 4 digits for the hex conversion.
5257 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5258 minverhex = 0
5259 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5260 sys.exit(sys.hexversion < minverhex)"
5261 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5262 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5263 ac_status=$?
5264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5265 (exit $ac_status); }; then :
5266 break
5268 done
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
5271 $as_echo "$am_cv_pathless_PYTHON" >&6; }
5272 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5273 if test "$am_cv_pathless_PYTHON" = none; then
5274 PYTHON=:
5275 else
5276 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5277 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if test "${ac_cv_path_PYTHON+set}" = set; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 case $PYTHON in
5284 [\\/]* | ?:[\\/]*)
5285 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5291 IFS=$as_save_IFS
5292 test -z "$as_dir" && as_dir=.
5293 for ac_exec_ext in '' $ac_executable_extensions; do
5294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5295 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297 break 2
5299 done
5300 done
5301 IFS=$as_save_IFS
5304 esac
5306 PYTHON=$ac_cv_path_PYTHON
5307 if test -n "$PYTHON"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5309 $as_echo "$PYTHON" >&6; }
5310 else
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5317 am_display_PYTHON=$am_cv_pathless_PYTHON
5321 if test "$PYTHON" = :; then
5322 as_fn_error "no suitable Python interpreter found" "$LINENO" 5
5323 else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5327 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5328 if test "${am_cv_python_version+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5334 $as_echo "$am_cv_python_version" >&6; }
5335 PYTHON_VERSION=$am_cv_python_version
5339 PYTHON_PREFIX='${prefix}'
5341 PYTHON_EXEC_PREFIX='${exec_prefix}'
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5346 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5347 if test "${am_cv_python_platform+set}" = set; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5353 $as_echo "$am_cv_python_platform" >&6; }
5354 PYTHON_PLATFORM=$am_cv_python_platform
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5360 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5361 if test "${am_cv_python_pythondir+set}" = set; then :
5362 $as_echo_n "(cached) " >&6
5363 else
5364 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5365 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5368 $as_echo "$am_cv_python_pythondir" >&6; }
5369 pythondir=$am_cv_python_pythondir
5373 pkgpythondir=\${pythondir}/$PACKAGE
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5377 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5378 if test "${am_cv_python_pyexecdir+set}" = set; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5382 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5385 $as_echo "$am_cv_python_pyexecdir" >&6; }
5386 pyexecdir=$am_cv_python_pyexecdir
5390 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5398 FOR=for
5400 IF=if
5402 TEST=test
5404 CMP=cmp
5408 # Check for some includes for the X11 HIDD and the kernel
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5412 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5413 if test "${ac_cv_path_GREP+set}" = set; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 if test -z "$GREP"; then
5417 ac_path_GREP_found=false
5418 # Loop through the user's path and test for each of PROGNAME-LIST
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_prog in grep ggrep; do
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5427 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5428 # Check for GNU ac_path_GREP and select it if it is found.
5429 # Check for GNU $ac_path_GREP
5430 case `"$ac_path_GREP" --version 2>&1` in
5431 *GNU*)
5432 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5434 ac_count=0
5435 $as_echo_n 0123456789 >"conftest.in"
5436 while :
5438 cat "conftest.in" "conftest.in" >"conftest.tmp"
5439 mv "conftest.tmp" "conftest.in"
5440 cp "conftest.in" "conftest.nl"
5441 $as_echo 'GREP' >> "conftest.nl"
5442 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5443 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5444 as_fn_arith $ac_count + 1 && ac_count=$as_val
5445 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5446 # Best one so far, save it but keep looking for a better one
5447 ac_cv_path_GREP="$ac_path_GREP"
5448 ac_path_GREP_max=$ac_count
5450 # 10*(2^10) chars as input seems more than enough
5451 test $ac_count -gt 10 && break
5452 done
5453 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5454 esac
5456 $ac_path_GREP_found && break 3
5457 done
5458 done
5459 done
5460 IFS=$as_save_IFS
5461 if test -z "$ac_cv_path_GREP"; then
5462 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5464 else
5465 ac_cv_path_GREP=$GREP
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5470 $as_echo "$ac_cv_path_GREP" >&6; }
5471 GREP="$ac_cv_path_GREP"
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5475 $as_echo_n "checking for egrep... " >&6; }
5476 if test "${ac_cv_path_EGREP+set}" = set; then :
5477 $as_echo_n "(cached) " >&6
5478 else
5479 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5480 then ac_cv_path_EGREP="$GREP -E"
5481 else
5482 if test -z "$EGREP"; then
5483 ac_path_EGREP_found=false
5484 # Loop through the user's path and test for each of PROGNAME-LIST
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_prog in egrep; do
5491 for ac_exec_ext in '' $ac_executable_extensions; do
5492 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5493 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5494 # Check for GNU ac_path_EGREP and select it if it is found.
5495 # Check for GNU $ac_path_EGREP
5496 case `"$ac_path_EGREP" --version 2>&1` in
5497 *GNU*)
5498 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5500 ac_count=0
5501 $as_echo_n 0123456789 >"conftest.in"
5502 while :
5504 cat "conftest.in" "conftest.in" >"conftest.tmp"
5505 mv "conftest.tmp" "conftest.in"
5506 cp "conftest.in" "conftest.nl"
5507 $as_echo 'EGREP' >> "conftest.nl"
5508 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5510 as_fn_arith $ac_count + 1 && ac_count=$as_val
5511 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5512 # Best one so far, save it but keep looking for a better one
5513 ac_cv_path_EGREP="$ac_path_EGREP"
5514 ac_path_EGREP_max=$ac_count
5516 # 10*(2^10) chars as input seems more than enough
5517 test $ac_count -gt 10 && break
5518 done
5519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5520 esac
5522 $ac_path_EGREP_found && break 3
5523 done
5524 done
5525 done
5526 IFS=$as_save_IFS
5527 if test -z "$ac_cv_path_EGREP"; then
5528 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5530 else
5531 ac_cv_path_EGREP=$EGREP
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5537 $as_echo "$ac_cv_path_EGREP" >&6; }
5538 EGREP="$ac_cv_path_EGREP"
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5542 $as_echo_n "checking for ANSI C header files... " >&6; }
5543 if test "${ac_cv_header_stdc+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5547 /* end confdefs.h. */
5548 #include <stdlib.h>
5549 #include <stdarg.h>
5550 #include <string.h>
5551 #include <float.h>
5554 main ()
5558 return 0;
5560 _ACEOF
5561 if ac_fn_c_try_compile "$LINENO"; then :
5562 ac_cv_header_stdc=yes
5563 else
5564 ac_cv_header_stdc=no
5566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5568 if test $ac_cv_header_stdc = yes; then
5569 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5571 /* end confdefs.h. */
5572 #include <string.h>
5574 _ACEOF
5575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5576 $EGREP "memchr" >/dev/null 2>&1; then :
5578 else
5579 ac_cv_header_stdc=no
5581 rm -f conftest*
5585 if test $ac_cv_header_stdc = yes; then
5586 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 #include <stdlib.h>
5591 _ACEOF
5592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5593 $EGREP "free" >/dev/null 2>&1; then :
5595 else
5596 ac_cv_header_stdc=no
5598 rm -f conftest*
5602 if test $ac_cv_header_stdc = yes; then
5603 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5604 if test "$cross_compiling" = yes; then :
5606 else
5607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5608 /* end confdefs.h. */
5609 #include <ctype.h>
5610 #include <stdlib.h>
5611 #if ((' ' & 0x0FF) == 0x020)
5612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5614 #else
5615 # define ISLOWER(c) \
5616 (('a' <= (c) && (c) <= 'i') \
5617 || ('j' <= (c) && (c) <= 'r') \
5618 || ('s' <= (c) && (c) <= 'z'))
5619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5620 #endif
5622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5624 main ()
5626 int i;
5627 for (i = 0; i < 256; i++)
5628 if (XOR (islower (i), ISLOWER (i))
5629 || toupper (i) != TOUPPER (i))
5630 return 2;
5631 return 0;
5633 _ACEOF
5634 if ac_fn_c_try_run "$LINENO"; then :
5636 else
5637 ac_cv_header_stdc=no
5639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5640 conftest.$ac_objext conftest.beam conftest.$ac_ext
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5646 $as_echo "$ac_cv_header_stdc" >&6; }
5647 if test $ac_cv_header_stdc = yes; then
5649 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5653 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5654 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5655 inttypes.h stdint.h unistd.h
5656 do :
5657 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5658 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5660 eval as_val=\$$as_ac_Header
5661 if test "x$as_val" = x""yes; then :
5662 cat >>confdefs.h <<_ACEOF
5663 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5664 _ACEOF
5668 done
5671 for ac_header in sys/ipc.h sys/shm.h \
5672 sys/mmap.h sys/mman.h sysexits.h \
5673 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5675 do :
5676 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5677 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5678 eval as_val=\$$as_ac_Header
5679 if test "x$as_val" = x""yes; then :
5680 cat >>confdefs.h <<_ACEOF
5681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5682 _ACEOF
5686 done
5689 for ac_header in sys/mount.h
5690 do :
5691 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h>
5693 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5694 cat >>confdefs.h <<_ACEOF
5695 #define HAVE_SYS_MOUNT_H 1
5696 _ACEOF
5700 done
5703 ac_header_dirent=no
5704 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5705 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5707 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
5709 $as_echo_n "(cached) " >&6
5710 else
5711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5712 /* end confdefs.h. */
5713 #include <sys/types.h>
5714 #include <$ac_hdr>
5717 main ()
5719 if ((DIR *) 0)
5720 return 0;
5722 return 0;
5724 _ACEOF
5725 if ac_fn_c_try_compile "$LINENO"; then :
5726 eval "$as_ac_Header=yes"
5727 else
5728 eval "$as_ac_Header=no"
5730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5732 eval ac_res=\$$as_ac_Header
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5734 $as_echo "$ac_res" >&6; }
5735 eval as_val=\$$as_ac_Header
5736 if test "x$as_val" = x""yes; then :
5737 cat >>confdefs.h <<_ACEOF
5738 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5739 _ACEOF
5741 ac_header_dirent=$ac_hdr; break
5744 done
5745 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5746 if test $ac_header_dirent = dirent.h; then
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5748 $as_echo_n "checking for library containing opendir... " >&6; }
5749 if test "${ac_cv_search_opendir+set}" = set; then :
5750 $as_echo_n "(cached) " >&6
5751 else
5752 ac_func_search_save_LIBS=$LIBS
5753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5754 /* end confdefs.h. */
5756 /* Override any GCC internal prototype to avoid an error.
5757 Use char because int might match the return type of a GCC
5758 builtin and then its argument prototype would still apply. */
5759 #ifdef __cplusplus
5760 extern "C"
5761 #endif
5762 char opendir ();
5764 main ()
5766 return opendir ();
5768 return 0;
5770 _ACEOF
5771 for ac_lib in '' dir; do
5772 if test -z "$ac_lib"; then
5773 ac_res="none required"
5774 else
5775 ac_res=-l$ac_lib
5776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5778 if ac_fn_c_try_link "$LINENO"; then :
5779 ac_cv_search_opendir=$ac_res
5781 rm -f core conftest.err conftest.$ac_objext \
5782 conftest$ac_exeext
5783 if test "${ac_cv_search_opendir+set}" = set; then :
5784 break
5786 done
5787 if test "${ac_cv_search_opendir+set}" = set; then :
5789 else
5790 ac_cv_search_opendir=no
5792 rm conftest.$ac_ext
5793 LIBS=$ac_func_search_save_LIBS
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5796 $as_echo "$ac_cv_search_opendir" >&6; }
5797 ac_res=$ac_cv_search_opendir
5798 if test "$ac_res" != no; then :
5799 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5803 else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5805 $as_echo_n "checking for library containing opendir... " >&6; }
5806 if test "${ac_cv_search_opendir+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 ac_func_search_save_LIBS=$LIBS
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5813 /* Override any GCC internal prototype to avoid an error.
5814 Use char because int might match the return type of a GCC
5815 builtin and then its argument prototype would still apply. */
5816 #ifdef __cplusplus
5817 extern "C"
5818 #endif
5819 char opendir ();
5821 main ()
5823 return opendir ();
5825 return 0;
5827 _ACEOF
5828 for ac_lib in '' x; do
5829 if test -z "$ac_lib"; then
5830 ac_res="none required"
5831 else
5832 ac_res=-l$ac_lib
5833 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5835 if ac_fn_c_try_link "$LINENO"; then :
5836 ac_cv_search_opendir=$ac_res
5838 rm -f core conftest.err conftest.$ac_objext \
5839 conftest$ac_exeext
5840 if test "${ac_cv_search_opendir+set}" = set; then :
5841 break
5843 done
5844 if test "${ac_cv_search_opendir+set}" = set; then :
5846 else
5847 ac_cv_search_opendir=no
5849 rm conftest.$ac_ext
5850 LIBS=$ac_func_search_save_LIBS
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5853 $as_echo "$ac_cv_search_opendir" >&6; }
5854 ac_res=$ac_cv_search_opendir
5855 if test "$ac_res" != no; then :
5856 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
5863 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
5864 if test "${ac_cv_header_stat_broken+set}" = set; then :
5865 $as_echo_n "(cached) " >&6
5866 else
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5869 #include <sys/types.h>
5870 #include <sys/stat.h>
5872 #if defined S_ISBLK && defined S_IFDIR
5873 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5874 #endif
5876 #if defined S_ISBLK && defined S_IFCHR
5877 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5878 #endif
5880 #if defined S_ISLNK && defined S_IFREG
5881 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5882 #endif
5884 #if defined S_ISSOCK && defined S_IFREG
5885 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5886 #endif
5888 _ACEOF
5889 if ac_fn_c_try_compile "$LINENO"; then :
5890 ac_cv_header_stat_broken=no
5891 else
5892 ac_cv_header_stat_broken=yes
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
5897 $as_echo "$ac_cv_header_stat_broken" >&6; }
5898 if test $ac_cv_header_stat_broken = yes; then
5900 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5905 $as_echo_n "checking for ANSI C header files... " >&6; }
5906 if test "${ac_cv_header_stdc+set}" = set; then :
5907 $as_echo_n "(cached) " >&6
5908 else
5909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5910 /* end confdefs.h. */
5911 #include <stdlib.h>
5912 #include <stdarg.h>
5913 #include <string.h>
5914 #include <float.h>
5917 main ()
5921 return 0;
5923 _ACEOF
5924 if ac_fn_c_try_compile "$LINENO"; then :
5925 ac_cv_header_stdc=yes
5926 else
5927 ac_cv_header_stdc=no
5929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 if test $ac_cv_header_stdc = yes; then
5932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5934 /* end confdefs.h. */
5935 #include <string.h>
5937 _ACEOF
5938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5939 $EGREP "memchr" >/dev/null 2>&1; then :
5941 else
5942 ac_cv_header_stdc=no
5944 rm -f conftest*
5948 if test $ac_cv_header_stdc = yes; then
5949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 #include <stdlib.h>
5954 _ACEOF
5955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5956 $EGREP "free" >/dev/null 2>&1; then :
5958 else
5959 ac_cv_header_stdc=no
5961 rm -f conftest*
5965 if test $ac_cv_header_stdc = yes; then
5966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5967 if test "$cross_compiling" = yes; then :
5969 else
5970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5971 /* end confdefs.h. */
5972 #include <ctype.h>
5973 #include <stdlib.h>
5974 #if ((' ' & 0x0FF) == 0x020)
5975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5977 #else
5978 # define ISLOWER(c) \
5979 (('a' <= (c) && (c) <= 'i') \
5980 || ('j' <= (c) && (c) <= 'r') \
5981 || ('s' <= (c) && (c) <= 'z'))
5982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5983 #endif
5985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5987 main ()
5989 int i;
5990 for (i = 0; i < 256; i++)
5991 if (XOR (islower (i), ISLOWER (i))
5992 || toupper (i) != TOUPPER (i))
5993 return 2;
5994 return 0;
5996 _ACEOF
5997 if ac_fn_c_try_run "$LINENO"; then :
5999 else
6000 ac_cv_header_stdc=no
6002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6003 conftest.$ac_objext conftest.beam conftest.$ac_ext
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6009 $as_echo "$ac_cv_header_stdc" >&6; }
6010 if test $ac_cv_header_stdc = yes; then
6012 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6017 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6018 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
6019 $as_echo_n "(cached) " >&6
6020 else
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6023 #include <sys/types.h>
6024 #include <sys/wait.h>
6025 #ifndef WEXITSTATUS
6026 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6027 #endif
6028 #ifndef WIFEXITED
6029 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6030 #endif
6033 main ()
6035 int s;
6036 wait (&s);
6037 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6039 return 0;
6041 _ACEOF
6042 if ac_fn_c_try_compile "$LINENO"; then :
6043 ac_cv_header_sys_wait_h=yes
6044 else
6045 ac_cv_header_sys_wait_h=no
6047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6050 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6051 if test $ac_cv_header_sys_wait_h = yes; then
6053 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
6058 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6059 if test "${ac_cv_header_time+set}" = set; then :
6060 $as_echo_n "(cached) " >&6
6061 else
6062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6063 /* end confdefs.h. */
6064 #include <sys/types.h>
6065 #include <sys/time.h>
6066 #include <time.h>
6069 main ()
6071 if ((struct tm *) 0)
6072 return 0;
6074 return 0;
6076 _ACEOF
6077 if ac_fn_c_try_compile "$LINENO"; then :
6078 ac_cv_header_time=yes
6079 else
6080 ac_cv_header_time=no
6082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
6085 $as_echo "$ac_cv_header_time" >&6; }
6086 if test $ac_cv_header_time = yes; then
6088 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
6092 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
6093 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
6095 cat >>confdefs.h <<_ACEOF
6096 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6097 _ACEOF
6100 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
6105 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6106 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
6108 cat >>confdefs.h <<_ACEOF
6109 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6110 _ACEOF
6113 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
6115 else
6116 case " $LIBOBJS " in
6117 *" fileblocks.$ac_objext "* ) ;;
6118 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6120 esac
6125 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6126 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
6128 cat >>confdefs.h <<_ACEOF
6129 #define HAVE_STRUCT_STAT_ST_RDEV 1
6130 _ACEOF
6133 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
6139 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6140 if test "${ac_cv_struct_tm+set}" = set; then :
6141 $as_echo_n "(cached) " >&6
6142 else
6143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6144 /* end confdefs.h. */
6145 #include <sys/types.h>
6146 #include <time.h>
6149 main ()
6151 struct tm tm;
6152 int *p = &tm.tm_sec;
6153 return !p;
6155 return 0;
6157 _ACEOF
6158 if ac_fn_c_try_compile "$LINENO"; then :
6159 ac_cv_struct_tm=time.h
6160 else
6161 ac_cv_struct_tm=sys/time.h
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
6166 $as_echo "$ac_cv_struct_tm" >&6; }
6167 if test $ac_cv_struct_tm = sys/time.h; then
6169 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
6173 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
6174 #include <$ac_cv_struct_tm>
6177 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
6179 cat >>confdefs.h <<_ACEOF
6180 #define HAVE_STRUCT_TM_TM_ZONE 1
6181 _ACEOF
6186 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6188 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
6190 else
6191 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
6193 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
6194 ac_have_decl=1
6195 else
6196 ac_have_decl=0
6199 cat >>confdefs.h <<_ACEOF
6200 #define HAVE_DECL_TZNAME $ac_have_decl
6201 _ACEOF
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6204 $as_echo_n "checking for tzname... " >&6; }
6205 if test "${ac_cv_var_tzname+set}" = set; then :
6206 $as_echo_n "(cached) " >&6
6207 else
6208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6209 /* end confdefs.h. */
6210 #include <time.h>
6211 #if !HAVE_DECL_TZNAME
6212 extern char *tzname[];
6213 #endif
6216 main ()
6218 return tzname[0][0];
6220 return 0;
6222 _ACEOF
6223 if ac_fn_c_try_link "$LINENO"; then :
6224 ac_cv_var_tzname=yes
6225 else
6226 ac_cv_var_tzname=no
6228 rm -f core conftest.err conftest.$ac_objext \
6229 conftest$ac_exeext conftest.$ac_ext
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
6232 $as_echo "$ac_cv_var_tzname" >&6; }
6233 if test $ac_cv_var_tzname = yes; then
6235 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
6240 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6241 if test "x$ac_cv_type_off_t" = x""yes; then :
6243 else
6245 cat >>confdefs.h <<_ACEOF
6246 #define off_t long int
6247 _ACEOF
6251 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6252 if test "x$ac_cv_type_pid_t" = x""yes; then :
6254 else
6256 cat >>confdefs.h <<_ACEOF
6257 #define pid_t int
6258 _ACEOF
6262 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6263 if test "x$ac_cv_type_size_t" = x""yes; then :
6265 else
6267 cat >>confdefs.h <<_ACEOF
6268 #define size_t unsigned int
6269 _ACEOF
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6274 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6275 if test "${ac_cv_type_uid_t+set}" = set; then :
6276 $as_echo_n "(cached) " >&6
6277 else
6278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6279 /* end confdefs.h. */
6280 #include <sys/types.h>
6282 _ACEOF
6283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6284 $EGREP "uid_t" >/dev/null 2>&1; then :
6285 ac_cv_type_uid_t=yes
6286 else
6287 ac_cv_type_uid_t=no
6289 rm -f conftest*
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6293 $as_echo "$ac_cv_type_uid_t" >&6; }
6294 if test $ac_cv_type_uid_t = no; then
6296 $as_echo "#define uid_t int" >>confdefs.h
6299 $as_echo "#define gid_t int" >>confdefs.h
6304 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "$ac_includes_default"
6305 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
6307 cat >>confdefs.h <<_ACEOF
6308 #define HAVE_STRUCT_TM_TM_GMTOFF 1
6309 _ACEOF
6315 # Look for some functions
6316 for ac_func in getpagesize kqueue statfs statvfs \
6317 clone kse_create rfork_thread thr_create sa_register \
6318 getcontext makecontext setcontext sigaltstack swapcontext
6319 do :
6320 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6321 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6322 eval as_val=\$$as_ac_var
6323 if test "x$as_val" = x""yes; then :
6324 cat >>confdefs.h <<_ACEOF
6325 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6326 _ACEOF
6329 done
6332 for ac_header in stdlib.h unistd.h
6333 do :
6334 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6335 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6336 eval as_val=\$$as_ac_Header
6337 if test "x$as_val" = x""yes; then :
6338 cat >>confdefs.h <<_ACEOF
6339 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6340 _ACEOF
6344 done
6346 for ac_func in getpagesize
6347 do :
6348 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
6349 if test "x$ac_cv_func_getpagesize" = x""yes; then :
6350 cat >>confdefs.h <<_ACEOF
6351 #define HAVE_GETPAGESIZE 1
6352 _ACEOF
6355 done
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
6358 $as_echo_n "checking for working mmap... " >&6; }
6359 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
6360 $as_echo_n "(cached) " >&6
6361 else
6362 if test "$cross_compiling" = yes; then :
6363 ac_cv_func_mmap_fixed_mapped=no
6364 else
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6367 $ac_includes_default
6368 /* malloc might have been renamed as rpl_malloc. */
6369 #undef malloc
6371 /* Thanks to Mike Haertel and Jim Avera for this test.
6372 Here is a matrix of mmap possibilities:
6373 mmap private not fixed
6374 mmap private fixed at somewhere currently unmapped
6375 mmap private fixed at somewhere already mapped
6376 mmap shared not fixed
6377 mmap shared fixed at somewhere currently unmapped
6378 mmap shared fixed at somewhere already mapped
6379 For private mappings, we should verify that changes cannot be read()
6380 back from the file, nor mmap's back from the file at a different
6381 address. (There have been systems where private was not correctly
6382 implemented like the infamous i386 svr4.0, and systems where the
6383 VM page cache was not coherent with the file system buffer cache
6384 like early versions of FreeBSD and possibly contemporary NetBSD.)
6385 For shared mappings, we should conversely verify that changes get
6386 propagated back to all the places they're supposed to be.
6388 Grep wants private fixed already mapped.
6389 The main things grep needs to know about mmap are:
6390 * does it exist and is it safe to write into the mmap'd area
6391 * how to use it (BSD variants) */
6393 #include <fcntl.h>
6394 #include <sys/mman.h>
6396 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
6397 char *malloc ();
6398 #endif
6400 /* This mess was copied from the GNU getpagesize.h. */
6401 #ifndef HAVE_GETPAGESIZE
6402 /* Assume that all systems that can run configure have sys/param.h. */
6403 # ifndef HAVE_SYS_PARAM_H
6404 # define HAVE_SYS_PARAM_H 1
6405 # endif
6407 # ifdef _SC_PAGESIZE
6408 # define getpagesize() sysconf(_SC_PAGESIZE)
6409 # else /* no _SC_PAGESIZE */
6410 # ifdef HAVE_SYS_PARAM_H
6411 # include <sys/param.h>
6412 # ifdef EXEC_PAGESIZE
6413 # define getpagesize() EXEC_PAGESIZE
6414 # else /* no EXEC_PAGESIZE */
6415 # ifdef NBPG
6416 # define getpagesize() NBPG * CLSIZE
6417 # ifndef CLSIZE
6418 # define CLSIZE 1
6419 # endif /* no CLSIZE */
6420 # else /* no NBPG */
6421 # ifdef NBPC
6422 # define getpagesize() NBPC
6423 # else /* no NBPC */
6424 # ifdef PAGESIZE
6425 # define getpagesize() PAGESIZE
6426 # endif /* PAGESIZE */
6427 # endif /* no NBPC */
6428 # endif /* no NBPG */
6429 # endif /* no EXEC_PAGESIZE */
6430 # else /* no HAVE_SYS_PARAM_H */
6431 # define getpagesize() 8192 /* punt totally */
6432 # endif /* no HAVE_SYS_PARAM_H */
6433 # endif /* no _SC_PAGESIZE */
6435 #endif /* no HAVE_GETPAGESIZE */
6438 main ()
6440 char *data, *data2, *data3;
6441 int i, pagesize;
6442 int fd;
6444 pagesize = getpagesize ();
6446 /* First, make a file with some known garbage in it. */
6447 data = (char *) malloc (pagesize);
6448 if (!data)
6449 return 1;
6450 for (i = 0; i < pagesize; ++i)
6451 *(data + i) = rand ();
6452 umask (0);
6453 fd = creat ("conftest.mmap", 0600);
6454 if (fd < 0)
6455 return 1;
6456 if (write (fd, data, pagesize) != pagesize)
6457 return 1;
6458 close (fd);
6460 /* Next, try to mmap the file at a fixed address which already has
6461 something else allocated at it. If we can, also make sure that
6462 we see the same garbage. */
6463 fd = open ("conftest.mmap", O_RDWR);
6464 if (fd < 0)
6465 return 1;
6466 data2 = (char *) malloc (2 * pagesize);
6467 if (!data2)
6468 return 1;
6469 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
6470 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6471 MAP_PRIVATE | MAP_FIXED, fd, 0L))
6472 return 1;
6473 for (i = 0; i < pagesize; ++i)
6474 if (*(data + i) != *(data2 + i))
6475 return 1;
6477 /* Finally, make sure that changes to the mapped area do not
6478 percolate back to the file as seen by read(). (This is a bug on
6479 some variants of i386 svr4.0.) */
6480 for (i = 0; i < pagesize; ++i)
6481 *(data2 + i) = *(data2 + i) + 1;
6482 data3 = (char *) malloc (pagesize);
6483 if (!data3)
6484 return 1;
6485 if (read (fd, data3, pagesize) != pagesize)
6486 return 1;
6487 for (i = 0; i < pagesize; ++i)
6488 if (*(data + i) != *(data3 + i))
6489 return 1;
6490 close (fd);
6491 return 0;
6493 _ACEOF
6494 if ac_fn_c_try_run "$LINENO"; then :
6495 ac_cv_func_mmap_fixed_mapped=yes
6496 else
6497 ac_cv_func_mmap_fixed_mapped=no
6499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6500 conftest.$ac_objext conftest.beam conftest.$ac_ext
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
6505 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
6506 if test $ac_cv_func_mmap_fixed_mapped = yes; then
6508 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
6511 rm -f conftest.mmap
6516 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
6517 aros_config_aflags="-Wall -x assembler-with-cpp -c"
6518 aros_config_ldflags=""
6520 aros_shared_default=yes
6522 aros_shared_cflags="-fPIC"
6523 aros_shared_aflags=""
6524 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
6525 aros_kernel_ldflags="-Wl,-rpath,./lib"
6527 aros_target_ar_flags="cr"
6528 aros_target_nm_flags="-C -ul"
6529 aros_target_strip_flags="--strip-unneeded -R.comment"
6531 aros_compiler_libs=
6532 aros_arch_libs=
6534 aros_target_genmap="-Wl,-Map -Xlinker"
6536 # Native flavour stuff
6537 aros_serial_debug="0"
6539 # Palm native flavour stuff
6540 aros_palm_debug_hack="0"
6542 # Unix flavour stuff
6543 aros_nesting_supervisor="0"
6545 # Collect-aros stuff: "-ius" to ignore undefined symbols
6546 ignore_undefined_symbols=""
6548 # Check for X11 by default
6549 need_x11="auto"
6551 #-----------------------------------------------------------------------------
6554 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
6555 # it switched on by default, and we use the host compiler, so it compiles AROS
6556 # code with this enabled resulting in link failures as we don't have support
6557 # for it.
6559 # We use two methods to disable it. For the host compiler (used to compile
6560 # some hosted modules), we test to see if the compiler supports stack
6561 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
6562 # work on all platforms.
6564 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
6565 # (this is done unconditionally, as it should have no effect on compilers
6566 # without the stack protection feature). This may be specific to the way that
6567 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
6568 # strong enough to disable it in a generic way though, so we'll live with it
6569 # until another vendor ships GCC with it enabled in a different way, and deal
6570 # with it then.
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
6574 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
6575 save_cflags="$CFLAGS"
6576 CFLAGS="$CFLAGS -fno-stack-protector"
6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6578 /* end confdefs.h. */
6581 main ()
6585 return 0;
6587 _ACEOF
6588 if ac_fn_c_try_compile "$LINENO"; then :
6589 use_no_stack_protector="yes"
6590 else
6591 use_no_stack_protector="no"
6593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
6595 $as_echo "$use_no_stack_protector" >&6; }
6596 if test "x-$use_no_stack_protector" = "x-yes" ; then
6597 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
6599 CFLAGS="$save_cflags"
6601 #-----------------------------------------------------------------------------
6603 # Disable pointer-signedness warnings if the compiler recognises the option
6604 # (this only works for the host compiler at the moment)
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
6607 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
6608 save_cflags="$CFLAGS"
6609 CFLAGS="$CFLAGS -Wno-pointer-sign"
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6614 main ()
6618 return 0;
6620 _ACEOF
6621 if ac_fn_c_try_compile "$LINENO"; then :
6622 use_no_sign_warning="yes"
6623 else
6624 use_no_sign_warning="no"
6626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
6628 $as_echo "$use_no_sign_warning" >&6; }
6629 if test "x-$use_no_sign_warning" = "x-yes" ; then
6630 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
6632 CFLAGS="$save_cflags"
6634 #-----------------------------------------------------------------------------
6636 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fgnu89-inline" >&5
6639 $as_echo_n "checking whether ${CC} accepts -fgnu89-inline... " >&6; }
6640 save_cflags="$CFLAGS"
6641 CFLAGS="$CFLAGS -fgnu89-inline"
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643 /* end confdefs.h. */
6646 main ()
6650 return 0;
6652 _ACEOF
6653 if ac_fn_c_try_compile "$LINENO"; then :
6654 use_gnu89_inline="yes"
6655 else
6656 use_gnu89_inline="no"
6658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_gnu89_inline" >&5
6660 $as_echo "$use_gnu89_inline" >&6; }
6661 if test "x-$use_gnu89_inline" = "x-yes" ; then
6662 gnu89_inline="-fgnu89-inline"
6664 CFLAGS="$save_cflags"
6666 #-----------------------------------------------------------------------------
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of build" >&5
6669 $as_echo_n "checking for type of build... " >&6; }
6670 # Check whether --enable-build_type was given.
6671 if test "${enable_build_type+set}" = set; then :
6672 enableval=$enable_build_type; build_type=$enableval
6673 else
6674 build_type="personal"
6678 if test "$build_type" = "nightly"; then
6679 build_type_string="NIGHTLY"
6680 elif test "$build_type" = "snapshot"; then
6681 build_type_string="SNAPSHOT"
6682 elif test "$build_type" = "milestone"; then
6683 build_type_string="MILESTONE"
6684 elif test "$build_type" = "release"; then
6685 build_type_string="RELEASE"
6686 else
6687 build_type_string="PERSONAL"
6688 build_type="personal"
6691 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_type" >&5
6694 $as_echo "$build_type" >&6; }
6696 #-----------------------------------------------------------------------------
6697 all_debug_types="messages stack modules mungwall symbols"
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug types to enable" >&5
6700 $as_echo_n "checking which debug types to enable... " >&6; }
6701 # Check whether --enable-debug was given.
6702 if test "${enable_debug+set}" = set; then :
6703 enableval=$enable_debug; debug="$enableval"
6704 else
6705 debug=""
6709 if test "$debug" = "" -o "$debug" = "no"; then
6710 debug="none"
6711 elif test "$debug" = "yes"; then
6712 debug="all"
6715 if test "$debug" = "all" ; then
6716 debug="messages stack modules symbols"
6717 for d in $all_debug_types; do
6718 export aros_${d}_debug="1"
6719 done
6720 else
6721 for d in $all_debug_types; do
6722 export aros_${d}_debug="0"
6723 done
6726 if test "$debug" != "none"; then
6727 debug=`echo $debug | sed s/,/\ /g`
6728 for d in $debug; do
6729 found="0"
6730 for d2 in $all_debug_types; do
6731 if test "$d2" = "$d"; then
6732 found="1"
6733 break
6735 done
6736 if test "$found" = "0"; then
6737 as_fn_error "unrecognized debug type \"$d\". Available types are: all none $all_debug_types" "$LINENO" 5
6739 export aros_${d}_debug="1"
6740 done
6741 aros_debug="yes"
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $debug" >&5
6744 $as_echo "$debug" >&6; }
6746 if test "$aros_messages_debug" = "1"; then
6747 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
6748 else
6749 aros_messages_debug=""
6751 if test "$aros_symbols_debug" = "1"; then
6752 aros_symbols_debug="-g"
6753 else
6754 aros_symbols_debug=""
6757 # These are the flags to pass when compiling debugged programs
6758 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
6759 aros_debug_aflags=""
6760 aros_debug_ldflags="$aros_symbols_debug"
6762 aros_crosstools="no"
6764 #-----------------------------------------------------------------------------
6765 # Checking if we should build crosstools..
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build crosstools" >&5
6767 $as_echo_n "checking whether to build crosstools... " >&6; }
6768 # Check whether --enable-crosstools was given.
6769 if test "${enable_crosstools+set}" = set; then :
6770 enableval=$enable_crosstools; crosstools="$enableval"
6771 else
6772 crosstools="no"
6775 if test "$crosstools" != "" -a "$crosstools" != "no"; then
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6777 $as_echo "yes" >&6; }
6778 aros_crosstools="yes"
6779 else
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781 $as_echo "no" >&6; }
6784 #-----------------------------------------------------------------------------
6785 # Checking for distcc and ccache.
6787 # Always apply the transforms in this particular order. Basically you should
6788 # always run 'ccache distcc compiler' in that order for the best performance.
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable distcc" >&5
6791 $as_echo_n "checking whether to enable distcc... " >&6; }
6792 # Check whether --enable-distcc was given.
6793 if test "${enable_distcc+set}" = set; then :
6794 enableval=$enable_distcc; distcc="$enableval"
6795 else
6796 distcc="no"
6799 if test "$distcc" != "" -a "$distcc" != "no"; then
6800 # AC_CHECK_PROG will print out the result in this case
6801 # Extract the first word of "distcc", so it can be a program name with args.
6802 set dummy distcc; ac_word=$2
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 $as_echo_n "checking for $ac_word... " >&6; }
6805 if test "${ac_cv_path_DISTCC+set}" = set; then :
6806 $as_echo_n "(cached) " >&6
6807 else
6808 case $DISTCC in
6809 [\\/]* | ?:[\\/]*)
6810 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6816 IFS=$as_save_IFS
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6820 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
6821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6822 break 2
6824 done
6825 done
6826 IFS=$as_save_IFS
6828 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
6830 esac
6832 DISTCC=$ac_cv_path_DISTCC
6833 if test -n "$DISTCC"; then
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DISTCC" >&5
6835 $as_echo "$DISTCC" >&6; }
6836 else
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6842 else
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6844 $as_echo "no" >&6; }
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ccache" >&5
6848 $as_echo_n "checking whether to enable ccache... " >&6; }
6849 # Check whether --enable-ccache was given.
6850 if test "${enable_ccache+set}" = set; then :
6851 enableval=$enable_ccache; ccache="$enableval"
6852 else
6853 ccache="no"
6856 if test "$ccache" != "" -a "$ccache" != "no"; then
6857 # AC_CHECK_PROG will print out the result in this case
6858 # Extract the first word of "ccache", so it can be a program name with args.
6859 set dummy ccache; ac_word=$2
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6861 $as_echo_n "checking for $ac_word... " >&6; }
6862 if test "${ac_cv_prog_CCACHE+set}" = set; then :
6863 $as_echo_n "(cached) " >&6
6864 else
6865 if test -n "$CCACHE"; then
6866 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
6867 else
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6869 for as_dir in $PATH
6871 IFS=$as_save_IFS
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_prog_CCACHE="ccache"
6876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6877 break 2
6879 done
6880 done
6881 IFS=$as_save_IFS
6885 CCACHE=$ac_cv_prog_CCACHE
6886 if test -n "$CCACHE"; then
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
6888 $as_echo "$CCACHE" >&6; }
6889 else
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6891 $as_echo "no" >&6; }
6895 else
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6900 #-----------------------------------------------------------------------------
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what specific gcc version to use" >&5
6902 $as_echo_n "checking what specific gcc version to use... " >&6; }
6904 # Check whether --with-gcc-version was given.
6905 if test "${with_gcc_version+set}" = set; then :
6906 withval=$with_gcc_version; target_tool_version="$withval"
6907 else
6908 target_tool_version="default"
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_tool_version" >&5
6912 $as_echo "$target_tool_version" >&6; }
6914 #-----------------------------------------------------------------------------
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what optimization flags to use" >&5
6916 $as_echo_n "checking what optimization flags to use... " >&6; }
6918 # Check whether --with-optimization was given.
6919 if test "${with_optimization+set}" = set; then :
6920 withval=$with_optimization; optimization="$withval"
6921 else
6922 optimization="unknown"
6925 if test "$optimization" = "unknown"; then
6926 if test "$debug" != "none"; then
6927 optimization="-O0"
6928 else
6929 optimization="-O2"
6932 aros_config_cflags="$aros_config_cflags $optimization"
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimization" >&5
6934 $as_echo "$optimization" >&6; }
6936 #-----------------------------------------------------------------------------
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what paranoia flags to use" >&5
6938 $as_echo_n "checking what paranoia flags to use... " >&6; }
6940 # Check whether --with-paranoia was given.
6941 if test "${with_paranoia+set}" = set; then :
6942 withval=$with_paranoia; paranoia_flags="$withval"
6943 else
6944 paranoia_flags="default"
6947 if test "$paranoia_flags" = "default"; then
6948 paranoia_flags=""
6949 else if test "$paranoia_flags" = "yes"; then
6950 paranoia_flags="-Wall -Werror"
6951 fi fi
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $paranoia_flags" >&5
6953 $as_echo "$paranoia_flags" >&6; }
6954 aros_paranoia_cflags="$paranoia_flags"
6956 #-----------------------------------------------------------------------------
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what target variant to enable" >&5
6958 $as_echo_n "checking what target variant to enable... " >&6; }
6959 # Check whether --enable-target_variant was given.
6960 if test "${enable_target_variant+set}" = set; then :
6961 enableval=$enable_target_variant; target_variant=$enableval
6962 else
6963 target_variant=""
6966 if test "$target_variant" = ""; then
6967 aros_target_variant=""
6968 aros_target_suffix=""
6969 enableval="none"
6970 else
6971 aros_target_variant="$target_variant"
6972 aros_target_suffix="-$target_variant"
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enableval" >&5
6975 $as_echo "$enableval" >&6; }
6977 target_bootloader="none"
6979 #-----------------------------------------------------------------------------
6980 case "$aros_target_variant" in
6981 ios)
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XCode path" >&5
6983 $as_echo_n "checking XCode path... " >&6; }
6985 # Check whether --with-xcode was given.
6986 if test "${with_xcode+set}" = set; then :
6987 withval=$with_xcode; aros_xcode_path="$withval"
6988 else
6989 aros_xcode_path="/Developer"
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_xcode_path" >&5
6993 $as_echo "$aros_xcode_path" >&6; }
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for minimum supported iOS version" >&5
6996 $as_echo_n "checking for minimum supported iOS version... " >&6; }
6998 # Check whether --with-ios-version was given.
6999 if test "${with_ios_version+set}" = set; then :
7000 withval=$with_ios_version; aros_ios_version="$withval"
7001 else
7002 aros_ios_version="3.0"
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_version" >&5
7006 $as_echo "$aros_ios_version" >&6; }
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what iOS SDK version to use" >&5
7009 $as_echo_n "checking what iOS SDK version to use... " >&6; }
7011 # Check whether --with-ios-sdk was given.
7012 if test "${with_ios_sdk+set}" = set; then :
7013 withval=$with_ios_sdk; aros_ios_sdk="$withval"
7014 else
7015 aros_ios_sdk="4.1"
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_ios_sdk" >&5
7019 $as_echo "$aros_ios_sdk" >&6; }
7023 "android")
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android SDK path" >&5
7025 $as_echo_n "checking Android SDK path... " >&6; }
7027 # Check whether --with-sdk was given.
7028 if test "${with_sdk+set}" = set; then :
7029 withval=$with_sdk; aros_android_sdk="$withval"
7030 else
7031 aros_android_sdk=$default_android_sdk
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_sdk" >&5
7035 $as_echo "$aros_android_sdk" >&6; }
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Android NDK path" >&5
7038 $as_echo_n "checking Android NDK path... " >&6; }
7040 # Check whether --with-ndk was given.
7041 if test "${with_ndk+set}" = set; then :
7042 withval=$with_ndk; aros_android_ndk="$withval"
7043 else
7044 aros_android_ndk=""
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_ndk" >&5
7048 $as_echo "$aros_android_ndk" >&6; }
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what Android version to use" >&5
7051 $as_echo_n "checking what Android version to use... " >&6; }
7053 # Check whether --with-android-version was given.
7054 if test "${with_android_version+set}" = set; then :
7055 withval=$with_android_version; aros_android_version="$withval"
7056 else
7057 aros_android_version="2.2"
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_android_version" >&5
7061 $as_echo "$aros_android_version" >&6; }
7063 export PATH="$aros_android_sdk/tools:$PATH"
7064 # Extract the first word of "$android_tool", so it can be a program name with args.
7065 set dummy $android_tool; ac_word=$2
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7067 $as_echo_n "checking for $ac_word... " >&6; }
7068 if test "${ac_cv_path_android_tool+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 case $android_tool in
7072 [\\/]* | ?:[\\/]*)
7073 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7087 done
7088 done
7089 IFS=$as_save_IFS
7092 esac
7094 android_tool=$ac_cv_path_android_tool
7095 if test -n "$android_tool"; then
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $android_tool" >&5
7097 $as_echo "$android_tool" >&6; }
7098 else
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 $as_echo "no" >&6; }
7104 if test "$android_tool" = ""; then
7105 as_fn_error "android is required to build AROS. Please install and run configure again." "$LINENO" 5
7108 if test $host_os = "mingw32"; then
7109 android_tool="cmd //c $android_tool"
7113 esac
7115 #-----------------------------------------------------------------------------
7116 # This is the target configuration switch.
7117 case "$target_os" in
7118 linux*)
7119 aros_target_arch="linux"
7120 aros_target_family="unix"
7121 case "$target_cpu" in
7122 *m68k*)
7123 aros_target_cpu="m68k"
7124 aros_object_format="m68kelf"
7125 aros_flavour="emulcompat"
7126 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
7127 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
7128 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
7129 gcc_target_cpu="mc68000"
7131 *i?86*)
7132 aros_target_cpu="i386"
7133 aros_object_format="elf_i386"
7134 aros_flavour="emulation"
7135 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
7136 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7137 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7138 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7139 aros_config_ldflags="-m32 -march=i486"
7140 aros_kernel_ldflags="-melf_i386"
7141 aros_default_wbdepth=8
7142 gcc_target_cpu="i386"
7143 pci_hidd_target="hidd-pci-linux"
7145 *x86_64*)
7146 aros_target_cpu="x86_64"
7147 aros_object_format="elf_x86_64"
7148 aros_flavour="emulation"
7149 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
7150 aros_config_cflags="$aros_config_cflags -mno-red-zone"
7151 aros_default_wbdepth=8
7152 gcc_target_cpu="x86_64"
7153 pci_hidd_target="hidd-pci-linux"
7155 *powerpc*)
7156 aros_target_cpu="ppc"
7157 aros_object_format="elf32ppc"
7158 aros_flavour="emulation"
7159 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7160 aros_default_wbdepth=8
7161 gcc_target_cpu="ppc"
7163 # TODO
7164 # Same as powerpc, but I need this for the nightly build to work again.
7165 # Actually, the nightly should be made working with powerpc target.
7166 # That just was too much work for the moment, another week or two.
7167 *ppc*)
7168 aros_target_cpu="ppc"
7169 aros_object_format="elf32ppc"
7170 aros_flavour="emulation"
7171 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
7172 aros_default_wbdepth=8
7173 gcc_target_cpu="ppc"
7175 *arm*)
7176 aros_target_cpu="arm"
7177 aros_object_format="armelf_linux_eabi"
7178 aros_flavour="emulation"
7179 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
7180 gcc_target_cpu="arm"
7181 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7182 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
7183 aros_arch_libs="-laeabi"
7186 as_fn_error "\"Unknown CPU for Linux -- $target_cpu\"" "$LINENO" 5
7188 esac
7189 case "$aros_target_variant" in
7190 android)
7191 case "$aros_android_version" in
7192 2.2)
7193 aros_android_level=android-8
7196 aros_android_level=android-9
7198 esac
7199 aros_default_wbwidth=320
7200 aros_default_wbheight=480
7201 aros_target_cc="arm-aros-gcc"
7202 aros_target_cxx="arm-aros-g++"
7203 aros_target_ld="arm-aros-ld"
7204 aros_target_as="arm-aros-as"
7205 aros_target_ar="arm-aros-ar"
7206 aros_target_ranlib="arm-aros-ranlib"
7207 aros_target_nm="arm-aros-nm"
7208 aros_target_strip="arm-aros-strip"
7209 aros_target_objcopy="arm-aros-objcopy"
7210 aros_target_objdump="arm-aros-objdump"
7211 if test "$aros_android_ndk" = ""; then
7212 aros_kernel_cflags="-mandroid"
7213 aros_kernel_ldflags="-mandroid"
7214 CFLAGS="-mandroid"
7215 else
7216 export PATH="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
7217 aros_android_ndk="$aros_android_ndk/platforms/$aros_android_level/arch-arm"
7218 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
7219 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
7220 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
7221 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
7223 need_x11=no
7224 target_tool_prefix="arm-linux-androideabi-"
7226 esac
7230 aros_target_arch="pc"
7231 aros_shared_default="no"
7232 target_bootloader="grub2"
7233 case "$target_cpu" in
7234 *i?86*)
7235 aros_target_cpu="i386"
7238 if test "$aros_object_format" = "" ; then
7239 aros_object_format="elf_i386"
7241 aros_flavour="standalone"
7242 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7243 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
7244 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
7245 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
7246 aros_config_ldflags="-m32 -march=i486"
7247 aros_kernel_ldflags="-melf_i386"
7248 aros_default_wbwidth=640
7249 aros_default_wbheight=480
7250 gcc_target_cpu="i386"
7252 *x86_64*)
7253 aros_target_cpu="x86_64"
7254 aros_serial_debug=1
7255 if test "$aros_object_format" = "" ; then
7256 aros_object_format="elf_x86_64"
7258 aros_flavour="standalone"
7259 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7260 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
7261 aros_kernel_ldflags=""
7262 aros_default_wbwidth=640
7263 aros_default_wbheight=480
7264 gcc_target_cpu="x86_64"
7267 as_fn_error "\"Unknown native CPU -- $target_cpu\"" "$LINENO" 5
7269 esac
7272 prep)
7273 aros_target_arch="prep"
7274 aros_shared_default="no"
7275 aros_target_cpu="ppc"
7276 aros_object_format="elf32ppc"
7277 aros_flavour="ppcnative"
7278 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7279 aros_kernel_ldflags=""
7280 aros_default_wbwidth=640
7281 aros_default_wbheight=480
7282 gcc_target_cpu="ppc"
7285 freebsd*)
7286 aros_target_arch="freebsd"
7287 aros_target_family="unix"
7288 aros_target_cpu="i386"
7289 aros_flavour="emulation"
7290 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7291 gcc_target_cpu="i386"
7293 aros_target_strip_flags="-x"
7296 darwin*)
7297 aros_target_arch="darwin"
7298 aros_target_family="unix"
7299 aros_flavour="emulation"
7300 case "$target_cpu" in
7301 *i?86*)
7302 aros_ios_platform="iPhoneSimulator"
7303 aros_target_cpu="i386"
7304 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7305 aros_kernel_ldflags=""
7306 aros_macosx_version="10.4"
7307 aros_default_wbdepth=8
7308 gcc_target_cpu="i386"
7309 aros_object_format="elf_i386"
7310 aros_target_strip_flags="-x"
7311 aros_target_cc="i386-aros-gcc"
7312 aros_target_cxx="i386-aros-g++"
7313 aros_target_ld="i386-aros-ld"
7314 aros_target_as="i386-aros-as"
7315 aros_target_ar="i386-aros-ar"
7316 aros_target_ranlib="i386-aros-ranlib"
7317 aros_target_nm="i386-aros-nm"
7318 aros_target_strip="i386-aros-strip"
7319 aros_target_objcopy="i386-aros-objcopy"
7320 aros_target_objdump="i386-aros-objdump"
7321 target_tool_prefix="i686-apple-darwin10-"
7322 target_tool_flags="-m32"
7324 *x86_64*)
7325 aros_target_cpu="x86_64"
7326 aros_object_format="elf_x86_64"
7327 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7328 aros_macosx_version="10.6"
7329 aros_kernel_cflags="-m64"
7330 aros_kernel_ldflags="-m64"
7331 aros_default_wbdepth=8
7332 gcc_target_cpu="x86_64"
7333 aros_kernel_ld="ld"
7334 aros_target_cc="x86_64-aros-gcc"
7335 aros_target_cxx="x86_64-aros-g++"
7336 aros_target_ld="x86_64-aros-ld"
7337 aros_target_as="x86_64-aros-as"
7338 aros_target_ar="x86_64-aros-ar"
7339 aros_target_ranlib="x86_64-aros-ranlib"
7340 aros_target_nm="x86_64-aros-nm"
7341 aros_target_strip="x86_64-aros-strip"
7342 aros_target_objcopy="x86_64-aros-objcopy"
7343 aros_target_objdump="x86_64-aros-objdump"
7344 target_tool_prefix="i686-apple-darwin10-"
7346 *ppc*)
7347 aros_target_cpu="ppc"
7348 aros_object_format="elf32ppc"
7349 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7350 aros_kernel_ldflags=""
7351 aros_macosx_version="10.0"
7352 aros_default_wbdepth=8
7353 gcc_target_cpu="ppc"
7354 aros_kernel_ld="ld -arch ppc"
7355 aros_target_cc="ppc-aros-gcc"
7356 aros_target_cxx="ppc-aros-g++"
7357 aros_target_ld="ppc-aros-ld"
7358 aros_target_as="ppc-aros-as"
7359 aros_target_ar="ppc-aros-ar"
7360 aros_target_ranlib="ppc-aros-ranlib"
7361 aros_target_nm="ppc-aros-nm"
7362 aros_target_strip="ppc-aros-strip"
7363 aros_target_objcopy="ppc-aros-objcopy"
7364 aros_target_objdump="ppc-aros-objdump"
7365 target_tool_prefix="powerpc-apple-darwin10-"
7367 *arm*)
7368 aros_ios_platform="iPhoneOS"
7369 aros_target_cpu="arm"
7370 aros_object_format="armelf_linux_eabi"
7371 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7372 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7373 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
7374 aros_arch_libs="-laeabi"
7375 aros_default_wbdepth=8
7376 gcc_target_cpu="arm"
7377 aros_kernel_ld="ld -arch armv6"
7378 aros_target_cc="arm-aros-gcc"
7379 aros_target_cxx="arm-aros-g++"
7380 aros_target_ld="arm-aros-ld"
7381 aros_target_as="arm-aros-as"
7382 aros_target_ar="arm-aros-ar"
7383 aros_target_ranlib="arm-aros-ranlib"
7384 aros_target_nm="arm-aros-nm"
7385 aros_target_strip="arm-aros-strip"
7386 aros_target_objcopy="arm-aros-objcopy"
7387 aros_target_objdump="arm-aros-objdump"
7388 target_tool_prefix="arm-apple-darwin10-"
7389 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
7392 as_fn_error "\"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" "$LINENO" 5
7394 esac
7395 case "$aros_target_variant" in
7396 ios)
7397 aros_default_wbwidth=320
7398 aros_default_wbheight=480
7399 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
7400 target_tool_flags="$target_tool_flags --sysroot $aros_ios_sdk"
7401 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
7402 need_x11=no
7403 # This is here because it may depend on iOS or SDK version
7404 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
7405 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
7406 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
7409 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
7410 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
7412 esac
7415 dragonfly*)
7416 aros_target_arch="dragonfly"
7417 aros_target_family="unix"
7418 aros_flavour="emulation"
7419 case "$target_cpu" in
7420 *i?86*)
7421 aros_target_cpu="i386"
7422 aros_object_format="elf_i386"
7423 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
7425 *x86_64*)
7426 aros_target_cpu="x86_64"
7427 aros_object_format="elf_x86_64"
7428 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
7431 as_fn_error "\"Unknown CPU for DragonFly -- $target_cpu\"" "$LINENO" 5
7433 esac
7436 netbsd*)
7437 aros_target_arch="netbsd"
7438 aros_target_family="unix"
7439 case "$target_cpu" in
7440 *m68k*)
7441 aros_target_cpu="m68k"
7442 aros_object_format="m68kelf"
7443 aros_flavour="emulcompat"
7444 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
7445 gcc_target_cpu="mc68000"
7447 *i?86*)
7448 aros_target_cpu="i386"
7449 aros_object_format="elf_i386"
7450 aros_flavour="emulation"
7451 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
7452 aros_default_wbdepth=8
7453 gcc_target_cpu="i386"
7456 as_fn_error "\"Unknown CPU for NetBSD -- $target_cpu\"" "$LINENO" 5
7458 esac
7459 aros_target_genmap="-Wl,-M -Xlinker >"
7460 aros_flavour="emulation"
7461 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7464 openbsd*)
7465 aros_target_arch="openbsd"
7466 aros_target_family="unix"
7467 case "$target_cpu" in
7468 *i?86*)
7469 aros_target_cpu="i386"
7470 aros_object_format="elf_i386"
7471 aros_flavour="emulation"
7472 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
7473 gcc_target_cpu="i386"
7476 as_fn_error "\"Unknown CPU for OpenBSD -- $target_cpu\"" "$LINENO" 5
7478 esac
7479 aros_target_genmap="-Wl,-M -Xlinker >"
7480 aros_target_nm_flags="-u"
7481 aros_flavour="emulation"
7484 solaris*)
7485 aros_target_arch="solaris"
7486 aros_target_family="unix"
7487 case "$target_cpu" in
7488 *i?86*)
7489 aros_target_cpu="i386"
7490 aros_object_format="elf_i386"
7491 aros_flavour="emulation"
7492 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
7493 aros_default_wbdepth=8
7494 gcc_target_cpu="i386"
7496 *sparc*)
7497 aros_target_cpu="sparc"
7498 aros_object_format="elf_sparc"
7499 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
7500 gcc_target_cpu="sparc"
7503 as_fn_error "\"Unknown CPU for Solaris -- $target_cpu\"" "$LINENO" 5
7505 esac
7506 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
7507 aros_flavour="emulation"
7510 morphos*)
7511 aros_target_arch="morphos"
7512 aros_shared_default="no"
7513 aros_target_cpu="ppc"
7514 aros_object_format="elf_ppc"
7515 aros_flavour="nativecompat"
7516 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7517 gcc_target_cpu="ppc"
7520 sam440)
7521 aros_target_arch="sam440"
7522 aros_shared_default="no"
7523 aros_target_cpu="ppc"
7524 aros_object_format="elf32ppc"
7525 aros_flavour="ppcnative"
7526 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7527 aros_kernel_ldflags=""
7528 aros_default_wbwidth=1024
7529 aros_default_wbheight=768
7530 aros_default_wbdepth=24
7531 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
7532 gcc_target_cpu="powerpc"
7535 efika)
7536 aros_target_arch="efika"
7537 aros_shared_default="no"
7538 aros_target_cpu="arm"
7539 aros_object_format="armelf_linux_eabi"
7540 aros_flavour="standalone"
7541 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7542 aros_kernel_ldflags=""
7543 aros_default_wbwidth=1024
7544 aros_default_wbheight=600
7545 aros_arch_libs="-laeabi"
7546 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"
7547 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"
7550 chrp)
7551 aros_target_arch="chrp"
7552 aros_shared_default="no"
7553 aros_target_cpu="ppc"
7554 aros_object_format="elf32ppc"
7555 aros_flavour="ppcnative"
7556 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
7557 aros_kernel_ldflags=""
7558 aros_default_wbwidth=640
7559 aros_default_wbheight=480
7560 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
7561 gcc_target_cpu="powerpc"
7562 case "$aros_target_variant" in
7563 efika)
7564 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
7566 esac
7569 amiga*)
7570 aros_target_arch="amiga"
7571 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
7572 aros_shared_default="no"
7574 case "$target_cpu" in
7575 *m68k*)
7576 aros_enable_mmu=no
7577 aros_target_cpu="m68k"
7578 aros_object_format="m68kelf"
7579 aros_flavour="standcompat"
7580 gcc_target_cpu="m68000"
7581 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -DAROS_DOS_PACKETS"
7582 aros_config_aflags="$aros_config_aflags -g3 -${gcc_target_cpu}"
7583 aros_paranoia_cflags="$aros_paranoia_cflags -Wno-volatile-register-var"
7584 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
7585 target_tool_prefix="m68k-elf-"
7586 # Needed to get the correct multilib
7587 aros_config_ldflags="-${gcc_target_cpu}"
7588 aros_debug_ldflags="-${gcc_target_cpu}"
7589 aros_shared_ldflags="-${gcc_target_cpu}"
7590 aros_kernel_ldflags="-${gcc_target_cpu}"
7591 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
7592 aros_target_strip_flags="-R.comment --strip-debug"
7593 aros_default_wbwidth=640
7594 aros_default_wbheight=256
7596 *ppc*)
7597 aros_cpu="ppc"
7598 aros_flavour="native"
7599 gcc_target_cpu="ppc"
7602 as_fn_error "\"Unknown CPU for Amiga $target_cpu\"" "$LINENO" 5
7604 esac
7607 mingw*)
7608 aros_target_arch="mingw32"
7609 aros_shared_default="no"
7610 aros_flavour="emulation"
7611 aros_shared_cflags=""
7612 need_dlopen="no"
7613 rescomp="windres"
7614 case "$target_cpu" in
7615 *i?86*)
7616 aros_target_cpu="i386"
7617 aros_object_format="elf_i386"
7618 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
7619 aros_default_wbdepth=8
7620 gcc_target_cpu="i386"
7621 aros_target_cc="i386-aros-gcc"
7622 aros_target_cxx="i386-aros-g++"
7623 aros_target_ld="i386-aros-ld"
7624 aros_target_as="i386-aros-as"
7625 aros_target_ar="i386-aros-ar"
7626 aros_target_ranlib="i386-aros-ranlib"
7627 aros_target_nm="i386-aros-nm"
7628 aros_target_strip="i386-aros-strip"
7629 aros_target_objcopy="i386-aros-objcopy"
7630 aros_target_objdump="i386-aros-objdump"
7631 target_tool_prefix="i386-mingw32-"
7633 *x86_64*)
7634 aros_target_cpu="x86_64"
7635 aros_object_format="elf_x86_64"
7636 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
7637 aros_default_wbdepth=8
7638 gcc_target_cpu="x86_64"
7639 aros_target_cc="x86_64-aros-gcc"
7640 aros_target_cxx="x86_64-aros-g++"
7641 aros_target_ld="x86_64-aros-ld"
7642 aros_target_as="x86_64-aros-as"
7643 aros_target_ar="x86_64-aros-ar"
7644 aros_target_ranlib="x86_64-aros-ranlib"
7645 aros_target_nm="x86_64-aros-nm"
7646 aros_target_strip="x86_64-aros-strip"
7647 aros_target_objcopy="x86_64-aros-objcopy"
7648 aros_target_objdump="x86_64-aros-objdump"
7649 target_tool_prefix="x86_64-w64-mingw32-"
7651 *arm*)
7652 aros_target_cpu="arm"
7653 aros_object_format="armelf_linux_eabi"
7654 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
7655 aros_arch_libs="-laeabi"
7656 aros_default_wbdepth=8
7657 gcc_target_cpu="arm"
7658 aros_target_cc="arm-aros-gcc"
7659 aros_target_cxx="arm-aros-g++"
7660 aros_target_ld="arm-aros-ld"
7661 aros_target_as="arm-aros-as"
7662 aros_target_ar="arm-aros-ar"
7663 aros_target_ranlib="arm-aros-ranlib"
7664 aros_target_nm="arm-aros-nm"
7665 aros_target_strip="arm-aros-strip"
7666 aros_target_objcopy="arm-aros-objcopy"
7667 aros_target_objdump="arm-aros-objdump"
7668 target_tool_prefix="arm-mingw32ce-"
7669 aros_default_wbwidth=160
7670 aros_default_wbheight=160
7673 as_fn_error "\"Unknown CPU for Mingw32 -- $target_cpu\"" "$LINENO" 5
7675 esac
7676 if test $host_os = "cygwin"; then
7677 aros_kernel_cflags="-mno-cygwin"
7680 pp*)
7681 aros_target_arch="pp"
7682 aros_shared_default="no"
7683 case "$target_cpu" in
7684 *m68k*)
7685 aros_target_cpu="m68k"
7686 aros_object_format="m68kelf"
7687 aros_flavour="palmnative"
7688 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7689 aros_default_wbwidth=160
7690 aros_default_wbheight=160
7691 aros_default_wbdepth=1
7692 aros_target_ar_flags="cru"
7693 aros_compiler_libs="-lgcc1"
7694 aros_shared_default=no
7695 aros_shared_cflags="-fpic"
7696 aros_shared_aflags=""
7697 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7698 aros_kernel_ldflags="-Wl,-rpath,./lib"
7699 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
7700 aros_debug_aflags=""
7701 aros_debug_ldflags="$aros_symbols_debug"
7702 aros_mungwall_debug="0"
7703 aros_modules_debug="0"
7704 gcc_target_cpu="mc68000"
7705 ignore_undefined_symbols="-ius"
7708 as_fn_error "\"Unknown CPU for PalmPilot -- $target_cpu\"" "$LINENO" 5
7710 esac
7713 mac*)
7714 aros_target_arch="mac"
7715 aros_shared_default="no"
7716 case "$target_cpu" in
7717 *m68k*)
7718 aros_target_cpu="m68k"
7719 aros_object_format="m68kelf"
7720 aros_flavour="mac68knative"
7721 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
7722 aros_default_wbwidth=512
7723 aros_default_wbheight=384
7724 aros_default_wbdepth=8
7725 aros_target_ar_flags="cru"
7726 aros_compiler_libs="-lgcc1"
7727 aros_shared_default=no
7728 aros_shared_cflags="-fpic"
7729 aros_shared_aflags=""
7730 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7731 aros_kernel_ldflags="-Wl,-rpath,./lib"
7732 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
7733 aros_debug_aflags=""
7734 aros_debug_ldflags="$aros_symbols_debug"
7735 aros_mungwall_debug="0"
7736 aros_modules_debug="0"
7737 gcc_target_cpu="mc68000"
7738 ignore_undefined_symbols="-ius"
7741 as_fn_error "\"Unknown CPU for Mac68k -- $target_cpu\"" "$LINENO" 5
7743 esac
7747 as_fn_error "Unsupported target architecture $target" "$LINENO" 5
7749 esac
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Where to download sourcecode for external ports" >&5
7752 $as_echo_n "checking Where to download sourcecode for external ports... " >&6; }
7754 # Check whether --with-portssources was given.
7755 if test "${with_portssources+set}" = set; then :
7756 withval=$with_portssources; with_portssrcdir=$withval
7757 else
7758 with_portssrcdir="default"
7761 if test "$with_portssrcdir" = "default"; then
7762 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
7763 else
7764 AROS_PORTSSRCDIR="$with_portssrcdir"
7766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AROS_PORTSSRCDIR" >&5
7767 $as_echo "$AROS_PORTSSRCDIR" >&6; }
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which bootloader to use" >&5
7770 $as_echo_n "checking which bootloader to use... " >&6; }
7772 # Check whether --with-bootloader was given.
7773 if test "${with_bootloader+set}" = set; then :
7774 withval=$with_bootloader; target_bootloader=$withval
7775 else
7776 target_bootloader=$target_bootloader
7779 if test "$target_bootloader" = "none"; then
7780 aros_target_bootloader=""
7781 else
7782 aros_target_bootloader="$target_bootloader"
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_bootloader" >&5
7785 $as_echo "$target_bootloader" >&6; }
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icon-set to use" >&5
7788 $as_echo_n "checking which icon-set to use... " >&6; }
7790 # Check whether --with-iconset was given.
7791 if test "${with_iconset+set}" = set; then :
7792 withval=$with_iconset; target_iconset=$withval
7793 else
7794 target_iconset="default"
7797 if test "$target_iconset" = "default"; then
7798 aros_target_iconset="Gorilla"
7799 target_iconset="default (Gorilla)"
7800 else
7801 aros_target_iconset="$target_iconset"
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $target_iconset" >&5
7804 $as_echo "$target_iconset" >&6; }
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which GUI Theme to use" >&5
7807 $as_echo_n "checking which GUI Theme to use... " >&6; }
7809 # Check whether --with-theme was given.
7810 if test "${with_theme+set}" = set; then :
7811 withval=$with_theme; target_guitheme=$withval
7812 else
7813 target_guitheme="default"
7816 if test "$target_guitheme" = "default"; then
7817 aros_target_guitheme="Ice"
7818 else
7819 aros_target_guitheme="$target_guitheme"
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_guitheme" >&5
7822 $as_echo "$aros_target_guitheme" >&6; }
7824 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
7825 # for target code)
7826 cross_compiling=no
7827 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
7828 cross_compiling=yes
7830 if test "$aros_host_cpu" == "x86_64" ; then
7831 if test "$aros_target_cpu" == "i386" ; then
7832 if test "$aros_target_arch" != "mingw32"; then
7833 cross_compiling=no
7837 if test "$aros_host_arch" == "darwin" ; then
7838 if test "$aros_target_arch" != "darwin" ; then
7839 cross_compiling=yes
7843 # Set prefix for target compiler etc. if we're cross-compiling
7844 # (should possibly be earlier but needs to be after AC_PROG_CC)
7845 if test "$cross_compiling" = "yes" ; then
7846 if test "$target_tool_prefix" = ""; then
7847 target_tool_prefix=${target_cpu}-elf-
7849 CC=${target_tool_prefix}gcc
7850 CPP=${target_tool_prefix}cpp
7851 if test "$target_tool_version" != "default"; then
7852 CC="$CC-$target_tool_version"
7853 CPP="$CC-$target_tool_version"
7855 # Extract the first word of "$CC", so it can be a program name with args.
7856 set dummy $CC; ac_word=$2
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858 $as_echo_n "checking for $ac_word... " >&6; }
7859 if test "${ac_cv_path_CC+set}" = set; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 case $CC in
7863 [\\/]* | ?:[\\/]*)
7864 ac_cv_path_CC="$CC" # Let the user override the test with a path.
7867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 for as_dir in $PATH
7870 IFS=$as_save_IFS
7871 test -z "$as_dir" && as_dir=.
7872 for ac_exec_ext in '' $ac_executable_extensions; do
7873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
7875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7876 break 2
7878 done
7879 done
7880 IFS=$as_save_IFS
7883 esac
7885 CC=$ac_cv_path_CC
7886 if test -n "$CC"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7888 $as_echo "$CC" >&6; }
7889 else
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7895 if test "$CC" = ""; then
7896 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
7899 CC="$CC $target_tool_flags"
7901 #-----------------------------------------------------------------------------
7903 # Disable pointer-signedness warnings if the compiler recognises the option
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7906 $as_echo_n "checking whether ${CC} accepts -Wno-pointer-sign... " >&6; }
7907 save_cflags="$CFLAGS"
7908 CFLAGS="$CFLAGS -Wno-pointer-sign"
7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h. */
7913 main ()
7917 return 0;
7919 _ACEOF
7920 if ac_fn_c_try_compile "$LINENO"; then :
7921 use_no_sign_warning="yes"
7922 else
7923 use_no_sign_warning="no"
7925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_sign_warning" >&5
7927 $as_echo "$use_no_sign_warning" >&6; }
7928 if test "x-$use_no_sign_warning" = "x-yes" ; then
7929 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
7931 CFLAGS="$save_cflags"
7933 #-----------------------------------------------------------------------------
7935 # Find all the tools we need to compile. This could be cross-compiling
7936 # though! If that is the case we use the GNU form of the target and
7937 # simply add this to the front of the binary name. This is rather simple,
7938 # but it should work under most circumstances.
7940 # The default tools are to use the same as the host, but only if the
7941 # host and target CPU are the same. With GCC this is normally enough.
7944 aros_cc_pre=""
7945 aros_shared_ld="$aros_host_ld"
7947 aros_target_mkdep="$aros_host_mkdep"
7948 aros_target_incl_def="$aros_host_incl"
7950 aros_kernel_cc="$CC"
7952 # The default tools executables to be linked to.
7953 if test "$aros_target_cc" != ""; then
7954 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
7955 set dummy $aros_target_cc; ac_word=$2
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957 $as_echo_n "checking for $ac_word... " >&6; }
7958 if test "${ac_cv_path_aros_target_cc+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7960 else
7961 case $aros_target_cc in
7962 [\\/]* | ?:[\\/]*)
7963 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
7966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7967 for as_dir in $PATH
7969 IFS=$as_save_IFS
7970 test -z "$as_dir" && as_dir=.
7971 for ac_exec_ext in '' $ac_executable_extensions; do
7972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7973 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
7974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 break 2
7977 done
7978 done
7979 IFS=$as_save_IFS
7982 esac
7984 aros_target_cc=$ac_cv_path_aros_target_cc
7985 if test -n "$aros_target_cc"; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc" >&5
7987 $as_echo "$aros_target_cc" >&6; }
7988 else
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7994 if test "$aros_target_cc" = ""; then
7995 as_fn_error "gcc is required to build AROS. Please install and run configure again." "$LINENO" 5
7998 if test "$aros_target_ld" != ""; then
7999 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
8000 set dummy $aros_target_ld; ac_word=$2
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002 $as_echo_n "checking for $ac_word... " >&6; }
8003 if test "${ac_cv_path_aros_target_ld+set}" = set; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 case $aros_target_ld in
8007 [\\/]* | ?:[\\/]*)
8008 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8022 done
8023 done
8024 IFS=$as_save_IFS
8027 esac
8029 aros_target_ld=$ac_cv_path_aros_target_ld
8030 if test -n "$aros_target_ld"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ld" >&5
8032 $as_echo "$aros_target_ld" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8039 if test "$aros_target_ld" = ""; then
8040 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8044 if test "$crosstools" != "yes"; then
8046 if test "$aros_target_as" = ""; then
8047 if test "$cross_compiling" = "yes" ; then
8048 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8049 set dummy ${target_tool_prefix}as; ac_word=$2
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8051 $as_echo_n "checking for $ac_word... " >&6; }
8052 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8053 $as_echo_n "(cached) " >&6
8054 else
8055 case $aros_target_as_ln in
8056 [\\/]* | ?:[\\/]*)
8057 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 for as_dir in $PATH
8063 IFS=$as_save_IFS
8064 test -z "$as_dir" && as_dir=.
8065 for ac_exec_ext in '' $ac_executable_extensions; do
8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8067 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 break 2
8071 done
8072 done
8073 IFS=$as_save_IFS
8076 esac
8078 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8079 if test -n "$aros_target_as_ln"; then
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8081 $as_echo "$aros_target_as_ln" >&6; }
8082 else
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8088 else
8089 if test "$GCC" = "yes"; then
8090 aros_gcc_as=`$CC -print-prog-name=as`
8091 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8092 set dummy `basename $aros_gcc_as`; ac_word=$2
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8094 $as_echo_n "checking for $ac_word... " >&6; }
8095 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 case $aros_target_as_ln in
8099 [\\/]* | ?:[\\/]*)
8100 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8104 for as_dir in `dirname $aros_gcc_as`
8106 IFS=$as_save_IFS
8107 test -z "$as_dir" && as_dir=.
8108 for ac_exec_ext in '' $ac_executable_extensions; do
8109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8110 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8112 break 2
8114 done
8115 done
8116 IFS=$as_save_IFS
8119 esac
8121 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8122 if test -n "$aros_target_as_ln"; then
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8124 $as_echo "$aros_target_as_ln" >&6; }
8125 else
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8127 $as_echo "no" >&6; }
8132 if test "$aros_target_as_ln" = ""; then
8133 # Extract the first word of "as", so it can be a program name with args.
8134 set dummy as; ac_word=$2
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8136 $as_echo_n "checking for $ac_word... " >&6; }
8137 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8138 $as_echo_n "(cached) " >&6
8139 else
8140 case $aros_target_as_ln in
8141 [\\/]* | ?:[\\/]*)
8142 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 for as_dir in $PATH
8148 IFS=$as_save_IFS
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8152 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 break 2
8156 done
8157 done
8158 IFS=$as_save_IFS
8161 esac
8163 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8164 if test -n "$aros_target_as_ln"; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8166 $as_echo "$aros_target_as_ln" >&6; }
8167 else
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8169 $as_echo "no" >&6; }
8175 else
8176 # Extract the first word of "$aros_target_as", so it can be a program name with args.
8177 set dummy $aros_target_as; ac_word=$2
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8179 $as_echo_n "checking for $ac_word... " >&6; }
8180 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then :
8181 $as_echo_n "(cached) " >&6
8182 else
8183 case $aros_target_as_ln in
8184 [\\/]* | ?:[\\/]*)
8185 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8195 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8199 done
8200 done
8201 IFS=$as_save_IFS
8204 esac
8206 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8207 if test -n "$aros_target_as_ln"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_as_ln" >&5
8209 $as_echo "$aros_target_as_ln" >&6; }
8210 else
8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8212 $as_echo "no" >&6; }
8218 if test "$aros_target_as_ln" = ""; then
8219 as_fn_error "as is required to build AROS. Please install and run configure again." "$LINENO" 5
8222 if test "$aros_kernel_ld" = ""; then
8223 if test "$cross_compiling" = "yes" ; then
8224 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8225 set dummy ${target_tool_prefix}ld; ac_word=$2
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227 $as_echo_n "checking for $ac_word... " >&6; }
8228 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 case $aros_kernel_ld in
8232 [\\/]* | ?:[\\/]*)
8233 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 for as_dir in $PATH
8239 IFS=$as_save_IFS
8240 test -z "$as_dir" && as_dir=.
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8245 break 2
8247 done
8248 done
8249 IFS=$as_save_IFS
8252 esac
8254 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8255 if test -n "$aros_kernel_ld"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8257 $as_echo "$aros_kernel_ld" >&6; }
8258 else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8264 else
8265 if test "$GCC" = "yes"; then
8266 aros_gcc_ld=`$CC -print-prog-name=ld`
8267 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8268 set dummy `basename $aros_gcc_ld`; ac_word=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
8273 else
8274 case $aros_kernel_ld in
8275 [\\/]* | ?:[\\/]*)
8276 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8280 for as_dir in `dirname $aros_gcc_ld`
8282 IFS=$as_save_IFS
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8286 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8288 break 2
8290 done
8291 done
8292 IFS=$as_save_IFS
8295 esac
8297 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8298 if test -n "$aros_kernel_ld"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8300 $as_echo "$aros_kernel_ld" >&6; }
8301 else
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8308 if test "$aros_kernel_ld" = ""; then
8309 # Extract the first word of "ld", so it can be a program name with args.
8310 set dummy ld; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8315 else
8316 case $aros_kernel_ld in
8317 [\\/]* | ?:[\\/]*)
8318 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8322 for as_dir in $PATH
8324 IFS=$as_save_IFS
8325 test -z "$as_dir" && as_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8328 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 break 2
8332 done
8333 done
8334 IFS=$as_save_IFS
8337 esac
8339 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8340 if test -n "$aros_kernel_ld"; then
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8342 $as_echo "$aros_kernel_ld" >&6; }
8343 else
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345 $as_echo "no" >&6; }
8351 else
8352 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
8353 set dummy $aros_kernel_ld; ac_word=$2
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355 $as_echo_n "checking for $ac_word... " >&6; }
8356 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 case $aros_kernel_ld in
8360 [\\/]* | ?:[\\/]*)
8361 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8375 done
8376 done
8377 IFS=$as_save_IFS
8380 esac
8382 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8383 if test -n "$aros_kernel_ld"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_ld" >&5
8385 $as_echo "$aros_kernel_ld" >&6; }
8386 else
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8394 if test "$aros_kernel_ld" = ""; then
8395 as_fn_error "ld is required to build AROS. Please install and run configure again." "$LINENO" 5
8398 if test "$aros_target_ar" = ""; then
8399 if test "$cross_compiling" = "yes" ; then
8400 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8401 set dummy ${target_tool_prefix}ar; ac_word=$2
8402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8403 $as_echo_n "checking for $ac_word... " >&6; }
8404 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8405 $as_echo_n "(cached) " >&6
8406 else
8407 case $aros_target_ar_ln in
8408 [\\/]* | ?:[\\/]*)
8409 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8413 for as_dir in $PATH
8415 IFS=$as_save_IFS
8416 test -z "$as_dir" && as_dir=.
8417 for ac_exec_ext in '' $ac_executable_extensions; do
8418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8419 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8421 break 2
8423 done
8424 done
8425 IFS=$as_save_IFS
8428 esac
8430 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8431 if test -n "$aros_target_ar_ln"; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8433 $as_echo "$aros_target_ar_ln" >&6; }
8434 else
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436 $as_echo "no" >&6; }
8440 else
8441 if test "$GCC" = "yes"; then
8442 aros_gcc_ar=`$CC -print-prog-name=ar`
8443 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8444 set dummy `basename $aros_gcc_ar`; ac_word=$2
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8446 $as_echo_n "checking for $ac_word... " >&6; }
8447 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8448 $as_echo_n "(cached) " >&6
8449 else
8450 case $aros_target_ar_ln in
8451 [\\/]* | ?:[\\/]*)
8452 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8456 for as_dir in `dirname $aros_gcc_ar`
8458 IFS=$as_save_IFS
8459 test -z "$as_dir" && as_dir=.
8460 for ac_exec_ext in '' $ac_executable_extensions; do
8461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8462 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 break 2
8466 done
8467 done
8468 IFS=$as_save_IFS
8471 esac
8473 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8474 if test -n "$aros_target_ar_ln"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8476 $as_echo "$aros_target_ar_ln" >&6; }
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8484 if test "$aros_target_ar_ln" = ""; then
8485 # Extract the first word of "ar", so it can be a program name with args.
8486 set dummy ar; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 case $aros_target_ar_ln in
8493 [\\/]* | ?:[\\/]*)
8494 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8500 IFS=$as_save_IFS
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8504 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 break 2
8508 done
8509 done
8510 IFS=$as_save_IFS
8513 esac
8515 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8516 if test -n "$aros_target_ar_ln"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8518 $as_echo "$aros_target_ar_ln" >&6; }
8519 else
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8527 else
8528 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
8529 set dummy $aros_target_ar; ac_word=$2
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8531 $as_echo_n "checking for $ac_word... " >&6; }
8532 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then :
8533 $as_echo_n "(cached) " >&6
8534 else
8535 case $aros_target_ar_ln in
8536 [\\/]* | ?:[\\/]*)
8537 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8541 for as_dir in $PATH
8543 IFS=$as_save_IFS
8544 test -z "$as_dir" && as_dir=.
8545 for ac_exec_ext in '' $ac_executable_extensions; do
8546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8547 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8549 break 2
8551 done
8552 done
8553 IFS=$as_save_IFS
8556 esac
8558 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8559 if test -n "$aros_target_ar_ln"; then
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ar_ln" >&5
8561 $as_echo "$aros_target_ar_ln" >&6; }
8562 else
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8564 $as_echo "no" >&6; }
8570 if test "$aros_target_ar_ln" = ""; then
8571 as_fn_error "ar is required to build AROS. Please install and run configure again." "$LINENO" 5
8574 if test "$aros_target_nm" = ""; then
8575 if test "$cross_compiling" = "yes" ; then
8576 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8577 set dummy ${target_tool_prefix}nm; ac_word=$2
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8579 $as_echo_n "checking for $ac_word... " >&6; }
8580 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8581 $as_echo_n "(cached) " >&6
8582 else
8583 case $aros_target_nm_ln in
8584 [\\/]* | ?:[\\/]*)
8585 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8589 for as_dir in $PATH
8591 IFS=$as_save_IFS
8592 test -z "$as_dir" && as_dir=.
8593 for ac_exec_ext in '' $ac_executable_extensions; do
8594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8595 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8597 break 2
8599 done
8600 done
8601 IFS=$as_save_IFS
8604 esac
8606 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8607 if test -n "$aros_target_nm_ln"; then
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8609 $as_echo "$aros_target_nm_ln" >&6; }
8610 else
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 $as_echo "no" >&6; }
8616 else
8617 if test "$GCC" = "yes"; then
8618 aros_gcc_nm=`$CC -print-prog-name=nm`
8619 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8620 set dummy `basename $aros_gcc_nm`; ac_word=$2
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8622 $as_echo_n "checking for $ac_word... " >&6; }
8623 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8624 $as_echo_n "(cached) " >&6
8625 else
8626 case $aros_target_nm_ln in
8627 [\\/]* | ?:[\\/]*)
8628 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8632 for as_dir in `dirname $aros_gcc_nm`
8634 IFS=$as_save_IFS
8635 test -z "$as_dir" && as_dir=.
8636 for ac_exec_ext in '' $ac_executable_extensions; do
8637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8638 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8640 break 2
8642 done
8643 done
8644 IFS=$as_save_IFS
8647 esac
8649 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8650 if test -n "$aros_target_nm_ln"; then
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8652 $as_echo "$aros_target_nm_ln" >&6; }
8653 else
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8655 $as_echo "no" >&6; }
8660 if test "$aros_target_nm_ln" = ""; then
8661 # Extract the first word of "nm", so it can be a program name with args.
8662 set dummy nm; ac_word=$2
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8664 $as_echo_n "checking for $ac_word... " >&6; }
8665 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8666 $as_echo_n "(cached) " >&6
8667 else
8668 case $aros_target_nm_ln in
8669 [\\/]* | ?:[\\/]*)
8670 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8674 for as_dir in $PATH
8676 IFS=$as_save_IFS
8677 test -z "$as_dir" && as_dir=.
8678 for ac_exec_ext in '' $ac_executable_extensions; do
8679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8680 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8682 break 2
8684 done
8685 done
8686 IFS=$as_save_IFS
8689 esac
8691 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8692 if test -n "$aros_target_nm_ln"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8694 $as_echo "$aros_target_nm_ln" >&6; }
8695 else
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8703 else
8704 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
8705 set dummy $aros_target_nm; ac_word=$2
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707 $as_echo_n "checking for $ac_word... " >&6; }
8708 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then :
8709 $as_echo_n "(cached) " >&6
8710 else
8711 case $aros_target_nm_ln in
8712 [\\/]* | ?:[\\/]*)
8713 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8717 for as_dir in $PATH
8719 IFS=$as_save_IFS
8720 test -z "$as_dir" && as_dir=.
8721 for ac_exec_ext in '' $ac_executable_extensions; do
8722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8723 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8725 break 2
8727 done
8728 done
8729 IFS=$as_save_IFS
8732 esac
8734 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8735 if test -n "$aros_target_nm_ln"; then
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_nm_ln" >&5
8737 $as_echo "$aros_target_nm_ln" >&6; }
8738 else
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8740 $as_echo "no" >&6; }
8746 if test "$aros_target_nm_ln" = ""; then
8747 as_fn_error "nm is required to build AROS. Please install and run configure again." "$LINENO" 5
8750 if test "$aros_target_objcopy" = ""; then
8751 if test "$cross_compiling" = "yes" ; then
8752 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
8753 set dummy ${target_tool_prefix}objcopy; ac_word=$2
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8755 $as_echo_n "checking for $ac_word... " >&6; }
8756 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8757 $as_echo_n "(cached) " >&6
8758 else
8759 case $aros_target_objcopy_ln in
8760 [\\/]* | ?:[\\/]*)
8761 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8765 for as_dir in $PATH
8767 IFS=$as_save_IFS
8768 test -z "$as_dir" && as_dir=.
8769 for ac_exec_ext in '' $ac_executable_extensions; do
8770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8771 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8773 break 2
8775 done
8776 done
8777 IFS=$as_save_IFS
8780 esac
8782 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8783 if test -n "$aros_target_objcopy_ln"; then
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8785 $as_echo "$aros_target_objcopy_ln" >&6; }
8786 else
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8788 $as_echo "no" >&6; }
8792 else
8793 if test "$GCC" = "yes"; then
8794 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
8795 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
8796 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8798 $as_echo_n "checking for $ac_word... " >&6; }
8799 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 case $aros_target_objcopy_ln in
8803 [\\/]* | ?:[\\/]*)
8804 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8808 for as_dir in `dirname $aros_gcc_objcopy`
8810 IFS=$as_save_IFS
8811 test -z "$as_dir" && as_dir=.
8812 for ac_exec_ext in '' $ac_executable_extensions; do
8813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8814 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8816 break 2
8818 done
8819 done
8820 IFS=$as_save_IFS
8823 esac
8825 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8826 if test -n "$aros_target_objcopy_ln"; then
8827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8828 $as_echo "$aros_target_objcopy_ln" >&6; }
8829 else
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8831 $as_echo "no" >&6; }
8836 if test "$aros_target_objcopy_ln" = ""; then
8837 # Extract the first word of "objcopy", so it can be a program name with args.
8838 set dummy objcopy; ac_word=$2
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8840 $as_echo_n "checking for $ac_word... " >&6; }
8841 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8842 $as_echo_n "(cached) " >&6
8843 else
8844 case $aros_target_objcopy_ln in
8845 [\\/]* | ?:[\\/]*)
8846 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8850 for as_dir in $PATH
8852 IFS=$as_save_IFS
8853 test -z "$as_dir" && as_dir=.
8854 for ac_exec_ext in '' $ac_executable_extensions; do
8855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8856 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8858 break 2
8860 done
8861 done
8862 IFS=$as_save_IFS
8865 esac
8867 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8868 if test -n "$aros_target_objcopy_ln"; then
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8870 $as_echo "$aros_target_objcopy_ln" >&6; }
8871 else
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8873 $as_echo "no" >&6; }
8879 else
8880 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
8881 set dummy $aros_target_objcopy; ac_word=$2
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8883 $as_echo_n "checking for $ac_word... " >&6; }
8884 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 case $aros_target_objcopy_ln in
8888 [\\/]* | ?:[\\/]*)
8889 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
8892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8893 for as_dir in $PATH
8895 IFS=$as_save_IFS
8896 test -z "$as_dir" && as_dir=.
8897 for ac_exec_ext in '' $ac_executable_extensions; do
8898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8899 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
8900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8901 break 2
8903 done
8904 done
8905 IFS=$as_save_IFS
8908 esac
8910 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
8911 if test -n "$aros_target_objcopy_ln"; then
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objcopy_ln" >&5
8913 $as_echo "$aros_target_objcopy_ln" >&6; }
8914 else
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8916 $as_echo "no" >&6; }
8922 if test "$aros_target_objcopy_ln" = ""; then
8923 as_fn_error "objcopy is required to build AROS. Please install and run configure again." "$LINENO" 5
8926 if test "$aros_target_objdump" = ""; then
8927 if test "$cross_compiling" = "yes" ; then
8928 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
8929 set dummy ${target_tool_prefix}objdump; ac_word=$2
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8931 $as_echo_n "checking for $ac_word... " >&6; }
8932 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8933 $as_echo_n "(cached) " >&6
8934 else
8935 case $aros_target_objdump_ln in
8936 [\\/]* | ?:[\\/]*)
8937 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8941 for as_dir in $PATH
8943 IFS=$as_save_IFS
8944 test -z "$as_dir" && as_dir=.
8945 for ac_exec_ext in '' $ac_executable_extensions; do
8946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8947 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8949 break 2
8951 done
8952 done
8953 IFS=$as_save_IFS
8956 esac
8958 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
8959 if test -n "$aros_target_objdump_ln"; then
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
8961 $as_echo "$aros_target_objdump_ln" >&6; }
8962 else
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8964 $as_echo "no" >&6; }
8968 else
8969 if test "$GCC" = "yes"; then
8970 aros_gcc_objdump=`$CC -print-prog-name=objdump`
8971 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
8972 set dummy `basename $aros_gcc_objdump`; ac_word=$2
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8974 $as_echo_n "checking for $ac_word... " >&6; }
8975 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
8976 $as_echo_n "(cached) " >&6
8977 else
8978 case $aros_target_objdump_ln in
8979 [\\/]* | ?:[\\/]*)
8980 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
8983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8984 for as_dir in `dirname $aros_gcc_objdump`
8986 IFS=$as_save_IFS
8987 test -z "$as_dir" && as_dir=.
8988 for ac_exec_ext in '' $ac_executable_extensions; do
8989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8990 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
8991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8992 break 2
8994 done
8995 done
8996 IFS=$as_save_IFS
8999 esac
9001 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9002 if test -n "$aros_target_objdump_ln"; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9004 $as_echo "$aros_target_objdump_ln" >&6; }
9005 else
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9012 if test "$aros_target_objdump_ln" = ""; then
9013 # Extract the first word of "objdump", so it can be a program name with args.
9014 set dummy objdump; ac_word=$2
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9016 $as_echo_n "checking for $ac_word... " >&6; }
9017 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9018 $as_echo_n "(cached) " >&6
9019 else
9020 case $aros_target_objdump_ln in
9021 [\\/]* | ?:[\\/]*)
9022 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9026 for as_dir in $PATH
9028 IFS=$as_save_IFS
9029 test -z "$as_dir" && as_dir=.
9030 for ac_exec_ext in '' $ac_executable_extensions; do
9031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9032 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9034 break 2
9036 done
9037 done
9038 IFS=$as_save_IFS
9041 esac
9043 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9044 if test -n "$aros_target_objdump_ln"; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9046 $as_echo "$aros_target_objdump_ln" >&6; }
9047 else
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9055 else
9056 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
9057 set dummy $aros_target_objdump; ac_word=$2
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9059 $as_echo_n "checking for $ac_word... " >&6; }
9060 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then :
9061 $as_echo_n "(cached) " >&6
9062 else
9063 case $aros_target_objdump_ln in
9064 [\\/]* | ?:[\\/]*)
9065 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069 for as_dir in $PATH
9071 IFS=$as_save_IFS
9072 test -z "$as_dir" && as_dir=.
9073 for ac_exec_ext in '' $ac_executable_extensions; do
9074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9075 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9077 break 2
9079 done
9080 done
9081 IFS=$as_save_IFS
9084 esac
9086 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9087 if test -n "$aros_target_objdump_ln"; then
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_objdump_ln" >&5
9089 $as_echo "$aros_target_objdump_ln" >&6; }
9090 else
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9092 $as_echo "no" >&6; }
9098 if test "$aros_target_objdump_ln" = ""; then
9099 as_fn_error "objdump is required to build AROS. Please install and run configure again." "$LINENO" 5
9102 if test "$aros_target_ranlib" = ""; then
9103 if test "$cross_compiling" = "yes" ; then
9104 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9105 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9107 $as_echo_n "checking for $ac_word... " >&6; }
9108 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 case $aros_target_ranlib_ln in
9112 [\\/]* | ?:[\\/]*)
9113 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9117 for as_dir in $PATH
9119 IFS=$as_save_IFS
9120 test -z "$as_dir" && as_dir=.
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9123 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9125 break 2
9127 done
9128 done
9129 IFS=$as_save_IFS
9132 esac
9134 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9135 if test -n "$aros_target_ranlib_ln"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9137 $as_echo "$aros_target_ranlib_ln" >&6; }
9138 else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9144 else
9145 if test "$GCC" = "yes"; then
9146 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9147 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9148 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9150 $as_echo_n "checking for $ac_word... " >&6; }
9151 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9152 $as_echo_n "(cached) " >&6
9153 else
9154 case $aros_target_ranlib_ln in
9155 [\\/]* | ?:[\\/]*)
9156 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9160 for as_dir in `dirname $aros_gcc_ranlib`
9162 IFS=$as_save_IFS
9163 test -z "$as_dir" && as_dir=.
9164 for ac_exec_ext in '' $ac_executable_extensions; do
9165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9166 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9168 break 2
9170 done
9171 done
9172 IFS=$as_save_IFS
9175 esac
9177 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9178 if test -n "$aros_target_ranlib_ln"; then
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9180 $as_echo "$aros_target_ranlib_ln" >&6; }
9181 else
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9183 $as_echo "no" >&6; }
9188 if test "$aros_target_ranlib_ln" = ""; then
9189 # Extract the first word of "ranlib", so it can be a program name with args.
9190 set dummy ranlib; ac_word=$2
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9192 $as_echo_n "checking for $ac_word... " >&6; }
9193 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9194 $as_echo_n "(cached) " >&6
9195 else
9196 case $aros_target_ranlib_ln in
9197 [\\/]* | ?:[\\/]*)
9198 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9202 for as_dir in $PATH
9204 IFS=$as_save_IFS
9205 test -z "$as_dir" && as_dir=.
9206 for ac_exec_ext in '' $ac_executable_extensions; do
9207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9208 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9210 break 2
9212 done
9213 done
9214 IFS=$as_save_IFS
9217 esac
9219 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9220 if test -n "$aros_target_ranlib_ln"; then
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9222 $as_echo "$aros_target_ranlib_ln" >&6; }
9223 else
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9225 $as_echo "no" >&6; }
9231 else
9232 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
9233 set dummy $aros_target_ranlib; ac_word=$2
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9235 $as_echo_n "checking for $ac_word... " >&6; }
9236 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then :
9237 $as_echo_n "(cached) " >&6
9238 else
9239 case $aros_target_ranlib_ln in
9240 [\\/]* | ?:[\\/]*)
9241 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9245 for as_dir in $PATH
9247 IFS=$as_save_IFS
9248 test -z "$as_dir" && as_dir=.
9249 for ac_exec_ext in '' $ac_executable_extensions; do
9250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9251 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 break 2
9255 done
9256 done
9257 IFS=$as_save_IFS
9260 esac
9262 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9263 if test -n "$aros_target_ranlib_ln"; then
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_ranlib_ln" >&5
9265 $as_echo "$aros_target_ranlib_ln" >&6; }
9266 else
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268 $as_echo "no" >&6; }
9274 if test "$aros_target_ranlib_ln" = ""; then
9275 as_fn_error "ranlib is required to build AROS. Please install and run configure again." "$LINENO" 5
9278 if test "$aros_target_strip" = ""; then
9279 if test "$cross_compiling" = "yes" ; then
9280 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9281 set dummy ${target_tool_prefix}strip; ac_word=$2
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9283 $as_echo_n "checking for $ac_word... " >&6; }
9284 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9285 $as_echo_n "(cached) " >&6
9286 else
9287 case $aros_target_strip_ln in
9288 [\\/]* | ?:[\\/]*)
9289 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 for as_dir in $PATH
9295 IFS=$as_save_IFS
9296 test -z "$as_dir" && as_dir=.
9297 for ac_exec_ext in '' $ac_executable_extensions; do
9298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9299 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9301 break 2
9303 done
9304 done
9305 IFS=$as_save_IFS
9308 esac
9310 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9311 if test -n "$aros_target_strip_ln"; then
9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9313 $as_echo "$aros_target_strip_ln" >&6; }
9314 else
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9316 $as_echo "no" >&6; }
9320 else
9321 if test "$GCC" = "yes"; then
9322 aros_gcc_strip=`$CC -print-prog-name=strip`
9323 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9324 set dummy `basename $aros_gcc_strip`; ac_word=$2
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9326 $as_echo_n "checking for $ac_word... " >&6; }
9327 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9328 $as_echo_n "(cached) " >&6
9329 else
9330 case $aros_target_strip_ln in
9331 [\\/]* | ?:[\\/]*)
9332 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336 for as_dir in `dirname $aros_gcc_strip`
9338 IFS=$as_save_IFS
9339 test -z "$as_dir" && as_dir=.
9340 for ac_exec_ext in '' $ac_executable_extensions; do
9341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9342 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9344 break 2
9346 done
9347 done
9348 IFS=$as_save_IFS
9351 esac
9353 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9354 if test -n "$aros_target_strip_ln"; then
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9356 $as_echo "$aros_target_strip_ln" >&6; }
9357 else
9358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9359 $as_echo "no" >&6; }
9364 if test "$aros_target_strip_ln" = ""; then
9365 # Extract the first word of "strip", so it can be a program name with args.
9366 set dummy strip; ac_word=$2
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9368 $as_echo_n "checking for $ac_word... " >&6; }
9369 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9370 $as_echo_n "(cached) " >&6
9371 else
9372 case $aros_target_strip_ln in
9373 [\\/]* | ?:[\\/]*)
9374 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378 for as_dir in $PATH
9380 IFS=$as_save_IFS
9381 test -z "$as_dir" && as_dir=.
9382 for ac_exec_ext in '' $ac_executable_extensions; do
9383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9384 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9386 break 2
9388 done
9389 done
9390 IFS=$as_save_IFS
9393 esac
9395 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9396 if test -n "$aros_target_strip_ln"; then
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9398 $as_echo "$aros_target_strip_ln" >&6; }
9399 else
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9401 $as_echo "no" >&6; }
9407 else
9408 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
9409 set dummy $aros_target_strip; ac_word=$2
9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9411 $as_echo_n "checking for $ac_word... " >&6; }
9412 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then :
9413 $as_echo_n "(cached) " >&6
9414 else
9415 case $aros_target_strip_ln in
9416 [\\/]* | ?:[\\/]*)
9417 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9421 for as_dir in $PATH
9423 IFS=$as_save_IFS
9424 test -z "$as_dir" && as_dir=.
9425 for ac_exec_ext in '' $ac_executable_extensions; do
9426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9427 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9429 break 2
9431 done
9432 done
9433 IFS=$as_save_IFS
9436 esac
9438 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9439 if test -n "$aros_target_strip_ln"; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_strip_ln" >&5
9441 $as_echo "$aros_target_strip_ln" >&6; }
9442 else
9443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9444 $as_echo "no" >&6; }
9450 if test "$aros_target_strip_ln" = ""; then
9451 as_fn_error "strip is required to build AROS. Please install and run configure again." "$LINENO" 5
9453 if test "$aros_target_cxx" != ""; then
9454 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
9455 set dummy $aros_target_cxx; ac_word=$2
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9457 $as_echo_n "checking for $ac_word... " >&6; }
9458 if test "${ac_cv_path_aros_target_cxx+set}" = set; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 case $aros_target_cxx in
9462 [\\/]* | ?:[\\/]*)
9463 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
9466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9467 for as_dir in $PATH
9469 IFS=$as_save_IFS
9470 test -z "$as_dir" && as_dir=.
9471 for ac_exec_ext in '' $ac_executable_extensions; do
9472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9473 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
9474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9475 break 2
9477 done
9478 done
9479 IFS=$as_save_IFS
9482 esac
9484 aros_target_cxx=$ac_cv_path_aros_target_cxx
9485 if test -n "$aros_target_cxx"; then
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cxx" >&5
9487 $as_echo "$aros_target_cxx" >&6; }
9488 else
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9490 $as_echo "no" >&6; }
9494 # Temporarily disabled in order to let Mingw32-hosted nightly build to work
9495 # AROS_REQUIRED(c++,$aros_target_cxx)
9497 else
9498 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
9499 aros_target_cxx=""
9502 # Build crosstools if we have no C++ - temporary thing
9503 if test "$aros_target_cxx" = ""; then
9504 crosstools_target=tools-crosstools
9507 if test "$rescomp" != ""; then
9508 if test "$cross_compiling" = "yes" ; then
9509 rescomp=${target_tool_prefix}${rescomp}
9511 # Extract the first word of "$rescomp", so it can be a program name with args.
9512 set dummy $rescomp; ac_word=$2
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9514 $as_echo_n "checking for $ac_word... " >&6; }
9515 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then :
9516 $as_echo_n "(cached) " >&6
9517 else
9518 case $aros_kernel_rescomp in
9519 [\\/]* | ?:[\\/]*)
9520 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
9523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9524 for as_dir in $PATH
9526 IFS=$as_save_IFS
9527 test -z "$as_dir" && as_dir=.
9528 for ac_exec_ext in '' $ac_executable_extensions; do
9529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9530 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
9531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9532 break 2
9534 done
9535 done
9536 IFS=$as_save_IFS
9539 esac
9541 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
9542 if test -n "$aros_kernel_rescomp"; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_rescomp" >&5
9544 $as_echo "$aros_kernel_rescomp" >&6; }
9545 else
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9547 $as_echo "no" >&6; }
9551 if test "$aros_kernel_rescomp" = ""; then
9552 as_fn_error "$rescomp is required to build AROS. Please install and run configure again." "$LINENO" 5
9556 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9557 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9558 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9559 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9560 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9561 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9562 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9564 # aros_cc_pre is a variable that is added to the front of the compiler name
9565 # in the generated aros-gcc shell script. We need this to enable the cache
9566 # to work across cleaned builds. Also, support DISTCC using the correct
9567 # environment variable.
9570 if test "x${DISTCC}" != "x" ; then
9571 if test "x${CCACHE}" != "x" ; then
9572 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9573 else
9574 aros_cc_pre="${DISTCC} "
9576 else
9577 if test "x${CCACHE}" != "x" ; then
9578 aros_cc_pre="${CCACHE} "
9582 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9584 aros_target_nostdinc_cflags=-nostdinc
9586 aros_target_nostartup_ldflags=-nostartfiles
9588 aros_target_nix_ldflags=-nix
9590 aros_target_detach_ldflags=-detach
9592 aros_target_nostdlib_ldflags=-nostdlib
9595 # Target tools
9596 if test "$aros_target_cc" = ""; then
9597 orig_target_cc=$aros_kernel_cc
9598 else
9599 orig_target_cc=$aros_target_cc
9601 if test "$aros_target_ld" = ""; then
9602 orig_target_ld=$aros_kernel_ld
9603 else
9604 orig_target_ld=$aros_target_ld
9606 if test "$GCC" = "yes"; then
9607 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9609 aros_target_cc="${prefix}-gcc"
9610 aros_target_as="${prefix}-as"
9611 aros_target_ld="${prefix}-ld"
9612 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9613 aros_target_objcopy=${prefix}-objcopy
9614 aros_target_objdump=${prefix}-objdump
9615 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9616 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9617 aros_kernel_nm="${prefix}-nm"
9618 aros_target_strip=${prefix}-strip
9620 # Find the system include path. We can suggest that an alternative is
9621 # used if we don't get it correct. The default is to use /usr/include.
9622 # Which is set in the aros_target_incl_def variable.
9624 # Check whether --enable-includes was given.
9625 if test "${enable_includes+set}" = set; then :
9626 enableval=$enable_includes; aros_target_incl=$enable_includes
9627 else
9628 aros_target_incl=$aros_target_incl_def
9632 if test "$aros_kernel_includes" = ""; then
9633 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9634 # FIXME: for cross-compiling this should point to another location
9635 aros_kernel_includes="-isystem $aros_target_incl"
9639 if test "$aros_kernel_includes" != "" ; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the kernel compiler's include path" >&5
9641 $as_echo_n "checking for the kernel compiler's include path... " >&6; }
9642 if test "$aros_kernel_cc_includes" = "" ; then
9643 # Try to guess where the directory is.
9644 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
9645 if test -d $aros_kernel_cc_includes; then
9646 # Check if there is also an include-fixed directory and add it
9647 # to kernel compiler's include path as it may contain some of
9648 # the headers we need.
9649 if test -d "$aros_kernel_cc_includes"-fixed; then
9650 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
9652 else
9653 # The directory doesn't exist, we need to do some more work.
9654 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
9656 # These are the headers we're looking for.
9657 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9658 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9659 zutil.h"
9661 dirs=
9662 for h in $headers; do
9663 # Which other headers are needed by each of the above?
9664 deps=$(echo "#include <$h>" | \
9665 $aros_kernel_cc -E -M - 2>/dev/null | \
9666 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9668 # Copy all the needed headers to a directory beneath gendir.
9669 for d in $deps; do
9670 h=$(basename $d)
9671 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
9672 sed -n "s,^.*/include\(/.*\),\1,p")
9673 ! test -d $dir && mkdir -p $dir
9674 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9675 done
9676 done
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_kernel_cc_includes" >&5
9680 $as_echo "$aros_kernel_cc_includes" >&6; }
9681 # Adding -nostdinc to kernel includes as they are always used together.
9682 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the target compiler's include path" >&5
9686 $as_echo_n "checking for the target compiler's include path... " >&6; }
9687 if test "$aros_target_cc_includes" = "" ; then
9688 #try to guess where the directory is
9689 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
9690 if ! test -d $aros_target_cc_includes; then
9691 #the directory doesn't exist, we need to do some more work
9692 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9694 #these are the headers we're looling for
9695 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9696 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9697 zutil.h"
9699 dirs=
9700 for h in $headers; do
9701 #which other headers each of the above headers needs?
9702 deps=$(echo "#include <$h>" | \
9703 $orig_target_cc -E -M - 2>/dev/null | \
9704 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9706 #copy all the needed headers to a directory beneath gendir
9707 for d in $deps; do
9708 h=$(basename $d)
9709 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9710 sed -n "s,^.*/include\(/.*\),\1,p")
9711 ! test -d $dir && mkdir -p $dir
9712 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9713 done
9714 done
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_target_cc_includes" >&5
9718 $as_echo "$aros_target_cc_includes" >&6; }
9721 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
9722 # On GCC >= 4.0 -iquote should be used
9725 save_cc="$CC"
9726 save_cflags="$CFLAGS"
9727 CFLAGS="-iquote."
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9729 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731 /* end confdefs.h. */
9734 main ()
9738 return 0;
9740 _ACEOF
9741 if ac_fn_c_try_compile "$LINENO"; then :
9742 has_iquote="yes"
9743 else
9744 has_iquote="no"
9746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9748 $as_echo "$has_iquote" >&6; }
9749 if test "x-$has_iquote" = "x-yes" ; then
9750 host_cflags_iquote=-iquote
9751 host_cflags_iquote_end=
9752 else
9753 host_cflags_iquote=-I
9754 host_cflags_iquote_end=-I-
9756 kernel_cflags_iquote=$host_cflags_iquote
9757 kernel_cflags_iquote_end=$host_cflags_iquote_end
9758 if test "x-$cross_compiling" = "x-yes"; then
9759 CC="$aros_kernel_cc"
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fno-stack-protector" >&5
9761 $as_echo_n "checking whether ${CC} accepts -fno-stack-protector... " >&6; }
9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9763 /* end confdefs.h. */
9766 main ()
9770 return 0;
9772 _ACEOF
9773 if ac_fn_c_try_compile "$LINENO"; then :
9774 use_no_stack_protector="yes"
9775 else
9776 use_no_stack_protector="no"
9778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_no_stack_protector" >&5
9780 $as_echo "$use_no_stack_protector" >&6; }
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9782 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9787 main ()
9791 return 0;
9793 _ACEOF
9794 if ac_fn_c_try_compile "$LINENO"; then :
9795 has_iquote="yes"
9796 else
9797 has_iquote="no"
9799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9801 $as_echo "$has_iquote" >&6; }
9802 if test "x-$has_iquote" = "x-yes" ; then
9803 kernel_cflags_iquote=-iquote
9804 kernel_cflags_iquote_end=
9805 else
9806 kernel_cflags_iquote=-I
9807 kernel_cflags_iquote_end=-I-
9810 aros_cflags_iquote=$kernel_cflags_iquote
9811 aros_cflags_iquote_end=$kernel_cflags_iquote_end
9812 if test "$orig_target_cc" != "$aros_kernel_cc"; then
9813 CC="$orig_target_cc"
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -iquote" >&5
9815 $as_echo_n "checking whether ${CC} accepts -iquote... " >&6; }
9816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9817 /* end confdefs.h. */
9820 main ()
9824 return 0;
9826 _ACEOF
9827 if ac_fn_c_try_compile "$LINENO"; then :
9828 has_iquote="yes"
9829 else
9830 has_iquote="no"
9832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_iquote" >&5
9834 $as_echo "$has_iquote" >&6; }
9835 if test "x-$has_iquote" = "x-yes" ; then
9836 aros_cflags_iquote=-iquote
9837 aros_cflags_iquote_end=
9838 else
9839 aros_cflags_iquote=-I
9840 aros_cflags_iquote_end=-I-
9843 if test "x-$use_no_stack_protector" = "x-yes" ; then
9844 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
9847 #-----------------------------------------------------------------------------
9849 # Check if we can explicitly choose older version of symbol hashing
9851 CFLAGS="save_cflags -Wl,--hash-style=sysv"
9852 CC="$aros_kernel_cc"
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
9854 $as_echo_n "checking whether ${CC} accepts -Wl,--hash-style=sysv... " >&6; }
9855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9856 /* end confdefs.h. */
9859 main ()
9863 return 0;
9865 _ACEOF
9866 if ac_fn_c_try_link "$LINENO"; then :
9867 use_hash_style="yes"
9868 else
9869 use_hash_style="no"
9871 rm -f core conftest.err conftest.$ac_objext \
9872 conftest$ac_exeext conftest.$ac_ext
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_hash_style" >&5
9874 $as_echo "$use_hash_style" >&6; }
9875 if test "x-$use_hash_style" = "x-yes" ; then
9876 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
9878 CC="$save_cc"
9879 CFLAGS="$save_cflags"
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default resolution of WBScreen" >&5
9890 $as_echo_n "checking for default resolution of WBScreen... " >&6; }
9892 # Check whether --with-resolution was given.
9893 if test "${with_resolution+set}" = set; then :
9894 withval=$with_resolution; resolution=$withval
9895 else
9896 resolution=none
9899 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9900 if test "$resolution" = "yes" ; then
9901 resolution="none"
9903 if test "$resolution" = "no" ; then
9904 resolution="none"
9906 if test "$resolution" != "none" ; then
9907 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9908 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9909 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9912 $as_echo "$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
9913 aros_cv_default_wbwidth=$aros_default_wbwidth
9914 aros_cv_default_wbheight=$aros_default_wbheight
9915 aros_cv_default_wbdepth=$aros_default_wbdepth
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if serial debug is enabled" >&5
9918 $as_echo_n "checking if serial debug is enabled... " >&6; }
9920 # Check whether --with-serial-debug was given.
9921 if test "${with_serial_debug+set}" = set; then :
9922 withval=$with_serial_debug; serial_debug=$withval
9923 else
9924 serial_debug=none
9927 if test "$aros_serial_debug" = 0 ; then
9928 serial_debug_forced=""
9929 if test "$serial_debug" = "yes" ; then
9930 serial_debug="2"
9932 if test "$serial_debug" = "no" ; then
9933 serial_debug="none"
9935 else
9936 serial_debug_forced="(forced)"
9937 serial_debug=$aros_serial_debug
9939 if test "$serial_debug" != "none" ; then
9940 aros_serial_debug=$serial_debug
9941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $serial_debug_forced on port $serial_debug" >&5
9942 $as_echo "$serial_debug_forced on port $serial_debug" >&6; }
9943 else
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9945 $as_echo "no" >&6; }
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if palm debug hack is enabled" >&5
9949 $as_echo_n "checking if palm debug hack is enabled... " >&6; }
9950 # Check whether --enable-palm_debug_hack was given.
9951 if test "${enable_palm_debug_hack+set}" = set; then :
9952 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
9953 else
9954 palm_debug_hack="no"
9957 if test "$palm_debug_hack" = "yes" ; then
9958 aros_palm_debug_hack="1"
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $palm_debug_hack" >&5
9961 $as_echo "$palm_debug_hack" >&6; }
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nesting supervisor support is enabled" >&5
9965 $as_echo_n "checking if nesting supervisor support is enabled... " >&6; }
9966 # Check whether --enable-nesting_supervisor was given.
9967 if test "${enable_nesting_supervisor+set}" = set; then :
9968 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
9969 else
9970 nesting_supervisor="no"
9973 if test "$nesting_supervisor" = "yes" ; then
9974 aros_nesting_supervisor="1"
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nesting_supervisor" >&5
9977 $as_echo "$nesting_supervisor" >&6; }
9979 if test "$aros_enable_mmu" = "" ; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if MMU support is enabled" >&5
9981 $as_echo_n "checking if MMU support is enabled... " >&6; }
9982 # Check whether --enable-mmu was given.
9983 if test "${enable_mmu+set}" = set; then :
9984 enableval=$enable_mmu; aros_enable_mmu=$enableval
9985 else
9986 aros_enable_mmu="yes"
9989 if test "$aros_enable_mmu" = "" ; then
9990 aros_enable_mmu="yes"
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $aros_enable_mmu" >&5
9993 $as_echo "$aros_enable_mmu" >&6; }
9995 if test "$aros_enable_mmu" = "no" ; then
9996 aros_enable_mmu="0"
9997 else
9998 aros_enable_mmu="1"
10002 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
10004 if test "x-$need_dlopen" != "x-no" ; then
10005 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10006 if test "x$ac_cv_func_dlopen" = x""yes; then :
10007 have_dl="yes"
10008 else
10009 have_dl="no"
10012 if test "x-$have_dl" = "x-no" ; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10014 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10015 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10017 else
10018 ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-ldl $LIBS"
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021 /* end confdefs.h. */
10023 /* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
10026 #ifdef __cplusplus
10027 extern "C"
10028 #endif
10029 char dlopen ();
10031 main ()
10033 return dlopen ();
10035 return 0;
10037 _ACEOF
10038 if ac_fn_c_try_link "$LINENO"; then :
10039 ac_cv_lib_dl_dlopen=yes
10040 else
10041 ac_cv_lib_dl_dlopen=no
10043 rm -f core conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10045 LIBS=$ac_check_lib_save_LIBS
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10048 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10049 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10050 have_dl="yes"
10051 aros_host_ldflags="$aros_host_ldflags -ldl"
10052 else
10053 have_dl="no"
10057 if test "x-$have_dl" = "x-no" ; then
10058 as_fn_error "dlopen() dynamic linker functions not available" "$LINENO" 5
10063 # Check whether --enable-x11_hidd was given.
10064 if test "${enable_x11_hidd+set}" = set; then :
10065 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10066 else
10067 x11_hidd="$need_x11"
10070 case "x-$x11_hidd" in
10071 x-yes|x-no|x-auto) ;;
10072 *) x11_hidd="$need_x11" ;;
10073 esac
10075 ENABLE_X11=0
10077 if test "x-$x11_hidd" != "x-no" ; then
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
10080 $as_echo_n "checking for X... " >&6; }
10083 # Check whether --with-x was given.
10084 if test "${with_x+set}" = set; then :
10085 withval=$with_x;
10088 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10089 if test "x$with_x" = xno; then
10090 # The user explicitly disabled X.
10091 have_x=disabled
10092 else
10093 case $x_includes,$x_libraries in #(
10094 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
10095 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
10096 $as_echo_n "(cached) " >&6
10097 else
10098 # One or both of the vars are not set, and there is no cached value.
10099 ac_x_includes=no ac_x_libraries=no
10100 rm -f -r conftest.dir
10101 if mkdir conftest.dir; then
10102 cd conftest.dir
10103 cat >Imakefile <<'_ACEOF'
10104 incroot:
10105 @echo incroot='${INCROOT}'
10106 usrlibdir:
10107 @echo usrlibdir='${USRLIBDIR}'
10108 libdir:
10109 @echo libdir='${LIBDIR}'
10110 _ACEOF
10111 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10112 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10113 for ac_var in incroot usrlibdir libdir; do
10114 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10115 done
10116 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10117 for ac_extension in a so sl dylib la dll; do
10118 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10119 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10120 ac_im_usrlibdir=$ac_im_libdir; break
10122 done
10123 # Screen out bogus values from the imake configuration. They are
10124 # bogus both because they are the default anyway, and because
10125 # using them would break gcc on systems where it needs fixed includes.
10126 case $ac_im_incroot in
10127 /usr/include) ac_x_includes= ;;
10128 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10129 esac
10130 case $ac_im_usrlibdir in
10131 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
10132 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10133 esac
10135 cd ..
10136 rm -f -r conftest.dir
10139 # Standard set of common directories for X headers.
10140 # Check X11 before X11Rn because it is often a symlink to the current release.
10141 ac_x_header_dirs='
10142 /usr/X11/include
10143 /usr/X11R7/include
10144 /usr/X11R6/include
10145 /usr/X11R5/include
10146 /usr/X11R4/include
10148 /usr/include/X11
10149 /usr/include/X11R7
10150 /usr/include/X11R6
10151 /usr/include/X11R5
10152 /usr/include/X11R4
10154 /usr/local/X11/include
10155 /usr/local/X11R7/include
10156 /usr/local/X11R6/include
10157 /usr/local/X11R5/include
10158 /usr/local/X11R4/include
10160 /usr/local/include/X11
10161 /usr/local/include/X11R7
10162 /usr/local/include/X11R6
10163 /usr/local/include/X11R5
10164 /usr/local/include/X11R4
10166 /usr/X386/include
10167 /usr/x386/include
10168 /usr/XFree86/include/X11
10170 /usr/include
10171 /usr/local/include
10172 /usr/unsupported/include
10173 /usr/athena/include
10174 /usr/local/x11r5/include
10175 /usr/lpp/Xamples/include
10177 /usr/openwin/include
10178 /usr/openwin/share/include'
10180 if test "$ac_x_includes" = no; then
10181 # Guess where to find include files, by looking for Xlib.h.
10182 # First, try using that file with no special directory specified.
10183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10184 /* end confdefs.h. */
10185 #include <X11/Xlib.h>
10186 _ACEOF
10187 if ac_fn_c_try_cpp "$LINENO"; then :
10188 # We can compile using X headers with no special include directory.
10189 ac_x_includes=
10190 else
10191 for ac_dir in $ac_x_header_dirs; do
10192 if test -r "$ac_dir/X11/Xlib.h"; then
10193 ac_x_includes=$ac_dir
10194 break
10196 done
10198 rm -f conftest.err conftest.$ac_ext
10199 fi # $ac_x_includes = no
10201 if test "$ac_x_libraries" = no; then
10202 # Check for the libraries.
10203 # See if we find them without any special options.
10204 # Don't add to $LIBS permanently.
10205 ac_save_LIBS=$LIBS
10206 LIBS="-lX11 $LIBS"
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10209 #include <X11/Xlib.h>
10211 main ()
10213 XrmInitialize ()
10215 return 0;
10217 _ACEOF
10218 if ac_fn_c_try_link "$LINENO"; then :
10219 LIBS=$ac_save_LIBS
10220 # We can link X programs with no special library path.
10221 ac_x_libraries=
10222 else
10223 LIBS=$ac_save_LIBS
10224 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10226 # Don't even attempt the hair of trying to link an X program!
10227 for ac_extension in a so sl dylib la dll; do
10228 if test -r "$ac_dir/libX11.$ac_extension"; then
10229 ac_x_libraries=$ac_dir
10230 break 2
10232 done
10233 done
10235 rm -f core conftest.err conftest.$ac_objext \
10236 conftest$ac_exeext conftest.$ac_ext
10237 fi # $ac_x_libraries = no
10239 case $ac_x_includes,$ac_x_libraries in #(
10240 no,* | *,no | *\'*)
10241 # Didn't find X, or a directory has "'" in its name.
10242 ac_cv_have_x="have_x=no";; #(
10244 # Record where we found X for the cache.
10245 ac_cv_have_x="have_x=yes\
10246 ac_x_includes='$ac_x_includes'\
10247 ac_x_libraries='$ac_x_libraries'"
10248 esac
10250 ;; #(
10251 *) have_x=yes;;
10252 esac
10253 eval "$ac_cv_have_x"
10254 fi # $with_x != no
10256 if test "$have_x" != yes; then
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
10258 $as_echo "$have_x" >&6; }
10259 no_x=yes
10260 else
10261 # If each of the values was on the command line, it overrides each guess.
10262 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10263 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10264 # Update the cache value to reflect the command line values.
10265 ac_cv_have_x="have_x=yes\
10266 ac_x_includes='$x_includes'\
10267 ac_x_libraries='$x_libraries'"
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
10269 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
10273 x_cflags=
10274 for path in $x_libraries
10276 x_cflags="$x_cflags -L$path"
10277 done
10279 for path in $x_includes
10281 x_cflags="$x_cflags -I$path"
10282 done
10284 if test "x-$no_x" = "x-yes" ; then
10286 if test "x-$x11_hidd" != "x-auto" ; then
10287 as_fn_error "X11 libs/headers not found, cannot build X11 hidd as requested" "$LINENO" 5
10290 else
10291 x11_hidd_target=kernel-x11gfx-kobj
10292 ENABLE_X11=1
10294 # Check whether --enable-x11_shm was given.
10295 if test "${enable_x11_shm+set}" = set; then :
10296 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10297 else
10298 x11_hidd_shm="auto"
10301 case "x-$x11_hidd_shm" in
10302 x-yes|x-no|x-auto) ;;
10303 *) x11_hidd_shm="auto" ;;
10304 esac
10306 have_xshm=no
10308 if test "x-$x11_hidd_shm" != "x-no" ; then
10310 for ac_header in sys/ipc.h
10311 do :
10312 ac_fn_c_check_header_mongrel "$LINENO" "sys/ipc.h" "ac_cv_header_sys_ipc_h" "$ac_includes_default"
10313 if test "x$ac_cv_header_sys_ipc_h" = x""yes; then :
10314 cat >>confdefs.h <<_ACEOF
10315 #define HAVE_SYS_IPC_H 1
10316 _ACEOF
10320 done
10322 for ac_header in sys/shm.h
10323 do :
10324 ac_fn_c_check_header_mongrel "$LINENO" "sys/shm.h" "ac_cv_header_sys_shm_h" "$ac_includes_default"
10325 if test "x$ac_cv_header_sys_shm_h" = x""yes; then :
10326 cat >>confdefs.h <<_ACEOF
10327 #define HAVE_SYS_SHM_H 1
10328 _ACEOF
10332 done
10335 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10337 save_cflags="$CFLAGS"
10338 CFLAGS="$CFLAGS $x_cflags"
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
10340 $as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
10341 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
10342 $as_echo_n "(cached) " >&6
10343 else
10344 ac_check_lib_save_LIBS=$LIBS
10345 LIBS="-lXext $LIBS"
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10347 /* end confdefs.h. */
10349 /* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */
10352 #ifdef __cplusplus
10353 extern "C"
10354 #endif
10355 char XShmQueryExtension ();
10357 main ()
10359 return XShmQueryExtension ();
10361 return 0;
10363 _ACEOF
10364 if ac_fn_c_try_link "$LINENO"; then :
10365 ac_cv_lib_Xext_XShmQueryExtension=yes
10366 else
10367 ac_cv_lib_Xext_XShmQueryExtension=no
10369 rm -f core conftest.err conftest.$ac_objext \
10370 conftest$ac_exeext conftest.$ac_ext
10371 LIBS=$ac_check_lib_save_LIBS
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10374 $as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10375 if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
10376 have_xshm=yes
10379 CFLAGS="$save_cflags"
10383 if test "x-$have_xshm" = "x-yes" ; then
10384 DO_XSHM_SUPPORT="1"
10385 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10386 as_fn_error "X11 has no support for shared memory, cannot enable it as requested" "$LINENO" 5
10387 else
10388 DO_XSHM_SUPPORT="0"
10392 # Check whether --enable-x11_vidmode was given.
10393 if test "${enable_x11_vidmode+set}" = set; then :
10394 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10395 else
10396 x11_hidd_vidmode="auto"
10399 case "x-$x11_hidd_vidmode" in
10400 x-yes|x-no|x-auto) ;;
10401 *) x11_hidd_vidmode="auto" ;;
10402 esac
10404 have_vidmode=no
10406 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10408 save_cflags="$CFLAGS"
10409 CFLAGS="$CFLAGS $x_cflags"
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10411 $as_echo_n "checking for XF86VidModeQueryExtension in -lXxf86vm... " >&6; }
10412 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then :
10413 $as_echo_n "(cached) " >&6
10414 else
10415 ac_check_lib_save_LIBS=$LIBS
10416 LIBS="-lXxf86vm $LIBS"
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10420 /* Override any GCC internal prototype to avoid an error.
10421 Use char because int might match the return type of a GCC
10422 builtin and then its argument prototype would still apply. */
10423 #ifdef __cplusplus
10424 extern "C"
10425 #endif
10426 char XF86VidModeQueryExtension ();
10428 main ()
10430 return XF86VidModeQueryExtension ();
10432 return 0;
10434 _ACEOF
10435 if ac_fn_c_try_link "$LINENO"; then :
10436 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10437 else
10438 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10440 rm -f core conftest.err conftest.$ac_objext \
10441 conftest$ac_exeext conftest.$ac_ext
10442 LIBS=$ac_check_lib_save_LIBS
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10445 $as_echo "$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10446 if test "x$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" = x""yes; then :
10447 have_vidmode=yes
10450 CFLAGS="$save_cflags"
10453 if test "x-$have_vidmode" = "x-yes" ; then
10454 DO_VIDMODE_SUPPORT="1"
10455 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10456 as_fn_error "X11 vidmode extension not available, cannot enable it as requested" "$LINENO" 5
10457 else
10458 DO_VIDMODE_SUPPORT="0"
10462 aros_host_x11_includes=$x_includes
10463 aros_host_x11_libdirs=$x_libraries
10467 # Check whether --enable-sdl_hidd was given.
10468 if test "${enable_sdl_hidd+set}" = set; then :
10469 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10470 else
10471 sdl_hidd="auto"
10474 case "x-$sdl_hidd" in
10475 x-yes|x-no|x-auto) ;;
10476 *) sdl_hidd="auto" ;;
10477 esac
10479 if test "x-$sdl_hidd" != "x-no" ; then
10482 # Check whether --with-sdl-prefix was given.
10483 if test "${with_sdl_prefix+set}" = set; then :
10484 withval=$with_sdl_prefix; sdl_prefix="$withval"
10485 else
10486 sdl_prefix=""
10490 # Check whether --with-sdl-exec-prefix was given.
10491 if test "${with_sdl_exec_prefix+set}" = set; then :
10492 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10493 else
10494 sdl_exec_prefix=""
10497 # Check whether --enable-sdltest was given.
10498 if test "${enable_sdltest+set}" = set; then :
10499 enableval=$enable_sdltest;
10500 else
10501 enable_sdltest=yes
10505 if test x$sdl_exec_prefix != x ; then
10506 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10507 if test x${SDL_CONFIG+set} != xset ; then
10508 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10511 if test x$sdl_prefix != x ; then
10512 sdl_args="$sdl_args --prefix=$sdl_prefix"
10513 if test x${SDL_CONFIG+set} != xset ; then
10514 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10518 if test "x$prefix" != xNONE; then
10519 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10521 # Extract the first word of "sdl-config", so it can be a program name with args.
10522 set dummy sdl-config; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then :
10526 $as_echo_n "(cached) " >&6
10527 else
10528 case $SDL_CONFIG in
10529 [\\/]* | ?:[\\/]*)
10530 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10534 for as_dir in $PATH
10536 IFS=$as_save_IFS
10537 test -z "$as_dir" && as_dir=.
10538 for ac_exec_ext in '' $ac_executable_extensions; do
10539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10540 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10542 break 2
10544 done
10545 done
10546 IFS=$as_save_IFS
10548 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10550 esac
10552 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10553 if test -n "$SDL_CONFIG"; then
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
10555 $as_echo "$SDL_CONFIG" >&6; }
10556 else
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10558 $as_echo "no" >&6; }
10562 min_sdl_version=1.2.10
10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
10564 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
10565 no_sdl=""
10566 if test "$SDL_CONFIG" = "no" ; then
10567 no_sdl=yes
10568 else
10569 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10570 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10572 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10573 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10574 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10575 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10576 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10577 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10578 if test "x$enable_sdltest" = "xyes" ; then
10579 ac_save_CFLAGS="$CFLAGS"
10580 ac_save_CXXFLAGS="$CXXFLAGS"
10581 ac_save_LIBS="$LIBS"
10582 CFLAGS="$CFLAGS $SDL_CFLAGS"
10583 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10584 LIBS="$LIBS $SDL_LIBS"
10585 rm -f conf.sdltest
10586 if test "$cross_compiling" = yes; then :
10587 echo $ac_n "cross compiling; assumed OK... $ac_c"
10588 else
10589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10590 /* end confdefs.h. */
10592 #include <stdio.h>
10593 #include <stdlib.h>
10594 #include <string.h>
10595 #include "SDL.h"
10597 char*
10598 my_strdup (char *str)
10600 char *new_str;
10602 if (str)
10604 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10605 strcpy (new_str, str);
10607 else
10608 new_str = NULL;
10610 return new_str;
10613 int main (int argc, char *argv[])
10615 int major, minor, micro;
10616 char *tmp_version;
10618 /* This hangs on some systems (?)
10619 system ("touch conf.sdltest");
10621 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10623 /* HP/UX 9 (%@#!) writes to sscanf strings */
10624 tmp_version = my_strdup("$min_sdl_version");
10625 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10626 printf("%s, bad version string\n", "$min_sdl_version");
10627 exit(1);
10630 if (($sdl_major_version > major) ||
10631 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10632 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10634 return 0;
10636 else
10638 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10639 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10640 printf("*** best to upgrade to the required version.\n");
10641 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10642 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10643 printf("*** config.cache before re-running configure\n");
10644 return 1;
10649 _ACEOF
10650 if ac_fn_c_try_run "$LINENO"; then :
10652 else
10653 no_sdl=yes
10655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10656 conftest.$ac_objext conftest.beam conftest.$ac_ext
10659 CFLAGS="$ac_save_CFLAGS"
10660 CXXFLAGS="$ac_save_CXXFLAGS"
10661 LIBS="$ac_save_LIBS"
10664 if test "x$no_sdl" = x ; then
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10666 $as_echo "yes" >&6; }
10667 have_sdl="yes"
10668 else
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10670 $as_echo "no" >&6; }
10671 if test "$SDL_CONFIG" = "no" ; then
10672 echo "*** The sdl-config script installed by SDL could not be found"
10673 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10674 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10675 echo "*** full path to sdl-config."
10676 else
10677 if test -f conf.sdltest ; then
10679 else
10680 echo "*** Could not run SDL test program, checking why..."
10681 CFLAGS="$CFLAGS $SDL_CFLAGS"
10682 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10683 LIBS="$LIBS $SDL_LIBS"
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10687 #include <stdio.h>
10688 #include "SDL.h"
10690 int main(int argc, char *argv[])
10691 { return 0; }
10692 #undef main
10693 #define main K_and_R_C_main
10696 main ()
10698 return 0;
10700 return 0;
10702 _ACEOF
10703 if ac_fn_c_try_link "$LINENO"; then :
10704 echo "*** The test program compiled, but did not run. This usually means"
10705 echo "*** that the run-time linker is not finding SDL or finding the wrong"
10706 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
10707 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
10708 echo "*** to the installed location Also, make sure you have run ldconfig if that"
10709 echo "*** is required on your system"
10710 echo "***"
10711 echo "*** If you have an old version installed, it is best to remove it, although"
10712 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
10713 else
10714 echo "*** The test program failed to compile or link. See the file config.log for the"
10715 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
10716 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
10717 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 CFLAGS="$ac_save_CFLAGS"
10722 CXXFLAGS="$ac_save_CXXFLAGS"
10723 LIBS="$ac_save_LIBS"
10726 SDL_CFLAGS=""
10727 SDL_LIBS=""
10728 have_sdl="no"
10732 rm -f conf.sdltest
10735 if test "x-$have_sdl" != "x-yes" ; then
10737 if test "x-$sdl_hidd" != "x-auto" ; then
10738 as_fn_error "SDL libs/headers not found, cannot build SDL hidd as requested" "$LINENO" 5
10741 else
10742 sdl_hidd_target=kernel-hidd-sdl
10743 aros_host_sdl_cflags=SDL_CFLAGS
10744 aros_host_sdl_libs=SDL_LIBS
10748 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10749 if test "x$ac_cv_header_sys_soundcard_h" = x""yes; then :
10754 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
10755 oss_library_target=workbench-libs-oss-unix
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if building of dbus.library is enabled" >&5
10761 $as_echo_n "checking if building of dbus.library is enabled... " >&6; }
10762 # Check whether --enable-dbus was given.
10763 if test "${enable_dbus+set}" = set; then :
10764 enableval=$enable_dbus; dbus="yes"
10765 else
10766 dbus="no"
10769 if test "$dbus" = "yes" ; then
10770 ENABLE_DBUS=1
10771 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
10772 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
10773 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
10774 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
10775 else
10776 ENABLE_DBUS=0
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dbus" >&5
10779 $as_echo "$dbus" >&6; }
10783 # Generic
10793 # Host related
10817 # Target Related
10871 # Graphics Related
10888 # Native version related
10891 # Palm native version related
10894 # Unix/Hosted version related
10897 # MMU related
10900 # Apple iOS related
10905 # Android related
10909 # DBUS related
10916 #X11 related
10919 # Debug related
10925 # Collect-aros stuff: "-ius" to ignore undefined symbols
10928 # C compiler related
10931 case "$aros_flavour" in
10932 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
10933 aros_flavour="emulation" ;;
10934 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
10935 aros_flavour="emulation" ;;
10936 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
10937 aros_flavour="standalone";;
10938 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
10939 aros_flavour="standalone";;
10940 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
10941 aros_flavour="native" ;;
10942 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
10943 aros_flavour="native" ;;
10944 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
10945 aros_flavour="linklib" ;;
10946 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10947 aros_flavour="palmnative" ;;
10948 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
10949 aros_flavour="mac68knative" ;;
10950 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
10951 aros_flavour="ppcnative" ;;
10952 esac
10954 if test ! -d ${aros_inc_dir} ; then
10955 ${MKDIR} ${aros_inc_dir}
10957 if test ! -d ${aros_geninc_dir} ; then
10958 ${MKDIR} ${aros_geninc_dir}
10960 if test ! -d ${aros_hostcfg_dir} ; then
10961 ${MKDIR} ${aros_hostcfg_dir}
10963 if test ! -d ${aros_targetcfg_dir} ; then
10964 ${MKDIR} ${aros_targetcfg_dir}
10966 if test ! -d ${aros_tools_dir} ; then
10967 ${MKDIR} ${aros_tools_dir}
10969 if test ! -d ${aros_scripts_dir} ; then
10970 ${MKDIR} ${aros_scripts_dir}
10973 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
10976 ac_config_commands="$ac_config_commands compiler_executable"
10978 ac_config_commands="$ac_config_commands genshared_executable"
10980 ac_config_commands="$ac_config_commands genmf_executable"
10983 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"
10986 cat >confcache <<\_ACEOF
10987 # This file is a shell script that caches the results of configure
10988 # tests run on this system so they can be shared between configure
10989 # scripts and configure runs, see configure's option --config-cache.
10990 # It is not useful on other systems. If it contains results you don't
10991 # want to keep, you may remove or edit it.
10993 # config.status only pays attention to the cache file if you give it
10994 # the --recheck option to rerun configure.
10996 # `ac_cv_env_foo' variables (set or unset) will be overridden when
10997 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10998 # following values.
11000 _ACEOF
11002 # The following way of writing the cache mishandles newlines in values,
11003 # but we know of no workaround that is simple, portable, and efficient.
11004 # So, we kill variables containing newlines.
11005 # Ultrix sh set writes to stderr and can't be redirected directly,
11006 # and sets the high bit in the cache file unless we assign to the vars.
11008 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11009 eval ac_val=\$$ac_var
11010 case $ac_val in #(
11011 *${as_nl}*)
11012 case $ac_var in #(
11013 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11014 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11015 esac
11016 case $ac_var in #(
11017 _ | IFS | as_nl) ;; #(
11018 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11019 *) { eval $ac_var=; unset $ac_var;} ;;
11020 esac ;;
11021 esac
11022 done
11024 (set) 2>&1 |
11025 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11026 *${as_nl}ac_space=\ *)
11027 # `set' does not quote correctly, so add quotes: double-quote
11028 # substitution turns \\\\ into \\, and sed turns \\ into \.
11029 sed -n \
11030 "s/'/'\\\\''/g;
11031 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11032 ;; #(
11034 # `set' quotes correctly as required by POSIX, so do not add quotes.
11035 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11037 esac |
11038 sort
11040 sed '
11041 /^ac_cv_env_/b end
11042 t clear
11043 :clear
11044 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11045 t end
11046 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11047 :end' >>confcache
11048 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11049 if test -w "$cache_file"; then
11050 test "x$cache_file" != "x/dev/null" &&
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11052 $as_echo "$as_me: updating cache $cache_file" >&6;}
11053 cat confcache >$cache_file
11054 else
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11056 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11059 rm -f confcache
11061 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11062 # Let make expand exec_prefix.
11063 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11065 DEFS=-DHAVE_CONFIG_H
11067 ac_libobjs=
11068 ac_ltlibobjs=
11069 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11070 # 1. Remove the extension, and $U if already installed.
11071 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11072 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11073 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11074 # will be set to the directory where LIBOBJS objects are built.
11075 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11076 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11077 done
11078 LIBOBJS=$ac_libobjs
11080 LTLIBOBJS=$ac_ltlibobjs
11084 : ${CONFIG_STATUS=./config.status}
11085 ac_write_fail=0
11086 ac_clean_files_save=$ac_clean_files
11087 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11089 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11090 as_write_fail=0
11091 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11092 #! $SHELL
11093 # Generated by $as_me.
11094 # Run this file to recreate the current configuration.
11095 # Compiler output produced by configure, useful for debugging
11096 # configure, is in config.log if it exists.
11098 debug=false
11099 ac_cs_recheck=false
11100 ac_cs_silent=false
11102 SHELL=\${CONFIG_SHELL-$SHELL}
11103 export SHELL
11104 _ASEOF
11105 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11106 ## -------------------- ##
11107 ## M4sh Initialization. ##
11108 ## -------------------- ##
11110 # Be more Bourne compatible
11111 DUALCASE=1; export DUALCASE # for MKS sh
11112 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11113 emulate sh
11114 NULLCMD=:
11115 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11116 # is contrary to our usage. Disable this feature.
11117 alias -g '${1+"$@"}'='"$@"'
11118 setopt NO_GLOB_SUBST
11119 else
11120 case `(set -o) 2>/dev/null` in #(
11121 *posix*) :
11122 set -o posix ;; #(
11123 *) :
11125 esac
11129 as_nl='
11131 export as_nl
11132 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11133 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11134 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11135 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11136 # Prefer a ksh shell builtin over an external printf program on Solaris,
11137 # but without wasting forks for bash or zsh.
11138 if test -z "$BASH_VERSION$ZSH_VERSION" \
11139 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11140 as_echo='print -r --'
11141 as_echo_n='print -rn --'
11142 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11143 as_echo='printf %s\n'
11144 as_echo_n='printf %s'
11145 else
11146 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11147 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11148 as_echo_n='/usr/ucb/echo -n'
11149 else
11150 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11151 as_echo_n_body='eval
11152 arg=$1;
11153 case $arg in #(
11154 *"$as_nl"*)
11155 expr "X$arg" : "X\\(.*\\)$as_nl";
11156 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11157 esac;
11158 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11160 export as_echo_n_body
11161 as_echo_n='sh -c $as_echo_n_body as_echo'
11163 export as_echo_body
11164 as_echo='sh -c $as_echo_body as_echo'
11167 # The user is always right.
11168 if test "${PATH_SEPARATOR+set}" != set; then
11169 PATH_SEPARATOR=:
11170 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11171 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11172 PATH_SEPARATOR=';'
11177 # IFS
11178 # We need space, tab and new line, in precisely that order. Quoting is
11179 # there to prevent editors from complaining about space-tab.
11180 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11181 # splitting by setting IFS to empty value.)
11182 IFS=" "" $as_nl"
11184 # Find who we are. Look in the path if we contain no directory separator.
11185 case $0 in #((
11186 *[\\/]* ) as_myself=$0 ;;
11187 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11190 IFS=$as_save_IFS
11191 test -z "$as_dir" && as_dir=.
11192 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11193 done
11194 IFS=$as_save_IFS
11197 esac
11198 # We did not find ourselves, most probably we were run as `sh COMMAND'
11199 # in which case we are not to be found in the path.
11200 if test "x$as_myself" = x; then
11201 as_myself=$0
11203 if test ! -f "$as_myself"; then
11204 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11205 exit 1
11208 # Unset variables that we do not need and which cause bugs (e.g. in
11209 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11210 # suppresses any "Segmentation fault" message there. '((' could
11211 # trigger a bug in pdksh 5.2.14.
11212 for as_var in BASH_ENV ENV MAIL MAILPATH
11213 do eval test x\${$as_var+set} = xset \
11214 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11215 done
11216 PS1='$ '
11217 PS2='> '
11218 PS4='+ '
11220 # NLS nuisances.
11221 LC_ALL=C
11222 export LC_ALL
11223 LANGUAGE=C
11224 export LANGUAGE
11226 # CDPATH.
11227 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11230 # as_fn_error ERROR [LINENO LOG_FD]
11231 # ---------------------------------
11232 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11233 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11234 # script with status $?, using 1 if that was 0.
11235 as_fn_error ()
11237 as_status=$?; test $as_status -eq 0 && as_status=1
11238 if test "$3"; then
11239 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11240 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11242 $as_echo "$as_me: error: $1" >&2
11243 as_fn_exit $as_status
11244 } # as_fn_error
11247 # as_fn_set_status STATUS
11248 # -----------------------
11249 # Set $? to STATUS, without forking.
11250 as_fn_set_status ()
11252 return $1
11253 } # as_fn_set_status
11255 # as_fn_exit STATUS
11256 # -----------------
11257 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11258 as_fn_exit ()
11260 set +e
11261 as_fn_set_status $1
11262 exit $1
11263 } # as_fn_exit
11265 # as_fn_unset VAR
11266 # ---------------
11267 # Portably unset VAR.
11268 as_fn_unset ()
11270 { eval $1=; unset $1;}
11272 as_unset=as_fn_unset
11273 # as_fn_append VAR VALUE
11274 # ----------------------
11275 # Append the text in VALUE to the end of the definition contained in VAR. Take
11276 # advantage of any shell optimizations that allow amortized linear growth over
11277 # repeated appends, instead of the typical quadratic growth present in naive
11278 # implementations.
11279 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11280 eval 'as_fn_append ()
11282 eval $1+=\$2
11284 else
11285 as_fn_append ()
11287 eval $1=\$$1\$2
11289 fi # as_fn_append
11291 # as_fn_arith ARG...
11292 # ------------------
11293 # Perform arithmetic evaluation on the ARGs, and store the result in the
11294 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11295 # must be portable across $(()) and expr.
11296 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11297 eval 'as_fn_arith ()
11299 as_val=$(( $* ))
11301 else
11302 as_fn_arith ()
11304 as_val=`expr "$@" || test $? -eq 1`
11306 fi # as_fn_arith
11309 if expr a : '\(a\)' >/dev/null 2>&1 &&
11310 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11311 as_expr=expr
11312 else
11313 as_expr=false
11316 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11317 as_basename=basename
11318 else
11319 as_basename=false
11322 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11323 as_dirname=dirname
11324 else
11325 as_dirname=false
11328 as_me=`$as_basename -- "$0" ||
11329 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11330 X"$0" : 'X\(//\)$' \| \
11331 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11332 $as_echo X/"$0" |
11333 sed '/^.*\/\([^/][^/]*\)\/*$/{
11334 s//\1/
11337 /^X\/\(\/\/\)$/{
11338 s//\1/
11341 /^X\/\(\/\).*/{
11342 s//\1/
11345 s/.*/./; q'`
11347 # Avoid depending upon Character Ranges.
11348 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11349 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11350 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11351 as_cr_digits='0123456789'
11352 as_cr_alnum=$as_cr_Letters$as_cr_digits
11354 ECHO_C= ECHO_N= ECHO_T=
11355 case `echo -n x` in #(((((
11356 -n*)
11357 case `echo 'xy\c'` in
11358 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11359 xy) ECHO_C='\c';;
11360 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11361 ECHO_T=' ';;
11362 esac;;
11364 ECHO_N='-n';;
11365 esac
11367 rm -f conf$$ conf$$.exe conf$$.file
11368 if test -d conf$$.dir; then
11369 rm -f conf$$.dir/conf$$.file
11370 else
11371 rm -f conf$$.dir
11372 mkdir conf$$.dir 2>/dev/null
11374 if (echo >conf$$.file) 2>/dev/null; then
11375 if ln -s conf$$.file conf$$ 2>/dev/null; then
11376 as_ln_s='ln -s'
11377 # ... but there are two gotchas:
11378 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11379 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11380 # In both cases, we have to default to `cp -p'.
11381 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11382 as_ln_s='cp -p'
11383 elif ln conf$$.file conf$$ 2>/dev/null; then
11384 as_ln_s=ln
11385 else
11386 as_ln_s='cp -p'
11388 else
11389 as_ln_s='cp -p'
11391 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11392 rmdir conf$$.dir 2>/dev/null
11395 # as_fn_mkdir_p
11396 # -------------
11397 # Create "$as_dir" as a directory, including parents if necessary.
11398 as_fn_mkdir_p ()
11401 case $as_dir in #(
11402 -*) as_dir=./$as_dir;;
11403 esac
11404 test -d "$as_dir" || eval $as_mkdir_p || {
11405 as_dirs=
11406 while :; do
11407 case $as_dir in #(
11408 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11409 *) as_qdir=$as_dir;;
11410 esac
11411 as_dirs="'$as_qdir' $as_dirs"
11412 as_dir=`$as_dirname -- "$as_dir" ||
11413 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11414 X"$as_dir" : 'X\(//\)[^/]' \| \
11415 X"$as_dir" : 'X\(//\)$' \| \
11416 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11417 $as_echo X"$as_dir" |
11418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11419 s//\1/
11422 /^X\(\/\/\)[^/].*/{
11423 s//\1/
11426 /^X\(\/\/\)$/{
11427 s//\1/
11430 /^X\(\/\).*/{
11431 s//\1/
11434 s/.*/./; q'`
11435 test -d "$as_dir" && break
11436 done
11437 test -z "$as_dirs" || eval "mkdir $as_dirs"
11438 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11441 } # as_fn_mkdir_p
11442 if mkdir -p . 2>/dev/null; then
11443 as_mkdir_p='mkdir -p "$as_dir"'
11444 else
11445 test -d ./-p && rmdir ./-p
11446 as_mkdir_p=false
11449 if test -x / >/dev/null 2>&1; then
11450 as_test_x='test -x'
11451 else
11452 if ls -dL / >/dev/null 2>&1; then
11453 as_ls_L_option=L
11454 else
11455 as_ls_L_option=
11457 as_test_x='
11458 eval sh -c '\''
11459 if test -d "$1"; then
11460 test -d "$1/.";
11461 else
11462 case $1 in #(
11463 -*)set "./$1";;
11464 esac;
11465 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11466 ???[sx]*):;;*)false;;esac;fi
11467 '\'' sh
11470 as_executable_p=$as_test_x
11472 # Sed expression to map a string onto a valid CPP name.
11473 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11475 # Sed expression to map a string onto a valid variable name.
11476 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11479 exec 6>&1
11480 ## ----------------------------------- ##
11481 ## Main body of $CONFIG_STATUS script. ##
11482 ## ----------------------------------- ##
11483 _ASEOF
11484 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11486 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11487 # Save the log message, to keep $0 and so on meaningful, and to
11488 # report actual input values of CONFIG_FILES etc. instead of their
11489 # values after options handling.
11490 ac_log="
11491 This file was extended by $as_me, which was
11492 generated by GNU Autoconf 2.64. Invocation command line was
11494 CONFIG_FILES = $CONFIG_FILES
11495 CONFIG_HEADERS = $CONFIG_HEADERS
11496 CONFIG_LINKS = $CONFIG_LINKS
11497 CONFIG_COMMANDS = $CONFIG_COMMANDS
11498 $ $0 $@
11500 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11503 _ACEOF
11505 case $ac_config_files in *"
11506 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11507 esac
11509 case $ac_config_headers in *"
11510 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11511 esac
11514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11515 # Files that config.status was made for.
11516 config_files="$ac_config_files"
11517 config_headers="$ac_config_headers"
11518 config_commands="$ac_config_commands"
11520 _ACEOF
11522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11523 ac_cs_usage="\
11524 \`$as_me' instantiates files and other configuration actions
11525 from templates according to the current configuration. Unless the files
11526 and actions are specified as TAGs, all are instantiated by default.
11528 Usage: $0 [OPTION]... [TAG]...
11530 -h, --help print this help, then exit
11531 -V, --version print version number and configuration settings, then exit
11532 -q, --quiet, --silent
11533 do not print progress messages
11534 -d, --debug don't remove temporary files
11535 --recheck update $as_me by reconfiguring in the same conditions
11536 --file=FILE[:TEMPLATE]
11537 instantiate the configuration file FILE
11538 --header=FILE[:TEMPLATE]
11539 instantiate the configuration header FILE
11541 Configuration files:
11542 $config_files
11544 Configuration headers:
11545 $config_headers
11547 Configuration commands:
11548 $config_commands
11550 Report bugs to the package provider."
11552 _ACEOF
11553 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11554 ac_cs_version="\\
11555 config.status
11556 configured by $0, generated by GNU Autoconf 2.64,
11557 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11559 Copyright (C) 2009 Free Software Foundation, Inc.
11560 This config.status script is free software; the Free Software Foundation
11561 gives unlimited permission to copy, distribute and modify it."
11563 ac_pwd='$ac_pwd'
11564 srcdir='$srcdir'
11565 test -n "\$AWK" || AWK=awk
11566 _ACEOF
11568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11569 # The default lists apply if the user does not specify any file.
11570 ac_need_defaults=:
11571 while test $# != 0
11573 case $1 in
11574 --*=*)
11575 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11576 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11577 ac_shift=:
11580 ac_option=$1
11581 ac_optarg=$2
11582 ac_shift=shift
11584 esac
11586 case $ac_option in
11587 # Handling of the options.
11588 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11589 ac_cs_recheck=: ;;
11590 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11591 $as_echo "$ac_cs_version"; exit ;;
11592 --debug | --debu | --deb | --de | --d | -d )
11593 debug=: ;;
11594 --file | --fil | --fi | --f )
11595 $ac_shift
11596 case $ac_optarg in
11597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11598 esac
11599 as_fn_append CONFIG_FILES " '$ac_optarg'"
11600 ac_need_defaults=false;;
11601 --header | --heade | --head | --hea )
11602 $ac_shift
11603 case $ac_optarg in
11604 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11605 esac
11606 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11607 ac_need_defaults=false;;
11608 --he | --h)
11609 # Conflict between --help and --header
11610 as_fn_error "ambiguous option: \`$1'
11611 Try \`$0 --help' for more information.";;
11612 --help | --hel | -h )
11613 $as_echo "$ac_cs_usage"; exit ;;
11614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11615 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11616 ac_cs_silent=: ;;
11618 # This is an error.
11619 -*) as_fn_error "unrecognized option: \`$1'
11620 Try \`$0 --help' for more information." ;;
11622 *) as_fn_append ac_config_targets " $1"
11623 ac_need_defaults=false ;;
11625 esac
11626 shift
11627 done
11629 ac_configure_extra_args=
11631 if $ac_cs_silent; then
11632 exec 6>/dev/null
11633 ac_configure_extra_args="$ac_configure_extra_args --silent"
11636 _ACEOF
11637 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11638 if \$ac_cs_recheck; then
11639 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11640 shift
11641 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11642 CONFIG_SHELL='$SHELL'
11643 export CONFIG_SHELL
11644 exec "\$@"
11647 _ACEOF
11648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11649 exec 5>>config.log
11651 echo
11652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11653 ## Running $as_me. ##
11654 _ASBOX
11655 $as_echo "$ac_log"
11656 } >&5
11658 _ACEOF
11659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11661 # INIT-COMMANDS
11664 aros_host_exe_suffix=${aros_host_exe_suffix}
11665 aros_tools_dir=${aros_tools_dir}
11666 aros_target_cpu=${aros_target_cpu}
11667 aros_target_arch=${aros_target_arch}
11668 aros_target_suffix=${aros_target_suffix}
11669 aros_target_nm_ln=${aros_target_nm_ln}
11670 aros_target_as_ln=${aros_target_as_ln}
11671 aros_target_ar_ln=${aros_target_ar_ln}
11672 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11673 aros_target_objdump_ln=${aros_target_objdump_ln}
11674 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11675 aros_target_strip_ln=${aros_target_strip_ln}
11678 aros_scripts_dir=${aros_scripts_dir}
11680 aros_tools_dir=${aros_tools_dir}
11683 _ACEOF
11685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11687 # Handling of arguments.
11688 for ac_config_target in $ac_config_targets
11690 case $ac_config_target in
11691 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11692 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11693 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11694 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11695 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11696 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
11697 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11698 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11699 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11700 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11701 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11702 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11703 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11704 "${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" ;;
11705 "${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" ;;
11706 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/library_template_c/source/lib_source/genshared.in" ;;
11707 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11708 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11709 "${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" ;;
11711 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11712 esac
11713 done
11716 # If the user did not use the arguments to specify the items to instantiate,
11717 # then the envvar interface is used. Set only those that are not.
11718 # We use the long form for the default assignment because of an extremely
11719 # bizarre bug on SunOS 4.1.3.
11720 if $ac_need_defaults; then
11721 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11722 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11723 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11726 # Have a temporary directory for convenience. Make it in the build tree
11727 # simply because there is no reason against having it here, and in addition,
11728 # creating and moving files from /tmp can sometimes cause problems.
11729 # Hook for its removal unless debugging.
11730 # Note that there is a small window in which the directory will not be cleaned:
11731 # after its creation but before its name has been assigned to `$tmp'.
11732 $debug ||
11734 tmp=
11735 trap 'exit_status=$?
11736 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11738 trap 'as_fn_exit 1' 1 2 13 15
11740 # Create a (secure) tmp directory for tmp files.
11743 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11744 test -n "$tmp" && test -d "$tmp"
11745 } ||
11747 tmp=./conf$$-$RANDOM
11748 (umask 077 && mkdir "$tmp")
11749 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
11751 # Set up the scripts for CONFIG_FILES section.
11752 # No need to generate them if there are no CONFIG_FILES.
11753 # This happens for instance with `./config.status config.h'.
11754 if test -n "$CONFIG_FILES"; then
11757 ac_cr=`echo X | tr X '\015'`
11758 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11759 # But we know of no other shell where ac_cr would be empty at this
11760 # point, so we can use a bashism as a fallback.
11761 if test "x$ac_cr" = x; then
11762 eval ac_cr=\$\'\\r\'
11764 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11765 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11766 ac_cs_awk_cr='\r'
11767 else
11768 ac_cs_awk_cr=$ac_cr
11771 echo 'BEGIN {' >"$tmp/subs1.awk" &&
11772 _ACEOF
11776 echo "cat >conf$$subs.awk <<_ACEOF" &&
11777 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11778 echo "_ACEOF"
11779 } >conf$$subs.sh ||
11780 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11781 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
11782 ac_delim='%!_!# '
11783 for ac_last_try in false false false false false :; do
11784 . ./conf$$subs.sh ||
11785 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11787 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11788 if test $ac_delim_n = $ac_delim_num; then
11789 break
11790 elif $ac_last_try; then
11791 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
11792 else
11793 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11795 done
11796 rm -f conf$$subs.sh
11798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11799 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
11800 _ACEOF
11801 sed -n '
11803 s/^/S["/; s/!.*/"]=/
11806 s/^[^!]*!//
11807 :repl
11808 t repl
11809 s/'"$ac_delim"'$//
11810 t delim
11813 s/\(.\{148\}\).*/\1/
11814 t more1
11815 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11818 b repl
11819 :more1
11820 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11823 s/.\{148\}//
11824 t nl
11825 :delim
11827 s/\(.\{148\}\).*/\1/
11828 t more2
11829 s/["\\]/\\&/g; s/^/"/; s/$/"/
11832 :more2
11833 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11836 s/.\{148\}//
11837 t delim
11838 ' <conf$$subs.awk | sed '
11839 /^[^""]/{
11841 s/\n//
11843 ' >>$CONFIG_STATUS || ac_write_fail=1
11844 rm -f conf$$subs.awk
11845 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11846 _ACAWK
11847 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
11848 for (key in S) S_is_set[key] = 1
11849 FS = "\a"
11853 line = $ 0
11854 nfields = split(line, field, "@")
11855 substed = 0
11856 len = length(field[1])
11857 for (i = 2; i < nfields; i++) {
11858 key = field[i]
11859 keylen = length(key)
11860 if (S_is_set[key]) {
11861 value = S[key]
11862 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11863 len += length(value) + length(field[++i])
11864 substed = 1
11865 } else
11866 len += 1 + keylen
11869 print line
11872 _ACAWK
11873 _ACEOF
11874 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11875 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11876 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11877 else
11879 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
11880 || as_fn_error "could not setup config files machinery" "$LINENO" 5
11881 _ACEOF
11883 # VPATH may cause trouble with some makes, so we remove $(srcdir),
11884 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11885 # trailing colons and then remove the whole line if VPATH becomes empty
11886 # (actually we leave an empty line to preserve line numbers).
11887 if test "x$srcdir" = x.; then
11888 ac_vpsub='/^[ ]*VPATH[ ]*=/{
11889 s/:*\$(srcdir):*/:/
11890 s/:*\${srcdir}:*/:/
11891 s/:*@srcdir@:*/:/
11892 s/^\([^=]*=[ ]*\):*/\1/
11893 s/:*$//
11894 s/^[^=]*=[ ]*$//
11898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11899 fi # test -n "$CONFIG_FILES"
11901 # Set up the scripts for CONFIG_HEADERS section.
11902 # No need to generate them if there are no CONFIG_HEADERS.
11903 # This happens for instance with `./config.status Makefile'.
11904 if test -n "$CONFIG_HEADERS"; then
11905 cat >"$tmp/defines.awk" <<\_ACAWK ||
11906 BEGIN {
11907 _ACEOF
11909 # Transform confdefs.h into an awk script `defines.awk', embedded as
11910 # here-document in config.status, that substitutes the proper values into
11911 # config.h.in to produce config.h.
11913 # Create a delimiter string that does not exist in confdefs.h, to ease
11914 # handling of long lines.
11915 ac_delim='%!_!# '
11916 for ac_last_try in false false :; do
11917 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
11918 if test -z "$ac_t"; then
11919 break
11920 elif $ac_last_try; then
11921 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
11922 else
11923 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11925 done
11927 # For the awk script, D is an array of macro values keyed by name,
11928 # likewise P contains macro parameters if any. Preserve backslash
11929 # newline sequences.
11931 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11932 sed -n '
11933 s/.\{148\}/&'"$ac_delim"'/g
11934 t rset
11935 :rset
11936 s/^[ ]*#[ ]*define[ ][ ]*/ /
11937 t def
11939 :def
11940 s/\\$//
11941 t bsnl
11942 s/["\\]/\\&/g
11943 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11944 D["\1"]=" \3"/p
11945 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11947 :bsnl
11948 s/["\\]/\\&/g
11949 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11950 D["\1"]=" \3\\\\\\n"\\/p
11951 t cont
11952 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11953 t cont
11955 :cont
11957 s/.\{148\}/&'"$ac_delim"'/g
11958 t clear
11959 :clear
11960 s/\\$//
11961 t bsnlc
11962 s/["\\]/\\&/g; s/^/"/; s/$/"/p
11964 :bsnlc
11965 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11966 b cont
11967 ' <confdefs.h | sed '
11968 s/'"$ac_delim"'/"\\\
11969 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11972 for (key in D) D_is_set[key] = 1
11973 FS = "\a"
11975 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11976 line = \$ 0
11977 split(line, arg, " ")
11978 if (arg[1] == "#") {
11979 defundef = arg[2]
11980 mac1 = arg[3]
11981 } else {
11982 defundef = substr(arg[1], 2)
11983 mac1 = arg[2]
11985 split(mac1, mac2, "(") #)
11986 macro = mac2[1]
11987 prefix = substr(line, 1, index(line, defundef) - 1)
11988 if (D_is_set[macro]) {
11989 # Preserve the white space surrounding the "#".
11990 print prefix "define", macro P[macro] D[macro]
11991 next
11992 } else {
11993 # Replace #undef with comments. This is necessary, for example,
11994 # in the case of _POSIX_SOURCE, which is predefined and required
11995 # on some systems where configure will not decide to define it.
11996 if (defundef == "undef") {
11997 print "/*", prefix defundef, macro, "*/"
11998 next
12002 { print }
12003 _ACAWK
12004 _ACEOF
12005 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12006 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12007 fi # test -n "$CONFIG_HEADERS"
12010 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12011 shift
12012 for ac_tag
12014 case $ac_tag in
12015 :[FHLC]) ac_mode=$ac_tag; continue;;
12016 esac
12017 case $ac_mode$ac_tag in
12018 :[FHL]*:*);;
12019 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12020 :[FH]-) ac_tag=-:-;;
12021 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12022 esac
12023 ac_save_IFS=$IFS
12024 IFS=:
12025 set x $ac_tag
12026 IFS=$ac_save_IFS
12027 shift
12028 ac_file=$1
12029 shift
12031 case $ac_mode in
12032 :L) ac_source=$1;;
12033 :[FH])
12034 ac_file_inputs=
12035 for ac_f
12037 case $ac_f in
12038 -) ac_f="$tmp/stdin";;
12039 *) # Look for the file first in the build tree, then in the source tree
12040 # (if the path is not absolute). The absolute path cannot be DOS-style,
12041 # because $ac_f cannot contain `:'.
12042 test -f "$ac_f" ||
12043 case $ac_f in
12044 [\\/$]*) false;;
12045 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12046 esac ||
12047 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12048 esac
12049 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12050 as_fn_append ac_file_inputs " '$ac_f'"
12051 done
12053 # Let's still pretend it is `configure' which instantiates (i.e., don't
12054 # use $as_me), people would be surprised to read:
12055 # /* config.h. Generated by config.status. */
12056 configure_input='Generated from '`
12057 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12058 `' by configure.'
12059 if test x"$ac_file" != x-; then
12060 configure_input="$ac_file. $configure_input"
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12062 $as_echo "$as_me: creating $ac_file" >&6;}
12064 # Neutralize special characters interpreted by sed in replacement strings.
12065 case $configure_input in #(
12066 *\&* | *\|* | *\\* )
12067 ac_sed_conf_input=`$as_echo "$configure_input" |
12068 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12069 *) ac_sed_conf_input=$configure_input;;
12070 esac
12072 case $ac_tag in
12073 *:-:* | *:-) cat >"$tmp/stdin" \
12074 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12075 esac
12077 esac
12079 ac_dir=`$as_dirname -- "$ac_file" ||
12080 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12081 X"$ac_file" : 'X\(//\)[^/]' \| \
12082 X"$ac_file" : 'X\(//\)$' \| \
12083 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12084 $as_echo X"$ac_file" |
12085 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12086 s//\1/
12089 /^X\(\/\/\)[^/].*/{
12090 s//\1/
12093 /^X\(\/\/\)$/{
12094 s//\1/
12097 /^X\(\/\).*/{
12098 s//\1/
12101 s/.*/./; q'`
12102 as_dir="$ac_dir"; as_fn_mkdir_p
12103 ac_builddir=.
12105 case "$ac_dir" in
12106 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12108 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12109 # A ".." for each directory in $ac_dir_suffix.
12110 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12111 case $ac_top_builddir_sub in
12112 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12113 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12114 esac ;;
12115 esac
12116 ac_abs_top_builddir=$ac_pwd
12117 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12118 # for backward compatibility:
12119 ac_top_builddir=$ac_top_build_prefix
12121 case $srcdir in
12122 .) # We are building in place.
12123 ac_srcdir=.
12124 ac_top_srcdir=$ac_top_builddir_sub
12125 ac_abs_top_srcdir=$ac_pwd ;;
12126 [\\/]* | ?:[\\/]* ) # Absolute name.
12127 ac_srcdir=$srcdir$ac_dir_suffix;
12128 ac_top_srcdir=$srcdir
12129 ac_abs_top_srcdir=$srcdir ;;
12130 *) # Relative name.
12131 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12132 ac_top_srcdir=$ac_top_build_prefix$srcdir
12133 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12134 esac
12135 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12138 case $ac_mode in
12141 # CONFIG_FILE
12144 _ACEOF
12146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12147 # If the template does not know about datarootdir, expand it.
12148 # FIXME: This hack should be removed a few years after 2.60.
12149 ac_datarootdir_hack=; ac_datarootdir_seen=
12150 ac_sed_dataroot='
12151 /datarootdir/ {
12155 /@datadir@/p
12156 /@docdir@/p
12157 /@infodir@/p
12158 /@localedir@/p
12159 /@mandir@/p'
12160 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12161 *datarootdir*) ac_datarootdir_seen=yes;;
12162 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12164 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12165 _ACEOF
12166 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12167 ac_datarootdir_hack='
12168 s&@datadir@&$datadir&g
12169 s&@docdir@&$docdir&g
12170 s&@infodir@&$infodir&g
12171 s&@localedir@&$localedir&g
12172 s&@mandir@&$mandir&g
12173 s&\\\${datarootdir}&$datarootdir&g' ;;
12174 esac
12175 _ACEOF
12177 # Neutralize VPATH when `$srcdir' = `.'.
12178 # Shell code in configure.ac might set extrasub.
12179 # FIXME: do we really want to maintain this feature?
12180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12181 ac_sed_extra="$ac_vpsub
12182 $extrasub
12183 _ACEOF
12184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12186 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12187 s|@configure_input@|$ac_sed_conf_input|;t t
12188 s&@top_builddir@&$ac_top_builddir_sub&;t t
12189 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12190 s&@srcdir@&$ac_srcdir&;t t
12191 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12192 s&@top_srcdir@&$ac_top_srcdir&;t t
12193 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12194 s&@builddir@&$ac_builddir&;t t
12195 s&@abs_builddir@&$ac_abs_builddir&;t t
12196 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12197 $ac_datarootdir_hack
12199 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12200 || as_fn_error "could not create $ac_file" "$LINENO" 5
12202 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12203 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12204 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12206 which seems to be undefined. Please make sure it is defined." >&5
12207 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12208 which seems to be undefined. Please make sure it is defined." >&2;}
12210 rm -f "$tmp/stdin"
12211 case $ac_file in
12212 -) cat "$tmp/out" && rm -f "$tmp/out";;
12213 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12214 esac \
12215 || as_fn_error "could not create $ac_file" "$LINENO" 5
12219 # CONFIG_HEADER
12221 if test x"$ac_file" != x-; then
12223 $as_echo "/* $configure_input */" \
12224 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12225 } >"$tmp/config.h" \
12226 || as_fn_error "could not create $ac_file" "$LINENO" 5
12227 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12229 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12230 else
12231 rm -f "$ac_file"
12232 mv "$tmp/config.h" "$ac_file" \
12233 || as_fn_error "could not create $ac_file" "$LINENO" 5
12235 else
12236 $as_echo "/* $configure_input */" \
12237 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12238 || as_fn_error "could not create -" "$LINENO" 5
12242 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12243 $as_echo "$as_me: executing $ac_file commands" >&6;}
12245 esac
12248 case $ac_file$ac_mode in
12249 "compiler_executable":C)
12250 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12251 mkdir -p $prefix
12252 prefix="${prefix}/${aros_target_cpu}-aros"
12253 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12255 echo ${prefix}
12256 echo ${prefix2}
12257 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12259 ln -sf ${prefix2}-gcc ${prefix}-gcc
12260 ln -sf ${prefix2}-ld ${prefix}-ld
12262 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
12263 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
12264 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
12265 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
12266 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
12267 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
12268 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
12270 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
12271 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
12272 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
12273 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
12274 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
12275 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
12276 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
12278 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
12279 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12281 esac
12282 done # for ac_tag
12285 as_fn_exit 0
12286 _ACEOF
12287 ac_clean_files=$ac_clean_files_save
12289 test $ac_write_fail = 0 ||
12290 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
12293 # configure is writing to config.log, and then calls config.status.
12294 # config.status does its own redirection, appending to config.log.
12295 # Unfortunately, on DOS this fails, as config.log is still kept open
12296 # by configure, so config.status won't be able to write to it; its
12297 # output is simply discarded. So we exec the FD to /dev/null,
12298 # effectively closing config.log, so it can be properly (re)opened and
12299 # appended to by config.status. When coming back to configure, we
12300 # need to make the FD available again.
12301 if test "$no_create" != yes; then
12302 ac_cs_success=:
12303 ac_config_status_args=
12304 test "$silent" = yes &&
12305 ac_config_status_args="$ac_config_status_args --quiet"
12306 exec 5>/dev/null
12307 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12308 exec 5>>config.log
12309 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12310 # would make configure fail if this is the last instruction.
12311 $ac_cs_success || as_fn_exit $?
12313 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
12315 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
12320 #XXX compatability...
12321 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12323 if test -n "$aros_shared_cflags" ; then
12324 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12325 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg