Welcome to eurozone!
[AROS.git] / configure
blob430e6205d3e0b064a805e72600271a68490ac971
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="mmakefile"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
662 CFLAGS
663 LDFLAGS
664 CPPFLAGS
665 ac_ct_CC
666 EXEEXT
667 OBJEXT
670 MMAKE
671 aros_host_ld
672 aros_host_aclocal
673 aros_host_autoconf
674 aros_host_autoheader
675 aros_host_automake
676 aros_host_ar
677 aros_host_ranlib
678 aros_host_strip
682 ECHO
683 MKDIR
684 TOUCH
685 SORT
686 UNIQ
689 BISON
690 FLEX
691 PNGTOPNM
692 PPMTOILBM
694 CHMOD
695 PYTHON
696 PYTHON_VERSION
697 PYTHON_PREFIX
698 PYTHON_EXEC_PREFIX
699 PYTHON_PLATFORM
700 pythondir
701 pkgpythondir
702 pyexecdir
703 pkgpyexecdir
706 TEST
708 GREP
709 EGREP
710 LIBOBJS
711 DISTCC
712 CCACHE
713 android_tool
714 aros_target_cc
715 aros_target_ld
716 aros_target_as_ln
717 aros_kernel_ld
718 aros_target_ar_ln
719 aros_target_nm_ln
720 aros_target_objcopy_ln
721 aros_target_objdump_ln
722 aros_target_ranlib_ln
723 aros_target_strip_ln
724 aros_target_cxx
725 aros_kernel_rescomp
726 aros_target_nostdinc_cflags
727 aros_target_nostartup_ldflags
728 aros_target_nix_ldflags
729 aros_target_detach_ldflags
730 aros_target_nostdlib_ldflags
731 host_cflags_iquote
732 host_cflags_iquote_end
733 kernel_cflags_iquote
734 kernel_cflags_iquote_end
735 aros_cflags_iquote
736 aros_cflags_iquote_end
737 XMKMF
738 SDL_CONFIG
739 SDL_CFLAGS
740 SDL_LIBS
741 aros_arch
742 aros_cpu
743 aros_flavour
744 aros_flavour_uc
745 AROS_BUILDDIR
746 AROS_BUILDDIR_UNIX
747 SRCDIR
748 AROS_PORTSSRCDIR
749 aros_cc_pre
750 aros_host_arch
751 aros_host_cpu
752 aros_host_cc
753 aros_host_make
754 aros_host_cflags
755 gnu89_inline
756 aros_host_ldflags
757 aros_host_debug
758 aros_host_mkdep
759 aros_host_mkargs
760 aros_host_exe_suffix
761 aros_host_lib_suffix
762 aros_tools_dir
763 aros_target_guitheme
764 aros_target_iconset
765 aros_target_bootloader
766 aros_target_arch
767 aros_target_family
768 aros_target_cpu
769 aros_target_variant
770 aros_target_suffix
771 aros_target_incl
772 aros_target_ar
773 aros_target_ranlib
774 aros_kernel_nm
775 orig_target_cc
776 aros_kernel_cc
777 aros_target_as
778 orig_target_ld
779 aros_target_cc_includes
780 aros_target_cc_path
781 aros_target_objdump
782 aros_target_objcopy
783 aros_target_strip
784 aros_target_nm
785 aros_shared_default
786 aros_shared_ld
787 aros_object_format
788 aros_compiler_libs
789 aros_arch_libs
790 aros_config_cflags
791 aros_config_aflags
792 aros_config_ldflags
793 aros_shared_cflags
794 aros_shared_aflags
795 aros_shared_ldflags
796 aros_kernel_cflags
797 aros_kernel_includes
798 aros_kernel_objcflags
799 aros_kernel_ldflags
800 aros_debug_cflags
801 aros_debug_aflags
802 aros_debug_ldflags
803 aros_paranoia_cflags
804 aros_target_genmap
805 aros_target_strip_flags
806 crosstools_target
807 x11_hidd_target
808 sdl_hidd_target
809 pci_hidd_target
810 oss_library_target
811 aros_default_wbwidth
812 aros_default_wbheight
813 aros_default_wbdepth
814 DO_XSHM_SUPPORT
815 DO_VIDMODE_SUPPORT
816 aros_host_x11_includes
817 aros_host_x11_libdirs
818 aros_host_sdl_cflags
819 aros_host_sdl_libs
820 aros_serial_debug
821 aros_palm_debug_hack
822 aros_nesting_supervisor
823 aros_enable_mmu
824 aros_ios_platform
825 aros_ios_version
826 aros_ios_sdk
827 aros_android_level
828 ENABLE_DBUS
829 DBUS_CFLAGS
830 DBUS_LIBFLAGS
831 KERNEL_DBUS_KOBJ
832 KERNEL_DBUS_INCLUDES
833 ENABLE_X11
834 aros_debug
835 aros_mungwall_debug
836 aros_stack_debug
837 aros_modules_debug
838 ignore_undefined_symbols
839 gcc_target_cpu
840 LTLIBOBJS'
841 ac_subst_files=''
842 ac_precious_vars='build_alias
843 host_alias
844 target_alias
846 CFLAGS
847 LDFLAGS
848 LIBS
849 CPPFLAGS
851 XMKMF'
854 # Initialize some variables set by options.
855 ac_init_help=
856 ac_init_version=false
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_libraries=NONE
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
900 ac_prev=
901 ac_dashdash=
902 for ac_option
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
911 case $ac_option in
912 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *) ac_optarg=yes ;;
914 esac
916 # Accept the important Cygnus configure options, so we can diagnose typos.
918 case $ac_dashdash$ac_option in
920 ac_dashdash=yes ;;
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
939 --config-cache | -C)
940 cache_file=config.cache ;;
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
954 -disable-* | --disable-*)
955 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
958 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
959 { (exit 1); exit 1; }; }
960 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
961 eval enable_$ac_feature=no ;;
963 -docdir | --docdir | --docdi | --doc | --do)
964 ac_prev=docdir ;;
965 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
966 docdir=$ac_optarg ;;
968 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
969 ac_prev=dvidir ;;
970 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
971 dvidir=$ac_optarg ;;
973 -enable-* | --enable-*)
974 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
975 # Reject names that are not valid shell variable names.
976 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
977 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
978 { (exit 1); exit 1; }; }
979 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
980 eval enable_$ac_feature=\$ac_optarg ;;
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1170 -with-* | --with-*)
1171 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1174 { echo "$as_me: error: invalid package name: $ac_package" >&2
1175 { (exit 1); exit 1; }; }
1176 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1177 eval with_$ac_package=\$ac_optarg ;;
1179 -without-* | --without-*)
1180 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid package name: $ac_package" >&2
1184 { (exit 1); exit 1; }; }
1185 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1186 eval with_$ac_package=no ;;
1188 --x)
1189 # Obsolete; use --with-x.
1190 with_x=yes ;;
1192 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1193 | --x-incl | --x-inc | --x-in | --x-i)
1194 ac_prev=x_includes ;;
1195 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1196 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1197 x_includes=$ac_optarg ;;
1199 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1200 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1201 ac_prev=x_libraries ;;
1202 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1203 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1204 x_libraries=$ac_optarg ;;
1206 -*) { echo "$as_me: error: unrecognized option: $ac_option
1207 Try \`$0 --help' for more information." >&2
1208 { (exit 1); exit 1; }; }
1211 *=*)
1212 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1215 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1216 { (exit 1); exit 1; }; }
1217 eval $ac_envvar=\$ac_optarg
1218 export $ac_envvar ;;
1221 # FIXME: should be removed in autoconf 3.0.
1222 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1223 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1224 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1225 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1228 esac
1229 done
1231 if test -n "$ac_prev"; then
1232 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1233 { echo "$as_me: error: missing argument to $ac_option" >&2
1234 { (exit 1); exit 1; }; }
1237 # Be sure to have absolute directory names.
1238 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1239 datadir sysconfdir sharedstatedir localstatedir includedir \
1240 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1241 libdir localedir mandir
1243 eval ac_val=\$$ac_var
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1249 { (exit 1); exit 1; }; }
1250 done
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1255 build=$build_alias
1256 host=$host_alias
1257 target=$target_alias
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x; then
1261 if test "x$build_alias" = x; then
1262 cross_compiling=maybe
1263 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1264 If a cross compiler is detected then cross compile mode will be used." >&2
1265 elif test "x$build_alias" != "x$host_alias"; then
1266 cross_compiling=yes
1270 ac_tool_prefix=
1271 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1273 test "$silent" = yes && exec 6>/dev/null
1276 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1277 ac_ls_di=`ls -di .` &&
1278 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1279 { echo "$as_me: error: Working directory cannot be determined" >&2
1280 { (exit 1); exit 1; }; }
1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1282 { echo "$as_me: error: pwd does not report name of working directory" >&2
1283 { (exit 1); exit 1; }; }
1286 # Find the source files, if location was not specified.
1287 if test -z "$srcdir"; then
1288 ac_srcdir_defaulted=yes
1289 # Try the directory containing this script, then the parent directory.
1290 ac_confdir=`$as_dirname -- "$0" ||
1291 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1292 X"$0" : 'X\(//\)[^/]' \| \
1293 X"$0" : 'X\(//\)$' \| \
1294 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1295 echo X"$0" |
1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1297 s//\1/
1300 /^X\(\/\/\)[^/].*/{
1301 s//\1/
1304 /^X\(\/\/\)$/{
1305 s//\1/
1308 /^X\(\/\).*/{
1309 s//\1/
1312 s/.*/./; q'`
1313 srcdir=$ac_confdir
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 srcdir=..
1317 else
1318 ac_srcdir_defaulted=no
1320 if test ! -r "$srcdir/$ac_unique_file"; then
1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1322 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1323 { (exit 1); exit 1; }; }
1325 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1326 ac_abs_confdir=`(
1327 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1328 { (exit 1); exit 1; }; }
1329 pwd)`
1330 # When building in place, set srcdir=.
1331 if test "$ac_abs_confdir" = "$ac_pwd"; then
1332 srcdir=.
1334 # Remove unnecessary trailing slashes from srcdir.
1335 # Double slashes in file names in object file debugging info
1336 # mess up M-x gdb in Emacs.
1337 case $srcdir in
1338 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1339 esac
1340 for ac_var in $ac_precious_vars; do
1341 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1342 eval ac_env_${ac_var}_value=\$${ac_var}
1343 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1344 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1345 done
1348 # Report the --help message.
1350 if test "$ac_init_help" = "long"; then
1351 # Omit some internal or obsolete options to make the list less imposing.
1352 # This message is too long to be a string in the A/UX 3.1 sh.
1353 cat <<_ACEOF
1354 \`configure' configures this package to adapt to many kinds of systems.
1356 Usage: $0 [OPTION]... [VAR=VALUE]...
1358 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1359 VAR=VALUE. See below for descriptions of some of the useful variables.
1361 Defaults for the options are specified in brackets.
1363 Configuration:
1364 -h, --help display this help and exit
1365 --help=short display options specific to this package
1366 --help=recursive display the short help of all the included packages
1367 -V, --version display version information and exit
1368 -q, --quiet, --silent do not print \`checking...' messages
1369 --cache-file=FILE cache test results in FILE [disabled]
1370 -C, --config-cache alias for \`--cache-file=config.cache'
1371 -n, --no-create do not create output files
1372 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1374 Installation directories:
1375 --prefix=PREFIX install architecture-independent files in PREFIX
1376 [$ac_default_prefix]
1377 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1378 [PREFIX]
1380 By default, \`make install' will install all the files in
1381 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1382 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1383 for instance \`--prefix=\$HOME'.
1385 For better control, use the options below.
1387 Fine tuning of the installation directories:
1388 --bindir=DIR user executables [EPREFIX/bin]
1389 --sbindir=DIR system admin executables [EPREFIX/sbin]
1390 --libexecdir=DIR program executables [EPREFIX/libexec]
1391 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1392 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1393 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1394 --libdir=DIR object code libraries [EPREFIX/lib]
1395 --includedir=DIR C header files [PREFIX/include]
1396 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1397 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1398 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1399 --infodir=DIR info documentation [DATAROOTDIR/info]
1400 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1401 --mandir=DIR man documentation [DATAROOTDIR/man]
1402 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1403 --htmldir=DIR html documentation [DOCDIR]
1404 --dvidir=DIR dvi documentation [DOCDIR]
1405 --pdfdir=DIR pdf documentation [DOCDIR]
1406 --psdir=DIR ps documentation [DOCDIR]
1407 _ACEOF
1409 cat <<\_ACEOF
1411 X features:
1412 --x-includes=DIR X include files are in DIR
1413 --x-libraries=DIR X library files are in DIR
1415 System types:
1416 --build=BUILD configure for building on BUILD [guessed]
1417 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1418 _ACEOF
1421 if test -n "$ac_init_help"; then
1423 cat <<\_ACEOF
1425 Optional Features:
1426 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1427 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1428 --enable-build-type=TYPE
1429 Select the build type. Available types are:
1430 personal, nightly, snapshot, milestone, release. Do
1431 NOT use this option unless you know what you are
1432 doing! (default=personal)
1433 --enable-debug=list Enable different types of debug. Commas or
1434 whitespaces can be used to separate the items in the
1435 list. Available types of debug are: all, none,
1436 messages, stack, mungwall, modules, symbols. If no
1437 list is provided then "all" is assumed.
1438 (default=none)
1439 --enable-crosstools Build cross-compiler toolchains if necessary
1440 (default=no).
1441 --enable-distcc Use distcc as a front end to the compiler
1442 (default=no).
1443 --enable-ccache Use ccache as a front end to the compiler
1444 (default=no).
1445 --enable-target-variant=NAME
1446 Enable a specific target variant(default=none)
1447 --enable-includes=dir Alternative system include directory
1448 --enable-palm-debug-hack
1449 Enable palm debug output hack in palm native
1450 (default=no)
1451 --enable-nesting-supervisor
1452 Enable nesting supervisor support in unix
1453 (default=no)
1454 --disable-mmu Disable MMU support (default=enabled)
1455 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1456 --enable-x11-shm use X11 shared memory (default=auto)
1457 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1458 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1459 --disable-sdltest Do not try to compile and run a test SDL program
1460 --enable-dbus Enable DBUS support via dbus.library (default=no)
1462 Optional Packages:
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1465 --with-gcc-version=VERSION
1466 Use gcc-VERSION for building AROS
1467 --with-optimization=FLAGS
1468 Use optimization flags FLAGS (default=-O2).
1469 --with-paranoia=FLAGS CC flags to enable paranoia
1470 --with-xcode=PATH Specify XCode path for iOS targets
1471 (default=/Developer).
1472 --with-ios-version=VERSION
1473 Specify minimum supported iOS version (default=3.0).
1474 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1475 --with-sdk=PATH Specify Android SDK path
1476 (default=$default_android_sdk).
1477 --with-ndk=PATH Specify Android NDK path
1478 (default=$default_android_ndk).
1479 --with-android-version=VERSION
1480 Use Android platform VERSION (default=2.2).
1481 --with-portssources=DIR Where to download sourcecode for external ports
1482 --with-bootloader=NAME Use a specific bootloader
1483 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1484 --with-theme=NAME Use a specific GUI Theme
1485 --with-resolution=XRESxYRESxDEPTH
1486 Default resolution of the initial WorkbenchScreen
1487 --with-serial-debug Enable serial debug output in native (default=no)
1488 --with-x use the X Window System
1489 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1490 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1500 CPP C preprocessor
1501 XMKMF Path to xmkmf, Makefile generator for X Window System
1503 Use these variables to override the choices made by `configure' or to help
1504 it to find libraries and programs with nonstandard names/locations.
1506 _ACEOF
1507 ac_status=$?
1510 if test "$ac_init_help" = "recursive"; then
1511 # If there are subdirs, report their specific --help.
1512 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1513 test -d "$ac_dir" || continue
1514 ac_builddir=.
1516 case "$ac_dir" in
1517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1519 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1520 # A ".." for each directory in $ac_dir_suffix.
1521 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1522 case $ac_top_builddir_sub in
1523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1525 esac ;;
1526 esac
1527 ac_abs_top_builddir=$ac_pwd
1528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1529 # for backward compatibility:
1530 ac_top_builddir=$ac_top_build_prefix
1532 case $srcdir in
1533 .) # We are building in place.
1534 ac_srcdir=.
1535 ac_top_srcdir=$ac_top_builddir_sub
1536 ac_abs_top_srcdir=$ac_pwd ;;
1537 [\\/]* | ?:[\\/]* ) # Absolute name.
1538 ac_srcdir=$srcdir$ac_dir_suffix;
1539 ac_top_srcdir=$srcdir
1540 ac_abs_top_srcdir=$srcdir ;;
1541 *) # Relative name.
1542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1543 ac_top_srcdir=$ac_top_build_prefix$srcdir
1544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1545 esac
1546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1548 cd "$ac_dir" || { ac_status=$?; continue; }
1549 # Check for guested configure.
1550 if test -f "$ac_srcdir/configure.gnu"; then
1551 echo &&
1552 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1553 elif test -f "$ac_srcdir/configure"; then
1554 echo &&
1555 $SHELL "$ac_srcdir/configure" --help=recursive
1556 else
1557 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1558 fi || ac_status=$?
1559 cd "$ac_pwd" || { ac_status=$?; break; }
1560 done
1563 test -n "$ac_init_help" && exit $ac_status
1564 if $ac_init_version; then
1565 cat <<\_ACEOF
1566 configure
1567 generated by GNU Autoconf 2.61
1569 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1570 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1571 This configure script is free software; the Free Software Foundation
1572 gives unlimited permission to copy, distribute and modify it.
1573 _ACEOF
1574 exit
1576 cat >config.log <<_ACEOF
1577 This file contains any messages produced by compilers while
1578 running configure, to aid debugging if configure makes a mistake.
1580 It was created by $as_me, which was
1581 generated by GNU Autoconf 2.61. Invocation command line was
1583 $ $0 $@
1585 _ACEOF
1586 exec 5>>config.log
1588 cat <<_ASUNAME
1589 ## --------- ##
1590 ## Platform. ##
1591 ## --------- ##
1593 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1594 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1595 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1596 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1597 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1599 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1600 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1602 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1603 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1604 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1605 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1606 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1607 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1608 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1610 _ASUNAME
1612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1613 for as_dir in $PATH
1615 IFS=$as_save_IFS
1616 test -z "$as_dir" && as_dir=.
1617 echo "PATH: $as_dir"
1618 done
1619 IFS=$as_save_IFS
1621 } >&5
1623 cat >&5 <<_ACEOF
1626 ## ----------- ##
1627 ## Core tests. ##
1628 ## ----------- ##
1630 _ACEOF
1633 # Keep a trace of the command line.
1634 # Strip out --no-create and --no-recursion so they do not pile up.
1635 # Strip out --silent because we don't want to record it for future runs.
1636 # Also quote any args containing shell meta-characters.
1637 # Make two passes to allow for proper duplicate-argument suppression.
1638 ac_configure_args=
1639 ac_configure_args0=
1640 ac_configure_args1=
1641 ac_must_keep_next=false
1642 for ac_pass in 1 2
1644 for ac_arg
1646 case $ac_arg in
1647 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1649 | -silent | --silent | --silen | --sile | --sil)
1650 continue ;;
1651 *\'*)
1652 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1653 esac
1654 case $ac_pass in
1655 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1657 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1658 if test $ac_must_keep_next = true; then
1659 ac_must_keep_next=false # Got value, back to normal.
1660 else
1661 case $ac_arg in
1662 *=* | --config-cache | -C | -disable-* | --disable-* \
1663 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1664 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1665 | -with-* | --with-* | -without-* | --without-* | --x)
1666 case "$ac_configure_args0 " in
1667 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1668 esac
1670 -* ) ac_must_keep_next=true ;;
1671 esac
1673 ac_configure_args="$ac_configure_args '$ac_arg'"
1675 esac
1676 done
1677 done
1678 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1679 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1681 # When interrupted or exit'd, cleanup temporary files, and complete
1682 # config.log. We remove comments because anyway the quotes in there
1683 # would cause problems or look ugly.
1684 # WARNING: Use '\'' to represent an apostrophe within the trap.
1685 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1686 trap 'exit_status=$?
1687 # Save into config.log some information that might help in debugging.
1689 echo
1691 cat <<\_ASBOX
1692 ## ---------------- ##
1693 ## Cache variables. ##
1694 ## ---------------- ##
1695 _ASBOX
1696 echo
1697 # The following way of writing the cache mishandles newlines in values,
1699 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1700 eval ac_val=\$$ac_var
1701 case $ac_val in #(
1702 *${as_nl}*)
1703 case $ac_var in #(
1704 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1705 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1706 esac
1707 case $ac_var in #(
1708 _ | IFS | as_nl) ;; #(
1709 *) $as_unset $ac_var ;;
1710 esac ;;
1711 esac
1712 done
1713 (set) 2>&1 |
1714 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1715 *${as_nl}ac_space=\ *)
1716 sed -n \
1717 "s/'\''/'\''\\\\'\'''\''/g;
1718 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1719 ;; #(
1721 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1723 esac |
1724 sort
1726 echo
1728 cat <<\_ASBOX
1729 ## ----------------- ##
1730 ## Output variables. ##
1731 ## ----------------- ##
1732 _ASBOX
1733 echo
1734 for ac_var in $ac_subst_vars
1736 eval ac_val=\$$ac_var
1737 case $ac_val in
1738 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1739 esac
1740 echo "$ac_var='\''$ac_val'\''"
1741 done | sort
1742 echo
1744 if test -n "$ac_subst_files"; then
1745 cat <<\_ASBOX
1746 ## ------------------- ##
1747 ## File substitutions. ##
1748 ## ------------------- ##
1749 _ASBOX
1750 echo
1751 for ac_var in $ac_subst_files
1753 eval ac_val=\$$ac_var
1754 case $ac_val in
1755 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1756 esac
1757 echo "$ac_var='\''$ac_val'\''"
1758 done | sort
1759 echo
1762 if test -s confdefs.h; then
1763 cat <<\_ASBOX
1764 ## ----------- ##
1765 ## confdefs.h. ##
1766 ## ----------- ##
1767 _ASBOX
1768 echo
1769 cat confdefs.h
1770 echo
1772 test "$ac_signal" != 0 &&
1773 echo "$as_me: caught signal $ac_signal"
1774 echo "$as_me: exit $exit_status"
1775 } >&5
1776 rm -f core *.core core.conftest.* &&
1777 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1778 exit $exit_status
1780 for ac_signal in 1 2 13 15; do
1781 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1782 done
1783 ac_signal=0
1785 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1786 rm -f -r conftest* confdefs.h
1788 # Predefined preprocessor variables.
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_NAME "$PACKAGE_NAME"
1792 _ACEOF
1795 cat >>confdefs.h <<_ACEOF
1796 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1797 _ACEOF
1800 cat >>confdefs.h <<_ACEOF
1801 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1802 _ACEOF
1805 cat >>confdefs.h <<_ACEOF
1806 #define PACKAGE_STRING "$PACKAGE_STRING"
1807 _ACEOF
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1812 _ACEOF
1815 # Let the site file select an alternate cache file if it wants to.
1816 # Prefer explicitly selected file to automatically selected ones.
1817 if test -n "$CONFIG_SITE"; then
1818 set x "$CONFIG_SITE"
1819 elif test "x$prefix" != xNONE; then
1820 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1821 else
1822 set x "$ac_default_prefix/share/config.site" \
1823 "$ac_default_prefix/etc/config.site"
1825 shift
1826 for ac_site_file
1828 if test -r "$ac_site_file"; then
1829 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1830 echo "$as_me: loading site script $ac_site_file" >&6;}
1831 sed 's/^/| /' "$ac_site_file" >&5
1832 . "$ac_site_file"
1834 done
1836 if test -r "$cache_file"; then
1837 # Some versions of bash will fail to source /dev/null (special
1838 # files actually), so we avoid doing that.
1839 if test -f "$cache_file"; then
1840 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1841 echo "$as_me: loading cache $cache_file" >&6;}
1842 case $cache_file in
1843 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1844 *) . "./$cache_file";;
1845 esac
1847 else
1848 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1849 echo "$as_me: creating cache $cache_file" >&6;}
1850 >$cache_file
1853 # Check that the precious variables saved in the cache have kept the same
1854 # value.
1855 ac_cache_corrupted=false
1856 for ac_var in $ac_precious_vars; do
1857 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1858 eval ac_new_set=\$ac_env_${ac_var}_set
1859 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1860 eval ac_new_val=\$ac_env_${ac_var}_value
1861 case $ac_old_set,$ac_new_set in
1862 set,)
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1866 ,set)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,);;
1872 if test "x$ac_old_val" != "x$ac_new_val"; then
1873 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1874 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1875 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1876 echo "$as_me: former value: $ac_old_val" >&2;}
1877 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1878 echo "$as_me: current value: $ac_new_val" >&2;}
1879 ac_cache_corrupted=:
1880 fi;;
1881 esac
1882 # Pass precious variables to config.status.
1883 if test "$ac_new_set" = set; then
1884 case $ac_new_val in
1885 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1886 *) ac_arg=$ac_var=$ac_new_val ;;
1887 esac
1888 case " $ac_configure_args " in
1889 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1890 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1891 esac
1893 done
1894 if $ac_cache_corrupted; then
1895 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1896 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1897 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1898 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1899 { (exit 1); exit 1; }; }
1918 ac_ext=c
1919 ac_cpp='$CPP $CPPFLAGS'
1920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1926 ac_aux_dir=
1927 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1928 if test -f "$ac_dir/install-sh"; then
1929 ac_aux_dir=$ac_dir
1930 ac_install_sh="$ac_aux_dir/install-sh -c"
1931 break
1932 elif test -f "$ac_dir/install.sh"; then
1933 ac_aux_dir=$ac_dir
1934 ac_install_sh="$ac_aux_dir/install.sh -c"
1935 break
1936 elif test -f "$ac_dir/shtool"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/shtool install -c"
1939 break
1941 done
1942 if test -z "$ac_aux_dir"; then
1943 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1944 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1945 { (exit 1); exit 1; }; }
1948 # These three variables are undocumented and unsupported,
1949 # and are intended to be withdrawn in a future Autoconf release.
1950 # They can cause serious problems if a builder's source tree is in a directory
1951 # whose full name contains unusual characters.
1952 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1953 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1954 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1958 # Check what host we are running on.
1959 # If a target is not suggested, we use this one.
1960 # Note that what we call a target, Autoconf calls a host.
1961 # Make sure we can run config.sub.
1962 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1963 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1964 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1965 { (exit 1); exit 1; }; }
1967 { echo "$as_me:$LINENO: checking build system type" >&5
1968 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1969 if test "${ac_cv_build+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 ac_build_alias=$build_alias
1973 test "x$ac_build_alias" = x &&
1974 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1975 test "x$ac_build_alias" = x &&
1976 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1977 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1978 { (exit 1); exit 1; }; }
1979 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1980 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1981 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1982 { (exit 1); exit 1; }; }
1985 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1986 echo "${ECHO_T}$ac_cv_build" >&6; }
1987 case $ac_cv_build in
1988 *-*-*) ;;
1989 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1990 echo "$as_me: error: invalid value of canonical build" >&2;}
1991 { (exit 1); exit 1; }; };;
1992 esac
1993 build=$ac_cv_build
1994 ac_save_IFS=$IFS; IFS='-'
1995 set x $ac_cv_build
1996 shift
1997 build_cpu=$1
1998 build_vendor=$2
1999 shift; shift
2000 # Remember, the first character of IFS is used to create $*,
2001 # except with old shells:
2002 build_os=$*
2003 IFS=$ac_save_IFS
2004 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2007 { echo "$as_me:$LINENO: checking host system type" >&5
2008 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2009 if test "${ac_cv_host+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012 if test "x$host_alias" = x; then
2013 ac_cv_host=$ac_cv_build
2014 else
2015 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2016 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2017 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2018 { (exit 1); exit 1; }; }
2022 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2023 echo "${ECHO_T}$ac_cv_host" >&6; }
2024 case $ac_cv_host in
2025 *-*-*) ;;
2026 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2027 echo "$as_me: error: invalid value of canonical host" >&2;}
2028 { (exit 1); exit 1; }; };;
2029 esac
2030 host=$ac_cv_host
2031 ac_save_IFS=$IFS; IFS='-'
2032 set x $ac_cv_host
2033 shift
2034 host_cpu=$1
2035 host_vendor=$2
2036 shift; shift
2037 # Remember, the first character of IFS is used to create $*,
2038 # except with old shells:
2039 host_os=$*
2040 IFS=$ac_save_IFS
2041 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2045 # The AROS target is slightly different to the normal GNU style
2046 # format. We don't have the middle part, and we reverse the order
2047 # of the $(CPU) and $(OS) bits.
2049 # Don't strip the version of the target yet, it might be
2050 # useful on some systems.
2052 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2053 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2055 if test "$target" = "NONE" ; then
2056 target=$host_os-$host_cpu
2057 cross_compile=no
2058 else
2059 if test "$target" = "" ; then
2060 target=$host_os-$host_cpu
2061 cross_compile=no
2062 else
2063 cross_compile=yes
2066 { echo "$as_me:$LINENO: result: $target" >&5
2067 echo "${ECHO_T}$target" >&6; }
2069 if test "$host_os" = "mingw32" ; then
2070 PWDCMD="pwd -W"
2073 #don't know where else to put this...
2074 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2075 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2076 AROS_BUILDDIR=`${PWDCMD-pwd}`
2077 AROS_BUILDDIR_UNIX=${PWD}
2078 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2079 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2081 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2082 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2083 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2084 SRCDIR=${srcpwd}
2085 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2086 echo "${ECHO_T}$SRCDIR" >&6; }
2088 # Parse the target field into something useful.
2090 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2091 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2094 aros_default_wbwidth=800
2095 aros_default_wbheight=600
2096 aros_default_wbdepth=4
2099 # The first step is to find the host binaries.
2100 # Check for a compiler.
2101 ac_ext=c
2102 ac_cpp='$CPP $CPPFLAGS'
2103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2106 if test -n "$ac_tool_prefix"; then
2107 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2108 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2111 if test "${ac_cv_prog_CC+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114 if test -n "$CC"; then
2115 ac_cv_prog_CC="$CC" # Let the user override the test.
2116 else
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 for as_dir in $PATH
2120 IFS=$as_save_IFS
2121 test -z "$as_dir" && as_dir=.
2122 for ac_exec_ext in '' $ac_executable_extensions; do
2123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2124 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126 break 2
2128 done
2129 done
2130 IFS=$as_save_IFS
2134 CC=$ac_cv_prog_CC
2135 if test -n "$CC"; then
2136 { echo "$as_me:$LINENO: result: $CC" >&5
2137 echo "${ECHO_T}$CC" >&6; }
2138 else
2139 { echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6; }
2145 if test -z "$ac_cv_prog_CC"; then
2146 ac_ct_CC=$CC
2147 # Extract the first word of "gcc", so it can be a program name with args.
2148 set dummy gcc; ac_word=$2
2149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 if test -n "$ac_ct_CC"; then
2155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2156 else
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2160 IFS=$as_save_IFS
2161 test -z "$as_dir" && as_dir=.
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164 ac_cv_prog_ac_ct_CC="gcc"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 break 2
2168 done
2169 done
2170 IFS=$as_save_IFS
2174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2175 if test -n "$ac_ct_CC"; then
2176 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2177 echo "${ECHO_T}$ac_ct_CC" >&6; }
2178 else
2179 { echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6; }
2183 if test "x$ac_ct_CC" = x; then
2184 CC=""
2185 else
2186 case $cross_compiling:$ac_tool_warned in
2187 yes:)
2188 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2189 whose name does not start with the host triplet. If you think this
2190 configuration is useful to you, please write to autoconf@gnu.org." >&5
2191 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2192 whose name does not start with the host triplet. If you think this
2193 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2194 ac_tool_warned=yes ;;
2195 esac
2196 CC=$ac_ct_CC
2198 else
2199 CC="$ac_cv_prog_CC"
2202 if test -z "$CC"; then
2203 if test -n "$ac_tool_prefix"; then
2204 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2205 set dummy ${ac_tool_prefix}cc; ac_word=$2
2206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2208 if test "${ac_cv_prog_CC+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211 if test -n "$CC"; then
2212 ac_cv_prog_CC="$CC" # Let the user override the test.
2213 else
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221 ac_cv_prog_CC="${ac_tool_prefix}cc"
2222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2223 break 2
2225 done
2226 done
2227 IFS=$as_save_IFS
2231 CC=$ac_cv_prog_CC
2232 if test -n "$CC"; then
2233 { echo "$as_me:$LINENO: result: $CC" >&5
2234 echo "${ECHO_T}$CC" >&6; }
2235 else
2236 { echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6; }
2243 if test -z "$CC"; then
2244 # Extract the first word of "cc", so it can be a program name with args.
2245 set dummy cc; ac_word=$2
2246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2248 if test "${ac_cv_prog_CC+set}" = set; then
2249 echo $ECHO_N "(cached) $ECHO_C" >&6
2250 else
2251 if test -n "$CC"; then
2252 ac_cv_prog_CC="$CC" # Let the user override the test.
2253 else
2254 ac_prog_rejected=no
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2258 IFS=$as_save_IFS
2259 test -z "$as_dir" && as_dir=.
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2262 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2263 ac_prog_rejected=yes
2264 continue
2266 ac_cv_prog_CC="cc"
2267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2268 break 2
2270 done
2271 done
2272 IFS=$as_save_IFS
2274 if test $ac_prog_rejected = yes; then
2275 # We found a bogon in the path, so make sure we never use it.
2276 set dummy $ac_cv_prog_CC
2277 shift
2278 if test $# != 0; then
2279 # We chose a different compiler from the bogus one.
2280 # However, it has the same basename, so the bogon will be chosen
2281 # first if we set CC to just the basename; use the full file name.
2282 shift
2283 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2288 CC=$ac_cv_prog_CC
2289 if test -n "$CC"; then
2290 { echo "$as_me:$LINENO: result: $CC" >&5
2291 echo "${ECHO_T}$CC" >&6; }
2292 else
2293 { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2299 if test -z "$CC"; then
2300 if test -n "$ac_tool_prefix"; then
2301 for ac_prog in cl.exe
2303 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2304 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2307 if test "${ac_cv_prog_CC+set}" = set; then
2308 echo $ECHO_N "(cached) $ECHO_C" >&6
2309 else
2310 if test -n "$CC"; then
2311 ac_cv_prog_CC="$CC" # Let the user override the test.
2312 else
2313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2314 for as_dir in $PATH
2316 IFS=$as_save_IFS
2317 test -z "$as_dir" && as_dir=.
2318 for ac_exec_ext in '' $ac_executable_extensions; do
2319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2320 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2322 break 2
2324 done
2325 done
2326 IFS=$as_save_IFS
2330 CC=$ac_cv_prog_CC
2331 if test -n "$CC"; then
2332 { echo "$as_me:$LINENO: result: $CC" >&5
2333 echo "${ECHO_T}$CC" >&6; }
2334 else
2335 { echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6; }
2340 test -n "$CC" && break
2341 done
2343 if test -z "$CC"; then
2344 ac_ct_CC=$CC
2345 for ac_prog in cl.exe
2347 # Extract the first word of "$ac_prog", so it can be a program name with args.
2348 set dummy $ac_prog; ac_word=$2
2349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2351 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354 if test -n "$ac_ct_CC"; then
2355 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2356 else
2357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2358 for as_dir in $PATH
2360 IFS=$as_save_IFS
2361 test -z "$as_dir" && as_dir=.
2362 for ac_exec_ext in '' $ac_executable_extensions; do
2363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2364 ac_cv_prog_ac_ct_CC="$ac_prog"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2368 done
2369 done
2370 IFS=$as_save_IFS
2374 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2375 if test -n "$ac_ct_CC"; then
2376 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2377 echo "${ECHO_T}$ac_ct_CC" >&6; }
2378 else
2379 { echo "$as_me:$LINENO: result: no" >&5
2380 echo "${ECHO_T}no" >&6; }
2384 test -n "$ac_ct_CC" && break
2385 done
2387 if test "x$ac_ct_CC" = x; then
2388 CC=""
2389 else
2390 case $cross_compiling:$ac_tool_warned in
2391 yes:)
2392 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2393 whose name does not start with the host triplet. If you think this
2394 configuration is useful to you, please write to autoconf@gnu.org." >&5
2395 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2396 whose name does not start with the host triplet. If you think this
2397 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2398 ac_tool_warned=yes ;;
2399 esac
2400 CC=$ac_ct_CC
2407 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2408 See \`config.log' for more details." >&5
2409 echo "$as_me: error: no acceptable C compiler found in \$PATH
2410 See \`config.log' for more details." >&2;}
2411 { (exit 1); exit 1; }; }
2413 # Provide some information about the compiler.
2414 echo "$as_me:$LINENO: checking for C compiler version" >&5
2415 ac_compiler=`set X $ac_compile; echo $2`
2416 { (ac_try="$ac_compiler --version >&5"
2417 case "(($ac_try" in
2418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2419 *) ac_try_echo=$ac_try;;
2420 esac
2421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2422 (eval "$ac_compiler --version >&5") 2>&5
2423 ac_status=$?
2424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425 (exit $ac_status); }
2426 { (ac_try="$ac_compiler -v >&5"
2427 case "(($ac_try" in
2428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2429 *) ac_try_echo=$ac_try;;
2430 esac
2431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2432 (eval "$ac_compiler -v >&5") 2>&5
2433 ac_status=$?
2434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2435 (exit $ac_status); }
2436 { (ac_try="$ac_compiler -V >&5"
2437 case "(($ac_try" in
2438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2439 *) ac_try_echo=$ac_try;;
2440 esac
2441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2442 (eval "$ac_compiler -V >&5") 2>&5
2443 ac_status=$?
2444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2445 (exit $ac_status); }
2447 cat >conftest.$ac_ext <<_ACEOF
2448 /* confdefs.h. */
2449 _ACEOF
2450 cat confdefs.h >>conftest.$ac_ext
2451 cat >>conftest.$ac_ext <<_ACEOF
2452 /* end confdefs.h. */
2455 main ()
2459 return 0;
2461 _ACEOF
2462 ac_clean_files_save=$ac_clean_files
2463 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2464 # Try to create an executable without -o first, disregard a.out.
2465 # It will help us diagnose broken compilers, and finding out an intuition
2466 # of exeext.
2467 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2468 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2469 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2471 # List of possible output files, starting from the most likely.
2472 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2473 # only as a last resort. b.out is created by i960 compilers.
2474 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2476 # The IRIX 6 linker writes into existing files which may not be
2477 # executable, retaining their permissions. Remove them first so a
2478 # subsequent execution test works.
2479 ac_rmfiles=
2480 for ac_file in $ac_files
2482 case $ac_file in
2483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2484 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2485 esac
2486 done
2487 rm -f $ac_rmfiles
2489 if { (ac_try="$ac_link_default"
2490 case "(($ac_try" in
2491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2492 *) ac_try_echo=$ac_try;;
2493 esac
2494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2495 (eval "$ac_link_default") 2>&5
2496 ac_status=$?
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); }; then
2499 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2500 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2501 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2502 # so that the user can short-circuit this test for compilers unknown to
2503 # Autoconf.
2504 for ac_file in $ac_files ''
2506 test -f "$ac_file" || continue
2507 case $ac_file in
2508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2510 [ab].out )
2511 # We found the default executable, but exeext='' is most
2512 # certainly right.
2513 break;;
2514 *.* )
2515 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2516 then :; else
2517 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2519 # We set ac_cv_exeext here because the later test for it is not
2520 # safe: cross compilers may not add the suffix if given an `-o'
2521 # argument, so we may need to know it at that point already.
2522 # Even if this section looks crufty: it has the advantage of
2523 # actually working.
2524 break;;
2526 break;;
2527 esac
2528 done
2529 test "$ac_cv_exeext" = no && ac_cv_exeext=
2531 else
2532 ac_file=''
2535 { echo "$as_me:$LINENO: result: $ac_file" >&5
2536 echo "${ECHO_T}$ac_file" >&6; }
2537 if test -z "$ac_file"; then
2538 echo "$as_me: failed program was:" >&5
2539 sed 's/^/| /' conftest.$ac_ext >&5
2541 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2542 See \`config.log' for more details." >&5
2543 echo "$as_me: error: C compiler cannot create executables
2544 See \`config.log' for more details." >&2;}
2545 { (exit 77); exit 77; }; }
2548 ac_exeext=$ac_cv_exeext
2550 # Check that the compiler produces executables we can run. If not, either
2551 # the compiler is broken, or we cross compile.
2552 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2553 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2554 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2555 # If not cross compiling, check that we can run a simple program.
2556 if test "$cross_compiling" != yes; then
2557 if { ac_try='./$ac_file'
2558 { (case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2561 esac
2562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563 (eval "$ac_try") 2>&5
2564 ac_status=$?
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2567 cross_compiling=no
2568 else
2569 if test "$cross_compiling" = maybe; then
2570 cross_compiling=yes
2571 else
2572 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2573 If you meant to cross compile, use \`--host'.
2574 See \`config.log' for more details." >&5
2575 echo "$as_me: error: cannot run C compiled programs.
2576 If you meant to cross compile, use \`--host'.
2577 See \`config.log' for more details." >&2;}
2578 { (exit 1); exit 1; }; }
2582 { echo "$as_me:$LINENO: result: yes" >&5
2583 echo "${ECHO_T}yes" >&6; }
2585 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2586 ac_clean_files=$ac_clean_files_save
2587 # Check that the compiler produces executables we can run. If not, either
2588 # the compiler is broken, or we cross compile.
2589 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2590 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2591 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2592 echo "${ECHO_T}$cross_compiling" >&6; }
2594 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2595 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2596 if { (ac_try="$ac_link"
2597 case "(($ac_try" in
2598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2599 *) ac_try_echo=$ac_try;;
2600 esac
2601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2602 (eval "$ac_link") 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; then
2606 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2607 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2608 # work properly (i.e., refer to `conftest.exe'), while it won't with
2609 # `rm'.
2610 for ac_file in conftest.exe conftest conftest.*; do
2611 test -f "$ac_file" || continue
2612 case $ac_file in
2613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2614 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2615 break;;
2616 * ) break;;
2617 esac
2618 done
2619 else
2620 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2621 See \`config.log' for more details." >&5
2622 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2623 See \`config.log' for more details." >&2;}
2624 { (exit 1); exit 1; }; }
2627 rm -f conftest$ac_cv_exeext
2628 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2629 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2631 rm -f conftest.$ac_ext
2632 EXEEXT=$ac_cv_exeext
2633 ac_exeext=$EXEEXT
2634 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2635 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2636 if test "${ac_cv_objext+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 cat >conftest.$ac_ext <<_ACEOF
2640 /* confdefs.h. */
2641 _ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2647 main ()
2651 return 0;
2653 _ACEOF
2654 rm -f conftest.o conftest.obj
2655 if { (ac_try="$ac_compile"
2656 case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_compile") 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; then
2665 for ac_file in conftest.o conftest.obj conftest.*; do
2666 test -f "$ac_file" || continue;
2667 case $ac_file in
2668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2669 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2670 break;;
2671 esac
2672 done
2673 else
2674 echo "$as_me: failed program was:" >&5
2675 sed 's/^/| /' conftest.$ac_ext >&5
2677 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2678 See \`config.log' for more details." >&5
2679 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2680 See \`config.log' for more details." >&2;}
2681 { (exit 1); exit 1; }; }
2684 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2686 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2687 echo "${ECHO_T}$ac_cv_objext" >&6; }
2688 OBJEXT=$ac_cv_objext
2689 ac_objext=$OBJEXT
2690 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2691 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2692 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2693 echo $ECHO_N "(cached) $ECHO_C" >&6
2694 else
2695 cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h. */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h. */
2703 main ()
2705 #ifndef __GNUC__
2706 choke me
2707 #endif
2710 return 0;
2712 _ACEOF
2713 rm -f conftest.$ac_objext
2714 if { (ac_try="$ac_compile"
2715 case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718 esac
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compile") 2>conftest.er1
2721 ac_status=$?
2722 grep -v '^ *+' conftest.er1 >conftest.err
2723 rm -f conftest.er1
2724 cat conftest.err >&5
2725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2726 (exit $ac_status); } && {
2727 test -z "$ac_c_werror_flag" ||
2728 test ! -s conftest.err
2729 } && test -s conftest.$ac_objext; then
2730 ac_compiler_gnu=yes
2731 else
2732 echo "$as_me: failed program was:" >&5
2733 sed 's/^/| /' conftest.$ac_ext >&5
2735 ac_compiler_gnu=no
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2739 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2742 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2743 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2744 GCC=`test $ac_compiler_gnu = yes && echo yes`
2745 ac_test_CFLAGS=${CFLAGS+set}
2746 ac_save_CFLAGS=$CFLAGS
2747 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2748 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2749 if test "${ac_cv_prog_cc_g+set}" = set; then
2750 echo $ECHO_N "(cached) $ECHO_C" >&6
2751 else
2752 ac_save_c_werror_flag=$ac_c_werror_flag
2753 ac_c_werror_flag=yes
2754 ac_cv_prog_cc_g=no
2755 CFLAGS="-g"
2756 cat >conftest.$ac_ext <<_ACEOF
2757 /* confdefs.h. */
2758 _ACEOF
2759 cat confdefs.h >>conftest.$ac_ext
2760 cat >>conftest.$ac_ext <<_ACEOF
2761 /* end confdefs.h. */
2764 main ()
2768 return 0;
2770 _ACEOF
2771 rm -f conftest.$ac_objext
2772 if { (ac_try="$ac_compile"
2773 case "(($ac_try" in
2774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2775 *) ac_try_echo=$ac_try;;
2776 esac
2777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2778 (eval "$ac_compile") 2>conftest.er1
2779 ac_status=$?
2780 grep -v '^ *+' conftest.er1 >conftest.err
2781 rm -f conftest.er1
2782 cat conftest.err >&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); } && {
2785 test -z "$ac_c_werror_flag" ||
2786 test ! -s conftest.err
2787 } && test -s conftest.$ac_objext; then
2788 ac_cv_prog_cc_g=yes
2789 else
2790 echo "$as_me: failed program was:" >&5
2791 sed 's/^/| /' conftest.$ac_ext >&5
2793 CFLAGS=""
2794 cat >conftest.$ac_ext <<_ACEOF
2795 /* confdefs.h. */
2796 _ACEOF
2797 cat confdefs.h >>conftest.$ac_ext
2798 cat >>conftest.$ac_ext <<_ACEOF
2799 /* end confdefs.h. */
2802 main ()
2806 return 0;
2808 _ACEOF
2809 rm -f conftest.$ac_objext
2810 if { (ac_try="$ac_compile"
2811 case "(($ac_try" in
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2814 esac
2815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_compile") 2>conftest.er1
2817 ac_status=$?
2818 grep -v '^ *+' conftest.er1 >conftest.err
2819 rm -f conftest.er1
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } && {
2823 test -z "$ac_c_werror_flag" ||
2824 test ! -s conftest.err
2825 } && test -s conftest.$ac_objext; then
2827 else
2828 echo "$as_me: failed program was:" >&5
2829 sed 's/^/| /' conftest.$ac_ext >&5
2831 ac_c_werror_flag=$ac_save_c_werror_flag
2832 CFLAGS="-g"
2833 cat >conftest.$ac_ext <<_ACEOF
2834 /* confdefs.h. */
2835 _ACEOF
2836 cat confdefs.h >>conftest.$ac_ext
2837 cat >>conftest.$ac_ext <<_ACEOF
2838 /* end confdefs.h. */
2841 main ()
2845 return 0;
2847 _ACEOF
2848 rm -f conftest.$ac_objext
2849 if { (ac_try="$ac_compile"
2850 case "(($ac_try" in
2851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2852 *) ac_try_echo=$ac_try;;
2853 esac
2854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2855 (eval "$ac_compile") 2>conftest.er1
2856 ac_status=$?
2857 grep -v '^ *+' conftest.er1 >conftest.err
2858 rm -f conftest.er1
2859 cat conftest.err >&5
2860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); } && {
2862 test -z "$ac_c_werror_flag" ||
2863 test ! -s conftest.err
2864 } && test -s conftest.$ac_objext; then
2865 ac_cv_prog_cc_g=yes
2866 else
2867 echo "$as_me: failed program was:" >&5
2868 sed 's/^/| /' conftest.$ac_ext >&5
2873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2880 ac_c_werror_flag=$ac_save_c_werror_flag
2882 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2883 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2884 if test "$ac_test_CFLAGS" = set; then
2885 CFLAGS=$ac_save_CFLAGS
2886 elif test $ac_cv_prog_cc_g = yes; then
2887 if test "$GCC" = yes; then
2888 CFLAGS="-g -O2"
2889 else
2890 CFLAGS="-g"
2892 else
2893 if test "$GCC" = yes; then
2894 CFLAGS="-O2"
2895 else
2896 CFLAGS=
2899 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2900 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2901 if test "${ac_cv_prog_cc_c89+set}" = set; then
2902 echo $ECHO_N "(cached) $ECHO_C" >&6
2903 else
2904 ac_cv_prog_cc_c89=no
2905 ac_save_CC=$CC
2906 cat >conftest.$ac_ext <<_ACEOF
2907 /* confdefs.h. */
2908 _ACEOF
2909 cat confdefs.h >>conftest.$ac_ext
2910 cat >>conftest.$ac_ext <<_ACEOF
2911 /* end confdefs.h. */
2912 #include <stdarg.h>
2913 #include <stdio.h>
2914 #include <sys/types.h>
2915 #include <sys/stat.h>
2916 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2917 struct buf { int x; };
2918 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2919 static char *e (p, i)
2920 char **p;
2921 int i;
2923 return p[i];
2925 static char *f (char * (*g) (char **, int), char **p, ...)
2927 char *s;
2928 va_list v;
2929 va_start (v,p);
2930 s = g (p, va_arg (v,int));
2931 va_end (v);
2932 return s;
2935 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2936 function prototypes and stuff, but not '\xHH' hex character constants.
2937 These don't provoke an error unfortunately, instead are silently treated
2938 as 'x'. The following induces an error, until -std is added to get
2939 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2940 array size at least. It's necessary to write '\x00'==0 to get something
2941 that's true only with -std. */
2942 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2944 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2945 inside strings and character constants. */
2946 #define FOO(x) 'x'
2947 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2949 int test (int i, double x);
2950 struct s1 {int (*f) (int a);};
2951 struct s2 {int (*f) (double a);};
2952 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2953 int argc;
2954 char **argv;
2956 main ()
2958 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2960 return 0;
2962 _ACEOF
2963 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2964 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2966 CC="$ac_save_CC $ac_arg"
2967 rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2969 case "(($ac_try" in
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2972 esac
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compile") 2>conftest.er1
2975 ac_status=$?
2976 grep -v '^ *+' conftest.er1 >conftest.err
2977 rm -f conftest.er1
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } && {
2981 test -z "$ac_c_werror_flag" ||
2982 test ! -s conftest.err
2983 } && test -s conftest.$ac_objext; then
2984 ac_cv_prog_cc_c89=$ac_arg
2985 else
2986 echo "$as_me: failed program was:" >&5
2987 sed 's/^/| /' conftest.$ac_ext >&5
2992 rm -f core conftest.err conftest.$ac_objext
2993 test "x$ac_cv_prog_cc_c89" != "xno" && break
2994 done
2995 rm -f conftest.$ac_ext
2996 CC=$ac_save_CC
2999 # AC_CACHE_VAL
3000 case "x$ac_cv_prog_cc_c89" in
3002 { echo "$as_me:$LINENO: result: none needed" >&5
3003 echo "${ECHO_T}none needed" >&6; } ;;
3004 xno)
3005 { echo "$as_me:$LINENO: result: unsupported" >&5
3006 echo "${ECHO_T}unsupported" >&6; } ;;
3008 CC="$CC $ac_cv_prog_cc_c89"
3009 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3010 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3011 esac
3014 ac_ext=c
3015 ac_cpp='$CPP $CPPFLAGS'
3016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3020 case $ac_cv_prog_cc_stdc in
3021 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3022 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3023 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_cc_c99+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 else
3027 ac_cv_prog_cc_c99=no
3028 ac_save_CC=$CC
3029 cat >conftest.$ac_ext <<_ACEOF
3030 /* confdefs.h. */
3031 _ACEOF
3032 cat confdefs.h >>conftest.$ac_ext
3033 cat >>conftest.$ac_ext <<_ACEOF
3034 /* end confdefs.h. */
3035 #include <stdarg.h>
3036 #include <stdbool.h>
3037 #include <stdlib.h>
3038 #include <wchar.h>
3039 #include <stdio.h>
3041 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3042 #define debug(...) fprintf (stderr, __VA_ARGS__)
3043 #define showlist(...) puts (#__VA_ARGS__)
3044 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3045 static void
3046 test_varargs_macros (void)
3048 int x = 1234;
3049 int y = 5678;
3050 debug ("Flag");
3051 debug ("X = %d\n", x);
3052 showlist (The first, second, and third items.);
3053 report (x>y, "x is %d but y is %d", x, y);
3056 // Check long long types.
3057 #define BIG64 18446744073709551615ull
3058 #define BIG32 4294967295ul
3059 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3060 #if !BIG_OK
3061 your preprocessor is broken;
3062 #endif
3063 #if BIG_OK
3064 #else
3065 your preprocessor is broken;
3066 #endif
3067 static long long int bignum = -9223372036854775807LL;
3068 static unsigned long long int ubignum = BIG64;
3070 struct incomplete_array
3072 int datasize;
3073 double data[];
3076 struct named_init {
3077 int number;
3078 const wchar_t *name;
3079 double average;
3082 typedef const char *ccp;
3084 static inline int
3085 test_restrict (ccp restrict text)
3087 // See if C++-style comments work.
3088 // Iterate through items via the restricted pointer.
3089 // Also check for declarations in for loops.
3090 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3091 continue;
3092 return 0;
3095 // Check varargs and va_copy.
3096 static void
3097 test_varargs (const char *format, ...)
3099 va_list args;
3100 va_start (args, format);
3101 va_list args_copy;
3102 va_copy (args_copy, args);
3104 const char *str;
3105 int number;
3106 float fnumber;
3108 while (*format)
3110 switch (*format++)
3112 case 's': // string
3113 str = va_arg (args_copy, const char *);
3114 break;
3115 case 'd': // int
3116 number = va_arg (args_copy, int);
3117 break;
3118 case 'f': // float
3119 fnumber = va_arg (args_copy, double);
3120 break;
3121 default:
3122 break;
3125 va_end (args_copy);
3126 va_end (args);
3130 main ()
3133 // Check bool.
3134 _Bool success = false;
3136 // Check restrict.
3137 if (test_restrict ("String literal") == 0)
3138 success = true;
3139 char *restrict newvar = "Another string";
3141 // Check varargs.
3142 test_varargs ("s, d' f .", "string", 65, 34.234);
3143 test_varargs_macros ();
3145 // Check flexible array members.
3146 struct incomplete_array *ia =
3147 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3148 ia->datasize = 10;
3149 for (int i = 0; i < ia->datasize; ++i)
3150 ia->data[i] = i * 1.234;
3152 // Check named initializers.
3153 struct named_init ni = {
3154 .number = 34,
3155 .name = L"Test wide string",
3156 .average = 543.34343,
3159 ni.number = 58;
3161 int dynamic_array[ni.number];
3162 dynamic_array[ni.number - 1] = 543;
3164 // work around unused variable warnings
3165 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3166 || dynamic_array[ni.number - 1] != 543);
3169 return 0;
3171 _ACEOF
3172 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3174 CC="$ac_save_CC $ac_arg"
3175 rm -f conftest.$ac_objext
3176 if { (ac_try="$ac_compile"
3177 case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3182 (eval "$ac_compile") 2>conftest.er1
3183 ac_status=$?
3184 grep -v '^ *+' conftest.er1 >conftest.err
3185 rm -f conftest.er1
3186 cat conftest.err >&5
3187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && {
3189 test -z "$ac_c_werror_flag" ||
3190 test ! -s conftest.err
3191 } && test -s conftest.$ac_objext; then
3192 ac_cv_prog_cc_c99=$ac_arg
3193 else
3194 echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3200 rm -f core conftest.err conftest.$ac_objext
3201 test "x$ac_cv_prog_cc_c99" != "xno" && break
3202 done
3203 rm -f conftest.$ac_ext
3204 CC=$ac_save_CC
3207 # AC_CACHE_VAL
3208 case "x$ac_cv_prog_cc_c99" in
3210 { echo "$as_me:$LINENO: result: none needed" >&5
3211 echo "${ECHO_T}none needed" >&6; } ;;
3212 xno)
3213 { echo "$as_me:$LINENO: result: unsupported" >&5
3214 echo "${ECHO_T}unsupported" >&6; } ;;
3216 CC="$CC $ac_cv_prog_cc_c99"
3217 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3218 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3219 esac
3220 if test "x$ac_cv_prog_cc_c99" != xno; then
3221 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3222 else
3223 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3224 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3225 if test "${ac_cv_prog_cc_c89+set}" = set; then
3226 echo $ECHO_N "(cached) $ECHO_C" >&6
3227 else
3228 ac_cv_prog_cc_c89=no
3229 ac_save_CC=$CC
3230 cat >conftest.$ac_ext <<_ACEOF
3231 /* confdefs.h. */
3232 _ACEOF
3233 cat confdefs.h >>conftest.$ac_ext
3234 cat >>conftest.$ac_ext <<_ACEOF
3235 /* end confdefs.h. */
3236 #include <stdarg.h>
3237 #include <stdio.h>
3238 #include <sys/types.h>
3239 #include <sys/stat.h>
3240 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3241 struct buf { int x; };
3242 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3243 static char *e (p, i)
3244 char **p;
3245 int i;
3247 return p[i];
3249 static char *f (char * (*g) (char **, int), char **p, ...)
3251 char *s;
3252 va_list v;
3253 va_start (v,p);
3254 s = g (p, va_arg (v,int));
3255 va_end (v);
3256 return s;
3259 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3260 function prototypes and stuff, but not '\xHH' hex character constants.
3261 These don't provoke an error unfortunately, instead are silently treated
3262 as 'x'. The following induces an error, until -std is added to get
3263 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3264 array size at least. It's necessary to write '\x00'==0 to get something
3265 that's true only with -std. */
3266 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3268 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3269 inside strings and character constants. */
3270 #define FOO(x) 'x'
3271 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3273 int test (int i, double x);
3274 struct s1 {int (*f) (int a);};
3275 struct s2 {int (*f) (double a);};
3276 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3277 int argc;
3278 char **argv;
3280 main ()
3282 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3284 return 0;
3286 _ACEOF
3287 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3288 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3290 CC="$ac_save_CC $ac_arg"
3291 rm -f conftest.$ac_objext
3292 if { (ac_try="$ac_compile"
3293 case "(($ac_try" in
3294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3295 *) ac_try_echo=$ac_try;;
3296 esac
3297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3298 (eval "$ac_compile") 2>conftest.er1
3299 ac_status=$?
3300 grep -v '^ *+' conftest.er1 >conftest.err
3301 rm -f conftest.er1
3302 cat conftest.err >&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); } && {
3305 test -z "$ac_c_werror_flag" ||
3306 test ! -s conftest.err
3307 } && test -s conftest.$ac_objext; then
3308 ac_cv_prog_cc_c89=$ac_arg
3309 else
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3316 rm -f core conftest.err conftest.$ac_objext
3317 test "x$ac_cv_prog_cc_c89" != "xno" && break
3318 done
3319 rm -f conftest.$ac_ext
3320 CC=$ac_save_CC
3323 # AC_CACHE_VAL
3324 case "x$ac_cv_prog_cc_c89" in
3326 { echo "$as_me:$LINENO: result: none needed" >&5
3327 echo "${ECHO_T}none needed" >&6; } ;;
3328 xno)
3329 { echo "$as_me:$LINENO: result: unsupported" >&5
3330 echo "${ECHO_T}unsupported" >&6; } ;;
3332 CC="$CC $ac_cv_prog_cc_c89"
3333 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3334 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3335 esac
3336 if test "x$ac_cv_prog_cc_c89" != xno; then
3337 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3338 else
3339 ac_cv_prog_cc_stdc=no
3346 esac
3347 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3348 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3349 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 case $ac_cv_prog_cc_stdc in
3354 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3355 echo "${ECHO_T}unsupported" >&6; } ;;
3356 '') { echo "$as_me:$LINENO: result: none needed" >&5
3357 echo "${ECHO_T}none needed" >&6; } ;;
3358 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3359 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3360 esac
3363 ac_ext=c
3364 ac_cpp='$CPP $CPPFLAGS'
3365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3368 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3369 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3370 # On Suns, sometimes $CPP names a directory.
3371 if test -n "$CPP" && test -d "$CPP"; then
3372 CPP=
3374 if test -z "$CPP"; then
3375 if test "${ac_cv_prog_CPP+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3377 else
3378 # Double quotes because CPP needs to be expanded
3379 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3381 ac_preproc_ok=false
3382 for ac_c_preproc_warn_flag in '' yes
3384 # Use a header file that comes with gcc, so configuring glibc
3385 # with a fresh cross-compiler works.
3386 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3387 # <limits.h> exists even on freestanding compilers.
3388 # On the NeXT, cc -E runs the code through the compiler's parser,
3389 # not just through cpp. "Syntax error" is here to catch this case.
3390 cat >conftest.$ac_ext <<_ACEOF
3391 /* confdefs.h. */
3392 _ACEOF
3393 cat confdefs.h >>conftest.$ac_ext
3394 cat >>conftest.$ac_ext <<_ACEOF
3395 /* end confdefs.h. */
3396 #ifdef __STDC__
3397 # include <limits.h>
3398 #else
3399 # include <assert.h>
3400 #endif
3401 Syntax error
3402 _ACEOF
3403 if { (ac_try="$ac_cpp conftest.$ac_ext"
3404 case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407 esac
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3410 ac_status=$?
3411 grep -v '^ *+' conftest.er1 >conftest.err
3412 rm -f conftest.er1
3413 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } >/dev/null && {
3416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3417 test ! -s conftest.err
3418 }; then
3420 else
3421 echo "$as_me: failed program was:" >&5
3422 sed 's/^/| /' conftest.$ac_ext >&5
3424 # Broken: fails on valid input.
3425 continue
3428 rm -f conftest.err conftest.$ac_ext
3430 # OK, works on sane cases. Now check whether nonexistent headers
3431 # can be detected and how.
3432 cat >conftest.$ac_ext <<_ACEOF
3433 /* confdefs.h. */
3434 _ACEOF
3435 cat confdefs.h >>conftest.$ac_ext
3436 cat >>conftest.$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3438 #include <ac_nonexistent.h>
3439 _ACEOF
3440 if { (ac_try="$ac_cpp conftest.$ac_ext"
3441 case "(($ac_try" in
3442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3443 *) ac_try_echo=$ac_try;;
3444 esac
3445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3447 ac_status=$?
3448 grep -v '^ *+' conftest.er1 >conftest.err
3449 rm -f conftest.er1
3450 cat conftest.err >&5
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); } >/dev/null && {
3453 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3454 test ! -s conftest.err
3455 }; then
3456 # Broken: success on invalid input.
3457 continue
3458 else
3459 echo "$as_me: failed program was:" >&5
3460 sed 's/^/| /' conftest.$ac_ext >&5
3462 # Passes both tests.
3463 ac_preproc_ok=:
3464 break
3467 rm -f conftest.err conftest.$ac_ext
3469 done
3470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3471 rm -f conftest.err conftest.$ac_ext
3472 if $ac_preproc_ok; then
3473 break
3476 done
3477 ac_cv_prog_CPP=$CPP
3480 CPP=$ac_cv_prog_CPP
3481 else
3482 ac_cv_prog_CPP=$CPP
3484 { echo "$as_me:$LINENO: result: $CPP" >&5
3485 echo "${ECHO_T}$CPP" >&6; }
3486 ac_preproc_ok=false
3487 for ac_c_preproc_warn_flag in '' yes
3489 # Use a header file that comes with gcc, so configuring glibc
3490 # with a fresh cross-compiler works.
3491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3492 # <limits.h> exists even on freestanding compilers.
3493 # On the NeXT, cc -E runs the code through the compiler's parser,
3494 # not just through cpp. "Syntax error" is here to catch this case.
3495 cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h. */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h. */
3501 #ifdef __STDC__
3502 # include <limits.h>
3503 #else
3504 # include <assert.h>
3505 #endif
3506 Syntax error
3507 _ACEOF
3508 if { (ac_try="$ac_cpp conftest.$ac_ext"
3509 case "(($ac_try" in
3510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3511 *) ac_try_echo=$ac_try;;
3512 esac
3513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3514 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3515 ac_status=$?
3516 grep -v '^ *+' conftest.er1 >conftest.err
3517 rm -f conftest.er1
3518 cat conftest.err >&5
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); } >/dev/null && {
3521 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3522 test ! -s conftest.err
3523 }; then
3525 else
3526 echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 # Broken: fails on valid input.
3530 continue
3533 rm -f conftest.err conftest.$ac_ext
3535 # OK, works on sane cases. Now check whether nonexistent headers
3536 # can be detected and how.
3537 cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h. */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3543 #include <ac_nonexistent.h>
3544 _ACEOF
3545 if { (ac_try="$ac_cpp conftest.$ac_ext"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3552 ac_status=$?
3553 grep -v '^ *+' conftest.er1 >conftest.err
3554 rm -f conftest.er1
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } >/dev/null && {
3558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3559 test ! -s conftest.err
3560 }; then
3561 # Broken: success on invalid input.
3562 continue
3563 else
3564 echo "$as_me: failed program was:" >&5
3565 sed 's/^/| /' conftest.$ac_ext >&5
3567 # Passes both tests.
3568 ac_preproc_ok=:
3569 break
3572 rm -f conftest.err conftest.$ac_ext
3574 done
3575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3576 rm -f conftest.err conftest.$ac_ext
3577 if $ac_preproc_ok; then
3579 else
3580 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3581 See \`config.log' for more details." >&5
3582 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3583 See \`config.log' for more details." >&2;}
3584 { (exit 1); exit 1; }; }
3587 ac_ext=c
3588 ac_cpp='$CPP $CPPFLAGS'
3589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3594 # Check for a compatible awk
3595 for ac_prog in gawk nawk
3597 # Extract the first word of "$ac_prog", so it can be a program name with args.
3598 set dummy $ac_prog; ac_word=$2
3599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3601 if test "${ac_cv_prog_AWK+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3603 else
3604 if test -n "$AWK"; then
3605 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3606 else
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3610 IFS=$as_save_IFS
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3614 ac_cv_prog_AWK="$ac_prog"
3615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3618 done
3619 done
3620 IFS=$as_save_IFS
3624 AWK=$ac_cv_prog_AWK
3625 if test -n "$AWK"; then
3626 { echo "$as_me:$LINENO: result: $AWK" >&5
3627 echo "${ECHO_T}$AWK" >&6; }
3628 else
3629 { echo "$as_me:$LINENO: result: no" >&5
3630 echo "${ECHO_T}no" >&6; }
3634 test -n "$AWK" && break
3635 done
3637 if test "$AWK" = ""; then
3638 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3639 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3640 { (exit 1); exit 1; }; }
3642 # Extract the first word of "mmake", so it can be a program name with args.
3643 set dummy mmake; ac_word=$2
3644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3646 if test "${ac_cv_prog_MMAKE+set}" = set; then
3647 echo $ECHO_N "(cached) $ECHO_C" >&6
3648 else
3649 if test -n "$MMAKE"; then
3650 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3651 else
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653 for as_dir in $PATH
3655 IFS=$as_save_IFS
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 ac_cv_prog_MMAKE="mmake "
3660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3661 break 2
3663 done
3664 done
3665 IFS=$as_save_IFS
3669 MMAKE=$ac_cv_prog_MMAKE
3670 if test -n "$MMAKE"; then
3671 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3672 echo "${ECHO_T}$MMAKE" >&6; }
3673 else
3674 { echo "$as_me:$LINENO: result: no" >&5
3675 echo "${ECHO_T}no" >&6; }
3680 # Perform some default variable assignments. Note all of these will be
3681 # Regenerated from the script, so there is no need to cache them.
3683 aros_host_cc="$CC"
3684 if test "$GCC" = "yes"; then
3685 aros_gcc_ld=`$CC -print-prog-name=ld`
3686 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3687 set dummy `basename $aros_gcc_ld`; ac_word=$2
3688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3690 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3691 echo $ECHO_N "(cached) $ECHO_C" >&6
3692 else
3693 case $aros_host_ld in
3694 [\\/]* | ?:[\\/]*)
3695 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3699 for as_dir in `dirname $aros_gcc_ld`
3701 IFS=$as_save_IFS
3702 test -z "$as_dir" && as_dir=.
3703 for ac_exec_ext in '' $ac_executable_extensions; do
3704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3705 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3706 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3707 break 2
3709 done
3710 done
3711 IFS=$as_save_IFS
3714 esac
3716 aros_host_ld=$ac_cv_path_aros_host_ld
3717 if test -n "$aros_host_ld"; then
3718 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3719 echo "${ECHO_T}$aros_host_ld" >&6; }
3720 else
3721 { echo "$as_me:$LINENO: result: no" >&5
3722 echo "${ECHO_T}no" >&6; }
3727 if test "$aros_host_ld" = ""; then
3728 # Extract the first word of "ld", so it can be a program name with args.
3729 set dummy ld; ac_word=$2
3730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3732 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3733 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 else
3735 case $aros_host_ld in
3736 [\\/]* | ?:[\\/]*)
3737 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3747 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3751 done
3752 done
3753 IFS=$as_save_IFS
3756 esac
3758 aros_host_ld=$ac_cv_path_aros_host_ld
3759 if test -n "$aros_host_ld"; then
3760 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3761 echo "${ECHO_T}$aros_host_ld" >&6; }
3762 else
3763 { echo "$as_me:$LINENO: result: no" >&5
3764 echo "${ECHO_T}no" >&6; }
3769 if test "$aros_host_ld" = ""; then
3770 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3771 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3772 { (exit 1); exit 1; }; }
3774 aros_host_make="make"
3775 aros_host_cflags=$CFLAGS
3776 aros_host_ldflags=$LDFLAGS
3777 aros_host_debug="-g -O0"
3778 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3779 aros_host_mkargs="--no-print-directory"
3780 aros_host_incl="/usr/include"
3781 aros_host_exe_suffix="$EXEEXT"
3782 aros_host_lib_suffix=""
3784 for ac_prog in aclocal aclocal19 aclocal-1.9
3786 # Extract the first word of "$ac_prog", so it can be a program name with args.
3787 set dummy $ac_prog; ac_word=$2
3788 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3790 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 if test -n "$aros_host_aclocal"; then
3794 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3795 else
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3797 for as_dir in $PATH
3799 IFS=$as_save_IFS
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3803 ac_cv_prog_aros_host_aclocal="$ac_prog"
3804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3805 break 2
3807 done
3808 done
3809 IFS=$as_save_IFS
3813 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3814 if test -n "$aros_host_aclocal"; then
3815 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3816 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3817 else
3818 { echo "$as_me:$LINENO: result: no" >&5
3819 echo "${ECHO_T}no" >&6; }
3823 test -n "$aros_host_aclocal" && break
3824 done
3826 for ac_prog in autoconf autoconf259 autoconf253
3828 # Extract the first word of "$ac_prog", so it can be a program name with args.
3829 set dummy $ac_prog; ac_word=$2
3830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3832 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3833 echo $ECHO_N "(cached) $ECHO_C" >&6
3834 else
3835 if test -n "$aros_host_autoconf"; then
3836 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3837 else
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 for as_dir in $PATH
3841 IFS=$as_save_IFS
3842 test -z "$as_dir" && as_dir=.
3843 for ac_exec_ext in '' $ac_executable_extensions; do
3844 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3845 ac_cv_prog_aros_host_autoconf="$ac_prog"
3846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3847 break 2
3849 done
3850 done
3851 IFS=$as_save_IFS
3855 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3856 if test -n "$aros_host_autoconf"; then
3857 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3858 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3859 else
3860 { echo "$as_me:$LINENO: result: no" >&5
3861 echo "${ECHO_T}no" >&6; }
3865 test -n "$aros_host_autoconf" && break
3866 done
3868 for ac_prog in autoheader autoheader259 autoheader253
3870 # Extract the first word of "$ac_prog", so it can be a program name with args.
3871 set dummy $ac_prog; ac_word=$2
3872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3874 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876 else
3877 if test -n "$aros_host_autoheader"; then
3878 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3879 else
3880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 for as_dir in $PATH
3883 IFS=$as_save_IFS
3884 test -z "$as_dir" && as_dir=.
3885 for ac_exec_ext in '' $ac_executable_extensions; do
3886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3887 ac_cv_prog_aros_host_autoheader="$ac_prog"
3888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3889 break 2
3891 done
3892 done
3893 IFS=$as_save_IFS
3897 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3898 if test -n "$aros_host_autoheader"; then
3899 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3900 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3901 else
3902 { echo "$as_me:$LINENO: result: no" >&5
3903 echo "${ECHO_T}no" >&6; }
3907 test -n "$aros_host_autoheader" && break
3908 done
3910 for ac_prog in automake automake19 automake-1.9
3912 # Extract the first word of "$ac_prog", so it can be a program name with args.
3913 set dummy $ac_prog; ac_word=$2
3914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3916 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3917 echo $ECHO_N "(cached) $ECHO_C" >&6
3918 else
3919 if test -n "$aros_host_automake"; then
3920 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3921 else
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3923 for as_dir in $PATH
3925 IFS=$as_save_IFS
3926 test -z "$as_dir" && as_dir=.
3927 for ac_exec_ext in '' $ac_executable_extensions; do
3928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3929 ac_cv_prog_aros_host_automake="$ac_prog"
3930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3931 break 2
3933 done
3934 done
3935 IFS=$as_save_IFS
3939 aros_host_automake=$ac_cv_prog_aros_host_automake
3940 if test -n "$aros_host_automake"; then
3941 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3942 echo "${ECHO_T}$aros_host_automake" >&6; }
3943 else
3944 { echo "$as_me:$LINENO: result: no" >&5
3945 echo "${ECHO_T}no" >&6; }
3949 test -n "$aros_host_automake" && break
3950 done
3953 if test "$aros_host_aclocal" = ""; then
3954 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3955 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3956 { (exit 1); exit 1; }; }
3958 if test "$aros_host_automake" = ""; then
3959 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3960 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3961 { (exit 1); exit 1; }; }
3964 case "$aros_host_cc" in
3965 *gcc*)
3966 aros_host_cc_pipe="-pipe"
3968 icc)
3969 aros_host_cc_pipe=""
3972 aros_host_cc_pipe=""
3974 esac
3976 aros_kernel_cc_includes=""
3977 aros_target_cc_includes=""
3979 # This is the main host configuration section. It is where the host
3980 # can change the values of any variables it needs to change. We do
3981 # not look at anything that compiles to the target yet, we'll get
3982 # to that later.
3984 case "$host_os" in
3985 aros*)
3986 aros_host_arch="aros"
3987 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3988 case "$host_cpu" in
3989 *i?86*)
3990 aros_host_cpu="i386"
3992 *x86_64*)
3993 aros_host_cpu="x86_64"
3995 *powerpc*)
3996 aros_host_cpu="ppc"
3999 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4000 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4001 aros_host_cpu="$host_cpu"
4003 esac
4006 linux*)
4007 aros_host_arch="linux"
4008 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4009 case "$host_cpu" in
4010 *i?86*)
4011 aros_host_cpu="i386"
4013 *x86_64*)
4014 aros_host_cpu="x86_64"
4016 *m68k*)
4017 aros_host_cpu="m68k"
4019 *powerpc*)
4020 aros_host_cpu="ppc"
4022 *arm*)
4023 aros_host_cpu="arm"
4026 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4027 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4028 aros_host_cpu="$host_cpu"
4030 esac
4033 freebsd*)
4034 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4035 aros_host_make="gmake"
4036 aros_host_arch="freebsd"
4037 aros_host_cpu="i386"
4039 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4041 case $host_os in
4042 freebsd[234]*)
4043 aros_object_format="elf_i386"
4047 aros_object_format="elf_i386_fbsd"
4049 esac
4053 darwin*)
4054 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4055 aros_host_arch="darwin"
4056 case "$host_cpu" in
4057 *i?86*)
4058 aros_host_cpu="i386"
4060 *x86_64*)
4061 aros_host_cpu="x86_64"
4063 *powerpc*)
4064 aros_host_cpu="ppc"
4067 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4068 echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4069 aros_host_cpu="$host_cpu"
4071 esac
4073 aros_host_ldflags="$aros_host_ldflags -liconv"
4077 dragonfly*)
4078 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4079 aros_host_make="gmake"
4080 aros_host_arch="dragonfly"
4081 case $host_cpu in
4082 *i?86*)
4083 aros_host_cpu="i386"
4085 *amd64*)
4086 aros_host_cpu="x86_64"
4089 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4090 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4091 aros_host_cpu="$host_cpu"
4093 esac
4096 netbsd*)
4097 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4098 aros_host_make="gmake"
4099 aros_host_arch="netbsd"
4100 case "$host_cpu" in
4101 *i?86*)
4102 aros_host_cpu="i386"
4104 *m68k*)
4105 aros_host_cpu="m68k"
4108 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4109 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4110 aros_host_cpu="$host_cpu"
4112 esac
4113 aros_host_lib_suffix=".0.0"
4116 openbsd*)
4117 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4118 aros_host_make="gmake"
4119 aros_host_arch="openbsd"
4120 case "$host_cpu" in
4121 *i?86*)
4122 aros_host_cpu="i386"
4125 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4126 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4127 aros_host_cpu="$host_cpu"
4129 esac
4132 solaris*)
4133 aros_host_arch="solaris"
4134 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4135 case "$host_cpu" in
4136 *i?86*)
4137 aros_host_cpu="i386"
4139 *sparc*)
4140 aros_host_cpu="sparc"
4143 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4144 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4145 aros_host_cpu="$host_cpu"
4147 esac
4150 morphos*)
4151 aros_host_arch="morphos"
4152 aros_host_cpu="ppc"
4155 amiga*)
4156 aros_host_arch="amiga"
4157 SORT="/gg/bin/sort"
4158 TEST="/gg/bin/test"
4159 UNIQ="/gg/bin/uniq"
4160 FOR="for"
4161 TOUCH="/gg/bin/touch"
4162 case "$host_cpu" in
4163 *m68k*)
4164 aros_host_cpu="m68k"
4166 *powerpc*)
4167 aros_host_cpu="ppc"
4170 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4171 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4172 aros_host_cpu="$host_cpu"
4174 esac
4177 cygwin*)
4178 aros_host_arch="cygwin"
4179 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4180 android_build_os="windows"
4181 android_tool="android.bat"
4182 default_android_sdk="/cygdrive/c/android-sdk-windows-1.6_r1"
4184 case "$host_cpu" in
4185 *i?86*)
4186 aros_host_cpu="i386"
4189 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4190 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4191 aros_host_cpu="$host_cpu"
4193 esac
4196 mingw32*)
4197 aros_host_arch="mingw32"
4198 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4199 android_build_os="windows"
4200 android_tool="android.bat"
4201 default_android_sdk="/c/android-sdk-windows-1.6_r1"
4203 case "$host_cpu" in
4204 *i?86*)
4205 aros_host_cpu="i386"
4208 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4209 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4210 aros_host_cpu="$host_cpu"
4212 esac
4215 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4216 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4217 { (exit 1); exit 1; }; }
4219 esac
4221 # Extract the first word of "ar", so it can be a program name with args.
4222 set dummy ar; ac_word=$2
4223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4225 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
4227 else
4228 if test -n "$aros_host_ar"; then
4229 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4230 else
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4234 IFS=$as_save_IFS
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_prog_aros_host_ar="ar cr"
4239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4240 break 2
4242 done
4243 done
4244 IFS=$as_save_IFS
4248 aros_host_ar=$ac_cv_prog_aros_host_ar
4249 if test -n "$aros_host_ar"; then
4250 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4251 echo "${ECHO_T}$aros_host_ar" >&6; }
4252 else
4253 { echo "$as_me:$LINENO: result: no" >&5
4254 echo "${ECHO_T}no" >&6; }
4258 if test "$aros_host_ar" = ""; then
4259 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4260 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4261 { (exit 1); exit 1; }; }
4263 # Extract the first word of "ranlib", so it can be a program name with args.
4264 set dummy ranlib; ac_word=$2
4265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4267 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4268 echo $ECHO_N "(cached) $ECHO_C" >&6
4269 else
4270 if test -n "$aros_host_ranlib"; then
4271 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4272 else
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 for as_dir in $PATH
4276 IFS=$as_save_IFS
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_aros_host_ranlib="ranlib "
4281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4282 break 2
4284 done
4285 done
4286 IFS=$as_save_IFS
4290 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4291 if test -n "$aros_host_ranlib"; then
4292 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4293 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4294 else
4295 { echo "$as_me:$LINENO: result: no" >&5
4296 echo "${ECHO_T}no" >&6; }
4300 if test "$aros_host_ranlib" = ""; then
4301 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4302 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4303 { (exit 1); exit 1; }; }
4305 # Extract the first word of "strip", so it can be a program name with args.
4306 set dummy strip; ac_word=$2
4307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4309 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4310 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 else
4312 if test -n "$aros_host_strip"; then
4313 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4314 else
4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316 for as_dir in $PATH
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4322 ac_cv_prog_aros_host_strip="strip "
4323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 break 2
4326 done
4327 done
4328 IFS=$as_save_IFS
4332 aros_host_strip=$ac_cv_prog_aros_host_strip
4333 if test -n "$aros_host_strip"; then
4334 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4335 echo "${ECHO_T}$aros_host_strip" >&6; }
4336 else
4337 { echo "$as_me:$LINENO: result: no" >&5
4338 echo "${ECHO_T}no" >&6; }
4342 if test "$aros_host_strip" = ""; then
4343 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4344 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4345 { (exit 1); exit 1; }; }
4348 # Extract the first word of "rm", so it can be a program name with args.
4349 set dummy rm; ac_word=$2
4350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4352 if test "${ac_cv_prog_RM+set}" = set; then
4353 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 else
4355 if test -n "$RM"; then
4356 ac_cv_prog_RM="$RM" # Let the user override the test.
4357 else
4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4359 for as_dir in $PATH
4361 IFS=$as_save_IFS
4362 test -z "$as_dir" && as_dir=.
4363 for ac_exec_ext in '' $ac_executable_extensions; do
4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4365 ac_cv_prog_RM="rm -rf"
4366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4367 break 2
4369 done
4370 done
4371 IFS=$as_save_IFS
4375 RM=$ac_cv_prog_RM
4376 if test -n "$RM"; then
4377 { echo "$as_me:$LINENO: result: $RM" >&5
4378 echo "${ECHO_T}$RM" >&6; }
4379 else
4380 { echo "$as_me:$LINENO: result: no" >&5
4381 echo "${ECHO_T}no" >&6; }
4385 if test "$RM" = ""; then
4386 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4387 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4388 { (exit 1); exit 1; }; }
4390 # Extract the first word of "cp", so it can be a program name with args.
4391 set dummy cp; ac_word=$2
4392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4394 if test "${ac_cv_prog_CP+set}" = set; then
4395 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 else
4397 if test -n "$CP"; then
4398 ac_cv_prog_CP="$CP" # Let the user override the test.
4399 else
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4407 ac_cv_prog_CP="cp "
4408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4411 done
4412 done
4413 IFS=$as_save_IFS
4417 CP=$ac_cv_prog_CP
4418 if test -n "$CP"; then
4419 { echo "$as_me:$LINENO: result: $CP" >&5
4420 echo "${ECHO_T}$CP" >&6; }
4421 else
4422 { echo "$as_me:$LINENO: result: no" >&5
4423 echo "${ECHO_T}no" >&6; }
4427 if test "$CP" = ""; then
4428 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4429 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4430 { (exit 1); exit 1; }; }
4432 # Extract the first word of "mv", so it can be a program name with args.
4433 set dummy mv; ac_word=$2
4434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4436 if test "${ac_cv_prog_MV+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 if test -n "$MV"; then
4440 ac_cv_prog_MV="$MV" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4449 ac_cv_prog_MV="mv "
4450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4453 done
4454 done
4455 IFS=$as_save_IFS
4459 MV=$ac_cv_prog_MV
4460 if test -n "$MV"; then
4461 { echo "$as_me:$LINENO: result: $MV" >&5
4462 echo "${ECHO_T}$MV" >&6; }
4463 else
4464 { echo "$as_me:$LINENO: result: no" >&5
4465 echo "${ECHO_T}no" >&6; }
4469 if test "$MV" = ""; then
4470 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4471 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4472 { (exit 1); exit 1; }; }
4474 # Extract the first word of "echo", so it can be a program name with args.
4475 set dummy echo; ac_word=$2
4476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4478 if test "${ac_cv_prog_ECHO+set}" = set; then
4479 echo $ECHO_N "(cached) $ECHO_C" >&6
4480 else
4481 if test -n "$ECHO"; then
4482 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4483 else
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_exec_ext in '' $ac_executable_extensions; do
4490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4491 ac_cv_prog_ECHO="echo "
4492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 break 2
4495 done
4496 done
4497 IFS=$as_save_IFS
4501 ECHO=$ac_cv_prog_ECHO
4502 if test -n "$ECHO"; then
4503 { echo "$as_me:$LINENO: result: $ECHO" >&5
4504 echo "${ECHO_T}$ECHO" >&6; }
4505 else
4506 { echo "$as_me:$LINENO: result: no" >&5
4507 echo "${ECHO_T}no" >&6; }
4511 if test "$ECHO" = ""; then
4512 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4513 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4514 { (exit 1); exit 1; }; }
4516 # Extract the first word of "mkdir", so it can be a program name with args.
4517 set dummy mkdir; ac_word=$2
4518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4520 if test "${ac_cv_prog_MKDIR+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523 if test -n "$MKDIR"; then
4524 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4525 else
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4533 ac_cv_prog_MKDIR="mkdir -p"
4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4535 break 2
4537 done
4538 done
4539 IFS=$as_save_IFS
4543 MKDIR=$ac_cv_prog_MKDIR
4544 if test -n "$MKDIR"; then
4545 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4546 echo "${ECHO_T}$MKDIR" >&6; }
4547 else
4548 { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4553 if test "$MKDIR" = ""; then
4554 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4555 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4556 { (exit 1); exit 1; }; }
4558 # Extract the first word of "touch", so it can be a program name with args.
4559 set dummy touch; ac_word=$2
4560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4562 if test "${ac_cv_prog_TOUCH+set}" = set; then
4563 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 else
4565 if test -n "$TOUCH"; then
4566 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4571 IFS=$as_save_IFS
4572 test -z "$as_dir" && as_dir=.
4573 for ac_exec_ext in '' $ac_executable_extensions; do
4574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4575 ac_cv_prog_TOUCH="touch "
4576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 break 2
4579 done
4580 done
4581 IFS=$as_save_IFS
4585 TOUCH=$ac_cv_prog_TOUCH
4586 if test -n "$TOUCH"; then
4587 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4588 echo "${ECHO_T}$TOUCH" >&6; }
4589 else
4590 { echo "$as_me:$LINENO: result: no" >&5
4591 echo "${ECHO_T}no" >&6; }
4595 if test "$TOUCH" = ""; then
4596 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4597 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4598 { (exit 1); exit 1; }; }
4600 # Extract the first word of "sort", so it can be a program name with args.
4601 set dummy sort; ac_word=$2
4602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4604 if test "${ac_cv_prog_SORT+set}" = set; then
4605 echo $ECHO_N "(cached) $ECHO_C" >&6
4606 else
4607 if test -n "$SORT"; then
4608 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_SORT="sort "
4618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4621 done
4622 done
4623 IFS=$as_save_IFS
4627 SORT=$ac_cv_prog_SORT
4628 if test -n "$SORT"; then
4629 { echo "$as_me:$LINENO: result: $SORT" >&5
4630 echo "${ECHO_T}$SORT" >&6; }
4631 else
4632 { echo "$as_me:$LINENO: result: no" >&5
4633 echo "${ECHO_T}no" >&6; }
4637 if test "$SORT" = ""; then
4638 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4639 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4640 { (exit 1); exit 1; }; }
4642 # Extract the first word of "uniq", so it can be a program name with args.
4643 set dummy uniq; ac_word=$2
4644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4646 if test "${ac_cv_prog_UNIQ+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 else
4649 if test -n "$UNIQ"; then
4650 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4651 else
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653 for as_dir in $PATH
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_UNIQ="uniq "
4660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4661 break 2
4663 done
4664 done
4665 IFS=$as_save_IFS
4669 UNIQ=$ac_cv_prog_UNIQ
4670 if test -n "$UNIQ"; then
4671 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4672 echo "${ECHO_T}$UNIQ" >&6; }
4673 else
4674 { echo "$as_me:$LINENO: result: no" >&5
4675 echo "${ECHO_T}no" >&6; }
4679 if test "$UNIQ" = ""; then
4680 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4681 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4682 { (exit 1); exit 1; }; }
4684 # Extract the first word of "true", so it can be a program name with args.
4685 set dummy true; ac_word=$2
4686 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4688 if test "${ac_cv_prog_NOP+set}" = set; then
4689 echo $ECHO_N "(cached) $ECHO_C" >&6
4690 else
4691 if test -n "$NOP"; then
4692 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4693 else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695 for as_dir in $PATH
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
4699 for ac_exec_ext in '' $ac_executable_extensions; do
4700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4701 ac_cv_prog_NOP="true "
4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4703 break 2
4705 done
4706 done
4707 IFS=$as_save_IFS
4711 NOP=$ac_cv_prog_NOP
4712 if test -n "$NOP"; then
4713 { echo "$as_me:$LINENO: result: $NOP" >&5
4714 echo "${ECHO_T}$NOP" >&6; }
4715 else
4716 { echo "$as_me:$LINENO: result: no" >&5
4717 echo "${ECHO_T}no" >&6; }
4721 if test "$NOP" = ""; then
4722 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4723 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4724 { (exit 1); exit 1; }; }
4726 # Extract the first word of "cat", so it can be a program name with args.
4727 set dummy cat; ac_word=$2
4728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4730 if test "${ac_cv_prog_CAT+set}" = set; then
4731 echo $ECHO_N "(cached) $ECHO_C" >&6
4732 else
4733 if test -n "$CAT"; then
4734 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4735 else
4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4737 for as_dir in $PATH
4739 IFS=$as_save_IFS
4740 test -z "$as_dir" && as_dir=.
4741 for ac_exec_ext in '' $ac_executable_extensions; do
4742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4743 ac_cv_prog_CAT="cat "
4744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4745 break 2
4747 done
4748 done
4749 IFS=$as_save_IFS
4753 CAT=$ac_cv_prog_CAT
4754 if test -n "$CAT"; then
4755 { echo "$as_me:$LINENO: result: $CAT" >&5
4756 echo "${ECHO_T}$CAT" >&6; }
4757 else
4758 { echo "$as_me:$LINENO: result: no" >&5
4759 echo "${ECHO_T}no" >&6; }
4763 if test "$CAT" = ""; then
4764 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4765 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4766 { (exit 1); exit 1; }; }
4768 # Extract the first word of "bison", so it can be a program name with args.
4769 set dummy bison; ac_word=$2
4770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772 if test "${ac_cv_prog_BISON+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4774 else
4775 if test -n "$BISON"; then
4776 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4777 else
4778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4779 for as_dir in $PATH
4781 IFS=$as_save_IFS
4782 test -z "$as_dir" && as_dir=.
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4785 ac_cv_prog_BISON="bison "
4786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4787 break 2
4789 done
4790 done
4791 IFS=$as_save_IFS
4795 BISON=$ac_cv_prog_BISON
4796 if test -n "$BISON"; then
4797 { echo "$as_me:$LINENO: result: $BISON" >&5
4798 echo "${ECHO_T}$BISON" >&6; }
4799 else
4800 { echo "$as_me:$LINENO: result: no" >&5
4801 echo "${ECHO_T}no" >&6; }
4805 if test "$BISON" = ""; then
4806 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4807 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4808 { (exit 1); exit 1; }; }
4810 # Extract the first word of "flex", so it can be a program name with args.
4811 set dummy flex; ac_word=$2
4812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4814 if test "${ac_cv_prog_FLEX+set}" = set; then
4815 echo $ECHO_N "(cached) $ECHO_C" >&6
4816 else
4817 if test -n "$FLEX"; then
4818 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4819 else
4820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4821 for as_dir in $PATH
4823 IFS=$as_save_IFS
4824 test -z "$as_dir" && as_dir=.
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4827 ac_cv_prog_FLEX="flex "
4828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 break 2
4831 done
4832 done
4833 IFS=$as_save_IFS
4837 FLEX=$ac_cv_prog_FLEX
4838 if test -n "$FLEX"; then
4839 { echo "$as_me:$LINENO: result: $FLEX" >&5
4840 echo "${ECHO_T}$FLEX" >&6; }
4841 else
4842 { echo "$as_me:$LINENO: result: no" >&5
4843 echo "${ECHO_T}no" >&6; }
4847 if test "$FLEX" = ""; then
4848 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4849 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4850 { (exit 1); exit 1; }; }
4852 # Extract the first word of "pngtopnm", so it can be a program name with args.
4853 set dummy pngtopnm; ac_word=$2
4854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4856 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4857 echo $ECHO_N "(cached) $ECHO_C" >&6
4858 else
4859 if test -n "$PNGTOPNM"; then
4860 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4861 else
4862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4863 for as_dir in $PATH
4865 IFS=$as_save_IFS
4866 test -z "$as_dir" && as_dir=.
4867 for ac_exec_ext in '' $ac_executable_extensions; do
4868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4869 ac_cv_prog_PNGTOPNM="pngtopnm "
4870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4871 break 2
4873 done
4874 done
4875 IFS=$as_save_IFS
4879 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4880 if test -n "$PNGTOPNM"; then
4881 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4882 echo "${ECHO_T}$PNGTOPNM" >&6; }
4883 else
4884 { echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6; }
4889 if test "$PNGTOPNM" = ""; then
4890 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4891 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4892 { (exit 1); exit 1; }; }
4894 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4895 set dummy ppmtoilbm; ac_word=$2
4896 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4898 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4899 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 else
4901 if test -n "$PPMTOILBM"; then
4902 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4903 else
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905 for as_dir in $PATH
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4913 break 2
4915 done
4916 done
4917 IFS=$as_save_IFS
4921 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4922 if test -n "$PPMTOILBM"; then
4923 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4924 echo "${ECHO_T}$PPMTOILBM" >&6; }
4925 else
4926 { echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6; }
4931 if test "$PPMTOILBM" = ""; then
4932 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4933 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4934 { (exit 1); exit 1; }; }
4936 # Extract the first word of "sed", so it can be a program name with args.
4937 set dummy sed; ac_word=$2
4938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4940 if test "${ac_cv_prog_SED+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 if test -n "$SED"; then
4944 ac_cv_prog_SED="$SED" # 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_SED="sed "
4954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955 break 2
4957 done
4958 done
4959 IFS=$as_save_IFS
4963 SED=$ac_cv_prog_SED
4964 if test -n "$SED"; then
4965 { echo "$as_me:$LINENO: result: $SED" >&5
4966 echo "${ECHO_T}$SED" >&6; }
4967 else
4968 { echo "$as_me:$LINENO: result: no" >&5
4969 echo "${ECHO_T}no" >&6; }
4973 if test "$SED" = ""; then
4974 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4975 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4976 { (exit 1); exit 1; }; }
4978 # Extract the first word of "chmod", so it can be a program name with args.
4979 set dummy chmod; ac_word=$2
4980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4982 if test "${ac_cv_prog_CHMOD+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985 if test -n "$CHMOD"; then
4986 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4987 else
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_prog_CHMOD="chmod "
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4999 done
5000 done
5001 IFS=$as_save_IFS
5005 CHMOD=$ac_cv_prog_CHMOD
5006 if test -n "$CHMOD"; then
5007 { echo "$as_me:$LINENO: result: $CHMOD" >&5
5008 echo "${ECHO_T}$CHMOD" >&6; }
5009 else
5010 { echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6; }
5015 if test "$CHMOD" = ""; then
5016 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
5017 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
5018 { (exit 1); exit 1; }; }
5025 if test -n "$PYTHON"; then
5026 # If the user set $PYTHON, use it and don't search something else.
5027 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.5" >&5
5028 echo $ECHO_N "checking whether $PYTHON version >= 2.5... $ECHO_C" >&6; }
5029 prog="import sys, string
5030 # split strings by '.' and convert to numeric. Append some zeros
5031 # because we need at least 4 digits for the hex conversion.
5032 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5033 minverhex = 0
5034 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5035 sys.exit(sys.hexversion < minverhex)"
5036 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5037 ($PYTHON -c "$prog") >&5 2>&5
5038 ac_status=$?
5039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5040 (exit $ac_status); }; then
5041 { echo "$as_me:$LINENO: result: yes" >&5
5042 echo "${ECHO_T}yes" >&6; }
5043 else
5044 { { echo "$as_me:$LINENO: error: too old" >&5
5045 echo "$as_me: error: too old" >&2;}
5046 { (exit 1); exit 1; }; }
5049 am_display_PYTHON=$PYTHON
5050 else
5051 # Otherwise, try each interpreter until we find one that satisfies
5052 # VERSION.
5053 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.5" >&5
5054 echo $ECHO_N "checking for a Python interpreter with version >= 2.5... $ECHO_C" >&6; }
5055 if test "${am_cv_pathless_PYTHON+set}" = set; then
5056 echo $ECHO_N "(cached) $ECHO_C" >&6
5057 else
5059 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
5060 test "$am_cv_pathless_PYTHON" = none && break
5061 prog="import sys, string
5062 # split strings by '.' and convert to numeric. Append some zeros
5063 # because we need at least 4 digits for the hex conversion.
5064 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5065 minverhex = 0
5066 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5067 sys.exit(sys.hexversion < minverhex)"
5068 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5069 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5070 ac_status=$?
5071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072 (exit $ac_status); }; then
5073 break
5076 done
5078 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5079 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
5080 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5081 if test "$am_cv_pathless_PYTHON" = none; then
5082 PYTHON=:
5083 else
5084 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5085 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5088 if test "${ac_cv_path_PYTHON+set}" = set; then
5089 echo $ECHO_N "(cached) $ECHO_C" >&6
5090 else
5091 case $PYTHON in
5092 [\\/]* | ?:[\\/]*)
5093 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5103 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5107 done
5108 done
5109 IFS=$as_save_IFS
5112 esac
5114 PYTHON=$ac_cv_path_PYTHON
5115 if test -n "$PYTHON"; then
5116 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5117 echo "${ECHO_T}$PYTHON" >&6; }
5118 else
5119 { echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6; }
5125 am_display_PYTHON=$am_cv_pathless_PYTHON
5129 if test "$PYTHON" = :; then
5130 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5131 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5132 { (exit 1); exit 1; }; }
5133 else
5136 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5137 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5138 if test "${am_cv_python_version+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5143 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5144 echo "${ECHO_T}$am_cv_python_version" >&6; }
5145 PYTHON_VERSION=$am_cv_python_version
5149 PYTHON_PREFIX='${prefix}'
5151 PYTHON_EXEC_PREFIX='${exec_prefix}'
5155 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5156 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5157 if test "${am_cv_python_platform+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5162 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5163 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5164 PYTHON_PLATFORM=$am_cv_python_platform
5169 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5170 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5171 if test "${am_cv_python_pythondir+set}" = set; then
5172 echo $ECHO_N "(cached) $ECHO_C" >&6
5173 else
5174 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5175 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5177 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5178 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5179 pythondir=$am_cv_python_pythondir
5183 pkgpythondir=\${pythondir}/$PACKAGE
5186 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5187 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5188 if test "${am_cv_python_pyexecdir+set}" = set; then
5189 echo $ECHO_N "(cached) $ECHO_C" >&6
5190 else
5191 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5192 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5194 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5195 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5196 pyexecdir=$am_cv_python_pyexecdir
5200 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5208 FOR=for
5210 IF=if
5212 TEST=test
5214 CMP=cmp
5218 # Check for some includes for the X11 HIDD and the kernel
5221 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5222 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5223 if test "${ac_cv_path_GREP+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226 # Extract the first word of "grep ggrep" to use in msg output
5227 if test -z "$GREP"; then
5228 set dummy grep ggrep; ac_prog_name=$2
5229 if test "${ac_cv_path_GREP+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232 ac_path_GREP_found=false
5233 # Loop through the user's path and test for each of PROGNAME-LIST
5234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5235 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5237 IFS=$as_save_IFS
5238 test -z "$as_dir" && as_dir=.
5239 for ac_prog in grep ggrep; do
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5242 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5243 # Check for GNU ac_path_GREP and select it if it is found.
5244 # Check for GNU $ac_path_GREP
5245 case `"$ac_path_GREP" --version 2>&1` in
5246 *GNU*)
5247 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5249 ac_count=0
5250 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5251 while :
5253 cat "conftest.in" "conftest.in" >"conftest.tmp"
5254 mv "conftest.tmp" "conftest.in"
5255 cp "conftest.in" "conftest.nl"
5256 echo 'GREP' >> "conftest.nl"
5257 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5258 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5259 ac_count=`expr $ac_count + 1`
5260 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5261 # Best one so far, save it but keep looking for a better one
5262 ac_cv_path_GREP="$ac_path_GREP"
5263 ac_path_GREP_max=$ac_count
5265 # 10*(2^10) chars as input seems more than enough
5266 test $ac_count -gt 10 && break
5267 done
5268 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5269 esac
5272 $ac_path_GREP_found && break 3
5273 done
5274 done
5276 done
5277 IFS=$as_save_IFS
5282 GREP="$ac_cv_path_GREP"
5283 if test -z "$GREP"; then
5284 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5285 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5286 { (exit 1); exit 1; }; }
5289 else
5290 ac_cv_path_GREP=$GREP
5295 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5296 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5297 GREP="$ac_cv_path_GREP"
5300 { echo "$as_me:$LINENO: checking for egrep" >&5
5301 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5302 if test "${ac_cv_path_EGREP+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5304 else
5305 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5306 then ac_cv_path_EGREP="$GREP -E"
5307 else
5308 # Extract the first word of "egrep" to use in msg output
5309 if test -z "$EGREP"; then
5310 set dummy egrep; ac_prog_name=$2
5311 if test "${ac_cv_path_EGREP+set}" = set; then
5312 echo $ECHO_N "(cached) $ECHO_C" >&6
5313 else
5314 ac_path_EGREP_found=false
5315 # Loop through the user's path and test for each of PROGNAME-LIST
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
5321 for ac_prog in egrep; do
5322 for ac_exec_ext in '' $ac_executable_extensions; do
5323 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5324 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5325 # Check for GNU ac_path_EGREP and select it if it is found.
5326 # Check for GNU $ac_path_EGREP
5327 case `"$ac_path_EGREP" --version 2>&1` in
5328 *GNU*)
5329 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5331 ac_count=0
5332 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5333 while :
5335 cat "conftest.in" "conftest.in" >"conftest.tmp"
5336 mv "conftest.tmp" "conftest.in"
5337 cp "conftest.in" "conftest.nl"
5338 echo 'EGREP' >> "conftest.nl"
5339 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5340 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5341 ac_count=`expr $ac_count + 1`
5342 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5343 # Best one so far, save it but keep looking for a better one
5344 ac_cv_path_EGREP="$ac_path_EGREP"
5345 ac_path_EGREP_max=$ac_count
5347 # 10*(2^10) chars as input seems more than enough
5348 test $ac_count -gt 10 && break
5349 done
5350 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5351 esac
5354 $ac_path_EGREP_found && break 3
5355 done
5356 done
5358 done
5359 IFS=$as_save_IFS
5364 EGREP="$ac_cv_path_EGREP"
5365 if test -z "$EGREP"; then
5366 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5367 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5368 { (exit 1); exit 1; }; }
5371 else
5372 ac_cv_path_EGREP=$EGREP
5378 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5379 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5380 EGREP="$ac_cv_path_EGREP"
5383 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5384 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5385 if test "${ac_cv_header_stdc+set}" = set; then
5386 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 else
5388 cat >conftest.$ac_ext <<_ACEOF
5389 /* confdefs.h. */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5394 #include <stdlib.h>
5395 #include <stdarg.h>
5396 #include <string.h>
5397 #include <float.h>
5400 main ()
5404 return 0;
5406 _ACEOF
5407 rm -f conftest.$ac_objext
5408 if { (ac_try="$ac_compile"
5409 case "(($ac_try" in
5410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5411 *) ac_try_echo=$ac_try;;
5412 esac
5413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5414 (eval "$ac_compile") 2>conftest.er1
5415 ac_status=$?
5416 grep -v '^ *+' conftest.er1 >conftest.err
5417 rm -f conftest.er1
5418 cat conftest.err >&5
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); } && {
5421 test -z "$ac_c_werror_flag" ||
5422 test ! -s conftest.err
5423 } && test -s conftest.$ac_objext; then
5424 ac_cv_header_stdc=yes
5425 else
5426 echo "$as_me: failed program was:" >&5
5427 sed 's/^/| /' conftest.$ac_ext >&5
5429 ac_cv_header_stdc=no
5432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5434 if test $ac_cv_header_stdc = yes; then
5435 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5436 cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h. */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 #include <string.h>
5444 _ACEOF
5445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5446 $EGREP "memchr" >/dev/null 2>&1; then
5448 else
5449 ac_cv_header_stdc=no
5451 rm -f conftest*
5455 if test $ac_cv_header_stdc = yes; then
5456 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5457 cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h. */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 #include <stdlib.h>
5465 _ACEOF
5466 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5467 $EGREP "free" >/dev/null 2>&1; then
5469 else
5470 ac_cv_header_stdc=no
5472 rm -f conftest*
5476 if test $ac_cv_header_stdc = yes; then
5477 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5478 if test "$cross_compiling" = yes; then
5480 else
5481 cat >conftest.$ac_ext <<_ACEOF
5482 /* confdefs.h. */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 #include <ctype.h>
5488 #include <stdlib.h>
5489 #if ((' ' & 0x0FF) == 0x020)
5490 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5491 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5492 #else
5493 # define ISLOWER(c) \
5494 (('a' <= (c) && (c) <= 'i') \
5495 || ('j' <= (c) && (c) <= 'r') \
5496 || ('s' <= (c) && (c) <= 'z'))
5497 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5498 #endif
5500 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5502 main ()
5504 int i;
5505 for (i = 0; i < 256; i++)
5506 if (XOR (islower (i), ISLOWER (i))
5507 || toupper (i) != TOUPPER (i))
5508 return 2;
5509 return 0;
5511 _ACEOF
5512 rm -f conftest$ac_exeext
5513 if { (ac_try="$ac_link"
5514 case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517 esac
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_link") 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5523 { (case "(($ac_try" in
5524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525 *) ac_try_echo=$ac_try;;
5526 esac
5527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5528 (eval "$ac_try") 2>&5
5529 ac_status=$?
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then
5533 else
5534 echo "$as_me: program exited with status $ac_status" >&5
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5538 ( exit $ac_status )
5539 ac_cv_header_stdc=no
5541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5547 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5548 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5549 if test $ac_cv_header_stdc = yes; then
5551 cat >>confdefs.h <<\_ACEOF
5552 #define STDC_HEADERS 1
5553 _ACEOF
5557 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5567 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5568 inttypes.h stdint.h unistd.h
5570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5574 echo $ECHO_N "(cached) $ECHO_C" >&6
5575 else
5576 cat >conftest.$ac_ext <<_ACEOF
5577 /* confdefs.h. */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5582 $ac_includes_default
5584 #include <$ac_header>
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (ac_try="$ac_compile"
5588 case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591 esac
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_compile") 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && {
5600 test -z "$ac_c_werror_flag" ||
5601 test ! -s conftest.err
5602 } && test -s conftest.$ac_objext; then
5603 eval "$as_ac_Header=yes"
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 eval "$as_ac_Header=no"
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 ac_res=`eval echo '${'$as_ac_Header'}'`
5614 { echo "$as_me:$LINENO: result: $ac_res" >&5
5615 echo "${ECHO_T}$ac_res" >&6; }
5616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5617 cat >>confdefs.h <<_ACEOF
5618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5619 _ACEOF
5623 done
5635 for ac_header in sys/ipc.h sys/shm.h \
5636 sys/mmap.h sys/mman.h sysexits.h \
5637 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 ac_res=`eval echo '${'$as_ac_Header'}'`
5648 { echo "$as_me:$LINENO: result: $ac_res" >&5
5649 echo "${ECHO_T}$ac_res" >&6; }
5650 else
5651 # Is the header compilable?
5652 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5654 cat >conftest.$ac_ext <<_ACEOF
5655 /* confdefs.h. */
5656 _ACEOF
5657 cat confdefs.h >>conftest.$ac_ext
5658 cat >>conftest.$ac_ext <<_ACEOF
5659 /* end confdefs.h. */
5660 $ac_includes_default
5661 #include <$ac_header>
5662 _ACEOF
5663 rm -f conftest.$ac_objext
5664 if { (ac_try="$ac_compile"
5665 case "(($ac_try" in
5666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5667 *) ac_try_echo=$ac_try;;
5668 esac
5669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5670 (eval "$ac_compile") 2>conftest.er1
5671 ac_status=$?
5672 grep -v '^ *+' conftest.er1 >conftest.err
5673 rm -f conftest.er1
5674 cat conftest.err >&5
5675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5676 (exit $ac_status); } && {
5677 test -z "$ac_c_werror_flag" ||
5678 test ! -s conftest.err
5679 } && test -s conftest.$ac_objext; then
5680 ac_header_compiler=yes
5681 else
5682 echo "$as_me: failed program was:" >&5
5683 sed 's/^/| /' conftest.$ac_ext >&5
5685 ac_header_compiler=no
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5690 echo "${ECHO_T}$ac_header_compiler" >&6; }
5692 # Is the header present?
5693 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5694 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5695 cat >conftest.$ac_ext <<_ACEOF
5696 /* confdefs.h. */
5697 _ACEOF
5698 cat confdefs.h >>conftest.$ac_ext
5699 cat >>conftest.$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 #include <$ac_header>
5702 _ACEOF
5703 if { (ac_try="$ac_cpp conftest.$ac_ext"
5704 case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5710 ac_status=$?
5711 grep -v '^ *+' conftest.er1 >conftest.err
5712 rm -f conftest.er1
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } >/dev/null && {
5716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5717 test ! -s conftest.err
5718 }; then
5719 ac_header_preproc=yes
5720 else
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5724 ac_header_preproc=no
5727 rm -f conftest.err conftest.$ac_ext
5728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5729 echo "${ECHO_T}$ac_header_preproc" >&6; }
5731 # So? What about this header?
5732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5733 yes:no: )
5734 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5735 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5737 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5738 ac_header_preproc=yes
5740 no:yes:* )
5741 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5742 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5744 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5746 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5748 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5750 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5751 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5752 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5755 esac
5756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5760 else
5761 eval "$as_ac_Header=\$ac_header_preproc"
5763 ac_res=`eval echo '${'$as_ac_Header'}'`
5764 { echo "$as_me:$LINENO: result: $ac_res" >&5
5765 echo "${ECHO_T}$ac_res" >&6; }
5768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5769 cat >>confdefs.h <<_ACEOF
5770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5771 _ACEOF
5775 done
5779 for ac_header in sys/mount.h
5781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 else
5787 cat >conftest.$ac_ext <<_ACEOF
5788 /* confdefs.h. */
5789 _ACEOF
5790 cat confdefs.h >>conftest.$ac_ext
5791 cat >>conftest.$ac_ext <<_ACEOF
5792 /* end confdefs.h. */
5793 #include <sys/param.h>
5795 #include <$ac_header>
5796 _ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5799 case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802 esac
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_compile") 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } && {
5811 test -z "$ac_c_werror_flag" ||
5812 test ! -s conftest.err
5813 } && test -s conftest.$ac_objext; then
5814 eval "$as_ac_Header=yes"
5815 else
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5819 eval "$as_ac_Header=no"
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824 ac_res=`eval echo '${'$as_ac_Header'}'`
5825 { echo "$as_me:$LINENO: result: $ac_res" >&5
5826 echo "${ECHO_T}$ac_res" >&6; }
5827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5828 cat >>confdefs.h <<_ACEOF
5829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5830 _ACEOF
5834 done
5842 ac_header_dirent=no
5843 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5844 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5845 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5846 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5849 else
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5856 #include <sys/types.h>
5857 #include <$ac_hdr>
5860 main ()
5862 if ((DIR *) 0)
5863 return 0;
5865 return 0;
5867 _ACEOF
5868 rm -f conftest.$ac_objext
5869 if { (ac_try="$ac_compile"
5870 case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_compile") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } && {
5882 test -z "$ac_c_werror_flag" ||
5883 test ! -s conftest.err
5884 } && test -s conftest.$ac_objext; then
5885 eval "$as_ac_Header=yes"
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5890 eval "$as_ac_Header=no"
5893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 ac_res=`eval echo '${'$as_ac_Header'}'`
5896 { echo "$as_me:$LINENO: result: $ac_res" >&5
5897 echo "${ECHO_T}$ac_res" >&6; }
5898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5899 cat >>confdefs.h <<_ACEOF
5900 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5901 _ACEOF
5903 ac_header_dirent=$ac_hdr; break
5906 done
5907 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5908 if test $ac_header_dirent = dirent.h; then
5909 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5910 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5911 if test "${ac_cv_search_opendir+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914 ac_func_search_save_LIBS=$LIBS
5915 cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h. */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5922 /* Override any GCC internal prototype to avoid an error.
5923 Use char because int might match the return type of a GCC
5924 builtin and then its argument prototype would still apply. */
5925 #ifdef __cplusplus
5926 extern "C"
5927 #endif
5928 char opendir ();
5930 main ()
5932 return opendir ();
5934 return 0;
5936 _ACEOF
5937 for ac_lib in '' dir; do
5938 if test -z "$ac_lib"; then
5939 ac_res="none required"
5940 else
5941 ac_res=-l$ac_lib
5942 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5944 rm -f conftest.$ac_objext conftest$ac_exeext
5945 if { (ac_try="$ac_link"
5946 case "(($ac_try" in
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5949 esac
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_link") 2>conftest.er1
5952 ac_status=$?
5953 grep -v '^ *+' conftest.er1 >conftest.err
5954 rm -f conftest.er1
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && {
5958 test -z "$ac_c_werror_flag" ||
5959 test ! -s conftest.err
5960 } && test -s conftest$ac_exeext &&
5961 $as_test_x conftest$ac_exeext; then
5962 ac_cv_search_opendir=$ac_res
5963 else
5964 echo "$as_me: failed program was:" >&5
5965 sed 's/^/| /' conftest.$ac_ext >&5
5970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5971 conftest$ac_exeext
5972 if test "${ac_cv_search_opendir+set}" = set; then
5973 break
5975 done
5976 if test "${ac_cv_search_opendir+set}" = set; then
5978 else
5979 ac_cv_search_opendir=no
5981 rm conftest.$ac_ext
5982 LIBS=$ac_func_search_save_LIBS
5984 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5985 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5986 ac_res=$ac_cv_search_opendir
5987 if test "$ac_res" != no; then
5988 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5992 else
5993 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5994 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5995 if test "${ac_cv_search_opendir+set}" = set; then
5996 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998 ac_func_search_save_LIBS=$LIBS
5999 cat >conftest.$ac_ext <<_ACEOF
6000 /* confdefs.h. */
6001 _ACEOF
6002 cat confdefs.h >>conftest.$ac_ext
6003 cat >>conftest.$ac_ext <<_ACEOF
6004 /* end confdefs.h. */
6006 /* Override any GCC internal prototype to avoid an error.
6007 Use char because int might match the return type of a GCC
6008 builtin and then its argument prototype would still apply. */
6009 #ifdef __cplusplus
6010 extern "C"
6011 #endif
6012 char opendir ();
6014 main ()
6016 return opendir ();
6018 return 0;
6020 _ACEOF
6021 for ac_lib in '' x; do
6022 if test -z "$ac_lib"; then
6023 ac_res="none required"
6024 else
6025 ac_res=-l$ac_lib
6026 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6028 rm -f conftest.$ac_objext conftest$ac_exeext
6029 if { (ac_try="$ac_link"
6030 case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033 esac
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_link") 2>conftest.er1
6036 ac_status=$?
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } && {
6042 test -z "$ac_c_werror_flag" ||
6043 test ! -s conftest.err
6044 } && test -s conftest$ac_exeext &&
6045 $as_test_x conftest$ac_exeext; then
6046 ac_cv_search_opendir=$ac_res
6047 else
6048 echo "$as_me: failed program was:" >&5
6049 sed 's/^/| /' conftest.$ac_ext >&5
6054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6055 conftest$ac_exeext
6056 if test "${ac_cv_search_opendir+set}" = set; then
6057 break
6059 done
6060 if test "${ac_cv_search_opendir+set}" = set; then
6062 else
6063 ac_cv_search_opendir=no
6065 rm conftest.$ac_ext
6066 LIBS=$ac_func_search_save_LIBS
6068 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6069 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6070 ac_res=$ac_cv_search_opendir
6071 if test "$ac_res" != no; then
6072 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6078 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6079 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6080 if test "${ac_cv_header_stat_broken+set}" = set; then
6081 echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083 cat >conftest.$ac_ext <<_ACEOF
6084 /* confdefs.h. */
6085 _ACEOF
6086 cat confdefs.h >>conftest.$ac_ext
6087 cat >>conftest.$ac_ext <<_ACEOF
6088 /* end confdefs.h. */
6089 #include <sys/types.h>
6090 #include <sys/stat.h>
6092 #if defined S_ISBLK && defined S_IFDIR
6093 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6094 #endif
6096 #if defined S_ISBLK && defined S_IFCHR
6097 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6098 #endif
6100 #if defined S_ISLNK && defined S_IFREG
6101 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6102 #endif
6104 #if defined S_ISSOCK && defined S_IFREG
6105 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6106 #endif
6108 _ACEOF
6109 rm -f conftest.$ac_objext
6110 if { (ac_try="$ac_compile"
6111 case "(($ac_try" in
6112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6113 *) ac_try_echo=$ac_try;;
6114 esac
6115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6116 (eval "$ac_compile") 2>conftest.er1
6117 ac_status=$?
6118 grep -v '^ *+' conftest.er1 >conftest.err
6119 rm -f conftest.er1
6120 cat conftest.err >&5
6121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6122 (exit $ac_status); } && {
6123 test -z "$ac_c_werror_flag" ||
6124 test ! -s conftest.err
6125 } && test -s conftest.$ac_objext; then
6126 ac_cv_header_stat_broken=no
6127 else
6128 echo "$as_me: failed program was:" >&5
6129 sed 's/^/| /' conftest.$ac_ext >&5
6131 ac_cv_header_stat_broken=yes
6134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6136 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6137 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6138 if test $ac_cv_header_stat_broken = yes; then
6140 cat >>confdefs.h <<\_ACEOF
6141 #define STAT_MACROS_BROKEN 1
6142 _ACEOF
6146 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6147 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6148 if test "${ac_cv_header_stdc+set}" = set; then
6149 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151 cat >conftest.$ac_ext <<_ACEOF
6152 /* confdefs.h. */
6153 _ACEOF
6154 cat confdefs.h >>conftest.$ac_ext
6155 cat >>conftest.$ac_ext <<_ACEOF
6156 /* end confdefs.h. */
6157 #include <stdlib.h>
6158 #include <stdarg.h>
6159 #include <string.h>
6160 #include <float.h>
6163 main ()
6167 return 0;
6169 _ACEOF
6170 rm -f conftest.$ac_objext
6171 if { (ac_try="$ac_compile"
6172 case "(($ac_try" in
6173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6174 *) ac_try_echo=$ac_try;;
6175 esac
6176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6177 (eval "$ac_compile") 2>conftest.er1
6178 ac_status=$?
6179 grep -v '^ *+' conftest.er1 >conftest.err
6180 rm -f conftest.er1
6181 cat conftest.err >&5
6182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6183 (exit $ac_status); } && {
6184 test -z "$ac_c_werror_flag" ||
6185 test ! -s conftest.err
6186 } && test -s conftest.$ac_objext; then
6187 ac_cv_header_stdc=yes
6188 else
6189 echo "$as_me: failed program was:" >&5
6190 sed 's/^/| /' conftest.$ac_ext >&5
6192 ac_cv_header_stdc=no
6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6197 if test $ac_cv_header_stdc = yes; then
6198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6199 cat >conftest.$ac_ext <<_ACEOF
6200 /* confdefs.h. */
6201 _ACEOF
6202 cat confdefs.h >>conftest.$ac_ext
6203 cat >>conftest.$ac_ext <<_ACEOF
6204 /* end confdefs.h. */
6205 #include <string.h>
6207 _ACEOF
6208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6209 $EGREP "memchr" >/dev/null 2>&1; then
6211 else
6212 ac_cv_header_stdc=no
6214 rm -f conftest*
6218 if test $ac_cv_header_stdc = yes; then
6219 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6220 cat >conftest.$ac_ext <<_ACEOF
6221 /* confdefs.h. */
6222 _ACEOF
6223 cat confdefs.h >>conftest.$ac_ext
6224 cat >>conftest.$ac_ext <<_ACEOF
6225 /* end confdefs.h. */
6226 #include <stdlib.h>
6228 _ACEOF
6229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6230 $EGREP "free" >/dev/null 2>&1; then
6232 else
6233 ac_cv_header_stdc=no
6235 rm -f conftest*
6239 if test $ac_cv_header_stdc = yes; then
6240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6241 if test "$cross_compiling" = yes; then
6243 else
6244 cat >conftest.$ac_ext <<_ACEOF
6245 /* confdefs.h. */
6246 _ACEOF
6247 cat confdefs.h >>conftest.$ac_ext
6248 cat >>conftest.$ac_ext <<_ACEOF
6249 /* end confdefs.h. */
6250 #include <ctype.h>
6251 #include <stdlib.h>
6252 #if ((' ' & 0x0FF) == 0x020)
6253 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6254 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6255 #else
6256 # define ISLOWER(c) \
6257 (('a' <= (c) && (c) <= 'i') \
6258 || ('j' <= (c) && (c) <= 'r') \
6259 || ('s' <= (c) && (c) <= 'z'))
6260 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6261 #endif
6263 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6265 main ()
6267 int i;
6268 for (i = 0; i < 256; i++)
6269 if (XOR (islower (i), ISLOWER (i))
6270 || toupper (i) != TOUPPER (i))
6271 return 2;
6272 return 0;
6274 _ACEOF
6275 rm -f conftest$ac_exeext
6276 if { (ac_try="$ac_link"
6277 case "(($ac_try" in
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6280 esac
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_link") 2>&5
6283 ac_status=$?
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6286 { (case "(($ac_try" in
6287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6288 *) ac_try_echo=$ac_try;;
6289 esac
6290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6291 (eval "$ac_try") 2>&5
6292 ac_status=$?
6293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294 (exit $ac_status); }; }; then
6296 else
6297 echo "$as_me: program exited with status $ac_status" >&5
6298 echo "$as_me: failed program was:" >&5
6299 sed 's/^/| /' conftest.$ac_ext >&5
6301 ( exit $ac_status )
6302 ac_cv_header_stdc=no
6304 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6310 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6311 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6312 if test $ac_cv_header_stdc = yes; then
6314 cat >>confdefs.h <<\_ACEOF
6315 #define STDC_HEADERS 1
6316 _ACEOF
6320 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6321 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6322 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324 else
6325 cat >conftest.$ac_ext <<_ACEOF
6326 /* confdefs.h. */
6327 _ACEOF
6328 cat confdefs.h >>conftest.$ac_ext
6329 cat >>conftest.$ac_ext <<_ACEOF
6330 /* end confdefs.h. */
6331 #include <sys/types.h>
6332 #include <sys/wait.h>
6333 #ifndef WEXITSTATUS
6334 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6335 #endif
6336 #ifndef WIFEXITED
6337 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6338 #endif
6341 main ()
6343 int s;
6344 wait (&s);
6345 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6347 return 0;
6349 _ACEOF
6350 rm -f conftest.$ac_objext
6351 if { (ac_try="$ac_compile"
6352 case "(($ac_try" in
6353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6354 *) ac_try_echo=$ac_try;;
6355 esac
6356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6357 (eval "$ac_compile") 2>conftest.er1
6358 ac_status=$?
6359 grep -v '^ *+' conftest.er1 >conftest.err
6360 rm -f conftest.er1
6361 cat conftest.err >&5
6362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6363 (exit $ac_status); } && {
6364 test -z "$ac_c_werror_flag" ||
6365 test ! -s conftest.err
6366 } && test -s conftest.$ac_objext; then
6367 ac_cv_header_sys_wait_h=yes
6368 else
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 ac_cv_header_sys_wait_h=no
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6377 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6378 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6379 if test $ac_cv_header_sys_wait_h = yes; then
6381 cat >>confdefs.h <<\_ACEOF
6382 #define HAVE_SYS_WAIT_H 1
6383 _ACEOF
6387 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6388 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6389 if test "${ac_cv_header_time+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392 cat >conftest.$ac_ext <<_ACEOF
6393 /* confdefs.h. */
6394 _ACEOF
6395 cat confdefs.h >>conftest.$ac_ext
6396 cat >>conftest.$ac_ext <<_ACEOF
6397 /* end confdefs.h. */
6398 #include <sys/types.h>
6399 #include <sys/time.h>
6400 #include <time.h>
6403 main ()
6405 if ((struct tm *) 0)
6406 return 0;
6408 return 0;
6410 _ACEOF
6411 rm -f conftest.$ac_objext
6412 if { (ac_try="$ac_compile"
6413 case "(($ac_try" in
6414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6415 *) ac_try_echo=$ac_try;;
6416 esac
6417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6418 (eval "$ac_compile") 2>conftest.er1
6419 ac_status=$?
6420 grep -v '^ *+' conftest.er1 >conftest.err
6421 rm -f conftest.er1
6422 cat conftest.err >&5
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6424 (exit $ac_status); } && {
6425 test -z "$ac_c_werror_flag" ||
6426 test ! -s conftest.err
6427 } && test -s conftest.$ac_objext; then
6428 ac_cv_header_time=yes
6429 else
6430 echo "$as_me: failed program was:" >&5
6431 sed 's/^/| /' conftest.$ac_ext >&5
6433 ac_cv_header_time=no
6436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6438 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6439 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6440 if test $ac_cv_header_time = yes; then
6442 cat >>confdefs.h <<\_ACEOF
6443 #define TIME_WITH_SYS_TIME 1
6444 _ACEOF
6448 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6449 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6450 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6451 echo $ECHO_N "(cached) $ECHO_C" >&6
6452 else
6453 cat >conftest.$ac_ext <<_ACEOF
6454 /* confdefs.h. */
6455 _ACEOF
6456 cat confdefs.h >>conftest.$ac_ext
6457 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6459 $ac_includes_default
6461 main ()
6463 static struct stat ac_aggr;
6464 if (ac_aggr.st_blksize)
6465 return 0;
6467 return 0;
6469 _ACEOF
6470 rm -f conftest.$ac_objext
6471 if { (ac_try="$ac_compile"
6472 case "(($ac_try" in
6473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6474 *) ac_try_echo=$ac_try;;
6475 esac
6476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477 (eval "$ac_compile") 2>conftest.er1
6478 ac_status=$?
6479 grep -v '^ *+' conftest.er1 >conftest.err
6480 rm -f conftest.er1
6481 cat conftest.err >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); } && {
6484 test -z "$ac_c_werror_flag" ||
6485 test ! -s conftest.err
6486 } && test -s conftest.$ac_objext; then
6487 ac_cv_member_struct_stat_st_blksize=yes
6488 else
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6492 cat >conftest.$ac_ext <<_ACEOF
6493 /* confdefs.h. */
6494 _ACEOF
6495 cat confdefs.h >>conftest.$ac_ext
6496 cat >>conftest.$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6498 $ac_includes_default
6500 main ()
6502 static struct stat ac_aggr;
6503 if (sizeof ac_aggr.st_blksize)
6504 return 0;
6506 return 0;
6508 _ACEOF
6509 rm -f conftest.$ac_objext
6510 if { (ac_try="$ac_compile"
6511 case "(($ac_try" in
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6514 esac
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_compile") 2>conftest.er1
6517 ac_status=$?
6518 grep -v '^ *+' conftest.er1 >conftest.err
6519 rm -f conftest.er1
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } && {
6523 test -z "$ac_c_werror_flag" ||
6524 test ! -s conftest.err
6525 } && test -s conftest.$ac_objext; then
6526 ac_cv_member_struct_stat_st_blksize=yes
6527 else
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6531 ac_cv_member_struct_stat_st_blksize=no
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6539 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6540 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6541 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6543 cat >>confdefs.h <<_ACEOF
6544 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6545 _ACEOF
6548 cat >>confdefs.h <<\_ACEOF
6549 #define HAVE_ST_BLKSIZE 1
6550 _ACEOF
6555 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6556 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6557 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6558 echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560 cat >conftest.$ac_ext <<_ACEOF
6561 /* confdefs.h. */
6562 _ACEOF
6563 cat confdefs.h >>conftest.$ac_ext
6564 cat >>conftest.$ac_ext <<_ACEOF
6565 /* end confdefs.h. */
6566 $ac_includes_default
6568 main ()
6570 static struct stat ac_aggr;
6571 if (ac_aggr.st_blocks)
6572 return 0;
6574 return 0;
6576 _ACEOF
6577 rm -f conftest.$ac_objext
6578 if { (ac_try="$ac_compile"
6579 case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6582 esac
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_compile") 2>conftest.er1
6585 ac_status=$?
6586 grep -v '^ *+' conftest.er1 >conftest.err
6587 rm -f conftest.er1
6588 cat conftest.err >&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); } && {
6591 test -z "$ac_c_werror_flag" ||
6592 test ! -s conftest.err
6593 } && test -s conftest.$ac_objext; then
6594 ac_cv_member_struct_stat_st_blocks=yes
6595 else
6596 echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6599 cat >conftest.$ac_ext <<_ACEOF
6600 /* confdefs.h. */
6601 _ACEOF
6602 cat confdefs.h >>conftest.$ac_ext
6603 cat >>conftest.$ac_ext <<_ACEOF
6604 /* end confdefs.h. */
6605 $ac_includes_default
6607 main ()
6609 static struct stat ac_aggr;
6610 if (sizeof ac_aggr.st_blocks)
6611 return 0;
6613 return 0;
6615 _ACEOF
6616 rm -f conftest.$ac_objext
6617 if { (ac_try="$ac_compile"
6618 case "(($ac_try" in
6619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620 *) ac_try_echo=$ac_try;;
6621 esac
6622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6623 (eval "$ac_compile") 2>conftest.er1
6624 ac_status=$?
6625 grep -v '^ *+' conftest.er1 >conftest.err
6626 rm -f conftest.er1
6627 cat conftest.err >&5
6628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6629 (exit $ac_status); } && {
6630 test -z "$ac_c_werror_flag" ||
6631 test ! -s conftest.err
6632 } && test -s conftest.$ac_objext; then
6633 ac_cv_member_struct_stat_st_blocks=yes
6634 else
6635 echo "$as_me: failed program was:" >&5
6636 sed 's/^/| /' conftest.$ac_ext >&5
6638 ac_cv_member_struct_stat_st_blocks=no
6641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6647 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6648 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6650 cat >>confdefs.h <<_ACEOF
6651 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6652 _ACEOF
6655 cat >>confdefs.h <<\_ACEOF
6656 #define HAVE_ST_BLOCKS 1
6657 _ACEOF
6659 else
6660 case " $LIBOBJS " in
6661 *" fileblocks.$ac_objext "* ) ;;
6662 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6664 esac
6669 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6670 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6671 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6672 echo $ECHO_N "(cached) $ECHO_C" >&6
6673 else
6674 cat >conftest.$ac_ext <<_ACEOF
6675 /* confdefs.h. */
6676 _ACEOF
6677 cat confdefs.h >>conftest.$ac_ext
6678 cat >>conftest.$ac_ext <<_ACEOF
6679 /* end confdefs.h. */
6680 $ac_includes_default
6682 main ()
6684 static struct stat ac_aggr;
6685 if (ac_aggr.st_rdev)
6686 return 0;
6688 return 0;
6690 _ACEOF
6691 rm -f conftest.$ac_objext
6692 if { (ac_try="$ac_compile"
6693 case "(($ac_try" in
6694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6695 *) ac_try_echo=$ac_try;;
6696 esac
6697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6698 (eval "$ac_compile") 2>conftest.er1
6699 ac_status=$?
6700 grep -v '^ *+' conftest.er1 >conftest.err
6701 rm -f conftest.er1
6702 cat conftest.err >&5
6703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6704 (exit $ac_status); } && {
6705 test -z "$ac_c_werror_flag" ||
6706 test ! -s conftest.err
6707 } && test -s conftest.$ac_objext; then
6708 ac_cv_member_struct_stat_st_rdev=yes
6709 else
6710 echo "$as_me: failed program was:" >&5
6711 sed 's/^/| /' conftest.$ac_ext >&5
6713 cat >conftest.$ac_ext <<_ACEOF
6714 /* confdefs.h. */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 $ac_includes_default
6721 main ()
6723 static struct stat ac_aggr;
6724 if (sizeof ac_aggr.st_rdev)
6725 return 0;
6727 return 0;
6729 _ACEOF
6730 rm -f conftest.$ac_objext
6731 if { (ac_try="$ac_compile"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_compile") 2>conftest.er1
6738 ac_status=$?
6739 grep -v '^ *+' conftest.er1 >conftest.err
6740 rm -f conftest.er1
6741 cat conftest.err >&5
6742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6743 (exit $ac_status); } && {
6744 test -z "$ac_c_werror_flag" ||
6745 test ! -s conftest.err
6746 } && test -s conftest.$ac_objext; then
6747 ac_cv_member_struct_stat_st_rdev=yes
6748 else
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6752 ac_cv_member_struct_stat_st_rdev=no
6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6761 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6762 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6764 cat >>confdefs.h <<_ACEOF
6765 #define HAVE_STRUCT_STAT_ST_RDEV 1
6766 _ACEOF
6769 cat >>confdefs.h <<\_ACEOF
6770 #define HAVE_ST_RDEV 1
6771 _ACEOF
6776 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6777 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6778 if test "${ac_cv_struct_tm+set}" = set; then
6779 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 else
6781 cat >conftest.$ac_ext <<_ACEOF
6782 /* confdefs.h. */
6783 _ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6787 #include <sys/types.h>
6788 #include <time.h>
6791 main ()
6793 struct tm tm;
6794 int *p = &tm.tm_sec;
6795 return !p;
6797 return 0;
6799 _ACEOF
6800 rm -f conftest.$ac_objext
6801 if { (ac_try="$ac_compile"
6802 case "(($ac_try" in
6803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6804 *) ac_try_echo=$ac_try;;
6805 esac
6806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6807 (eval "$ac_compile") 2>conftest.er1
6808 ac_status=$?
6809 grep -v '^ *+' conftest.er1 >conftest.err
6810 rm -f conftest.er1
6811 cat conftest.err >&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); } && {
6814 test -z "$ac_c_werror_flag" ||
6815 test ! -s conftest.err
6816 } && test -s conftest.$ac_objext; then
6817 ac_cv_struct_tm=time.h
6818 else
6819 echo "$as_me: failed program was:" >&5
6820 sed 's/^/| /' conftest.$ac_ext >&5
6822 ac_cv_struct_tm=sys/time.h
6825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6827 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6828 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6829 if test $ac_cv_struct_tm = sys/time.h; then
6831 cat >>confdefs.h <<\_ACEOF
6832 #define TM_IN_SYS_TIME 1
6833 _ACEOF
6837 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6838 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6839 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 else
6842 cat >conftest.$ac_ext <<_ACEOF
6843 /* confdefs.h. */
6844 _ACEOF
6845 cat confdefs.h >>conftest.$ac_ext
6846 cat >>conftest.$ac_ext <<_ACEOF
6847 /* end confdefs.h. */
6848 #include <sys/types.h>
6849 #include <$ac_cv_struct_tm>
6853 main ()
6855 static struct tm ac_aggr;
6856 if (ac_aggr.tm_zone)
6857 return 0;
6859 return 0;
6861 _ACEOF
6862 rm -f conftest.$ac_objext
6863 if { (ac_try="$ac_compile"
6864 case "(($ac_try" in
6865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6866 *) ac_try_echo=$ac_try;;
6867 esac
6868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6869 (eval "$ac_compile") 2>conftest.er1
6870 ac_status=$?
6871 grep -v '^ *+' conftest.er1 >conftest.err
6872 rm -f conftest.er1
6873 cat conftest.err >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } && {
6876 test -z "$ac_c_werror_flag" ||
6877 test ! -s conftest.err
6878 } && test -s conftest.$ac_objext; then
6879 ac_cv_member_struct_tm_tm_zone=yes
6880 else
6881 echo "$as_me: failed program was:" >&5
6882 sed 's/^/| /' conftest.$ac_ext >&5
6884 cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h. */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890 #include <sys/types.h>
6891 #include <$ac_cv_struct_tm>
6895 main ()
6897 static struct tm ac_aggr;
6898 if (sizeof ac_aggr.tm_zone)
6899 return 0;
6901 return 0;
6903 _ACEOF
6904 rm -f conftest.$ac_objext
6905 if { (ac_try="$ac_compile"
6906 case "(($ac_try" in
6907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908 *) ac_try_echo=$ac_try;;
6909 esac
6910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911 (eval "$ac_compile") 2>conftest.er1
6912 ac_status=$?
6913 grep -v '^ *+' conftest.er1 >conftest.err
6914 rm -f conftest.er1
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && {
6918 test -z "$ac_c_werror_flag" ||
6919 test ! -s conftest.err
6920 } && test -s conftest.$ac_objext; then
6921 ac_cv_member_struct_tm_tm_zone=yes
6922 else
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6926 ac_cv_member_struct_tm_tm_zone=no
6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6935 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6936 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6938 cat >>confdefs.h <<_ACEOF
6939 #define HAVE_STRUCT_TM_TM_ZONE 1
6940 _ACEOF
6945 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6947 cat >>confdefs.h <<\_ACEOF
6948 #define HAVE_TM_ZONE 1
6949 _ACEOF
6951 else
6952 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6953 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6954 if test "${ac_cv_have_decl_tzname+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 else
6957 cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h. */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 #include <time.h>
6966 main ()
6968 #ifndef tzname
6969 (void) tzname;
6970 #endif
6973 return 0;
6975 _ACEOF
6976 rm -f conftest.$ac_objext
6977 if { (ac_try="$ac_compile"
6978 case "(($ac_try" in
6979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6980 *) ac_try_echo=$ac_try;;
6981 esac
6982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6983 (eval "$ac_compile") 2>conftest.er1
6984 ac_status=$?
6985 grep -v '^ *+' conftest.er1 >conftest.err
6986 rm -f conftest.er1
6987 cat conftest.err >&5
6988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6989 (exit $ac_status); } && {
6990 test -z "$ac_c_werror_flag" ||
6991 test ! -s conftest.err
6992 } && test -s conftest.$ac_objext; then
6993 ac_cv_have_decl_tzname=yes
6994 else
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6998 ac_cv_have_decl_tzname=no
7001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7004 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7005 if test $ac_cv_have_decl_tzname = yes; then
7007 cat >>confdefs.h <<_ACEOF
7008 #define HAVE_DECL_TZNAME 1
7009 _ACEOF
7012 else
7013 cat >>confdefs.h <<_ACEOF
7014 #define HAVE_DECL_TZNAME 0
7015 _ACEOF
7021 { echo "$as_me:$LINENO: checking for tzname" >&5
7022 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7023 if test "${ac_cv_var_tzname+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7025 else
7026 cat >conftest.$ac_ext <<_ACEOF
7027 /* confdefs.h. */
7028 _ACEOF
7029 cat confdefs.h >>conftest.$ac_ext
7030 cat >>conftest.$ac_ext <<_ACEOF
7031 /* end confdefs.h. */
7032 #include <time.h>
7033 #if !HAVE_DECL_TZNAME
7034 extern char *tzname[];
7035 #endif
7038 main ()
7040 return tzname[0][0];
7042 return 0;
7044 _ACEOF
7045 rm -f conftest.$ac_objext conftest$ac_exeext
7046 if { (ac_try="$ac_link"
7047 case "(($ac_try" in
7048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7049 *) ac_try_echo=$ac_try;;
7050 esac
7051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052 (eval "$ac_link") 2>conftest.er1
7053 ac_status=$?
7054 grep -v '^ *+' conftest.er1 >conftest.err
7055 rm -f conftest.er1
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } && {
7059 test -z "$ac_c_werror_flag" ||
7060 test ! -s conftest.err
7061 } && test -s conftest$ac_exeext &&
7062 $as_test_x conftest$ac_exeext; then
7063 ac_cv_var_tzname=yes
7064 else
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7068 ac_cv_var_tzname=no
7071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7072 conftest$ac_exeext conftest.$ac_ext
7074 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7075 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7076 if test $ac_cv_var_tzname = yes; then
7078 cat >>confdefs.h <<\_ACEOF
7079 #define HAVE_TZNAME 1
7080 _ACEOF
7085 { echo "$as_me:$LINENO: checking for off_t" >&5
7086 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7087 if test "${ac_cv_type_off_t+set}" = set; then
7088 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 else
7090 cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h. */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h. */
7096 $ac_includes_default
7097 typedef off_t ac__type_new_;
7099 main ()
7101 if ((ac__type_new_ *) 0)
7102 return 0;
7103 if (sizeof (ac__type_new_))
7104 return 0;
7106 return 0;
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (ac_try="$ac_compile"
7111 case "(($ac_try" in
7112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7113 *) ac_try_echo=$ac_try;;
7114 esac
7115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7116 (eval "$ac_compile") 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && {
7123 test -z "$ac_c_werror_flag" ||
7124 test ! -s conftest.err
7125 } && test -s conftest.$ac_objext; then
7126 ac_cv_type_off_t=yes
7127 else
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7131 ac_cv_type_off_t=no
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7137 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7138 if test $ac_cv_type_off_t = yes; then
7140 else
7142 cat >>confdefs.h <<_ACEOF
7143 #define off_t long int
7144 _ACEOF
7148 { echo "$as_me:$LINENO: checking for pid_t" >&5
7149 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7150 if test "${ac_cv_type_pid_t+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 $ac_includes_default
7160 typedef pid_t ac__type_new_;
7162 main ()
7164 if ((ac__type_new_ *) 0)
7165 return 0;
7166 if (sizeof (ac__type_new_))
7167 return 0;
7169 return 0;
7171 _ACEOF
7172 rm -f conftest.$ac_objext
7173 if { (ac_try="$ac_compile"
7174 case "(($ac_try" in
7175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7176 *) ac_try_echo=$ac_try;;
7177 esac
7178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7179 (eval "$ac_compile") 2>conftest.er1
7180 ac_status=$?
7181 grep -v '^ *+' conftest.er1 >conftest.err
7182 rm -f conftest.er1
7183 cat conftest.err >&5
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); } && {
7186 test -z "$ac_c_werror_flag" ||
7187 test ! -s conftest.err
7188 } && test -s conftest.$ac_objext; then
7189 ac_cv_type_pid_t=yes
7190 else
7191 echo "$as_me: failed program was:" >&5
7192 sed 's/^/| /' conftest.$ac_ext >&5
7194 ac_cv_type_pid_t=no
7197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7199 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7200 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7201 if test $ac_cv_type_pid_t = yes; then
7203 else
7205 cat >>confdefs.h <<_ACEOF
7206 #define pid_t int
7207 _ACEOF
7211 { echo "$as_me:$LINENO: checking for size_t" >&5
7212 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7213 if test "${ac_cv_type_size_t+set}" = set; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215 else
7216 cat >conftest.$ac_ext <<_ACEOF
7217 /* confdefs.h. */
7218 _ACEOF
7219 cat confdefs.h >>conftest.$ac_ext
7220 cat >>conftest.$ac_ext <<_ACEOF
7221 /* end confdefs.h. */
7222 $ac_includes_default
7223 typedef size_t ac__type_new_;
7225 main ()
7227 if ((ac__type_new_ *) 0)
7228 return 0;
7229 if (sizeof (ac__type_new_))
7230 return 0;
7232 return 0;
7234 _ACEOF
7235 rm -f conftest.$ac_objext
7236 if { (ac_try="$ac_compile"
7237 case "(($ac_try" in
7238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7239 *) ac_try_echo=$ac_try;;
7240 esac
7241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7242 (eval "$ac_compile") 2>conftest.er1
7243 ac_status=$?
7244 grep -v '^ *+' conftest.er1 >conftest.err
7245 rm -f conftest.er1
7246 cat conftest.err >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } && {
7249 test -z "$ac_c_werror_flag" ||
7250 test ! -s conftest.err
7251 } && test -s conftest.$ac_objext; then
7252 ac_cv_type_size_t=yes
7253 else
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7257 ac_cv_type_size_t=no
7260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7262 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7263 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7264 if test $ac_cv_type_size_t = yes; then
7266 else
7268 cat >>confdefs.h <<_ACEOF
7269 #define size_t unsigned int
7270 _ACEOF
7274 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7275 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7276 if test "${ac_cv_type_uid_t+set}" = set; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279 cat >conftest.$ac_ext <<_ACEOF
7280 /* confdefs.h. */
7281 _ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7285 #include <sys/types.h>
7287 _ACEOF
7288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7289 $EGREP "uid_t" >/dev/null 2>&1; then
7290 ac_cv_type_uid_t=yes
7291 else
7292 ac_cv_type_uid_t=no
7294 rm -f conftest*
7297 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7298 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7299 if test $ac_cv_type_uid_t = no; then
7301 cat >>confdefs.h <<\_ACEOF
7302 #define uid_t int
7303 _ACEOF
7306 cat >>confdefs.h <<\_ACEOF
7307 #define gid_t int
7308 _ACEOF
7313 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7314 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7315 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7316 echo $ECHO_N "(cached) $ECHO_C" >&6
7317 else
7318 cat >conftest.$ac_ext <<_ACEOF
7319 /* confdefs.h. */
7320 _ACEOF
7321 cat confdefs.h >>conftest.$ac_ext
7322 cat >>conftest.$ac_ext <<_ACEOF
7323 /* end confdefs.h. */
7324 $ac_includes_default
7326 main ()
7328 static struct tm ac_aggr;
7329 if (ac_aggr.tm_gmtoff)
7330 return 0;
7332 return 0;
7334 _ACEOF
7335 rm -f conftest.$ac_objext
7336 if { (ac_try="$ac_compile"
7337 case "(($ac_try" in
7338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7339 *) ac_try_echo=$ac_try;;
7340 esac
7341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7342 (eval "$ac_compile") 2>conftest.er1
7343 ac_status=$?
7344 grep -v '^ *+' conftest.er1 >conftest.err
7345 rm -f conftest.er1
7346 cat conftest.err >&5
7347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348 (exit $ac_status); } && {
7349 test -z "$ac_c_werror_flag" ||
7350 test ! -s conftest.err
7351 } && test -s conftest.$ac_objext; then
7352 ac_cv_member_struct_tm_tm_gmtoff=yes
7353 else
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7357 cat >conftest.$ac_ext <<_ACEOF
7358 /* confdefs.h. */
7359 _ACEOF
7360 cat confdefs.h >>conftest.$ac_ext
7361 cat >>conftest.$ac_ext <<_ACEOF
7362 /* end confdefs.h. */
7363 $ac_includes_default
7365 main ()
7367 static struct tm ac_aggr;
7368 if (sizeof ac_aggr.tm_gmtoff)
7369 return 0;
7371 return 0;
7373 _ACEOF
7374 rm -f conftest.$ac_objext
7375 if { (ac_try="$ac_compile"
7376 case "(($ac_try" in
7377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378 *) ac_try_echo=$ac_try;;
7379 esac
7380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381 (eval "$ac_compile") 2>conftest.er1
7382 ac_status=$?
7383 grep -v '^ *+' conftest.er1 >conftest.err
7384 rm -f conftest.er1
7385 cat conftest.err >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } && {
7388 test -z "$ac_c_werror_flag" ||
7389 test ! -s conftest.err
7390 } && test -s conftest.$ac_objext; then
7391 ac_cv_member_struct_tm_tm_gmtoff=yes
7392 else
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7396 ac_cv_member_struct_tm_tm_gmtoff=no
7399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7404 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7405 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7406 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7408 cat >>confdefs.h <<_ACEOF
7409 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7410 _ACEOF
7416 # Look for some functions
7431 for ac_func in getpagesize kqueue statfs statvfs \
7432 clone kse_create rfork_thread thr_create sa_register \
7433 getcontext makecontext setcontext sigaltstack swapcontext
7435 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7436 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7437 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7438 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 else
7441 cat >conftest.$ac_ext <<_ACEOF
7442 /* confdefs.h. */
7443 _ACEOF
7444 cat confdefs.h >>conftest.$ac_ext
7445 cat >>conftest.$ac_ext <<_ACEOF
7446 /* end confdefs.h. */
7447 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7449 #define $ac_func innocuous_$ac_func
7451 /* System header to define __stub macros and hopefully few prototypes,
7452 which can conflict with char $ac_func (); below.
7453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7454 <limits.h> exists even on freestanding compilers. */
7456 #ifdef __STDC__
7457 # include <limits.h>
7458 #else
7459 # include <assert.h>
7460 #endif
7462 #undef $ac_func
7464 /* Override any GCC internal prototype to avoid an error.
7465 Use char because int might match the return type of a GCC
7466 builtin and then its argument prototype would still apply. */
7467 #ifdef __cplusplus
7468 extern "C"
7469 #endif
7470 char $ac_func ();
7471 /* The GNU C library defines this for functions which it implements
7472 to always fail with ENOSYS. Some functions are actually named
7473 something starting with __ and the normal name is an alias. */
7474 #if defined __stub_$ac_func || defined __stub___$ac_func
7475 choke me
7476 #endif
7479 main ()
7481 return $ac_func ();
7483 return 0;
7485 _ACEOF
7486 rm -f conftest.$ac_objext conftest$ac_exeext
7487 if { (ac_try="$ac_link"
7488 case "(($ac_try" in
7489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7491 esac
7492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7493 (eval "$ac_link") 2>conftest.er1
7494 ac_status=$?
7495 grep -v '^ *+' conftest.er1 >conftest.err
7496 rm -f conftest.er1
7497 cat conftest.err >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } && {
7500 test -z "$ac_c_werror_flag" ||
7501 test ! -s conftest.err
7502 } && test -s conftest$ac_exeext &&
7503 $as_test_x conftest$ac_exeext; then
7504 eval "$as_ac_var=yes"
7505 else
7506 echo "$as_me: failed program was:" >&5
7507 sed 's/^/| /' conftest.$ac_ext >&5
7509 eval "$as_ac_var=no"
7512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7513 conftest$ac_exeext conftest.$ac_ext
7515 ac_res=`eval echo '${'$as_ac_var'}'`
7516 { echo "$as_me:$LINENO: result: $ac_res" >&5
7517 echo "${ECHO_T}$ac_res" >&6; }
7518 if test `eval echo '${'$as_ac_var'}'` = yes; then
7519 cat >>confdefs.h <<_ACEOF
7520 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7521 _ACEOF
7524 done
7529 for ac_header in stdlib.h unistd.h
7531 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7532 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 ac_res=`eval echo '${'$as_ac_Header'}'`
7539 { echo "$as_me:$LINENO: result: $ac_res" >&5
7540 echo "${ECHO_T}$ac_res" >&6; }
7541 else
7542 # Is the header compilable?
7543 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7545 cat >conftest.$ac_ext <<_ACEOF
7546 /* confdefs.h. */
7547 _ACEOF
7548 cat confdefs.h >>conftest.$ac_ext
7549 cat >>conftest.$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 $ac_includes_default
7552 #include <$ac_header>
7553 _ACEOF
7554 rm -f conftest.$ac_objext
7555 if { (ac_try="$ac_compile"
7556 case "(($ac_try" in
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7559 esac
7560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7561 (eval "$ac_compile") 2>conftest.er1
7562 ac_status=$?
7563 grep -v '^ *+' conftest.er1 >conftest.err
7564 rm -f conftest.er1
7565 cat conftest.err >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && {
7568 test -z "$ac_c_werror_flag" ||
7569 test ! -s conftest.err
7570 } && test -s conftest.$ac_objext; then
7571 ac_header_compiler=yes
7572 else
7573 echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7576 ac_header_compiler=no
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7581 echo "${ECHO_T}$ac_header_compiler" >&6; }
7583 # Is the header present?
7584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7586 cat >conftest.$ac_ext <<_ACEOF
7587 /* confdefs.h. */
7588 _ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592 #include <$ac_header>
7593 _ACEOF
7594 if { (ac_try="$ac_cpp conftest.$ac_ext"
7595 case "(($ac_try" in
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7598 esac
7599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7601 ac_status=$?
7602 grep -v '^ *+' conftest.er1 >conftest.err
7603 rm -f conftest.er1
7604 cat conftest.err >&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } >/dev/null && {
7607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7608 test ! -s conftest.err
7609 }; then
7610 ac_header_preproc=yes
7611 else
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.$ac_ext >&5
7615 ac_header_preproc=no
7618 rm -f conftest.err conftest.$ac_ext
7619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7620 echo "${ECHO_T}$ac_header_preproc" >&6; }
7622 # So? What about this header?
7623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7624 yes:no: )
7625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7629 ac_header_preproc=yes
7631 no:yes:* )
7632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7646 esac
7647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652 eval "$as_ac_Header=\$ac_header_preproc"
7654 ac_res=`eval echo '${'$as_ac_Header'}'`
7655 { echo "$as_me:$LINENO: result: $ac_res" >&5
7656 echo "${ECHO_T}$ac_res" >&6; }
7659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7660 cat >>confdefs.h <<_ACEOF
7661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7662 _ACEOF
7666 done
7669 for ac_func in getpagesize
7671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677 cat >conftest.$ac_ext <<_ACEOF
7678 /* confdefs.h. */
7679 _ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7685 #define $ac_func innocuous_$ac_func
7687 /* System header to define __stub macros and hopefully few prototypes,
7688 which can conflict with char $ac_func (); below.
7689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7690 <limits.h> exists even on freestanding compilers. */
7692 #ifdef __STDC__
7693 # include <limits.h>
7694 #else
7695 # include <assert.h>
7696 #endif
7698 #undef $ac_func
7700 /* Override any GCC internal prototype to avoid an error.
7701 Use char because int might match the return type of a GCC
7702 builtin and then its argument prototype would still apply. */
7703 #ifdef __cplusplus
7704 extern "C"
7705 #endif
7706 char $ac_func ();
7707 /* The GNU C library defines this for functions which it implements
7708 to always fail with ENOSYS. Some functions are actually named
7709 something starting with __ and the normal name is an alias. */
7710 #if defined __stub_$ac_func || defined __stub___$ac_func
7711 choke me
7712 #endif
7715 main ()
7717 return $ac_func ();
7719 return 0;
7721 _ACEOF
7722 rm -f conftest.$ac_objext conftest$ac_exeext
7723 if { (ac_try="$ac_link"
7724 case "(($ac_try" in
7725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7726 *) ac_try_echo=$ac_try;;
7727 esac
7728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7729 (eval "$ac_link") 2>conftest.er1
7730 ac_status=$?
7731 grep -v '^ *+' conftest.er1 >conftest.err
7732 rm -f conftest.er1
7733 cat conftest.err >&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); } && {
7736 test -z "$ac_c_werror_flag" ||
7737 test ! -s conftest.err
7738 } && test -s conftest$ac_exeext &&
7739 $as_test_x conftest$ac_exeext; then
7740 eval "$as_ac_var=yes"
7741 else
7742 echo "$as_me: failed program was:" >&5
7743 sed 's/^/| /' conftest.$ac_ext >&5
7745 eval "$as_ac_var=no"
7748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7749 conftest$ac_exeext conftest.$ac_ext
7751 ac_res=`eval echo '${'$as_ac_var'}'`
7752 { echo "$as_me:$LINENO: result: $ac_res" >&5
7753 echo "${ECHO_T}$ac_res" >&6; }
7754 if test `eval echo '${'$as_ac_var'}'` = yes; then
7755 cat >>confdefs.h <<_ACEOF
7756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7757 _ACEOF
7760 done
7762 { echo "$as_me:$LINENO: checking for working mmap" >&5
7763 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7764 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7766 else
7767 if test "$cross_compiling" = yes; then
7768 ac_cv_func_mmap_fixed_mapped=no
7769 else
7770 cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h. */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h. */
7776 $ac_includes_default
7777 /* malloc might have been renamed as rpl_malloc. */
7778 #undef malloc
7780 /* Thanks to Mike Haertel and Jim Avera for this test.
7781 Here is a matrix of mmap possibilities:
7782 mmap private not fixed
7783 mmap private fixed at somewhere currently unmapped
7784 mmap private fixed at somewhere already mapped
7785 mmap shared not fixed
7786 mmap shared fixed at somewhere currently unmapped
7787 mmap shared fixed at somewhere already mapped
7788 For private mappings, we should verify that changes cannot be read()
7789 back from the file, nor mmap's back from the file at a different
7790 address. (There have been systems where private was not correctly
7791 implemented like the infamous i386 svr4.0, and systems where the
7792 VM page cache was not coherent with the file system buffer cache
7793 like early versions of FreeBSD and possibly contemporary NetBSD.)
7794 For shared mappings, we should conversely verify that changes get
7795 propagated back to all the places they're supposed to be.
7797 Grep wants private fixed already mapped.
7798 The main things grep needs to know about mmap are:
7799 * does it exist and is it safe to write into the mmap'd area
7800 * how to use it (BSD variants) */
7802 #include <fcntl.h>
7803 #include <sys/mman.h>
7805 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7806 char *malloc ();
7807 #endif
7809 /* This mess was copied from the GNU getpagesize.h. */
7810 #ifndef HAVE_GETPAGESIZE
7811 /* Assume that all systems that can run configure have sys/param.h. */
7812 # ifndef HAVE_SYS_PARAM_H
7813 # define HAVE_SYS_PARAM_H 1
7814 # endif
7816 # ifdef _SC_PAGESIZE
7817 # define getpagesize() sysconf(_SC_PAGESIZE)
7818 # else /* no _SC_PAGESIZE */
7819 # ifdef HAVE_SYS_PARAM_H
7820 # include <sys/param.h>
7821 # ifdef EXEC_PAGESIZE
7822 # define getpagesize() EXEC_PAGESIZE
7823 # else /* no EXEC_PAGESIZE */
7824 # ifdef NBPG
7825 # define getpagesize() NBPG * CLSIZE
7826 # ifndef CLSIZE
7827 # define CLSIZE 1
7828 # endif /* no CLSIZE */
7829 # else /* no NBPG */
7830 # ifdef NBPC
7831 # define getpagesize() NBPC
7832 # else /* no NBPC */
7833 # ifdef PAGESIZE
7834 # define getpagesize() PAGESIZE
7835 # endif /* PAGESIZE */
7836 # endif /* no NBPC */
7837 # endif /* no NBPG */
7838 # endif /* no EXEC_PAGESIZE */
7839 # else /* no HAVE_SYS_PARAM_H */
7840 # define getpagesize() 8192 /* punt totally */
7841 # endif /* no HAVE_SYS_PARAM_H */
7842 # endif /* no _SC_PAGESIZE */
7844 #endif /* no HAVE_GETPAGESIZE */
7847 main ()
7849 char *data, *data2, *data3;
7850 int i, pagesize;
7851 int fd;
7853 pagesize = getpagesize ();
7855 /* First, make a file with some known garbage in it. */
7856 data = (char *) malloc (pagesize);
7857 if (!data)
7858 return 1;
7859 for (i = 0; i < pagesize; ++i)
7860 *(data + i) = rand ();
7861 umask (0);
7862 fd = creat ("conftest.mmap", 0600);
7863 if (fd < 0)
7864 return 1;
7865 if (write (fd, data, pagesize) != pagesize)
7866 return 1;
7867 close (fd);
7869 /* Next, try to mmap the file at a fixed address which already has
7870 something else allocated at it. If we can, also make sure that
7871 we see the same garbage. */
7872 fd = open ("conftest.mmap", O_RDWR);
7873 if (fd < 0)
7874 return 1;
7875 data2 = (char *) malloc (2 * pagesize);
7876 if (!data2)
7877 return 1;
7878 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7879 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7880 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7881 return 1;
7882 for (i = 0; i < pagesize; ++i)
7883 if (*(data + i) != *(data2 + i))
7884 return 1;
7886 /* Finally, make sure that changes to the mapped area do not
7887 percolate back to the file as seen by read(). (This is a bug on
7888 some variants of i386 svr4.0.) */
7889 for (i = 0; i < pagesize; ++i)
7890 *(data2 + i) = *(data2 + i) + 1;
7891 data3 = (char *) malloc (pagesize);
7892 if (!data3)
7893 return 1;
7894 if (read (fd, data3, pagesize) != pagesize)
7895 return 1;
7896 for (i = 0; i < pagesize; ++i)
7897 if (*(data + i) != *(data3 + i))
7898 return 1;
7899 close (fd);
7900 return 0;
7902 _ACEOF
7903 rm -f conftest$ac_exeext
7904 if { (ac_try="$ac_link"
7905 case "(($ac_try" in
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7908 esac
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_link") 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7914 { (case "(($ac_try" in
7915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7916 *) ac_try_echo=$ac_try;;
7917 esac
7918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7919 (eval "$ac_try") 2>&5
7920 ac_status=$?
7921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7922 (exit $ac_status); }; }; then
7923 ac_cv_func_mmap_fixed_mapped=yes
7924 else
7925 echo "$as_me: program exited with status $ac_status" >&5
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7929 ( exit $ac_status )
7930 ac_cv_func_mmap_fixed_mapped=no
7932 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7937 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7938 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7939 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7941 cat >>confdefs.h <<\_ACEOF
7942 #define HAVE_MMAP 1
7943 _ACEOF
7946 rm -f conftest.mmap
7951 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7952 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7953 aros_config_ldflags=""
7955 aros_shared_default=yes
7957 aros_shared_cflags="-fPIC"
7958 aros_shared_aflags=""
7959 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7960 aros_kernel_ldflags="-Wl,-rpath,./lib"
7962 aros_target_ar_flags="cr"
7963 aros_target_nm_flags="-C -ul"
7964 aros_target_strip_flags="--strip-unneeded -R.comment"
7966 aros_compiler_libs=
7967 aros_arch_libs=
7969 aros_target_genmap="-Wl,-Map -Xlinker"
7971 # Native flavour stuff
7972 aros_serial_debug="0"
7974 # Palm native flavour stuff
7975 aros_palm_debug_hack="0"
7977 # Unix flavour stuff
7978 aros_nesting_supervisor="0"
7980 # Collect-aros stuff: "-ius" to ignore undefined symbols
7981 ignore_undefined_symbols=""
7983 # Check for X11 by default
7984 need_x11="auto"
7986 #-----------------------------------------------------------------------------
7989 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7990 # it switched on by default, and we use the host compiler, so it compiles AROS
7991 # code with this enabled resulting in link failures as we don't have support
7992 # for it.
7994 # We use two methods to disable it. For the host compiler (used to compile
7995 # some hosted modules), we test to see if the compiler supports stack
7996 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7997 # work on all platforms.
7999 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
8000 # (this is done unconditionally, as it should have no effect on compilers
8001 # without the stack protection feature). This may be specific to the way that
8002 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
8003 # strong enough to disable it in a generic way though, so we'll live with it
8004 # until another vendor ships GCC with it enabled in a different way, and deal
8005 # with it then.
8008 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
8009 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
8010 save_cflags="$CFLAGS"
8011 CFLAGS="$CFLAGS -fno-stack-protector"
8012 cat >conftest.$ac_ext <<_ACEOF
8013 /* confdefs.h. */
8014 _ACEOF
8015 cat confdefs.h >>conftest.$ac_ext
8016 cat >>conftest.$ac_ext <<_ACEOF
8017 /* end confdefs.h. */
8020 main ()
8024 return 0;
8026 _ACEOF
8027 rm -f conftest.$ac_objext
8028 if { (ac_try="$ac_compile"
8029 case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8032 esac
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_compile") 2>conftest.er1
8035 ac_status=$?
8036 grep -v '^ *+' conftest.er1 >conftest.err
8037 rm -f conftest.er1
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } && {
8041 test -z "$ac_c_werror_flag" ||
8042 test ! -s conftest.err
8043 } && test -s conftest.$ac_objext; then
8044 use_no_stack_protector="yes"
8045 else
8046 echo "$as_me: failed program was:" >&5
8047 sed 's/^/| /' conftest.$ac_ext >&5
8049 use_no_stack_protector="no"
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8054 echo "${ECHO_T}$use_no_stack_protector" >&6; }
8055 if test "x-$use_no_stack_protector" = "x-yes" ; then
8056 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8058 CFLAGS="$save_cflags"
8060 #-----------------------------------------------------------------------------
8062 # Disable pointer-signedness warnings if the compiler recognises the option
8063 # (this only works for the host compiler at the moment)
8065 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8066 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
8067 save_cflags="$CFLAGS"
8068 CFLAGS="$CFLAGS -Wno-pointer-sign"
8069 cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h. */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8077 main ()
8081 return 0;
8083 _ACEOF
8084 rm -f conftest.$ac_objext
8085 if { (ac_try="$ac_compile"
8086 case "(($ac_try" in
8087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8089 esac
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_compile") 2>conftest.er1
8092 ac_status=$?
8093 grep -v '^ *+' conftest.er1 >conftest.err
8094 rm -f conftest.er1
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest.$ac_objext; then
8101 use_no_sign_warning="yes"
8102 else
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 use_no_sign_warning="no"
8109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8110 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8111 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8112 if test "x-$use_no_sign_warning" = "x-yes" ; then
8113 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8115 CFLAGS="$save_cflags"
8117 #-----------------------------------------------------------------------------
8119 # Check if host compiler supports -fgnu89-inline, can be needed for crosstools.
8121 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fgnu89-inline" >&5
8122 echo $ECHO_N "checking whether ${CC} accepts -fgnu89-inline... $ECHO_C" >&6; }
8123 save_cflags="$CFLAGS"
8124 CFLAGS="$CFLAGS -fgnu89-inline"
8125 cat >conftest.$ac_ext <<_ACEOF
8126 /* confdefs.h. */
8127 _ACEOF
8128 cat confdefs.h >>conftest.$ac_ext
8129 cat >>conftest.$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8133 main ()
8137 return 0;
8139 _ACEOF
8140 rm -f conftest.$ac_objext
8141 if { (ac_try="$ac_compile"
8142 case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8145 esac
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_compile") 2>conftest.er1
8148 ac_status=$?
8149 grep -v '^ *+' conftest.er1 >conftest.err
8150 rm -f conftest.er1
8151 cat conftest.err >&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); } && {
8154 test -z "$ac_c_werror_flag" ||
8155 test ! -s conftest.err
8156 } && test -s conftest.$ac_objext; then
8157 use_gnu89_inline="yes"
8158 else
8159 echo "$as_me: failed program was:" >&5
8160 sed 's/^/| /' conftest.$ac_ext >&5
8162 use_gnu89_inline="no"
8165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8166 { echo "$as_me:$LINENO: result: $use_gnu89_inline" >&5
8167 echo "${ECHO_T}$use_gnu89_inline" >&6; }
8168 if test "x-$use_gnu89_inline" = "x-yes" ; then
8169 gnu89_inline="-fgnu89-inline"
8171 CFLAGS="$save_cflags"
8173 #-----------------------------------------------------------------------------
8175 { echo "$as_me:$LINENO: checking for type of build" >&5
8176 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8177 # Check whether --enable-build_type was given.
8178 if test "${enable_build_type+set}" = set; then
8179 enableval=$enable_build_type; build_type=$enableval
8180 else
8181 build_type="personal"
8185 if test "$build_type" = "nightly"; then
8186 build_type_string="NIGHTLY"
8187 elif test "$build_type" = "snapshot"; then
8188 build_type_string="SNAPSHOT"
8189 elif test "$build_type" = "milestone"; then
8190 build_type_string="MILESTONE"
8191 elif test "$build_type" = "release"; then
8192 build_type_string="RELEASE"
8193 else
8194 build_type_string="PERSONAL"
8195 build_type="personal"
8198 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8200 { echo "$as_me:$LINENO: result: $build_type" >&5
8201 echo "${ECHO_T}$build_type" >&6; }
8203 #-----------------------------------------------------------------------------
8204 all_debug_types="messages stack modules mungwall symbols"
8206 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8207 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8208 # Check whether --enable-debug was given.
8209 if test "${enable_debug+set}" = set; then
8210 enableval=$enable_debug; debug="$enableval"
8211 else
8212 debug=""
8216 if test "$debug" = "" -o "$debug" = "no"; then
8217 debug="none"
8218 elif test "$debug" = "yes"; then
8219 debug="all"
8222 if test "$debug" = "all" ; then
8223 debug="messages stack modules symbols"
8224 for d in $all_debug_types; do
8225 export aros_${d}_debug="1"
8226 done
8227 else
8228 for d in $all_debug_types; do
8229 export aros_${d}_debug="0"
8230 done
8233 if test "$debug" != "none"; then
8234 debug=`echo $debug | sed s/,/\ /g`
8235 for d in $debug; do
8236 found="0"
8237 for d2 in $all_debug_types; do
8238 if test "$d2" = "$d"; then
8239 found="1"
8240 break
8242 done
8243 if test "$found" = "0"; then
8244 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8245 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8246 { (exit 1); exit 1; }; }
8248 export aros_${d}_debug="1"
8249 done
8250 aros_debug="yes"
8252 { echo "$as_me:$LINENO: result: $debug" >&5
8253 echo "${ECHO_T}$debug" >&6; }
8255 if test "$aros_messages_debug" = "1"; then
8256 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8257 else
8258 aros_messages_debug=""
8260 if test "$aros_symbols_debug" = "1"; then
8261 aros_symbols_debug="-g"
8262 else
8263 aros_symbols_debug=""
8266 # These are the flags to pass when compiling debugged programs
8267 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8268 aros_debug_aflags=""
8269 aros_debug_ldflags="$aros_symbols_debug"
8271 aros_crosstools="no"
8273 #-----------------------------------------------------------------------------
8274 # Checking if we should build crosstools..
8275 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8276 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8277 # Check whether --enable-crosstools was given.
8278 if test "${enable_crosstools+set}" = set; then
8279 enableval=$enable_crosstools; crosstools="$enableval"
8280 else
8281 crosstools="no"
8284 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8285 { echo "$as_me:$LINENO: result: yes" >&5
8286 echo "${ECHO_T}yes" >&6; }
8287 aros_crosstools="yes"
8288 else
8289 { echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6; }
8293 #-----------------------------------------------------------------------------
8294 # Checking for distcc and ccache.
8296 # Always apply the transforms in this particular order. Basically you should
8297 # always run 'ccache distcc compiler' in that order for the best performance.
8299 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8300 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8301 # Check whether --enable-distcc was given.
8302 if test "${enable_distcc+set}" = set; then
8303 enableval=$enable_distcc; distcc="$enableval"
8304 else
8305 distcc="no"
8308 if test "$distcc" != "" -a "$distcc" != "no"; then
8309 # AC_CHECK_PROG will print out the result in this case
8310 # Extract the first word of "distcc", so it can be a program name with args.
8311 set dummy distcc; ac_word=$2
8312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8314 if test "${ac_cv_path_DISTCC+set}" = set; then
8315 echo $ECHO_N "(cached) $ECHO_C" >&6
8316 else
8317 case $DISTCC in
8318 [\\/]* | ?:[\\/]*)
8319 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 for as_dir in $PATH
8325 IFS=$as_save_IFS
8326 test -z "$as_dir" && as_dir=.
8327 for ac_exec_ext in '' $ac_executable_extensions; do
8328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8329 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 break 2
8333 done
8334 done
8335 IFS=$as_save_IFS
8337 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8339 esac
8341 DISTCC=$ac_cv_path_DISTCC
8342 if test -n "$DISTCC"; then
8343 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8344 echo "${ECHO_T}$DISTCC" >&6; }
8345 else
8346 { echo "$as_me:$LINENO: result: no" >&5
8347 echo "${ECHO_T}no" >&6; }
8351 else
8352 { echo "$as_me:$LINENO: result: no" >&5
8353 echo "${ECHO_T}no" >&6; }
8356 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8357 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8358 # Check whether --enable-ccache was given.
8359 if test "${enable_ccache+set}" = set; then
8360 enableval=$enable_ccache; ccache="$enableval"
8361 else
8362 ccache="no"
8365 if test "$ccache" != "" -a "$ccache" != "no"; then
8366 # AC_CHECK_PROG will print out the result in this case
8367 # Extract the first word of "ccache", so it can be a program name with args.
8368 set dummy ccache; ac_word=$2
8369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8371 if test "${ac_cv_prog_CCACHE+set}" = set; then
8372 echo $ECHO_N "(cached) $ECHO_C" >&6
8373 else
8374 if test -n "$CCACHE"; then
8375 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8376 else
8377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8378 for as_dir in $PATH
8380 IFS=$as_save_IFS
8381 test -z "$as_dir" && as_dir=.
8382 for ac_exec_ext in '' $ac_executable_extensions; do
8383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8384 ac_cv_prog_CCACHE="ccache"
8385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8386 break 2
8388 done
8389 done
8390 IFS=$as_save_IFS
8394 CCACHE=$ac_cv_prog_CCACHE
8395 if test -n "$CCACHE"; then
8396 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8397 echo "${ECHO_T}$CCACHE" >&6; }
8398 else
8399 { echo "$as_me:$LINENO: result: no" >&5
8400 echo "${ECHO_T}no" >&6; }
8404 else
8405 { echo "$as_me:$LINENO: result: no" >&5
8406 echo "${ECHO_T}no" >&6; }
8409 #-----------------------------------------------------------------------------
8410 { echo "$as_me:$LINENO: checking what specific gcc version to use" >&5
8411 echo $ECHO_N "checking what specific gcc version to use... $ECHO_C" >&6; }
8413 # Check whether --with-gcc-version was given.
8414 if test "${with_gcc_version+set}" = set; then
8415 withval=$with_gcc_version; target_tool_version="$withval"
8416 else
8417 target_tool_version="default"
8420 { echo "$as_me:$LINENO: result: $target_tool_version" >&5
8421 echo "${ECHO_T}$target_tool_version" >&6; }
8423 #-----------------------------------------------------------------------------
8424 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8425 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8427 # Check whether --with-optimization was given.
8428 if test "${with_optimization+set}" = set; then
8429 withval=$with_optimization; optimization="$withval"
8430 else
8431 optimization="unknown"
8434 if test "$optimization" = "unknown"; then
8435 if test "$debug" != "none"; then
8436 optimization="-O0"
8437 else
8438 optimization="-O2"
8441 aros_config_cflags="$aros_config_cflags $optimization"
8442 { echo "$as_me:$LINENO: result: $optimization" >&5
8443 echo "${ECHO_T}$optimization" >&6; }
8445 #-----------------------------------------------------------------------------
8446 { echo "$as_me:$LINENO: checking what paranoia flags to use" >&5
8447 echo $ECHO_N "checking what paranoia flags to use... $ECHO_C" >&6; }
8449 # Check whether --with-paranoia was given.
8450 if test "${with_paranoia+set}" = set; then
8451 withval=$with_paranoia; paranoia_flags="$withval"
8452 else
8453 paranoia_flags="default"
8456 if test "$paranoia_flags" = "default"; then
8457 paranoia_flags=""
8458 else if test "$paranoia_flags" = "yes"; then
8459 paranoia_flags="-Wall -Werror"
8460 fi fi
8461 { echo "$as_me:$LINENO: result: $paranoia_flags" >&5
8462 echo "${ECHO_T}$paranoia_flags" >&6; }
8463 aros_paranoia_cflags="$paranoia_flags"
8465 #-----------------------------------------------------------------------------
8466 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8467 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8468 # Check whether --enable-target_variant was given.
8469 if test "${enable_target_variant+set}" = set; then
8470 enableval=$enable_target_variant; target_variant=$enableval
8471 else
8472 target_variant=""
8475 if test "$target_variant" = ""; then
8476 aros_target_variant=""
8477 aros_target_suffix=""
8478 enableval="none"
8479 else
8480 aros_target_variant="$target_variant"
8481 aros_target_suffix="-$target_variant"
8483 { echo "$as_me:$LINENO: result: $enableval" >&5
8484 echo "${ECHO_T}$enableval" >&6; }
8486 target_bootloader="none"
8488 #-----------------------------------------------------------------------------
8489 case "$aros_target_variant" in
8490 ios)
8491 { echo "$as_me:$LINENO: checking XCode path" >&5
8492 echo $ECHO_N "checking XCode path... $ECHO_C" >&6; }
8494 # Check whether --with-xcode was given.
8495 if test "${with_xcode+set}" = set; then
8496 withval=$with_xcode; aros_xcode_path="$withval"
8497 else
8498 aros_xcode_path="/Developer"
8501 { echo "$as_me:$LINENO: result: $aros_xcode_path" >&5
8502 echo "${ECHO_T}$aros_xcode_path" >&6; }
8504 { echo "$as_me:$LINENO: checking for minimum supported iOS version" >&5
8505 echo $ECHO_N "checking for minimum supported iOS version... $ECHO_C" >&6; }
8507 # Check whether --with-ios-version was given.
8508 if test "${with_ios_version+set}" = set; then
8509 withval=$with_ios_version; aros_ios_version="$withval"
8510 else
8511 aros_ios_version="3.0"
8514 { echo "$as_me:$LINENO: result: $aros_ios_version" >&5
8515 echo "${ECHO_T}$aros_ios_version" >&6; }
8517 { echo "$as_me:$LINENO: checking what iOS SDK version to use" >&5
8518 echo $ECHO_N "checking what iOS SDK version to use... $ECHO_C" >&6; }
8520 # Check whether --with-ios-sdk was given.
8521 if test "${with_ios_sdk+set}" = set; then
8522 withval=$with_ios_sdk; aros_ios_sdk="$withval"
8523 else
8524 aros_ios_sdk="4.1"
8527 { echo "$as_me:$LINENO: result: $aros_ios_sdk" >&5
8528 echo "${ECHO_T}$aros_ios_sdk" >&6; }
8532 "android")
8533 { echo "$as_me:$LINENO: checking Android SDK path" >&5
8534 echo $ECHO_N "checking Android SDK path... $ECHO_C" >&6; }
8536 # Check whether --with-sdk was given.
8537 if test "${with_sdk+set}" = set; then
8538 withval=$with_sdk; aros_android_sdk="$withval"
8539 else
8540 aros_android_sdk=$default_android_sdk
8543 { echo "$as_me:$LINENO: result: $aros_android_sdk" >&5
8544 echo "${ECHO_T}$aros_android_sdk" >&6; }
8546 { echo "$as_me:$LINENO: checking Android NDK path" >&5
8547 echo $ECHO_N "checking Android NDK path... $ECHO_C" >&6; }
8549 # Check whether --with-ndk was given.
8550 if test "${with_ndk+set}" = set; then
8551 withval=$with_ndk; aros_android_ndk="$withval"
8552 else
8553 aros_android_ndk=""
8556 { echo "$as_me:$LINENO: result: $aros_android_ndk" >&5
8557 echo "${ECHO_T}$aros_android_ndk" >&6; }
8559 { echo "$as_me:$LINENO: checking what Android version to use" >&5
8560 echo $ECHO_N "checking what Android version to use... $ECHO_C" >&6; }
8562 # Check whether --with-android-version was given.
8563 if test "${with_android_version+set}" = set; then
8564 withval=$with_android_version; aros_android_version="$withval"
8565 else
8566 aros_android_version="2.2"
8569 { echo "$as_me:$LINENO: result: $aros_android_version" >&5
8570 echo "${ECHO_T}$aros_android_version" >&6; }
8572 export PATH="$aros_android_sdk/tools:$PATH"
8573 # Extract the first word of "$android_tool", so it can be a program name with args.
8574 set dummy $android_tool; ac_word=$2
8575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8577 if test "${ac_cv_path_android_tool+set}" = set; then
8578 echo $ECHO_N "(cached) $ECHO_C" >&6
8579 else
8580 case $android_tool in
8581 [\\/]* | ?:[\\/]*)
8582 ac_cv_path_android_tool="$android_tool" # Let the user override the test with a path.
8585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8586 for as_dir in $PATH
8588 IFS=$as_save_IFS
8589 test -z "$as_dir" && as_dir=.
8590 for ac_exec_ext in '' $ac_executable_extensions; do
8591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8592 ac_cv_path_android_tool="$as_dir/$ac_word$ac_exec_ext"
8593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8594 break 2
8596 done
8597 done
8598 IFS=$as_save_IFS
8601 esac
8603 android_tool=$ac_cv_path_android_tool
8604 if test -n "$android_tool"; then
8605 { echo "$as_me:$LINENO: result: $android_tool" >&5
8606 echo "${ECHO_T}$android_tool" >&6; }
8607 else
8608 { echo "$as_me:$LINENO: result: no" >&5
8609 echo "${ECHO_T}no" >&6; }
8613 if test "$android_tool" = ""; then
8614 { { echo "$as_me:$LINENO: error: android is required to build AROS. Please install and run configure again." >&5
8615 echo "$as_me: error: android is required to build AROS. Please install and run configure again." >&2;}
8616 { (exit 1); exit 1; }; }
8619 if test $host_os = "mingw32"; then
8620 android_tool="cmd //c $android_tool"
8624 esac
8626 #-----------------------------------------------------------------------------
8627 # This is the target configuration switch.
8628 case "$target_os" in
8629 linux*)
8630 aros_target_arch="linux"
8631 aros_target_family="unix"
8632 case "$target_cpu" in
8633 *m68k*)
8634 aros_target_cpu="m68k"
8635 aros_object_format="m68kelf"
8636 aros_flavour="emulcompat"
8637 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8638 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8639 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8640 gcc_target_cpu="mc68000"
8642 *i?86*)
8643 aros_target_cpu="i386"
8644 aros_object_format="elf_i386"
8645 aros_flavour="emulation"
8646 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8647 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8648 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8649 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8650 aros_config_ldflags="-m32 -march=i486"
8651 aros_kernel_ldflags="-melf_i386"
8652 aros_default_wbdepth=8
8653 gcc_target_cpu="i386"
8654 pci_hidd_target="hidd-pci-linux"
8656 *x86_64*)
8657 aros_target_cpu="x86_64"
8658 aros_object_format="elf_x86_64"
8659 aros_flavour="emulation"
8660 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8661 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8662 aros_default_wbdepth=8
8663 gcc_target_cpu="x86_64"
8664 pci_hidd_target="hidd-pci-linux"
8666 *powerpc*)
8667 aros_target_cpu="ppc"
8668 aros_object_format="elf32ppc"
8669 aros_flavour="emulation"
8670 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8671 aros_default_wbdepth=8
8672 gcc_target_cpu="ppc"
8674 # TODO
8675 # Same as powerpc, but I need this for the nightly build to work again.
8676 # Actually, the nightly should be made working with powerpc target.
8677 # That just was too much work for the moment, another week or two.
8678 *ppc*)
8679 aros_target_cpu="ppc"
8680 aros_object_format="elf32ppc"
8681 aros_flavour="emulation"
8682 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8683 aros_default_wbdepth=8
8684 gcc_target_cpu="ppc"
8686 *arm*)
8687 aros_target_cpu="arm"
8688 aros_object_format="armelf_linux_eabi"
8689 aros_flavour="emulation"
8690 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8691 gcc_target_cpu="arm"
8692 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
8693 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
8694 aros_arch_libs="-laeabi"
8697 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8698 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8699 { (exit 1); exit 1; }; }
8701 esac
8702 case "$aros_target_variant" in
8703 android)
8704 case "$aros_android_version" in
8705 2.2)
8706 aros_android_level=android-8
8709 aros_android_level=android-9
8711 esac
8712 aros_default_wbwidth=320
8713 aros_default_wbheight=480
8714 aros_target_cc="arm-aros-gcc"
8715 aros_target_cxx="arm-aros-g++"
8716 aros_target_ld="arm-aros-ld"
8717 aros_target_as="arm-aros-as"
8718 aros_target_ar="arm-aros-ar"
8719 aros_target_ranlib="arm-aros-ranlib"
8720 aros_target_nm="arm-aros-nm"
8721 aros_target_strip="arm-aros-strip"
8722 aros_target_objcopy="arm-aros-objcopy"
8723 aros_target_objdump="arm-aros-objdump"
8724 if test "$aros_android_ndk" = ""; then
8725 aros_kernel_cflags="-mandroid"
8726 aros_kernel_ldflags="-mandroid"
8727 CFLAGS="-mandroid"
8728 else
8729 export PATH="$aros_android_ndk/toolchains/arm-linux-androideabi-$target_tool_version/prebuilt/$android_build_os/bin:$PATH"
8730 aros_android_ndk="$aros_android_ndk/platforms/$aros_android_level/arch-arm"
8731 aros_kernel_cflags="--sysroot $aros_android_ndk -mandroid"
8732 aros_kernel_ldflags="--sysroot $aros_android_ndk -mandroid"
8733 CFLAGS="$CFLAGS --sysroot $aros_android_ndk -mandroid"
8734 aros_kernel_includes="-isystem $aros_android_ndk/usr/include"
8736 need_x11=no
8737 target_tool_prefix="arm-linux-androideabi-"
8739 esac
8743 aros_target_arch="pc"
8744 aros_shared_default="no"
8745 target_bootloader="grub2"
8746 case "$target_cpu" in
8747 *i?86*)
8748 aros_target_cpu="i386"
8751 if test "$aros_object_format" = "" ; then
8752 aros_object_format="elf_i386"
8754 aros_flavour="standalone"
8755 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8756 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8757 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8758 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8759 aros_config_ldflags="-m32 -march=i486"
8760 aros_kernel_ldflags="-melf_i386"
8761 aros_default_wbwidth=640
8762 aros_default_wbheight=480
8763 gcc_target_cpu="i386"
8765 *x86_64*)
8766 aros_target_cpu="x86_64"
8767 aros_serial_debug=1
8768 if test "$aros_object_format" = "" ; then
8769 aros_object_format="elf_x86_64"
8771 aros_flavour="standalone"
8772 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8773 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8774 aros_kernel_ldflags=""
8775 aros_default_wbwidth=640
8776 aros_default_wbheight=480
8777 gcc_target_cpu="x86_64"
8780 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8781 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8782 { (exit 1); exit 1; }; }
8784 esac
8787 prep)
8788 aros_target_arch="prep"
8789 aros_shared_default="no"
8790 aros_target_cpu="ppc"
8791 aros_object_format="elf32ppc"
8792 aros_flavour="ppcnative"
8793 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8794 aros_kernel_ldflags=""
8795 aros_default_wbwidth=640
8796 aros_default_wbheight=480
8797 gcc_target_cpu="ppc"
8800 freebsd*)
8801 aros_target_arch="freebsd"
8802 aros_target_family="unix"
8803 aros_target_cpu="i386"
8804 aros_flavour="emulation"
8805 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8806 gcc_target_cpu="i386"
8808 aros_target_strip_flags="-x"
8811 darwin*)
8812 aros_target_arch="darwin"
8813 aros_target_family="unix"
8814 aros_flavour="emulation"
8815 case "$target_cpu" in
8816 *i?86*)
8817 aros_ios_platform="iPhoneSimulator"
8818 aros_target_cpu="i386"
8819 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8820 aros_kernel_ldflags=""
8821 aros_macosx_version="10.4"
8822 aros_default_wbdepth=8
8823 gcc_target_cpu="i386"
8824 aros_object_format="elf_i386"
8825 aros_target_strip_flags="-x"
8826 aros_target_cc="i386-aros-gcc"
8827 aros_target_cxx="i386-aros-g++"
8828 aros_target_ld="i386-aros-ld"
8829 aros_target_as="i386-aros-as"
8830 aros_target_ar="i386-aros-ar"
8831 aros_target_ranlib="i386-aros-ranlib"
8832 aros_target_nm="i386-aros-nm"
8833 aros_target_strip="i386-aros-strip"
8834 aros_target_objcopy="i386-aros-objcopy"
8835 aros_target_objdump="i386-aros-objdump"
8836 target_tool_prefix="i686-apple-darwin10-"
8837 target_tool_flags="-m32"
8839 *x86_64*)
8840 aros_target_cpu="x86_64"
8841 aros_object_format="elf_x86_64"
8842 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8843 aros_macosx_version="10.6"
8844 aros_kernel_cflags="-m64"
8845 aros_kernel_ldflags="-m64"
8846 aros_default_wbdepth=8
8847 gcc_target_cpu="x86_64"
8848 aros_kernel_ld="ld"
8849 aros_target_cc="x86_64-aros-gcc"
8850 aros_target_cxx="x86_64-aros-g++"
8851 aros_target_ld="x86_64-aros-ld"
8852 aros_target_as="x86_64-aros-as"
8853 aros_target_ar="x86_64-aros-ar"
8854 aros_target_ranlib="x86_64-aros-ranlib"
8855 aros_target_nm="x86_64-aros-nm"
8856 aros_target_strip="x86_64-aros-strip"
8857 aros_target_objcopy="x86_64-aros-objcopy"
8858 aros_target_objdump="x86_64-aros-objdump"
8859 target_tool_prefix="i686-apple-darwin10-"
8861 *ppc*)
8862 aros_target_cpu="ppc"
8863 aros_object_format="elf32ppc"
8864 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8865 aros_kernel_ldflags=""
8866 aros_macosx_version="10.0"
8867 aros_default_wbdepth=8
8868 gcc_target_cpu="ppc"
8869 aros_kernel_ld="ld -arch ppc"
8870 aros_target_cc="ppc-aros-gcc"
8871 aros_target_cxx="ppc-aros-g++"
8872 aros_target_ld="ppc-aros-ld"
8873 aros_target_as="ppc-aros-as"
8874 aros_target_ar="ppc-aros-ar"
8875 aros_target_ranlib="ppc-aros-ranlib"
8876 aros_target_nm="ppc-aros-nm"
8877 aros_target_strip="ppc-aros-strip"
8878 aros_target_objcopy="ppc-aros-objcopy"
8879 aros_target_objdump="ppc-aros-objdump"
8880 target_tool_prefix="powerpc-apple-darwin10-"
8882 *arm*)
8883 aros_ios_platform="iPhoneOS"
8884 aros_target_cpu="arm"
8885 aros_object_format="armelf_linux_eabi"
8886 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8887 aros_config_cflags="$aros_config_cflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8888 aros_config_aflags="$aros_config_aflags -marm -march=armv6 -mfpu=vfp -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8889 aros_arch_libs="-laeabi"
8890 aros_default_wbdepth=8
8891 gcc_target_cpu="arm"
8892 aros_kernel_ld="ld -arch armv6"
8893 aros_target_cc="arm-aros-gcc"
8894 aros_target_cxx="arm-aros-g++"
8895 aros_target_ld="arm-aros-ld"
8896 aros_target_as="arm-aros-as"
8897 aros_target_ar="arm-aros-ar"
8898 aros_target_ranlib="arm-aros-ranlib"
8899 aros_target_nm="arm-aros-nm"
8900 aros_target_strip="arm-aros-strip"
8901 aros_target_objcopy="arm-aros-objcopy"
8902 aros_target_objdump="arm-aros-objdump"
8903 target_tool_prefix="arm-apple-darwin10-"
8904 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8907 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8908 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8909 { (exit 1); exit 1; }; }
8911 esac
8912 case "$aros_target_variant" in
8913 ios)
8914 aros_default_wbwidth=320
8915 aros_default_wbheight=480
8916 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
8917 target_tool_flags="$target_tool_flags --sysroot $aros_ios_sdk"
8918 aros_kernel_includes="-isystem $aros_ios_sdk/usr/include"
8919 need_x11=no
8920 # This is here because it may depend on iOS or SDK version
8921 aros_kernel_cflags="$aros_kernel_cflags -miphoneos-version-min=$aros_ios_version"
8922 aros_kernel_ldflags="$aros_kernel_ldflags -miphoneos-version-min=$aros_ios_version"
8923 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8926 aros_kernel_cflags="$aros_kernel_cflags -mmacosx-version-min=$aros_macosx_version"
8927 aros_kernel_ldflags="$aros_kernel_ldflags -mmacosx-version-min=$aros_macosx_version"
8929 esac
8932 dragonfly*)
8933 aros_target_arch="dragonfly"
8934 aros_target_family="unix"
8935 aros_flavour="emulation"
8936 case "$target_cpu" in
8937 *i?86*)
8938 aros_target_cpu="i386"
8939 aros_object_format="elf_i386"
8940 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8942 *x86_64*)
8943 aros_target_cpu="x86_64"
8944 aros_object_format="elf_x86_64"
8945 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8948 { { echo "$as_me:$LINENO: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&5
8949 echo "$as_me: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&2;}
8950 { (exit 1); exit 1; }; }
8952 esac
8955 netbsd*)
8956 aros_target_arch="netbsd"
8957 aros_target_family="unix"
8958 case "$target_cpu" in
8959 *m68k*)
8960 aros_target_cpu="m68k"
8961 aros_object_format="m68kelf"
8962 aros_flavour="emulcompat"
8963 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8964 gcc_target_cpu="mc68000"
8966 *i?86*)
8967 aros_target_cpu="i386"
8968 aros_object_format="elf_i386"
8969 aros_flavour="emulation"
8970 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8971 aros_default_wbdepth=8
8972 gcc_target_cpu="i386"
8975 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8976 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8977 { (exit 1); exit 1; }; }
8979 esac
8980 aros_target_genmap="-Wl,-M -Xlinker >"
8981 aros_flavour="emulation"
8982 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8985 openbsd*)
8986 aros_target_arch="openbsd"
8987 aros_target_family="unix"
8988 case "$target_cpu" in
8989 *i?86*)
8990 aros_target_cpu="i386"
8991 aros_object_format="elf_i386"
8992 aros_flavour="emulation"
8993 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8994 gcc_target_cpu="i386"
8997 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8998 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8999 { (exit 1); exit 1; }; }
9001 esac
9002 aros_target_genmap="-Wl,-M -Xlinker >"
9003 aros_target_nm_flags="-u"
9004 aros_flavour="emulation"
9007 solaris*)
9008 aros_target_arch="solaris"
9009 aros_target_family="unix"
9010 case "$target_cpu" in
9011 *i?86*)
9012 aros_target_cpu="i386"
9013 aros_object_format="elf_i386"
9014 aros_flavour="emulation"
9015 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
9016 aros_default_wbdepth=8
9017 gcc_target_cpu="i386"
9019 *sparc*)
9020 aros_target_cpu="sparc"
9021 aros_object_format="elf_sparc"
9022 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
9023 gcc_target_cpu="sparc"
9026 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
9027 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
9028 { (exit 1); exit 1; }; }
9030 esac
9031 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
9032 aros_flavour="emulation"
9035 morphos*)
9036 aros_target_arch="morphos"
9037 aros_shared_default="no"
9038 aros_target_cpu="ppc"
9039 aros_object_format="elf_ppc"
9040 aros_flavour="nativecompat"
9041 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9042 gcc_target_cpu="ppc"
9045 sam440)
9046 aros_target_arch="sam440"
9047 aros_shared_default="no"
9048 aros_target_cpu="ppc"
9049 aros_object_format="elf32ppc"
9050 aros_flavour="ppcnative"
9051 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9052 aros_kernel_ldflags=""
9053 aros_default_wbwidth=1024
9054 aros_default_wbheight=768
9055 aros_default_wbdepth=24
9056 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
9057 gcc_target_cpu="powerpc"
9060 efika)
9061 aros_target_arch="efika"
9062 aros_shared_default="no"
9063 aros_target_cpu="arm"
9064 aros_object_format="armelf_linux_eabi"
9065 aros_flavour="standalone"
9066 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9067 aros_kernel_ldflags=""
9068 aros_default_wbwidth=1024
9069 aros_default_wbheight=600
9070 aros_arch_libs="-laeabi"
9071 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"
9072 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"
9075 chrp)
9076 aros_target_arch="chrp"
9077 aros_shared_default="no"
9078 aros_target_cpu="ppc"
9079 aros_object_format="elf32ppc"
9080 aros_flavour="ppcnative"
9081 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
9082 aros_kernel_ldflags=""
9083 aros_default_wbwidth=640
9084 aros_default_wbheight=480
9085 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
9086 gcc_target_cpu="powerpc"
9087 case "$aros_target_variant" in
9088 efika)
9089 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
9091 esac
9094 amiga*)
9095 aros_target_arch="amiga"
9096 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
9097 aros_shared_default="no"
9099 case "$target_cpu" in
9100 *m68k*)
9101 aros_enable_mmu=no
9102 aros_target_cpu="m68k"
9103 aros_object_format="m68kelf"
9104 aros_flavour="standcompat"
9105 gcc_target_cpu="m68000"
9106 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin -Wno-volatile-register-var -DAROS_CREATE_ROM -DAROS_DOS_PACKETS"
9107 aros_config_aflags="$aros_config_aflags -g3 -${gcc_target_cpu}"
9108 aros_paranoia_cflags="$aros_paranoia_cflags -Wno-volatile-register-var"
9109 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
9110 target_tool_prefix="m68k-elf-"
9111 # Needed to get the correct multilib
9112 aros_config_ldflags="-${gcc_target_cpu}"
9113 aros_debug_ldflags="-${gcc_target_cpu}"
9114 aros_shared_ldflags="-${gcc_target_cpu}"
9115 aros_kernel_ldflags="-${gcc_target_cpu}"
9116 aros_target_nostdlib_ldflags="-${gcc_target_cpu}"
9117 aros_target_strip_flags="-R.comment --strip-debug"
9118 aros_default_wbwidth=640
9119 aros_default_wbheight=480
9121 *ppc*)
9122 aros_cpu="ppc"
9123 aros_flavour="native"
9124 gcc_target_cpu="ppc"
9127 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
9128 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
9129 { (exit 1); exit 1; }; }
9131 esac
9134 mingw*)
9135 aros_target_arch="mingw32"
9136 aros_shared_default="no"
9137 aros_flavour="emulation"
9138 aros_shared_cflags=""
9139 need_dlopen="no"
9140 rescomp="windres"
9141 case "$target_cpu" in
9142 *i?86*)
9143 aros_target_cpu="i386"
9144 aros_object_format="elf_i386"
9145 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
9146 aros_default_wbdepth=8
9147 gcc_target_cpu="i386"
9148 aros_target_cc="i386-aros-gcc"
9149 aros_target_cxx="i386-aros-g++"
9150 aros_target_ld="i386-aros-ld"
9151 aros_target_as="i386-aros-as"
9152 aros_target_ar="i386-aros-ar"
9153 aros_target_ranlib="i386-aros-ranlib"
9154 aros_target_nm="i386-aros-nm"
9155 aros_target_strip="i386-aros-strip"
9156 aros_target_objcopy="i386-aros-objcopy"
9157 aros_target_objdump="i386-aros-objdump"
9158 target_tool_prefix="i386-mingw32-"
9160 *x86_64*)
9161 aros_target_cpu="x86_64"
9162 aros_object_format="elf_x86_64"
9163 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
9164 aros_default_wbdepth=8
9165 gcc_target_cpu="x86_64"
9166 aros_target_cc="x86_64-aros-gcc"
9167 aros_target_cxx="x86_64-aros-g++"
9168 aros_target_ld="x86_64-aros-ld"
9169 aros_target_as="x86_64-aros-as"
9170 aros_target_ar="x86_64-aros-ar"
9171 aros_target_ranlib="x86_64-aros-ranlib"
9172 aros_target_nm="x86_64-aros-nm"
9173 aros_target_strip="x86_64-aros-strip"
9174 aros_target_objcopy="x86_64-aros-objcopy"
9175 aros_target_objdump="x86_64-aros-objdump"
9176 target_tool_prefix="x86_64-w64-mingw32-"
9178 *arm*)
9179 aros_target_cpu="arm"
9180 aros_object_format="armelf_linux_eabi"
9181 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
9182 aros_arch_libs="-laeabi"
9183 aros_default_wbdepth=8
9184 gcc_target_cpu="arm"
9185 aros_target_cc="arm-aros-gcc"
9186 aros_target_cxx="arm-aros-g++"
9187 aros_target_ld="arm-aros-ld"
9188 aros_target_as="arm-aros-as"
9189 aros_target_ar="arm-aros-ar"
9190 aros_target_ranlib="arm-aros-ranlib"
9191 aros_target_nm="arm-aros-nm"
9192 aros_target_strip="arm-aros-strip"
9193 aros_target_objcopy="arm-aros-objcopy"
9194 aros_target_objdump="arm-aros-objdump"
9195 target_tool_prefix="arm-mingw32ce-"
9196 aros_default_wbwidth=160
9197 aros_default_wbheight=160
9200 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
9201 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
9202 { (exit 1); exit 1; }; }
9204 esac
9205 if test $host_os = "cygwin"; then
9206 aros_kernel_cflags="-mno-cygwin"
9209 pp*)
9210 aros_target_arch="pp"
9211 aros_shared_default="no"
9212 case "$target_cpu" in
9213 *m68k*)
9214 aros_target_cpu="m68k"
9215 aros_object_format="m68kelf"
9216 aros_flavour="palmnative"
9217 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9218 aros_default_wbwidth=160
9219 aros_default_wbheight=160
9220 aros_default_wbdepth=1
9221 aros_target_ar_flags="cru"
9222 aros_compiler_libs="-lgcc1"
9223 aros_shared_default=no
9224 aros_shared_cflags="-fpic"
9225 aros_shared_aflags=""
9226 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9227 aros_kernel_ldflags="-Wl,-rpath,./lib"
9228 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
9229 aros_debug_aflags=""
9230 aros_debug_ldflags="$aros_symbols_debug"
9231 aros_mungwall_debug="0"
9232 aros_modules_debug="0"
9233 gcc_target_cpu="mc68000"
9234 ignore_undefined_symbols="-ius"
9237 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
9238 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
9239 { (exit 1); exit 1; }; }
9241 esac
9244 mac*)
9245 aros_target_arch="mac"
9246 aros_shared_default="no"
9247 case "$target_cpu" in
9248 *m68k*)
9249 aros_target_cpu="m68k"
9250 aros_object_format="m68kelf"
9251 aros_flavour="mac68knative"
9252 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9253 aros_default_wbwidth=512
9254 aros_default_wbheight=384
9255 aros_default_wbdepth=8
9256 aros_target_ar_flags="cru"
9257 aros_compiler_libs="-lgcc1"
9258 aros_shared_default=no
9259 aros_shared_cflags="-fpic"
9260 aros_shared_aflags=""
9261 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9262 aros_kernel_ldflags="-Wl,-rpath,./lib"
9263 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
9264 aros_debug_aflags=""
9265 aros_debug_ldflags="$aros_symbols_debug"
9266 aros_mungwall_debug="0"
9267 aros_modules_debug="0"
9268 gcc_target_cpu="mc68000"
9269 ignore_undefined_symbols="-ius"
9272 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
9273 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
9274 { (exit 1); exit 1; }; }
9276 esac
9280 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
9281 echo "$as_me: error: Unsupported target architecture $target" >&2;}
9282 { (exit 1); exit 1; }; }
9284 esac
9286 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
9287 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
9289 # Check whether --with-portssources was given.
9290 if test "${with_portssources+set}" = set; then
9291 withval=$with_portssources; with_portssrcdir=$withval
9292 else
9293 with_portssrcdir="default"
9296 if test "$with_portssrcdir" = "default"; then
9297 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9298 else
9299 AROS_PORTSSRCDIR="$with_portssrcdir"
9301 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
9302 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
9304 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
9305 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
9307 # Check whether --with-bootloader was given.
9308 if test "${with_bootloader+set}" = set; then
9309 withval=$with_bootloader; target_bootloader=$withval
9310 else
9311 target_bootloader=$target_bootloader
9314 if test "$target_bootloader" = "none"; then
9315 aros_target_bootloader=""
9316 else
9317 aros_target_bootloader="$target_bootloader"
9319 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
9320 echo "${ECHO_T}$target_bootloader" >&6; }
9322 { echo "$as_me:$LINENO: checking which icon-set to use" >&5
9323 echo $ECHO_N "checking which icon-set to use... $ECHO_C" >&6; }
9325 # Check whether --with-iconset was given.
9326 if test "${with_iconset+set}" = set; then
9327 withval=$with_iconset; target_iconset=$withval
9328 else
9329 target_iconset="default"
9332 if test "$target_iconset" = "default"; then
9333 aros_target_iconset="Gorilla"
9334 target_iconset="default (Gorilla)"
9335 else
9336 aros_target_iconset="$target_iconset"
9338 { echo "$as_me:$LINENO: result: $target_iconset" >&5
9339 echo "${ECHO_T}$target_iconset" >&6; }
9341 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9342 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9344 # Check whether --with-theme was given.
9345 if test "${with_theme+set}" = set; then
9346 withval=$with_theme; target_guitheme=$withval
9347 else
9348 target_guitheme="default"
9351 if test "$target_guitheme" = "default"; then
9352 aros_target_guitheme="Ice"
9353 else
9354 aros_target_guitheme="$target_guitheme"
9356 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9357 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9359 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9360 # for target code)
9361 cross_compiling=no
9362 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9363 cross_compiling=yes
9365 if test "$aros_host_cpu" == "x86_64" ; then
9366 if test "$aros_target_cpu" == "i386" ; then
9367 if test "$aros_target_arch" != "mingw32"; then
9368 cross_compiling=no
9372 if test "$aros_host_arch" == "darwin" ; then
9373 if test "$aros_target_arch" != "darwin" ; then
9374 cross_compiling=yes
9378 # Set prefix for target compiler etc. if we're cross-compiling
9379 # (should possibly be earlier but needs to be after AC_PROG_CC)
9380 if test "$cross_compiling" = "yes" ; then
9381 if test "$target_tool_prefix" = ""; then
9382 target_tool_prefix=${target_cpu}-elf-
9384 CC=${target_tool_prefix}gcc
9385 CPP=${target_tool_prefix}cpp
9386 if test "$target_tool_version" != "default"; then
9387 CC="$CC-$target_tool_version"
9388 CPP="$CC-$target_tool_version"
9390 # Extract the first word of "$CC", so it can be a program name with args.
9391 set dummy $CC; ac_word=$2
9392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9394 if test "${ac_cv_path_CC+set}" = set; then
9395 echo $ECHO_N "(cached) $ECHO_C" >&6
9396 else
9397 case $CC in
9398 [\\/]* | ?:[\\/]*)
9399 ac_cv_path_CC="$CC" # Let the user override the test with a path.
9402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403 for as_dir in $PATH
9405 IFS=$as_save_IFS
9406 test -z "$as_dir" && as_dir=.
9407 for ac_exec_ext in '' $ac_executable_extensions; do
9408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9409 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
9410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9411 break 2
9413 done
9414 done
9415 IFS=$as_save_IFS
9418 esac
9420 CC=$ac_cv_path_CC
9421 if test -n "$CC"; then
9422 { echo "$as_me:$LINENO: result: $CC" >&5
9423 echo "${ECHO_T}$CC" >&6; }
9424 else
9425 { echo "$as_me:$LINENO: result: no" >&5
9426 echo "${ECHO_T}no" >&6; }
9430 if test "$CC" = ""; then
9431 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9432 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9433 { (exit 1); exit 1; }; }
9436 CC="$CC $target_tool_flags"
9438 #-----------------------------------------------------------------------------
9440 # Disable pointer-signedness warnings if the compiler recognises the option
9442 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9443 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
9444 save_cflags="$CFLAGS"
9445 CFLAGS="$CFLAGS -Wno-pointer-sign"
9446 cat >conftest.$ac_ext <<_ACEOF
9447 /* confdefs.h. */
9448 _ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9454 main ()
9458 return 0;
9460 _ACEOF
9461 rm -f conftest.$ac_objext
9462 if { (ac_try="$ac_compile"
9463 case "(($ac_try" in
9464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9465 *) ac_try_echo=$ac_try;;
9466 esac
9467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9468 (eval "$ac_compile") 2>conftest.er1
9469 ac_status=$?
9470 grep -v '^ *+' conftest.er1 >conftest.err
9471 rm -f conftest.er1
9472 cat conftest.err >&5
9473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } && {
9475 test -z "$ac_c_werror_flag" ||
9476 test ! -s conftest.err
9477 } && test -s conftest.$ac_objext; then
9478 use_no_sign_warning="yes"
9479 else
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.$ac_ext >&5
9483 use_no_sign_warning="no"
9486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9487 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9488 echo "${ECHO_T}$use_no_sign_warning" >&6; }
9489 if test "x-$use_no_sign_warning" = "x-yes" ; then
9490 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9492 CFLAGS="$save_cflags"
9494 #-----------------------------------------------------------------------------
9496 # Find all the tools we need to compile. This could be cross-compiling
9497 # though! If that is the case we use the GNU form of the target and
9498 # simply add this to the front of the binary name. This is rather simple,
9499 # but it should work under most circumstances.
9501 # The default tools are to use the same as the host, but only if the
9502 # host and target CPU are the same. With GCC this is normally enough.
9505 aros_cc_pre=""
9506 aros_shared_ld="$aros_host_ld"
9508 aros_target_mkdep="$aros_host_mkdep"
9509 aros_target_incl_def="$aros_host_incl"
9511 aros_kernel_cc="$CC"
9513 # The default tools executables to be linked to.
9514 if test "$aros_target_cc" != ""; then
9515 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9516 set dummy $aros_target_cc; ac_word=$2
9517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9519 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 else
9522 case $aros_target_cc in
9523 [\\/]* | ?:[\\/]*)
9524 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528 for as_dir in $PATH
9530 IFS=$as_save_IFS
9531 test -z "$as_dir" && as_dir=.
9532 for ac_exec_ext in '' $ac_executable_extensions; do
9533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9534 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9536 break 2
9538 done
9539 done
9540 IFS=$as_save_IFS
9543 esac
9545 aros_target_cc=$ac_cv_path_aros_target_cc
9546 if test -n "$aros_target_cc"; then
9547 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9548 echo "${ECHO_T}$aros_target_cc" >&6; }
9549 else
9550 { echo "$as_me:$LINENO: result: no" >&5
9551 echo "${ECHO_T}no" >&6; }
9555 if test "$aros_target_cc" = ""; then
9556 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9557 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9558 { (exit 1); exit 1; }; }
9561 if test "$aros_target_ld" != ""; then
9562 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9563 set dummy $aros_target_ld; ac_word=$2
9564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9566 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9567 echo $ECHO_N "(cached) $ECHO_C" >&6
9568 else
9569 case $aros_target_ld in
9570 [\\/]* | ?:[\\/]*)
9571 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9575 for as_dir in $PATH
9577 IFS=$as_save_IFS
9578 test -z "$as_dir" && as_dir=.
9579 for ac_exec_ext in '' $ac_executable_extensions; do
9580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9581 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9583 break 2
9585 done
9586 done
9587 IFS=$as_save_IFS
9590 esac
9592 aros_target_ld=$ac_cv_path_aros_target_ld
9593 if test -n "$aros_target_ld"; then
9594 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9595 echo "${ECHO_T}$aros_target_ld" >&6; }
9596 else
9597 { echo "$as_me:$LINENO: result: no" >&5
9598 echo "${ECHO_T}no" >&6; }
9602 if test "$aros_target_ld" = ""; then
9603 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9604 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9605 { (exit 1); exit 1; }; }
9609 if test "$crosstools" != "yes"; then
9611 if test "$aros_target_as" = ""; then
9612 if test "$cross_compiling" = "yes" ; then
9613 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9614 set dummy ${target_tool_prefix}as; ac_word=$2
9615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9617 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620 case $aros_target_as_ln in
9621 [\\/]* | ?:[\\/]*)
9622 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 for as_dir in $PATH
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9632 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9634 break 2
9636 done
9637 done
9638 IFS=$as_save_IFS
9641 esac
9643 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9644 if test -n "$aros_target_as_ln"; then
9645 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9646 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9647 else
9648 { echo "$as_me:$LINENO: result: no" >&5
9649 echo "${ECHO_T}no" >&6; }
9653 else
9654 if test "$GCC" = "yes"; then
9655 aros_gcc_as=`$CC -print-prog-name=as`
9656 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9657 set dummy `basename $aros_gcc_as`; ac_word=$2
9658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9660 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663 case $aros_target_as_ln in
9664 [\\/]* | ?:[\\/]*)
9665 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 for as_dir in `dirname $aros_gcc_as`
9671 IFS=$as_save_IFS
9672 test -z "$as_dir" && as_dir=.
9673 for ac_exec_ext in '' $ac_executable_extensions; do
9674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9675 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9677 break 2
9679 done
9680 done
9681 IFS=$as_save_IFS
9684 esac
9686 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9687 if test -n "$aros_target_as_ln"; then
9688 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9689 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9690 else
9691 { echo "$as_me:$LINENO: result: no" >&5
9692 echo "${ECHO_T}no" >&6; }
9697 if test "$aros_target_as_ln" = ""; then
9698 # Extract the first word of "as", so it can be a program name with args.
9699 set dummy as; ac_word=$2
9700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9702 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9703 echo $ECHO_N "(cached) $ECHO_C" >&6
9704 else
9705 case $aros_target_as_ln in
9706 [\\/]* | ?:[\\/]*)
9707 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9711 for as_dir in $PATH
9713 IFS=$as_save_IFS
9714 test -z "$as_dir" && as_dir=.
9715 for ac_exec_ext in '' $ac_executable_extensions; do
9716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9717 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9719 break 2
9721 done
9722 done
9723 IFS=$as_save_IFS
9726 esac
9728 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9729 if test -n "$aros_target_as_ln"; then
9730 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9731 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9732 else
9733 { echo "$as_me:$LINENO: result: no" >&5
9734 echo "${ECHO_T}no" >&6; }
9740 else
9741 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9742 set dummy $aros_target_as; ac_word=$2
9743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9745 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 else
9748 case $aros_target_as_ln in
9749 [\\/]* | ?:[\\/]*)
9750 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9754 for as_dir in $PATH
9756 IFS=$as_save_IFS
9757 test -z "$as_dir" && as_dir=.
9758 for ac_exec_ext in '' $ac_executable_extensions; do
9759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9760 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9762 break 2
9764 done
9765 done
9766 IFS=$as_save_IFS
9769 esac
9771 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9772 if test -n "$aros_target_as_ln"; then
9773 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9774 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9775 else
9776 { echo "$as_me:$LINENO: result: no" >&5
9777 echo "${ECHO_T}no" >&6; }
9783 if test "$aros_target_as_ln" = ""; then
9784 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9785 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9786 { (exit 1); exit 1; }; }
9789 if test "$aros_kernel_ld" = ""; then
9790 if test "$cross_compiling" = "yes" ; then
9791 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9792 set dummy ${target_tool_prefix}ld; ac_word=$2
9793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9795 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9796 echo $ECHO_N "(cached) $ECHO_C" >&6
9797 else
9798 case $aros_kernel_ld in
9799 [\\/]* | ?:[\\/]*)
9800 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9804 for as_dir in $PATH
9806 IFS=$as_save_IFS
9807 test -z "$as_dir" && as_dir=.
9808 for ac_exec_ext in '' $ac_executable_extensions; do
9809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9810 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9812 break 2
9814 done
9815 done
9816 IFS=$as_save_IFS
9819 esac
9821 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9822 if test -n "$aros_kernel_ld"; then
9823 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9824 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9825 else
9826 { echo "$as_me:$LINENO: result: no" >&5
9827 echo "${ECHO_T}no" >&6; }
9831 else
9832 if test "$GCC" = "yes"; then
9833 aros_gcc_ld=`$CC -print-prog-name=ld`
9834 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9835 set dummy `basename $aros_gcc_ld`; ac_word=$2
9836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9838 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9839 echo $ECHO_N "(cached) $ECHO_C" >&6
9840 else
9841 case $aros_kernel_ld in
9842 [\\/]* | ?:[\\/]*)
9843 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9847 for as_dir in `dirname $aros_gcc_ld`
9849 IFS=$as_save_IFS
9850 test -z "$as_dir" && as_dir=.
9851 for ac_exec_ext in '' $ac_executable_extensions; do
9852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9853 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9855 break 2
9857 done
9858 done
9859 IFS=$as_save_IFS
9862 esac
9864 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9865 if test -n "$aros_kernel_ld"; then
9866 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9867 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9868 else
9869 { echo "$as_me:$LINENO: result: no" >&5
9870 echo "${ECHO_T}no" >&6; }
9875 if test "$aros_kernel_ld" = ""; then
9876 # Extract the first word of "ld", so it can be a program name with args.
9877 set dummy ld; ac_word=$2
9878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9880 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9881 echo $ECHO_N "(cached) $ECHO_C" >&6
9882 else
9883 case $aros_kernel_ld in
9884 [\\/]* | ?:[\\/]*)
9885 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9889 for as_dir in $PATH
9891 IFS=$as_save_IFS
9892 test -z "$as_dir" && as_dir=.
9893 for ac_exec_ext in '' $ac_executable_extensions; do
9894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9895 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9897 break 2
9899 done
9900 done
9901 IFS=$as_save_IFS
9904 esac
9906 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9907 if test -n "$aros_kernel_ld"; then
9908 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9909 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9910 else
9911 { echo "$as_me:$LINENO: result: no" >&5
9912 echo "${ECHO_T}no" >&6; }
9918 else
9919 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9920 set dummy $aros_kernel_ld; ac_word=$2
9921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9923 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9924 echo $ECHO_N "(cached) $ECHO_C" >&6
9925 else
9926 case $aros_kernel_ld in
9927 [\\/]* | ?:[\\/]*)
9928 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9932 for as_dir in $PATH
9934 IFS=$as_save_IFS
9935 test -z "$as_dir" && as_dir=.
9936 for ac_exec_ext in '' $ac_executable_extensions; do
9937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9938 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9940 break 2
9942 done
9943 done
9944 IFS=$as_save_IFS
9947 esac
9949 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9950 if test -n "$aros_kernel_ld"; then
9951 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9952 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9953 else
9954 { echo "$as_me:$LINENO: result: no" >&5
9955 echo "${ECHO_T}no" >&6; }
9961 if test "$aros_kernel_ld" = ""; then
9962 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9963 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9964 { (exit 1); exit 1; }; }
9967 if test "$aros_target_ar" = ""; then
9968 if test "$cross_compiling" = "yes" ; then
9969 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9970 set dummy ${target_tool_prefix}ar; ac_word=$2
9971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9973 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9974 echo $ECHO_N "(cached) $ECHO_C" >&6
9975 else
9976 case $aros_target_ar_ln in
9977 [\\/]* | ?:[\\/]*)
9978 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982 for as_dir in $PATH
9984 IFS=$as_save_IFS
9985 test -z "$as_dir" && as_dir=.
9986 for ac_exec_ext in '' $ac_executable_extensions; do
9987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9988 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9989 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9990 break 2
9992 done
9993 done
9994 IFS=$as_save_IFS
9997 esac
9999 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10000 if test -n "$aros_target_ar_ln"; then
10001 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10002 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
10003 else
10004 { echo "$as_me:$LINENO: result: no" >&5
10005 echo "${ECHO_T}no" >&6; }
10009 else
10010 if test "$GCC" = "yes"; then
10011 aros_gcc_ar=`$CC -print-prog-name=ar`
10012 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
10013 set dummy `basename $aros_gcc_ar`; ac_word=$2
10014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10016 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10018 else
10019 case $aros_target_ar_ln in
10020 [\\/]* | ?:[\\/]*)
10021 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10025 for as_dir in `dirname $aros_gcc_ar`
10027 IFS=$as_save_IFS
10028 test -z "$as_dir" && as_dir=.
10029 for ac_exec_ext in '' $ac_executable_extensions; do
10030 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10031 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10033 break 2
10035 done
10036 done
10037 IFS=$as_save_IFS
10040 esac
10042 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10043 if test -n "$aros_target_ar_ln"; then
10044 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10045 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
10046 else
10047 { echo "$as_me:$LINENO: result: no" >&5
10048 echo "${ECHO_T}no" >&6; }
10053 if test "$aros_target_ar_ln" = ""; then
10054 # Extract the first word of "ar", so it can be a program name with args.
10055 set dummy ar; ac_word=$2
10056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10058 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10059 echo $ECHO_N "(cached) $ECHO_C" >&6
10060 else
10061 case $aros_target_ar_ln in
10062 [\\/]* | ?:[\\/]*)
10063 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10067 for as_dir in $PATH
10069 IFS=$as_save_IFS
10070 test -z "$as_dir" && as_dir=.
10071 for ac_exec_ext in '' $ac_executable_extensions; do
10072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10073 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10075 break 2
10077 done
10078 done
10079 IFS=$as_save_IFS
10082 esac
10084 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10085 if test -n "$aros_target_ar_ln"; then
10086 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10087 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
10088 else
10089 { echo "$as_me:$LINENO: result: no" >&5
10090 echo "${ECHO_T}no" >&6; }
10096 else
10097 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
10098 set dummy $aros_target_ar; ac_word=$2
10099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10101 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
10102 echo $ECHO_N "(cached) $ECHO_C" >&6
10103 else
10104 case $aros_target_ar_ln in
10105 [\\/]* | ?:[\\/]*)
10106 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
10109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10110 for as_dir in $PATH
10112 IFS=$as_save_IFS
10113 test -z "$as_dir" && as_dir=.
10114 for ac_exec_ext in '' $ac_executable_extensions; do
10115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10116 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
10117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10118 break 2
10120 done
10121 done
10122 IFS=$as_save_IFS
10125 esac
10127 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10128 if test -n "$aros_target_ar_ln"; then
10129 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10130 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
10131 else
10132 { echo "$as_me:$LINENO: result: no" >&5
10133 echo "${ECHO_T}no" >&6; }
10139 if test "$aros_target_ar_ln" = ""; then
10140 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
10141 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
10142 { (exit 1); exit 1; }; }
10145 if test "$aros_target_nm" = ""; then
10146 if test "$cross_compiling" = "yes" ; then
10147 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
10148 set dummy ${target_tool_prefix}nm; ac_word=$2
10149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10151 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10152 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 else
10154 case $aros_target_nm_ln in
10155 [\\/]* | ?:[\\/]*)
10156 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10160 for as_dir in $PATH
10162 IFS=$as_save_IFS
10163 test -z "$as_dir" && as_dir=.
10164 for ac_exec_ext in '' $ac_executable_extensions; do
10165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10166 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10168 break 2
10170 done
10171 done
10172 IFS=$as_save_IFS
10175 esac
10177 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10178 if test -n "$aros_target_nm_ln"; then
10179 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10180 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10181 else
10182 { echo "$as_me:$LINENO: result: no" >&5
10183 echo "${ECHO_T}no" >&6; }
10187 else
10188 if test "$GCC" = "yes"; then
10189 aros_gcc_nm=`$CC -print-prog-name=nm`
10190 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10191 set dummy `basename $aros_gcc_nm`; ac_word=$2
10192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10194 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10195 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 else
10197 case $aros_target_nm_ln in
10198 [\\/]* | ?:[\\/]*)
10199 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10203 for as_dir in `dirname $aros_gcc_nm`
10205 IFS=$as_save_IFS
10206 test -z "$as_dir" && as_dir=.
10207 for ac_exec_ext in '' $ac_executable_extensions; do
10208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10209 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10211 break 2
10213 done
10214 done
10215 IFS=$as_save_IFS
10218 esac
10220 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10221 if test -n "$aros_target_nm_ln"; then
10222 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10223 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10224 else
10225 { echo "$as_me:$LINENO: result: no" >&5
10226 echo "${ECHO_T}no" >&6; }
10231 if test "$aros_target_nm_ln" = ""; then
10232 # Extract the first word of "nm", so it can be a program name with args.
10233 set dummy nm; ac_word=$2
10234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10236 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239 case $aros_target_nm_ln in
10240 [\\/]* | ?:[\\/]*)
10241 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10245 for as_dir in $PATH
10247 IFS=$as_save_IFS
10248 test -z "$as_dir" && as_dir=.
10249 for ac_exec_ext in '' $ac_executable_extensions; do
10250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10251 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10253 break 2
10255 done
10256 done
10257 IFS=$as_save_IFS
10260 esac
10262 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10263 if test -n "$aros_target_nm_ln"; then
10264 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10265 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10266 else
10267 { echo "$as_me:$LINENO: result: no" >&5
10268 echo "${ECHO_T}no" >&6; }
10274 else
10275 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10276 set dummy $aros_target_nm; ac_word=$2
10277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10279 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10280 echo $ECHO_N "(cached) $ECHO_C" >&6
10281 else
10282 case $aros_target_nm_ln in
10283 [\\/]* | ?:[\\/]*)
10284 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10288 for as_dir in $PATH
10290 IFS=$as_save_IFS
10291 test -z "$as_dir" && as_dir=.
10292 for ac_exec_ext in '' $ac_executable_extensions; do
10293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10294 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10296 break 2
10298 done
10299 done
10300 IFS=$as_save_IFS
10303 esac
10305 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10306 if test -n "$aros_target_nm_ln"; then
10307 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10308 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10309 else
10310 { echo "$as_me:$LINENO: result: no" >&5
10311 echo "${ECHO_T}no" >&6; }
10317 if test "$aros_target_nm_ln" = ""; then
10318 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10319 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10320 { (exit 1); exit 1; }; }
10323 if test "$aros_target_objcopy" = ""; then
10324 if test "$cross_compiling" = "yes" ; then
10325 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10326 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10329 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10330 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 else
10332 case $aros_target_objcopy_ln in
10333 [\\/]* | ?:[\\/]*)
10334 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338 for as_dir in $PATH
10340 IFS=$as_save_IFS
10341 test -z "$as_dir" && as_dir=.
10342 for ac_exec_ext in '' $ac_executable_extensions; do
10343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10344 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10346 break 2
10348 done
10349 done
10350 IFS=$as_save_IFS
10353 esac
10355 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10356 if test -n "$aros_target_objcopy_ln"; then
10357 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10358 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10359 else
10360 { echo "$as_me:$LINENO: result: no" >&5
10361 echo "${ECHO_T}no" >&6; }
10365 else
10366 if test "$GCC" = "yes"; then
10367 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10368 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10369 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10372 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10373 echo $ECHO_N "(cached) $ECHO_C" >&6
10374 else
10375 case $aros_target_objcopy_ln in
10376 [\\/]* | ?:[\\/]*)
10377 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10381 for as_dir in `dirname $aros_gcc_objcopy`
10383 IFS=$as_save_IFS
10384 test -z "$as_dir" && as_dir=.
10385 for ac_exec_ext in '' $ac_executable_extensions; do
10386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10387 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10389 break 2
10391 done
10392 done
10393 IFS=$as_save_IFS
10396 esac
10398 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10399 if test -n "$aros_target_objcopy_ln"; then
10400 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10401 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10402 else
10403 { echo "$as_me:$LINENO: result: no" >&5
10404 echo "${ECHO_T}no" >&6; }
10409 if test "$aros_target_objcopy_ln" = ""; then
10410 # Extract the first word of "objcopy", so it can be a program name with args.
10411 set dummy objcopy; ac_word=$2
10412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10414 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10415 echo $ECHO_N "(cached) $ECHO_C" >&6
10416 else
10417 case $aros_target_objcopy_ln in
10418 [\\/]* | ?:[\\/]*)
10419 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10423 for as_dir in $PATH
10425 IFS=$as_save_IFS
10426 test -z "$as_dir" && as_dir=.
10427 for ac_exec_ext in '' $ac_executable_extensions; do
10428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10429 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10431 break 2
10433 done
10434 done
10435 IFS=$as_save_IFS
10438 esac
10440 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10441 if test -n "$aros_target_objcopy_ln"; then
10442 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10443 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10444 else
10445 { echo "$as_me:$LINENO: result: no" >&5
10446 echo "${ECHO_T}no" >&6; }
10452 else
10453 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10454 set dummy $aros_target_objcopy; ac_word=$2
10455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10457 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10458 echo $ECHO_N "(cached) $ECHO_C" >&6
10459 else
10460 case $aros_target_objcopy_ln in
10461 [\\/]* | ?:[\\/]*)
10462 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10466 for as_dir in $PATH
10468 IFS=$as_save_IFS
10469 test -z "$as_dir" && as_dir=.
10470 for ac_exec_ext in '' $ac_executable_extensions; do
10471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10472 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10474 break 2
10476 done
10477 done
10478 IFS=$as_save_IFS
10481 esac
10483 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10484 if test -n "$aros_target_objcopy_ln"; then
10485 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10486 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10487 else
10488 { echo "$as_me:$LINENO: result: no" >&5
10489 echo "${ECHO_T}no" >&6; }
10495 if test "$aros_target_objcopy_ln" = ""; then
10496 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10497 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10498 { (exit 1); exit 1; }; }
10501 if test "$aros_target_objdump" = ""; then
10502 if test "$cross_compiling" = "yes" ; then
10503 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10504 set dummy ${target_tool_prefix}objdump; ac_word=$2
10505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10507 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10508 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 else
10510 case $aros_target_objdump_ln in
10511 [\\/]* | ?:[\\/]*)
10512 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516 for as_dir in $PATH
10518 IFS=$as_save_IFS
10519 test -z "$as_dir" && as_dir=.
10520 for ac_exec_ext in '' $ac_executable_extensions; do
10521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10522 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10524 break 2
10526 done
10527 done
10528 IFS=$as_save_IFS
10531 esac
10533 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10534 if test -n "$aros_target_objdump_ln"; then
10535 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10536 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10537 else
10538 { echo "$as_me:$LINENO: result: no" >&5
10539 echo "${ECHO_T}no" >&6; }
10543 else
10544 if test "$GCC" = "yes"; then
10545 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10546 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10547 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10548 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10550 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10551 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 else
10553 case $aros_target_objdump_ln in
10554 [\\/]* | ?:[\\/]*)
10555 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10559 for as_dir in `dirname $aros_gcc_objdump`
10561 IFS=$as_save_IFS
10562 test -z "$as_dir" && as_dir=.
10563 for ac_exec_ext in '' $ac_executable_extensions; do
10564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10565 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10566 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10567 break 2
10569 done
10570 done
10571 IFS=$as_save_IFS
10574 esac
10576 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10577 if test -n "$aros_target_objdump_ln"; then
10578 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10579 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10580 else
10581 { echo "$as_me:$LINENO: result: no" >&5
10582 echo "${ECHO_T}no" >&6; }
10587 if test "$aros_target_objdump_ln" = ""; then
10588 # Extract the first word of "objdump", so it can be a program name with args.
10589 set dummy objdump; ac_word=$2
10590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10592 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595 case $aros_target_objdump_ln in
10596 [\\/]* | ?:[\\/]*)
10597 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601 for as_dir in $PATH
10603 IFS=$as_save_IFS
10604 test -z "$as_dir" && as_dir=.
10605 for ac_exec_ext in '' $ac_executable_extensions; do
10606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10607 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10609 break 2
10611 done
10612 done
10613 IFS=$as_save_IFS
10616 esac
10618 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10619 if test -n "$aros_target_objdump_ln"; then
10620 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10621 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10622 else
10623 { echo "$as_me:$LINENO: result: no" >&5
10624 echo "${ECHO_T}no" >&6; }
10630 else
10631 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10632 set dummy $aros_target_objdump; ac_word=$2
10633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10635 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10636 echo $ECHO_N "(cached) $ECHO_C" >&6
10637 else
10638 case $aros_target_objdump_ln in
10639 [\\/]* | ?:[\\/]*)
10640 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10644 for as_dir in $PATH
10646 IFS=$as_save_IFS
10647 test -z "$as_dir" && as_dir=.
10648 for ac_exec_ext in '' $ac_executable_extensions; do
10649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10650 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10652 break 2
10654 done
10655 done
10656 IFS=$as_save_IFS
10659 esac
10661 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10662 if test -n "$aros_target_objdump_ln"; then
10663 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10664 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10665 else
10666 { echo "$as_me:$LINENO: result: no" >&5
10667 echo "${ECHO_T}no" >&6; }
10673 if test "$aros_target_objdump_ln" = ""; then
10674 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10675 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10676 { (exit 1); exit 1; }; }
10679 if test "$aros_target_ranlib" = ""; then
10680 if test "$cross_compiling" = "yes" ; then
10681 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10682 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10685 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10687 else
10688 case $aros_target_ranlib_ln in
10689 [\\/]* | ?:[\\/]*)
10690 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10694 for as_dir in $PATH
10696 IFS=$as_save_IFS
10697 test -z "$as_dir" && as_dir=.
10698 for ac_exec_ext in '' $ac_executable_extensions; do
10699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10700 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10702 break 2
10704 done
10705 done
10706 IFS=$as_save_IFS
10709 esac
10711 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10712 if test -n "$aros_target_ranlib_ln"; then
10713 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10714 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10715 else
10716 { echo "$as_me:$LINENO: result: no" >&5
10717 echo "${ECHO_T}no" >&6; }
10721 else
10722 if test "$GCC" = "yes"; then
10723 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10724 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10725 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10728 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10729 echo $ECHO_N "(cached) $ECHO_C" >&6
10730 else
10731 case $aros_target_ranlib_ln in
10732 [\\/]* | ?:[\\/]*)
10733 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10737 for as_dir in `dirname $aros_gcc_ranlib`
10739 IFS=$as_save_IFS
10740 test -z "$as_dir" && as_dir=.
10741 for ac_exec_ext in '' $ac_executable_extensions; do
10742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10743 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10745 break 2
10747 done
10748 done
10749 IFS=$as_save_IFS
10752 esac
10754 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10755 if test -n "$aros_target_ranlib_ln"; then
10756 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10757 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10758 else
10759 { echo "$as_me:$LINENO: result: no" >&5
10760 echo "${ECHO_T}no" >&6; }
10765 if test "$aros_target_ranlib_ln" = ""; then
10766 # Extract the first word of "ranlib", so it can be a program name with args.
10767 set dummy ranlib; ac_word=$2
10768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10770 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10772 else
10773 case $aros_target_ranlib_ln in
10774 [\\/]* | ?:[\\/]*)
10775 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10781 IFS=$as_save_IFS
10782 test -z "$as_dir" && as_dir=.
10783 for ac_exec_ext in '' $ac_executable_extensions; do
10784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10785 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10787 break 2
10789 done
10790 done
10791 IFS=$as_save_IFS
10794 esac
10796 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10797 if test -n "$aros_target_ranlib_ln"; then
10798 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10799 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10800 else
10801 { echo "$as_me:$LINENO: result: no" >&5
10802 echo "${ECHO_T}no" >&6; }
10808 else
10809 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10810 set dummy $aros_target_ranlib; ac_word=$2
10811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10813 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816 case $aros_target_ranlib_ln in
10817 [\\/]* | ?:[\\/]*)
10818 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10822 for as_dir in $PATH
10824 IFS=$as_save_IFS
10825 test -z "$as_dir" && as_dir=.
10826 for ac_exec_ext in '' $ac_executable_extensions; do
10827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10828 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10830 break 2
10832 done
10833 done
10834 IFS=$as_save_IFS
10837 esac
10839 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10840 if test -n "$aros_target_ranlib_ln"; then
10841 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10842 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10843 else
10844 { echo "$as_me:$LINENO: result: no" >&5
10845 echo "${ECHO_T}no" >&6; }
10851 if test "$aros_target_ranlib_ln" = ""; then
10852 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10853 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10854 { (exit 1); exit 1; }; }
10857 if test "$aros_target_strip" = ""; then
10858 if test "$cross_compiling" = "yes" ; then
10859 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10860 set dummy ${target_tool_prefix}strip; ac_word=$2
10861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10863 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10864 echo $ECHO_N "(cached) $ECHO_C" >&6
10865 else
10866 case $aros_target_strip_ln in
10867 [\\/]* | ?:[\\/]*)
10868 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10872 for as_dir in $PATH
10874 IFS=$as_save_IFS
10875 test -z "$as_dir" && as_dir=.
10876 for ac_exec_ext in '' $ac_executable_extensions; do
10877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10878 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10880 break 2
10882 done
10883 done
10884 IFS=$as_save_IFS
10887 esac
10889 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10890 if test -n "$aros_target_strip_ln"; then
10891 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10892 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10893 else
10894 { echo "$as_me:$LINENO: result: no" >&5
10895 echo "${ECHO_T}no" >&6; }
10899 else
10900 if test "$GCC" = "yes"; then
10901 aros_gcc_strip=`$CC -print-prog-name=strip`
10902 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10903 set dummy `basename $aros_gcc_strip`; ac_word=$2
10904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10906 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10907 echo $ECHO_N "(cached) $ECHO_C" >&6
10908 else
10909 case $aros_target_strip_ln in
10910 [\\/]* | ?:[\\/]*)
10911 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10915 for as_dir in `dirname $aros_gcc_strip`
10917 IFS=$as_save_IFS
10918 test -z "$as_dir" && as_dir=.
10919 for ac_exec_ext in '' $ac_executable_extensions; do
10920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10921 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10923 break 2
10925 done
10926 done
10927 IFS=$as_save_IFS
10930 esac
10932 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10933 if test -n "$aros_target_strip_ln"; then
10934 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10935 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10936 else
10937 { echo "$as_me:$LINENO: result: no" >&5
10938 echo "${ECHO_T}no" >&6; }
10943 if test "$aros_target_strip_ln" = ""; then
10944 # Extract the first word of "strip", so it can be a program name with args.
10945 set dummy strip; ac_word=$2
10946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10948 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951 case $aros_target_strip_ln in
10952 [\\/]* | ?:[\\/]*)
10953 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10957 for as_dir in $PATH
10959 IFS=$as_save_IFS
10960 test -z "$as_dir" && as_dir=.
10961 for ac_exec_ext in '' $ac_executable_extensions; do
10962 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10963 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10964 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10965 break 2
10967 done
10968 done
10969 IFS=$as_save_IFS
10972 esac
10974 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10975 if test -n "$aros_target_strip_ln"; then
10976 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10977 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10978 else
10979 { echo "$as_me:$LINENO: result: no" >&5
10980 echo "${ECHO_T}no" >&6; }
10986 else
10987 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10988 set dummy $aros_target_strip; ac_word=$2
10989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10991 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994 case $aros_target_strip_ln in
10995 [\\/]* | ?:[\\/]*)
10996 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000 for as_dir in $PATH
11002 IFS=$as_save_IFS
11003 test -z "$as_dir" && as_dir=.
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11006 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
11007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11008 break 2
11010 done
11011 done
11012 IFS=$as_save_IFS
11015 esac
11017 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
11018 if test -n "$aros_target_strip_ln"; then
11019 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
11020 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
11021 else
11022 { echo "$as_me:$LINENO: result: no" >&5
11023 echo "${ECHO_T}no" >&6; }
11029 if test "$aros_target_strip_ln" = ""; then
11030 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
11031 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
11032 { (exit 1); exit 1; }; }
11034 if test "$aros_target_cxx" != ""; then
11035 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
11036 set dummy $aros_target_cxx; ac_word=$2
11037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11039 if test "${ac_cv_path_aros_target_cxx+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042 case $aros_target_cxx in
11043 [\\/]* | ?:[\\/]*)
11044 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
11047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11048 for as_dir in $PATH
11050 IFS=$as_save_IFS
11051 test -z "$as_dir" && as_dir=.
11052 for ac_exec_ext in '' $ac_executable_extensions; do
11053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11054 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
11055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11056 break 2
11058 done
11059 done
11060 IFS=$as_save_IFS
11063 esac
11065 aros_target_cxx=$ac_cv_path_aros_target_cxx
11066 if test -n "$aros_target_cxx"; then
11067 { echo "$as_me:$LINENO: result: $aros_target_cxx" >&5
11068 echo "${ECHO_T}$aros_target_cxx" >&6; }
11069 else
11070 { echo "$as_me:$LINENO: result: no" >&5
11071 echo "${ECHO_T}no" >&6; }
11075 # Temporarily disabled in order to let Mingw32-hosted nightly build to work
11076 # AROS_REQUIRED(c++,$aros_target_cxx)
11078 else
11079 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
11080 aros_target_cxx=""
11083 # Build crosstools if we have no C++ - temporary thing
11084 if test "$aros_target_cxx" = ""; then
11085 crosstools_target=tools-crosstools
11088 if test "$rescomp" != ""; then
11089 if test "$cross_compiling" = "yes" ; then
11090 rescomp=${target_tool_prefix}${rescomp}
11092 # Extract the first word of "$rescomp", so it can be a program name with args.
11093 set dummy $rescomp; ac_word=$2
11094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11096 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11098 else
11099 case $aros_kernel_rescomp in
11100 [\\/]* | ?:[\\/]*)
11101 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
11104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11105 for as_dir in $PATH
11107 IFS=$as_save_IFS
11108 test -z "$as_dir" && as_dir=.
11109 for ac_exec_ext in '' $ac_executable_extensions; do
11110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11111 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
11112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11113 break 2
11115 done
11116 done
11117 IFS=$as_save_IFS
11120 esac
11122 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
11123 if test -n "$aros_kernel_rescomp"; then
11124 { echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
11125 echo "${ECHO_T}$aros_kernel_rescomp" >&6; }
11126 else
11127 { echo "$as_me:$LINENO: result: no" >&5
11128 echo "${ECHO_T}no" >&6; }
11132 if test "$aros_kernel_rescomp" = ""; then
11133 { { echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
11134 echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
11135 { (exit 1); exit 1; }; }
11139 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
11140 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
11141 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
11142 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
11143 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
11144 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
11145 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
11147 # aros_cc_pre is a variable that is added to the front of the compiler name
11148 # in the generated aros-gcc shell script. We need this to enable the cache
11149 # to work across cleaned builds. Also, support DISTCC using the correct
11150 # environment variable.
11153 if test "x${DISTCC}" != "x" ; then
11154 if test "x${CCACHE}" != "x" ; then
11155 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
11156 else
11157 aros_cc_pre="${DISTCC} "
11159 else
11160 if test "x${CCACHE}" != "x" ; then
11161 aros_cc_pre="${CCACHE} "
11165 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
11167 aros_target_nostdinc_cflags=-nostdinc
11169 aros_target_nostartup_ldflags=-nostartfiles
11171 aros_target_nix_ldflags=-nix
11173 aros_target_detach_ldflags=-detach
11175 aros_target_nostdlib_ldflags=-nostdlib
11178 # Target tools
11179 if test "$aros_target_cc" = ""; then
11180 orig_target_cc=$aros_kernel_cc
11181 else
11182 orig_target_cc=$aros_target_cc
11184 if test "$aros_target_ld" = ""; then
11185 orig_target_ld=$aros_kernel_ld
11186 else
11187 orig_target_ld=$aros_target_ld
11189 if test "$GCC" = "yes"; then
11190 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
11192 aros_target_cc="${prefix}-gcc"
11193 aros_target_as="${prefix}-as"
11194 aros_target_ld="${prefix}-ld"
11195 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
11196 aros_target_objcopy=${prefix}-objcopy
11197 aros_target_objdump=${prefix}-objdump
11198 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
11199 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
11200 aros_kernel_nm="${prefix}-nm"
11201 aros_target_strip=${prefix}-strip
11203 # Find the system include path. We can suggest that an alternative is
11204 # used if we don't get it correct. The default is to use /usr/include.
11205 # Which is set in the aros_target_incl_def variable.
11207 # Check whether --enable-includes was given.
11208 if test "${enable_includes+set}" = set; then
11209 enableval=$enable_includes; aros_target_incl=$enable_includes
11210 else
11211 aros_target_incl=$aros_target_incl_def
11215 if test "$aros_kernel_includes" = ""; then
11216 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11217 # FIXME: for cross-compiling this should point to another location
11218 aros_kernel_includes="-isystem $aros_target_incl"
11222 if test "$aros_kernel_includes" != "" ; then
11223 { echo "$as_me:$LINENO: checking for the kernel compiler's include path" >&5
11224 echo $ECHO_N "checking for the kernel compiler's include path... $ECHO_C" >&6; }
11225 if test "$aros_kernel_cc_includes" = "" ; then
11226 # Try to guess where the directory is.
11227 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
11228 if test -d $aros_kernel_cc_includes; then
11229 # Check if there is also an include-fixed directory and add it
11230 # to kernel compiler's include path as it may contain some of
11231 # the headers we need.
11232 if test -d "$aros_kernel_cc_includes"-fixed; then
11233 aros_kernel_cc_includes+=" -isystem $aros_kernel_cc_includes"-fixed
11235 else
11236 # The directory doesn't exist, we need to do some more work.
11237 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
11239 # These are the headers we're looking for.
11240 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11241 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11242 zutil.h"
11244 dirs=
11245 for h in $headers; do
11246 # Which other headers are needed by each of the above?
11247 deps=$(echo "#include <$h>" | \
11248 $aros_kernel_cc -E -M - 2>/dev/null | \
11249 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11251 # Copy all the needed headers to a directory beneath gendir.
11252 for d in $deps; do
11253 h=$(basename $d)
11254 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
11255 sed -n "s,^.*/include\(/.*\),\1,p")
11256 ! test -d $dir && mkdir -p $dir
11257 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11258 done
11259 done
11262 { echo "$as_me:$LINENO: result: $aros_kernel_cc_includes" >&5
11263 echo "${ECHO_T}$aros_kernel_cc_includes" >&6; }
11264 # Adding -nostdinc to kernel includes as they are always used together.
11265 aros_kernel_includes="$aros_kernel_includes $aros_target_nostdinc_cflags -isystem $aros_kernel_cc_includes"
11268 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
11269 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
11270 if test "$aros_target_cc_includes" = "" ; then
11271 #try to guess where the directory is
11272 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
11273 if ! test -d $aros_target_cc_includes; then
11274 #the directory doesn't exist, we need to do some more work
11275 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
11277 #these are the headers we're looling for
11278 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11279 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11280 zutil.h"
11282 dirs=
11283 for h in $headers; do
11284 #which other headers each of the above headers needs?
11285 deps=$(echo "#include <$h>" | \
11286 $orig_target_cc -E -M - 2>/dev/null | \
11287 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11289 #copy all the needed headers to a directory beneath gendir
11290 for d in $deps; do
11291 h=$(basename $d)
11292 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11293 sed -n "s,^.*/include\(/.*\),\1,p")
11294 ! test -d $dir && mkdir -p $dir
11295 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11296 done
11297 done
11300 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
11301 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
11304 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11305 # On GCC >= 4.0 -iquote should be used
11308 save_cc="$CC"
11309 save_cflags="$CFLAGS"
11310 CFLAGS="-iquote."
11311 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11312 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11313 cat >conftest.$ac_ext <<_ACEOF
11314 /* confdefs.h. */
11315 _ACEOF
11316 cat confdefs.h >>conftest.$ac_ext
11317 cat >>conftest.$ac_ext <<_ACEOF
11318 /* end confdefs.h. */
11321 main ()
11325 return 0;
11327 _ACEOF
11328 rm -f conftest.$ac_objext
11329 if { (ac_try="$ac_compile"
11330 case "(($ac_try" in
11331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11332 *) ac_try_echo=$ac_try;;
11333 esac
11334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11335 (eval "$ac_compile") 2>conftest.er1
11336 ac_status=$?
11337 grep -v '^ *+' conftest.er1 >conftest.err
11338 rm -f conftest.er1
11339 cat conftest.err >&5
11340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11341 (exit $ac_status); } && {
11342 test -z "$ac_c_werror_flag" ||
11343 test ! -s conftest.err
11344 } && test -s conftest.$ac_objext; then
11345 has_iquote="yes"
11346 else
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 has_iquote="no"
11353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11354 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11355 echo "${ECHO_T}$has_iquote" >&6; }
11356 if test "x-$has_iquote" = "x-yes" ; then
11357 host_cflags_iquote=-iquote
11358 host_cflags_iquote_end=
11359 else
11360 host_cflags_iquote=-I
11361 host_cflags_iquote_end=-I-
11363 kernel_cflags_iquote=$host_cflags_iquote
11364 kernel_cflags_iquote_end=$host_cflags_iquote_end
11365 if test "x-$cross_compiling" = "x-yes"; then
11366 CC="$aros_kernel_cc"
11367 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
11368 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
11369 cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h. */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11377 main ()
11381 return 0;
11383 _ACEOF
11384 rm -f conftest.$ac_objext
11385 if { (ac_try="$ac_compile"
11386 case "(($ac_try" in
11387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11388 *) ac_try_echo=$ac_try;;
11389 esac
11390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11391 (eval "$ac_compile") 2>conftest.er1
11392 ac_status=$?
11393 grep -v '^ *+' conftest.er1 >conftest.err
11394 rm -f conftest.er1
11395 cat conftest.err >&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); } && {
11398 test -z "$ac_c_werror_flag" ||
11399 test ! -s conftest.err
11400 } && test -s conftest.$ac_objext; then
11401 use_no_stack_protector="yes"
11402 else
11403 echo "$as_me: failed program was:" >&5
11404 sed 's/^/| /' conftest.$ac_ext >&5
11406 use_no_stack_protector="no"
11409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11410 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
11411 echo "${ECHO_T}$use_no_stack_protector" >&6; }
11412 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11413 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11414 cat >conftest.$ac_ext <<_ACEOF
11415 /* confdefs.h. */
11416 _ACEOF
11417 cat confdefs.h >>conftest.$ac_ext
11418 cat >>conftest.$ac_ext <<_ACEOF
11419 /* end confdefs.h. */
11422 main ()
11426 return 0;
11428 _ACEOF
11429 rm -f conftest.$ac_objext
11430 if { (ac_try="$ac_compile"
11431 case "(($ac_try" in
11432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11433 *) ac_try_echo=$ac_try;;
11434 esac
11435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11436 (eval "$ac_compile") 2>conftest.er1
11437 ac_status=$?
11438 grep -v '^ *+' conftest.er1 >conftest.err
11439 rm -f conftest.er1
11440 cat conftest.err >&5
11441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11442 (exit $ac_status); } && {
11443 test -z "$ac_c_werror_flag" ||
11444 test ! -s conftest.err
11445 } && test -s conftest.$ac_objext; then
11446 has_iquote="yes"
11447 else
11448 echo "$as_me: failed program was:" >&5
11449 sed 's/^/| /' conftest.$ac_ext >&5
11451 has_iquote="no"
11454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11455 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11456 echo "${ECHO_T}$has_iquote" >&6; }
11457 if test "x-$has_iquote" = "x-yes" ; then
11458 kernel_cflags_iquote=-iquote
11459 kernel_cflags_iquote_end=
11460 else
11461 kernel_cflags_iquote=-I
11462 kernel_cflags_iquote_end=-I-
11465 aros_cflags_iquote=$kernel_cflags_iquote
11466 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11467 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11468 CC="$orig_target_cc"
11469 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11470 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11471 cat >conftest.$ac_ext <<_ACEOF
11472 /* confdefs.h. */
11473 _ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11479 main ()
11483 return 0;
11485 _ACEOF
11486 rm -f conftest.$ac_objext
11487 if { (ac_try="$ac_compile"
11488 case "(($ac_try" in
11489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490 *) ac_try_echo=$ac_try;;
11491 esac
11492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11493 (eval "$ac_compile") 2>conftest.er1
11494 ac_status=$?
11495 grep -v '^ *+' conftest.er1 >conftest.err
11496 rm -f conftest.er1
11497 cat conftest.err >&5
11498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11499 (exit $ac_status); } && {
11500 test -z "$ac_c_werror_flag" ||
11501 test ! -s conftest.err
11502 } && test -s conftest.$ac_objext; then
11503 has_iquote="yes"
11504 else
11505 echo "$as_me: failed program was:" >&5
11506 sed 's/^/| /' conftest.$ac_ext >&5
11508 has_iquote="no"
11511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11512 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11513 echo "${ECHO_T}$has_iquote" >&6; }
11514 if test "x-$has_iquote" = "x-yes" ; then
11515 aros_cflags_iquote=-iquote
11516 aros_cflags_iquote_end=
11517 else
11518 aros_cflags_iquote=-I
11519 aros_cflags_iquote_end=-I-
11522 if test "x-$use_no_stack_protector" = "x-yes" ; then
11523 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11526 #-----------------------------------------------------------------------------
11528 # Check if we can explicitly choose older version of symbol hashing
11530 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11531 CC="$aros_kernel_cc"
11532 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11533 echo $ECHO_N "checking whether ${CC} accepts -Wl,--hash-style=sysv... $ECHO_C" >&6; }
11534 cat >conftest.$ac_ext <<_ACEOF
11535 /* confdefs.h. */
11536 _ACEOF
11537 cat confdefs.h >>conftest.$ac_ext
11538 cat >>conftest.$ac_ext <<_ACEOF
11539 /* end confdefs.h. */
11542 main ()
11546 return 0;
11548 _ACEOF
11549 rm -f conftest.$ac_objext conftest$ac_exeext
11550 if { (ac_try="$ac_link"
11551 case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11554 esac
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_link") 2>conftest.er1
11557 ac_status=$?
11558 grep -v '^ *+' conftest.er1 >conftest.err
11559 rm -f conftest.er1
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext &&
11566 $as_test_x conftest$ac_exeext; then
11567 use_hash_style="yes"
11568 else
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 use_hash_style="no"
11575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11576 conftest$ac_exeext conftest.$ac_ext
11577 { echo "$as_me:$LINENO: result: $use_hash_style" >&5
11578 echo "${ECHO_T}$use_hash_style" >&6; }
11579 if test "x-$use_hash_style" = "x-yes" ; then
11580 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11582 CC="$save_cc"
11583 CFLAGS="$save_cflags"
11593 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11594 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
11596 # Check whether --with-resolution was given.
11597 if test "${with_resolution+set}" = set; then
11598 withval=$with_resolution; resolution=$withval
11599 else
11600 resolution=none
11603 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11604 if test "$resolution" = "yes" ; then
11605 resolution="none"
11607 if test "$resolution" = "no" ; then
11608 resolution="none"
11610 if test "$resolution" != "none" ; then
11611 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11612 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11613 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11615 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11616 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11617 aros_cv_default_wbwidth=$aros_default_wbwidth
11618 aros_cv_default_wbheight=$aros_default_wbheight
11619 aros_cv_default_wbdepth=$aros_default_wbdepth
11621 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11622 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11624 # Check whether --with-serial-debug was given.
11625 if test "${with_serial_debug+set}" = set; then
11626 withval=$with_serial_debug; serial_debug=$withval
11627 else
11628 serial_debug=none
11631 if test "$aros_serial_debug" = 0 ; then
11632 serial_debug_forced=""
11633 if test "$serial_debug" = "yes" ; then
11634 serial_debug="2"
11636 if test "$serial_debug" = "no" ; then
11637 serial_debug="none"
11639 else
11640 serial_debug_forced="(forced)"
11641 serial_debug=$aros_serial_debug
11643 if test "$serial_debug" != "none" ; then
11644 aros_serial_debug=$serial_debug
11645 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11646 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11647 else
11648 { echo "$as_me:$LINENO: result: no" >&5
11649 echo "${ECHO_T}no" >&6; }
11652 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11653 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11654 # Check whether --enable-palm_debug_hack was given.
11655 if test "${enable_palm_debug_hack+set}" = set; then
11656 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11657 else
11658 palm_debug_hack="no"
11661 if test "$palm_debug_hack" = "yes" ; then
11662 aros_palm_debug_hack="1"
11664 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11665 echo "${ECHO_T}$palm_debug_hack" >&6; }
11668 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11669 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11670 # Check whether --enable-nesting_supervisor was given.
11671 if test "${enable_nesting_supervisor+set}" = set; then
11672 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11673 else
11674 nesting_supervisor="no"
11677 if test "$nesting_supervisor" = "yes" ; then
11678 aros_nesting_supervisor="1"
11680 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11681 echo "${ECHO_T}$nesting_supervisor" >&6; }
11683 if test "$aros_enable_mmu" = "" ; then
11684 { echo "$as_me:$LINENO: checking if MMU support is enabled" >&5
11685 echo $ECHO_N "checking if MMU support is enabled... $ECHO_C" >&6; }
11686 # Check whether --enable-mmu was given.
11687 if test "${enable_mmu+set}" = set; then
11688 enableval=$enable_mmu; aros_enable_mmu=$enableval
11689 else
11690 aros_enable_mmu="yes"
11693 if test "$aros_enable_mmu" = "" ; then
11694 aros_enable_mmu="yes"
11696 { echo "$as_me:$LINENO: result: $aros_enable_mmu" >&5
11697 echo "${ECHO_T}$aros_enable_mmu" >&6; }
11699 if test "$aros_enable_mmu" = "no" ; then
11700 aros_enable_mmu="0"
11701 else
11702 aros_enable_mmu="1"
11706 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11708 if test "x-$need_dlopen" != "x-no" ; then
11709 { echo "$as_me:$LINENO: checking for dlopen" >&5
11710 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11711 if test "${ac_cv_func_dlopen+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 else
11714 cat >conftest.$ac_ext <<_ACEOF
11715 /* confdefs.h. */
11716 _ACEOF
11717 cat confdefs.h >>conftest.$ac_ext
11718 cat >>conftest.$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11720 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11721 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11722 #define dlopen innocuous_dlopen
11724 /* System header to define __stub macros and hopefully few prototypes,
11725 which can conflict with char dlopen (); below.
11726 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11727 <limits.h> exists even on freestanding compilers. */
11729 #ifdef __STDC__
11730 # include <limits.h>
11731 #else
11732 # include <assert.h>
11733 #endif
11735 #undef dlopen
11737 /* Override any GCC internal prototype to avoid an error.
11738 Use char because int might match the return type of a GCC
11739 builtin and then its argument prototype would still apply. */
11740 #ifdef __cplusplus
11741 extern "C"
11742 #endif
11743 char dlopen ();
11744 /* The GNU C library defines this for functions which it implements
11745 to always fail with ENOSYS. Some functions are actually named
11746 something starting with __ and the normal name is an alias. */
11747 #if defined __stub_dlopen || defined __stub___dlopen
11748 choke me
11749 #endif
11752 main ()
11754 return dlopen ();
11756 return 0;
11758 _ACEOF
11759 rm -f conftest.$ac_objext conftest$ac_exeext
11760 if { (ac_try="$ac_link"
11761 case "(($ac_try" in
11762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11764 esac
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766 (eval "$ac_link") 2>conftest.er1
11767 ac_status=$?
11768 grep -v '^ *+' conftest.er1 >conftest.err
11769 rm -f conftest.er1
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } && {
11773 test -z "$ac_c_werror_flag" ||
11774 test ! -s conftest.err
11775 } && test -s conftest$ac_exeext &&
11776 $as_test_x conftest$ac_exeext; then
11777 ac_cv_func_dlopen=yes
11778 else
11779 echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11782 ac_cv_func_dlopen=no
11785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11786 conftest$ac_exeext conftest.$ac_ext
11788 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11789 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11790 if test $ac_cv_func_dlopen = yes; then
11791 have_dl="yes"
11792 else
11793 have_dl="no"
11796 if test "x-$have_dl" = "x-no" ; then
11797 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11798 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11799 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802 ac_check_lib_save_LIBS=$LIBS
11803 LIBS="-ldl $LIBS"
11804 cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h. */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11811 /* Override any GCC internal prototype to avoid an error.
11812 Use char because int might match the return type of a GCC
11813 builtin and then its argument prototype would still apply. */
11814 #ifdef __cplusplus
11815 extern "C"
11816 #endif
11817 char dlopen ();
11819 main ()
11821 return dlopen ();
11823 return 0;
11825 _ACEOF
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (ac_try="$ac_link"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11831 esac
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_link") 2>conftest.er1
11834 ac_status=$?
11835 grep -v '^ *+' conftest.er1 >conftest.err
11836 rm -f conftest.er1
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } && {
11840 test -z "$ac_c_werror_flag" ||
11841 test ! -s conftest.err
11842 } && test -s conftest$ac_exeext &&
11843 $as_test_x conftest$ac_exeext; then
11844 ac_cv_lib_dl_dlopen=yes
11845 else
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.$ac_ext >&5
11849 ac_cv_lib_dl_dlopen=no
11852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11853 conftest$ac_exeext conftest.$ac_ext
11854 LIBS=$ac_check_lib_save_LIBS
11856 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11857 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11858 if test $ac_cv_lib_dl_dlopen = yes; then
11859 have_dl="yes"
11860 aros_host_ldflags="$aros_host_ldflags -ldl"
11861 else
11862 have_dl="no"
11866 if test "x-$have_dl" = "x-no" ; then
11867 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11868 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11869 { (exit 1); exit 1; }; }
11874 # Check whether --enable-x11_hidd was given.
11875 if test "${enable_x11_hidd+set}" = set; then
11876 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11877 else
11878 x11_hidd="$need_x11"
11881 case "x-$x11_hidd" in
11882 x-yes|x-no|x-auto) ;;
11883 *) x11_hidd="$need_x11" ;;
11884 esac
11886 ENABLE_X11=0
11888 if test "x-$x11_hidd" != "x-no" ; then
11890 { echo "$as_me:$LINENO: checking for X" >&5
11891 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11894 # Check whether --with-x was given.
11895 if test "${with_x+set}" = set; then
11896 withval=$with_x;
11899 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11900 if test "x$with_x" = xno; then
11901 # The user explicitly disabled X.
11902 have_x=disabled
11903 else
11904 case $x_includes,$x_libraries in #(
11905 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11906 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11907 { (exit 1); exit 1; }; };; #(
11908 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11909 echo $ECHO_N "(cached) $ECHO_C" >&6
11910 else
11911 # One or both of the vars are not set, and there is no cached value.
11912 ac_x_includes=no ac_x_libraries=no
11913 rm -f -r conftest.dir
11914 if mkdir conftest.dir; then
11915 cd conftest.dir
11916 cat >Imakefile <<'_ACEOF'
11917 incroot:
11918 @echo incroot='${INCROOT}'
11919 usrlibdir:
11920 @echo usrlibdir='${USRLIBDIR}'
11921 libdir:
11922 @echo libdir='${LIBDIR}'
11923 _ACEOF
11924 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11925 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11926 for ac_var in incroot usrlibdir libdir; do
11927 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11928 done
11929 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11930 for ac_extension in a so sl; do
11931 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11932 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11933 ac_im_usrlibdir=$ac_im_libdir; break
11935 done
11936 # Screen out bogus values from the imake configuration. They are
11937 # bogus both because they are the default anyway, and because
11938 # using them would break gcc on systems where it needs fixed includes.
11939 case $ac_im_incroot in
11940 /usr/include) ac_x_includes= ;;
11941 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11942 esac
11943 case $ac_im_usrlibdir in
11944 /usr/lib | /lib) ;;
11945 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11946 esac
11948 cd ..
11949 rm -f -r conftest.dir
11952 # Standard set of common directories for X headers.
11953 # Check X11 before X11Rn because it is often a symlink to the current release.
11954 ac_x_header_dirs='
11955 /usr/X11/include
11956 /usr/X11R6/include
11957 /usr/X11R5/include
11958 /usr/X11R4/include
11960 /usr/include/X11
11961 /usr/include/X11R6
11962 /usr/include/X11R5
11963 /usr/include/X11R4
11965 /usr/local/X11/include
11966 /usr/local/X11R6/include
11967 /usr/local/X11R5/include
11968 /usr/local/X11R4/include
11970 /usr/local/include/X11
11971 /usr/local/include/X11R6
11972 /usr/local/include/X11R5
11973 /usr/local/include/X11R4
11975 /usr/X386/include
11976 /usr/x386/include
11977 /usr/XFree86/include/X11
11979 /usr/include
11980 /usr/local/include
11981 /usr/unsupported/include
11982 /usr/athena/include
11983 /usr/local/x11r5/include
11984 /usr/lpp/Xamples/include
11986 /usr/openwin/include
11987 /usr/openwin/share/include'
11989 if test "$ac_x_includes" = no; then
11990 # Guess where to find include files, by looking for Xlib.h.
11991 # First, try using that file with no special directory specified.
11992 cat >conftest.$ac_ext <<_ACEOF
11993 /* confdefs.h. */
11994 _ACEOF
11995 cat confdefs.h >>conftest.$ac_ext
11996 cat >>conftest.$ac_ext <<_ACEOF
11997 /* end confdefs.h. */
11998 #include <X11/Xlib.h>
11999 _ACEOF
12000 if { (ac_try="$ac_cpp conftest.$ac_ext"
12001 case "(($ac_try" in
12002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12003 *) ac_try_echo=$ac_try;;
12004 esac
12005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12007 ac_status=$?
12008 grep -v '^ *+' conftest.er1 >conftest.err
12009 rm -f conftest.er1
12010 cat conftest.err >&5
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } >/dev/null && {
12013 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12014 test ! -s conftest.err
12015 }; then
12016 # We can compile using X headers with no special include directory.
12017 ac_x_includes=
12018 else
12019 echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12022 for ac_dir in $ac_x_header_dirs; do
12023 if test -r "$ac_dir/X11/Xlib.h"; then
12024 ac_x_includes=$ac_dir
12025 break
12027 done
12030 rm -f conftest.err conftest.$ac_ext
12031 fi # $ac_x_includes = no
12033 if test "$ac_x_libraries" = no; then
12034 # Check for the libraries.
12035 # See if we find them without any special options.
12036 # Don't add to $LIBS permanently.
12037 ac_save_LIBS=$LIBS
12038 LIBS="-lX11 $LIBS"
12039 cat >conftest.$ac_ext <<_ACEOF
12040 /* confdefs.h. */
12041 _ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12045 #include <X11/Xlib.h>
12047 main ()
12049 XrmInitialize ()
12051 return 0;
12053 _ACEOF
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (ac_try="$ac_link"
12056 case "(($ac_try" in
12057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12058 *) ac_try_echo=$ac_try;;
12059 esac
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061 (eval "$ac_link") 2>conftest.er1
12062 ac_status=$?
12063 grep -v '^ *+' conftest.er1 >conftest.err
12064 rm -f conftest.er1
12065 cat conftest.err >&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } && {
12068 test -z "$ac_c_werror_flag" ||
12069 test ! -s conftest.err
12070 } && test -s conftest$ac_exeext &&
12071 $as_test_x conftest$ac_exeext; then
12072 LIBS=$ac_save_LIBS
12073 # We can link X programs with no special library path.
12074 ac_x_libraries=
12075 else
12076 echo "$as_me: failed program was:" >&5
12077 sed 's/^/| /' conftest.$ac_ext >&5
12079 LIBS=$ac_save_LIBS
12080 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12082 # Don't even attempt the hair of trying to link an X program!
12083 for ac_extension in a so sl; do
12084 if test -r "$ac_dir/libX11.$ac_extension"; then
12085 ac_x_libraries=$ac_dir
12086 break 2
12088 done
12089 done
12092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12093 conftest$ac_exeext conftest.$ac_ext
12094 fi # $ac_x_libraries = no
12096 case $ac_x_includes,$ac_x_libraries in #(
12097 no,* | *,no | *\'*)
12098 # Didn't find X, or a directory has "'" in its name.
12099 ac_cv_have_x="have_x=no";; #(
12101 # Record where we found X for the cache.
12102 ac_cv_have_x="have_x=yes\
12103 ac_x_includes='$ac_x_includes'\
12104 ac_x_libraries='$ac_x_libraries'"
12105 esac
12107 ;; #(
12108 *) have_x=yes;;
12109 esac
12110 eval "$ac_cv_have_x"
12111 fi # $with_x != no
12113 if test "$have_x" != yes; then
12114 { echo "$as_me:$LINENO: result: $have_x" >&5
12115 echo "${ECHO_T}$have_x" >&6; }
12116 no_x=yes
12117 else
12118 # If each of the values was on the command line, it overrides each guess.
12119 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12120 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12121 # Update the cache value to reflect the command line values.
12122 ac_cv_have_x="have_x=yes\
12123 ac_x_includes='$x_includes'\
12124 ac_x_libraries='$x_libraries'"
12125 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
12126 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
12130 x_cflags=
12131 for path in $x_libraries
12133 x_cflags="$x_cflags -L$path"
12134 done
12136 for path in $x_includes
12138 x_cflags="$x_cflags -I$path"
12139 done
12141 if test "x-$no_x" = "x-yes" ; then
12143 if test "x-$x11_hidd" != "x-auto" ; then
12144 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
12145 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
12146 { (exit 1); exit 1; }; }
12149 else
12150 x11_hidd_target=kernel-x11gfx-kobj
12151 ENABLE_X11=1
12153 # Check whether --enable-x11_shm was given.
12154 if test "${enable_x11_shm+set}" = set; then
12155 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
12156 else
12157 x11_hidd_shm="auto"
12160 case "x-$x11_hidd_shm" in
12161 x-yes|x-no|x-auto) ;;
12162 *) x11_hidd_shm="auto" ;;
12163 esac
12165 have_xshm=no
12167 if test "x-$x11_hidd_shm" != "x-no" ; then
12170 for ac_header in sys/ipc.h
12172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12177 echo $ECHO_N "(cached) $ECHO_C" >&6
12179 ac_res=`eval echo '${'$as_ac_Header'}'`
12180 { echo "$as_me:$LINENO: result: $ac_res" >&5
12181 echo "${ECHO_T}$ac_res" >&6; }
12182 else
12183 # Is the header compilable?
12184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12186 cat >conftest.$ac_ext <<_ACEOF
12187 /* confdefs.h. */
12188 _ACEOF
12189 cat confdefs.h >>conftest.$ac_ext
12190 cat >>conftest.$ac_ext <<_ACEOF
12191 /* end confdefs.h. */
12192 $ac_includes_default
12193 #include <$ac_header>
12194 _ACEOF
12195 rm -f conftest.$ac_objext
12196 if { (ac_try="$ac_compile"
12197 case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12200 esac
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_compile") 2>conftest.er1
12203 ac_status=$?
12204 grep -v '^ *+' conftest.er1 >conftest.err
12205 rm -f conftest.er1
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } && {
12209 test -z "$ac_c_werror_flag" ||
12210 test ! -s conftest.err
12211 } && test -s conftest.$ac_objext; then
12212 ac_header_compiler=yes
12213 else
12214 echo "$as_me: failed program was:" >&5
12215 sed 's/^/| /' conftest.$ac_ext >&5
12217 ac_header_compiler=no
12220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12222 echo "${ECHO_T}$ac_header_compiler" >&6; }
12224 # Is the header present?
12225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12227 cat >conftest.$ac_ext <<_ACEOF
12228 /* confdefs.h. */
12229 _ACEOF
12230 cat confdefs.h >>conftest.$ac_ext
12231 cat >>conftest.$ac_ext <<_ACEOF
12232 /* end confdefs.h. */
12233 #include <$ac_header>
12234 _ACEOF
12235 if { (ac_try="$ac_cpp conftest.$ac_ext"
12236 case "(($ac_try" in
12237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238 *) ac_try_echo=$ac_try;;
12239 esac
12240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12242 ac_status=$?
12243 grep -v '^ *+' conftest.er1 >conftest.err
12244 rm -f conftest.er1
12245 cat conftest.err >&5
12246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247 (exit $ac_status); } >/dev/null && {
12248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12249 test ! -s conftest.err
12250 }; then
12251 ac_header_preproc=yes
12252 else
12253 echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.$ac_ext >&5
12256 ac_header_preproc=no
12259 rm -f conftest.err conftest.$ac_ext
12260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12261 echo "${ECHO_T}$ac_header_preproc" >&6; }
12263 # So? What about this header?
12264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12265 yes:no: )
12266 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12268 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12270 ac_header_preproc=yes
12272 no:yes:* )
12273 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12276 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12279 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12280 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12283 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12287 esac
12288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12291 echo $ECHO_N "(cached) $ECHO_C" >&6
12292 else
12293 eval "$as_ac_Header=\$ac_header_preproc"
12295 ac_res=`eval echo '${'$as_ac_Header'}'`
12296 { echo "$as_me:$LINENO: result: $ac_res" >&5
12297 echo "${ECHO_T}$ac_res" >&6; }
12300 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12301 cat >>confdefs.h <<_ACEOF
12302 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12303 _ACEOF
12307 done
12310 for ac_header in sys/shm.h
12312 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12314 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12315 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12316 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12319 ac_res=`eval echo '${'$as_ac_Header'}'`
12320 { echo "$as_me:$LINENO: result: $ac_res" >&5
12321 echo "${ECHO_T}$ac_res" >&6; }
12322 else
12323 # Is the header compilable?
12324 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12325 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12326 cat >conftest.$ac_ext <<_ACEOF
12327 /* confdefs.h. */
12328 _ACEOF
12329 cat confdefs.h >>conftest.$ac_ext
12330 cat >>conftest.$ac_ext <<_ACEOF
12331 /* end confdefs.h. */
12332 $ac_includes_default
12333 #include <$ac_header>
12334 _ACEOF
12335 rm -f conftest.$ac_objext
12336 if { (ac_try="$ac_compile"
12337 case "(($ac_try" in
12338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339 *) ac_try_echo=$ac_try;;
12340 esac
12341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12342 (eval "$ac_compile") 2>conftest.er1
12343 ac_status=$?
12344 grep -v '^ *+' conftest.er1 >conftest.err
12345 rm -f conftest.er1
12346 cat conftest.err >&5
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); } && {
12349 test -z "$ac_c_werror_flag" ||
12350 test ! -s conftest.err
12351 } && test -s conftest.$ac_objext; then
12352 ac_header_compiler=yes
12353 else
12354 echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12357 ac_header_compiler=no
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12362 echo "${ECHO_T}$ac_header_compiler" >&6; }
12364 # Is the header present?
12365 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12367 cat >conftest.$ac_ext <<_ACEOF
12368 /* confdefs.h. */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h. */
12373 #include <$ac_header>
12374 _ACEOF
12375 if { (ac_try="$ac_cpp conftest.$ac_ext"
12376 case "(($ac_try" in
12377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12378 *) ac_try_echo=$ac_try;;
12379 esac
12380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12382 ac_status=$?
12383 grep -v '^ *+' conftest.er1 >conftest.err
12384 rm -f conftest.er1
12385 cat conftest.err >&5
12386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12387 (exit $ac_status); } >/dev/null && {
12388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12389 test ! -s conftest.err
12390 }; then
12391 ac_header_preproc=yes
12392 else
12393 echo "$as_me: failed program was:" >&5
12394 sed 's/^/| /' conftest.$ac_ext >&5
12396 ac_header_preproc=no
12399 rm -f conftest.err conftest.$ac_ext
12400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12401 echo "${ECHO_T}$ac_header_preproc" >&6; }
12403 # So? What about this header?
12404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12405 yes:no: )
12406 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12407 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12408 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12409 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12410 ac_header_preproc=yes
12412 no:yes:* )
12413 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12414 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12415 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12416 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12417 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12418 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12419 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12420 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12422 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12423 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12424 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12427 esac
12428 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12429 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12431 echo $ECHO_N "(cached) $ECHO_C" >&6
12432 else
12433 eval "$as_ac_Header=\$ac_header_preproc"
12435 ac_res=`eval echo '${'$as_ac_Header'}'`
12436 { echo "$as_me:$LINENO: result: $ac_res" >&5
12437 echo "${ECHO_T}$ac_res" >&6; }
12440 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12441 cat >>confdefs.h <<_ACEOF
12442 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12443 _ACEOF
12447 done
12450 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12452 save_cflags="$CFLAGS"
12453 CFLAGS="$CFLAGS $x_cflags"
12454 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
12455 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
12456 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
12457 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 else
12459 ac_check_lib_save_LIBS=$LIBS
12460 LIBS="-lXext $LIBS"
12461 cat >conftest.$ac_ext <<_ACEOF
12462 /* confdefs.h. */
12463 _ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h. */
12468 /* Override any GCC internal prototype to avoid an error.
12469 Use char because int might match the return type of a GCC
12470 builtin and then its argument prototype would still apply. */
12471 #ifdef __cplusplus
12472 extern "C"
12473 #endif
12474 char XShmQueryExtension ();
12476 main ()
12478 return XShmQueryExtension ();
12480 return 0;
12482 _ACEOF
12483 rm -f conftest.$ac_objext conftest$ac_exeext
12484 if { (ac_try="$ac_link"
12485 case "(($ac_try" in
12486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12487 *) ac_try_echo=$ac_try;;
12488 esac
12489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12490 (eval "$ac_link") 2>conftest.er1
12491 ac_status=$?
12492 grep -v '^ *+' conftest.er1 >conftest.err
12493 rm -f conftest.er1
12494 cat conftest.err >&5
12495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12496 (exit $ac_status); } && {
12497 test -z "$ac_c_werror_flag" ||
12498 test ! -s conftest.err
12499 } && test -s conftest$ac_exeext &&
12500 $as_test_x conftest$ac_exeext; then
12501 ac_cv_lib_Xext_XShmQueryExtension=yes
12502 else
12503 echo "$as_me: failed program was:" >&5
12504 sed 's/^/| /' conftest.$ac_ext >&5
12506 ac_cv_lib_Xext_XShmQueryExtension=no
12509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12510 conftest$ac_exeext conftest.$ac_ext
12511 LIBS=$ac_check_lib_save_LIBS
12513 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12514 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12515 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
12516 have_xshm=yes
12519 CFLAGS="$save_cflags"
12523 if test "x-$have_xshm" = "x-yes" ; then
12524 DO_XSHM_SUPPORT="1"
12525 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12526 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12527 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12528 { (exit 1); exit 1; }; }
12529 else
12530 DO_XSHM_SUPPORT="0"
12534 # Check whether --enable-x11_vidmode was given.
12535 if test "${enable_x11_vidmode+set}" = set; then
12536 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12537 else
12538 x11_hidd_vidmode="auto"
12541 case "x-$x11_hidd_vidmode" in
12542 x-yes|x-no|x-auto) ;;
12543 *) x11_hidd_vidmode="auto" ;;
12544 esac
12546 have_vidmode=no
12548 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12550 save_cflags="$CFLAGS"
12551 CFLAGS="$CFLAGS $x_cflags"
12552 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12553 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
12554 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12556 else
12557 ac_check_lib_save_LIBS=$LIBS
12558 LIBS="-lXxf86vm $LIBS"
12559 cat >conftest.$ac_ext <<_ACEOF
12560 /* confdefs.h. */
12561 _ACEOF
12562 cat confdefs.h >>conftest.$ac_ext
12563 cat >>conftest.$ac_ext <<_ACEOF
12564 /* end confdefs.h. */
12566 /* Override any GCC internal prototype to avoid an error.
12567 Use char because int might match the return type of a GCC
12568 builtin and then its argument prototype would still apply. */
12569 #ifdef __cplusplus
12570 extern "C"
12571 #endif
12572 char XF86VidModeQueryExtension ();
12574 main ()
12576 return XF86VidModeQueryExtension ();
12578 return 0;
12580 _ACEOF
12581 rm -f conftest.$ac_objext conftest$ac_exeext
12582 if { (ac_try="$ac_link"
12583 case "(($ac_try" in
12584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12585 *) ac_try_echo=$ac_try;;
12586 esac
12587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12588 (eval "$ac_link") 2>conftest.er1
12589 ac_status=$?
12590 grep -v '^ *+' conftest.er1 >conftest.err
12591 rm -f conftest.er1
12592 cat conftest.err >&5
12593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12594 (exit $ac_status); } && {
12595 test -z "$ac_c_werror_flag" ||
12596 test ! -s conftest.err
12597 } && test -s conftest$ac_exeext &&
12598 $as_test_x conftest$ac_exeext; then
12599 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12600 else
12601 echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12604 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12608 conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12611 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12612 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12613 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
12614 have_vidmode=yes
12617 CFLAGS="$save_cflags"
12620 if test "x-$have_vidmode" = "x-yes" ; then
12621 DO_VIDMODE_SUPPORT="1"
12622 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12623 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12624 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12625 { (exit 1); exit 1; }; }
12626 else
12627 DO_VIDMODE_SUPPORT="0"
12631 aros_host_x11_includes=$x_includes
12632 aros_host_x11_libdirs=$x_libraries
12636 # Check whether --enable-sdl_hidd was given.
12637 if test "${enable_sdl_hidd+set}" = set; then
12638 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12639 else
12640 sdl_hidd="auto"
12643 case "x-$sdl_hidd" in
12644 x-yes|x-no|x-auto) ;;
12645 *) sdl_hidd="auto" ;;
12646 esac
12648 if test "x-$sdl_hidd" != "x-no" ; then
12651 # Check whether --with-sdl-prefix was given.
12652 if test "${with_sdl_prefix+set}" = set; then
12653 withval=$with_sdl_prefix; sdl_prefix="$withval"
12654 else
12655 sdl_prefix=""
12659 # Check whether --with-sdl-exec-prefix was given.
12660 if test "${with_sdl_exec_prefix+set}" = set; then
12661 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12662 else
12663 sdl_exec_prefix=""
12666 # Check whether --enable-sdltest was given.
12667 if test "${enable_sdltest+set}" = set; then
12668 enableval=$enable_sdltest;
12669 else
12670 enable_sdltest=yes
12674 if test x$sdl_exec_prefix != x ; then
12675 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12676 if test x${SDL_CONFIG+set} != xset ; then
12677 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12680 if test x$sdl_prefix != x ; then
12681 sdl_args="$sdl_args --prefix=$sdl_prefix"
12682 if test x${SDL_CONFIG+set} != xset ; then
12683 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12687 if test "x$prefix" != xNONE; then
12688 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12690 # Extract the first word of "sdl-config", so it can be a program name with args.
12691 set dummy sdl-config; ac_word=$2
12692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12694 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12695 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 else
12697 case $SDL_CONFIG in
12698 [\\/]* | ?:[\\/]*)
12699 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12703 for as_dir in $PATH
12705 IFS=$as_save_IFS
12706 test -z "$as_dir" && as_dir=.
12707 for ac_exec_ext in '' $ac_executable_extensions; do
12708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12709 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12711 break 2
12713 done
12714 done
12715 IFS=$as_save_IFS
12717 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12719 esac
12721 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12722 if test -n "$SDL_CONFIG"; then
12723 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12724 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12725 else
12726 { echo "$as_me:$LINENO: result: no" >&5
12727 echo "${ECHO_T}no" >&6; }
12731 min_sdl_version=1.2.10
12732 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12733 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12734 no_sdl=""
12735 if test "$SDL_CONFIG" = "no" ; then
12736 no_sdl=yes
12737 else
12738 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12739 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12741 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12742 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12743 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12744 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12745 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12746 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12747 if test "x$enable_sdltest" = "xyes" ; then
12748 ac_save_CFLAGS="$CFLAGS"
12749 ac_save_CXXFLAGS="$CXXFLAGS"
12750 ac_save_LIBS="$LIBS"
12751 CFLAGS="$CFLAGS $SDL_CFLAGS"
12752 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12753 LIBS="$LIBS $SDL_LIBS"
12754 rm -f conf.sdltest
12755 if test "$cross_compiling" = yes; then
12756 echo $ac_n "cross compiling; assumed OK... $ac_c"
12757 else
12758 cat >conftest.$ac_ext <<_ACEOF
12759 /* confdefs.h. */
12760 _ACEOF
12761 cat confdefs.h >>conftest.$ac_ext
12762 cat >>conftest.$ac_ext <<_ACEOF
12763 /* end confdefs.h. */
12765 #include <stdio.h>
12766 #include <stdlib.h>
12767 #include <string.h>
12768 #include "SDL.h"
12770 char*
12771 my_strdup (char *str)
12773 char *new_str;
12775 if (str)
12777 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12778 strcpy (new_str, str);
12780 else
12781 new_str = NULL;
12783 return new_str;
12786 int main (int argc, char *argv[])
12788 int major, minor, micro;
12789 char *tmp_version;
12791 /* This hangs on some systems (?)
12792 system ("touch conf.sdltest");
12794 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12796 /* HP/UX 9 (%@#!) writes to sscanf strings */
12797 tmp_version = my_strdup("$min_sdl_version");
12798 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12799 printf("%s, bad version string\n", "$min_sdl_version");
12800 exit(1);
12803 if (($sdl_major_version > major) ||
12804 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12805 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12807 return 0;
12809 else
12811 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12812 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12813 printf("*** best to upgrade to the required version.\n");
12814 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12815 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12816 printf("*** config.cache before re-running configure\n");
12817 return 1;
12822 _ACEOF
12823 rm -f conftest$ac_exeext
12824 if { (ac_try="$ac_link"
12825 case "(($ac_try" in
12826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12827 *) ac_try_echo=$ac_try;;
12828 esac
12829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12830 (eval "$ac_link") 2>&5
12831 ac_status=$?
12832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12833 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12834 { (case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12837 esac
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_try") 2>&5
12840 ac_status=$?
12841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12842 (exit $ac_status); }; }; then
12844 else
12845 echo "$as_me: program exited with status $ac_status" >&5
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12849 ( exit $ac_status )
12850 no_sdl=yes
12852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12856 CFLAGS="$ac_save_CFLAGS"
12857 CXXFLAGS="$ac_save_CXXFLAGS"
12858 LIBS="$ac_save_LIBS"
12861 if test "x$no_sdl" = x ; then
12862 { echo "$as_me:$LINENO: result: yes" >&5
12863 echo "${ECHO_T}yes" >&6; }
12864 have_sdl="yes"
12865 else
12866 { echo "$as_me:$LINENO: result: no" >&5
12867 echo "${ECHO_T}no" >&6; }
12868 if test "$SDL_CONFIG" = "no" ; then
12869 echo "*** The sdl-config script installed by SDL could not be found"
12870 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12871 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12872 echo "*** full path to sdl-config."
12873 else
12874 if test -f conf.sdltest ; then
12876 else
12877 echo "*** Could not run SDL test program, checking why..."
12878 CFLAGS="$CFLAGS $SDL_CFLAGS"
12879 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12880 LIBS="$LIBS $SDL_LIBS"
12881 cat >conftest.$ac_ext <<_ACEOF
12882 /* confdefs.h. */
12883 _ACEOF
12884 cat confdefs.h >>conftest.$ac_ext
12885 cat >>conftest.$ac_ext <<_ACEOF
12886 /* end confdefs.h. */
12888 #include <stdio.h>
12889 #include "SDL.h"
12891 int main(int argc, char *argv[])
12892 { return 0; }
12893 #undef main
12894 #define main K_and_R_C_main
12897 main ()
12899 return 0;
12901 return 0;
12903 _ACEOF
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (ac_try="$ac_link"
12906 case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12909 esac
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_link") 2>conftest.er1
12912 ac_status=$?
12913 grep -v '^ *+' conftest.er1 >conftest.err
12914 rm -f conftest.er1
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } && {
12918 test -z "$ac_c_werror_flag" ||
12919 test ! -s conftest.err
12920 } && test -s conftest$ac_exeext &&
12921 $as_test_x conftest$ac_exeext; then
12922 echo "*** The test program compiled, but did not run. This usually means"
12923 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12924 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12925 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12926 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12927 echo "*** is required on your system"
12928 echo "***"
12929 echo "*** If you have an old version installed, it is best to remove it, although"
12930 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12931 else
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12935 echo "*** The test program failed to compile or link. See the file config.log for the"
12936 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12937 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12938 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12942 conftest$ac_exeext conftest.$ac_ext
12943 CFLAGS="$ac_save_CFLAGS"
12944 CXXFLAGS="$ac_save_CXXFLAGS"
12945 LIBS="$ac_save_LIBS"
12948 SDL_CFLAGS=""
12949 SDL_LIBS=""
12950 have_sdl="no"
12954 rm -f conf.sdltest
12957 if test "x-$have_sdl" != "x-yes" ; then
12959 if test "x-$sdl_hidd" != "x-auto" ; then
12960 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12961 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12962 { (exit 1); exit 1; }; }
12965 else
12966 sdl_hidd_target=kernel-hidd-sdl
12967 aros_host_sdl_cflags=SDL_CFLAGS
12968 aros_host_sdl_libs=SDL_LIBS
12972 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
12973 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
12974 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
12975 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
12976 echo $ECHO_N "(cached) $ECHO_C" >&6
12978 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
12979 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
12980 else
12981 # Is the header compilable?
12982 { echo "$as_me:$LINENO: checking sys/soundcard.h usability" >&5
12983 echo $ECHO_N "checking sys/soundcard.h usability... $ECHO_C" >&6; }
12984 cat >conftest.$ac_ext <<_ACEOF
12985 /* confdefs.h. */
12986 _ACEOF
12987 cat confdefs.h >>conftest.$ac_ext
12988 cat >>conftest.$ac_ext <<_ACEOF
12989 /* end confdefs.h. */
12990 $ac_includes_default
12991 #include <sys/soundcard.h>
12992 _ACEOF
12993 rm -f conftest.$ac_objext
12994 if { (ac_try="$ac_compile"
12995 case "(($ac_try" in
12996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12997 *) ac_try_echo=$ac_try;;
12998 esac
12999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13000 (eval "$ac_compile") 2>conftest.er1
13001 ac_status=$?
13002 grep -v '^ *+' conftest.er1 >conftest.err
13003 rm -f conftest.er1
13004 cat conftest.err >&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); } && {
13007 test -z "$ac_c_werror_flag" ||
13008 test ! -s conftest.err
13009 } && test -s conftest.$ac_objext; then
13010 ac_header_compiler=yes
13011 else
13012 echo "$as_me: failed program was:" >&5
13013 sed 's/^/| /' conftest.$ac_ext >&5
13015 ac_header_compiler=no
13018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13019 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13020 echo "${ECHO_T}$ac_header_compiler" >&6; }
13022 # Is the header present?
13023 { echo "$as_me:$LINENO: checking sys/soundcard.h presence" >&5
13024 echo $ECHO_N "checking sys/soundcard.h presence... $ECHO_C" >&6; }
13025 cat >conftest.$ac_ext <<_ACEOF
13026 /* confdefs.h. */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13031 #include <sys/soundcard.h>
13032 _ACEOF
13033 if { (ac_try="$ac_cpp conftest.$ac_ext"
13034 case "(($ac_try" in
13035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13036 *) ac_try_echo=$ac_try;;
13037 esac
13038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13040 ac_status=$?
13041 grep -v '^ *+' conftest.er1 >conftest.err
13042 rm -f conftest.er1
13043 cat conftest.err >&5
13044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13045 (exit $ac_status); } >/dev/null && {
13046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13047 test ! -s conftest.err
13048 }; then
13049 ac_header_preproc=yes
13050 else
13051 echo "$as_me: failed program was:" >&5
13052 sed 's/^/| /' conftest.$ac_ext >&5
13054 ac_header_preproc=no
13057 rm -f conftest.err conftest.$ac_ext
13058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13059 echo "${ECHO_T}$ac_header_preproc" >&6; }
13061 # So? What about this header?
13062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13063 yes:no: )
13064 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&5
13065 echo "$as_me: WARNING: sys/soundcard.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13066 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&5
13067 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the compiler's result" >&2;}
13068 ac_header_preproc=yes
13070 no:yes:* )
13071 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: present but cannot be compiled" >&5
13072 echo "$as_me: WARNING: sys/soundcard.h: present but cannot be compiled" >&2;}
13073 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&5
13074 echo "$as_me: WARNING: sys/soundcard.h: check for missing prerequisite headers?" >&2;}
13075 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: see the Autoconf documentation" >&5
13076 echo "$as_me: WARNING: sys/soundcard.h: see the Autoconf documentation" >&2;}
13077 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&5
13078 echo "$as_me: WARNING: sys/soundcard.h: section \"Present But Cannot Be Compiled\"" >&2;}
13079 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&5
13080 echo "$as_me: WARNING: sys/soundcard.h: proceeding with the preprocessor's result" >&2;}
13081 { echo "$as_me:$LINENO: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&5
13082 echo "$as_me: WARNING: sys/soundcard.h: in the future, the compiler will take precedence" >&2;}
13085 esac
13086 { echo "$as_me:$LINENO: checking for sys/soundcard.h" >&5
13087 echo $ECHO_N "checking for sys/soundcard.h... $ECHO_C" >&6; }
13088 if test "${ac_cv_header_sys_soundcard_h+set}" = set; then
13089 echo $ECHO_N "(cached) $ECHO_C" >&6
13090 else
13091 ac_cv_header_sys_soundcard_h=$ac_header_preproc
13093 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard_h" >&5
13094 echo "${ECHO_T}$ac_cv_header_sys_soundcard_h" >&6; }
13099 if test "x-$ac_cv_header_sys_soundcard_h" = "x-yes" ; then
13100 oss_library_target=workbench-libs-oss-unix
13105 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
13106 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
13107 # Check whether --enable-dbus was given.
13108 if test "${enable_dbus+set}" = set; then
13109 enableval=$enable_dbus; dbus="yes"
13110 else
13111 dbus="no"
13114 if test "$dbus" = "yes" ; then
13115 ENABLE_DBUS=1
13116 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
13117 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
13118 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
13119 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
13120 else
13121 ENABLE_DBUS=0
13123 { echo "$as_me:$LINENO: result: $dbus" >&5
13124 echo "${ECHO_T}$dbus" >&6; }
13128 # Generic
13138 # Host related
13162 # Target Related
13216 # Graphics Related
13233 # Native version related
13236 # Palm native version related
13239 # Unix/Hosted version related
13242 # MMU related
13245 # Apple iOS related
13250 # Android related
13254 # DBUS related
13261 #X11 related
13264 # Debug related
13270 # Collect-aros stuff: "-ius" to ignore undefined symbols
13273 # C compiler related
13276 case "$aros_flavour" in
13277 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
13278 aros_flavour="emulation" ;;
13279 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
13280 aros_flavour="emulation" ;;
13281 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
13282 aros_flavour="standalone";;
13283 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
13284 aros_flavour="standalone";;
13285 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
13286 aros_flavour="native" ;;
13287 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
13288 aros_flavour="native" ;;
13289 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
13290 aros_flavour="linklib" ;;
13291 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
13292 aros_flavour="palmnative" ;;
13293 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
13294 aros_flavour="mac68knative" ;;
13295 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
13296 aros_flavour="ppcnative" ;;
13297 esac
13299 if test ! -d ${aros_inc_dir} ; then
13300 ${MKDIR} ${aros_inc_dir}
13302 if test ! -d ${aros_geninc_dir} ; then
13303 ${MKDIR} ${aros_geninc_dir}
13305 if test ! -d ${aros_hostcfg_dir} ; then
13306 ${MKDIR} ${aros_hostcfg_dir}
13308 if test ! -d ${aros_targetcfg_dir} ; then
13309 ${MKDIR} ${aros_targetcfg_dir}
13311 if test ! -d ${aros_tools_dir} ; then
13312 ${MKDIR} ${aros_tools_dir}
13314 if test ! -d ${aros_scripts_dir} ; then
13315 ${MKDIR} ${aros_scripts_dir}
13318 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
13321 ac_config_commands="$ac_config_commands compiler_executable"
13323 ac_config_commands="$ac_config_commands genshared_executable"
13325 ac_config_commands="$ac_config_commands genmf_executable"
13328 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"
13331 cat >confcache <<\_ACEOF
13332 # This file is a shell script that caches the results of configure
13333 # tests run on this system so they can be shared between configure
13334 # scripts and configure runs, see configure's option --config-cache.
13335 # It is not useful on other systems. If it contains results you don't
13336 # want to keep, you may remove or edit it.
13338 # config.status only pays attention to the cache file if you give it
13339 # the --recheck option to rerun configure.
13341 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13342 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13343 # following values.
13345 _ACEOF
13347 # The following way of writing the cache mishandles newlines in values,
13348 # but we know of no workaround that is simple, portable, and efficient.
13349 # So, we kill variables containing newlines.
13350 # Ultrix sh set writes to stderr and can't be redirected directly,
13351 # and sets the high bit in the cache file unless we assign to the vars.
13353 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13354 eval ac_val=\$$ac_var
13355 case $ac_val in #(
13356 *${as_nl}*)
13357 case $ac_var in #(
13358 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13359 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13360 esac
13361 case $ac_var in #(
13362 _ | IFS | as_nl) ;; #(
13363 *) $as_unset $ac_var ;;
13364 esac ;;
13365 esac
13366 done
13368 (set) 2>&1 |
13369 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13370 *${as_nl}ac_space=\ *)
13371 # `set' does not quote correctly, so add quotes (double-quote
13372 # substitution turns \\\\ into \\, and sed turns \\ into \).
13373 sed -n \
13374 "s/'/'\\\\''/g;
13375 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13376 ;; #(
13378 # `set' quotes correctly as required by POSIX, so do not add quotes.
13379 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13381 esac |
13382 sort
13384 sed '
13385 /^ac_cv_env_/b end
13386 t clear
13387 :clear
13388 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13389 t end
13390 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13391 :end' >>confcache
13392 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13393 if test -w "$cache_file"; then
13394 test "x$cache_file" != "x/dev/null" &&
13395 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13396 echo "$as_me: updating cache $cache_file" >&6;}
13397 cat confcache >$cache_file
13398 else
13399 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13400 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13403 rm -f confcache
13405 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13406 # Let make expand exec_prefix.
13407 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13409 DEFS=-DHAVE_CONFIG_H
13411 ac_libobjs=
13412 ac_ltlibobjs=
13413 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13414 # 1. Remove the extension, and $U if already installed.
13415 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13416 ac_i=`echo "$ac_i" | sed "$ac_script"`
13417 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13418 # will be set to the directory where LIBOBJS objects are built.
13419 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13420 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13421 done
13422 LIBOBJS=$ac_libobjs
13424 LTLIBOBJS=$ac_ltlibobjs
13428 : ${CONFIG_STATUS=./config.status}
13429 ac_clean_files_save=$ac_clean_files
13430 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13431 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13432 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13433 cat >$CONFIG_STATUS <<_ACEOF
13434 #! $SHELL
13435 # Generated by $as_me.
13436 # Run this file to recreate the current configuration.
13437 # Compiler output produced by configure, useful for debugging
13438 # configure, is in config.log if it exists.
13440 debug=false
13441 ac_cs_recheck=false
13442 ac_cs_silent=false
13443 SHELL=\${CONFIG_SHELL-$SHELL}
13444 _ACEOF
13446 cat >>$CONFIG_STATUS <<\_ACEOF
13447 ## --------------------- ##
13448 ## M4sh Initialization. ##
13449 ## --------------------- ##
13451 # Be more Bourne compatible
13452 DUALCASE=1; export DUALCASE # for MKS sh
13453 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13454 emulate sh
13455 NULLCMD=:
13456 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13457 # is contrary to our usage. Disable this feature.
13458 alias -g '${1+"$@"}'='"$@"'
13459 setopt NO_GLOB_SUBST
13460 else
13461 case `(set -o) 2>/dev/null` in
13462 *posix*) set -o posix ;;
13463 esac
13470 # PATH needs CR
13471 # Avoid depending upon Character Ranges.
13472 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13473 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13474 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13475 as_cr_digits='0123456789'
13476 as_cr_alnum=$as_cr_Letters$as_cr_digits
13478 # The user is always right.
13479 if test "${PATH_SEPARATOR+set}" != set; then
13480 echo "#! /bin/sh" >conf$$.sh
13481 echo "exit 0" >>conf$$.sh
13482 chmod +x conf$$.sh
13483 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13484 PATH_SEPARATOR=';'
13485 else
13486 PATH_SEPARATOR=:
13488 rm -f conf$$.sh
13491 # Support unset when possible.
13492 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13493 as_unset=unset
13494 else
13495 as_unset=false
13499 # IFS
13500 # We need space, tab and new line, in precisely that order. Quoting is
13501 # there to prevent editors from complaining about space-tab.
13502 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13503 # splitting by setting IFS to empty value.)
13504 as_nl='
13506 IFS=" "" $as_nl"
13508 # Find who we are. Look in the path if we contain no directory separator.
13509 case $0 in
13510 *[\\/]* ) as_myself=$0 ;;
13511 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512 for as_dir in $PATH
13514 IFS=$as_save_IFS
13515 test -z "$as_dir" && as_dir=.
13516 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13517 done
13518 IFS=$as_save_IFS
13521 esac
13522 # We did not find ourselves, most probably we were run as `sh COMMAND'
13523 # in which case we are not to be found in the path.
13524 if test "x$as_myself" = x; then
13525 as_myself=$0
13527 if test ! -f "$as_myself"; then
13528 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13529 { (exit 1); exit 1; }
13532 # Work around bugs in pre-3.0 UWIN ksh.
13533 for as_var in ENV MAIL MAILPATH
13534 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13535 done
13536 PS1='$ '
13537 PS2='> '
13538 PS4='+ '
13540 # NLS nuisances.
13541 for as_var in \
13542 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13543 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13544 LC_TELEPHONE LC_TIME
13546 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13547 eval $as_var=C; export $as_var
13548 else
13549 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13551 done
13553 # Required to use basename.
13554 if expr a : '\(a\)' >/dev/null 2>&1 &&
13555 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13556 as_expr=expr
13557 else
13558 as_expr=false
13561 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13562 as_basename=basename
13563 else
13564 as_basename=false
13568 # Name of the executable.
13569 as_me=`$as_basename -- "$0" ||
13570 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13571 X"$0" : 'X\(//\)$' \| \
13572 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13573 echo X/"$0" |
13574 sed '/^.*\/\([^/][^/]*\)\/*$/{
13575 s//\1/
13578 /^X\/\(\/\/\)$/{
13579 s//\1/
13582 /^X\/\(\/\).*/{
13583 s//\1/
13586 s/.*/./; q'`
13588 # CDPATH.
13589 $as_unset CDPATH
13593 as_lineno_1=$LINENO
13594 as_lineno_2=$LINENO
13595 test "x$as_lineno_1" != "x$as_lineno_2" &&
13596 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13598 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13599 # uniformly replaced by the line number. The first 'sed' inserts a
13600 # line-number line after each line using $LINENO; the second 'sed'
13601 # does the real work. The second script uses 'N' to pair each
13602 # line-number line with the line containing $LINENO, and appends
13603 # trailing '-' during substitution so that $LINENO is not a special
13604 # case at line end.
13605 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13606 # scripts with optimization help from Paolo Bonzini. Blame Lee
13607 # E. McMahon (1931-1989) for sed's syntax. :-)
13608 sed -n '
13610 /[$]LINENO/=
13611 ' <$as_myself |
13612 sed '
13613 s/[$]LINENO.*/&-/
13614 t lineno
13616 :lineno
13618 :loop
13619 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13620 t loop
13621 s/-\n.*//
13622 ' >$as_me.lineno &&
13623 chmod +x "$as_me.lineno" ||
13624 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13625 { (exit 1); exit 1; }; }
13627 # Don't try to exec as it changes $[0], causing all sort of problems
13628 # (the dirname of $[0] is not the place where we might find the
13629 # original and so on. Autoconf is especially sensitive to this).
13630 . "./$as_me.lineno"
13631 # Exit status is that of the last command.
13632 exit
13636 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13637 as_dirname=dirname
13638 else
13639 as_dirname=false
13642 ECHO_C= ECHO_N= ECHO_T=
13643 case `echo -n x` in
13644 -n*)
13645 case `echo 'x\c'` in
13646 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13647 *) ECHO_C='\c';;
13648 esac;;
13650 ECHO_N='-n';;
13651 esac
13653 if expr a : '\(a\)' >/dev/null 2>&1 &&
13654 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13655 as_expr=expr
13656 else
13657 as_expr=false
13660 rm -f conf$$ conf$$.exe conf$$.file
13661 if test -d conf$$.dir; then
13662 rm -f conf$$.dir/conf$$.file
13663 else
13664 rm -f conf$$.dir
13665 mkdir conf$$.dir
13667 echo >conf$$.file
13668 if ln -s conf$$.file conf$$ 2>/dev/null; then
13669 as_ln_s='ln -s'
13670 # ... but there are two gotchas:
13671 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13672 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13673 # In both cases, we have to default to `cp -p'.
13674 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13675 as_ln_s='cp -p'
13676 elif ln conf$$.file conf$$ 2>/dev/null; then
13677 as_ln_s=ln
13678 else
13679 as_ln_s='cp -p'
13681 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13682 rmdir conf$$.dir 2>/dev/null
13684 if mkdir -p . 2>/dev/null; then
13685 as_mkdir_p=:
13686 else
13687 test -d ./-p && rmdir ./-p
13688 as_mkdir_p=false
13691 if test -x / >/dev/null 2>&1; then
13692 as_test_x='test -x'
13693 else
13694 if ls -dL / >/dev/null 2>&1; then
13695 as_ls_L_option=L
13696 else
13697 as_ls_L_option=
13699 as_test_x='
13700 eval sh -c '\''
13701 if test -d "$1"; then
13702 test -d "$1/.";
13703 else
13704 case $1 in
13705 -*)set "./$1";;
13706 esac;
13707 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13708 ???[sx]*):;;*)false;;esac;fi
13709 '\'' sh
13712 as_executable_p=$as_test_x
13714 # Sed expression to map a string onto a valid CPP name.
13715 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13717 # Sed expression to map a string onto a valid variable name.
13718 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13721 exec 6>&1
13723 # Save the log message, to keep $[0] and so on meaningful, and to
13724 # report actual input values of CONFIG_FILES etc. instead of their
13725 # values after options handling.
13726 ac_log="
13727 This file was extended by $as_me, which was
13728 generated by GNU Autoconf 2.61. Invocation command line was
13730 CONFIG_FILES = $CONFIG_FILES
13731 CONFIG_HEADERS = $CONFIG_HEADERS
13732 CONFIG_LINKS = $CONFIG_LINKS
13733 CONFIG_COMMANDS = $CONFIG_COMMANDS
13734 $ $0 $@
13736 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13739 _ACEOF
13741 cat >>$CONFIG_STATUS <<_ACEOF
13742 # Files that config.status was made for.
13743 config_files="$ac_config_files"
13744 config_headers="$ac_config_headers"
13745 config_commands="$ac_config_commands"
13747 _ACEOF
13749 cat >>$CONFIG_STATUS <<\_ACEOF
13750 ac_cs_usage="\
13751 \`$as_me' instantiates files from templates according to the
13752 current configuration.
13754 Usage: $0 [OPTIONS] [FILE]...
13756 -h, --help print this help, then exit
13757 -V, --version print version number and configuration settings, then exit
13758 -q, --quiet do not print progress messages
13759 -d, --debug don't remove temporary files
13760 --recheck update $as_me by reconfiguring in the same conditions
13761 --file=FILE[:TEMPLATE]
13762 instantiate the configuration file FILE
13763 --header=FILE[:TEMPLATE]
13764 instantiate the configuration header FILE
13766 Configuration files:
13767 $config_files
13769 Configuration headers:
13770 $config_headers
13772 Configuration commands:
13773 $config_commands
13775 Report bugs to <bug-autoconf@gnu.org>."
13777 _ACEOF
13778 cat >>$CONFIG_STATUS <<_ACEOF
13779 ac_cs_version="\\
13780 config.status
13781 configured by $0, generated by GNU Autoconf 2.61,
13782 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13784 Copyright (C) 2006 Free Software Foundation, Inc.
13785 This config.status script is free software; the Free Software Foundation
13786 gives unlimited permission to copy, distribute and modify it."
13788 ac_pwd='$ac_pwd'
13789 srcdir='$srcdir'
13790 _ACEOF
13792 cat >>$CONFIG_STATUS <<\_ACEOF
13793 # If no file are specified by the user, then we need to provide default
13794 # value. By we need to know if files were specified by the user.
13795 ac_need_defaults=:
13796 while test $# != 0
13798 case $1 in
13799 --*=*)
13800 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13801 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13802 ac_shift=:
13805 ac_option=$1
13806 ac_optarg=$2
13807 ac_shift=shift
13809 esac
13811 case $ac_option in
13812 # Handling of the options.
13813 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13814 ac_cs_recheck=: ;;
13815 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13816 echo "$ac_cs_version"; exit ;;
13817 --debug | --debu | --deb | --de | --d | -d )
13818 debug=: ;;
13819 --file | --fil | --fi | --f )
13820 $ac_shift
13821 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13822 ac_need_defaults=false;;
13823 --header | --heade | --head | --hea )
13824 $ac_shift
13825 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13826 ac_need_defaults=false;;
13827 --he | --h)
13828 # Conflict between --help and --header
13829 { echo "$as_me: error: ambiguous option: $1
13830 Try \`$0 --help' for more information." >&2
13831 { (exit 1); exit 1; }; };;
13832 --help | --hel | -h )
13833 echo "$ac_cs_usage"; exit ;;
13834 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13835 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13836 ac_cs_silent=: ;;
13838 # This is an error.
13839 -*) { echo "$as_me: error: unrecognized option: $1
13840 Try \`$0 --help' for more information." >&2
13841 { (exit 1); exit 1; }; } ;;
13843 *) ac_config_targets="$ac_config_targets $1"
13844 ac_need_defaults=false ;;
13846 esac
13847 shift
13848 done
13850 ac_configure_extra_args=
13852 if $ac_cs_silent; then
13853 exec 6>/dev/null
13854 ac_configure_extra_args="$ac_configure_extra_args --silent"
13857 _ACEOF
13858 cat >>$CONFIG_STATUS <<_ACEOF
13859 if \$ac_cs_recheck; then
13860 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13861 CONFIG_SHELL=$SHELL
13862 export CONFIG_SHELL
13863 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13866 _ACEOF
13867 cat >>$CONFIG_STATUS <<\_ACEOF
13868 exec 5>>config.log
13870 echo
13871 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13872 ## Running $as_me. ##
13873 _ASBOX
13874 echo "$ac_log"
13875 } >&5
13877 _ACEOF
13878 cat >>$CONFIG_STATUS <<_ACEOF
13880 # INIT-COMMANDS
13883 aros_host_exe_suffix=${aros_host_exe_suffix}
13884 aros_tools_dir=${aros_tools_dir}
13885 aros_target_cpu=${aros_target_cpu}
13886 aros_target_arch=${aros_target_arch}
13887 aros_target_suffix=${aros_target_suffix}
13888 aros_target_nm_ln=${aros_target_nm_ln}
13889 aros_target_as_ln=${aros_target_as_ln}
13890 aros_target_ar_ln=${aros_target_ar_ln}
13891 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13892 aros_target_objdump_ln=${aros_target_objdump_ln}
13893 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13894 aros_target_strip_ln=${aros_target_strip_ln}
13897 aros_scripts_dir=${aros_scripts_dir}
13899 aros_tools_dir=${aros_tools_dir}
13902 _ACEOF
13904 cat >>$CONFIG_STATUS <<\_ACEOF
13906 # Handling of arguments.
13907 for ac_config_target in $ac_config_targets
13909 case $ac_config_target in
13910 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13911 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13912 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13913 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13914 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13915 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13916 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13917 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13918 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13919 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13920 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13921 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13922 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13923 "${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" ;;
13924 "${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" ;;
13925 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/library_template_c/source/lib_source/genshared.in" ;;
13926 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13927 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13928 "${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" ;;
13930 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13931 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13932 { (exit 1); exit 1; }; };;
13933 esac
13934 done
13937 # If the user did not use the arguments to specify the items to instantiate,
13938 # then the envvar interface is used. Set only those that are not.
13939 # We use the long form for the default assignment because of an extremely
13940 # bizarre bug on SunOS 4.1.3.
13941 if $ac_need_defaults; then
13942 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13943 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13944 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13947 # Have a temporary directory for convenience. Make it in the build tree
13948 # simply because there is no reason against having it here, and in addition,
13949 # creating and moving files from /tmp can sometimes cause problems.
13950 # Hook for its removal unless debugging.
13951 # Note that there is a small window in which the directory will not be cleaned:
13952 # after its creation but before its name has been assigned to `$tmp'.
13953 $debug ||
13955 tmp=
13956 trap 'exit_status=$?
13957 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13959 trap '{ (exit 1); exit 1; }' 1 2 13 15
13961 # Create a (secure) tmp directory for tmp files.
13964 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13965 test -n "$tmp" && test -d "$tmp"
13966 } ||
13968 tmp=./conf$$-$RANDOM
13969 (umask 077 && mkdir "$tmp")
13970 } ||
13972 echo "$me: cannot create a temporary directory in ." >&2
13973 { (exit 1); exit 1; }
13977 # Set up the sed scripts for CONFIG_FILES section.
13980 # No need to generate the scripts if there are no CONFIG_FILES.
13981 # This happens for instance when ./config.status config.h
13982 if test -n "$CONFIG_FILES"; then
13984 _ACEOF
13988 ac_delim='%!_!# '
13989 for ac_last_try in false false false false false :; do
13990 cat >conf$$subs.sed <<_ACEOF
13991 SHELL!$SHELL$ac_delim
13992 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13993 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13994 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13995 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13996 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13997 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13998 exec_prefix!$exec_prefix$ac_delim
13999 prefix!$prefix$ac_delim
14000 program_transform_name!$program_transform_name$ac_delim
14001 bindir!$bindir$ac_delim
14002 sbindir!$sbindir$ac_delim
14003 libexecdir!$libexecdir$ac_delim
14004 datarootdir!$datarootdir$ac_delim
14005 datadir!$datadir$ac_delim
14006 sysconfdir!$sysconfdir$ac_delim
14007 sharedstatedir!$sharedstatedir$ac_delim
14008 localstatedir!$localstatedir$ac_delim
14009 includedir!$includedir$ac_delim
14010 oldincludedir!$oldincludedir$ac_delim
14011 docdir!$docdir$ac_delim
14012 infodir!$infodir$ac_delim
14013 htmldir!$htmldir$ac_delim
14014 dvidir!$dvidir$ac_delim
14015 pdfdir!$pdfdir$ac_delim
14016 psdir!$psdir$ac_delim
14017 libdir!$libdir$ac_delim
14018 localedir!$localedir$ac_delim
14019 mandir!$mandir$ac_delim
14020 DEFS!$DEFS$ac_delim
14021 ECHO_C!$ECHO_C$ac_delim
14022 ECHO_N!$ECHO_N$ac_delim
14023 ECHO_T!$ECHO_T$ac_delim
14024 LIBS!$LIBS$ac_delim
14025 build_alias!$build_alias$ac_delim
14026 host_alias!$host_alias$ac_delim
14027 target_alias!$target_alias$ac_delim
14028 build!$build$ac_delim
14029 build_cpu!$build_cpu$ac_delim
14030 build_vendor!$build_vendor$ac_delim
14031 build_os!$build_os$ac_delim
14032 host!$host$ac_delim
14033 host_cpu!$host_cpu$ac_delim
14034 host_vendor!$host_vendor$ac_delim
14035 host_os!$host_os$ac_delim
14036 CC!$CC$ac_delim
14037 CFLAGS!$CFLAGS$ac_delim
14038 LDFLAGS!$LDFLAGS$ac_delim
14039 CPPFLAGS!$CPPFLAGS$ac_delim
14040 ac_ct_CC!$ac_ct_CC$ac_delim
14041 EXEEXT!$EXEEXT$ac_delim
14042 OBJEXT!$OBJEXT$ac_delim
14043 CPP!$CPP$ac_delim
14044 AWK!$AWK$ac_delim
14045 MMAKE!$MMAKE$ac_delim
14046 aros_host_ld!$aros_host_ld$ac_delim
14047 aros_host_aclocal!$aros_host_aclocal$ac_delim
14048 aros_host_autoconf!$aros_host_autoconf$ac_delim
14049 aros_host_autoheader!$aros_host_autoheader$ac_delim
14050 aros_host_automake!$aros_host_automake$ac_delim
14051 aros_host_ar!$aros_host_ar$ac_delim
14052 aros_host_ranlib!$aros_host_ranlib$ac_delim
14053 aros_host_strip!$aros_host_strip$ac_delim
14054 RM!$RM$ac_delim
14055 CP!$CP$ac_delim
14056 MV!$MV$ac_delim
14057 ECHO!$ECHO$ac_delim
14058 MKDIR!$MKDIR$ac_delim
14059 TOUCH!$TOUCH$ac_delim
14060 SORT!$SORT$ac_delim
14061 UNIQ!$UNIQ$ac_delim
14062 NOP!$NOP$ac_delim
14063 CAT!$CAT$ac_delim
14064 BISON!$BISON$ac_delim
14065 FLEX!$FLEX$ac_delim
14066 PNGTOPNM!$PNGTOPNM$ac_delim
14067 PPMTOILBM!$PPMTOILBM$ac_delim
14068 SED!$SED$ac_delim
14069 CHMOD!$CHMOD$ac_delim
14070 PYTHON!$PYTHON$ac_delim
14071 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
14072 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
14073 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
14074 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
14075 pythondir!$pythondir$ac_delim
14076 pkgpythondir!$pkgpythondir$ac_delim
14077 pyexecdir!$pyexecdir$ac_delim
14078 pkgpyexecdir!$pkgpyexecdir$ac_delim
14079 FOR!$FOR$ac_delim
14080 IF!$IF$ac_delim
14081 TEST!$TEST$ac_delim
14082 CMP!$CMP$ac_delim
14083 GREP!$GREP$ac_delim
14084 EGREP!$EGREP$ac_delim
14085 LIBOBJS!$LIBOBJS$ac_delim
14086 DISTCC!$DISTCC$ac_delim
14087 CCACHE!$CCACHE$ac_delim
14088 _ACEOF
14090 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14091 break
14092 elif $ac_last_try; then
14093 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14094 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14095 { (exit 1); exit 1; }; }
14096 else
14097 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14099 done
14101 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14102 if test -n "$ac_eof"; then
14103 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14104 ac_eof=`expr $ac_eof + 1`
14107 cat >>$CONFIG_STATUS <<_ACEOF
14108 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14109 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14110 _ACEOF
14111 sed '
14112 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14113 s/^/s,@/; s/!/@,|#_!!_#|/
14116 s/'"$ac_delim"'$/,g/; t
14117 s/$/\\/; p
14118 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14119 ' >>$CONFIG_STATUS <conf$$subs.sed
14120 rm -f conf$$subs.sed
14121 cat >>$CONFIG_STATUS <<_ACEOF
14122 CEOF$ac_eof
14123 _ACEOF
14126 ac_delim='%!_!# '
14127 for ac_last_try in false false false false false :; do
14128 cat >conf$$subs.sed <<_ACEOF
14129 android_tool!$android_tool$ac_delim
14130 aros_target_cc!$aros_target_cc$ac_delim
14131 aros_target_ld!$aros_target_ld$ac_delim
14132 aros_target_as_ln!$aros_target_as_ln$ac_delim
14133 aros_kernel_ld!$aros_kernel_ld$ac_delim
14134 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
14135 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
14136 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
14137 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
14138 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
14139 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
14140 aros_target_cxx!$aros_target_cxx$ac_delim
14141 aros_kernel_rescomp!$aros_kernel_rescomp$ac_delim
14142 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
14143 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
14144 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
14145 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
14146 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
14147 host_cflags_iquote!$host_cflags_iquote$ac_delim
14148 host_cflags_iquote_end!$host_cflags_iquote_end$ac_delim
14149 kernel_cflags_iquote!$kernel_cflags_iquote$ac_delim
14150 kernel_cflags_iquote_end!$kernel_cflags_iquote_end$ac_delim
14151 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
14152 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
14153 XMKMF!$XMKMF$ac_delim
14154 SDL_CONFIG!$SDL_CONFIG$ac_delim
14155 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
14156 SDL_LIBS!$SDL_LIBS$ac_delim
14157 aros_arch!$aros_arch$ac_delim
14158 aros_cpu!$aros_cpu$ac_delim
14159 aros_flavour!$aros_flavour$ac_delim
14160 aros_flavour_uc!$aros_flavour_uc$ac_delim
14161 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
14162 AROS_BUILDDIR_UNIX!$AROS_BUILDDIR_UNIX$ac_delim
14163 SRCDIR!$SRCDIR$ac_delim
14164 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
14165 aros_cc_pre!$aros_cc_pre$ac_delim
14166 aros_host_arch!$aros_host_arch$ac_delim
14167 aros_host_cpu!$aros_host_cpu$ac_delim
14168 aros_host_cc!$aros_host_cc$ac_delim
14169 aros_host_make!$aros_host_make$ac_delim
14170 aros_host_cflags!$aros_host_cflags$ac_delim
14171 gnu89_inline!$gnu89_inline$ac_delim
14172 aros_host_ldflags!$aros_host_ldflags$ac_delim
14173 aros_host_debug!$aros_host_debug$ac_delim
14174 aros_host_mkdep!$aros_host_mkdep$ac_delim
14175 aros_host_mkargs!$aros_host_mkargs$ac_delim
14176 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
14177 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
14178 aros_tools_dir!$aros_tools_dir$ac_delim
14179 aros_target_guitheme!$aros_target_guitheme$ac_delim
14180 aros_target_iconset!$aros_target_iconset$ac_delim
14181 aros_target_bootloader!$aros_target_bootloader$ac_delim
14182 aros_target_arch!$aros_target_arch$ac_delim
14183 aros_target_family!$aros_target_family$ac_delim
14184 aros_target_cpu!$aros_target_cpu$ac_delim
14185 aros_target_variant!$aros_target_variant$ac_delim
14186 aros_target_suffix!$aros_target_suffix$ac_delim
14187 aros_target_incl!$aros_target_incl$ac_delim
14188 aros_target_ar!$aros_target_ar$ac_delim
14189 aros_target_ranlib!$aros_target_ranlib$ac_delim
14190 aros_kernel_nm!$aros_kernel_nm$ac_delim
14191 orig_target_cc!$orig_target_cc$ac_delim
14192 aros_kernel_cc!$aros_kernel_cc$ac_delim
14193 aros_target_as!$aros_target_as$ac_delim
14194 orig_target_ld!$orig_target_ld$ac_delim
14195 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
14196 aros_target_cc_path!$aros_target_cc_path$ac_delim
14197 aros_target_objdump!$aros_target_objdump$ac_delim
14198 aros_target_objcopy!$aros_target_objcopy$ac_delim
14199 aros_target_strip!$aros_target_strip$ac_delim
14200 aros_target_nm!$aros_target_nm$ac_delim
14201 aros_shared_default!$aros_shared_default$ac_delim
14202 aros_shared_ld!$aros_shared_ld$ac_delim
14203 aros_object_format!$aros_object_format$ac_delim
14204 aros_compiler_libs!$aros_compiler_libs$ac_delim
14205 aros_arch_libs!$aros_arch_libs$ac_delim
14206 aros_config_cflags!$aros_config_cflags$ac_delim
14207 aros_config_aflags!$aros_config_aflags$ac_delim
14208 aros_config_ldflags!$aros_config_ldflags$ac_delim
14209 aros_shared_cflags!$aros_shared_cflags$ac_delim
14210 aros_shared_aflags!$aros_shared_aflags$ac_delim
14211 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
14212 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
14213 aros_kernel_includes!$aros_kernel_includes$ac_delim
14214 aros_kernel_objcflags!$aros_kernel_objcflags$ac_delim
14215 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
14216 aros_debug_cflags!$aros_debug_cflags$ac_delim
14217 aros_debug_aflags!$aros_debug_aflags$ac_delim
14218 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
14219 aros_paranoia_cflags!$aros_paranoia_cflags$ac_delim
14220 aros_target_genmap!$aros_target_genmap$ac_delim
14221 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
14222 crosstools_target!$crosstools_target$ac_delim
14223 x11_hidd_target!$x11_hidd_target$ac_delim
14224 sdl_hidd_target!$sdl_hidd_target$ac_delim
14225 pci_hidd_target!$pci_hidd_target$ac_delim
14226 _ACEOF
14228 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14229 break
14230 elif $ac_last_try; then
14231 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14232 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14233 { (exit 1); exit 1; }; }
14234 else
14235 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14237 done
14239 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14240 if test -n "$ac_eof"; then
14241 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14242 ac_eof=`expr $ac_eof + 1`
14245 cat >>$CONFIG_STATUS <<_ACEOF
14246 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14247 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14248 _ACEOF
14249 sed '
14250 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14251 s/^/s,@/; s/!/@,|#_!!_#|/
14254 s/'"$ac_delim"'$/,g/; t
14255 s/$/\\/; p
14256 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14257 ' >>$CONFIG_STATUS <conf$$subs.sed
14258 rm -f conf$$subs.sed
14259 cat >>$CONFIG_STATUS <<_ACEOF
14260 CEOF$ac_eof
14261 _ACEOF
14264 ac_delim='%!_!# '
14265 for ac_last_try in false false false false false :; do
14266 cat >conf$$subs.sed <<_ACEOF
14267 oss_library_target!$oss_library_target$ac_delim
14268 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
14269 aros_default_wbheight!$aros_default_wbheight$ac_delim
14270 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
14271 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
14272 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
14273 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
14274 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
14275 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
14276 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
14277 aros_serial_debug!$aros_serial_debug$ac_delim
14278 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
14279 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
14280 aros_enable_mmu!$aros_enable_mmu$ac_delim
14281 aros_ios_platform!$aros_ios_platform$ac_delim
14282 aros_ios_version!$aros_ios_version$ac_delim
14283 aros_ios_sdk!$aros_ios_sdk$ac_delim
14284 aros_android_level!$aros_android_level$ac_delim
14285 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
14286 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
14287 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
14288 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
14289 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
14290 ENABLE_X11!$ENABLE_X11$ac_delim
14291 aros_debug!$aros_debug$ac_delim
14292 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
14293 aros_stack_debug!$aros_stack_debug$ac_delim
14294 aros_modules_debug!$aros_modules_debug$ac_delim
14295 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
14296 gcc_target_cpu!$gcc_target_cpu$ac_delim
14297 LTLIBOBJS!$LTLIBOBJS$ac_delim
14298 _ACEOF
14300 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
14301 break
14302 elif $ac_last_try; then
14303 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14304 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14305 { (exit 1); exit 1; }; }
14306 else
14307 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14309 done
14311 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14312 if test -n "$ac_eof"; then
14313 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14314 ac_eof=`expr $ac_eof + 1`
14317 cat >>$CONFIG_STATUS <<_ACEOF
14318 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
14319 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14320 _ACEOF
14321 sed '
14322 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14323 s/^/s,@/; s/!/@,|#_!!_#|/
14326 s/'"$ac_delim"'$/,g/; t
14327 s/$/\\/; p
14328 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14329 ' >>$CONFIG_STATUS <conf$$subs.sed
14330 rm -f conf$$subs.sed
14331 cat >>$CONFIG_STATUS <<_ACEOF
14332 :end
14333 s/|#_!!_#|//g
14334 CEOF$ac_eof
14335 _ACEOF
14338 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14339 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14340 # trailing colons and then remove the whole line if VPATH becomes empty
14341 # (actually we leave an empty line to preserve line numbers).
14342 if test "x$srcdir" = x.; then
14343 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14344 s/:*\$(srcdir):*/:/
14345 s/:*\${srcdir}:*/:/
14346 s/:*@srcdir@:*/:/
14347 s/^\([^=]*=[ ]*\):*/\1/
14348 s/:*$//
14349 s/^[^=]*=[ ]*$//
14353 cat >>$CONFIG_STATUS <<\_ACEOF
14354 fi # test -n "$CONFIG_FILES"
14357 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
14359 case $ac_tag in
14360 :[FHLC]) ac_mode=$ac_tag; continue;;
14361 esac
14362 case $ac_mode$ac_tag in
14363 :[FHL]*:*);;
14364 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14365 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14366 { (exit 1); exit 1; }; };;
14367 :[FH]-) ac_tag=-:-;;
14368 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14369 esac
14370 ac_save_IFS=$IFS
14371 IFS=:
14372 set x $ac_tag
14373 IFS=$ac_save_IFS
14374 shift
14375 ac_file=$1
14376 shift
14378 case $ac_mode in
14379 :L) ac_source=$1;;
14380 :[FH])
14381 ac_file_inputs=
14382 for ac_f
14384 case $ac_f in
14385 -) ac_f="$tmp/stdin";;
14386 *) # Look for the file first in the build tree, then in the source tree
14387 # (if the path is not absolute). The absolute path cannot be DOS-style,
14388 # because $ac_f cannot contain `:'.
14389 test -f "$ac_f" ||
14390 case $ac_f in
14391 [\\/$]*) false;;
14392 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14393 esac ||
14394 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14395 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14396 { (exit 1); exit 1; }; };;
14397 esac
14398 ac_file_inputs="$ac_file_inputs $ac_f"
14399 done
14401 # Let's still pretend it is `configure' which instantiates (i.e., don't
14402 # use $as_me), people would be surprised to read:
14403 # /* config.h. Generated by config.status. */
14404 configure_input="Generated from "`IFS=:
14405 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14406 if test x"$ac_file" != x-; then
14407 configure_input="$ac_file. $configure_input"
14408 { echo "$as_me:$LINENO: creating $ac_file" >&5
14409 echo "$as_me: creating $ac_file" >&6;}
14412 case $ac_tag in
14413 *:-:* | *:-) cat >"$tmp/stdin";;
14414 esac
14416 esac
14418 ac_dir=`$as_dirname -- "$ac_file" ||
14419 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14420 X"$ac_file" : 'X\(//\)[^/]' \| \
14421 X"$ac_file" : 'X\(//\)$' \| \
14422 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14423 echo X"$ac_file" |
14424 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14425 s//\1/
14428 /^X\(\/\/\)[^/].*/{
14429 s//\1/
14432 /^X\(\/\/\)$/{
14433 s//\1/
14436 /^X\(\/\).*/{
14437 s//\1/
14440 s/.*/./; q'`
14441 { as_dir="$ac_dir"
14442 case $as_dir in #(
14443 -*) as_dir=./$as_dir;;
14444 esac
14445 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14446 as_dirs=
14447 while :; do
14448 case $as_dir in #(
14449 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14450 *) as_qdir=$as_dir;;
14451 esac
14452 as_dirs="'$as_qdir' $as_dirs"
14453 as_dir=`$as_dirname -- "$as_dir" ||
14454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14455 X"$as_dir" : 'X\(//\)[^/]' \| \
14456 X"$as_dir" : 'X\(//\)$' \| \
14457 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14458 echo X"$as_dir" |
14459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14460 s//\1/
14463 /^X\(\/\/\)[^/].*/{
14464 s//\1/
14467 /^X\(\/\/\)$/{
14468 s//\1/
14471 /^X\(\/\).*/{
14472 s//\1/
14475 s/.*/./; q'`
14476 test -d "$as_dir" && break
14477 done
14478 test -z "$as_dirs" || eval "mkdir $as_dirs"
14479 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14480 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14481 { (exit 1); exit 1; }; }; }
14482 ac_builddir=.
14484 case "$ac_dir" in
14485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14487 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14488 # A ".." for each directory in $ac_dir_suffix.
14489 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14490 case $ac_top_builddir_sub in
14491 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14492 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14493 esac ;;
14494 esac
14495 ac_abs_top_builddir=$ac_pwd
14496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14497 # for backward compatibility:
14498 ac_top_builddir=$ac_top_build_prefix
14500 case $srcdir in
14501 .) # We are building in place.
14502 ac_srcdir=.
14503 ac_top_srcdir=$ac_top_builddir_sub
14504 ac_abs_top_srcdir=$ac_pwd ;;
14505 [\\/]* | ?:[\\/]* ) # Absolute name.
14506 ac_srcdir=$srcdir$ac_dir_suffix;
14507 ac_top_srcdir=$srcdir
14508 ac_abs_top_srcdir=$srcdir ;;
14509 *) # Relative name.
14510 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14511 ac_top_srcdir=$ac_top_build_prefix$srcdir
14512 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14513 esac
14514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14517 case $ac_mode in
14520 # CONFIG_FILE
14523 _ACEOF
14525 cat >>$CONFIG_STATUS <<\_ACEOF
14526 # If the template does not know about datarootdir, expand it.
14527 # FIXME: This hack should be removed a few years after 2.60.
14528 ac_datarootdir_hack=; ac_datarootdir_seen=
14530 case `sed -n '/datarootdir/ {
14534 /@datadir@/p
14535 /@docdir@/p
14536 /@infodir@/p
14537 /@localedir@/p
14538 /@mandir@/p
14539 ' $ac_file_inputs` in
14540 *datarootdir*) ac_datarootdir_seen=yes;;
14541 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14542 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14543 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14544 _ACEOF
14545 cat >>$CONFIG_STATUS <<_ACEOF
14546 ac_datarootdir_hack='
14547 s&@datadir@&$datadir&g
14548 s&@docdir@&$docdir&g
14549 s&@infodir@&$infodir&g
14550 s&@localedir@&$localedir&g
14551 s&@mandir@&$mandir&g
14552 s&\\\${datarootdir}&$datarootdir&g' ;;
14553 esac
14554 _ACEOF
14556 # Neutralize VPATH when `$srcdir' = `.'.
14557 # Shell code in configure.ac might set extrasub.
14558 # FIXME: do we really want to maintain this feature?
14559 cat >>$CONFIG_STATUS <<_ACEOF
14560 sed "$ac_vpsub
14561 $extrasub
14562 _ACEOF
14563 cat >>$CONFIG_STATUS <<\_ACEOF
14565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14566 s&@configure_input@&$configure_input&;t t
14567 s&@top_builddir@&$ac_top_builddir_sub&;t t
14568 s&@srcdir@&$ac_srcdir&;t t
14569 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14570 s&@top_srcdir@&$ac_top_srcdir&;t t
14571 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14572 s&@builddir@&$ac_builddir&;t t
14573 s&@abs_builddir@&$ac_abs_builddir&;t t
14574 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14575 $ac_datarootdir_hack
14576 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
14578 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14579 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14580 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14581 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14582 which seems to be undefined. Please make sure it is defined." >&5
14583 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14584 which seems to be undefined. Please make sure it is defined." >&2;}
14586 rm -f "$tmp/stdin"
14587 case $ac_file in
14588 -) cat "$tmp/out"; rm -f "$tmp/out";;
14589 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14590 esac
14594 # CONFIG_HEADER
14596 _ACEOF
14598 # Transform confdefs.h into a sed script `conftest.defines', that
14599 # substitutes the proper values into config.h.in to produce config.h.
14600 rm -f conftest.defines conftest.tail
14601 # First, append a space to every undef/define line, to ease matching.
14602 echo 's/$/ /' >conftest.defines
14603 # Then, protect against being on the right side of a sed subst, or in
14604 # an unquoted here document, in config.status. If some macros were
14605 # called several times there might be several #defines for the same
14606 # symbol, which is useless. But do not sort them, since the last
14607 # AC_DEFINE must be honored.
14608 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14609 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14610 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14611 # PARAMS is the parameter list in the macro definition--in most cases, it's
14612 # just an empty string.
14613 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14614 ac_dB='\\)[ (].*,\\1define\\2'
14615 ac_dC=' '
14616 ac_dD=' ,'
14618 uniq confdefs.h |
14619 sed -n '
14620 t rset
14621 :rset
14622 s/^[ ]*#[ ]*define[ ][ ]*//
14623 t ok
14626 s/[\\&,]/\\&/g
14627 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14628 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14629 ' >>conftest.defines
14631 # Remove the space that was appended to ease matching.
14632 # Then replace #undef with comments. This is necessary, for
14633 # example, in the case of _POSIX_SOURCE, which is predefined and required
14634 # on some systems where configure will not decide to define it.
14635 # (The regexp can be short, since the line contains either #define or #undef.)
14636 echo 's/ $//
14637 s,^[ #]*u.*,/* & */,' >>conftest.defines
14639 # Break up conftest.defines:
14640 ac_max_sed_lines=50
14642 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14643 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14644 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14645 # et cetera.
14646 ac_in='$ac_file_inputs'
14647 ac_out='"$tmp/out1"'
14648 ac_nxt='"$tmp/out2"'
14650 while :
14652 # Write a here document:
14653 cat >>$CONFIG_STATUS <<_ACEOF
14654 # First, check the format of the line:
14655 cat >"\$tmp/defines.sed" <<\\CEOF
14656 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14657 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14659 :def
14660 _ACEOF
14661 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14662 echo 'CEOF
14663 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14664 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14665 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14666 grep . conftest.tail >/dev/null || break
14667 rm -f conftest.defines
14668 mv conftest.tail conftest.defines
14669 done
14670 rm -f conftest.defines conftest.tail
14672 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14673 cat >>$CONFIG_STATUS <<\_ACEOF
14674 if test x"$ac_file" != x-; then
14675 echo "/* $configure_input */" >"$tmp/config.h"
14676 cat "$ac_result" >>"$tmp/config.h"
14677 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14678 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14679 echo "$as_me: $ac_file is unchanged" >&6;}
14680 else
14681 rm -f $ac_file
14682 mv "$tmp/config.h" $ac_file
14684 else
14685 echo "/* $configure_input */"
14686 cat "$ac_result"
14688 rm -f "$tmp/out12"
14691 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14692 echo "$as_me: executing $ac_file commands" >&6;}
14694 esac
14697 case $ac_file$ac_mode in
14698 "compiler_executable":C)
14699 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14700 mkdir -p $prefix
14701 prefix="${prefix}/${aros_target_cpu}-aros"
14702 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14704 echo ${prefix}
14705 echo ${prefix2}
14706 chmod a+x ${prefix2}-gcc ${prefix2}-ld
14708 ln -sf ${prefix2}-gcc ${prefix}-gcc
14709 ln -sf ${prefix2}-ld ${prefix}-ld
14711 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
14712 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
14713 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
14714 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
14715 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
14716 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
14717 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
14719 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
14720 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
14721 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
14722 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
14723 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
14724 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
14725 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
14727 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
14728 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14730 esac
14731 done # for ac_tag
14734 { (exit 0); exit 0; }
14735 _ACEOF
14736 chmod +x $CONFIG_STATUS
14737 ac_clean_files=$ac_clean_files_save
14740 # configure is writing to config.log, and then calls config.status.
14741 # config.status does its own redirection, appending to config.log.
14742 # Unfortunately, on DOS this fails, as config.log is still kept open
14743 # by configure, so config.status won't be able to write to it; its
14744 # output is simply discarded. So we exec the FD to /dev/null,
14745 # effectively closing config.log, so it can be properly (re)opened and
14746 # appended to by config.status. When coming back to configure, we
14747 # need to make the FD available again.
14748 if test "$no_create" != yes; then
14749 ac_cs_success=:
14750 ac_config_status_args=
14751 test "$silent" = yes &&
14752 ac_config_status_args="$ac_config_status_args --quiet"
14753 exec 5>/dev/null
14754 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14755 exec 5>>config.log
14756 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14757 # would make configure fail if this is the last instruction.
14758 $ac_cs_success || { (exit 1); exit 1; }
14763 #XXX compatability...
14764 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14766 if test -n "$aros_shared_cflags" ; then
14767 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14768 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg