Bulgarian keymap
[AROS.git] / configure
blob5b804d3f1ca0d81bb16e96aa43b7bc45fc7aaaa3
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 aros_target_cc
714 aros_target_ld
715 aros_target_as_ln
716 aros_kernel_ld
717 aros_target_ar_ln
718 aros_target_nm_ln
719 aros_target_objcopy_ln
720 aros_target_objdump_ln
721 aros_target_ranlib_ln
722 aros_target_strip_ln
723 aros_target_cxx
724 aros_kernel_rescomp
725 aros_target_nostdinc_cflags
726 aros_target_nostartup_ldflags
727 aros_target_nix_ldflags
728 aros_target_detach_ldflags
729 aros_target_nostdlib_ldflags
730 host_cflags_iquote
731 host_cflags_iquote_end
732 kernel_cflags_iquote
733 kernel_cflags_iquote_end
734 aros_cflags_iquote
735 aros_cflags_iquote_end
736 XMKMF
737 SDL_CONFIG
738 SDL_CFLAGS
739 SDL_LIBS
740 aros_arch
741 aros_cpu
742 aros_flavour
743 aros_flavour_uc
744 AROS_BUILDDIR
745 AROS_BUILDDIR_UNIX
746 SRCDIR
747 AROS_PORTSSRCDIR
748 aros_cc_pre
749 aros_host_arch
750 aros_host_cpu
751 aros_host_cc
752 aros_host_make
753 aros_host_cflags
754 aros_host_ldflags
755 aros_host_debug
756 aros_host_mkdep
757 aros_host_mkargs
758 aros_host_exe_suffix
759 aros_host_lib_suffix
760 aros_tools_dir
761 aros_target_guitheme
762 aros_target_iconset
763 aros_target_bootloader
764 aros_target_arch
765 aros_target_family
766 aros_target_cpu
767 aros_target_variant
768 aros_target_suffix
769 aros_target_incl
770 aros_target_ar
771 aros_target_ranlib
772 aros_kernel_nm
773 orig_target_cc
774 aros_kernel_cc
775 aros_target_as
776 orig_target_ld
777 aros_target_cc_includes
778 aros_target_cc_path
779 aros_target_objdump
780 aros_target_objcopy
781 aros_target_strip
782 aros_target_nm
783 aros_shared_default
784 aros_shared_ld
785 aros_object_format
786 aros_compiler_libs
787 aros_arch_libs
788 aros_config_cflags
789 aros_config_aflags
790 aros_config_ldflags
791 aros_shared_cflags
792 aros_shared_aflags
793 aros_shared_ldflags
794 aros_kernel_cflags
795 aros_kernel_includes
796 aros_kernel_objcflags
797 aros_kernel_ldflags
798 aros_debug_cflags
799 aros_debug_aflags
800 aros_debug_ldflags
801 aros_paranoia_cflags
802 aros_target_genmap
803 aros_target_strip_flags
804 crosstools_target
805 x11_hidd_target
806 sdl_hidd_target
807 aros_default_wbwidth
808 aros_default_wbheight
809 aros_default_wbdepth
810 DO_XSHM_SUPPORT
811 DO_VIDMODE_SUPPORT
812 aros_host_x11_includes
813 aros_host_x11_libdirs
814 aros_host_sdl_cflags
815 aros_host_sdl_libs
816 aros_serial_debug
817 aros_palm_debug_hack
818 aros_nesting_supervisor
819 aros_ios_platform
820 aros_ios_version
821 aros_ios_sdk
822 ENABLE_DBUS
823 DBUS_CFLAGS
824 DBUS_LIBFLAGS
825 KERNEL_DBUS_KOBJ
826 KERNEL_DBUS_INCLUDES
827 ENABLE_X11
828 aros_debug
829 aros_mungwall_debug
830 aros_stack_debug
831 aros_modules_debug
832 ignore_undefined_symbols
833 gcc_target_cpu
834 LTLIBOBJS'
835 ac_subst_files=''
836 ac_precious_vars='build_alias
837 host_alias
838 target_alias
840 CFLAGS
841 LDFLAGS
842 LIBS
843 CPPFLAGS
845 XMKMF'
848 # Initialize some variables set by options.
849 ac_init_help=
850 ac_init_version=false
851 # The variables have the same names as the options, with
852 # dashes changed to underlines.
853 cache_file=/dev/null
854 exec_prefix=NONE
855 no_create=
856 no_recursion=
857 prefix=NONE
858 program_prefix=NONE
859 program_suffix=NONE
860 program_transform_name=s,x,x,
861 silent=
862 site=
863 srcdir=
864 verbose=
865 x_includes=NONE
866 x_libraries=NONE
868 # Installation directory options.
869 # These are left unexpanded so users can "make install exec_prefix=/foo"
870 # and all the variables that are supposed to be based on exec_prefix
871 # by default will actually change.
872 # Use braces instead of parens because sh, perl, etc. also accept them.
873 # (The list follows the same order as the GNU Coding Standards.)
874 bindir='${exec_prefix}/bin'
875 sbindir='${exec_prefix}/sbin'
876 libexecdir='${exec_prefix}/libexec'
877 datarootdir='${prefix}/share'
878 datadir='${datarootdir}'
879 sysconfdir='${prefix}/etc'
880 sharedstatedir='${prefix}/com'
881 localstatedir='${prefix}/var'
882 includedir='${prefix}/include'
883 oldincludedir='/usr/include'
884 docdir='${datarootdir}/doc/${PACKAGE}'
885 infodir='${datarootdir}/info'
886 htmldir='${docdir}'
887 dvidir='${docdir}'
888 pdfdir='${docdir}'
889 psdir='${docdir}'
890 libdir='${exec_prefix}/lib'
891 localedir='${datarootdir}/locale'
892 mandir='${datarootdir}/man'
894 ac_prev=
895 ac_dashdash=
896 for ac_option
898 # If the previous option needs an argument, assign it.
899 if test -n "$ac_prev"; then
900 eval $ac_prev=\$ac_option
901 ac_prev=
902 continue
905 case $ac_option in
906 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
907 *) ac_optarg=yes ;;
908 esac
910 # Accept the important Cygnus configure options, so we can diagnose typos.
912 case $ac_dashdash$ac_option in
914 ac_dashdash=yes ;;
916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
919 bindir=$ac_optarg ;;
921 -build | --build | --buil | --bui | --bu)
922 ac_prev=build_alias ;;
923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
924 build_alias=$ac_optarg ;;
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
931 cache_file=$ac_optarg ;;
933 --config-cache | -C)
934 cache_file=config.cache ;;
936 -datadir | --datadir | --datadi | --datad)
937 ac_prev=datadir ;;
938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
939 datadir=$ac_optarg ;;
941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
948 -disable-* | --disable-*)
949 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
950 # Reject names that are not valid shell variable names.
951 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
952 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
953 { (exit 1); exit 1; }; }
954 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
955 eval enable_$ac_feature=no ;;
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
967 -enable-* | --enable-*)
968 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
969 # Reject names that are not valid shell variable names.
970 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
971 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
972 { (exit 1); exit 1; }; }
973 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
974 eval enable_$ac_feature=\$ac_optarg ;;
976 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978 | --exec | --exe | --ex)
979 ac_prev=exec_prefix ;;
980 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982 | --exec=* | --exe=* | --ex=*)
983 exec_prefix=$ac_optarg ;;
985 -gas | --gas | --ga | --g)
986 # Obsolete; use --with-gas.
987 with_gas=yes ;;
989 -help | --help | --hel | --he | -h)
990 ac_init_help=long ;;
991 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992 ac_init_help=recursive ;;
993 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994 ac_init_help=short ;;
996 -host | --host | --hos | --ho)
997 ac_prev=host_alias ;;
998 -host=* | --host=* | --hos=* | --ho=*)
999 host_alias=$ac_optarg ;;
1001 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002 ac_prev=htmldir ;;
1003 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004 | --ht=*)
1005 htmldir=$ac_optarg ;;
1007 -includedir | --includedir | --includedi | --included | --include \
1008 | --includ | --inclu | --incl | --inc)
1009 ac_prev=includedir ;;
1010 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011 | --includ=* | --inclu=* | --incl=* | --inc=*)
1012 includedir=$ac_optarg ;;
1014 -infodir | --infodir | --infodi | --infod | --info | --inf)
1015 ac_prev=infodir ;;
1016 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017 infodir=$ac_optarg ;;
1019 -libdir | --libdir | --libdi | --libd)
1020 ac_prev=libdir ;;
1021 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022 libdir=$ac_optarg ;;
1024 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025 | --libexe | --libex | --libe)
1026 ac_prev=libexecdir ;;
1027 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028 | --libexe=* | --libex=* | --libe=*)
1029 libexecdir=$ac_optarg ;;
1031 -localedir | --localedir | --localedi | --localed | --locale)
1032 ac_prev=localedir ;;
1033 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034 localedir=$ac_optarg ;;
1036 -localstatedir | --localstatedir | --localstatedi | --localstated \
1037 | --localstate | --localstat | --localsta | --localst | --locals)
1038 ac_prev=localstatedir ;;
1039 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041 localstatedir=$ac_optarg ;;
1043 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044 ac_prev=mandir ;;
1045 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046 mandir=$ac_optarg ;;
1048 -nfp | --nfp | --nf)
1049 # Obsolete; use --without-fp.
1050 with_fp=no ;;
1052 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053 | --no-cr | --no-c | -n)
1054 no_create=yes ;;
1056 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058 no_recursion=yes ;;
1060 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062 | --oldin | --oldi | --old | --ol | --o)
1063 ac_prev=oldincludedir ;;
1064 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067 oldincludedir=$ac_optarg ;;
1069 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070 ac_prev=prefix ;;
1071 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072 prefix=$ac_optarg ;;
1074 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075 | --program-pre | --program-pr | --program-p)
1076 ac_prev=program_prefix ;;
1077 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079 program_prefix=$ac_optarg ;;
1081 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082 | --program-suf | --program-su | --program-s)
1083 ac_prev=program_suffix ;;
1084 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086 program_suffix=$ac_optarg ;;
1088 -program-transform-name | --program-transform-name \
1089 | --program-transform-nam | --program-transform-na \
1090 | --program-transform-n | --program-transform- \
1091 | --program-transform | --program-transfor \
1092 | --program-transfo | --program-transf \
1093 | --program-trans | --program-tran \
1094 | --progr-tra | --program-tr | --program-t)
1095 ac_prev=program_transform_name ;;
1096 -program-transform-name=* | --program-transform-name=* \
1097 | --program-transform-nam=* | --program-transform-na=* \
1098 | --program-transform-n=* | --program-transform-=* \
1099 | --program-transform=* | --program-transfor=* \
1100 | --program-transfo=* | --program-transf=* \
1101 | --program-trans=* | --program-tran=* \
1102 | --progr-tra=* | --program-tr=* | --program-t=*)
1103 program_transform_name=$ac_optarg ;;
1105 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106 ac_prev=pdfdir ;;
1107 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108 pdfdir=$ac_optarg ;;
1110 -psdir | --psdir | --psdi | --psd | --ps)
1111 ac_prev=psdir ;;
1112 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113 psdir=$ac_optarg ;;
1115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116 | -silent | --silent | --silen | --sile | --sil)
1117 silent=yes ;;
1119 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120 ac_prev=sbindir ;;
1121 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122 | --sbi=* | --sb=*)
1123 sbindir=$ac_optarg ;;
1125 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127 | --sharedst | --shareds | --shared | --share | --shar \
1128 | --sha | --sh)
1129 ac_prev=sharedstatedir ;;
1130 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133 | --sha=* | --sh=*)
1134 sharedstatedir=$ac_optarg ;;
1136 -site | --site | --sit)
1137 ac_prev=site ;;
1138 -site=* | --site=* | --sit=*)
1139 site=$ac_optarg ;;
1141 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142 ac_prev=srcdir ;;
1143 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144 srcdir=$ac_optarg ;;
1146 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147 | --syscon | --sysco | --sysc | --sys | --sy)
1148 ac_prev=sysconfdir ;;
1149 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151 sysconfdir=$ac_optarg ;;
1153 -target | --target | --targe | --targ | --tar | --ta | --t)
1154 ac_prev=target_alias ;;
1155 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156 target_alias=$ac_optarg ;;
1158 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159 verbose=yes ;;
1161 -version | --version | --versio | --versi | --vers | -V)
1162 ac_init_version=: ;;
1164 -with-* | --with-*)
1165 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 # Reject names that are not valid shell variable names.
1167 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1168 { echo "$as_me: error: invalid package name: $ac_package" >&2
1169 { (exit 1); exit 1; }; }
1170 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1171 eval with_$ac_package=\$ac_optarg ;;
1173 -without-* | --without-*)
1174 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1177 { echo "$as_me: error: invalid package name: $ac_package" >&2
1178 { (exit 1); exit 1; }; }
1179 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1180 eval with_$ac_package=no ;;
1182 --x)
1183 # Obsolete; use --with-x.
1184 with_x=yes ;;
1186 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1187 | --x-incl | --x-inc | --x-in | --x-i)
1188 ac_prev=x_includes ;;
1189 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1190 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1191 x_includes=$ac_optarg ;;
1193 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1194 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1195 ac_prev=x_libraries ;;
1196 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1197 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1198 x_libraries=$ac_optarg ;;
1200 -*) { echo "$as_me: error: unrecognized option: $ac_option
1201 Try \`$0 --help' for more information." >&2
1202 { (exit 1); exit 1; }; }
1205 *=*)
1206 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1207 # Reject names that are not valid shell variable names.
1208 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1209 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1210 { (exit 1); exit 1; }; }
1211 eval $ac_envvar=\$ac_optarg
1212 export $ac_envvar ;;
1215 # FIXME: should be removed in autoconf 3.0.
1216 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1217 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1219 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1222 esac
1223 done
1225 if test -n "$ac_prev"; then
1226 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1227 { echo "$as_me: error: missing argument to $ac_option" >&2
1228 { (exit 1); exit 1; }; }
1231 # Be sure to have absolute directory names.
1232 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1237 eval ac_val=\$$ac_var
1238 case $ac_val in
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 esac
1242 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1243 { (exit 1); exit 1; }; }
1244 done
1246 # There might be people who depend on the old broken behavior: `$host'
1247 # used to hold the argument of --host etc.
1248 # FIXME: To remove some day.
1249 build=$build_alias
1250 host=$host_alias
1251 target=$target_alias
1253 # FIXME: To remove some day.
1254 if test "x$host_alias" != x; then
1255 if test "x$build_alias" = x; then
1256 cross_compiling=maybe
1257 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1258 If a cross compiler is detected then cross compile mode will be used." >&2
1259 elif test "x$build_alias" != "x$host_alias"; then
1260 cross_compiling=yes
1264 ac_tool_prefix=
1265 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1267 test "$silent" = yes && exec 6>/dev/null
1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1271 ac_ls_di=`ls -di .` &&
1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1273 { echo "$as_me: error: Working directory cannot be determined" >&2
1274 { (exit 1); exit 1; }; }
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 { echo "$as_me: error: pwd does not report name of working directory" >&2
1277 { (exit 1); exit 1; }; }
1280 # Find the source files, if location was not specified.
1281 if test -z "$srcdir"; then
1282 ac_srcdir_defaulted=yes
1283 # Try the directory containing this script, then the parent directory.
1284 ac_confdir=`$as_dirname -- "$0" ||
1285 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1286 X"$0" : 'X\(//\)[^/]' \| \
1287 X"$0" : 'X\(//\)$' \| \
1288 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1289 echo X"$0" |
1290 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 s//\1/
1294 /^X\(\/\/\)[^/].*/{
1295 s//\1/
1298 /^X\(\/\/\)$/{
1299 s//\1/
1302 /^X\(\/\).*/{
1303 s//\1/
1306 s/.*/./; q'`
1307 srcdir=$ac_confdir
1308 if test ! -r "$srcdir/$ac_unique_file"; then
1309 srcdir=..
1311 else
1312 ac_srcdir_defaulted=no
1314 if test ! -r "$srcdir/$ac_unique_file"; then
1315 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1316 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1317 { (exit 1); exit 1; }; }
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1322 { (exit 1); exit 1; }; }
1323 pwd)`
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1326 srcdir=.
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1331 case $srcdir in
1332 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1333 esac
1334 for ac_var in $ac_precious_vars; do
1335 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1336 eval ac_env_${ac_var}_value=\$${ac_var}
1337 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1338 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1339 done
1342 # Report the --help message.
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1347 cat <<_ACEOF
1348 \`configure' configures this package to adapt to many kinds of systems.
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1355 Defaults for the options are specified in brackets.
1357 Configuration:
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1372 [PREFIX]
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1379 For better control, use the options below.
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1401 _ACEOF
1403 cat <<\_ACEOF
1405 X features:
1406 --x-includes=DIR X include files are in DIR
1407 --x-libraries=DIR X library files are in DIR
1409 System types:
1410 --build=BUILD configure for building on BUILD [guessed]
1411 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1412 _ACEOF
1415 if test -n "$ac_init_help"; then
1417 cat <<\_ACEOF
1419 Optional Features:
1420 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1421 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1422 --enable-build-type=TYPE
1423 Select the build type. Available types are:
1424 personal, nightly, snapshot, milestone, release. Do
1425 NOT use this option unless you know what you are
1426 doing! (default=personal)
1427 --enable-debug=list Enable different types of debug. Commas or
1428 whitespaces can be used to separate the items in the
1429 list. Available types of debug are: all, none,
1430 messages, stack, mungwall, modules, symbols. If no
1431 list is provided then "all" is assumed.
1432 (default=none)
1433 --enable-crosstools Build cross-compiler toolchains if necessary
1434 (default=no).
1435 --enable-distcc Use distcc as a front end to the compiler
1436 (default=no).
1437 --enable-ccache Use ccache as a front end to the compiler
1438 (default=no).
1439 --enable-target-variant=NAME
1440 Enable a specific target variant(default=none)
1441 --enable-includes=dir Alternative system include directory
1442 --enable-palm-debug-hack
1443 Enable palm debug output hack in palm native
1444 (default=no)
1445 --enable-nesting-supervisor
1446 Enable nesting supervisor support in unix
1447 (default=no)
1448 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1449 --enable-x11-shm use X11 shared memory (default=auto)
1450 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1451 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1452 --disable-sdltest Do not try to compile and run a test SDL program
1453 --enable-dbus Enable DBUS support via dbus.library (default=no)
1455 Optional Packages:
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-gcc-version=VERSION
1459 Use gcc-VERSION for building AROS
1460 --with-optimization=FLAGS
1461 Use optimization flags FLAGS (default=-O2).
1462 --with-paranoia=FLAGS CC flags to enable paranoia
1463 --with-xcode=PATH Specify XCode path for iOS targets
1464 (default=/Developer).
1465 --with-ios-version=VERSION
1466 Specify minimum supported iOS version (default=2.0).
1467 --with-ios-sdk=VERSION Use iOS SDK version VERSION (default=4.1).
1468 --with-portssources=DIR Where to download sourcecode for external ports
1469 --with-bootloader=NAME Use a specific bootloader
1470 --with-iconset=NAME Use a specific Icon-set (default=Gorilla).
1471 --with-theme=NAME Use a specific GUI Theme
1472 --with-resolution=XRESxYRESxDEPTH
1473 Default resolution of the initial WorkbenchScreen
1474 --with-serial-debug Enable serial debug output in native (default=no)
1475 --with-x use the X Window System
1476 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1477 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 LIBS libraries to pass to the linker, e.g. -l<library>
1485 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1486 you have headers in a nonstandard directory <include dir>
1487 CPP C preprocessor
1488 XMKMF Path to xmkmf, Makefile generator for X Window System
1490 Use these variables to override the choices made by `configure' or to help
1491 it to find libraries and programs with nonstandard names/locations.
1493 _ACEOF
1494 ac_status=$?
1497 if test "$ac_init_help" = "recursive"; then
1498 # If there are subdirs, report their specific --help.
1499 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500 test -d "$ac_dir" || continue
1501 ac_builddir=.
1503 case "$ac_dir" in
1504 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1506 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1507 # A ".." for each directory in $ac_dir_suffix.
1508 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1509 case $ac_top_builddir_sub in
1510 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1512 esac ;;
1513 esac
1514 ac_abs_top_builddir=$ac_pwd
1515 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1516 # for backward compatibility:
1517 ac_top_builddir=$ac_top_build_prefix
1519 case $srcdir in
1520 .) # We are building in place.
1521 ac_srcdir=.
1522 ac_top_srcdir=$ac_top_builddir_sub
1523 ac_abs_top_srcdir=$ac_pwd ;;
1524 [\\/]* | ?:[\\/]* ) # Absolute name.
1525 ac_srcdir=$srcdir$ac_dir_suffix;
1526 ac_top_srcdir=$srcdir
1527 ac_abs_top_srcdir=$srcdir ;;
1528 *) # Relative name.
1529 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1530 ac_top_srcdir=$ac_top_build_prefix$srcdir
1531 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1532 esac
1533 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1535 cd "$ac_dir" || { ac_status=$?; continue; }
1536 # Check for guested configure.
1537 if test -f "$ac_srcdir/configure.gnu"; then
1538 echo &&
1539 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1540 elif test -f "$ac_srcdir/configure"; then
1541 echo &&
1542 $SHELL "$ac_srcdir/configure" --help=recursive
1543 else
1544 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1545 fi || ac_status=$?
1546 cd "$ac_pwd" || { ac_status=$?; break; }
1547 done
1550 test -n "$ac_init_help" && exit $ac_status
1551 if $ac_init_version; then
1552 cat <<\_ACEOF
1553 configure
1554 generated by GNU Autoconf 2.61
1556 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1557 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1558 This configure script is free software; the Free Software Foundation
1559 gives unlimited permission to copy, distribute and modify it.
1560 _ACEOF
1561 exit
1563 cat >config.log <<_ACEOF
1564 This file contains any messages produced by compilers while
1565 running configure, to aid debugging if configure makes a mistake.
1567 It was created by $as_me, which was
1568 generated by GNU Autoconf 2.61. Invocation command line was
1570 $ $0 $@
1572 _ACEOF
1573 exec 5>>config.log
1575 cat <<_ASUNAME
1576 ## --------- ##
1577 ## Platform. ##
1578 ## --------- ##
1580 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1581 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1582 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1583 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1584 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1586 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1587 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1589 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1590 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1591 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1592 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1593 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1594 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1595 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1597 _ASUNAME
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1600 for as_dir in $PATH
1602 IFS=$as_save_IFS
1603 test -z "$as_dir" && as_dir=.
1604 echo "PATH: $as_dir"
1605 done
1606 IFS=$as_save_IFS
1608 } >&5
1610 cat >&5 <<_ACEOF
1613 ## ----------- ##
1614 ## Core tests. ##
1615 ## ----------- ##
1617 _ACEOF
1620 # Keep a trace of the command line.
1621 # Strip out --no-create and --no-recursion so they do not pile up.
1622 # Strip out --silent because we don't want to record it for future runs.
1623 # Also quote any args containing shell meta-characters.
1624 # Make two passes to allow for proper duplicate-argument suppression.
1625 ac_configure_args=
1626 ac_configure_args0=
1627 ac_configure_args1=
1628 ac_must_keep_next=false
1629 for ac_pass in 1 2
1631 for ac_arg
1633 case $ac_arg in
1634 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1635 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1636 | -silent | --silent | --silen | --sile | --sil)
1637 continue ;;
1638 *\'*)
1639 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1640 esac
1641 case $ac_pass in
1642 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1644 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1645 if test $ac_must_keep_next = true; then
1646 ac_must_keep_next=false # Got value, back to normal.
1647 else
1648 case $ac_arg in
1649 *=* | --config-cache | -C | -disable-* | --disable-* \
1650 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1651 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1652 | -with-* | --with-* | -without-* | --without-* | --x)
1653 case "$ac_configure_args0 " in
1654 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1655 esac
1657 -* ) ac_must_keep_next=true ;;
1658 esac
1660 ac_configure_args="$ac_configure_args '$ac_arg'"
1662 esac
1663 done
1664 done
1665 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1666 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1668 # When interrupted or exit'd, cleanup temporary files, and complete
1669 # config.log. We remove comments because anyway the quotes in there
1670 # would cause problems or look ugly.
1671 # WARNING: Use '\'' to represent an apostrophe within the trap.
1672 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1673 trap 'exit_status=$?
1674 # Save into config.log some information that might help in debugging.
1676 echo
1678 cat <<\_ASBOX
1679 ## ---------------- ##
1680 ## Cache variables. ##
1681 ## ---------------- ##
1682 _ASBOX
1683 echo
1684 # The following way of writing the cache mishandles newlines in values,
1686 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1687 eval ac_val=\$$ac_var
1688 case $ac_val in #(
1689 *${as_nl}*)
1690 case $ac_var in #(
1691 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1692 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1693 esac
1694 case $ac_var in #(
1695 _ | IFS | as_nl) ;; #(
1696 *) $as_unset $ac_var ;;
1697 esac ;;
1698 esac
1699 done
1700 (set) 2>&1 |
1701 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1702 *${as_nl}ac_space=\ *)
1703 sed -n \
1704 "s/'\''/'\''\\\\'\'''\''/g;
1705 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1706 ;; #(
1708 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1710 esac |
1711 sort
1713 echo
1715 cat <<\_ASBOX
1716 ## ----------------- ##
1717 ## Output variables. ##
1718 ## ----------------- ##
1719 _ASBOX
1720 echo
1721 for ac_var in $ac_subst_vars
1723 eval ac_val=\$$ac_var
1724 case $ac_val in
1725 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726 esac
1727 echo "$ac_var='\''$ac_val'\''"
1728 done | sort
1729 echo
1731 if test -n "$ac_subst_files"; then
1732 cat <<\_ASBOX
1733 ## ------------------- ##
1734 ## File substitutions. ##
1735 ## ------------------- ##
1736 _ASBOX
1737 echo
1738 for ac_var in $ac_subst_files
1740 eval ac_val=\$$ac_var
1741 case $ac_val in
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 esac
1744 echo "$ac_var='\''$ac_val'\''"
1745 done | sort
1746 echo
1749 if test -s confdefs.h; then
1750 cat <<\_ASBOX
1751 ## ----------- ##
1752 ## confdefs.h. ##
1753 ## ----------- ##
1754 _ASBOX
1755 echo
1756 cat confdefs.h
1757 echo
1759 test "$ac_signal" != 0 &&
1760 echo "$as_me: caught signal $ac_signal"
1761 echo "$as_me: exit $exit_status"
1762 } >&5
1763 rm -f core *.core core.conftest.* &&
1764 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1765 exit $exit_status
1767 for ac_signal in 1 2 13 15; do
1768 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1769 done
1770 ac_signal=0
1772 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1773 rm -f -r conftest* confdefs.h
1775 # Predefined preprocessor variables.
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_NAME "$PACKAGE_NAME"
1779 _ACEOF
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1784 _ACEOF
1787 cat >>confdefs.h <<_ACEOF
1788 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1789 _ACEOF
1792 cat >>confdefs.h <<_ACEOF
1793 #define PACKAGE_STRING "$PACKAGE_STRING"
1794 _ACEOF
1797 cat >>confdefs.h <<_ACEOF
1798 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1799 _ACEOF
1802 # Let the site file select an alternate cache file if it wants to.
1803 # Prefer explicitly selected file to automatically selected ones.
1804 if test -n "$CONFIG_SITE"; then
1805 set x "$CONFIG_SITE"
1806 elif test "x$prefix" != xNONE; then
1807 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1808 else
1809 set x "$ac_default_prefix/share/config.site" \
1810 "$ac_default_prefix/etc/config.site"
1812 shift
1813 for ac_site_file
1815 if test -r "$ac_site_file"; then
1816 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1817 echo "$as_me: loading site script $ac_site_file" >&6;}
1818 sed 's/^/| /' "$ac_site_file" >&5
1819 . "$ac_site_file"
1821 done
1823 if test -r "$cache_file"; then
1824 # Some versions of bash will fail to source /dev/null (special
1825 # files actually), so we avoid doing that.
1826 if test -f "$cache_file"; then
1827 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1828 echo "$as_me: loading cache $cache_file" >&6;}
1829 case $cache_file in
1830 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1831 *) . "./$cache_file";;
1832 esac
1834 else
1835 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1836 echo "$as_me: creating cache $cache_file" >&6;}
1837 >$cache_file
1840 # Check that the precious variables saved in the cache have kept the same
1841 # value.
1842 ac_cache_corrupted=false
1843 for ac_var in $ac_precious_vars; do
1844 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1845 eval ac_new_set=\$ac_env_${ac_var}_set
1846 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1847 eval ac_new_val=\$ac_env_${ac_var}_value
1848 case $ac_old_set,$ac_new_set in
1849 set,)
1850 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1851 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1852 ac_cache_corrupted=: ;;
1853 ,set)
1854 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1855 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1856 ac_cache_corrupted=: ;;
1857 ,);;
1859 if test "x$ac_old_val" != "x$ac_new_val"; then
1860 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1861 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1862 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1863 echo "$as_me: former value: $ac_old_val" >&2;}
1864 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1865 echo "$as_me: current value: $ac_new_val" >&2;}
1866 ac_cache_corrupted=:
1867 fi;;
1868 esac
1869 # Pass precious variables to config.status.
1870 if test "$ac_new_set" = set; then
1871 case $ac_new_val in
1872 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1873 *) ac_arg=$ac_var=$ac_new_val ;;
1874 esac
1875 case " $ac_configure_args " in
1876 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1877 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1878 esac
1880 done
1881 if $ac_cache_corrupted; then
1882 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1883 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1884 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1885 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1886 { (exit 1); exit 1; }; }
1905 ac_ext=c
1906 ac_cpp='$CPP $CPPFLAGS'
1907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1913 ac_aux_dir=
1914 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1915 if test -f "$ac_dir/install-sh"; then
1916 ac_aux_dir=$ac_dir
1917 ac_install_sh="$ac_aux_dir/install-sh -c"
1918 break
1919 elif test -f "$ac_dir/install.sh"; then
1920 ac_aux_dir=$ac_dir
1921 ac_install_sh="$ac_aux_dir/install.sh -c"
1922 break
1923 elif test -f "$ac_dir/shtool"; then
1924 ac_aux_dir=$ac_dir
1925 ac_install_sh="$ac_aux_dir/shtool install -c"
1926 break
1928 done
1929 if test -z "$ac_aux_dir"; then
1930 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1931 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1932 { (exit 1); exit 1; }; }
1935 # These three variables are undocumented and unsupported,
1936 # and are intended to be withdrawn in a future Autoconf release.
1937 # They can cause serious problems if a builder's source tree is in a directory
1938 # whose full name contains unusual characters.
1939 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1940 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1941 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1945 # Check what host we are running on.
1946 # If a target is not suggested, we use this one.
1947 # Note that what we call a target, Autoconf calls a host.
1948 # Make sure we can run config.sub.
1949 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1950 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1951 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1952 { (exit 1); exit 1; }; }
1954 { echo "$as_me:$LINENO: checking build system type" >&5
1955 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1956 if test "${ac_cv_build+set}" = set; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959 ac_build_alias=$build_alias
1960 test "x$ac_build_alias" = x &&
1961 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1962 test "x$ac_build_alias" = x &&
1963 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1964 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1965 { (exit 1); exit 1; }; }
1966 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1967 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1968 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1969 { (exit 1); exit 1; }; }
1972 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1973 echo "${ECHO_T}$ac_cv_build" >&6; }
1974 case $ac_cv_build in
1975 *-*-*) ;;
1976 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1977 echo "$as_me: error: invalid value of canonical build" >&2;}
1978 { (exit 1); exit 1; }; };;
1979 esac
1980 build=$ac_cv_build
1981 ac_save_IFS=$IFS; IFS='-'
1982 set x $ac_cv_build
1983 shift
1984 build_cpu=$1
1985 build_vendor=$2
1986 shift; shift
1987 # Remember, the first character of IFS is used to create $*,
1988 # except with old shells:
1989 build_os=$*
1990 IFS=$ac_save_IFS
1991 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1994 { echo "$as_me:$LINENO: checking host system type" >&5
1995 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1996 if test "${ac_cv_host+set}" = set; then
1997 echo $ECHO_N "(cached) $ECHO_C" >&6
1998 else
1999 if test "x$host_alias" = x; then
2000 ac_cv_host=$ac_cv_build
2001 else
2002 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2003 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2004 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2005 { (exit 1); exit 1; }; }
2009 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2010 echo "${ECHO_T}$ac_cv_host" >&6; }
2011 case $ac_cv_host in
2012 *-*-*) ;;
2013 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2014 echo "$as_me: error: invalid value of canonical host" >&2;}
2015 { (exit 1); exit 1; }; };;
2016 esac
2017 host=$ac_cv_host
2018 ac_save_IFS=$IFS; IFS='-'
2019 set x $ac_cv_host
2020 shift
2021 host_cpu=$1
2022 host_vendor=$2
2023 shift; shift
2024 # Remember, the first character of IFS is used to create $*,
2025 # except with old shells:
2026 host_os=$*
2027 IFS=$ac_save_IFS
2028 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2032 # The AROS target is slightly different to the normal GNU style
2033 # format. We don't have the middle part, and we reverse the order
2034 # of the $(CPU) and $(OS) bits.
2036 # Don't strip the version of the target yet, it might be
2037 # useful on some systems.
2039 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2040 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2042 if test "$target" = "NONE" ; then
2043 target=$host_os-$host_cpu
2044 cross_compile=no
2045 else
2046 if test "$target" = "" ; then
2047 target=$host_os-$host_cpu
2048 cross_compile=no
2049 else
2050 cross_compile=yes
2053 { echo "$as_me:$LINENO: result: $target" >&5
2054 echo "${ECHO_T}$target" >&6; }
2056 if test "$host_os" = "mingw32" ; then
2057 PWDCMD="pwd -W"
2060 #don't know where else to put this...
2061 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2062 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2063 AROS_BUILDDIR=`${PWDCMD-pwd}`
2064 AROS_BUILDDIR_UNIX=${PWD}
2065 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2066 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2068 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2069 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2070 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2071 SRCDIR=${srcpwd}
2072 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2073 echo "${ECHO_T}$SRCDIR" >&6; }
2075 # Parse the target field into something useful.
2077 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2078 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2081 aros_default_wbwidth=800
2082 aros_default_wbheight=600
2083 aros_default_wbdepth=4
2086 # The first step is to find the host binaries.
2087 # Check for a compiler.
2088 ac_ext=c
2089 ac_cpp='$CPP $CPPFLAGS'
2090 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2091 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2092 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2093 if test -n "$ac_tool_prefix"; then
2094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2095 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2098 if test "${ac_cv_prog_CC+set}" = set; then
2099 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 else
2101 if test -n "$CC"; then
2102 ac_cv_prog_CC="$CC" # Let the user override the test.
2103 else
2104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 for as_dir in $PATH
2107 IFS=$as_save_IFS
2108 test -z "$as_dir" && as_dir=.
2109 for ac_exec_ext in '' $ac_executable_extensions; do
2110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2111 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2113 break 2
2115 done
2116 done
2117 IFS=$as_save_IFS
2121 CC=$ac_cv_prog_CC
2122 if test -n "$CC"; then
2123 { echo "$as_me:$LINENO: result: $CC" >&5
2124 echo "${ECHO_T}$CC" >&6; }
2125 else
2126 { echo "$as_me:$LINENO: result: no" >&5
2127 echo "${ECHO_T}no" >&6; }
2132 if test -z "$ac_cv_prog_CC"; then
2133 ac_ct_CC=$CC
2134 # Extract the first word of "gcc", so it can be a program name with args.
2135 set dummy gcc; ac_word=$2
2136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2138 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2139 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 else
2141 if test -n "$ac_ct_CC"; then
2142 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2143 else
2144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2145 for as_dir in $PATH
2147 IFS=$as_save_IFS
2148 test -z "$as_dir" && as_dir=.
2149 for ac_exec_ext in '' $ac_executable_extensions; do
2150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2151 ac_cv_prog_ac_ct_CC="gcc"
2152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2153 break 2
2155 done
2156 done
2157 IFS=$as_save_IFS
2161 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2162 if test -n "$ac_ct_CC"; then
2163 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2164 echo "${ECHO_T}$ac_ct_CC" >&6; }
2165 else
2166 { echo "$as_me:$LINENO: result: no" >&5
2167 echo "${ECHO_T}no" >&6; }
2170 if test "x$ac_ct_CC" = x; then
2171 CC=""
2172 else
2173 case $cross_compiling:$ac_tool_warned in
2174 yes:)
2175 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2176 whose name does not start with the host triplet. If you think this
2177 configuration is useful to you, please write to autoconf@gnu.org." >&5
2178 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2179 whose name does not start with the host triplet. If you think this
2180 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2181 ac_tool_warned=yes ;;
2182 esac
2183 CC=$ac_ct_CC
2185 else
2186 CC="$ac_cv_prog_CC"
2189 if test -z "$CC"; then
2190 if test -n "$ac_tool_prefix"; then
2191 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2192 set dummy ${ac_tool_prefix}cc; ac_word=$2
2193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2195 if test "${ac_cv_prog_CC+set}" = set; then
2196 echo $ECHO_N "(cached) $ECHO_C" >&6
2197 else
2198 if test -n "$CC"; then
2199 ac_cv_prog_CC="$CC" # Let the user override the test.
2200 else
2201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 for as_dir in $PATH
2204 IFS=$as_save_IFS
2205 test -z "$as_dir" && as_dir=.
2206 for ac_exec_ext in '' $ac_executable_extensions; do
2207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2208 ac_cv_prog_CC="${ac_tool_prefix}cc"
2209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210 break 2
2212 done
2213 done
2214 IFS=$as_save_IFS
2218 CC=$ac_cv_prog_CC
2219 if test -n "$CC"; then
2220 { echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6; }
2222 else
2223 { echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6; }
2230 if test -z "$CC"; then
2231 # Extract the first word of "cc", so it can be a program name with args.
2232 set dummy cc; ac_word=$2
2233 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2235 if test "${ac_cv_prog_CC+set}" = set; then
2236 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 else
2238 if test -n "$CC"; then
2239 ac_cv_prog_CC="$CC" # Let the user override the test.
2240 else
2241 ac_prog_rejected=no
2242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 for as_dir in $PATH
2245 IFS=$as_save_IFS
2246 test -z "$as_dir" && as_dir=.
2247 for ac_exec_ext in '' $ac_executable_extensions; do
2248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2249 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2250 ac_prog_rejected=yes
2251 continue
2253 ac_cv_prog_CC="cc"
2254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2255 break 2
2257 done
2258 done
2259 IFS=$as_save_IFS
2261 if test $ac_prog_rejected = yes; then
2262 # We found a bogon in the path, so make sure we never use it.
2263 set dummy $ac_cv_prog_CC
2264 shift
2265 if test $# != 0; then
2266 # We chose a different compiler from the bogus one.
2267 # However, it has the same basename, so the bogon will be chosen
2268 # first if we set CC to just the basename; use the full file name.
2269 shift
2270 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2275 CC=$ac_cv_prog_CC
2276 if test -n "$CC"; then
2277 { echo "$as_me:$LINENO: result: $CC" >&5
2278 echo "${ECHO_T}$CC" >&6; }
2279 else
2280 { echo "$as_me:$LINENO: result: no" >&5
2281 echo "${ECHO_T}no" >&6; }
2286 if test -z "$CC"; then
2287 if test -n "$ac_tool_prefix"; then
2288 for ac_prog in cl.exe
2290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2294 if test "${ac_cv_prog_CC+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2296 else
2297 if test -n "$CC"; then
2298 ac_cv_prog_CC="$CC" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2311 done
2312 done
2313 IFS=$as_save_IFS
2317 CC=$ac_cv_prog_CC
2318 if test -n "$CC"; then
2319 { echo "$as_me:$LINENO: result: $CC" >&5
2320 echo "${ECHO_T}$CC" >&6; }
2321 else
2322 { echo "$as_me:$LINENO: result: no" >&5
2323 echo "${ECHO_T}no" >&6; }
2327 test -n "$CC" && break
2328 done
2330 if test -z "$CC"; then
2331 ac_ct_CC=$CC
2332 for ac_prog in cl.exe
2334 # Extract the first word of "$ac_prog", so it can be a program name with args.
2335 set dummy $ac_prog; ac_word=$2
2336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2338 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2339 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 else
2341 if test -n "$ac_ct_CC"; then
2342 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2343 else
2344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 for as_dir in $PATH
2347 IFS=$as_save_IFS
2348 test -z "$as_dir" && as_dir=.
2349 for ac_exec_ext in '' $ac_executable_extensions; do
2350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2351 ac_cv_prog_ac_ct_CC="$ac_prog"
2352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2353 break 2
2355 done
2356 done
2357 IFS=$as_save_IFS
2361 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2362 if test -n "$ac_ct_CC"; then
2363 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2364 echo "${ECHO_T}$ac_ct_CC" >&6; }
2365 else
2366 { echo "$as_me:$LINENO: result: no" >&5
2367 echo "${ECHO_T}no" >&6; }
2371 test -n "$ac_ct_CC" && break
2372 done
2374 if test "x$ac_ct_CC" = x; then
2375 CC=""
2376 else
2377 case $cross_compiling:$ac_tool_warned in
2378 yes:)
2379 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2380 whose name does not start with the host triplet. If you think this
2381 configuration is useful to you, please write to autoconf@gnu.org." >&5
2382 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2383 whose name does not start with the host triplet. If you think this
2384 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2385 ac_tool_warned=yes ;;
2386 esac
2387 CC=$ac_ct_CC
2394 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2395 See \`config.log' for more details." >&5
2396 echo "$as_me: error: no acceptable C compiler found in \$PATH
2397 See \`config.log' for more details." >&2;}
2398 { (exit 1); exit 1; }; }
2400 # Provide some information about the compiler.
2401 echo "$as_me:$LINENO: checking for C compiler version" >&5
2402 ac_compiler=`set X $ac_compile; echo $2`
2403 { (ac_try="$ac_compiler --version >&5"
2404 case "(($ac_try" in
2405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2406 *) ac_try_echo=$ac_try;;
2407 esac
2408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2409 (eval "$ac_compiler --version >&5") 2>&5
2410 ac_status=$?
2411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412 (exit $ac_status); }
2413 { (ac_try="$ac_compiler -v >&5"
2414 case "(($ac_try" in
2415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2416 *) ac_try_echo=$ac_try;;
2417 esac
2418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2419 (eval "$ac_compiler -v >&5") 2>&5
2420 ac_status=$?
2421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2422 (exit $ac_status); }
2423 { (ac_try="$ac_compiler -V >&5"
2424 case "(($ac_try" in
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2427 esac
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429 (eval "$ac_compiler -V >&5") 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }
2434 cat >conftest.$ac_ext <<_ACEOF
2435 /* confdefs.h. */
2436 _ACEOF
2437 cat confdefs.h >>conftest.$ac_ext
2438 cat >>conftest.$ac_ext <<_ACEOF
2439 /* end confdefs.h. */
2442 main ()
2446 return 0;
2448 _ACEOF
2449 ac_clean_files_save=$ac_clean_files
2450 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2451 # Try to create an executable without -o first, disregard a.out.
2452 # It will help us diagnose broken compilers, and finding out an intuition
2453 # of exeext.
2454 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2455 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2456 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2458 # List of possible output files, starting from the most likely.
2459 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2460 # only as a last resort. b.out is created by i960 compilers.
2461 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2463 # The IRIX 6 linker writes into existing files which may not be
2464 # executable, retaining their permissions. Remove them first so a
2465 # subsequent execution test works.
2466 ac_rmfiles=
2467 for ac_file in $ac_files
2469 case $ac_file in
2470 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2471 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2472 esac
2473 done
2474 rm -f $ac_rmfiles
2476 if { (ac_try="$ac_link_default"
2477 case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480 esac
2481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482 (eval "$ac_link_default") 2>&5
2483 ac_status=$?
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; then
2486 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2487 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2488 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2489 # so that the user can short-circuit this test for compilers unknown to
2490 # Autoconf.
2491 for ac_file in $ac_files ''
2493 test -f "$ac_file" || continue
2494 case $ac_file in
2495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2497 [ab].out )
2498 # We found the default executable, but exeext='' is most
2499 # certainly right.
2500 break;;
2501 *.* )
2502 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2503 then :; else
2504 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2506 # We set ac_cv_exeext here because the later test for it is not
2507 # safe: cross compilers may not add the suffix if given an `-o'
2508 # argument, so we may need to know it at that point already.
2509 # Even if this section looks crufty: it has the advantage of
2510 # actually working.
2511 break;;
2513 break;;
2514 esac
2515 done
2516 test "$ac_cv_exeext" = no && ac_cv_exeext=
2518 else
2519 ac_file=''
2522 { echo "$as_me:$LINENO: result: $ac_file" >&5
2523 echo "${ECHO_T}$ac_file" >&6; }
2524 if test -z "$ac_file"; then
2525 echo "$as_me: failed program was:" >&5
2526 sed 's/^/| /' conftest.$ac_ext >&5
2528 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2529 See \`config.log' for more details." >&5
2530 echo "$as_me: error: C compiler cannot create executables
2531 See \`config.log' for more details." >&2;}
2532 { (exit 77); exit 77; }; }
2535 ac_exeext=$ac_cv_exeext
2537 # Check that the compiler produces executables we can run. If not, either
2538 # the compiler is broken, or we cross compile.
2539 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2540 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2541 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2542 # If not cross compiling, check that we can run a simple program.
2543 if test "$cross_compiling" != yes; then
2544 if { ac_try='./$ac_file'
2545 { (case "(($ac_try" in
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2548 esac
2549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2550 (eval "$ac_try") 2>&5
2551 ac_status=$?
2552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2553 (exit $ac_status); }; }; then
2554 cross_compiling=no
2555 else
2556 if test "$cross_compiling" = maybe; then
2557 cross_compiling=yes
2558 else
2559 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2560 If you meant to cross compile, use \`--host'.
2561 See \`config.log' for more details." >&5
2562 echo "$as_me: error: cannot run C compiled programs.
2563 If you meant to cross compile, use \`--host'.
2564 See \`config.log' for more details." >&2;}
2565 { (exit 1); exit 1; }; }
2569 { echo "$as_me:$LINENO: result: yes" >&5
2570 echo "${ECHO_T}yes" >&6; }
2572 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2573 ac_clean_files=$ac_clean_files_save
2574 # Check that the compiler produces executables we can run. If not, either
2575 # the compiler is broken, or we cross compile.
2576 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2577 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2578 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2579 echo "${ECHO_T}$cross_compiling" >&6; }
2581 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2582 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2583 if { (ac_try="$ac_link"
2584 case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2587 esac
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_link") 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; then
2593 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2594 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2595 # work properly (i.e., refer to `conftest.exe'), while it won't with
2596 # `rm'.
2597 for ac_file in conftest.exe conftest conftest.*; do
2598 test -f "$ac_file" || continue
2599 case $ac_file in
2600 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2601 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2602 break;;
2603 * ) break;;
2604 esac
2605 done
2606 else
2607 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2608 See \`config.log' for more details." >&5
2609 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2610 See \`config.log' for more details." >&2;}
2611 { (exit 1); exit 1; }; }
2614 rm -f conftest$ac_cv_exeext
2615 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2616 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2618 rm -f conftest.$ac_ext
2619 EXEEXT=$ac_cv_exeext
2620 ac_exeext=$EXEEXT
2621 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2622 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2623 if test "${ac_cv_objext+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 cat >conftest.$ac_ext <<_ACEOF
2627 /* confdefs.h. */
2628 _ACEOF
2629 cat confdefs.h >>conftest.$ac_ext
2630 cat >>conftest.$ac_ext <<_ACEOF
2631 /* end confdefs.h. */
2634 main ()
2638 return 0;
2640 _ACEOF
2641 rm -f conftest.o conftest.obj
2642 if { (ac_try="$ac_compile"
2643 case "(($ac_try" in
2644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2645 *) ac_try_echo=$ac_try;;
2646 esac
2647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2648 (eval "$ac_compile") 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); }; then
2652 for ac_file in conftest.o conftest.obj conftest.*; do
2653 test -f "$ac_file" || continue;
2654 case $ac_file in
2655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2656 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2657 break;;
2658 esac
2659 done
2660 else
2661 echo "$as_me: failed program was:" >&5
2662 sed 's/^/| /' conftest.$ac_ext >&5
2664 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2667 See \`config.log' for more details." >&2;}
2668 { (exit 1); exit 1; }; }
2671 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2673 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2674 echo "${ECHO_T}$ac_cv_objext" >&6; }
2675 OBJEXT=$ac_cv_objext
2676 ac_objext=$OBJEXT
2677 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2678 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2679 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2680 echo $ECHO_N "(cached) $ECHO_C" >&6
2681 else
2682 cat >conftest.$ac_ext <<_ACEOF
2683 /* confdefs.h. */
2684 _ACEOF
2685 cat confdefs.h >>conftest.$ac_ext
2686 cat >>conftest.$ac_ext <<_ACEOF
2687 /* end confdefs.h. */
2690 main ()
2692 #ifndef __GNUC__
2693 choke me
2694 #endif
2697 return 0;
2699 _ACEOF
2700 rm -f conftest.$ac_objext
2701 if { (ac_try="$ac_compile"
2702 case "(($ac_try" in
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>conftest.er1
2708 ac_status=$?
2709 grep -v '^ *+' conftest.er1 >conftest.err
2710 rm -f conftest.er1
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } && {
2714 test -z "$ac_c_werror_flag" ||
2715 test ! -s conftest.err
2716 } && test -s conftest.$ac_objext; then
2717 ac_compiler_gnu=yes
2718 else
2719 echo "$as_me: failed program was:" >&5
2720 sed 's/^/| /' conftest.$ac_ext >&5
2722 ac_compiler_gnu=no
2725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2726 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2729 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2730 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2731 GCC=`test $ac_compiler_gnu = yes && echo yes`
2732 ac_test_CFLAGS=${CFLAGS+set}
2733 ac_save_CFLAGS=$CFLAGS
2734 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2735 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2736 if test "${ac_cv_prog_cc_g+set}" = set; then
2737 echo $ECHO_N "(cached) $ECHO_C" >&6
2738 else
2739 ac_save_c_werror_flag=$ac_c_werror_flag
2740 ac_c_werror_flag=yes
2741 ac_cv_prog_cc_g=no
2742 CFLAGS="-g"
2743 cat >conftest.$ac_ext <<_ACEOF
2744 /* confdefs.h. */
2745 _ACEOF
2746 cat confdefs.h >>conftest.$ac_ext
2747 cat >>conftest.$ac_ext <<_ACEOF
2748 /* end confdefs.h. */
2751 main ()
2755 return 0;
2757 _ACEOF
2758 rm -f conftest.$ac_objext
2759 if { (ac_try="$ac_compile"
2760 case "(($ac_try" in
2761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2762 *) ac_try_echo=$ac_try;;
2763 esac
2764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2765 (eval "$ac_compile") 2>conftest.er1
2766 ac_status=$?
2767 grep -v '^ *+' conftest.er1 >conftest.err
2768 rm -f conftest.er1
2769 cat conftest.err >&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); } && {
2772 test -z "$ac_c_werror_flag" ||
2773 test ! -s conftest.err
2774 } && test -s conftest.$ac_objext; then
2775 ac_cv_prog_cc_g=yes
2776 else
2777 echo "$as_me: failed program was:" >&5
2778 sed 's/^/| /' conftest.$ac_ext >&5
2780 CFLAGS=""
2781 cat >conftest.$ac_ext <<_ACEOF
2782 /* confdefs.h. */
2783 _ACEOF
2784 cat confdefs.h >>conftest.$ac_ext
2785 cat >>conftest.$ac_ext <<_ACEOF
2786 /* end confdefs.h. */
2789 main ()
2793 return 0;
2795 _ACEOF
2796 rm -f conftest.$ac_objext
2797 if { (ac_try="$ac_compile"
2798 case "(($ac_try" in
2799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2800 *) ac_try_echo=$ac_try;;
2801 esac
2802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2803 (eval "$ac_compile") 2>conftest.er1
2804 ac_status=$?
2805 grep -v '^ *+' conftest.er1 >conftest.err
2806 rm -f conftest.er1
2807 cat conftest.err >&5
2808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2809 (exit $ac_status); } && {
2810 test -z "$ac_c_werror_flag" ||
2811 test ! -s conftest.err
2812 } && test -s conftest.$ac_objext; then
2814 else
2815 echo "$as_me: failed program was:" >&5
2816 sed 's/^/| /' conftest.$ac_ext >&5
2818 ac_c_werror_flag=$ac_save_c_werror_flag
2819 CFLAGS="-g"
2820 cat >conftest.$ac_ext <<_ACEOF
2821 /* confdefs.h. */
2822 _ACEOF
2823 cat confdefs.h >>conftest.$ac_ext
2824 cat >>conftest.$ac_ext <<_ACEOF
2825 /* end confdefs.h. */
2828 main ()
2832 return 0;
2834 _ACEOF
2835 rm -f conftest.$ac_objext
2836 if { (ac_try="$ac_compile"
2837 case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840 esac
2841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2842 (eval "$ac_compile") 2>conftest.er1
2843 ac_status=$?
2844 grep -v '^ *+' conftest.er1 >conftest.err
2845 rm -f conftest.er1
2846 cat conftest.err >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); } && {
2849 test -z "$ac_c_werror_flag" ||
2850 test ! -s conftest.err
2851 } && test -s conftest.$ac_objext; then
2852 ac_cv_prog_cc_g=yes
2853 else
2854 echo "$as_me: failed program was:" >&5
2855 sed 's/^/| /' conftest.$ac_ext >&5
2860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2867 ac_c_werror_flag=$ac_save_c_werror_flag
2869 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2870 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2871 if test "$ac_test_CFLAGS" = set; then
2872 CFLAGS=$ac_save_CFLAGS
2873 elif test $ac_cv_prog_cc_g = yes; then
2874 if test "$GCC" = yes; then
2875 CFLAGS="-g -O2"
2876 else
2877 CFLAGS="-g"
2879 else
2880 if test "$GCC" = yes; then
2881 CFLAGS="-O2"
2882 else
2883 CFLAGS=
2886 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2887 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2888 if test "${ac_cv_prog_cc_c89+set}" = set; then
2889 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 else
2891 ac_cv_prog_cc_c89=no
2892 ac_save_CC=$CC
2893 cat >conftest.$ac_ext <<_ACEOF
2894 /* confdefs.h. */
2895 _ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h. */
2899 #include <stdarg.h>
2900 #include <stdio.h>
2901 #include <sys/types.h>
2902 #include <sys/stat.h>
2903 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2904 struct buf { int x; };
2905 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2906 static char *e (p, i)
2907 char **p;
2908 int i;
2910 return p[i];
2912 static char *f (char * (*g) (char **, int), char **p, ...)
2914 char *s;
2915 va_list v;
2916 va_start (v,p);
2917 s = g (p, va_arg (v,int));
2918 va_end (v);
2919 return s;
2922 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2923 function prototypes and stuff, but not '\xHH' hex character constants.
2924 These don't provoke an error unfortunately, instead are silently treated
2925 as 'x'. The following induces an error, until -std is added to get
2926 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2927 array size at least. It's necessary to write '\x00'==0 to get something
2928 that's true only with -std. */
2929 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2931 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2932 inside strings and character constants. */
2933 #define FOO(x) 'x'
2934 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2936 int test (int i, double x);
2937 struct s1 {int (*f) (int a);};
2938 struct s2 {int (*f) (double a);};
2939 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2940 int argc;
2941 char **argv;
2943 main ()
2945 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2947 return 0;
2949 _ACEOF
2950 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2951 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2953 CC="$ac_save_CC $ac_arg"
2954 rm -f conftest.$ac_objext
2955 if { (ac_try="$ac_compile"
2956 case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2959 esac
2960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961 (eval "$ac_compile") 2>conftest.er1
2962 ac_status=$?
2963 grep -v '^ *+' conftest.er1 >conftest.err
2964 rm -f conftest.er1
2965 cat conftest.err >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); } && {
2968 test -z "$ac_c_werror_flag" ||
2969 test ! -s conftest.err
2970 } && test -s conftest.$ac_objext; then
2971 ac_cv_prog_cc_c89=$ac_arg
2972 else
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2979 rm -f core conftest.err conftest.$ac_objext
2980 test "x$ac_cv_prog_cc_c89" != "xno" && break
2981 done
2982 rm -f conftest.$ac_ext
2983 CC=$ac_save_CC
2986 # AC_CACHE_VAL
2987 case "x$ac_cv_prog_cc_c89" in
2989 { echo "$as_me:$LINENO: result: none needed" >&5
2990 echo "${ECHO_T}none needed" >&6; } ;;
2991 xno)
2992 { echo "$as_me:$LINENO: result: unsupported" >&5
2993 echo "${ECHO_T}unsupported" >&6; } ;;
2995 CC="$CC $ac_cv_prog_cc_c89"
2996 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2997 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2998 esac
3001 ac_ext=c
3002 ac_cpp='$CPP $CPPFLAGS'
3003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3007 case $ac_cv_prog_cc_stdc in
3008 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
3009 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3010 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3011 if test "${ac_cv_prog_cc_c99+set}" = set; then
3012 echo $ECHO_N "(cached) $ECHO_C" >&6
3013 else
3014 ac_cv_prog_cc_c99=no
3015 ac_save_CC=$CC
3016 cat >conftest.$ac_ext <<_ACEOF
3017 /* confdefs.h. */
3018 _ACEOF
3019 cat confdefs.h >>conftest.$ac_ext
3020 cat >>conftest.$ac_ext <<_ACEOF
3021 /* end confdefs.h. */
3022 #include <stdarg.h>
3023 #include <stdbool.h>
3024 #include <stdlib.h>
3025 #include <wchar.h>
3026 #include <stdio.h>
3028 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3029 #define debug(...) fprintf (stderr, __VA_ARGS__)
3030 #define showlist(...) puts (#__VA_ARGS__)
3031 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3032 static void
3033 test_varargs_macros (void)
3035 int x = 1234;
3036 int y = 5678;
3037 debug ("Flag");
3038 debug ("X = %d\n", x);
3039 showlist (The first, second, and third items.);
3040 report (x>y, "x is %d but y is %d", x, y);
3043 // Check long long types.
3044 #define BIG64 18446744073709551615ull
3045 #define BIG32 4294967295ul
3046 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3047 #if !BIG_OK
3048 your preprocessor is broken;
3049 #endif
3050 #if BIG_OK
3051 #else
3052 your preprocessor is broken;
3053 #endif
3054 static long long int bignum = -9223372036854775807LL;
3055 static unsigned long long int ubignum = BIG64;
3057 struct incomplete_array
3059 int datasize;
3060 double data[];
3063 struct named_init {
3064 int number;
3065 const wchar_t *name;
3066 double average;
3069 typedef const char *ccp;
3071 static inline int
3072 test_restrict (ccp restrict text)
3074 // See if C++-style comments work.
3075 // Iterate through items via the restricted pointer.
3076 // Also check for declarations in for loops.
3077 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3078 continue;
3079 return 0;
3082 // Check varargs and va_copy.
3083 static void
3084 test_varargs (const char *format, ...)
3086 va_list args;
3087 va_start (args, format);
3088 va_list args_copy;
3089 va_copy (args_copy, args);
3091 const char *str;
3092 int number;
3093 float fnumber;
3095 while (*format)
3097 switch (*format++)
3099 case 's': // string
3100 str = va_arg (args_copy, const char *);
3101 break;
3102 case 'd': // int
3103 number = va_arg (args_copy, int);
3104 break;
3105 case 'f': // float
3106 fnumber = va_arg (args_copy, double);
3107 break;
3108 default:
3109 break;
3112 va_end (args_copy);
3113 va_end (args);
3117 main ()
3120 // Check bool.
3121 _Bool success = false;
3123 // Check restrict.
3124 if (test_restrict ("String literal") == 0)
3125 success = true;
3126 char *restrict newvar = "Another string";
3128 // Check varargs.
3129 test_varargs ("s, d' f .", "string", 65, 34.234);
3130 test_varargs_macros ();
3132 // Check flexible array members.
3133 struct incomplete_array *ia =
3134 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3135 ia->datasize = 10;
3136 for (int i = 0; i < ia->datasize; ++i)
3137 ia->data[i] = i * 1.234;
3139 // Check named initializers.
3140 struct named_init ni = {
3141 .number = 34,
3142 .name = L"Test wide string",
3143 .average = 543.34343,
3146 ni.number = 58;
3148 int dynamic_array[ni.number];
3149 dynamic_array[ni.number - 1] = 543;
3151 // work around unused variable warnings
3152 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3153 || dynamic_array[ni.number - 1] != 543);
3156 return 0;
3158 _ACEOF
3159 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3161 CC="$ac_save_CC $ac_arg"
3162 rm -f conftest.$ac_objext
3163 if { (ac_try="$ac_compile"
3164 case "(($ac_try" in
3165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3167 esac
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_compile") 2>conftest.er1
3170 ac_status=$?
3171 grep -v '^ *+' conftest.er1 >conftest.err
3172 rm -f conftest.er1
3173 cat conftest.err >&5
3174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175 (exit $ac_status); } && {
3176 test -z "$ac_c_werror_flag" ||
3177 test ! -s conftest.err
3178 } && test -s conftest.$ac_objext; then
3179 ac_cv_prog_cc_c99=$ac_arg
3180 else
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3187 rm -f core conftest.err conftest.$ac_objext
3188 test "x$ac_cv_prog_cc_c99" != "xno" && break
3189 done
3190 rm -f conftest.$ac_ext
3191 CC=$ac_save_CC
3194 # AC_CACHE_VAL
3195 case "x$ac_cv_prog_cc_c99" in
3197 { echo "$as_me:$LINENO: result: none needed" >&5
3198 echo "${ECHO_T}none needed" >&6; } ;;
3199 xno)
3200 { echo "$as_me:$LINENO: result: unsupported" >&5
3201 echo "${ECHO_T}unsupported" >&6; } ;;
3203 CC="$CC $ac_cv_prog_cc_c99"
3204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3205 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3206 esac
3207 if test "x$ac_cv_prog_cc_c99" != xno; then
3208 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3209 else
3210 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3211 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3212 if test "${ac_cv_prog_cc_c89+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 else
3215 ac_cv_prog_cc_c89=no
3216 ac_save_CC=$CC
3217 cat >conftest.$ac_ext <<_ACEOF
3218 /* confdefs.h. */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h. */
3223 #include <stdarg.h>
3224 #include <stdio.h>
3225 #include <sys/types.h>
3226 #include <sys/stat.h>
3227 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3228 struct buf { int x; };
3229 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3230 static char *e (p, i)
3231 char **p;
3232 int i;
3234 return p[i];
3236 static char *f (char * (*g) (char **, int), char **p, ...)
3238 char *s;
3239 va_list v;
3240 va_start (v,p);
3241 s = g (p, va_arg (v,int));
3242 va_end (v);
3243 return s;
3246 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3247 function prototypes and stuff, but not '\xHH' hex character constants.
3248 These don't provoke an error unfortunately, instead are silently treated
3249 as 'x'. The following induces an error, until -std is added to get
3250 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3251 array size at least. It's necessary to write '\x00'==0 to get something
3252 that's true only with -std. */
3253 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3255 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3256 inside strings and character constants. */
3257 #define FOO(x) 'x'
3258 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3260 int test (int i, double x);
3261 struct s1 {int (*f) (int a);};
3262 struct s2 {int (*f) (double a);};
3263 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3264 int argc;
3265 char **argv;
3267 main ()
3269 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3271 return 0;
3273 _ACEOF
3274 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3275 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3277 CC="$ac_save_CC $ac_arg"
3278 rm -f conftest.$ac_objext
3279 if { (ac_try="$ac_compile"
3280 case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3285 (eval "$ac_compile") 2>conftest.er1
3286 ac_status=$?
3287 grep -v '^ *+' conftest.er1 >conftest.err
3288 rm -f conftest.er1
3289 cat conftest.err >&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); } && {
3292 test -z "$ac_c_werror_flag" ||
3293 test ! -s conftest.err
3294 } && test -s conftest.$ac_objext; then
3295 ac_cv_prog_cc_c89=$ac_arg
3296 else
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3303 rm -f core conftest.err conftest.$ac_objext
3304 test "x$ac_cv_prog_cc_c89" != "xno" && break
3305 done
3306 rm -f conftest.$ac_ext
3307 CC=$ac_save_CC
3310 # AC_CACHE_VAL
3311 case "x$ac_cv_prog_cc_c89" in
3313 { echo "$as_me:$LINENO: result: none needed" >&5
3314 echo "${ECHO_T}none needed" >&6; } ;;
3315 xno)
3316 { echo "$as_me:$LINENO: result: unsupported" >&5
3317 echo "${ECHO_T}unsupported" >&6; } ;;
3319 CC="$CC $ac_cv_prog_cc_c89"
3320 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3321 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3322 esac
3323 if test "x$ac_cv_prog_cc_c89" != xno; then
3324 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3325 else
3326 ac_cv_prog_cc_stdc=no
3333 esac
3334 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3335 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3336 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3340 case $ac_cv_prog_cc_stdc in
3341 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3342 echo "${ECHO_T}unsupported" >&6; } ;;
3343 '') { echo "$as_me:$LINENO: result: none needed" >&5
3344 echo "${ECHO_T}none needed" >&6; } ;;
3345 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3346 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3347 esac
3350 ac_ext=c
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3356 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3357 # On Suns, sometimes $CPP names a directory.
3358 if test -n "$CPP" && test -d "$CPP"; then
3359 CPP=
3361 if test -z "$CPP"; then
3362 if test "${ac_cv_prog_CPP+set}" = set; then
3363 echo $ECHO_N "(cached) $ECHO_C" >&6
3364 else
3365 # Double quotes because CPP needs to be expanded
3366 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3368 ac_preproc_ok=false
3369 for ac_c_preproc_warn_flag in '' yes
3371 # Use a header file that comes with gcc, so configuring glibc
3372 # with a fresh cross-compiler works.
3373 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3374 # <limits.h> exists even on freestanding compilers.
3375 # On the NeXT, cc -E runs the code through the compiler's parser,
3376 # not just through cpp. "Syntax error" is here to catch this case.
3377 cat >conftest.$ac_ext <<_ACEOF
3378 /* confdefs.h. */
3379 _ACEOF
3380 cat confdefs.h >>conftest.$ac_ext
3381 cat >>conftest.$ac_ext <<_ACEOF
3382 /* end confdefs.h. */
3383 #ifdef __STDC__
3384 # include <limits.h>
3385 #else
3386 # include <assert.h>
3387 #endif
3388 Syntax error
3389 _ACEOF
3390 if { (ac_try="$ac_cpp conftest.$ac_ext"
3391 case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394 esac
3395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3397 ac_status=$?
3398 grep -v '^ *+' conftest.er1 >conftest.err
3399 rm -f conftest.er1
3400 cat conftest.err >&5
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); } >/dev/null && {
3403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3404 test ! -s conftest.err
3405 }; then
3407 else
3408 echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 # Broken: fails on valid input.
3412 continue
3415 rm -f conftest.err conftest.$ac_ext
3417 # OK, works on sane cases. Now check whether nonexistent headers
3418 # can be detected and how.
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425 #include <ac_nonexistent.h>
3426 _ACEOF
3427 if { (ac_try="$ac_cpp conftest.$ac_ext"
3428 case "(($ac_try" in
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434 ac_status=$?
3435 grep -v '^ *+' conftest.er1 >conftest.err
3436 rm -f conftest.er1
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null && {
3440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3441 test ! -s conftest.err
3442 }; then
3443 # Broken: success on invalid input.
3444 continue
3445 else
3446 echo "$as_me: failed program was:" >&5
3447 sed 's/^/| /' conftest.$ac_ext >&5
3449 # Passes both tests.
3450 ac_preproc_ok=:
3451 break
3454 rm -f conftest.err conftest.$ac_ext
3456 done
3457 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3458 rm -f conftest.err conftest.$ac_ext
3459 if $ac_preproc_ok; then
3460 break
3463 done
3464 ac_cv_prog_CPP=$CPP
3467 CPP=$ac_cv_prog_CPP
3468 else
3469 ac_cv_prog_CPP=$CPP
3471 { echo "$as_me:$LINENO: result: $CPP" >&5
3472 echo "${ECHO_T}$CPP" >&6; }
3473 ac_preproc_ok=false
3474 for ac_c_preproc_warn_flag in '' yes
3476 # Use a header file that comes with gcc, so configuring glibc
3477 # with a fresh cross-compiler works.
3478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3479 # <limits.h> exists even on freestanding compilers.
3480 # On the NeXT, cc -E runs the code through the compiler's parser,
3481 # not just through cpp. "Syntax error" is here to catch this case.
3482 cat >conftest.$ac_ext <<_ACEOF
3483 /* confdefs.h. */
3484 _ACEOF
3485 cat confdefs.h >>conftest.$ac_ext
3486 cat >>conftest.$ac_ext <<_ACEOF
3487 /* end confdefs.h. */
3488 #ifdef __STDC__
3489 # include <limits.h>
3490 #else
3491 # include <assert.h>
3492 #endif
3493 Syntax error
3494 _ACEOF
3495 if { (ac_try="$ac_cpp conftest.$ac_ext"
3496 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499 esac
3500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3502 ac_status=$?
3503 grep -v '^ *+' conftest.er1 >conftest.err
3504 rm -f conftest.er1
3505 cat conftest.err >&5
3506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3507 (exit $ac_status); } >/dev/null && {
3508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3509 test ! -s conftest.err
3510 }; then
3512 else
3513 echo "$as_me: failed program was:" >&5
3514 sed 's/^/| /' conftest.$ac_ext >&5
3516 # Broken: fails on valid input.
3517 continue
3520 rm -f conftest.err conftest.$ac_ext
3522 # OK, works on sane cases. Now check whether nonexistent headers
3523 # can be detected and how.
3524 cat >conftest.$ac_ext <<_ACEOF
3525 /* confdefs.h. */
3526 _ACEOF
3527 cat confdefs.h >>conftest.$ac_ext
3528 cat >>conftest.$ac_ext <<_ACEOF
3529 /* end confdefs.h. */
3530 #include <ac_nonexistent.h>
3531 _ACEOF
3532 if { (ac_try="$ac_cpp conftest.$ac_ext"
3533 case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3536 esac
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3539 ac_status=$?
3540 grep -v '^ *+' conftest.er1 >conftest.err
3541 rm -f conftest.er1
3542 cat conftest.err >&5
3543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544 (exit $ac_status); } >/dev/null && {
3545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3546 test ! -s conftest.err
3547 }; then
3548 # Broken: success on invalid input.
3549 continue
3550 else
3551 echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3554 # Passes both tests.
3555 ac_preproc_ok=:
3556 break
3559 rm -f conftest.err conftest.$ac_ext
3561 done
3562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3563 rm -f conftest.err conftest.$ac_ext
3564 if $ac_preproc_ok; then
3566 else
3567 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3568 See \`config.log' for more details." >&5
3569 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3570 See \`config.log' for more details." >&2;}
3571 { (exit 1); exit 1; }; }
3574 ac_ext=c
3575 ac_cpp='$CPP $CPPFLAGS'
3576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3581 # Check for a compatible awk
3582 for ac_prog in gawk nawk
3584 # Extract the first word of "$ac_prog", so it can be a program name with args.
3585 set dummy $ac_prog; ac_word=$2
3586 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3587 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3588 if test "${ac_cv_prog_AWK+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 else
3591 if test -n "$AWK"; then
3592 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3593 else
3594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3595 for as_dir in $PATH
3597 IFS=$as_save_IFS
3598 test -z "$as_dir" && as_dir=.
3599 for ac_exec_ext in '' $ac_executable_extensions; do
3600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3601 ac_cv_prog_AWK="$ac_prog"
3602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3603 break 2
3605 done
3606 done
3607 IFS=$as_save_IFS
3611 AWK=$ac_cv_prog_AWK
3612 if test -n "$AWK"; then
3613 { echo "$as_me:$LINENO: result: $AWK" >&5
3614 echo "${ECHO_T}$AWK" >&6; }
3615 else
3616 { echo "$as_me:$LINENO: result: no" >&5
3617 echo "${ECHO_T}no" >&6; }
3621 test -n "$AWK" && break
3622 done
3624 if test "$AWK" = ""; then
3625 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3626 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3627 { (exit 1); exit 1; }; }
3629 # Extract the first word of "mmake", so it can be a program name with args.
3630 set dummy mmake; ac_word=$2
3631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3633 if test "${ac_cv_prog_MMAKE+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3635 else
3636 if test -n "$MMAKE"; then
3637 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3638 else
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3646 ac_cv_prog_MMAKE="mmake "
3647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3650 done
3651 done
3652 IFS=$as_save_IFS
3656 MMAKE=$ac_cv_prog_MMAKE
3657 if test -n "$MMAKE"; then
3658 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3659 echo "${ECHO_T}$MMAKE" >&6; }
3660 else
3661 { echo "$as_me:$LINENO: result: no" >&5
3662 echo "${ECHO_T}no" >&6; }
3667 # Perform some default variable assignments. Note all of these will be
3668 # Regenerated from the script, so there is no need to cache them.
3670 aros_host_cc="$CC"
3671 if test "$GCC" = "yes"; then
3672 aros_gcc_ld=`$CC -print-prog-name=ld`
3673 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3674 set dummy `basename $aros_gcc_ld`; ac_word=$2
3675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3677 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 else
3680 case $aros_host_ld in
3681 [\\/]* | ?:[\\/]*)
3682 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3686 for as_dir in `dirname $aros_gcc_ld`
3688 IFS=$as_save_IFS
3689 test -z "$as_dir" && as_dir=.
3690 for ac_exec_ext in '' $ac_executable_extensions; do
3691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3692 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3694 break 2
3696 done
3697 done
3698 IFS=$as_save_IFS
3701 esac
3703 aros_host_ld=$ac_cv_path_aros_host_ld
3704 if test -n "$aros_host_ld"; then
3705 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3706 echo "${ECHO_T}$aros_host_ld" >&6; }
3707 else
3708 { echo "$as_me:$LINENO: result: no" >&5
3709 echo "${ECHO_T}no" >&6; }
3714 if test "$aros_host_ld" = ""; then
3715 # Extract the first word of "ld", so it can be a program name with args.
3716 set dummy ld; ac_word=$2
3717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3719 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3720 echo $ECHO_N "(cached) $ECHO_C" >&6
3721 else
3722 case $aros_host_ld in
3723 [\\/]* | ?:[\\/]*)
3724 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728 for as_dir in $PATH
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3734 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3736 break 2
3738 done
3739 done
3740 IFS=$as_save_IFS
3743 esac
3745 aros_host_ld=$ac_cv_path_aros_host_ld
3746 if test -n "$aros_host_ld"; then
3747 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3748 echo "${ECHO_T}$aros_host_ld" >&6; }
3749 else
3750 { echo "$as_me:$LINENO: result: no" >&5
3751 echo "${ECHO_T}no" >&6; }
3756 if test "$aros_host_ld" = ""; then
3757 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3758 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3759 { (exit 1); exit 1; }; }
3761 aros_host_make="make"
3762 aros_host_cflags=$CFLAGS
3763 aros_host_ldflags=$LDFLAGS
3764 aros_host_debug="-g -O0"
3765 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3766 aros_host_mkargs="--no-print-directory"
3767 aros_host_incl="/usr/include"
3768 aros_host_exe_suffix="$EXEEXT"
3769 aros_host_lib_suffix=""
3771 for ac_prog in aclocal aclocal19 aclocal-1.9
3773 # Extract the first word of "$ac_prog", so it can be a program name with args.
3774 set dummy $ac_prog; ac_word=$2
3775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3777 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3779 else
3780 if test -n "$aros_host_aclocal"; then
3781 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3782 else
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 for as_dir in $PATH
3786 IFS=$as_save_IFS
3787 test -z "$as_dir" && as_dir=.
3788 for ac_exec_ext in '' $ac_executable_extensions; do
3789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3790 ac_cv_prog_aros_host_aclocal="$ac_prog"
3791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3792 break 2
3794 done
3795 done
3796 IFS=$as_save_IFS
3800 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3801 if test -n "$aros_host_aclocal"; then
3802 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3803 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3804 else
3805 { echo "$as_me:$LINENO: result: no" >&5
3806 echo "${ECHO_T}no" >&6; }
3810 test -n "$aros_host_aclocal" && break
3811 done
3813 for ac_prog in autoconf autoconf259 autoconf253
3815 # Extract the first word of "$ac_prog", so it can be a program name with args.
3816 set dummy $ac_prog; ac_word=$2
3817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3819 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822 if test -n "$aros_host_autoconf"; then
3823 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3824 else
3825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3826 for as_dir in $PATH
3828 IFS=$as_save_IFS
3829 test -z "$as_dir" && as_dir=.
3830 for ac_exec_ext in '' $ac_executable_extensions; do
3831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3832 ac_cv_prog_aros_host_autoconf="$ac_prog"
3833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3834 break 2
3836 done
3837 done
3838 IFS=$as_save_IFS
3842 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3843 if test -n "$aros_host_autoconf"; then
3844 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3845 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3846 else
3847 { echo "$as_me:$LINENO: result: no" >&5
3848 echo "${ECHO_T}no" >&6; }
3852 test -n "$aros_host_autoconf" && break
3853 done
3855 for ac_prog in autoheader autoheader259 autoheader253
3857 # Extract the first word of "$ac_prog", so it can be a program name with args.
3858 set dummy $ac_prog; ac_word=$2
3859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3861 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3862 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 else
3864 if test -n "$aros_host_autoheader"; then
3865 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3866 else
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_exec_ext in '' $ac_executable_extensions; do
3873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3874 ac_cv_prog_aros_host_autoheader="$ac_prog"
3875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 break 2
3878 done
3879 done
3880 IFS=$as_save_IFS
3884 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3885 if test -n "$aros_host_autoheader"; then
3886 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3887 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3888 else
3889 { echo "$as_me:$LINENO: result: no" >&5
3890 echo "${ECHO_T}no" >&6; }
3894 test -n "$aros_host_autoheader" && break
3895 done
3897 for ac_prog in automake automake19 automake-1.9
3899 # Extract the first word of "$ac_prog", so it can be a program name with args.
3900 set dummy $ac_prog; ac_word=$2
3901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3903 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3905 else
3906 if test -n "$aros_host_automake"; then
3907 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3908 else
3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 for as_dir in $PATH
3912 IFS=$as_save_IFS
3913 test -z "$as_dir" && as_dir=.
3914 for ac_exec_ext in '' $ac_executable_extensions; do
3915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3916 ac_cv_prog_aros_host_automake="$ac_prog"
3917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3918 break 2
3920 done
3921 done
3922 IFS=$as_save_IFS
3926 aros_host_automake=$ac_cv_prog_aros_host_automake
3927 if test -n "$aros_host_automake"; then
3928 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3929 echo "${ECHO_T}$aros_host_automake" >&6; }
3930 else
3931 { echo "$as_me:$LINENO: result: no" >&5
3932 echo "${ECHO_T}no" >&6; }
3936 test -n "$aros_host_automake" && break
3937 done
3940 if test "$aros_host_aclocal" = ""; then
3941 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3942 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3943 { (exit 1); exit 1; }; }
3945 if test "$aros_host_automake" = ""; then
3946 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3947 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3948 { (exit 1); exit 1; }; }
3951 case "$aros_host_cc" in
3952 *gcc*)
3953 aros_host_cc_pipe="-pipe"
3955 icc)
3956 aros_host_cc_pipe=""
3959 aros_host_cc_pipe=""
3961 esac
3963 aros_kernel_cc_includes=""
3964 aros_target_cc_includes=""
3966 # This is the main host configuration section. It is where the host
3967 # can change the values of any variables it needs to change. We do
3968 # not look at anything that compiles to the target yet, we'll get
3969 # to that later.
3971 case "$host_os" in
3972 aros*)
3973 aros_host_arch="aros"
3974 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3975 case "$host_cpu" in
3976 *i?86*)
3977 aros_host_cpu="i386"
3979 *x86_64*)
3980 aros_host_cpu="x86_64"
3982 *powerpc*)
3983 aros_host_cpu="ppc"
3986 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3987 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3988 aros_host_cpu="$host_cpu"
3990 esac
3993 linux*)
3994 aros_host_arch="linux"
3995 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3996 case "$host_cpu" in
3997 *i?86*)
3998 aros_host_cpu="i386"
4000 *x86_64*)
4001 aros_host_cpu="x86_64"
4003 *m68k*)
4004 aros_host_cpu="m68k"
4006 *powerpc*)
4007 aros_host_cpu="ppc"
4009 *arm*)
4010 aros_host_cpu="arm"
4013 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4014 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4015 aros_host_cpu="$host_cpu"
4017 esac
4020 freebsd*)
4021 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
4022 aros_host_make="gmake"
4023 aros_host_arch="freebsd"
4024 aros_host_cpu="i386"
4026 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
4028 case $host_os in
4029 freebsd[234]*)
4030 aros_object_format="elf_i386"
4034 aros_object_format="elf_i386_fbsd"
4036 esac
4040 darwin*)
4041 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4042 aros_host_arch="darwin"
4043 case "$host_cpu" in
4044 *i?86*)
4045 aros_host_cpu="i386"
4047 *x86_64*)
4048 aros_host_cpu="x86_64"
4050 *powerpc*)
4051 aros_host_cpu="ppc"
4054 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&5
4055 echo "$as_me: WARNING: \"Unknown CPU for Darwin host -- $host_cpu\"" >&2;}
4056 aros_host_cpu="$host_cpu"
4058 esac
4060 aros_host_ldflags="$aros_host_ldflags -liconv"
4064 dragonfly*)
4065 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4066 aros_host_make="gmake"
4067 aros_host_arch="dragonfly"
4068 case $host_cpu in
4069 *i?86*)
4070 aros_host_cpu="i386"
4072 *amd64*)
4073 aros_host_cpu="x86_64"
4076 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4077 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4078 aros_host_cpu="$host_cpu"
4080 esac
4083 netbsd*)
4084 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4085 aros_host_make="gmake"
4086 aros_host_arch="netbsd"
4087 case "$host_cpu" in
4088 *i?86*)
4089 aros_host_cpu="i386"
4091 *m68k*)
4092 aros_host_cpu="m68k"
4095 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4096 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4097 aros_host_cpu="$host_cpu"
4099 esac
4100 aros_host_lib_suffix=".0.0"
4103 openbsd*)
4104 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4105 aros_host_make="gmake"
4106 aros_host_arch="openbsd"
4107 case "$host_cpu" in
4108 *i?86*)
4109 aros_host_cpu="i386"
4112 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4113 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4114 aros_host_cpu="$host_cpu"
4116 esac
4119 solaris*)
4120 aros_host_arch="solaris"
4121 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4122 case "$host_cpu" in
4123 *i?86*)
4124 aros_host_cpu="i386"
4126 *sparc*)
4127 aros_host_cpu="sparc"
4130 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4131 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4132 aros_host_cpu="$host_cpu"
4134 esac
4137 morphos*)
4138 aros_host_arch="morphos"
4139 aros_host_cpu="ppc"
4142 amiga*)
4143 aros_host_arch="amiga"
4144 SORT="/gg/bin/sort"
4145 TEST="/gg/bin/test"
4146 UNIQ="/gg/bin/uniq"
4147 FOR="for"
4148 TOUCH="/gg/bin/touch"
4149 case "$host_cpu" in
4150 *m68k*)
4151 aros_host_cpu="m68k"
4153 *powerpc*)
4154 aros_host_cpu="ppc"
4157 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4158 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4159 aros_host_cpu="$host_cpu"
4161 esac
4164 cygwin*)
4165 aros_host_arch="cygwin"
4166 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4167 case "$host_cpu" in
4168 *i?86*)
4169 aros_host_cpu="i386"
4172 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4173 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4174 aros_host_cpu="$host_cpu"
4176 esac
4179 mingw32*)
4180 aros_host_arch="mingw32"
4181 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4182 case "$host_cpu" in
4183 *i?86*)
4184 aros_host_cpu="i386"
4187 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4188 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4189 aros_host_cpu="$host_cpu"
4191 esac
4194 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4195 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4196 { (exit 1); exit 1; }; }
4198 esac
4200 # Extract the first word of "ar", so it can be a program name with args.
4201 set dummy ar; ac_word=$2
4202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4204 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4205 echo $ECHO_N "(cached) $ECHO_C" >&6
4206 else
4207 if test -n "$aros_host_ar"; then
4208 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4209 else
4210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4211 for as_dir in $PATH
4213 IFS=$as_save_IFS
4214 test -z "$as_dir" && as_dir=.
4215 for ac_exec_ext in '' $ac_executable_extensions; do
4216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4217 ac_cv_prog_aros_host_ar="ar cr"
4218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4219 break 2
4221 done
4222 done
4223 IFS=$as_save_IFS
4227 aros_host_ar=$ac_cv_prog_aros_host_ar
4228 if test -n "$aros_host_ar"; then
4229 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4230 echo "${ECHO_T}$aros_host_ar" >&6; }
4231 else
4232 { echo "$as_me:$LINENO: result: no" >&5
4233 echo "${ECHO_T}no" >&6; }
4237 if test "$aros_host_ar" = ""; then
4238 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4239 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4240 { (exit 1); exit 1; }; }
4242 # Extract the first word of "ranlib", so it can be a program name with args.
4243 set dummy ranlib; ac_word=$2
4244 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4245 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4246 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4248 else
4249 if test -n "$aros_host_ranlib"; then
4250 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4251 else
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 for as_dir in $PATH
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_prog_aros_host_ranlib="ranlib "
4260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4263 done
4264 done
4265 IFS=$as_save_IFS
4269 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4270 if test -n "$aros_host_ranlib"; then
4271 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4272 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4273 else
4274 { echo "$as_me:$LINENO: result: no" >&5
4275 echo "${ECHO_T}no" >&6; }
4279 if test "$aros_host_ranlib" = ""; then
4280 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4281 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4282 { (exit 1); exit 1; }; }
4284 # Extract the first word of "strip", so it can be a program name with args.
4285 set dummy strip; ac_word=$2
4286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4288 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4289 echo $ECHO_N "(cached) $ECHO_C" >&6
4290 else
4291 if test -n "$aros_host_strip"; then
4292 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4293 else
4294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4295 for as_dir in $PATH
4297 IFS=$as_save_IFS
4298 test -z "$as_dir" && as_dir=.
4299 for ac_exec_ext in '' $ac_executable_extensions; do
4300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4301 ac_cv_prog_aros_host_strip="strip "
4302 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4303 break 2
4305 done
4306 done
4307 IFS=$as_save_IFS
4311 aros_host_strip=$ac_cv_prog_aros_host_strip
4312 if test -n "$aros_host_strip"; then
4313 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4314 echo "${ECHO_T}$aros_host_strip" >&6; }
4315 else
4316 { echo "$as_me:$LINENO: result: no" >&5
4317 echo "${ECHO_T}no" >&6; }
4321 if test "$aros_host_strip" = ""; then
4322 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4323 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4324 { (exit 1); exit 1; }; }
4327 # Extract the first word of "rm", so it can be a program name with args.
4328 set dummy rm; ac_word=$2
4329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4331 if test "${ac_cv_prog_RM+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334 if test -n "$RM"; then
4335 ac_cv_prog_RM="$RM" # Let the user override the test.
4336 else
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4340 IFS=$as_save_IFS
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_prog_RM="rm -rf"
4345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 break 2
4348 done
4349 done
4350 IFS=$as_save_IFS
4354 RM=$ac_cv_prog_RM
4355 if test -n "$RM"; then
4356 { echo "$as_me:$LINENO: result: $RM" >&5
4357 echo "${ECHO_T}$RM" >&6; }
4358 else
4359 { echo "$as_me:$LINENO: result: no" >&5
4360 echo "${ECHO_T}no" >&6; }
4364 if test "$RM" = ""; then
4365 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4366 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4367 { (exit 1); exit 1; }; }
4369 # Extract the first word of "cp", so it can be a program name with args.
4370 set dummy cp; ac_word=$2
4371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373 if test "${ac_cv_prog_CP+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376 if test -n "$CP"; then
4377 ac_cv_prog_CP="$CP" # Let the user override the test.
4378 else
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386 ac_cv_prog_CP="cp "
4387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 break 2
4390 done
4391 done
4392 IFS=$as_save_IFS
4396 CP=$ac_cv_prog_CP
4397 if test -n "$CP"; then
4398 { echo "$as_me:$LINENO: result: $CP" >&5
4399 echo "${ECHO_T}$CP" >&6; }
4400 else
4401 { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4406 if test "$CP" = ""; then
4407 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4408 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4409 { (exit 1); exit 1; }; }
4411 # Extract the first word of "mv", so it can be a program name with args.
4412 set dummy mv; ac_word=$2
4413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4415 if test "${ac_cv_prog_MV+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418 if test -n "$MV"; then
4419 ac_cv_prog_MV="$MV" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_MV="mv "
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4432 done
4433 done
4434 IFS=$as_save_IFS
4438 MV=$ac_cv_prog_MV
4439 if test -n "$MV"; then
4440 { echo "$as_me:$LINENO: result: $MV" >&5
4441 echo "${ECHO_T}$MV" >&6; }
4442 else
4443 { echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6; }
4448 if test "$MV" = ""; then
4449 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4450 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4451 { (exit 1); exit 1; }; }
4453 # Extract the first word of "echo", so it can be a program name with args.
4454 set dummy echo; ac_word=$2
4455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4457 if test "${ac_cv_prog_ECHO+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460 if test -n "$ECHO"; then
4461 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4462 else
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470 ac_cv_prog_ECHO="echo "
4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 break 2
4474 done
4475 done
4476 IFS=$as_save_IFS
4480 ECHO=$ac_cv_prog_ECHO
4481 if test -n "$ECHO"; then
4482 { echo "$as_me:$LINENO: result: $ECHO" >&5
4483 echo "${ECHO_T}$ECHO" >&6; }
4484 else
4485 { echo "$as_me:$LINENO: result: no" >&5
4486 echo "${ECHO_T}no" >&6; }
4490 if test "$ECHO" = ""; then
4491 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4492 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4493 { (exit 1); exit 1; }; }
4495 # Extract the first word of "mkdir", so it can be a program name with args.
4496 set dummy mkdir; ac_word=$2
4497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4499 if test "${ac_cv_prog_MKDIR+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502 if test -n "$MKDIR"; then
4503 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4504 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_MKDIR="mkdir -p"
4513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4516 done
4517 done
4518 IFS=$as_save_IFS
4522 MKDIR=$ac_cv_prog_MKDIR
4523 if test -n "$MKDIR"; then
4524 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4525 echo "${ECHO_T}$MKDIR" >&6; }
4526 else
4527 { echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6; }
4532 if test "$MKDIR" = ""; then
4533 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4534 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4535 { (exit 1); exit 1; }; }
4537 # Extract the first word of "touch", so it can be a program name with args.
4538 set dummy touch; ac_word=$2
4539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4541 if test "${ac_cv_prog_TOUCH+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 if test -n "$TOUCH"; then
4545 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4546 else
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554 ac_cv_prog_TOUCH="touch "
4555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 break 2
4558 done
4559 done
4560 IFS=$as_save_IFS
4564 TOUCH=$ac_cv_prog_TOUCH
4565 if test -n "$TOUCH"; then
4566 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4567 echo "${ECHO_T}$TOUCH" >&6; }
4568 else
4569 { echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6; }
4574 if test "$TOUCH" = ""; then
4575 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4576 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4577 { (exit 1); exit 1; }; }
4579 # Extract the first word of "sort", so it can be a program name with args.
4580 set dummy sort; ac_word=$2
4581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4583 if test "${ac_cv_prog_SORT+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586 if test -n "$SORT"; then
4587 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4588 else
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596 ac_cv_prog_SORT="sort "
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4600 done
4601 done
4602 IFS=$as_save_IFS
4606 SORT=$ac_cv_prog_SORT
4607 if test -n "$SORT"; then
4608 { echo "$as_me:$LINENO: result: $SORT" >&5
4609 echo "${ECHO_T}$SORT" >&6; }
4610 else
4611 { echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6; }
4616 if test "$SORT" = ""; then
4617 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4618 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4619 { (exit 1); exit 1; }; }
4621 # Extract the first word of "uniq", so it can be a program name with args.
4622 set dummy uniq; ac_word=$2
4623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4625 if test "${ac_cv_prog_UNIQ+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628 if test -n "$UNIQ"; then
4629 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_prog_UNIQ="uniq "
4639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4642 done
4643 done
4644 IFS=$as_save_IFS
4648 UNIQ=$ac_cv_prog_UNIQ
4649 if test -n "$UNIQ"; then
4650 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4651 echo "${ECHO_T}$UNIQ" >&6; }
4652 else
4653 { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4658 if test "$UNIQ" = ""; then
4659 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4660 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4661 { (exit 1); exit 1; }; }
4663 # Extract the first word of "true", so it can be a program name with args.
4664 set dummy true; ac_word=$2
4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667 if test "${ac_cv_prog_NOP+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670 if test -n "$NOP"; then
4671 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_NOP="true "
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4684 done
4685 done
4686 IFS=$as_save_IFS
4690 NOP=$ac_cv_prog_NOP
4691 if test -n "$NOP"; then
4692 { echo "$as_me:$LINENO: result: $NOP" >&5
4693 echo "${ECHO_T}$NOP" >&6; }
4694 else
4695 { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4700 if test "$NOP" = ""; then
4701 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4702 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4703 { (exit 1); exit 1; }; }
4705 # Extract the first word of "cat", so it can be a program name with args.
4706 set dummy cat; ac_word=$2
4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709 if test "${ac_cv_prog_CAT+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712 if test -n "$CAT"; then
4713 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4714 else
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_CAT="cat "
4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 break 2
4726 done
4727 done
4728 IFS=$as_save_IFS
4732 CAT=$ac_cv_prog_CAT
4733 if test -n "$CAT"; then
4734 { echo "$as_me:$LINENO: result: $CAT" >&5
4735 echo "${ECHO_T}$CAT" >&6; }
4736 else
4737 { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4742 if test "$CAT" = ""; then
4743 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4744 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4745 { (exit 1); exit 1; }; }
4747 # Extract the first word of "bison", so it can be a program name with args.
4748 set dummy bison; ac_word=$2
4749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4751 if test "${ac_cv_prog_BISON+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754 if test -n "$BISON"; then
4755 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_prog_BISON="bison "
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4768 done
4769 done
4770 IFS=$as_save_IFS
4774 BISON=$ac_cv_prog_BISON
4775 if test -n "$BISON"; then
4776 { echo "$as_me:$LINENO: result: $BISON" >&5
4777 echo "${ECHO_T}$BISON" >&6; }
4778 else
4779 { echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6; }
4784 if test "$BISON" = ""; then
4785 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4786 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4787 { (exit 1); exit 1; }; }
4789 # Extract the first word of "flex", so it can be a program name with args.
4790 set dummy flex; ac_word=$2
4791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4793 if test "${ac_cv_prog_FLEX+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796 if test -n "$FLEX"; then
4797 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4798 else
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806 ac_cv_prog_FLEX="flex "
4807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4808 break 2
4810 done
4811 done
4812 IFS=$as_save_IFS
4816 FLEX=$ac_cv_prog_FLEX
4817 if test -n "$FLEX"; then
4818 { echo "$as_me:$LINENO: result: $FLEX" >&5
4819 echo "${ECHO_T}$FLEX" >&6; }
4820 else
4821 { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4826 if test "$FLEX" = ""; then
4827 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4828 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4829 { (exit 1); exit 1; }; }
4831 # Extract the first word of "pngtopnm", so it can be a program name with args.
4832 set dummy pngtopnm; ac_word=$2
4833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4835 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838 if test -n "$PNGTOPNM"; then
4839 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4840 else
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4844 IFS=$as_save_IFS
4845 test -z "$as_dir" && as_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848 ac_cv_prog_PNGTOPNM="pngtopnm "
4849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 break 2
4852 done
4853 done
4854 IFS=$as_save_IFS
4858 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4859 if test -n "$PNGTOPNM"; then
4860 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4861 echo "${ECHO_T}$PNGTOPNM" >&6; }
4862 else
4863 { echo "$as_me:$LINENO: result: no" >&5
4864 echo "${ECHO_T}no" >&6; }
4868 if test "$PNGTOPNM" = ""; then
4869 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4870 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4871 { (exit 1); exit 1; }; }
4873 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4874 set dummy ppmtoilbm; ac_word=$2
4875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4877 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4878 echo $ECHO_N "(cached) $ECHO_C" >&6
4879 else
4880 if test -n "$PPMTOILBM"; then
4881 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4882 else
4883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 for as_dir in $PATH
4886 IFS=$as_save_IFS
4887 test -z "$as_dir" && as_dir=.
4888 for ac_exec_ext in '' $ac_executable_extensions; do
4889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4890 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4892 break 2
4894 done
4895 done
4896 IFS=$as_save_IFS
4900 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4901 if test -n "$PPMTOILBM"; then
4902 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4903 echo "${ECHO_T}$PPMTOILBM" >&6; }
4904 else
4905 { echo "$as_me:$LINENO: result: no" >&5
4906 echo "${ECHO_T}no" >&6; }
4910 if test "$PPMTOILBM" = ""; then
4911 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4912 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4913 { (exit 1); exit 1; }; }
4915 # Extract the first word of "sed", so it can be a program name with args.
4916 set dummy sed; ac_word=$2
4917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4919 if test "${ac_cv_prog_SED+set}" = set; then
4920 echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922 if test -n "$SED"; then
4923 ac_cv_prog_SED="$SED" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4928 IFS=$as_save_IFS
4929 test -z "$as_dir" && as_dir=.
4930 for ac_exec_ext in '' $ac_executable_extensions; do
4931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932 ac_cv_prog_SED="sed "
4933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934 break 2
4936 done
4937 done
4938 IFS=$as_save_IFS
4942 SED=$ac_cv_prog_SED
4943 if test -n "$SED"; then
4944 { echo "$as_me:$LINENO: result: $SED" >&5
4945 echo "${ECHO_T}$SED" >&6; }
4946 else
4947 { echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6; }
4952 if test "$SED" = ""; then
4953 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4954 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4955 { (exit 1); exit 1; }; }
4957 # Extract the first word of "chmod", so it can be a program name with args.
4958 set dummy chmod; ac_word=$2
4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4961 if test "${ac_cv_prog_CHMOD+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964 if test -n "$CHMOD"; then
4965 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4966 else
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4974 ac_cv_prog_CHMOD="chmod "
4975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 break 2
4978 done
4979 done
4980 IFS=$as_save_IFS
4984 CHMOD=$ac_cv_prog_CHMOD
4985 if test -n "$CHMOD"; then
4986 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4987 echo "${ECHO_T}$CHMOD" >&6; }
4988 else
4989 { echo "$as_me:$LINENO: result: no" >&5
4990 echo "${ECHO_T}no" >&6; }
4994 if test "$CHMOD" = ""; then
4995 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4996 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4997 { (exit 1); exit 1; }; }
5004 if test -n "$PYTHON"; then
5005 # If the user set $PYTHON, use it and don't search something else.
5006 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.5" >&5
5007 echo $ECHO_N "checking whether $PYTHON version >= 2.5... $ECHO_C" >&6; }
5008 prog="import sys, string
5009 # split strings by '.' and convert to numeric. Append some zeros
5010 # because we need at least 4 digits for the hex conversion.
5011 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5012 minverhex = 0
5013 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5014 sys.exit(sys.hexversion < minverhex)"
5015 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
5016 ($PYTHON -c "$prog") >&5 2>&5
5017 ac_status=$?
5018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5019 (exit $ac_status); }; then
5020 { echo "$as_me:$LINENO: result: yes" >&5
5021 echo "${ECHO_T}yes" >&6; }
5022 else
5023 { { echo "$as_me:$LINENO: error: too old" >&5
5024 echo "$as_me: error: too old" >&2;}
5025 { (exit 1); exit 1; }; }
5028 am_display_PYTHON=$PYTHON
5029 else
5030 # Otherwise, try each interpreter until we find one that satisfies
5031 # VERSION.
5032 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.5" >&5
5033 echo $ECHO_N "checking for a Python interpreter with version >= 2.5... $ECHO_C" >&6; }
5034 if test "${am_cv_pathless_PYTHON+set}" = set; then
5035 echo $ECHO_N "(cached) $ECHO_C" >&6
5036 else
5038 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
5039 test "$am_cv_pathless_PYTHON" = none && break
5040 prog="import sys, string
5041 # split strings by '.' and convert to numeric. Append some zeros
5042 # because we need at least 4 digits for the hex conversion.
5043 minver = map(int, string.split('2.5', '.')) + [0, 0, 0]
5044 minverhex = 0
5045 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
5046 sys.exit(sys.hexversion < minverhex)"
5047 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
5048 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
5049 ac_status=$?
5050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5051 (exit $ac_status); }; then
5052 break
5055 done
5057 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5058 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
5059 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5060 if test "$am_cv_pathless_PYTHON" = none; then
5061 PYTHON=:
5062 else
5063 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5064 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5067 if test "${ac_cv_path_PYTHON+set}" = set; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 else
5070 case $PYTHON in
5071 [\\/]* | ?:[\\/]*)
5072 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076 for as_dir in $PATH
5078 IFS=$as_save_IFS
5079 test -z "$as_dir" && as_dir=.
5080 for ac_exec_ext in '' $ac_executable_extensions; do
5081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5082 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5084 break 2
5086 done
5087 done
5088 IFS=$as_save_IFS
5091 esac
5093 PYTHON=$ac_cv_path_PYTHON
5094 if test -n "$PYTHON"; then
5095 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5096 echo "${ECHO_T}$PYTHON" >&6; }
5097 else
5098 { echo "$as_me:$LINENO: result: no" >&5
5099 echo "${ECHO_T}no" >&6; }
5104 am_display_PYTHON=$am_cv_pathless_PYTHON
5108 if test "$PYTHON" = :; then
5109 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5110 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5111 { (exit 1); exit 1; }; }
5112 else
5115 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5116 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5117 if test "${am_cv_python_version+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5122 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5123 echo "${ECHO_T}$am_cv_python_version" >&6; }
5124 PYTHON_VERSION=$am_cv_python_version
5128 PYTHON_PREFIX='${prefix}'
5130 PYTHON_EXEC_PREFIX='${exec_prefix}'
5134 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5135 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5136 if test "${am_cv_python_platform+set}" = set; then
5137 echo $ECHO_N "(cached) $ECHO_C" >&6
5138 else
5139 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5141 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5142 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5143 PYTHON_PLATFORM=$am_cv_python_platform
5148 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5149 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5150 if test "${am_cv_python_pythondir+set}" = set; then
5151 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 else
5153 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5154 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5156 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5157 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5158 pythondir=$am_cv_python_pythondir
5162 pkgpythondir=\${pythondir}/$PACKAGE
5165 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5166 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5167 if test "${am_cv_python_pyexecdir+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5171 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5173 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5174 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5175 pyexecdir=$am_cv_python_pyexecdir
5179 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5187 FOR=for
5189 IF=if
5191 TEST=test
5193 CMP=cmp
5197 # Check for some includes for the X11 HIDD and the kernel
5200 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5201 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5202 if test "${ac_cv_path_GREP+set}" = set; then
5203 echo $ECHO_N "(cached) $ECHO_C" >&6
5204 else
5205 # Extract the first word of "grep ggrep" to use in msg output
5206 if test -z "$GREP"; then
5207 set dummy grep ggrep; ac_prog_name=$2
5208 if test "${ac_cv_path_GREP+set}" = set; then
5209 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 else
5211 ac_path_GREP_found=false
5212 # Loop through the user's path and test for each of PROGNAME-LIST
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5216 IFS=$as_save_IFS
5217 test -z "$as_dir" && as_dir=.
5218 for ac_prog in grep ggrep; do
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5221 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5222 # Check for GNU ac_path_GREP and select it if it is found.
5223 # Check for GNU $ac_path_GREP
5224 case `"$ac_path_GREP" --version 2>&1` in
5225 *GNU*)
5226 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5228 ac_count=0
5229 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5230 while :
5232 cat "conftest.in" "conftest.in" >"conftest.tmp"
5233 mv "conftest.tmp" "conftest.in"
5234 cp "conftest.in" "conftest.nl"
5235 echo 'GREP' >> "conftest.nl"
5236 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5237 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5238 ac_count=`expr $ac_count + 1`
5239 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5240 # Best one so far, save it but keep looking for a better one
5241 ac_cv_path_GREP="$ac_path_GREP"
5242 ac_path_GREP_max=$ac_count
5244 # 10*(2^10) chars as input seems more than enough
5245 test $ac_count -gt 10 && break
5246 done
5247 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5248 esac
5251 $ac_path_GREP_found && break 3
5252 done
5253 done
5255 done
5256 IFS=$as_save_IFS
5261 GREP="$ac_cv_path_GREP"
5262 if test -z "$GREP"; then
5263 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5264 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5265 { (exit 1); exit 1; }; }
5268 else
5269 ac_cv_path_GREP=$GREP
5274 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5275 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5276 GREP="$ac_cv_path_GREP"
5279 { echo "$as_me:$LINENO: checking for egrep" >&5
5280 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5281 if test "${ac_cv_path_EGREP+set}" = set; then
5282 echo $ECHO_N "(cached) $ECHO_C" >&6
5283 else
5284 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5285 then ac_cv_path_EGREP="$GREP -E"
5286 else
5287 # Extract the first word of "egrep" to use in msg output
5288 if test -z "$EGREP"; then
5289 set dummy egrep; ac_prog_name=$2
5290 if test "${ac_cv_path_EGREP+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 ac_path_EGREP_found=false
5294 # Loop through the user's path and test for each of PROGNAME-LIST
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5298 IFS=$as_save_IFS
5299 test -z "$as_dir" && as_dir=.
5300 for ac_prog in egrep; do
5301 for ac_exec_ext in '' $ac_executable_extensions; do
5302 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5303 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5304 # Check for GNU ac_path_EGREP and select it if it is found.
5305 # Check for GNU $ac_path_EGREP
5306 case `"$ac_path_EGREP" --version 2>&1` in
5307 *GNU*)
5308 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5310 ac_count=0
5311 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5312 while :
5314 cat "conftest.in" "conftest.in" >"conftest.tmp"
5315 mv "conftest.tmp" "conftest.in"
5316 cp "conftest.in" "conftest.nl"
5317 echo 'EGREP' >> "conftest.nl"
5318 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5319 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5320 ac_count=`expr $ac_count + 1`
5321 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5322 # Best one so far, save it but keep looking for a better one
5323 ac_cv_path_EGREP="$ac_path_EGREP"
5324 ac_path_EGREP_max=$ac_count
5326 # 10*(2^10) chars as input seems more than enough
5327 test $ac_count -gt 10 && break
5328 done
5329 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5330 esac
5333 $ac_path_EGREP_found && break 3
5334 done
5335 done
5337 done
5338 IFS=$as_save_IFS
5343 EGREP="$ac_cv_path_EGREP"
5344 if test -z "$EGREP"; then
5345 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5346 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5347 { (exit 1); exit 1; }; }
5350 else
5351 ac_cv_path_EGREP=$EGREP
5357 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5358 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5359 EGREP="$ac_cv_path_EGREP"
5362 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5363 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5364 if test "${ac_cv_header_stdc+set}" = set; then
5365 echo $ECHO_N "(cached) $ECHO_C" >&6
5366 else
5367 cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h. */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373 #include <stdlib.h>
5374 #include <stdarg.h>
5375 #include <string.h>
5376 #include <float.h>
5379 main ()
5383 return 0;
5385 _ACEOF
5386 rm -f conftest.$ac_objext
5387 if { (ac_try="$ac_compile"
5388 case "(($ac_try" in
5389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5390 *) ac_try_echo=$ac_try;;
5391 esac
5392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5393 (eval "$ac_compile") 2>conftest.er1
5394 ac_status=$?
5395 grep -v '^ *+' conftest.er1 >conftest.err
5396 rm -f conftest.er1
5397 cat conftest.err >&5
5398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5399 (exit $ac_status); } && {
5400 test -z "$ac_c_werror_flag" ||
5401 test ! -s conftest.err
5402 } && test -s conftest.$ac_objext; then
5403 ac_cv_header_stdc=yes
5404 else
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5408 ac_cv_header_stdc=no
5411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413 if test $ac_cv_header_stdc = yes; then
5414 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5415 cat >conftest.$ac_ext <<_ACEOF
5416 /* confdefs.h. */
5417 _ACEOF
5418 cat confdefs.h >>conftest.$ac_ext
5419 cat >>conftest.$ac_ext <<_ACEOF
5420 /* end confdefs.h. */
5421 #include <string.h>
5423 _ACEOF
5424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5425 $EGREP "memchr" >/dev/null 2>&1; then
5427 else
5428 ac_cv_header_stdc=no
5430 rm -f -r conftest*
5434 if test $ac_cv_header_stdc = yes; then
5435 # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
5444 _ACEOF
5445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5446 $EGREP "free" >/dev/null 2>&1; then
5448 else
5449 ac_cv_header_stdc=no
5451 rm -f -r conftest*
5455 if test $ac_cv_header_stdc = yes; then
5456 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5457 if test "$cross_compiling" = yes; then
5459 else
5460 cat >conftest.$ac_ext <<_ACEOF
5461 /* confdefs.h. */
5462 _ACEOF
5463 cat confdefs.h >>conftest.$ac_ext
5464 cat >>conftest.$ac_ext <<_ACEOF
5465 /* end confdefs.h. */
5466 #include <ctype.h>
5467 #include <stdlib.h>
5468 #if ((' ' & 0x0FF) == 0x020)
5469 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5470 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5471 #else
5472 # define ISLOWER(c) \
5473 (('a' <= (c) && (c) <= 'i') \
5474 || ('j' <= (c) && (c) <= 'r') \
5475 || ('s' <= (c) && (c) <= 'z'))
5476 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5477 #endif
5479 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5481 main ()
5483 int i;
5484 for (i = 0; i < 256; i++)
5485 if (XOR (islower (i), ISLOWER (i))
5486 || toupper (i) != TOUPPER (i))
5487 return 2;
5488 return 0;
5490 _ACEOF
5491 rm -f conftest$ac_exeext
5492 if { (ac_try="$ac_link"
5493 case "(($ac_try" in
5494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5495 *) ac_try_echo=$ac_try;;
5496 esac
5497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5498 (eval "$ac_link") 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5502 { (case "(($ac_try" in
5503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5504 *) ac_try_echo=$ac_try;;
5505 esac
5506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5507 (eval "$ac_try") 2>&5
5508 ac_status=$?
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; }; then
5512 else
5513 echo "$as_me: program exited with status $ac_status" >&5
5514 echo "$as_me: failed program was:" >&5
5515 sed 's/^/| /' conftest.$ac_ext >&5
5517 ( exit $ac_status )
5518 ac_cv_header_stdc=no
5520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5526 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5527 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5528 if test $ac_cv_header_stdc = yes; then
5530 cat >>confdefs.h <<\_ACEOF
5531 #define STDC_HEADERS 1
5532 _ACEOF
5536 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5546 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5547 inttypes.h stdint.h unistd.h
5549 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5554 else
5555 cat >conftest.$ac_ext <<_ACEOF
5556 /* confdefs.h. */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5561 $ac_includes_default
5563 #include <$ac_header>
5564 _ACEOF
5565 rm -f conftest.$ac_objext
5566 if { (ac_try="$ac_compile"
5567 case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5570 esac
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_compile") 2>conftest.er1
5573 ac_status=$?
5574 grep -v '^ *+' conftest.er1 >conftest.err
5575 rm -f conftest.er1
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } && {
5579 test -z "$ac_c_werror_flag" ||
5580 test ! -s conftest.err
5581 } && test -s conftest.$ac_objext; then
5582 eval "$as_ac_Header=yes"
5583 else
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5587 eval "$as_ac_Header=no"
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 ac_res=`eval echo '${'$as_ac_Header'}'`
5593 { echo "$as_me:$LINENO: result: $ac_res" >&5
5594 echo "${ECHO_T}$ac_res" >&6; }
5595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5596 cat >>confdefs.h <<_ACEOF
5597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5598 _ACEOF
5602 done
5614 for ac_header in sys/ipc.h sys/shm.h \
5615 sys/mmap.h sys/mman.h sysexits.h \
5616 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5620 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5624 echo $ECHO_N "(cached) $ECHO_C" >&6
5626 ac_res=`eval echo '${'$as_ac_Header'}'`
5627 { echo "$as_me:$LINENO: result: $ac_res" >&5
5628 echo "${ECHO_T}$ac_res" >&6; }
5629 else
5630 # Is the header compilable?
5631 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5632 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5633 cat >conftest.$ac_ext <<_ACEOF
5634 /* confdefs.h. */
5635 _ACEOF
5636 cat confdefs.h >>conftest.$ac_ext
5637 cat >>conftest.$ac_ext <<_ACEOF
5638 /* end confdefs.h. */
5639 $ac_includes_default
5640 #include <$ac_header>
5641 _ACEOF
5642 rm -f conftest.$ac_objext
5643 if { (ac_try="$ac_compile"
5644 case "(($ac_try" in
5645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5646 *) ac_try_echo=$ac_try;;
5647 esac
5648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5649 (eval "$ac_compile") 2>conftest.er1
5650 ac_status=$?
5651 grep -v '^ *+' conftest.er1 >conftest.err
5652 rm -f conftest.er1
5653 cat conftest.err >&5
5654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5655 (exit $ac_status); } && {
5656 test -z "$ac_c_werror_flag" ||
5657 test ! -s conftest.err
5658 } && test -s conftest.$ac_objext; then
5659 ac_header_compiler=yes
5660 else
5661 echo "$as_me: failed program was:" >&5
5662 sed 's/^/| /' conftest.$ac_ext >&5
5664 ac_header_compiler=no
5667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5669 echo "${ECHO_T}$ac_header_compiler" >&6; }
5671 # Is the header present?
5672 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5673 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5674 cat >conftest.$ac_ext <<_ACEOF
5675 /* confdefs.h. */
5676 _ACEOF
5677 cat confdefs.h >>conftest.$ac_ext
5678 cat >>conftest.$ac_ext <<_ACEOF
5679 /* end confdefs.h. */
5680 #include <$ac_header>
5681 _ACEOF
5682 if { (ac_try="$ac_cpp conftest.$ac_ext"
5683 case "(($ac_try" in
5684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5685 *) ac_try_echo=$ac_try;;
5686 esac
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5689 ac_status=$?
5690 grep -v '^ *+' conftest.er1 >conftest.err
5691 rm -f conftest.er1
5692 cat conftest.err >&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } >/dev/null && {
5695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5696 test ! -s conftest.err
5697 }; then
5698 ac_header_preproc=yes
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5703 ac_header_preproc=no
5706 rm -f conftest.err conftest.$ac_ext
5707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5708 echo "${ECHO_T}$ac_header_preproc" >&6; }
5710 # So? What about this header?
5711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5712 yes:no: )
5713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5717 ac_header_preproc=yes
5719 no:yes:* )
5720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5734 esac
5735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5738 echo $ECHO_N "(cached) $ECHO_C" >&6
5739 else
5740 eval "$as_ac_Header=\$ac_header_preproc"
5742 ac_res=`eval echo '${'$as_ac_Header'}'`
5743 { echo "$as_me:$LINENO: result: $ac_res" >&5
5744 echo "${ECHO_T}$ac_res" >&6; }
5747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5748 cat >>confdefs.h <<_ACEOF
5749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5750 _ACEOF
5754 done
5758 for ac_header in sys/mount.h
5760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 else
5766 cat >conftest.$ac_ext <<_ACEOF
5767 /* confdefs.h. */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5772 #include <sys/param.h>
5774 #include <$ac_header>
5775 _ACEOF
5776 rm -f conftest.$ac_objext
5777 if { (ac_try="$ac_compile"
5778 case "(($ac_try" in
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5781 esac
5782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5783 (eval "$ac_compile") 2>conftest.er1
5784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && {
5790 test -z "$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5792 } && test -s conftest.$ac_objext; then
5793 eval "$as_ac_Header=yes"
5794 else
5795 echo "$as_me: failed program was:" >&5
5796 sed 's/^/| /' conftest.$ac_ext >&5
5798 eval "$as_ac_Header=no"
5801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803 ac_res=`eval echo '${'$as_ac_Header'}'`
5804 { echo "$as_me:$LINENO: result: $ac_res" >&5
5805 echo "${ECHO_T}$ac_res" >&6; }
5806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5807 cat >>confdefs.h <<_ACEOF
5808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5809 _ACEOF
5813 done
5821 ac_header_dirent=no
5822 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5823 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5824 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5825 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829 cat >conftest.$ac_ext <<_ACEOF
5830 /* confdefs.h. */
5831 _ACEOF
5832 cat confdefs.h >>conftest.$ac_ext
5833 cat >>conftest.$ac_ext <<_ACEOF
5834 /* end confdefs.h. */
5835 #include <sys/types.h>
5836 #include <$ac_hdr>
5839 main ()
5841 if ((DIR *) 0)
5842 return 0;
5844 return 0;
5846 _ACEOF
5847 rm -f conftest.$ac_objext
5848 if { (ac_try="$ac_compile"
5849 case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_compile") 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } && {
5861 test -z "$ac_c_werror_flag" ||
5862 test ! -s conftest.err
5863 } && test -s conftest.$ac_objext; then
5864 eval "$as_ac_Header=yes"
5865 else
5866 echo "$as_me: failed program was:" >&5
5867 sed 's/^/| /' conftest.$ac_ext >&5
5869 eval "$as_ac_Header=no"
5872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 ac_res=`eval echo '${'$as_ac_Header'}'`
5875 { echo "$as_me:$LINENO: result: $ac_res" >&5
5876 echo "${ECHO_T}$ac_res" >&6; }
5877 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5878 cat >>confdefs.h <<_ACEOF
5879 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5880 _ACEOF
5882 ac_header_dirent=$ac_hdr; break
5885 done
5886 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5887 if test $ac_header_dirent = dirent.h; then
5888 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5889 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5890 if test "${ac_cv_search_opendir+set}" = set; then
5891 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893 ac_func_search_save_LIBS=$LIBS
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5901 /* Override any GCC internal prototype to avoid an error.
5902 Use char because int might match the return type of a GCC
5903 builtin and then its argument prototype would still apply. */
5904 #ifdef __cplusplus
5905 extern "C"
5906 #endif
5907 char opendir ();
5909 main ()
5911 return opendir ();
5913 return 0;
5915 _ACEOF
5916 for ac_lib in '' dir; do
5917 if test -z "$ac_lib"; then
5918 ac_res="none required"
5919 else
5920 ac_res=-l$ac_lib
5921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5923 rm -f conftest.$ac_objext conftest$ac_exeext
5924 if { (ac_try="$ac_link"
5925 case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5928 esac
5929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5930 (eval "$ac_link") 2>conftest.er1
5931 ac_status=$?
5932 grep -v '^ *+' conftest.er1 >conftest.err
5933 rm -f conftest.er1
5934 cat conftest.err >&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); } && {
5937 test -z "$ac_c_werror_flag" ||
5938 test ! -s conftest.err
5939 } && test -s conftest$ac_exeext &&
5940 $as_test_x conftest$ac_exeext; then
5941 ac_cv_search_opendir=$ac_res
5942 else
5943 echo "$as_me: failed program was:" >&5
5944 sed 's/^/| /' conftest.$ac_ext >&5
5949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5950 conftest$ac_exeext
5951 if test "${ac_cv_search_opendir+set}" = set; then
5952 break
5954 done
5955 if test "${ac_cv_search_opendir+set}" = set; then
5957 else
5958 ac_cv_search_opendir=no
5960 rm conftest.$ac_ext
5961 LIBS=$ac_func_search_save_LIBS
5963 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5964 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5965 ac_res=$ac_cv_search_opendir
5966 if test "$ac_res" != no; then
5967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5971 else
5972 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5973 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5974 if test "${ac_cv_search_opendir+set}" = set; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5976 else
5977 ac_func_search_save_LIBS=$LIBS
5978 cat >conftest.$ac_ext <<_ACEOF
5979 /* confdefs.h. */
5980 _ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5985 /* Override any GCC internal prototype to avoid an error.
5986 Use char because int might match the return type of a GCC
5987 builtin and then its argument prototype would still apply. */
5988 #ifdef __cplusplus
5989 extern "C"
5990 #endif
5991 char opendir ();
5993 main ()
5995 return opendir ();
5997 return 0;
5999 _ACEOF
6000 for ac_lib in '' x; do
6001 if test -z "$ac_lib"; then
6002 ac_res="none required"
6003 else
6004 ac_res=-l$ac_lib
6005 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6007 rm -f conftest.$ac_objext conftest$ac_exeext
6008 if { (ac_try="$ac_link"
6009 case "(($ac_try" in
6010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6012 esac
6013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6014 (eval "$ac_link") 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest$ac_exeext &&
6024 $as_test_x conftest$ac_exeext; then
6025 ac_cv_search_opendir=$ac_res
6026 else
6027 echo "$as_me: failed program was:" >&5
6028 sed 's/^/| /' conftest.$ac_ext >&5
6033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6034 conftest$ac_exeext
6035 if test "${ac_cv_search_opendir+set}" = set; then
6036 break
6038 done
6039 if test "${ac_cv_search_opendir+set}" = set; then
6041 else
6042 ac_cv_search_opendir=no
6044 rm conftest.$ac_ext
6045 LIBS=$ac_func_search_save_LIBS
6047 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
6048 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
6049 ac_res=$ac_cv_search_opendir
6050 if test "$ac_res" != no; then
6051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6057 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6058 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6059 if test "${ac_cv_header_stat_broken+set}" = set; then
6060 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 else
6062 cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h. */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 #include <sys/types.h>
6069 #include <sys/stat.h>
6071 #if defined S_ISBLK && defined S_IFDIR
6072 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6073 #endif
6075 #if defined S_ISBLK && defined S_IFCHR
6076 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6077 #endif
6079 #if defined S_ISLNK && defined S_IFREG
6080 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6081 #endif
6083 #if defined S_ISSOCK && defined S_IFREG
6084 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6085 #endif
6087 _ACEOF
6088 rm -f conftest.$ac_objext
6089 if { (ac_try="$ac_compile"
6090 case "(($ac_try" in
6091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092 *) ac_try_echo=$ac_try;;
6093 esac
6094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6095 (eval "$ac_compile") 2>conftest.er1
6096 ac_status=$?
6097 grep -v '^ *+' conftest.er1 >conftest.err
6098 rm -f conftest.er1
6099 cat conftest.err >&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } && {
6102 test -z "$ac_c_werror_flag" ||
6103 test ! -s conftest.err
6104 } && test -s conftest.$ac_objext; then
6105 ac_cv_header_stat_broken=no
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6110 ac_cv_header_stat_broken=yes
6113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6115 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6116 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6117 if test $ac_cv_header_stat_broken = yes; then
6119 cat >>confdefs.h <<\_ACEOF
6120 #define STAT_MACROS_BROKEN 1
6121 _ACEOF
6125 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6126 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6127 if test "${ac_cv_header_stdc+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6129 else
6130 cat >conftest.$ac_ext <<_ACEOF
6131 /* confdefs.h. */
6132 _ACEOF
6133 cat confdefs.h >>conftest.$ac_ext
6134 cat >>conftest.$ac_ext <<_ACEOF
6135 /* end confdefs.h. */
6136 #include <stdlib.h>
6137 #include <stdarg.h>
6138 #include <string.h>
6139 #include <float.h>
6142 main ()
6146 return 0;
6148 _ACEOF
6149 rm -f conftest.$ac_objext
6150 if { (ac_try="$ac_compile"
6151 case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6154 esac
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_compile") 2>conftest.er1
6157 ac_status=$?
6158 grep -v '^ *+' conftest.er1 >conftest.err
6159 rm -f conftest.er1
6160 cat conftest.err >&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); } && {
6163 test -z "$ac_c_werror_flag" ||
6164 test ! -s conftest.err
6165 } && test -s conftest.$ac_objext; then
6166 ac_cv_header_stdc=yes
6167 else
6168 echo "$as_me: failed program was:" >&5
6169 sed 's/^/| /' conftest.$ac_ext >&5
6171 ac_cv_header_stdc=no
6174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6176 if test $ac_cv_header_stdc = yes; then
6177 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6178 cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h. */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 #include <string.h>
6186 _ACEOF
6187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6188 $EGREP "memchr" >/dev/null 2>&1; then
6190 else
6191 ac_cv_header_stdc=no
6193 rm -f -r conftest*
6197 if test $ac_cv_header_stdc = yes; then
6198 # ISC 2.0.2 stdlib.h does not declare free, 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 <stdlib.h>
6207 _ACEOF
6208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6209 $EGREP "free" >/dev/null 2>&1; then
6211 else
6212 ac_cv_header_stdc=no
6214 rm -f -r conftest*
6218 if test $ac_cv_header_stdc = yes; then
6219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6220 if test "$cross_compiling" = yes; then
6222 else
6223 cat >conftest.$ac_ext <<_ACEOF
6224 /* confdefs.h. */
6225 _ACEOF
6226 cat confdefs.h >>conftest.$ac_ext
6227 cat >>conftest.$ac_ext <<_ACEOF
6228 /* end confdefs.h. */
6229 #include <ctype.h>
6230 #include <stdlib.h>
6231 #if ((' ' & 0x0FF) == 0x020)
6232 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6233 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6234 #else
6235 # define ISLOWER(c) \
6236 (('a' <= (c) && (c) <= 'i') \
6237 || ('j' <= (c) && (c) <= 'r') \
6238 || ('s' <= (c) && (c) <= 'z'))
6239 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6240 #endif
6242 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6244 main ()
6246 int i;
6247 for (i = 0; i < 256; i++)
6248 if (XOR (islower (i), ISLOWER (i))
6249 || toupper (i) != TOUPPER (i))
6250 return 2;
6251 return 0;
6253 _ACEOF
6254 rm -f conftest$ac_exeext
6255 if { (ac_try="$ac_link"
6256 case "(($ac_try" in
6257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6258 *) ac_try_echo=$ac_try;;
6259 esac
6260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6261 (eval "$ac_link") 2>&5
6262 ac_status=$?
6263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6264 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6265 { (case "(($ac_try" in
6266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6267 *) ac_try_echo=$ac_try;;
6268 esac
6269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6270 (eval "$ac_try") 2>&5
6271 ac_status=$?
6272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6273 (exit $ac_status); }; }; then
6275 else
6276 echo "$as_me: program exited with status $ac_status" >&5
6277 echo "$as_me: failed program was:" >&5
6278 sed 's/^/| /' conftest.$ac_ext >&5
6280 ( exit $ac_status )
6281 ac_cv_header_stdc=no
6283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6289 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6290 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6291 if test $ac_cv_header_stdc = yes; then
6293 cat >>confdefs.h <<\_ACEOF
6294 #define STDC_HEADERS 1
6295 _ACEOF
6299 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6300 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6301 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 #include <sys/types.h>
6311 #include <sys/wait.h>
6312 #ifndef WEXITSTATUS
6313 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6314 #endif
6315 #ifndef WIFEXITED
6316 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6317 #endif
6320 main ()
6322 int s;
6323 wait (&s);
6324 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6326 return 0;
6328 _ACEOF
6329 rm -f conftest.$ac_objext
6330 if { (ac_try="$ac_compile"
6331 case "(($ac_try" in
6332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6333 *) ac_try_echo=$ac_try;;
6334 esac
6335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6336 (eval "$ac_compile") 2>conftest.er1
6337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } && {
6343 test -z "$ac_c_werror_flag" ||
6344 test ! -s conftest.err
6345 } && test -s conftest.$ac_objext; then
6346 ac_cv_header_sys_wait_h=yes
6347 else
6348 echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6351 ac_cv_header_sys_wait_h=no
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6356 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6357 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6358 if test $ac_cv_header_sys_wait_h = yes; then
6360 cat >>confdefs.h <<\_ACEOF
6361 #define HAVE_SYS_WAIT_H 1
6362 _ACEOF
6366 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6367 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6368 if test "${ac_cv_header_time+set}" = set; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 else
6371 cat >conftest.$ac_ext <<_ACEOF
6372 /* confdefs.h. */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 #include <sys/types.h>
6378 #include <sys/time.h>
6379 #include <time.h>
6382 main ()
6384 if ((struct tm *) 0)
6385 return 0;
6387 return 0;
6389 _ACEOF
6390 rm -f conftest.$ac_objext
6391 if { (ac_try="$ac_compile"
6392 case "(($ac_try" in
6393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6394 *) ac_try_echo=$ac_try;;
6395 esac
6396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6397 (eval "$ac_compile") 2>conftest.er1
6398 ac_status=$?
6399 grep -v '^ *+' conftest.er1 >conftest.err
6400 rm -f conftest.er1
6401 cat conftest.err >&5
6402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6403 (exit $ac_status); } && {
6404 test -z "$ac_c_werror_flag" ||
6405 test ! -s conftest.err
6406 } && test -s conftest.$ac_objext; then
6407 ac_cv_header_time=yes
6408 else
6409 echo "$as_me: failed program was:" >&5
6410 sed 's/^/| /' conftest.$ac_ext >&5
6412 ac_cv_header_time=no
6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6418 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6419 if test $ac_cv_header_time = yes; then
6421 cat >>confdefs.h <<\_ACEOF
6422 #define TIME_WITH_SYS_TIME 1
6423 _ACEOF
6427 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6428 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6429 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6430 echo $ECHO_N "(cached) $ECHO_C" >&6
6431 else
6432 cat >conftest.$ac_ext <<_ACEOF
6433 /* confdefs.h. */
6434 _ACEOF
6435 cat confdefs.h >>conftest.$ac_ext
6436 cat >>conftest.$ac_ext <<_ACEOF
6437 /* end confdefs.h. */
6438 $ac_includes_default
6440 main ()
6442 static struct stat ac_aggr;
6443 if (ac_aggr.st_blksize)
6444 return 0;
6446 return 0;
6448 _ACEOF
6449 rm -f conftest.$ac_objext
6450 if { (ac_try="$ac_compile"
6451 case "(($ac_try" in
6452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6453 *) ac_try_echo=$ac_try;;
6454 esac
6455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6456 (eval "$ac_compile") 2>conftest.er1
6457 ac_status=$?
6458 grep -v '^ *+' conftest.er1 >conftest.err
6459 rm -f conftest.er1
6460 cat conftest.err >&5
6461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6462 (exit $ac_status); } && {
6463 test -z "$ac_c_werror_flag" ||
6464 test ! -s conftest.err
6465 } && test -s conftest.$ac_objext; then
6466 ac_cv_member_struct_stat_st_blksize=yes
6467 else
6468 echo "$as_me: failed program was:" >&5
6469 sed 's/^/| /' conftest.$ac_ext >&5
6471 cat >conftest.$ac_ext <<_ACEOF
6472 /* confdefs.h. */
6473 _ACEOF
6474 cat confdefs.h >>conftest.$ac_ext
6475 cat >>conftest.$ac_ext <<_ACEOF
6476 /* end confdefs.h. */
6477 $ac_includes_default
6479 main ()
6481 static struct stat ac_aggr;
6482 if (sizeof ac_aggr.st_blksize)
6483 return 0;
6485 return 0;
6487 _ACEOF
6488 rm -f conftest.$ac_objext
6489 if { (ac_try="$ac_compile"
6490 case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493 esac
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_compile") 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } && {
6502 test -z "$ac_c_werror_flag" ||
6503 test ! -s conftest.err
6504 } && test -s conftest.$ac_objext; then
6505 ac_cv_member_struct_stat_st_blksize=yes
6506 else
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6510 ac_cv_member_struct_stat_st_blksize=no
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6518 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6519 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6520 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6522 cat >>confdefs.h <<_ACEOF
6523 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6524 _ACEOF
6527 cat >>confdefs.h <<\_ACEOF
6528 #define HAVE_ST_BLKSIZE 1
6529 _ACEOF
6534 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6535 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6536 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6537 echo $ECHO_N "(cached) $ECHO_C" >&6
6538 else
6539 cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h. */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6545 $ac_includes_default
6547 main ()
6549 static struct stat ac_aggr;
6550 if (ac_aggr.st_blocks)
6551 return 0;
6553 return 0;
6555 _ACEOF
6556 rm -f conftest.$ac_objext
6557 if { (ac_try="$ac_compile"
6558 case "(($ac_try" in
6559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6560 *) ac_try_echo=$ac_try;;
6561 esac
6562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6563 (eval "$ac_compile") 2>conftest.er1
6564 ac_status=$?
6565 grep -v '^ *+' conftest.er1 >conftest.err
6566 rm -f conftest.er1
6567 cat conftest.err >&5
6568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6569 (exit $ac_status); } && {
6570 test -z "$ac_c_werror_flag" ||
6571 test ! -s conftest.err
6572 } && test -s conftest.$ac_objext; then
6573 ac_cv_member_struct_stat_st_blocks=yes
6574 else
6575 echo "$as_me: failed program was:" >&5
6576 sed 's/^/| /' conftest.$ac_ext >&5
6578 cat >conftest.$ac_ext <<_ACEOF
6579 /* confdefs.h. */
6580 _ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6584 $ac_includes_default
6586 main ()
6588 static struct stat ac_aggr;
6589 if (sizeof ac_aggr.st_blocks)
6590 return 0;
6592 return 0;
6594 _ACEOF
6595 rm -f conftest.$ac_objext
6596 if { (ac_try="$ac_compile"
6597 case "(($ac_try" in
6598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6599 *) ac_try_echo=$ac_try;;
6600 esac
6601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6602 (eval "$ac_compile") 2>conftest.er1
6603 ac_status=$?
6604 grep -v '^ *+' conftest.er1 >conftest.err
6605 rm -f conftest.er1
6606 cat conftest.err >&5
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); } && {
6609 test -z "$ac_c_werror_flag" ||
6610 test ! -s conftest.err
6611 } && test -s conftest.$ac_objext; then
6612 ac_cv_member_struct_stat_st_blocks=yes
6613 else
6614 echo "$as_me: failed program was:" >&5
6615 sed 's/^/| /' conftest.$ac_ext >&5
6617 ac_cv_member_struct_stat_st_blocks=no
6620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6625 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6626 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6627 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6629 cat >>confdefs.h <<_ACEOF
6630 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6631 _ACEOF
6634 cat >>confdefs.h <<\_ACEOF
6635 #define HAVE_ST_BLOCKS 1
6636 _ACEOF
6638 else
6639 case " $LIBOBJS " in
6640 *" fileblocks.$ac_objext "* ) ;;
6641 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6643 esac
6648 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6649 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6650 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6651 echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653 cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h. */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h. */
6659 $ac_includes_default
6661 main ()
6663 static struct stat ac_aggr;
6664 if (ac_aggr.st_rdev)
6665 return 0;
6667 return 0;
6669 _ACEOF
6670 rm -f conftest.$ac_objext
6671 if { (ac_try="$ac_compile"
6672 case "(($ac_try" in
6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6675 esac
6676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6677 (eval "$ac_compile") 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } && {
6684 test -z "$ac_c_werror_flag" ||
6685 test ! -s conftest.err
6686 } && test -s conftest.$ac_objext; then
6687 ac_cv_member_struct_stat_st_rdev=yes
6688 else
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6692 cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 $ac_includes_default
6700 main ()
6702 static struct stat ac_aggr;
6703 if (sizeof ac_aggr.st_rdev)
6704 return 0;
6706 return 0;
6708 _ACEOF
6709 rm -f conftest.$ac_objext
6710 if { (ac_try="$ac_compile"
6711 case "(($ac_try" in
6712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6713 *) ac_try_echo=$ac_try;;
6714 esac
6715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6716 (eval "$ac_compile") 2>conftest.er1
6717 ac_status=$?
6718 grep -v '^ *+' conftest.er1 >conftest.err
6719 rm -f conftest.er1
6720 cat conftest.err >&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } && {
6723 test -z "$ac_c_werror_flag" ||
6724 test ! -s conftest.err
6725 } && test -s conftest.$ac_objext; then
6726 ac_cv_member_struct_stat_st_rdev=yes
6727 else
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.$ac_ext >&5
6731 ac_cv_member_struct_stat_st_rdev=no
6734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6740 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6741 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6743 cat >>confdefs.h <<_ACEOF
6744 #define HAVE_STRUCT_STAT_ST_RDEV 1
6745 _ACEOF
6748 cat >>confdefs.h <<\_ACEOF
6749 #define HAVE_ST_RDEV 1
6750 _ACEOF
6755 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6756 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6757 if test "${ac_cv_struct_tm+set}" = set; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760 cat >conftest.$ac_ext <<_ACEOF
6761 /* confdefs.h. */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 #include <sys/types.h>
6767 #include <time.h>
6770 main ()
6772 struct tm tm;
6773 int *p = &tm.tm_sec;
6774 return !p;
6776 return 0;
6778 _ACEOF
6779 rm -f conftest.$ac_objext
6780 if { (ac_try="$ac_compile"
6781 case "(($ac_try" in
6782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6783 *) ac_try_echo=$ac_try;;
6784 esac
6785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6786 (eval "$ac_compile") 2>conftest.er1
6787 ac_status=$?
6788 grep -v '^ *+' conftest.er1 >conftest.err
6789 rm -f conftest.er1
6790 cat conftest.err >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } && {
6793 test -z "$ac_c_werror_flag" ||
6794 test ! -s conftest.err
6795 } && test -s conftest.$ac_objext; then
6796 ac_cv_struct_tm=time.h
6797 else
6798 echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6801 ac_cv_struct_tm=sys/time.h
6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6807 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6808 if test $ac_cv_struct_tm = sys/time.h; then
6810 cat >>confdefs.h <<\_ACEOF
6811 #define TM_IN_SYS_TIME 1
6812 _ACEOF
6816 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6817 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6818 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6819 echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821 cat >conftest.$ac_ext <<_ACEOF
6822 /* confdefs.h. */
6823 _ACEOF
6824 cat confdefs.h >>conftest.$ac_ext
6825 cat >>conftest.$ac_ext <<_ACEOF
6826 /* end confdefs.h. */
6827 #include <sys/types.h>
6828 #include <$ac_cv_struct_tm>
6832 main ()
6834 static struct tm ac_aggr;
6835 if (ac_aggr.tm_zone)
6836 return 0;
6838 return 0;
6840 _ACEOF
6841 rm -f conftest.$ac_objext
6842 if { (ac_try="$ac_compile"
6843 case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6846 esac
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_compile") 2>conftest.er1
6849 ac_status=$?
6850 grep -v '^ *+' conftest.er1 >conftest.err
6851 rm -f conftest.er1
6852 cat conftest.err >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } && {
6855 test -z "$ac_c_werror_flag" ||
6856 test ! -s conftest.err
6857 } && test -s conftest.$ac_objext; then
6858 ac_cv_member_struct_tm_tm_zone=yes
6859 else
6860 echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6863 cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h. */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6869 #include <sys/types.h>
6870 #include <$ac_cv_struct_tm>
6874 main ()
6876 static struct tm ac_aggr;
6877 if (sizeof ac_aggr.tm_zone)
6878 return 0;
6880 return 0;
6882 _ACEOF
6883 rm -f conftest.$ac_objext
6884 if { (ac_try="$ac_compile"
6885 case "(($ac_try" in
6886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6887 *) ac_try_echo=$ac_try;;
6888 esac
6889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6890 (eval "$ac_compile") 2>conftest.er1
6891 ac_status=$?
6892 grep -v '^ *+' conftest.er1 >conftest.err
6893 rm -f conftest.er1
6894 cat conftest.err >&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); } && {
6897 test -z "$ac_c_werror_flag" ||
6898 test ! -s conftest.err
6899 } && test -s conftest.$ac_objext; then
6900 ac_cv_member_struct_tm_tm_zone=yes
6901 else
6902 echo "$as_me: failed program was:" >&5
6903 sed 's/^/| /' conftest.$ac_ext >&5
6905 ac_cv_member_struct_tm_tm_zone=no
6908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6914 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6915 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6917 cat >>confdefs.h <<_ACEOF
6918 #define HAVE_STRUCT_TM_TM_ZONE 1
6919 _ACEOF
6924 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6926 cat >>confdefs.h <<\_ACEOF
6927 #define HAVE_TM_ZONE 1
6928 _ACEOF
6930 else
6931 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6932 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6933 if test "${ac_cv_have_decl_tzname+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6935 else
6936 cat >conftest.$ac_ext <<_ACEOF
6937 /* confdefs.h. */
6938 _ACEOF
6939 cat confdefs.h >>conftest.$ac_ext
6940 cat >>conftest.$ac_ext <<_ACEOF
6941 /* end confdefs.h. */
6942 #include <time.h>
6945 main ()
6947 #ifndef tzname
6948 (void) tzname;
6949 #endif
6952 return 0;
6954 _ACEOF
6955 rm -f conftest.$ac_objext
6956 if { (ac_try="$ac_compile"
6957 case "(($ac_try" in
6958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959 *) ac_try_echo=$ac_try;;
6960 esac
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962 (eval "$ac_compile") 2>conftest.er1
6963 ac_status=$?
6964 grep -v '^ *+' conftest.er1 >conftest.err
6965 rm -f conftest.er1
6966 cat conftest.err >&5
6967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968 (exit $ac_status); } && {
6969 test -z "$ac_c_werror_flag" ||
6970 test ! -s conftest.err
6971 } && test -s conftest.$ac_objext; then
6972 ac_cv_have_decl_tzname=yes
6973 else
6974 echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6977 ac_cv_have_decl_tzname=no
6980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6982 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6983 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6984 if test $ac_cv_have_decl_tzname = yes; then
6986 cat >>confdefs.h <<_ACEOF
6987 #define HAVE_DECL_TZNAME 1
6988 _ACEOF
6991 else
6992 cat >>confdefs.h <<_ACEOF
6993 #define HAVE_DECL_TZNAME 0
6994 _ACEOF
7000 { echo "$as_me:$LINENO: checking for tzname" >&5
7001 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7002 if test "${ac_cv_var_tzname+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7004 else
7005 cat >conftest.$ac_ext <<_ACEOF
7006 /* confdefs.h. */
7007 _ACEOF
7008 cat confdefs.h >>conftest.$ac_ext
7009 cat >>conftest.$ac_ext <<_ACEOF
7010 /* end confdefs.h. */
7011 #include <time.h>
7012 #if !HAVE_DECL_TZNAME
7013 extern char *tzname[];
7014 #endif
7017 main ()
7019 return tzname[0][0];
7021 return 0;
7023 _ACEOF
7024 rm -f conftest.$ac_objext conftest$ac_exeext
7025 if { (ac_try="$ac_link"
7026 case "(($ac_try" in
7027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7028 *) ac_try_echo=$ac_try;;
7029 esac
7030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7031 (eval "$ac_link") 2>conftest.er1
7032 ac_status=$?
7033 grep -v '^ *+' conftest.er1 >conftest.err
7034 rm -f conftest.er1
7035 cat conftest.err >&5
7036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7037 (exit $ac_status); } && {
7038 test -z "$ac_c_werror_flag" ||
7039 test ! -s conftest.err
7040 } && test -s conftest$ac_exeext &&
7041 $as_test_x conftest$ac_exeext; then
7042 ac_cv_var_tzname=yes
7043 else
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7047 ac_cv_var_tzname=no
7050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7051 conftest$ac_exeext conftest.$ac_ext
7053 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7054 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7055 if test $ac_cv_var_tzname = yes; then
7057 cat >>confdefs.h <<\_ACEOF
7058 #define HAVE_TZNAME 1
7059 _ACEOF
7064 { echo "$as_me:$LINENO: checking for off_t" >&5
7065 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7066 if test "${ac_cv_type_off_t+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h. */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 $ac_includes_default
7076 typedef off_t ac__type_new_;
7078 main ()
7080 if ((ac__type_new_ *) 0)
7081 return 0;
7082 if (sizeof (ac__type_new_))
7083 return 0;
7085 return 0;
7087 _ACEOF
7088 rm -f conftest.$ac_objext
7089 if { (ac_try="$ac_compile"
7090 case "(($ac_try" in
7091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7092 *) ac_try_echo=$ac_try;;
7093 esac
7094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7095 (eval "$ac_compile") 2>conftest.er1
7096 ac_status=$?
7097 grep -v '^ *+' conftest.er1 >conftest.err
7098 rm -f conftest.er1
7099 cat conftest.err >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } && {
7102 test -z "$ac_c_werror_flag" ||
7103 test ! -s conftest.err
7104 } && test -s conftest.$ac_objext; then
7105 ac_cv_type_off_t=yes
7106 else
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7110 ac_cv_type_off_t=no
7113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7116 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7117 if test $ac_cv_type_off_t = yes; then
7119 else
7121 cat >>confdefs.h <<_ACEOF
7122 #define off_t long int
7123 _ACEOF
7127 { echo "$as_me:$LINENO: checking for pid_t" >&5
7128 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7129 if test "${ac_cv_type_pid_t+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 $ac_includes_default
7139 typedef pid_t ac__type_new_;
7141 main ()
7143 if ((ac__type_new_ *) 0)
7144 return 0;
7145 if (sizeof (ac__type_new_))
7146 return 0;
7148 return 0;
7150 _ACEOF
7151 rm -f conftest.$ac_objext
7152 if { (ac_try="$ac_compile"
7153 case "(($ac_try" in
7154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7155 *) ac_try_echo=$ac_try;;
7156 esac
7157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7158 (eval "$ac_compile") 2>conftest.er1
7159 ac_status=$?
7160 grep -v '^ *+' conftest.er1 >conftest.err
7161 rm -f conftest.er1
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } && {
7165 test -z "$ac_c_werror_flag" ||
7166 test ! -s conftest.err
7167 } && test -s conftest.$ac_objext; then
7168 ac_cv_type_pid_t=yes
7169 else
7170 echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7173 ac_cv_type_pid_t=no
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7179 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7180 if test $ac_cv_type_pid_t = yes; then
7182 else
7184 cat >>confdefs.h <<_ACEOF
7185 #define pid_t int
7186 _ACEOF
7190 { echo "$as_me:$LINENO: checking for size_t" >&5
7191 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7192 if test "${ac_cv_type_size_t+set}" = set; then
7193 echo $ECHO_N "(cached) $ECHO_C" >&6
7194 else
7195 cat >conftest.$ac_ext <<_ACEOF
7196 /* confdefs.h. */
7197 _ACEOF
7198 cat confdefs.h >>conftest.$ac_ext
7199 cat >>conftest.$ac_ext <<_ACEOF
7200 /* end confdefs.h. */
7201 $ac_includes_default
7202 typedef size_t ac__type_new_;
7204 main ()
7206 if ((ac__type_new_ *) 0)
7207 return 0;
7208 if (sizeof (ac__type_new_))
7209 return 0;
7211 return 0;
7213 _ACEOF
7214 rm -f conftest.$ac_objext
7215 if { (ac_try="$ac_compile"
7216 case "(($ac_try" in
7217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7218 *) ac_try_echo=$ac_try;;
7219 esac
7220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7221 (eval "$ac_compile") 2>conftest.er1
7222 ac_status=$?
7223 grep -v '^ *+' conftest.er1 >conftest.err
7224 rm -f conftest.er1
7225 cat conftest.err >&5
7226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7227 (exit $ac_status); } && {
7228 test -z "$ac_c_werror_flag" ||
7229 test ! -s conftest.err
7230 } && test -s conftest.$ac_objext; then
7231 ac_cv_type_size_t=yes
7232 else
7233 echo "$as_me: failed program was:" >&5
7234 sed 's/^/| /' conftest.$ac_ext >&5
7236 ac_cv_type_size_t=no
7239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7241 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7242 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7243 if test $ac_cv_type_size_t = yes; then
7245 else
7247 cat >>confdefs.h <<_ACEOF
7248 #define size_t unsigned int
7249 _ACEOF
7253 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7254 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7255 if test "${ac_cv_type_uid_t+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7257 else
7258 cat >conftest.$ac_ext <<_ACEOF
7259 /* confdefs.h. */
7260 _ACEOF
7261 cat confdefs.h >>conftest.$ac_ext
7262 cat >>conftest.$ac_ext <<_ACEOF
7263 /* end confdefs.h. */
7264 #include <sys/types.h>
7266 _ACEOF
7267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7268 $EGREP "uid_t" >/dev/null 2>&1; then
7269 ac_cv_type_uid_t=yes
7270 else
7271 ac_cv_type_uid_t=no
7273 rm -f -r conftest*
7276 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7277 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7278 if test $ac_cv_type_uid_t = no; then
7280 cat >>confdefs.h <<\_ACEOF
7281 #define uid_t int
7282 _ACEOF
7285 cat >>confdefs.h <<\_ACEOF
7286 #define gid_t int
7287 _ACEOF
7292 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7293 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7294 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7295 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 else
7297 cat >conftest.$ac_ext <<_ACEOF
7298 /* confdefs.h. */
7299 _ACEOF
7300 cat confdefs.h >>conftest.$ac_ext
7301 cat >>conftest.$ac_ext <<_ACEOF
7302 /* end confdefs.h. */
7303 $ac_includes_default
7305 main ()
7307 static struct tm ac_aggr;
7308 if (ac_aggr.tm_gmtoff)
7309 return 0;
7311 return 0;
7313 _ACEOF
7314 rm -f conftest.$ac_objext
7315 if { (ac_try="$ac_compile"
7316 case "(($ac_try" in
7317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7318 *) ac_try_echo=$ac_try;;
7319 esac
7320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7321 (eval "$ac_compile") 2>conftest.er1
7322 ac_status=$?
7323 grep -v '^ *+' conftest.er1 >conftest.err
7324 rm -f conftest.er1
7325 cat conftest.err >&5
7326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327 (exit $ac_status); } && {
7328 test -z "$ac_c_werror_flag" ||
7329 test ! -s conftest.err
7330 } && test -s conftest.$ac_objext; then
7331 ac_cv_member_struct_tm_tm_gmtoff=yes
7332 else
7333 echo "$as_me: failed program was:" >&5
7334 sed 's/^/| /' conftest.$ac_ext >&5
7336 cat >conftest.$ac_ext <<_ACEOF
7337 /* confdefs.h. */
7338 _ACEOF
7339 cat confdefs.h >>conftest.$ac_ext
7340 cat >>conftest.$ac_ext <<_ACEOF
7341 /* end confdefs.h. */
7342 $ac_includes_default
7344 main ()
7346 static struct tm ac_aggr;
7347 if (sizeof ac_aggr.tm_gmtoff)
7348 return 0;
7350 return 0;
7352 _ACEOF
7353 rm -f conftest.$ac_objext
7354 if { (ac_try="$ac_compile"
7355 case "(($ac_try" in
7356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7357 *) ac_try_echo=$ac_try;;
7358 esac
7359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7360 (eval "$ac_compile") 2>conftest.er1
7361 ac_status=$?
7362 grep -v '^ *+' conftest.er1 >conftest.err
7363 rm -f conftest.er1
7364 cat conftest.err >&5
7365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && {
7367 test -z "$ac_c_werror_flag" ||
7368 test ! -s conftest.err
7369 } && test -s conftest.$ac_objext; then
7370 ac_cv_member_struct_tm_tm_gmtoff=yes
7371 else
7372 echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.$ac_ext >&5
7375 ac_cv_member_struct_tm_tm_gmtoff=no
7378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7384 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7385 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7387 cat >>confdefs.h <<_ACEOF
7388 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7389 _ACEOF
7395 # Look for some functions
7410 for ac_func in getpagesize kqueue statfs statvfs \
7411 clone kse_create rfork_thread thr_create sa_register \
7412 getcontext makecontext setcontext sigaltstack swapcontext
7414 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7415 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7416 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h. */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7427 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7428 #define $ac_func innocuous_$ac_func
7430 /* System header to define __stub macros and hopefully few prototypes,
7431 which can conflict with char $ac_func (); below.
7432 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7433 <limits.h> exists even on freestanding compilers. */
7435 #ifdef __STDC__
7436 # include <limits.h>
7437 #else
7438 # include <assert.h>
7439 #endif
7441 #undef $ac_func
7443 /* Override any GCC internal prototype to avoid an error.
7444 Use char because int might match the return type of a GCC
7445 builtin and then its argument prototype would still apply. */
7446 #ifdef __cplusplus
7447 extern "C"
7448 #endif
7449 char $ac_func ();
7450 /* The GNU C library defines this for functions which it implements
7451 to always fail with ENOSYS. Some functions are actually named
7452 something starting with __ and the normal name is an alias. */
7453 #if defined __stub_$ac_func || defined __stub___$ac_func
7454 choke me
7455 #endif
7458 main ()
7460 return $ac_func ();
7462 return 0;
7464 _ACEOF
7465 rm -f conftest.$ac_objext conftest$ac_exeext
7466 if { (ac_try="$ac_link"
7467 case "(($ac_try" in
7468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7469 *) ac_try_echo=$ac_try;;
7470 esac
7471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7472 (eval "$ac_link") 2>conftest.er1
7473 ac_status=$?
7474 grep -v '^ *+' conftest.er1 >conftest.err
7475 rm -f conftest.er1
7476 cat conftest.err >&5
7477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7478 (exit $ac_status); } && {
7479 test -z "$ac_c_werror_flag" ||
7480 test ! -s conftest.err
7481 } && test -s conftest$ac_exeext &&
7482 $as_test_x conftest$ac_exeext; then
7483 eval "$as_ac_var=yes"
7484 else
7485 echo "$as_me: failed program was:" >&5
7486 sed 's/^/| /' conftest.$ac_ext >&5
7488 eval "$as_ac_var=no"
7491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7492 conftest$ac_exeext conftest.$ac_ext
7494 ac_res=`eval echo '${'$as_ac_var'}'`
7495 { echo "$as_me:$LINENO: result: $ac_res" >&5
7496 echo "${ECHO_T}$ac_res" >&6; }
7497 if test `eval echo '${'$as_ac_var'}'` = yes; then
7498 cat >>confdefs.h <<_ACEOF
7499 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7500 _ACEOF
7503 done
7508 for ac_header in stdlib.h unistd.h
7510 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7515 echo $ECHO_N "(cached) $ECHO_C" >&6
7517 ac_res=`eval echo '${'$as_ac_Header'}'`
7518 { echo "$as_me:$LINENO: result: $ac_res" >&5
7519 echo "${ECHO_T}$ac_res" >&6; }
7520 else
7521 # Is the header compilable?
7522 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7523 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7524 cat >conftest.$ac_ext <<_ACEOF
7525 /* confdefs.h. */
7526 _ACEOF
7527 cat confdefs.h >>conftest.$ac_ext
7528 cat >>conftest.$ac_ext <<_ACEOF
7529 /* end confdefs.h. */
7530 $ac_includes_default
7531 #include <$ac_header>
7532 _ACEOF
7533 rm -f conftest.$ac_objext
7534 if { (ac_try="$ac_compile"
7535 case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7538 esac
7539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7540 (eval "$ac_compile") 2>conftest.er1
7541 ac_status=$?
7542 grep -v '^ *+' conftest.er1 >conftest.err
7543 rm -f conftest.er1
7544 cat conftest.err >&5
7545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546 (exit $ac_status); } && {
7547 test -z "$ac_c_werror_flag" ||
7548 test ! -s conftest.err
7549 } && test -s conftest.$ac_objext; then
7550 ac_header_compiler=yes
7551 else
7552 echo "$as_me: failed program was:" >&5
7553 sed 's/^/| /' conftest.$ac_ext >&5
7555 ac_header_compiler=no
7558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7560 echo "${ECHO_T}$ac_header_compiler" >&6; }
7562 # Is the header present?
7563 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7564 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7565 cat >conftest.$ac_ext <<_ACEOF
7566 /* confdefs.h. */
7567 _ACEOF
7568 cat confdefs.h >>conftest.$ac_ext
7569 cat >>conftest.$ac_ext <<_ACEOF
7570 /* end confdefs.h. */
7571 #include <$ac_header>
7572 _ACEOF
7573 if { (ac_try="$ac_cpp conftest.$ac_ext"
7574 case "(($ac_try" in
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7577 esac
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7580 ac_status=$?
7581 grep -v '^ *+' conftest.er1 >conftest.err
7582 rm -f conftest.er1
7583 cat conftest.err >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } >/dev/null && {
7586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7587 test ! -s conftest.err
7588 }; then
7589 ac_header_preproc=yes
7590 else
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7594 ac_header_preproc=no
7597 rm -f conftest.err conftest.$ac_ext
7598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7599 echo "${ECHO_T}$ac_header_preproc" >&6; }
7601 # So? What about this header?
7602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7603 yes:no: )
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7605 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7606 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7607 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7608 ac_header_preproc=yes
7610 no:yes:* )
7611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7615 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7616 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7617 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7618 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7620 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7621 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7622 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7625 esac
7626 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7627 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7629 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 else
7631 eval "$as_ac_Header=\$ac_header_preproc"
7633 ac_res=`eval echo '${'$as_ac_Header'}'`
7634 { echo "$as_me:$LINENO: result: $ac_res" >&5
7635 echo "${ECHO_T}$ac_res" >&6; }
7638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7639 cat >>confdefs.h <<_ACEOF
7640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7641 _ACEOF
7645 done
7648 for ac_func in getpagesize
7650 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7651 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7652 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656 cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h. */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7664 #define $ac_func innocuous_$ac_func
7666 /* System header to define __stub macros and hopefully few prototypes,
7667 which can conflict with char $ac_func (); below.
7668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7669 <limits.h> exists even on freestanding compilers. */
7671 #ifdef __STDC__
7672 # include <limits.h>
7673 #else
7674 # include <assert.h>
7675 #endif
7677 #undef $ac_func
7679 /* Override any GCC internal prototype to avoid an error.
7680 Use char because int might match the return type of a GCC
7681 builtin and then its argument prototype would still apply. */
7682 #ifdef __cplusplus
7683 extern "C"
7684 #endif
7685 char $ac_func ();
7686 /* The GNU C library defines this for functions which it implements
7687 to always fail with ENOSYS. Some functions are actually named
7688 something starting with __ and the normal name is an alias. */
7689 #if defined __stub_$ac_func || defined __stub___$ac_func
7690 choke me
7691 #endif
7694 main ()
7696 return $ac_func ();
7698 return 0;
7700 _ACEOF
7701 rm -f conftest.$ac_objext conftest$ac_exeext
7702 if { (ac_try="$ac_link"
7703 case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7706 esac
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_link") 2>conftest.er1
7709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } && {
7715 test -z "$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7717 } && test -s conftest$ac_exeext &&
7718 $as_test_x conftest$ac_exeext; then
7719 eval "$as_ac_var=yes"
7720 else
7721 echo "$as_me: failed program was:" >&5
7722 sed 's/^/| /' conftest.$ac_ext >&5
7724 eval "$as_ac_var=no"
7727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7728 conftest$ac_exeext conftest.$ac_ext
7730 ac_res=`eval echo '${'$as_ac_var'}'`
7731 { echo "$as_me:$LINENO: result: $ac_res" >&5
7732 echo "${ECHO_T}$ac_res" >&6; }
7733 if test `eval echo '${'$as_ac_var'}'` = yes; then
7734 cat >>confdefs.h <<_ACEOF
7735 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7736 _ACEOF
7739 done
7741 { echo "$as_me:$LINENO: checking for working mmap" >&5
7742 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7743 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746 if test "$cross_compiling" = yes; then
7747 ac_cv_func_mmap_fixed_mapped=no
7748 else
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h. */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h. */
7755 $ac_includes_default
7756 /* malloc might have been renamed as rpl_malloc. */
7757 #undef malloc
7759 /* Thanks to Mike Haertel and Jim Avera for this test.
7760 Here is a matrix of mmap possibilities:
7761 mmap private not fixed
7762 mmap private fixed at somewhere currently unmapped
7763 mmap private fixed at somewhere already mapped
7764 mmap shared not fixed
7765 mmap shared fixed at somewhere currently unmapped
7766 mmap shared fixed at somewhere already mapped
7767 For private mappings, we should verify that changes cannot be read()
7768 back from the file, nor mmap's back from the file at a different
7769 address. (There have been systems where private was not correctly
7770 implemented like the infamous i386 svr4.0, and systems where the
7771 VM page cache was not coherent with the file system buffer cache
7772 like early versions of FreeBSD and possibly contemporary NetBSD.)
7773 For shared mappings, we should conversely verify that changes get
7774 propagated back to all the places they're supposed to be.
7776 Grep wants private fixed already mapped.
7777 The main things grep needs to know about mmap are:
7778 * does it exist and is it safe to write into the mmap'd area
7779 * how to use it (BSD variants) */
7781 #include <fcntl.h>
7782 #include <sys/mman.h>
7784 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7785 char *malloc ();
7786 #endif
7788 /* This mess was copied from the GNU getpagesize.h. */
7789 #ifndef HAVE_GETPAGESIZE
7790 /* Assume that all systems that can run configure have sys/param.h. */
7791 # ifndef HAVE_SYS_PARAM_H
7792 # define HAVE_SYS_PARAM_H 1
7793 # endif
7795 # ifdef _SC_PAGESIZE
7796 # define getpagesize() sysconf(_SC_PAGESIZE)
7797 # else /* no _SC_PAGESIZE */
7798 # ifdef HAVE_SYS_PARAM_H
7799 # include <sys/param.h>
7800 # ifdef EXEC_PAGESIZE
7801 # define getpagesize() EXEC_PAGESIZE
7802 # else /* no EXEC_PAGESIZE */
7803 # ifdef NBPG
7804 # define getpagesize() NBPG * CLSIZE
7805 # ifndef CLSIZE
7806 # define CLSIZE 1
7807 # endif /* no CLSIZE */
7808 # else /* no NBPG */
7809 # ifdef NBPC
7810 # define getpagesize() NBPC
7811 # else /* no NBPC */
7812 # ifdef PAGESIZE
7813 # define getpagesize() PAGESIZE
7814 # endif /* PAGESIZE */
7815 # endif /* no NBPC */
7816 # endif /* no NBPG */
7817 # endif /* no EXEC_PAGESIZE */
7818 # else /* no HAVE_SYS_PARAM_H */
7819 # define getpagesize() 8192 /* punt totally */
7820 # endif /* no HAVE_SYS_PARAM_H */
7821 # endif /* no _SC_PAGESIZE */
7823 #endif /* no HAVE_GETPAGESIZE */
7826 main ()
7828 char *data, *data2, *data3;
7829 int i, pagesize;
7830 int fd;
7832 pagesize = getpagesize ();
7834 /* First, make a file with some known garbage in it. */
7835 data = (char *) malloc (pagesize);
7836 if (!data)
7837 return 1;
7838 for (i = 0; i < pagesize; ++i)
7839 *(data + i) = rand ();
7840 umask (0);
7841 fd = creat ("conftest.mmap", 0600);
7842 if (fd < 0)
7843 return 1;
7844 if (write (fd, data, pagesize) != pagesize)
7845 return 1;
7846 close (fd);
7848 /* Next, try to mmap the file at a fixed address which already has
7849 something else allocated at it. If we can, also make sure that
7850 we see the same garbage. */
7851 fd = open ("conftest.mmap", O_RDWR);
7852 if (fd < 0)
7853 return 1;
7854 data2 = (char *) malloc (2 * pagesize);
7855 if (!data2)
7856 return 1;
7857 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7858 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7859 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7860 return 1;
7861 for (i = 0; i < pagesize; ++i)
7862 if (*(data + i) != *(data2 + i))
7863 return 1;
7865 /* Finally, make sure that changes to the mapped area do not
7866 percolate back to the file as seen by read(). (This is a bug on
7867 some variants of i386 svr4.0.) */
7868 for (i = 0; i < pagesize; ++i)
7869 *(data2 + i) = *(data2 + i) + 1;
7870 data3 = (char *) malloc (pagesize);
7871 if (!data3)
7872 return 1;
7873 if (read (fd, data3, pagesize) != pagesize)
7874 return 1;
7875 for (i = 0; i < pagesize; ++i)
7876 if (*(data + i) != *(data3 + i))
7877 return 1;
7878 close (fd);
7879 return 0;
7881 _ACEOF
7882 rm -f conftest$ac_exeext
7883 if { (ac_try="$ac_link"
7884 case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7887 esac
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_link") 2>&5
7890 ac_status=$?
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7893 { (case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896 esac
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_try") 2>&5
7899 ac_status=$?
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); }; }; then
7902 ac_cv_func_mmap_fixed_mapped=yes
7903 else
7904 echo "$as_me: program exited with status $ac_status" >&5
7905 echo "$as_me: failed program was:" >&5
7906 sed 's/^/| /' conftest.$ac_ext >&5
7908 ( exit $ac_status )
7909 ac_cv_func_mmap_fixed_mapped=no
7911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7916 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7917 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7918 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7920 cat >>confdefs.h <<\_ACEOF
7921 #define HAVE_MMAP 1
7922 _ACEOF
7925 rm -f conftest.mmap
7930 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7931 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7932 aros_config_ldflags=""
7934 aros_shared_default=yes
7936 aros_shared_cflags="-fPIC"
7937 aros_shared_aflags=""
7938 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7939 aros_kernel_ldflags="-Wl,-rpath,./lib"
7941 aros_target_ar_flags="cr"
7942 aros_target_nm_flags="-C -ul"
7943 aros_target_strip_flags="--strip-unneeded -R.comment"
7945 aros_compiler_libs=
7946 aros_arch_libs=
7948 aros_target_genmap="-Wl,-Map -Xlinker"
7950 # Native flavour stuff
7951 aros_serial_debug="0"
7953 # Palm native flavour stuff
7954 aros_palm_debug_hack="0"
7956 # Unix flavour stuff
7957 aros_nesting_supervisor="0"
7959 # Collect-aros stuff: "-ius" to ignore undefined symbols
7960 ignore_undefined_symbols=""
7962 #-----------------------------------------------------------------------------
7965 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7966 # it switched on by default, and we use the host compiler, so it compiles AROS
7967 # code with this enabled resulting in link failures as we don't have support
7968 # for it.
7970 # We use two methods to disable it. For the host compiler (used to compile
7971 # some hosted modules), we test to see if the compiler supports stack
7972 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7973 # work on all platforms.
7975 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7976 # (this is done unconditionally, as it should have no effect on compilers
7977 # without the stack protection feature). This may be specific to the way that
7978 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7979 # strong enough to disable it in a generic way though, so we'll live with it
7980 # until another vendor ships GCC with it enabled in a different way, and deal
7981 # with it then.
7984 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7985 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7986 save_cflags="$CFLAGS"
7987 CFLAGS="$CFLAGS -fno-stack-protector"
7988 cat >conftest.$ac_ext <<_ACEOF
7989 /* confdefs.h. */
7990 _ACEOF
7991 cat confdefs.h >>conftest.$ac_ext
7992 cat >>conftest.$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7996 main ()
8000 return 0;
8002 _ACEOF
8003 rm -f conftest.$ac_objext
8004 if { (ac_try="$ac_compile"
8005 case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008 esac
8009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8010 (eval "$ac_compile") 2>conftest.er1
8011 ac_status=$?
8012 grep -v '^ *+' conftest.er1 >conftest.err
8013 rm -f conftest.er1
8014 cat conftest.err >&5
8015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8016 (exit $ac_status); } && {
8017 test -z "$ac_c_werror_flag" ||
8018 test ! -s conftest.err
8019 } && test -s conftest.$ac_objext; then
8020 use_no_stack_protector="yes"
8021 else
8022 echo "$as_me: failed program was:" >&5
8023 sed 's/^/| /' conftest.$ac_ext >&5
8025 use_no_stack_protector="no"
8028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8029 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
8030 echo "${ECHO_T}$use_no_stack_protector" >&6; }
8031 if test "x-$use_no_stack_protector" = "x-yes" ; then
8032 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
8034 CFLAGS="$save_cflags"
8036 #-----------------------------------------------------------------------------
8038 # Disable pointer-signedness warnings if the compiler recognises the option
8039 # (this only works for the host compiler at the moment)
8041 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
8042 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
8043 save_cflags="$CFLAGS"
8044 CFLAGS="$CFLAGS -Wno-pointer-sign"
8045 cat >conftest.$ac_ext <<_ACEOF
8046 /* confdefs.h. */
8047 _ACEOF
8048 cat confdefs.h >>conftest.$ac_ext
8049 cat >>conftest.$ac_ext <<_ACEOF
8050 /* end confdefs.h. */
8053 main ()
8057 return 0;
8059 _ACEOF
8060 rm -f conftest.$ac_objext
8061 if { (ac_try="$ac_compile"
8062 case "(($ac_try" in
8063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8064 *) ac_try_echo=$ac_try;;
8065 esac
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_compile") 2>conftest.er1
8068 ac_status=$?
8069 grep -v '^ *+' conftest.er1 >conftest.err
8070 rm -f conftest.er1
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } && {
8074 test -z "$ac_c_werror_flag" ||
8075 test ! -s conftest.err
8076 } && test -s conftest.$ac_objext; then
8077 use_no_sign_warning="yes"
8078 else
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.$ac_ext >&5
8082 use_no_sign_warning="no"
8085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8086 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8087 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8088 if test "x-$use_no_sign_warning" = "x-yes" ; then
8089 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8091 CFLAGS="$save_cflags"
8093 #-----------------------------------------------------------------------------
8095 { echo "$as_me:$LINENO: checking for type of build" >&5
8096 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8097 # Check whether --enable-build_type was given.
8098 if test "${enable_build_type+set}" = set; then
8099 enableval=$enable_build_type; build_type=$enableval
8100 else
8101 build_type="personal"
8105 if test "$build_type" = "nightly"; then
8106 build_type_string="NIGHTLY"
8107 elif test "$build_type" = "snapshot"; then
8108 build_type_string="SNAPSHOT"
8109 elif test "$build_type" = "milestone"; then
8110 build_type_string="MILESTONE"
8111 elif test "$build_type" = "release"; then
8112 build_type_string="RELEASE"
8113 else
8114 build_type_string="PERSONAL"
8115 build_type="personal"
8118 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8120 { echo "$as_me:$LINENO: result: $build_type" >&5
8121 echo "${ECHO_T}$build_type" >&6; }
8123 #-----------------------------------------------------------------------------
8124 all_debug_types="messages stack modules mungwall symbols"
8126 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8127 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8128 # Check whether --enable-debug was given.
8129 if test "${enable_debug+set}" = set; then
8130 enableval=$enable_debug; debug="$enableval"
8131 else
8132 debug=""
8136 if test "$debug" = "" -o "$debug" = "no"; then
8137 debug="none"
8138 elif test "$debug" = "yes"; then
8139 debug="all"
8142 if test "$debug" = "all" ; then
8143 debug="messages stack modules symbols"
8144 for d in $all_debug_types; do
8145 export aros_${d}_debug="1"
8146 done
8147 else
8148 for d in $all_debug_types; do
8149 export aros_${d}_debug="0"
8150 done
8153 if test "$debug" != "none"; then
8154 debug=`echo $debug | sed s/,/\ /g`
8155 for d in $debug; do
8156 found="0"
8157 for d2 in $all_debug_types; do
8158 if test "$d2" = "$d"; then
8159 found="1"
8160 break
8162 done
8163 if test "$found" = "0"; then
8164 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8165 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8166 { (exit 1); exit 1; }; }
8168 export aros_${d}_debug="1"
8169 done
8170 aros_debug="yes"
8172 { echo "$as_me:$LINENO: result: $debug" >&5
8173 echo "${ECHO_T}$debug" >&6; }
8175 if test "$aros_messages_debug" = "1"; then
8176 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8177 else
8178 aros_messages_debug=""
8180 if test "$aros_symbols_debug" = "1"; then
8181 aros_symbols_debug="-g"
8182 else
8183 aros_symbols_debug=""
8186 # These are the flags to pass when compiling debugged programs
8187 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8188 aros_debug_aflags=""
8189 aros_debug_ldflags="$aros_symbols_debug"
8191 aros_crosstools="no"
8193 #-----------------------------------------------------------------------------
8194 # Checking if we should build crosstools..
8195 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8196 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8197 # Check whether --enable-crosstools was given.
8198 if test "${enable_crosstools+set}" = set; then
8199 enableval=$enable_crosstools; crosstools="$enableval"
8200 else
8201 crosstools="no"
8204 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8205 { echo "$as_me:$LINENO: result: yes" >&5
8206 echo "${ECHO_T}yes" >&6; }
8207 aros_crosstools="yes"
8208 else
8209 { echo "$as_me:$LINENO: result: no" >&5
8210 echo "${ECHO_T}no" >&6; }
8213 #-----------------------------------------------------------------------------
8214 # Checking for distcc and ccache.
8216 # Always apply the transforms in this particular order. Basically you should
8217 # always run 'ccache distcc compiler' in that order for the best performance.
8219 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8220 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8221 # Check whether --enable-distcc was given.
8222 if test "${enable_distcc+set}" = set; then
8223 enableval=$enable_distcc; distcc="$enableval"
8224 else
8225 distcc="no"
8228 if test "$distcc" != "" -a "$distcc" != "no"; then
8229 # AC_CHECK_PROG will print out the result in this case
8230 # Extract the first word of "distcc", so it can be a program name with args.
8231 set dummy distcc; ac_word=$2
8232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8234 if test "${ac_cv_path_DISTCC+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237 case $DISTCC in
8238 [\\/]* | ?:[\\/]*)
8239 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8249 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 break 2
8253 done
8254 done
8255 IFS=$as_save_IFS
8257 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8259 esac
8261 DISTCC=$ac_cv_path_DISTCC
8262 if test -n "$DISTCC"; then
8263 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8264 echo "${ECHO_T}$DISTCC" >&6; }
8265 else
8266 { echo "$as_me:$LINENO: result: no" >&5
8267 echo "${ECHO_T}no" >&6; }
8271 else
8272 { echo "$as_me:$LINENO: result: no" >&5
8273 echo "${ECHO_T}no" >&6; }
8276 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8277 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8278 # Check whether --enable-ccache was given.
8279 if test "${enable_ccache+set}" = set; then
8280 enableval=$enable_ccache; ccache="$enableval"
8281 else
8282 ccache="no"
8285 if test "$ccache" != "" -a "$ccache" != "no"; then
8286 # AC_CHECK_PROG will print out the result in this case
8287 # Extract the first word of "ccache", so it can be a program name with args.
8288 set dummy ccache; ac_word=$2
8289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8291 if test "${ac_cv_prog_CCACHE+set}" = set; then
8292 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 else
8294 if test -n "$CCACHE"; then
8295 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8296 else
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8300 IFS=$as_save_IFS
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8304 ac_cv_prog_CCACHE="ccache"
8305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8306 break 2
8308 done
8309 done
8310 IFS=$as_save_IFS
8314 CCACHE=$ac_cv_prog_CCACHE
8315 if test -n "$CCACHE"; then
8316 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8317 echo "${ECHO_T}$CCACHE" >&6; }
8318 else
8319 { echo "$as_me:$LINENO: result: no" >&5
8320 echo "${ECHO_T}no" >&6; }
8324 else
8325 { echo "$as_me:$LINENO: result: no" >&5
8326 echo "${ECHO_T}no" >&6; }
8329 #-----------------------------------------------------------------------------
8330 { echo "$as_me:$LINENO: checking what specific gcc version to use" >&5
8331 echo $ECHO_N "checking what specific gcc version to use... $ECHO_C" >&6; }
8333 # Check whether --with-gcc-version was given.
8334 if test "${with_gcc_version+set}" = set; then
8335 withval=$with_gcc_version; target_tool_version="$withval"
8336 else
8337 target_tool_version="default"
8340 { echo "$as_me:$LINENO: result: $target_tool_version" >&5
8341 echo "${ECHO_T}$target_tool_version" >&6; }
8343 #-----------------------------------------------------------------------------
8344 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8345 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8347 # Check whether --with-optimization was given.
8348 if test "${with_optimization+set}" = set; then
8349 withval=$with_optimization; optimization="$withval"
8350 else
8351 optimization="unknown"
8354 if test "$optimization" = "unknown"; then
8355 if test "$debug" != "none"; then
8356 optimization="-O0"
8357 else
8358 optimization="-O2"
8361 aros_config_cflags="$aros_config_cflags $optimization"
8362 { echo "$as_me:$LINENO: result: $optimization" >&5
8363 echo "${ECHO_T}$optimization" >&6; }
8365 #-----------------------------------------------------------------------------
8366 { echo "$as_me:$LINENO: checking what paranoia flags to use" >&5
8367 echo $ECHO_N "checking what paranoia flags to use... $ECHO_C" >&6; }
8369 # Check whether --with-paranoia was given.
8370 if test "${with_paranoia+set}" = set; then
8371 withval=$with_paranoia; paranoia_flags="$withval"
8372 else
8373 paranoia_flags="default"
8376 if test "$paranoia_flags" = "default"; then
8377 paranoia_flags=""
8378 else if test "$paranoia_flags" = "yes"; then
8379 paranoia_flags="-Wall -W -Werror"
8380 fi fi
8381 { echo "$as_me:$LINENO: result: $paranoia_flags" >&5
8382 echo "${ECHO_T}$paranoia_flags" >&6; }
8383 aros_paranoia_cflags="$paranoia_flags"
8385 #-----------------------------------------------------------------------------
8386 if test "$target_os" = "ios"; then
8388 { echo "$as_me:$LINENO: checking XCode path" >&5
8389 echo $ECHO_N "checking XCode path... $ECHO_C" >&6; }
8391 # Check whether --with-xcode-path was given.
8392 if test "${with_xcode_path+set}" = set; then
8393 withval=$with_xcode_path; aros_xcode_path="$withval"
8394 else
8395 aros_xcode_path="/Developer"
8398 { echo "$as_me:$LINENO: result: $aros_xcode_path" >&5
8399 echo "${ECHO_T}$aros_xcode_path" >&6; }
8401 { echo "$as_me:$LINENO: checking for minimum supported iOS version" >&5
8402 echo $ECHO_N "checking for minimum supported iOS version... $ECHO_C" >&6; }
8404 # Check whether --with-ios-version was given.
8405 if test "${with_ios_version+set}" = set; then
8406 withval=$with_ios_version; aros_ios_version="$withval"
8407 else
8408 aros_ios_version="2.0"
8411 { echo "$as_me:$LINENO: result: $aros_ios_version" >&5
8412 echo "${ECHO_T}$aros_ios_version" >&6; }
8414 { echo "$as_me:$LINENO: checking what iOS SDK version to use" >&5
8415 echo $ECHO_N "checking what iOS SDK version to use... $ECHO_C" >&6; }
8417 # Check whether --with-ios-sdk was given.
8418 if test "${with_ios_sdk+set}" = set; then
8419 withval=$with_ios_sdk; aros_ios_sdk="$withval"
8420 else
8421 aros_ios_sdk="4.1"
8424 { echo "$as_me:$LINENO: result: $aros_ios_sdk" >&5
8425 echo "${ECHO_T}$aros_ios_sdk" >&6; }
8429 #-----------------------------------------------------------------------------
8430 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8431 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8432 # Check whether --enable-target_variant was given.
8433 if test "${enable_target_variant+set}" = set; then
8434 enableval=$enable_target_variant; target_variant=$enableval
8435 else
8436 target_variant="none"
8439 if test "$target_variant" = "none"; then
8440 aros_target_variant=""
8441 aros_target_suffix=""
8442 else
8443 aros_target_variant="$target_variant"
8444 aros_target_suffix="-$target_variant"
8446 { echo "$as_me:$LINENO: result: $enableval" >&5
8447 echo "${ECHO_T}$enableval" >&6; }
8449 target_bootloader="none"
8451 #-----------------------------------------------------------------------------
8452 # This is the target configuration switch.
8453 case "$target_os" in
8454 linux*)
8455 aros_target_arch="linux"
8456 aros_target_family="unix"
8457 case "$target_cpu" in
8458 *m68k*)
8459 aros_target_cpu="m68k"
8460 aros_object_format="m68kelf"
8461 aros_flavour="emulcompat"
8462 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8463 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8464 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8465 gcc_target_cpu="mc68000"
8467 *i?86*)
8468 aros_target_cpu="i386"
8469 aros_object_format="elf_i386"
8470 aros_flavour="emulation"
8471 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8472 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8473 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8474 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8475 aros_config_ldflags="-m32 -march=i486"
8476 aros_kernel_ldflags="-melf_i386"
8477 aros_default_wbdepth=8
8478 gcc_target_cpu="i386"
8480 *x86_64*)
8481 aros_target_cpu="x86_64"
8482 aros_object_format="elf_x86_64"
8483 aros_flavour="emulation"
8484 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8485 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8486 aros_default_wbdepth=8
8487 gcc_target_cpu="x86_64"
8489 *powerpc*)
8490 aros_target_cpu="ppc"
8491 aros_object_format="elf32ppc"
8492 aros_flavour="emulation"
8493 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8494 aros_default_wbdepth=8
8495 gcc_target_cpu="ppc"
8497 # TODO
8498 # Same as powerpc, but I need this for the nightly build to work again.
8499 # Actually, the nightly should be made working with powerpc target.
8500 # That just was too much work for the moment, another week or two.
8501 *ppc*)
8502 aros_target_cpu="ppc"
8503 aros_object_format="elf32ppc"
8504 aros_flavour="emulation"
8505 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8506 aros_default_wbdepth=8
8507 gcc_target_cpu="ppc"
8509 *arm*)
8510 aros_target_cpu="arm"
8511 aros_object_format="armelf_linux_eabi"
8512 aros_flavour="emulation"
8513 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm -D__linux__"
8514 gcc_target_cpu="arm"
8515 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8516 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8519 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8520 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8521 { (exit 1); exit 1; }; }
8523 esac
8527 aros_target_arch="pc"
8528 aros_shared_default="no"
8529 target_bootloader="grub2"
8530 case "$target_cpu" in
8531 *i?86*)
8532 aros_target_cpu="i386"
8535 if test "$aros_object_format" = "" ; then
8536 aros_object_format="elf_i386"
8538 aros_flavour="standalone"
8539 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8540 aros_config_cflags="$aros_config_cflags -m32 -march=i486"
8541 aros_kernel_cflags="$aros_kernel_cflags -m32 -march=i486"
8542 aros_config_aflags="$aros_config_aflags -m32 -march=i486"
8543 aros_config_ldflags="-m32 -march=i486"
8544 aros_kernel_ldflags="-melf_i386"
8545 aros_default_wbwidth=640
8546 aros_default_wbheight=480
8547 gcc_target_cpu="i386"
8549 *x86_64*)
8550 aros_target_cpu="x86_64"
8551 aros_serial_debug=1
8552 if test "$aros_object_format" = "" ; then
8553 aros_object_format="elf_x86_64"
8555 aros_flavour="standalone"
8556 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8557 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8558 aros_kernel_ldflags=""
8559 aros_default_wbwidth=640
8560 aros_default_wbheight=480
8561 gcc_target_cpu="x86_64"
8564 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8565 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8566 { (exit 1); exit 1; }; }
8568 esac
8571 prep)
8572 aros_target_arch="prep"
8573 aros_shared_default="no"
8574 aros_target_cpu="ppc"
8575 aros_object_format="elf32ppc"
8576 aros_flavour="ppcnative"
8577 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8578 aros_kernel_ldflags=""
8579 aros_default_wbwidth=640
8580 aros_default_wbheight=480
8581 gcc_target_cpu="ppc"
8584 freebsd*)
8585 aros_target_arch="freebsd"
8586 aros_target_family="unix"
8587 aros_target_cpu="i386"
8588 aros_flavour="emulation"
8589 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8590 gcc_target_cpu="i386"
8592 aros_target_strip_flags="-x"
8595 darwin*)
8596 aros_target_arch="darwin"
8597 aros_target_family="unix"
8598 aros_flavour="emulation"
8599 case "$target_cpu" in
8600 *i?86*)
8601 aros_target_cpu="i386"
8602 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8603 aros_kernel_cflags="$aros_kernel_cflags -m32"
8604 aros_kernel_ldflags="$aros_kernel_ldflags -m32"
8605 aros_default_wbdepth=8
8606 gcc_target_cpu="i386"
8607 aros_object_format="elf_i386"
8608 aros_target_strip_flags="-x"
8609 aros_target_cc="i386-aros-gcc"
8610 aros_target_cxx="i386-aros-g++"
8611 aros_target_ld="i386-aros-ld"
8612 aros_target_as="i386-aros-as"
8613 aros_target_ar="i386-aros-ar"
8614 aros_target_ranlib="i386-aros-ranlib"
8615 aros_target_nm="i386-aros-nm"
8616 aros_target_strip="i386-aros-strip"
8617 aros_target_objcopy="i386-aros-objcopy"
8618 aros_target_objdump="i386-aros-objdump"
8619 target_tool_prefix="i686-apple-darwin10-"
8621 *x86_64*)
8622 aros_target_cpu="x86_64"
8623 aros_object_format="elf_x86_64"
8624 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8625 aros_kernel_cflags="$aros_kernel_cflags -m64"
8626 aros_kernel_ldflags="$aros_kernel_ldflags -m64"
8627 aros_default_wbdepth=8
8628 gcc_target_cpu="x86_64"
8629 aros_target_cc="x86_64-aros-gcc"
8630 aros_target_cxx="x86_64-aros-g++"
8631 aros_target_ld="x86_64-aros-ld"
8632 aros_target_as="x86_64-aros-as"
8633 aros_target_ar="x86_64-aros-ar"
8634 aros_target_ranlib="x86_64-aros-ranlib"
8635 aros_target_nm="x86_64-aros-nm"
8636 aros_target_strip="x86_64-aros-strip"
8637 aros_target_objcopy="x86_64-aros-objcopy"
8638 aros_target_objdump="x86_64-aros-objdump"
8639 target_tool_prefix="i686-apple-darwin10-"
8641 *ppc*)
8642 aros_target_cpu="ppc"
8643 aros_object_format="elf32_ppc"
8644 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8645 aros_default_wbdepth=8
8646 gcc_target_cpu="ppc"
8647 aros_target_cc="ppc-aros-gcc"
8648 aros_target_cxx="ppc-aros-g++"
8649 aros_target_ld="ppc-aros-ld"
8650 aros_target_as="ppc-aros-as"
8651 aros_target_ar="ppc-aros-ar"
8652 aros_target_ranlib="ppc-aros-ranlib"
8653 aros_target_nm="ppc-aros-nm"
8654 aros_target_strip="ppc-aros-strip"
8655 aros_target_objcopy="ppc-aros-objcopy"
8656 aros_target_objdump="ppc-aros-objdump"
8657 target_tool_prefix="powerpc-apple-darwin10-"
8660 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8661 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8662 { (exit 1); exit 1; }; }
8664 esac
8667 ios*)
8668 aros_target_arch="ios"
8669 aros_target_family="unix"
8670 aros_flavour="emulation"
8671 # This is here because it may depend on iOS or SDK version
8672 aros_kernel_objcflags="-fobjc-abi-version=2 -fobjc-legacy-dispatch"
8673 case "$target_cpu" in
8674 *i?86*)
8675 aros_ios_platform="iPhoneSimulator"
8676 aros_target_cpu="i386"
8677 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8678 aros_default_wbdepth=8
8679 gcc_target_cpu="i386"
8680 aros_object_format="elf_i386"
8681 aros_target_strip_flags="-x"
8682 aros_target_cc="i386-aros-gcc"
8683 aros_target_cxx="i386-aros-g++"
8684 aros_target_ld="i386-aros-ld"
8685 aros_target_as="i386-aros-as"
8686 aros_target_ar="i386-aros-ar"
8687 aros_target_ranlib="i386-aros-ranlib"
8688 aros_target_nm="i386-aros-nm"
8689 aros_target_strip="i386-aros-strip"
8690 aros_target_objcopy="i386-aros-objcopy"
8691 aros_target_objdump="i386-aros-objdump"
8692 target_tool_prefix="i686-apple-darwin10-"
8693 target_tool_flags="-m32"
8695 *arm*)
8696 aros_ios_platform="iPhoneOS"
8697 aros_target_cpu="arm"
8698 aros_object_format="armelf_linux_eabi"
8699 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8700 aros_config_cflags="$aros_config_cflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8701 aros_config_aflags="$aros_config_aflags -march=armv6 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions"
8702 aros_arch_libs="-laeabi"
8703 aros_default_wbdepth=8
8704 gcc_target_cpu="arm"
8705 aros_kernel_ld="ld -arch armv6"
8706 aros_target_cc="arm-aros-gcc"
8707 aros_target_cxx="arm-aros-g++"
8708 aros_target_ld="arm-aros-ld"
8709 aros_target_as="arm-aros-as"
8710 aros_target_ar="arm-aros-ar"
8711 aros_target_ranlib="arm-aros-ranlib"
8712 aros_target_nm="arm-aros-nm"
8713 aros_target_strip="arm-aros-strip"
8714 aros_target_objcopy="arm-aros-objcopy"
8715 aros_target_objdump="arm-aros-objdump"
8716 target_tool_prefix="arm-apple-darwin10-"
8717 aros_default_wbwidth=320
8718 aros_default_wbheight=480
8719 export PATH="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/usr/bin:$PATH"
8722 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&5
8723 echo "$as_me: error: \"Unsupported target CPU for iOS hosted flavour -- $target_cpu\"" >&2;}
8724 { (exit 1); exit 1; }; }
8726 esac
8727 aros_ios_sdk="$aros_xcode_path/Platforms/$aros_ios_platform.platform/Developer/SDKs/$aros_ios_platform$aros_ios_sdk.sdk"
8728 target_tool_flags="$target_tool_flags --sysroot $aros_ios_sdk"
8731 dragonfly*)
8732 aros_target_arch="dragonfly"
8733 aros_target_family="unix"
8734 aros_flavour="emulation"
8735 case "$target_cpu" in
8736 *i?86*)
8737 aros_target_cpu="i386"
8738 aros_object_format="elf_i386"
8739 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__DragonFly__"
8741 *x86_64*)
8742 aros_target_cpu="x86_64"
8743 aros_object_format="elf_x86_64"
8744 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__DragonFly__"
8747 { { echo "$as_me:$LINENO: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&5
8748 echo "$as_me: error: \"Unknown CPU for DragonFly -- $target_cpu\"" >&2;}
8749 { (exit 1); exit 1; }; }
8751 esac
8754 netbsd*)
8755 aros_target_arch="netbsd"
8756 aros_target_family="unix"
8757 case "$target_cpu" in
8758 *m68k*)
8759 aros_target_cpu="m68k"
8760 aros_object_format="m68kelf"
8761 aros_flavour="emulcompat"
8762 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8763 gcc_target_cpu="mc68000"
8765 *i?86*)
8766 aros_target_cpu="i386"
8767 aros_object_format="elf_i386"
8768 aros_flavour="emulation"
8769 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8770 aros_default_wbdepth=8
8771 gcc_target_cpu="i386"
8774 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8775 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8776 { (exit 1); exit 1; }; }
8778 esac
8779 aros_target_genmap="-Wl,-M -Xlinker >"
8780 aros_flavour="emulation"
8781 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8784 openbsd*)
8785 aros_target_arch="openbsd"
8786 aros_target_family="unix"
8787 case "$target_cpu" in
8788 *i?86*)
8789 aros_target_cpu="i386"
8790 aros_object_format="elf_i386"
8791 aros_flavour="emulation"
8792 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8793 gcc_target_cpu="i386"
8796 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8797 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8798 { (exit 1); exit 1; }; }
8800 esac
8801 aros_target_genmap="-Wl,-M -Xlinker >"
8802 aros_target_nm_flags="-u"
8803 aros_flavour="emulation"
8806 solaris*)
8807 aros_target_arch="solaris"
8808 aros_target_family="unix"
8809 case "$target_cpu" in
8810 *i?86*)
8811 aros_target_cpu="i386"
8812 aros_object_format="elf_i386"
8813 aros_flavour="emulation"
8814 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8815 aros_default_wbdepth=8
8816 gcc_target_cpu="i386"
8818 *sparc*)
8819 aros_target_cpu="sparc"
8820 aros_object_format="elf_sparc"
8821 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8822 gcc_target_cpu="sparc"
8825 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8826 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8827 { (exit 1); exit 1; }; }
8829 esac
8830 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8831 aros_flavour="emulation"
8834 morphos*)
8835 aros_target_arch="morphos"
8836 aros_shared_default="no"
8837 aros_target_cpu="ppc"
8838 aros_object_format="elf_ppc"
8839 aros_flavour="nativecompat"
8840 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8841 gcc_target_cpu="ppc"
8844 sam440)
8845 aros_target_arch="sam440"
8846 aros_shared_default="no"
8847 aros_target_cpu="ppc"
8848 aros_object_format="elf32ppc"
8849 aros_flavour="ppcnative"
8850 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8851 aros_kernel_ldflags=""
8852 aros_default_wbwidth=1024
8853 aros_default_wbheight=768
8854 aros_default_wbdepth=24
8855 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8856 gcc_target_cpu="powerpc"
8859 efika)
8860 aros_target_arch="efika"
8861 aros_shared_default="no"
8862 aros_target_cpu="arm"
8863 aros_object_format="armelf_linux_eabi"
8864 aros_flavour="standalone"
8865 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8866 aros_kernel_ldflags=""
8867 aros_default_wbwidth=1024
8868 aros_default_wbheight=600
8869 aros_arch_libs="-laeabi"
8870 aros_config_cflags="$aros_config_cflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
8871 aros_config_aflags="$aros_config_aflags -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=softfp -fno-asynchronous-unwind-tables -fno-exceptions -fno-strict-aliasing"
8874 chrp)
8875 aros_target_arch="chrp"
8876 aros_shared_default="no"
8877 aros_target_cpu="ppc"
8878 aros_object_format="elf32ppc"
8879 aros_flavour="ppcnative"
8880 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8881 aros_kernel_ldflags=""
8882 aros_default_wbwidth=640
8883 aros_default_wbheight=480
8884 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8885 gcc_target_cpu="powerpc"
8886 case "$aros_target_variant" in
8887 efika)
8888 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8890 esac
8893 amiga*)
8894 aros_target_arch="amiga"
8895 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8896 aros_shared_default="no"
8898 case "$target_cpu" in
8899 *m68k-eabi)
8900 aros_target_cpu="m68k"
8901 aros_object_format="m68kelf"
8902 aros_flavour="standalone"
8903 gcc_target_cpu="mc68000"
8904 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
8905 aros_config_aflags="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
8906 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
8907 target_tool_prefix="m68k-elf-"
8908 aros_target_nostdlib_ldflags="" # We always need -lgcc
8909 aros_target_strip_flags="-R.comment"
8911 *m68k*)
8912 aros_target_cpu="m68k"
8913 aros_object_format="m68kelf"
8914 aros_flavour="standcompat"
8915 gcc_target_cpu="mc68000"
8916 aros_config_cflags="$aros_config_cflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu} -fbuiltin"
8917 aros_config_aflags="$aros_config_aflags -g3 -fno-strict-aliasing -ffreestanding -fomit-frame-pointer -${gcc_target_cpu}"
8918 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -${gcc_target_cpu}"
8919 target_tool_prefix="m68k-elf-"
8920 aros_target_nostdlib_ldflags="" # We always need -lgcc
8921 aros_target_strip_flags="-R.comment"
8923 *ppc*)
8924 aros_cpu="ppc"
8925 aros_flavour="native"
8926 gcc_target_cpu="ppc"
8929 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8930 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8931 { (exit 1); exit 1; }; }
8933 esac
8936 mingw*)
8937 aros_target_arch="mingw32"
8938 aros_shared_default="no"
8939 aros_flavour="emulation"
8940 aros_shared_cflags=""
8941 need_dlopen="no"
8942 rescomp="windres"
8943 case "$target_cpu" in
8944 *i?86*)
8945 aros_target_cpu="i386"
8946 aros_object_format="elf_i386"
8947 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8948 aros_default_wbdepth=8
8949 gcc_target_cpu="i386"
8950 aros_target_cc="i386-aros-gcc"
8951 aros_target_cxx="i386-aros-g++"
8952 aros_target_ld="i386-aros-ld"
8953 aros_target_as="i386-aros-as"
8954 aros_target_ar="i386-aros-ar"
8955 aros_target_ranlib="i386-aros-ranlib"
8956 aros_target_nm="i386-aros-nm"
8957 aros_target_strip="i386-aros-strip"
8958 aros_target_objcopy="i386-aros-objcopy"
8959 aros_target_objdump="i386-aros-objdump"
8960 target_tool_prefix="i386-mingw32-"
8962 *x86_64*)
8963 aros_target_cpu="x86_64"
8964 aros_object_format="elf_x86_64"
8965 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8966 aros_default_wbdepth=8
8967 gcc_target_cpu="x86_64"
8968 aros_target_cc="x86_64-aros-gcc"
8969 aros_target_cxx="x86_64-aros-g++"
8970 aros_target_ld="x86_64-aros-ld"
8971 aros_target_as="x86_64-aros-as"
8972 aros_target_ar="x86_64-aros-ar"
8973 aros_target_ranlib="x86_64-aros-ranlib"
8974 aros_target_nm="x86_64-aros-nm"
8975 aros_target_strip="x86_64-aros-strip"
8976 aros_target_objcopy="x86_64-aros-objcopy"
8977 aros_target_objdump="x86_64-aros-objdump"
8978 target_tool_prefix="x86_64-w64-mingw32-"
8980 *arm*)
8981 aros_target_cpu="arm"
8982 aros_object_format="armelf_linux_eabi"
8983 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Darm"
8984 aros_arch_libs="-laeabi"
8985 aros_default_wbdepth=8
8986 gcc_target_cpu="arm"
8987 aros_target_cc="arm-aros-gcc"
8988 aros_target_cxx="arm-aros-g++"
8989 aros_target_ld="arm-aros-ld"
8990 aros_target_as="arm-aros-as"
8991 aros_target_ar="arm-aros-ar"
8992 aros_target_ranlib="arm-aros-ranlib"
8993 aros_target_nm="arm-aros-nm"
8994 aros_target_strip="arm-aros-strip"
8995 aros_target_objcopy="arm-aros-objcopy"
8996 aros_target_objdump="arm-aros-objdump"
8997 target_tool_prefix="arm-mingw32ce-"
8998 aros_default_wbwidth=160
8999 aros_default_wbheight=160
9002 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
9003 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
9004 { (exit 1); exit 1; }; }
9006 esac
9007 if test $host_os = "cygwin"; then
9008 aros_kernel_cflags="-mno-cygwin"
9011 pp*)
9012 aros_target_arch="pp"
9013 aros_shared_default="no"
9014 case "$target_cpu" in
9015 *m68k*)
9016 aros_target_cpu="m68k"
9017 aros_object_format="m68kelf"
9018 aros_flavour="palmnative"
9019 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9020 aros_default_wbwidth=160
9021 aros_default_wbheight=160
9022 aros_default_wbdepth=1
9023 aros_target_ar_flags="cru"
9024 aros_compiler_libs="-lgcc1"
9025 aros_shared_default=no
9026 aros_shared_cflags="-fpic"
9027 aros_shared_aflags=""
9028 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9029 aros_kernel_ldflags="-Wl,-rpath,./lib"
9030 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
9031 aros_debug_aflags=""
9032 aros_debug_ldflags="$aros_symbols_debug"
9033 aros_mungwall_debug="0"
9034 aros_modules_debug="0"
9035 gcc_target_cpu="mc68000"
9036 ignore_undefined_symbols="-ius"
9039 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
9040 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
9041 { (exit 1); exit 1; }; }
9043 esac
9046 mac*)
9047 aros_target_arch="mac"
9048 aros_shared_default="no"
9049 case "$target_cpu" in
9050 *m68k*)
9051 aros_target_cpu="m68k"
9052 aros_object_format="m68kelf"
9053 aros_flavour="mac68knative"
9054 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
9055 aros_default_wbwidth=512
9056 aros_default_wbheight=384
9057 aros_default_wbdepth=8
9058 aros_target_ar_flags="cru"
9059 aros_compiler_libs="-lgcc1"
9060 aros_shared_default=no
9061 aros_shared_cflags="-fpic"
9062 aros_shared_aflags=""
9063 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
9064 aros_kernel_ldflags="-Wl,-rpath,./lib"
9065 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
9066 aros_debug_aflags=""
9067 aros_debug_ldflags="$aros_symbols_debug"
9068 aros_mungwall_debug="0"
9069 aros_modules_debug="0"
9070 gcc_target_cpu="mc68000"
9071 ignore_undefined_symbols="-ius"
9074 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
9075 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
9076 { (exit 1); exit 1; }; }
9078 esac
9082 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
9083 echo "$as_me: error: Unsupported target architecture $target" >&2;}
9084 { (exit 1); exit 1; }; }
9086 esac
9088 # FIXME: for cross-compiling this should point to another location
9089 if test "$aros_flavour" = "emulation"; then
9090 aros_kernel_includes="-isystem /usr/include"
9092 if test "$aros_flavour" = "emulcompat"; then
9093 aros_kernel_includes="-isystem /usr/include"
9096 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
9097 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
9099 # Check whether --with-portssources was given.
9100 if test "${with_portssources+set}" = set; then
9101 withval=$with_portssources; with_portssrcdir=$withval
9102 else
9103 with_portssrcdir="default"
9106 if test "$with_portssrcdir" = "default"; then
9107 AROS_PORTSSRCDIR="$AROS_BUILDDIR_UNIX/bin/Sources"
9108 else
9109 AROS_PORTSSRCDIR="$with_portssrcdir"
9111 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
9112 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
9114 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
9115 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
9117 # Check whether --with-bootloader was given.
9118 if test "${with_bootloader+set}" = set; then
9119 withval=$with_bootloader; target_bootloader=$withval
9120 else
9121 target_bootloader=$target_bootloader
9124 if test "$target_bootloader" = "none"; then
9125 aros_target_bootloader=""
9126 else
9127 aros_target_bootloader="$target_bootloader"
9129 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
9130 echo "${ECHO_T}$target_bootloader" >&6; }
9132 { echo "$as_me:$LINENO: checking which icon-set to use" >&5
9133 echo $ECHO_N "checking which icon-set to use... $ECHO_C" >&6; }
9135 # Check whether --with-iconset was given.
9136 if test "${with_iconset+set}" = set; then
9137 withval=$with_iconset; target_iconset=$withval
9138 else
9139 target_iconset="default"
9142 if test "$target_iconset" = "default"; then
9143 aros_target_iconset="Gorilla"
9144 target_iconset="default (Gorilla)"
9145 else
9146 aros_target_iconset="$target_iconset"
9148 { echo "$as_me:$LINENO: result: $target_iconset" >&5
9149 echo "${ECHO_T}$target_iconset" >&6; }
9151 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9152 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9154 # Check whether --with-theme was given.
9155 if test "${with_theme+set}" = set; then
9156 withval=$with_theme; target_guitheme=$withval
9157 else
9158 target_guitheme="default"
9161 if test "$target_guitheme" = "default"; then
9162 aros_target_guitheme="Ice"
9163 else
9164 aros_target_guitheme="$target_guitheme"
9166 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9167 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9169 # Find out if we are cross-compiling (i.e. if we can't use the host compiler
9170 # for target code)
9171 cross_compiling=no
9172 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9173 cross_compiling=yes
9175 if test "$aros_host_cpu" == "x86_64" ; then
9176 if test "$aros_target_cpu" == "i386" ; then
9177 if test "$aros_target_arch" != "mingw32"; then
9178 cross_compiling=no
9183 # Set prefix for target compiler etc. if we're cross-compiling
9184 # (should possibly be earlier but needs to be after AC_PROG_CC)
9185 if test "$cross_compiling" = "yes" ; then
9186 if test "$target_tool_prefix" = ""; then
9187 target_tool_prefix=${target_cpu}-elf-
9189 CC=${target_tool_prefix}gcc
9190 if test "$target_tool_version" != "default"; then
9191 CC="$CC-$target_tool_version"
9193 # Extract the first word of "$CC", so it can be a program name with args.
9194 set dummy $CC; ac_word=$2
9195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9197 if test "${ac_cv_path_CC+set}" = set; then
9198 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 else
9200 case $CC in
9201 [\\/]* | ?:[\\/]*)
9202 ac_cv_path_CC="$CC" # Let the user override the test with a path.
9205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9206 for as_dir in $PATH
9208 IFS=$as_save_IFS
9209 test -z "$as_dir" && as_dir=.
9210 for ac_exec_ext in '' $ac_executable_extensions; do
9211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9212 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
9213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9214 break 2
9216 done
9217 done
9218 IFS=$as_save_IFS
9221 esac
9223 CC=$ac_cv_path_CC
9224 if test -n "$CC"; then
9225 { echo "$as_me:$LINENO: result: $CC" >&5
9226 echo "${ECHO_T}$CC" >&6; }
9227 else
9228 { echo "$as_me:$LINENO: result: no" >&5
9229 echo "${ECHO_T}no" >&6; }
9233 if test "$CC" = ""; then
9234 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9235 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9236 { (exit 1); exit 1; }; }
9239 CC="$CC $target_tool_flags"
9241 #-----------------------------------------------------------------------------
9243 # Disable pointer-signedness warnings if the compiler recognises the option
9245 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9246 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
9247 save_cflags="$CFLAGS"
9248 CFLAGS="$CFLAGS -Wno-pointer-sign"
9249 cat >conftest.$ac_ext <<_ACEOF
9250 /* confdefs.h. */
9251 _ACEOF
9252 cat confdefs.h >>conftest.$ac_ext
9253 cat >>conftest.$ac_ext <<_ACEOF
9254 /* end confdefs.h. */
9257 main ()
9261 return 0;
9263 _ACEOF
9264 rm -f conftest.$ac_objext
9265 if { (ac_try="$ac_compile"
9266 case "(($ac_try" in
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9269 esac
9270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_compile") 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } && {
9278 test -z "$ac_c_werror_flag" ||
9279 test ! -s conftest.err
9280 } && test -s conftest.$ac_objext; then
9281 use_no_sign_warning="yes"
9282 else
9283 echo "$as_me: failed program was:" >&5
9284 sed 's/^/| /' conftest.$ac_ext >&5
9286 use_no_sign_warning="no"
9289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9290 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9291 echo "${ECHO_T}$use_no_sign_warning" >&6; }
9292 if test "x-$use_no_sign_warning" = "x-yes" ; then
9293 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9295 CFLAGS="$save_cflags"
9297 #-----------------------------------------------------------------------------
9299 # Find all the tools we need to compile. This could be cross-compiling
9300 # though! If that is the case we use the GNU form of the target and
9301 # simply add this to the front of the binary name. This is rather simple,
9302 # but it should work under most circumstances.
9304 # The default tools are to use the same as the host, but only if the
9305 # host and target CPU are the same. With GCC this is normally enough.
9308 aros_cc_pre=""
9309 aros_shared_ld="$aros_host_ld"
9311 aros_target_mkdep="$aros_host_mkdep"
9312 aros_target_incl_def="$aros_host_incl"
9314 aros_kernel_cc="$CC"
9316 # The default tools executables to be linked to.
9317 if test "$aros_target_cc" != ""; then
9318 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9319 set dummy $aros_target_cc; ac_word=$2
9320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9322 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9323 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 else
9325 case $aros_target_cc in
9326 [\\/]* | ?:[\\/]*)
9327 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9331 for as_dir in $PATH
9333 IFS=$as_save_IFS
9334 test -z "$as_dir" && as_dir=.
9335 for ac_exec_ext in '' $ac_executable_extensions; do
9336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9337 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9339 break 2
9341 done
9342 done
9343 IFS=$as_save_IFS
9346 esac
9348 aros_target_cc=$ac_cv_path_aros_target_cc
9349 if test -n "$aros_target_cc"; then
9350 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9351 echo "${ECHO_T}$aros_target_cc" >&6; }
9352 else
9353 { echo "$as_me:$LINENO: result: no" >&5
9354 echo "${ECHO_T}no" >&6; }
9358 if test "$aros_target_cc" = ""; then
9359 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9360 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9361 { (exit 1); exit 1; }; }
9364 if test "$aros_target_ld" != ""; then
9365 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9366 set dummy $aros_target_ld; ac_word=$2
9367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9369 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9370 echo $ECHO_N "(cached) $ECHO_C" >&6
9371 else
9372 case $aros_target_ld in
9373 [\\/]* | ?:[\\/]*)
9374 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9378 for as_dir in $PATH
9380 IFS=$as_save_IFS
9381 test -z "$as_dir" && as_dir=.
9382 for ac_exec_ext in '' $ac_executable_extensions; do
9383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9384 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9386 break 2
9388 done
9389 done
9390 IFS=$as_save_IFS
9393 esac
9395 aros_target_ld=$ac_cv_path_aros_target_ld
9396 if test -n "$aros_target_ld"; then
9397 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9398 echo "${ECHO_T}$aros_target_ld" >&6; }
9399 else
9400 { echo "$as_me:$LINENO: result: no" >&5
9401 echo "${ECHO_T}no" >&6; }
9405 if test "$aros_target_ld" = ""; then
9406 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9407 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9408 { (exit 1); exit 1; }; }
9412 if test "$crosstools" != "yes"; then
9414 if test "$aros_target_as" = ""; then
9415 if test "$cross_compiling" = "yes" ; then
9416 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9417 set dummy ${target_tool_prefix}as; ac_word=$2
9418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9420 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423 case $aros_target_as_ln in
9424 [\\/]* | ?:[\\/]*)
9425 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429 for as_dir in $PATH
9431 IFS=$as_save_IFS
9432 test -z "$as_dir" && as_dir=.
9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9435 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 break 2
9439 done
9440 done
9441 IFS=$as_save_IFS
9444 esac
9446 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9447 if test -n "$aros_target_as_ln"; then
9448 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9449 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9450 else
9451 { echo "$as_me:$LINENO: result: no" >&5
9452 echo "${ECHO_T}no" >&6; }
9456 else
9457 if test "$GCC" = "yes"; then
9458 aros_gcc_as=`$CC -print-prog-name=as`
9459 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9460 set dummy `basename $aros_gcc_as`; ac_word=$2
9461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9463 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9464 echo $ECHO_N "(cached) $ECHO_C" >&6
9465 else
9466 case $aros_target_as_ln in
9467 [\\/]* | ?:[\\/]*)
9468 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9472 for as_dir in `dirname $aros_gcc_as`
9474 IFS=$as_save_IFS
9475 test -z "$as_dir" && as_dir=.
9476 for ac_exec_ext in '' $ac_executable_extensions; do
9477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9478 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9480 break 2
9482 done
9483 done
9484 IFS=$as_save_IFS
9487 esac
9489 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9490 if test -n "$aros_target_as_ln"; then
9491 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9492 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9493 else
9494 { echo "$as_me:$LINENO: result: no" >&5
9495 echo "${ECHO_T}no" >&6; }
9500 if test "$aros_target_as_ln" = ""; then
9501 # Extract the first word of "as", so it can be a program name with args.
9502 set dummy as; ac_word=$2
9503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9505 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508 case $aros_target_as_ln in
9509 [\\/]* | ?:[\\/]*)
9510 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9514 for as_dir in $PATH
9516 IFS=$as_save_IFS
9517 test -z "$as_dir" && as_dir=.
9518 for ac_exec_ext in '' $ac_executable_extensions; do
9519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9520 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9522 break 2
9524 done
9525 done
9526 IFS=$as_save_IFS
9529 esac
9531 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9532 if test -n "$aros_target_as_ln"; then
9533 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9534 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9535 else
9536 { echo "$as_me:$LINENO: result: no" >&5
9537 echo "${ECHO_T}no" >&6; }
9543 else
9544 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9545 set dummy $aros_target_as; ac_word=$2
9546 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9548 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9549 echo $ECHO_N "(cached) $ECHO_C" >&6
9550 else
9551 case $aros_target_as_ln in
9552 [\\/]* | ?:[\\/]*)
9553 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9557 for as_dir in $PATH
9559 IFS=$as_save_IFS
9560 test -z "$as_dir" && as_dir=.
9561 for ac_exec_ext in '' $ac_executable_extensions; do
9562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9563 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9564 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9565 break 2
9567 done
9568 done
9569 IFS=$as_save_IFS
9572 esac
9574 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9575 if test -n "$aros_target_as_ln"; then
9576 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9577 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9578 else
9579 { echo "$as_me:$LINENO: result: no" >&5
9580 echo "${ECHO_T}no" >&6; }
9586 if test "$aros_target_as_ln" = ""; then
9587 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9588 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9589 { (exit 1); exit 1; }; }
9592 if test "$aros_kernel_ld" = ""; then
9593 if test "$cross_compiling" = "yes" ; then
9594 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9595 set dummy ${target_tool_prefix}ld; ac_word=$2
9596 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9597 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9598 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9599 echo $ECHO_N "(cached) $ECHO_C" >&6
9600 else
9601 case $aros_kernel_ld in
9602 [\\/]* | ?:[\\/]*)
9603 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9607 for as_dir in $PATH
9609 IFS=$as_save_IFS
9610 test -z "$as_dir" && as_dir=.
9611 for ac_exec_ext in '' $ac_executable_extensions; do
9612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9613 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9615 break 2
9617 done
9618 done
9619 IFS=$as_save_IFS
9622 esac
9624 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9625 if test -n "$aros_kernel_ld"; then
9626 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9627 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9628 else
9629 { echo "$as_me:$LINENO: result: no" >&5
9630 echo "${ECHO_T}no" >&6; }
9634 else
9635 if test "$GCC" = "yes"; then
9636 aros_gcc_ld=`$CC -print-prog-name=ld`
9637 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9638 set dummy `basename $aros_gcc_ld`; ac_word=$2
9639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9641 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9642 echo $ECHO_N "(cached) $ECHO_C" >&6
9643 else
9644 case $aros_kernel_ld in
9645 [\\/]* | ?:[\\/]*)
9646 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9650 for as_dir in `dirname $aros_gcc_ld`
9652 IFS=$as_save_IFS
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9657 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9658 break 2
9660 done
9661 done
9662 IFS=$as_save_IFS
9665 esac
9667 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9668 if test -n "$aros_kernel_ld"; then
9669 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9670 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9671 else
9672 { echo "$as_me:$LINENO: result: no" >&5
9673 echo "${ECHO_T}no" >&6; }
9678 if test "$aros_kernel_ld" = ""; then
9679 # Extract the first word of "ld", so it can be a program name with args.
9680 set dummy ld; ac_word=$2
9681 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9682 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9683 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9685 else
9686 case $aros_kernel_ld in
9687 [\\/]* | ?:[\\/]*)
9688 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9692 for as_dir in $PATH
9694 IFS=$as_save_IFS
9695 test -z "$as_dir" && as_dir=.
9696 for ac_exec_ext in '' $ac_executable_extensions; do
9697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9698 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9700 break 2
9702 done
9703 done
9704 IFS=$as_save_IFS
9707 esac
9709 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9710 if test -n "$aros_kernel_ld"; then
9711 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9712 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9713 else
9714 { echo "$as_me:$LINENO: result: no" >&5
9715 echo "${ECHO_T}no" >&6; }
9721 else
9722 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9723 set dummy $aros_kernel_ld; ac_word=$2
9724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9726 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9727 echo $ECHO_N "(cached) $ECHO_C" >&6
9728 else
9729 case $aros_kernel_ld in
9730 [\\/]* | ?:[\\/]*)
9731 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9735 for as_dir in $PATH
9737 IFS=$as_save_IFS
9738 test -z "$as_dir" && as_dir=.
9739 for ac_exec_ext in '' $ac_executable_extensions; do
9740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9741 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9743 break 2
9745 done
9746 done
9747 IFS=$as_save_IFS
9750 esac
9752 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9753 if test -n "$aros_kernel_ld"; then
9754 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9755 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9756 else
9757 { echo "$as_me:$LINENO: result: no" >&5
9758 echo "${ECHO_T}no" >&6; }
9764 if test "$aros_kernel_ld" = ""; then
9765 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9766 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9767 { (exit 1); exit 1; }; }
9770 if test "$aros_target_ar" = ""; then
9771 if test "$cross_compiling" = "yes" ; then
9772 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9773 set dummy ${target_tool_prefix}ar; ac_word=$2
9774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9776 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9777 echo $ECHO_N "(cached) $ECHO_C" >&6
9778 else
9779 case $aros_target_ar_ln in
9780 [\\/]* | ?:[\\/]*)
9781 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 for as_dir in $PATH
9787 IFS=$as_save_IFS
9788 test -z "$as_dir" && as_dir=.
9789 for ac_exec_ext in '' $ac_executable_extensions; do
9790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9791 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9793 break 2
9795 done
9796 done
9797 IFS=$as_save_IFS
9800 esac
9802 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9803 if test -n "$aros_target_ar_ln"; then
9804 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9805 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9806 else
9807 { echo "$as_me:$LINENO: result: no" >&5
9808 echo "${ECHO_T}no" >&6; }
9812 else
9813 if test "$GCC" = "yes"; then
9814 aros_gcc_ar=`$CC -print-prog-name=ar`
9815 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9816 set dummy `basename $aros_gcc_ar`; ac_word=$2
9817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9819 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9820 echo $ECHO_N "(cached) $ECHO_C" >&6
9821 else
9822 case $aros_target_ar_ln in
9823 [\\/]* | ?:[\\/]*)
9824 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9828 for as_dir in `dirname $aros_gcc_ar`
9830 IFS=$as_save_IFS
9831 test -z "$as_dir" && as_dir=.
9832 for ac_exec_ext in '' $ac_executable_extensions; do
9833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9834 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9836 break 2
9838 done
9839 done
9840 IFS=$as_save_IFS
9843 esac
9845 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9846 if test -n "$aros_target_ar_ln"; then
9847 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9848 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9849 else
9850 { echo "$as_me:$LINENO: result: no" >&5
9851 echo "${ECHO_T}no" >&6; }
9856 if test "$aros_target_ar_ln" = ""; then
9857 # Extract the first word of "ar", so it can be a program name with args.
9858 set dummy ar; ac_word=$2
9859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9861 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864 case $aros_target_ar_ln in
9865 [\\/]* | ?:[\\/]*)
9866 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870 for as_dir in $PATH
9872 IFS=$as_save_IFS
9873 test -z "$as_dir" && as_dir=.
9874 for ac_exec_ext in '' $ac_executable_extensions; do
9875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9876 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9878 break 2
9880 done
9881 done
9882 IFS=$as_save_IFS
9885 esac
9887 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9888 if test -n "$aros_target_ar_ln"; then
9889 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9890 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9891 else
9892 { echo "$as_me:$LINENO: result: no" >&5
9893 echo "${ECHO_T}no" >&6; }
9899 else
9900 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9901 set dummy $aros_target_ar; ac_word=$2
9902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9904 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9905 echo $ECHO_N "(cached) $ECHO_C" >&6
9906 else
9907 case $aros_target_ar_ln in
9908 [\\/]* | ?:[\\/]*)
9909 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9913 for as_dir in $PATH
9915 IFS=$as_save_IFS
9916 test -z "$as_dir" && as_dir=.
9917 for ac_exec_ext in '' $ac_executable_extensions; do
9918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9919 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9921 break 2
9923 done
9924 done
9925 IFS=$as_save_IFS
9928 esac
9930 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9931 if test -n "$aros_target_ar_ln"; then
9932 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9933 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9934 else
9935 { echo "$as_me:$LINENO: result: no" >&5
9936 echo "${ECHO_T}no" >&6; }
9942 if test "$aros_target_ar_ln" = ""; then
9943 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9944 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9945 { (exit 1); exit 1; }; }
9948 if test "$aros_target_nm" = ""; then
9949 if test "$cross_compiling" = "yes" ; then
9950 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9951 set dummy ${target_tool_prefix}nm; ac_word=$2
9952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9954 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9955 echo $ECHO_N "(cached) $ECHO_C" >&6
9956 else
9957 case $aros_target_nm_ln in
9958 [\\/]* | ?:[\\/]*)
9959 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9963 for as_dir in $PATH
9965 IFS=$as_save_IFS
9966 test -z "$as_dir" && as_dir=.
9967 for ac_exec_ext in '' $ac_executable_extensions; do
9968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9969 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9971 break 2
9973 done
9974 done
9975 IFS=$as_save_IFS
9978 esac
9980 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9981 if test -n "$aros_target_nm_ln"; then
9982 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9983 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9984 else
9985 { echo "$as_me:$LINENO: result: no" >&5
9986 echo "${ECHO_T}no" >&6; }
9990 else
9991 if test "$GCC" = "yes"; then
9992 aros_gcc_nm=`$CC -print-prog-name=nm`
9993 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9994 set dummy `basename $aros_gcc_nm`; ac_word=$2
9995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9997 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
9999 else
10000 case $aros_target_nm_ln in
10001 [\\/]* | ?:[\\/]*)
10002 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10006 for as_dir in `dirname $aros_gcc_nm`
10008 IFS=$as_save_IFS
10009 test -z "$as_dir" && as_dir=.
10010 for ac_exec_ext in '' $ac_executable_extensions; do
10011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10012 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10013 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10014 break 2
10016 done
10017 done
10018 IFS=$as_save_IFS
10021 esac
10023 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10024 if test -n "$aros_target_nm_ln"; then
10025 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10026 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10027 else
10028 { echo "$as_me:$LINENO: result: no" >&5
10029 echo "${ECHO_T}no" >&6; }
10034 if test "$aros_target_nm_ln" = ""; then
10035 # Extract the first word of "nm", so it can be a program name with args.
10036 set dummy nm; ac_word=$2
10037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10039 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10040 echo $ECHO_N "(cached) $ECHO_C" >&6
10041 else
10042 case $aros_target_nm_ln in
10043 [\\/]* | ?:[\\/]*)
10044 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10048 for as_dir in $PATH
10050 IFS=$as_save_IFS
10051 test -z "$as_dir" && as_dir=.
10052 for ac_exec_ext in '' $ac_executable_extensions; do
10053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10054 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10056 break 2
10058 done
10059 done
10060 IFS=$as_save_IFS
10063 esac
10065 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10066 if test -n "$aros_target_nm_ln"; then
10067 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10068 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10069 else
10070 { echo "$as_me:$LINENO: result: no" >&5
10071 echo "${ECHO_T}no" >&6; }
10077 else
10078 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10079 set dummy $aros_target_nm; ac_word=$2
10080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10082 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10083 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 else
10085 case $aros_target_nm_ln in
10086 [\\/]* | ?:[\\/]*)
10087 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10091 for as_dir in $PATH
10093 IFS=$as_save_IFS
10094 test -z "$as_dir" && as_dir=.
10095 for ac_exec_ext in '' $ac_executable_extensions; do
10096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10097 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10099 break 2
10101 done
10102 done
10103 IFS=$as_save_IFS
10106 esac
10108 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10109 if test -n "$aros_target_nm_ln"; then
10110 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10111 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10112 else
10113 { echo "$as_me:$LINENO: result: no" >&5
10114 echo "${ECHO_T}no" >&6; }
10120 if test "$aros_target_nm_ln" = ""; then
10121 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10122 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10123 { (exit 1); exit 1; }; }
10126 if test "$aros_target_objcopy" = ""; then
10127 if test "$cross_compiling" = "yes" ; then
10128 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10129 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10132 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10133 echo $ECHO_N "(cached) $ECHO_C" >&6
10134 else
10135 case $aros_target_objcopy_ln in
10136 [\\/]* | ?:[\\/]*)
10137 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10141 for as_dir in $PATH
10143 IFS=$as_save_IFS
10144 test -z "$as_dir" && as_dir=.
10145 for ac_exec_ext in '' $ac_executable_extensions; do
10146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10147 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10149 break 2
10151 done
10152 done
10153 IFS=$as_save_IFS
10156 esac
10158 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10159 if test -n "$aros_target_objcopy_ln"; then
10160 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10161 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10162 else
10163 { echo "$as_me:$LINENO: result: no" >&5
10164 echo "${ECHO_T}no" >&6; }
10168 else
10169 if test "$GCC" = "yes"; then
10170 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10171 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10172 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10173 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10175 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 else
10178 case $aros_target_objcopy_ln in
10179 [\\/]* | ?:[\\/]*)
10180 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10184 for as_dir in `dirname $aros_gcc_objcopy`
10186 IFS=$as_save_IFS
10187 test -z "$as_dir" && as_dir=.
10188 for ac_exec_ext in '' $ac_executable_extensions; do
10189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10190 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10192 break 2
10194 done
10195 done
10196 IFS=$as_save_IFS
10199 esac
10201 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10202 if test -n "$aros_target_objcopy_ln"; then
10203 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10204 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10205 else
10206 { echo "$as_me:$LINENO: result: no" >&5
10207 echo "${ECHO_T}no" >&6; }
10212 if test "$aros_target_objcopy_ln" = ""; then
10213 # Extract the first word of "objcopy", so it can be a program name with args.
10214 set dummy objcopy; ac_word=$2
10215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10217 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10218 echo $ECHO_N "(cached) $ECHO_C" >&6
10219 else
10220 case $aros_target_objcopy_ln in
10221 [\\/]* | ?:[\\/]*)
10222 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10226 for as_dir in $PATH
10228 IFS=$as_save_IFS
10229 test -z "$as_dir" && as_dir=.
10230 for ac_exec_ext in '' $ac_executable_extensions; do
10231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10232 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10234 break 2
10236 done
10237 done
10238 IFS=$as_save_IFS
10241 esac
10243 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10244 if test -n "$aros_target_objcopy_ln"; then
10245 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10246 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10247 else
10248 { echo "$as_me:$LINENO: result: no" >&5
10249 echo "${ECHO_T}no" >&6; }
10255 else
10256 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10257 set dummy $aros_target_objcopy; ac_word=$2
10258 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10260 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10261 echo $ECHO_N "(cached) $ECHO_C" >&6
10262 else
10263 case $aros_target_objcopy_ln in
10264 [\\/]* | ?:[\\/]*)
10265 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10269 for as_dir in $PATH
10271 IFS=$as_save_IFS
10272 test -z "$as_dir" && as_dir=.
10273 for ac_exec_ext in '' $ac_executable_extensions; do
10274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10275 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 break 2
10279 done
10280 done
10281 IFS=$as_save_IFS
10284 esac
10286 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10287 if test -n "$aros_target_objcopy_ln"; then
10288 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10289 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10290 else
10291 { echo "$as_me:$LINENO: result: no" >&5
10292 echo "${ECHO_T}no" >&6; }
10298 if test "$aros_target_objcopy_ln" = ""; then
10299 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10300 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10301 { (exit 1); exit 1; }; }
10304 if test "$aros_target_objdump" = ""; then
10305 if test "$cross_compiling" = "yes" ; then
10306 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10307 set dummy ${target_tool_prefix}objdump; ac_word=$2
10308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10310 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10311 echo $ECHO_N "(cached) $ECHO_C" >&6
10312 else
10313 case $aros_target_objdump_ln in
10314 [\\/]* | ?:[\\/]*)
10315 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319 for as_dir in $PATH
10321 IFS=$as_save_IFS
10322 test -z "$as_dir" && as_dir=.
10323 for ac_exec_ext in '' $ac_executable_extensions; do
10324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10325 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10327 break 2
10329 done
10330 done
10331 IFS=$as_save_IFS
10334 esac
10336 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10337 if test -n "$aros_target_objdump_ln"; then
10338 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10339 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10340 else
10341 { echo "$as_me:$LINENO: result: no" >&5
10342 echo "${ECHO_T}no" >&6; }
10346 else
10347 if test "$GCC" = "yes"; then
10348 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10349 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10350 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10353 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10354 echo $ECHO_N "(cached) $ECHO_C" >&6
10355 else
10356 case $aros_target_objdump_ln in
10357 [\\/]* | ?:[\\/]*)
10358 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10362 for as_dir in `dirname $aros_gcc_objdump`
10364 IFS=$as_save_IFS
10365 test -z "$as_dir" && as_dir=.
10366 for ac_exec_ext in '' $ac_executable_extensions; do
10367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10368 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 break 2
10372 done
10373 done
10374 IFS=$as_save_IFS
10377 esac
10379 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10380 if test -n "$aros_target_objdump_ln"; then
10381 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10382 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10383 else
10384 { echo "$as_me:$LINENO: result: no" >&5
10385 echo "${ECHO_T}no" >&6; }
10390 if test "$aros_target_objdump_ln" = ""; then
10391 # Extract the first word of "objdump", so it can be a program name with args.
10392 set dummy objdump; ac_word=$2
10393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10395 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10396 echo $ECHO_N "(cached) $ECHO_C" >&6
10397 else
10398 case $aros_target_objdump_ln in
10399 [\\/]* | ?:[\\/]*)
10400 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10404 for as_dir in $PATH
10406 IFS=$as_save_IFS
10407 test -z "$as_dir" && as_dir=.
10408 for ac_exec_ext in '' $ac_executable_extensions; do
10409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10410 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10412 break 2
10414 done
10415 done
10416 IFS=$as_save_IFS
10419 esac
10421 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10422 if test -n "$aros_target_objdump_ln"; then
10423 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10424 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10425 else
10426 { echo "$as_me:$LINENO: result: no" >&5
10427 echo "${ECHO_T}no" >&6; }
10433 else
10434 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10435 set dummy $aros_target_objdump; ac_word=$2
10436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10438 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10439 echo $ECHO_N "(cached) $ECHO_C" >&6
10440 else
10441 case $aros_target_objdump_ln in
10442 [\\/]* | ?:[\\/]*)
10443 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447 for as_dir in $PATH
10449 IFS=$as_save_IFS
10450 test -z "$as_dir" && as_dir=.
10451 for ac_exec_ext in '' $ac_executable_extensions; do
10452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10453 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10455 break 2
10457 done
10458 done
10459 IFS=$as_save_IFS
10462 esac
10464 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10465 if test -n "$aros_target_objdump_ln"; then
10466 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10467 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10468 else
10469 { echo "$as_me:$LINENO: result: no" >&5
10470 echo "${ECHO_T}no" >&6; }
10476 if test "$aros_target_objdump_ln" = ""; then
10477 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10478 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10479 { (exit 1); exit 1; }; }
10482 if test "$aros_target_ranlib" = ""; then
10483 if test "$cross_compiling" = "yes" ; then
10484 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10485 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10488 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10489 echo $ECHO_N "(cached) $ECHO_C" >&6
10490 else
10491 case $aros_target_ranlib_ln in
10492 [\\/]* | ?:[\\/]*)
10493 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10499 IFS=$as_save_IFS
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10503 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10504 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10505 break 2
10507 done
10508 done
10509 IFS=$as_save_IFS
10512 esac
10514 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10515 if test -n "$aros_target_ranlib_ln"; then
10516 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10517 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10518 else
10519 { echo "$as_me:$LINENO: result: no" >&5
10520 echo "${ECHO_T}no" >&6; }
10524 else
10525 if test "$GCC" = "yes"; then
10526 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10527 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10528 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10531 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10532 echo $ECHO_N "(cached) $ECHO_C" >&6
10533 else
10534 case $aros_target_ranlib_ln in
10535 [\\/]* | ?:[\\/]*)
10536 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in `dirname $aros_gcc_ranlib`
10542 IFS=$as_save_IFS
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10546 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10548 break 2
10550 done
10551 done
10552 IFS=$as_save_IFS
10555 esac
10557 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10558 if test -n "$aros_target_ranlib_ln"; then
10559 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10560 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10561 else
10562 { echo "$as_me:$LINENO: result: no" >&5
10563 echo "${ECHO_T}no" >&6; }
10568 if test "$aros_target_ranlib_ln" = ""; then
10569 # Extract the first word of "ranlib", so it can be a program name with args.
10570 set dummy ranlib; ac_word=$2
10571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10573 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10574 echo $ECHO_N "(cached) $ECHO_C" >&6
10575 else
10576 case $aros_target_ranlib_ln in
10577 [\\/]* | ?:[\\/]*)
10578 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10584 IFS=$as_save_IFS
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10588 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10590 break 2
10592 done
10593 done
10594 IFS=$as_save_IFS
10597 esac
10599 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10600 if test -n "$aros_target_ranlib_ln"; then
10601 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10602 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10603 else
10604 { echo "$as_me:$LINENO: result: no" >&5
10605 echo "${ECHO_T}no" >&6; }
10611 else
10612 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10613 set dummy $aros_target_ranlib; ac_word=$2
10614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10616 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10618 else
10619 case $aros_target_ranlib_ln in
10620 [\\/]* | ?:[\\/]*)
10621 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10625 for as_dir in $PATH
10627 IFS=$as_save_IFS
10628 test -z "$as_dir" && as_dir=.
10629 for ac_exec_ext in '' $ac_executable_extensions; do
10630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10631 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10633 break 2
10635 done
10636 done
10637 IFS=$as_save_IFS
10640 esac
10642 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10643 if test -n "$aros_target_ranlib_ln"; then
10644 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10645 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10646 else
10647 { echo "$as_me:$LINENO: result: no" >&5
10648 echo "${ECHO_T}no" >&6; }
10654 if test "$aros_target_ranlib_ln" = ""; then
10655 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10656 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10657 { (exit 1); exit 1; }; }
10660 if test "$aros_target_strip" = ""; then
10661 if test "$cross_compiling" = "yes" ; then
10662 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10663 set dummy ${target_tool_prefix}strip; ac_word=$2
10664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10666 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10668 else
10669 case $aros_target_strip_ln in
10670 [\\/]* | ?:[\\/]*)
10671 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10675 for as_dir in $PATH
10677 IFS=$as_save_IFS
10678 test -z "$as_dir" && as_dir=.
10679 for ac_exec_ext in '' $ac_executable_extensions; do
10680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10681 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10683 break 2
10685 done
10686 done
10687 IFS=$as_save_IFS
10690 esac
10692 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10693 if test -n "$aros_target_strip_ln"; then
10694 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10695 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10696 else
10697 { echo "$as_me:$LINENO: result: no" >&5
10698 echo "${ECHO_T}no" >&6; }
10702 else
10703 if test "$GCC" = "yes"; then
10704 aros_gcc_strip=`$CC -print-prog-name=strip`
10705 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10706 set dummy `basename $aros_gcc_strip`; ac_word=$2
10707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10709 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10710 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 else
10712 case $aros_target_strip_ln in
10713 [\\/]* | ?:[\\/]*)
10714 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718 for as_dir in `dirname $aros_gcc_strip`
10720 IFS=$as_save_IFS
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10724 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10726 break 2
10728 done
10729 done
10730 IFS=$as_save_IFS
10733 esac
10735 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10736 if test -n "$aros_target_strip_ln"; then
10737 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10738 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10739 else
10740 { echo "$as_me:$LINENO: result: no" >&5
10741 echo "${ECHO_T}no" >&6; }
10746 if test "$aros_target_strip_ln" = ""; then
10747 # Extract the first word of "strip", so it can be a program name with args.
10748 set dummy strip; ac_word=$2
10749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10751 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10752 echo $ECHO_N "(cached) $ECHO_C" >&6
10753 else
10754 case $aros_target_strip_ln in
10755 [\\/]* | ?:[\\/]*)
10756 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760 for as_dir in $PATH
10762 IFS=$as_save_IFS
10763 test -z "$as_dir" && as_dir=.
10764 for ac_exec_ext in '' $ac_executable_extensions; do
10765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10766 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10768 break 2
10770 done
10771 done
10772 IFS=$as_save_IFS
10775 esac
10777 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10778 if test -n "$aros_target_strip_ln"; then
10779 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10780 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10781 else
10782 { echo "$as_me:$LINENO: result: no" >&5
10783 echo "${ECHO_T}no" >&6; }
10789 else
10790 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10791 set dummy $aros_target_strip; ac_word=$2
10792 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10793 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10794 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10795 echo $ECHO_N "(cached) $ECHO_C" >&6
10796 else
10797 case $aros_target_strip_ln in
10798 [\\/]* | ?:[\\/]*)
10799 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803 for as_dir in $PATH
10805 IFS=$as_save_IFS
10806 test -z "$as_dir" && as_dir=.
10807 for ac_exec_ext in '' $ac_executable_extensions; do
10808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10809 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10811 break 2
10813 done
10814 done
10815 IFS=$as_save_IFS
10818 esac
10820 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10821 if test -n "$aros_target_strip_ln"; then
10822 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10823 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10824 else
10825 { echo "$as_me:$LINENO: result: no" >&5
10826 echo "${ECHO_T}no" >&6; }
10832 if test "$aros_target_strip_ln" = ""; then
10833 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10834 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10835 { (exit 1); exit 1; }; }
10837 if test "$aros_target_cxx" != ""; then
10838 # Extract the first word of "$aros_target_cxx", so it can be a program name with args.
10839 set dummy $aros_target_cxx; ac_word=$2
10840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10842 if test "${ac_cv_path_aros_target_cxx+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 else
10845 case $aros_target_cxx in
10846 [\\/]* | ?:[\\/]*)
10847 ac_cv_path_aros_target_cxx="$aros_target_cxx" # Let the user override the test with a path.
10850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10851 for as_dir in $PATH
10853 IFS=$as_save_IFS
10854 test -z "$as_dir" && as_dir=.
10855 for ac_exec_ext in '' $ac_executable_extensions; do
10856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10857 ac_cv_path_aros_target_cxx="$as_dir/$ac_word$ac_exec_ext"
10858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10859 break 2
10861 done
10862 done
10863 IFS=$as_save_IFS
10866 esac
10868 aros_target_cxx=$ac_cv_path_aros_target_cxx
10869 if test -n "$aros_target_cxx"; then
10870 { echo "$as_me:$LINENO: result: $aros_target_cxx" >&5
10871 echo "${ECHO_T}$aros_target_cxx" >&6; }
10872 else
10873 { echo "$as_me:$LINENO: result: no" >&5
10874 echo "${ECHO_T}no" >&6; }
10878 # Temporarily disabled in order to let Mingw32-hosted nightly build to work
10879 # AROS_REQUIRED(c++,$aros_target_cxx)
10881 else
10882 # Cancel preinstalled C++ compiler because it will be built as part of crosstools
10883 aros_target_cxx=""
10886 # Build crosstools if we have no C++ - temporary thing
10887 if test "$aros_target_cxx" = ""; then
10888 crosstools_target=tools-crosstools
10891 if test "$rescomp" != ""; then
10892 if test "$cross_compiling" = "yes" ; then
10893 rescomp=${target_tool_prefix}${rescomp}
10895 # Extract the first word of "$rescomp", so it can be a program name with args.
10896 set dummy $rescomp; ac_word=$2
10897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10899 if test "${ac_cv_path_aros_kernel_rescomp+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 else
10902 case $aros_kernel_rescomp in
10903 [\\/]* | ?:[\\/]*)
10904 ac_cv_path_aros_kernel_rescomp="$aros_kernel_rescomp" # Let the user override the test with a path.
10907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10908 for as_dir in $PATH
10910 IFS=$as_save_IFS
10911 test -z "$as_dir" && as_dir=.
10912 for ac_exec_ext in '' $ac_executable_extensions; do
10913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10914 ac_cv_path_aros_kernel_rescomp="$as_dir/$ac_word$ac_exec_ext"
10915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10916 break 2
10918 done
10919 done
10920 IFS=$as_save_IFS
10923 esac
10925 aros_kernel_rescomp=$ac_cv_path_aros_kernel_rescomp
10926 if test -n "$aros_kernel_rescomp"; then
10927 { echo "$as_me:$LINENO: result: $aros_kernel_rescomp" >&5
10928 echo "${ECHO_T}$aros_kernel_rescomp" >&6; }
10929 else
10930 { echo "$as_me:$LINENO: result: no" >&5
10931 echo "${ECHO_T}no" >&6; }
10935 if test "$aros_kernel_rescomp" = ""; then
10936 { { echo "$as_me:$LINENO: error: $rescomp is required to build AROS. Please install and run configure again." >&5
10937 echo "$as_me: error: $rescomp is required to build AROS. Please install and run configure again." >&2;}
10938 { (exit 1); exit 1; }; }
10942 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10943 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10944 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10945 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10946 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10947 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10948 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10950 # aros_cc_pre is a variable that is added to the front of the compiler name
10951 # in the generated aros-gcc shell script. We need this to enable the cache
10952 # to work across cleaned builds. Also, support DISTCC using the correct
10953 # environment variable.
10956 if test "x${DISTCC}" != "x" ; then
10957 if test "x${CCACHE}" != "x" ; then
10958 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10959 else
10960 aros_cc_pre="${DISTCC} "
10962 else
10963 if test "x${CCACHE}" != "x" ; then
10964 aros_cc_pre="${CCACHE} "
10968 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10970 aros_target_nostdinc_cflags=-nostdinc
10972 aros_target_nostartup_ldflags=-nostartfiles
10974 aros_target_nix_ldflags=-nix
10976 aros_target_detach_ldflags=-detach
10978 aros_target_nostdlib_ldflags=-nostdlib
10981 # Target tools
10982 if test "$aros_target_cc" = ""; then
10983 orig_target_cc=$aros_kernel_cc
10984 else
10985 orig_target_cc=$aros_target_cc
10987 if test "$aros_target_ld" = ""; then
10988 orig_target_ld=$aros_kernel_ld
10989 else
10990 orig_target_ld=$aros_target_ld
10992 if test "$GCC" = "yes"; then
10993 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10995 aros_target_cc="${prefix}-gcc"
10996 aros_target_as="${prefix}-as"
10997 aros_target_ld="${prefix}-ld"
10998 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10999 aros_target_objcopy=${prefix}-objcopy
11000 aros_target_objdump=${prefix}-objdump
11001 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
11002 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
11003 aros_kernel_nm="${prefix}-nm"
11004 aros_target_strip=${prefix}-strip
11006 # Find the system include path. We can suggest that an alternative is
11007 # used if we don't get it correct. The default is to use /usr/include.
11008 # Which is set in the aros_target_incl_def variable.
11010 # Check whether --enable-includes was given.
11011 if test "${enable_includes+set}" = set; then
11012 enableval=$enable_includes; aros_target_incl=$enable_includes
11013 else
11014 aros_target_incl=$aros_target_incl_def
11018 if test "$aros_kernel_includes" != "" ; then
11019 { echo "$as_me:$LINENO: checking for the kernel compiler's include path" >&5
11020 echo $ECHO_N "checking for the kernel compiler's include path... $ECHO_C" >&6; }
11021 if test "$aros_kernel_cc_includes" = "" ; then
11022 #try to guess where the directory is
11023 aros_kernel_cc_includes=`dirname \`${aros_kernel_cc} ${aros_kernel_cflags} -print-libgcc-file-name\``/include
11024 if ! test -d $aros_kernel_cc_includes; then
11025 #the directory doesn't exist, we need to do some more work
11026 aros_kernel_cc_includes=${PWD}/${aros_gendir}/cc_include
11028 #these are the headers we're looling for
11029 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11030 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11031 zutil.h"
11033 dirs=
11034 for h in $headers; do
11035 #which other headers each of the above headers needs?
11036 deps=$(echo "#include <$h>" | \
11037 $aros_kernel_cc -E -M - 2>/dev/null | \
11038 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11040 #copy all the needed headers to a directory beneath gendir
11041 for d in $deps; do
11042 h=$(basename $d)
11043 dir=${aros_kernel_cc_includes}$(echo $(dirname $d) | \
11044 sed -n "s,^.*/include\(/.*\),\1,p")
11045 ! test -d $dir && mkdir -p $dir
11046 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11047 done
11048 done
11051 { echo "$as_me:$LINENO: result: $aros_kernel_cc_includes" >&5
11052 echo "${ECHO_T}$aros_kernel_cc_includes" >&6; }
11053 aros_kernel_includes="$aros_kernel_includes -isystem $aros_kernel_cc_includes"
11056 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
11057 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
11058 if test "$aros_target_cc_includes" = "" ; then
11059 #try to guess where the directory is
11060 aros_target_cc_includes=`dirname \`${orig_target_cc} -print-libgcc-file-name\``/include
11061 if ! test -d $aros_target_cc_includes; then
11062 #the directory doesn't exist, we need to do some more work
11063 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
11065 #these are the headers we're looling for
11066 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11067 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11068 zutil.h"
11070 dirs=
11071 for h in $headers; do
11072 #which other headers each of the above headers needs?
11073 deps=$(echo "#include <$h>" | \
11074 $orig_target_cc -E -M - 2>/dev/null | \
11075 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11077 #copy all the needed headers to a directory beneath gendir
11078 for d in $deps; do
11079 h=$(basename $d)
11080 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11081 sed -n "s,^.*/include\(/.*\),\1,p")
11082 ! test -d $dir && mkdir -p $dir
11083 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11084 done
11085 done
11088 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
11089 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
11092 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11093 # On GCC >= 4.0 -iquote should be used
11096 save_cc="$CC"
11097 save_cflags="$CFLAGS"
11098 CFLAGS="-iquote."
11099 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11100 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11101 cat >conftest.$ac_ext <<_ACEOF
11102 /* confdefs.h. */
11103 _ACEOF
11104 cat confdefs.h >>conftest.$ac_ext
11105 cat >>conftest.$ac_ext <<_ACEOF
11106 /* end confdefs.h. */
11109 main ()
11113 return 0;
11115 _ACEOF
11116 rm -f conftest.$ac_objext
11117 if { (ac_try="$ac_compile"
11118 case "(($ac_try" in
11119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11120 *) ac_try_echo=$ac_try;;
11121 esac
11122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11123 (eval "$ac_compile") 2>conftest.er1
11124 ac_status=$?
11125 grep -v '^ *+' conftest.er1 >conftest.err
11126 rm -f conftest.er1
11127 cat conftest.err >&5
11128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11129 (exit $ac_status); } && {
11130 test -z "$ac_c_werror_flag" ||
11131 test ! -s conftest.err
11132 } && test -s conftest.$ac_objext; then
11133 has_iquote="yes"
11134 else
11135 echo "$as_me: failed program was:" >&5
11136 sed 's/^/| /' conftest.$ac_ext >&5
11138 has_iquote="no"
11141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11142 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11143 echo "${ECHO_T}$has_iquote" >&6; }
11144 if test "x-$has_iquote" = "x-yes" ; then
11145 host_cflags_iquote=-iquote
11146 host_cflags_iquote_end=
11147 else
11148 host_cflags_iquote=-I
11149 host_cflags_iquote_end=-I-
11151 kernel_cflags_iquote=$host_cflags_iquote
11152 kernel_cflags_iquote_end=$host_cflags_iquote_end
11153 if test "x-$cross_compiling" = "x-yes"; then
11154 CC="$aros_kernel_cc"
11155 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
11156 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
11157 cat >conftest.$ac_ext <<_ACEOF
11158 /* confdefs.h. */
11159 _ACEOF
11160 cat confdefs.h >>conftest.$ac_ext
11161 cat >>conftest.$ac_ext <<_ACEOF
11162 /* end confdefs.h. */
11165 main ()
11169 return 0;
11171 _ACEOF
11172 rm -f conftest.$ac_objext
11173 if { (ac_try="$ac_compile"
11174 case "(($ac_try" in
11175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11176 *) ac_try_echo=$ac_try;;
11177 esac
11178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11179 (eval "$ac_compile") 2>conftest.er1
11180 ac_status=$?
11181 grep -v '^ *+' conftest.er1 >conftest.err
11182 rm -f conftest.er1
11183 cat conftest.err >&5
11184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } && {
11186 test -z "$ac_c_werror_flag" ||
11187 test ! -s conftest.err
11188 } && test -s conftest.$ac_objext; then
11189 use_no_stack_protector="yes"
11190 else
11191 echo "$as_me: failed program was:" >&5
11192 sed 's/^/| /' conftest.$ac_ext >&5
11194 use_no_stack_protector="no"
11197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11198 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
11199 echo "${ECHO_T}$use_no_stack_protector" >&6; }
11200 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11201 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11202 cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h. */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11210 main ()
11214 return 0;
11216 _ACEOF
11217 rm -f conftest.$ac_objext
11218 if { (ac_try="$ac_compile"
11219 case "(($ac_try" in
11220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11221 *) ac_try_echo=$ac_try;;
11222 esac
11223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11224 (eval "$ac_compile") 2>conftest.er1
11225 ac_status=$?
11226 grep -v '^ *+' conftest.er1 >conftest.err
11227 rm -f conftest.er1
11228 cat conftest.err >&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); } && {
11231 test -z "$ac_c_werror_flag" ||
11232 test ! -s conftest.err
11233 } && test -s conftest.$ac_objext; then
11234 has_iquote="yes"
11235 else
11236 echo "$as_me: failed program was:" >&5
11237 sed 's/^/| /' conftest.$ac_ext >&5
11239 has_iquote="no"
11242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11243 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11244 echo "${ECHO_T}$has_iquote" >&6; }
11245 if test "x-$has_iquote" = "x-yes" ; then
11246 kernel_cflags_iquote=-iquote
11247 kernel_cflags_iquote_end=
11248 else
11249 kernel_cflags_iquote=-I
11250 kernel_cflags_iquote_end=-I-
11253 aros_cflags_iquote=$kernel_cflags_iquote
11254 aros_cflags_iquote_end=$kernel_cflags_iquote_end
11255 if test "$orig_target_cc" != "$aros_kernel_cc"; then
11256 CC="$orig_target_cc"
11257 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11258 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11259 cat >conftest.$ac_ext <<_ACEOF
11260 /* confdefs.h. */
11261 _ACEOF
11262 cat confdefs.h >>conftest.$ac_ext
11263 cat >>conftest.$ac_ext <<_ACEOF
11264 /* end confdefs.h. */
11267 main ()
11271 return 0;
11273 _ACEOF
11274 rm -f conftest.$ac_objext
11275 if { (ac_try="$ac_compile"
11276 case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11279 esac
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_compile") 2>conftest.er1
11282 ac_status=$?
11283 grep -v '^ *+' conftest.er1 >conftest.err
11284 rm -f conftest.er1
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } && {
11288 test -z "$ac_c_werror_flag" ||
11289 test ! -s conftest.err
11290 } && test -s conftest.$ac_objext; then
11291 has_iquote="yes"
11292 else
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11296 has_iquote="no"
11299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11300 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11301 echo "${ECHO_T}$has_iquote" >&6; }
11302 if test "x-$has_iquote" = "x-yes" ; then
11303 aros_cflags_iquote=-iquote
11304 aros_cflags_iquote_end=
11305 else
11306 aros_cflags_iquote=-I
11307 aros_cflags_iquote_end=-I-
11310 if test "x-$use_no_stack_protector" = "x-yes" ; then
11311 aros_kernel_cflags="$aros_kernel_cflags -fno-stack-protector"
11314 #-----------------------------------------------------------------------------
11316 # Check if we can explicitly choose older version of symbol hashing
11318 CFLAGS="save_cflags -Wl,--hash-style=sysv"
11319 CC="$aros_kernel_cc"
11320 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wl,--hash-style=sysv" >&5
11321 echo $ECHO_N "checking whether ${CC} accepts -Wl,--hash-style=sysv... $ECHO_C" >&6; }
11322 cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h. */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11330 main ()
11334 return 0;
11336 _ACEOF
11337 rm -f conftest.$ac_objext conftest$ac_exeext
11338 if { (ac_try="$ac_link"
11339 case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11342 esac
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_link") 2>conftest.er1
11345 ac_status=$?
11346 grep -v '^ *+' conftest.er1 >conftest.err
11347 rm -f conftest.er1
11348 cat conftest.err >&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } && {
11351 test -z "$ac_c_werror_flag" ||
11352 test ! -s conftest.err
11353 } && test -s conftest$ac_exeext &&
11354 $as_test_x conftest$ac_exeext; then
11355 use_hash_style="yes"
11356 else
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 use_hash_style="no"
11363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11364 conftest$ac_exeext conftest.$ac_ext
11365 { echo "$as_me:$LINENO: result: $use_hash_style" >&5
11366 echo "${ECHO_T}$use_hash_style" >&6; }
11367 if test "x-$use_hash_style" = "x-yes" ; then
11368 aros_kernel_cflags="$aros_kernel_cflags -Wl,--hash-style=sysv"
11370 CC="$save_cc"
11371 CFLAGS="$save_cflags"
11381 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11382 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
11384 # Check whether --with-resolution was given.
11385 if test "${with_resolution+set}" = set; then
11386 withval=$with_resolution; resolution=$withval
11387 else
11388 resolution=none
11391 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11392 if test "$resolution" = "yes" ; then
11393 resolution="none"
11395 if test "$resolution" = "no" ; then
11396 resolution="none"
11398 if test "$resolution" != "none" ; then
11399 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11400 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11401 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11403 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11404 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11405 aros_cv_default_wbwidth=$aros_default_wbwidth
11406 aros_cv_default_wbheight=$aros_default_wbheight
11407 aros_cv_default_wbdepth=$aros_default_wbdepth
11409 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11410 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11412 # Check whether --with-serial-debug was given.
11413 if test "${with_serial_debug+set}" = set; then
11414 withval=$with_serial_debug; serial_debug=$withval
11415 else
11416 serial_debug=none
11419 if test "$aros_serial_debug" = 0 ; then
11420 serial_debug_forced=""
11421 if test "$serial_debug" = "yes" ; then
11422 serial_debug="2"
11424 if test "$serial_debug" = "no" ; then
11425 serial_debug="none"
11427 else
11428 serial_debug_forced="(forced)"
11429 serial_debug=$aros_serial_debug
11431 if test "$serial_debug" != "none" ; then
11432 aros_serial_debug=$serial_debug
11433 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11434 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11435 else
11436 { echo "$as_me:$LINENO: result: no" >&5
11437 echo "${ECHO_T}no" >&6; }
11440 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11441 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11442 # Check whether --enable-palm_debug_hack was given.
11443 if test "${enable_palm_debug_hack+set}" = set; then
11444 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11445 else
11446 palm_debug_hack="no"
11449 if test "$palm_debug_hack" = "yes" ; then
11450 aros_palm_debug_hack="1"
11452 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11453 echo "${ECHO_T}$palm_debug_hack" >&6; }
11456 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11457 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11458 # Check whether --enable-nesting_supervisor was given.
11459 if test "${enable_nesting_supervisor+set}" = set; then
11460 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11461 else
11462 nesting_supervisor="no"
11465 if test "$nesting_supervisor" = "yes" ; then
11466 aros_nesting_supervisor="1"
11468 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11469 echo "${ECHO_T}$nesting_supervisor" >&6; }
11472 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11474 if test "x-$need_dlopen" != "x-no" ; then
11475 { echo "$as_me:$LINENO: checking for dlopen" >&5
11476 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11477 if test "${ac_cv_func_dlopen+set}" = set; then
11478 echo $ECHO_N "(cached) $ECHO_C" >&6
11479 else
11480 cat >conftest.$ac_ext <<_ACEOF
11481 /* confdefs.h. */
11482 _ACEOF
11483 cat confdefs.h >>conftest.$ac_ext
11484 cat >>conftest.$ac_ext <<_ACEOF
11485 /* end confdefs.h. */
11486 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11488 #define dlopen innocuous_dlopen
11490 /* System header to define __stub macros and hopefully few prototypes,
11491 which can conflict with char dlopen (); below.
11492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11493 <limits.h> exists even on freestanding compilers. */
11495 #ifdef __STDC__
11496 # include <limits.h>
11497 #else
11498 # include <assert.h>
11499 #endif
11501 #undef dlopen
11503 /* Override any GCC internal prototype to avoid an error.
11504 Use char because int might match the return type of a GCC
11505 builtin and then its argument prototype would still apply. */
11506 #ifdef __cplusplus
11507 extern "C"
11508 #endif
11509 char dlopen ();
11510 /* The GNU C library defines this for functions which it implements
11511 to always fail with ENOSYS. Some functions are actually named
11512 something starting with __ and the normal name is an alias. */
11513 #if defined __stub_dlopen || defined __stub___dlopen
11514 choke me
11515 #endif
11518 main ()
11520 return dlopen ();
11522 return 0;
11524 _ACEOF
11525 rm -f conftest.$ac_objext conftest$ac_exeext
11526 if { (ac_try="$ac_link"
11527 case "(($ac_try" in
11528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11529 *) ac_try_echo=$ac_try;;
11530 esac
11531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11532 (eval "$ac_link") 2>conftest.er1
11533 ac_status=$?
11534 grep -v '^ *+' conftest.er1 >conftest.err
11535 rm -f conftest.er1
11536 cat conftest.err >&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); } && {
11539 test -z "$ac_c_werror_flag" ||
11540 test ! -s conftest.err
11541 } && test -s conftest$ac_exeext &&
11542 $as_test_x conftest$ac_exeext; then
11543 ac_cv_func_dlopen=yes
11544 else
11545 echo "$as_me: failed program was:" >&5
11546 sed 's/^/| /' conftest.$ac_ext >&5
11548 ac_cv_func_dlopen=no
11551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11552 conftest$ac_exeext conftest.$ac_ext
11554 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11555 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11556 if test $ac_cv_func_dlopen = yes; then
11557 have_dl="yes"
11558 else
11559 have_dl="no"
11562 if test "x-$have_dl" = "x-no" ; then
11563 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11564 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11565 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11567 else
11568 ac_check_lib_save_LIBS=$LIBS
11569 LIBS="-ldl $LIBS"
11570 cat >conftest.$ac_ext <<_ACEOF
11571 /* confdefs.h. */
11572 _ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11577 /* Override any GCC internal prototype to avoid an error.
11578 Use char because int might match the return type of a GCC
11579 builtin and then its argument prototype would still apply. */
11580 #ifdef __cplusplus
11581 extern "C"
11582 #endif
11583 char dlopen ();
11585 main ()
11587 return dlopen ();
11589 return 0;
11591 _ACEOF
11592 rm -f conftest.$ac_objext conftest$ac_exeext
11593 if { (ac_try="$ac_link"
11594 case "(($ac_try" in
11595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11596 *) ac_try_echo=$ac_try;;
11597 esac
11598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11599 (eval "$ac_link") 2>conftest.er1
11600 ac_status=$?
11601 grep -v '^ *+' conftest.er1 >conftest.err
11602 rm -f conftest.er1
11603 cat conftest.err >&5
11604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11605 (exit $ac_status); } && {
11606 test -z "$ac_c_werror_flag" ||
11607 test ! -s conftest.err
11608 } && test -s conftest$ac_exeext &&
11609 $as_test_x conftest$ac_exeext; then
11610 ac_cv_lib_dl_dlopen=yes
11611 else
11612 echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11615 ac_cv_lib_dl_dlopen=no
11618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11619 conftest$ac_exeext conftest.$ac_ext
11620 LIBS=$ac_check_lib_save_LIBS
11622 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11623 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11624 if test $ac_cv_lib_dl_dlopen = yes; then
11625 have_dl="yes"
11626 aros_host_ldflags="$aros_host_ldflags -ldl"
11627 else
11628 have_dl="no"
11632 if test "x-$have_dl" = "x-no" ; then
11633 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11634 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11635 { (exit 1); exit 1; }; }
11640 # Check whether --enable-x11_hidd was given.
11641 if test "${enable_x11_hidd+set}" = set; then
11642 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11643 else
11644 x11_hidd="auto"
11647 case "x-$x11_hidd" in
11648 x-yes|x-no|x-auto) ;;
11649 *) x11_hidd="auto" ;;
11650 esac
11652 ENABLE_X11=0
11654 if test "x-$x11_hidd" != "x-no" ; then
11656 { echo "$as_me:$LINENO: checking for X" >&5
11657 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11660 # Check whether --with-x was given.
11661 if test "${with_x+set}" = set; then
11662 withval=$with_x;
11665 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11666 if test "x$with_x" = xno; then
11667 # The user explicitly disabled X.
11668 have_x=disabled
11669 else
11670 case $x_includes,$x_libraries in #(
11671 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11672 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11673 { (exit 1); exit 1; }; };; #(
11674 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11675 echo $ECHO_N "(cached) $ECHO_C" >&6
11676 else
11677 # One or both of the vars are not set, and there is no cached value.
11678 ac_x_includes=no ac_x_libraries=no
11679 rm -f -r conftest.dir
11680 if mkdir conftest.dir; then
11681 cd conftest.dir
11682 cat >Imakefile <<'_ACEOF'
11683 incroot:
11684 @echo incroot='${INCROOT}'
11685 usrlibdir:
11686 @echo usrlibdir='${USRLIBDIR}'
11687 libdir:
11688 @echo libdir='${LIBDIR}'
11689 _ACEOF
11690 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11691 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11692 for ac_var in incroot usrlibdir libdir; do
11693 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11694 done
11695 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11696 for ac_extension in a so sl dylib la dll; do
11697 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11698 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11699 ac_im_usrlibdir=$ac_im_libdir; break
11701 done
11702 # Screen out bogus values from the imake configuration. They are
11703 # bogus both because they are the default anyway, and because
11704 # using them would break gcc on systems where it needs fixed includes.
11705 case $ac_im_incroot in
11706 /usr/include) ac_x_includes= ;;
11707 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11708 esac
11709 case $ac_im_usrlibdir in
11710 /usr/lib | /lib) ;;
11711 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11712 esac
11714 cd ..
11715 rm -f -r conftest.dir
11718 # Standard set of common directories for X headers.
11719 # Check X11 before X11Rn because it is often a symlink to the current release.
11720 ac_x_header_dirs='
11721 /usr/X11/include
11722 /usr/X11R6/include
11723 /usr/X11R5/include
11724 /usr/X11R4/include
11726 /usr/include/X11
11727 /usr/include/X11R6
11728 /usr/include/X11R5
11729 /usr/include/X11R4
11731 /usr/local/X11/include
11732 /usr/local/X11R6/include
11733 /usr/local/X11R5/include
11734 /usr/local/X11R4/include
11736 /usr/local/include/X11
11737 /usr/local/include/X11R6
11738 /usr/local/include/X11R5
11739 /usr/local/include/X11R4
11741 /usr/X386/include
11742 /usr/x386/include
11743 /usr/XFree86/include/X11
11745 /usr/include
11746 /usr/local/include
11747 /usr/unsupported/include
11748 /usr/athena/include
11749 /usr/local/x11r5/include
11750 /usr/lpp/Xamples/include
11752 /usr/openwin/include
11753 /usr/openwin/share/include'
11755 if test "$ac_x_includes" = no; then
11756 # Guess where to find include files, by looking for Xlib.h.
11757 # First, try using that file with no special directory specified.
11758 cat >conftest.$ac_ext <<_ACEOF
11759 /* confdefs.h. */
11760 _ACEOF
11761 cat confdefs.h >>conftest.$ac_ext
11762 cat >>conftest.$ac_ext <<_ACEOF
11763 /* end confdefs.h. */
11764 #include <X11/Xlib.h>
11765 _ACEOF
11766 if { (ac_try="$ac_cpp conftest.$ac_ext"
11767 case "(($ac_try" in
11768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11769 *) ac_try_echo=$ac_try;;
11770 esac
11771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11773 ac_status=$?
11774 grep -v '^ *+' conftest.er1 >conftest.err
11775 rm -f conftest.er1
11776 cat conftest.err >&5
11777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11778 (exit $ac_status); } >/dev/null && {
11779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11780 test ! -s conftest.err
11781 }; then
11782 # We can compile using X headers with no special include directory.
11783 ac_x_includes=
11784 else
11785 echo "$as_me: failed program was:" >&5
11786 sed 's/^/| /' conftest.$ac_ext >&5
11788 for ac_dir in $ac_x_header_dirs; do
11789 if test -r "$ac_dir/X11/Xlib.h"; then
11790 ac_x_includes=$ac_dir
11791 break
11793 done
11796 rm -f conftest.err conftest.$ac_ext
11797 fi # $ac_x_includes = no
11799 if test "$ac_x_libraries" = no; then
11800 # Check for the libraries.
11801 # See if we find them without any special options.
11802 # Don't add to $LIBS permanently.
11803 ac_save_LIBS=$LIBS
11804 LIBS="-lX11 $LIBS"
11805 cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h. */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811 #include <X11/Xlib.h>
11813 main ()
11815 XrmInitialize ()
11817 return 0;
11819 _ACEOF
11820 rm -f conftest.$ac_objext conftest$ac_exeext
11821 if { (ac_try="$ac_link"
11822 case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11825 esac
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_link") 2>conftest.er1
11828 ac_status=$?
11829 grep -v '^ *+' conftest.er1 >conftest.err
11830 rm -f conftest.er1
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } && {
11834 test -z "$ac_c_werror_flag" ||
11835 test ! -s conftest.err
11836 } && test -s conftest$ac_exeext &&
11837 $as_test_x conftest$ac_exeext; then
11838 LIBS=$ac_save_LIBS
11839 # We can link X programs with no special library path.
11840 ac_x_libraries=
11841 else
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11845 LIBS=$ac_save_LIBS
11846 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11848 # Don't even attempt the hair of trying to link an X program!
11849 for ac_extension in a so sl dylib la dll; do
11850 if test -r "$ac_dir/libX11.$ac_extension"; then
11851 ac_x_libraries=$ac_dir
11852 break 2
11854 done
11855 done
11858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11859 conftest$ac_exeext conftest.$ac_ext
11860 fi # $ac_x_libraries = no
11862 case $ac_x_includes,$ac_x_libraries in #(
11863 no,* | *,no | *\'*)
11864 # Didn't find X, or a directory has "'" in its name.
11865 ac_cv_have_x="have_x=no";; #(
11867 # Record where we found X for the cache.
11868 ac_cv_have_x="have_x=yes\
11869 ac_x_includes='$ac_x_includes'\
11870 ac_x_libraries='$ac_x_libraries'"
11871 esac
11873 ;; #(
11874 *) have_x=yes;;
11875 esac
11876 eval "$ac_cv_have_x"
11877 fi # $with_x != no
11879 if test "$have_x" != yes; then
11880 { echo "$as_me:$LINENO: result: $have_x" >&5
11881 echo "${ECHO_T}$have_x" >&6; }
11882 no_x=yes
11883 else
11884 # If each of the values was on the command line, it overrides each guess.
11885 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11886 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11887 # Update the cache value to reflect the command line values.
11888 ac_cv_have_x="have_x=yes\
11889 ac_x_includes='$x_includes'\
11890 ac_x_libraries='$x_libraries'"
11891 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11892 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11896 x_cflags=
11897 for path in $x_libraries
11899 x_cflags="$x_cflags -L$path"
11900 done
11902 for path in $x_includes
11904 x_cflags="$x_cflags -I$path"
11905 done
11907 if test "x-$no_x" = "x-yes" ; then
11909 if test "x-$x11_hidd" != "x-auto" ; then
11910 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11911 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11912 { (exit 1); exit 1; }; }
11915 else
11916 x11_hidd_target=kernel-x11gfx-kobj
11917 ENABLE_X11=1
11919 # Check whether --enable-x11_shm was given.
11920 if test "${enable_x11_shm+set}" = set; then
11921 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11922 else
11923 x11_hidd_shm="auto"
11926 case "x-$x11_hidd_shm" in
11927 x-yes|x-no|x-auto) ;;
11928 *) x11_hidd_shm="auto" ;;
11929 esac
11931 have_xshm=no
11933 if test "x-$x11_hidd_shm" != "x-no" ; then
11936 for ac_header in sys/ipc.h
11938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 ac_res=`eval echo '${'$as_ac_Header'}'`
11946 { echo "$as_me:$LINENO: result: $ac_res" >&5
11947 echo "${ECHO_T}$ac_res" >&6; }
11948 else
11949 # Is the header compilable?
11950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11952 cat >conftest.$ac_ext <<_ACEOF
11953 /* confdefs.h. */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11958 $ac_includes_default
11959 #include <$ac_header>
11960 _ACEOF
11961 rm -f conftest.$ac_objext
11962 if { (ac_try="$ac_compile"
11963 case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966 esac
11967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11968 (eval "$ac_compile") 2>conftest.er1
11969 ac_status=$?
11970 grep -v '^ *+' conftest.er1 >conftest.err
11971 rm -f conftest.er1
11972 cat conftest.err >&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); } && {
11975 test -z "$ac_c_werror_flag" ||
11976 test ! -s conftest.err
11977 } && test -s conftest.$ac_objext; then
11978 ac_header_compiler=yes
11979 else
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11983 ac_header_compiler=no
11986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11988 echo "${ECHO_T}$ac_header_compiler" >&6; }
11990 # Is the header present?
11991 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11993 cat >conftest.$ac_ext <<_ACEOF
11994 /* confdefs.h. */
11995 _ACEOF
11996 cat confdefs.h >>conftest.$ac_ext
11997 cat >>conftest.$ac_ext <<_ACEOF
11998 /* end confdefs.h. */
11999 #include <$ac_header>
12000 _ACEOF
12001 if { (ac_try="$ac_cpp conftest.$ac_ext"
12002 case "(($ac_try" in
12003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004 *) ac_try_echo=$ac_try;;
12005 esac
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12008 ac_status=$?
12009 grep -v '^ *+' conftest.er1 >conftest.err
12010 rm -f conftest.er1
12011 cat conftest.err >&5
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); } >/dev/null && {
12014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12015 test ! -s conftest.err
12016 }; then
12017 ac_header_preproc=yes
12018 else
12019 echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12022 ac_header_preproc=no
12025 rm -f conftest.err conftest.$ac_ext
12026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12027 echo "${ECHO_T}$ac_header_preproc" >&6; }
12029 # So? What about this header?
12030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12031 yes:no: )
12032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12036 ac_header_preproc=yes
12038 no:yes:* )
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12053 esac
12054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12058 else
12059 eval "$as_ac_Header=\$ac_header_preproc"
12061 ac_res=`eval echo '${'$as_ac_Header'}'`
12062 { echo "$as_me:$LINENO: result: $ac_res" >&5
12063 echo "${ECHO_T}$ac_res" >&6; }
12066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12067 cat >>confdefs.h <<_ACEOF
12068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12069 _ACEOF
12073 done
12076 for ac_header in sys/shm.h
12078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 ac_res=`eval echo '${'$as_ac_Header'}'`
12086 { echo "$as_me:$LINENO: result: $ac_res" >&5
12087 echo "${ECHO_T}$ac_res" >&6; }
12088 else
12089 # Is the header compilable?
12090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12092 cat >conftest.$ac_ext <<_ACEOF
12093 /* confdefs.h. */
12094 _ACEOF
12095 cat confdefs.h >>conftest.$ac_ext
12096 cat >>conftest.$ac_ext <<_ACEOF
12097 /* end confdefs.h. */
12098 $ac_includes_default
12099 #include <$ac_header>
12100 _ACEOF
12101 rm -f conftest.$ac_objext
12102 if { (ac_try="$ac_compile"
12103 case "(($ac_try" in
12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105 *) ac_try_echo=$ac_try;;
12106 esac
12107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12108 (eval "$ac_compile") 2>conftest.er1
12109 ac_status=$?
12110 grep -v '^ *+' conftest.er1 >conftest.err
12111 rm -f conftest.er1
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } && {
12115 test -z "$ac_c_werror_flag" ||
12116 test ! -s conftest.err
12117 } && test -s conftest.$ac_objext; then
12118 ac_header_compiler=yes
12119 else
12120 echo "$as_me: failed program was:" >&5
12121 sed 's/^/| /' conftest.$ac_ext >&5
12123 ac_header_compiler=no
12126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12128 echo "${ECHO_T}$ac_header_compiler" >&6; }
12130 # Is the header present?
12131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12133 cat >conftest.$ac_ext <<_ACEOF
12134 /* confdefs.h. */
12135 _ACEOF
12136 cat confdefs.h >>conftest.$ac_ext
12137 cat >>conftest.$ac_ext <<_ACEOF
12138 /* end confdefs.h. */
12139 #include <$ac_header>
12140 _ACEOF
12141 if { (ac_try="$ac_cpp conftest.$ac_ext"
12142 case "(($ac_try" in
12143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12144 *) ac_try_echo=$ac_try;;
12145 esac
12146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12148 ac_status=$?
12149 grep -v '^ *+' conftest.er1 >conftest.err
12150 rm -f conftest.er1
12151 cat conftest.err >&5
12152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153 (exit $ac_status); } >/dev/null && {
12154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12155 test ! -s conftest.err
12156 }; then
12157 ac_header_preproc=yes
12158 else
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 ac_header_preproc=no
12165 rm -f conftest.err conftest.$ac_ext
12166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12167 echo "${ECHO_T}$ac_header_preproc" >&6; }
12169 # So? What about this header?
12170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12171 yes:no: )
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12176 ac_header_preproc=yes
12178 no:yes:* )
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12193 esac
12194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12197 echo $ECHO_N "(cached) $ECHO_C" >&6
12198 else
12199 eval "$as_ac_Header=\$ac_header_preproc"
12201 ac_res=`eval echo '${'$as_ac_Header'}'`
12202 { echo "$as_me:$LINENO: result: $ac_res" >&5
12203 echo "${ECHO_T}$ac_res" >&6; }
12206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12207 cat >>confdefs.h <<_ACEOF
12208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12209 _ACEOF
12213 done
12216 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
12218 save_cflags="$CFLAGS"
12219 CFLAGS="$CFLAGS $x_cflags"
12220 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
12221 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
12222 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
12223 echo $ECHO_N "(cached) $ECHO_C" >&6
12224 else
12225 ac_check_lib_save_LIBS=$LIBS
12226 LIBS="-lXext $LIBS"
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. */
12234 /* Override any GCC internal prototype to avoid an error.
12235 Use char because int might match the return type of a GCC
12236 builtin and then its argument prototype would still apply. */
12237 #ifdef __cplusplus
12238 extern "C"
12239 #endif
12240 char XShmQueryExtension ();
12242 main ()
12244 return XShmQueryExtension ();
12246 return 0;
12248 _ACEOF
12249 rm -f conftest.$ac_objext conftest$ac_exeext
12250 if { (ac_try="$ac_link"
12251 case "(($ac_try" in
12252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12253 *) ac_try_echo=$ac_try;;
12254 esac
12255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12256 (eval "$ac_link") 2>conftest.er1
12257 ac_status=$?
12258 grep -v '^ *+' conftest.er1 >conftest.err
12259 rm -f conftest.er1
12260 cat conftest.err >&5
12261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12262 (exit $ac_status); } && {
12263 test -z "$ac_c_werror_flag" ||
12264 test ! -s conftest.err
12265 } && test -s conftest$ac_exeext &&
12266 $as_test_x conftest$ac_exeext; then
12267 ac_cv_lib_Xext_XShmQueryExtension=yes
12268 else
12269 echo "$as_me: failed program was:" >&5
12270 sed 's/^/| /' conftest.$ac_ext >&5
12272 ac_cv_lib_Xext_XShmQueryExtension=no
12275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12276 conftest$ac_exeext conftest.$ac_ext
12277 LIBS=$ac_check_lib_save_LIBS
12279 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12280 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12281 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
12282 have_xshm=yes
12285 CFLAGS="$save_cflags"
12289 if test "x-$have_xshm" = "x-yes" ; then
12290 DO_XSHM_SUPPORT="1"
12291 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12292 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12293 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12294 { (exit 1); exit 1; }; }
12295 else
12296 DO_XSHM_SUPPORT="0"
12300 # Check whether --enable-x11_vidmode was given.
12301 if test "${enable_x11_vidmode+set}" = set; then
12302 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12303 else
12304 x11_hidd_vidmode="auto"
12307 case "x-$x11_hidd_vidmode" in
12308 x-yes|x-no|x-auto) ;;
12309 *) x11_hidd_vidmode="auto" ;;
12310 esac
12312 have_vidmode=no
12314 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12316 save_cflags="$CFLAGS"
12317 CFLAGS="$CFLAGS $x_cflags"
12318 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12319 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
12320 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12322 else
12323 ac_check_lib_save_LIBS=$LIBS
12324 LIBS="-lXxf86vm $LIBS"
12325 cat >conftest.$ac_ext <<_ACEOF
12326 /* confdefs.h. */
12327 _ACEOF
12328 cat confdefs.h >>conftest.$ac_ext
12329 cat >>conftest.$ac_ext <<_ACEOF
12330 /* end confdefs.h. */
12332 /* Override any GCC internal prototype to avoid an error.
12333 Use char because int might match the return type of a GCC
12334 builtin and then its argument prototype would still apply. */
12335 #ifdef __cplusplus
12336 extern "C"
12337 #endif
12338 char XF86VidModeQueryExtension ();
12340 main ()
12342 return XF86VidModeQueryExtension ();
12344 return 0;
12346 _ACEOF
12347 rm -f conftest.$ac_objext conftest$ac_exeext
12348 if { (ac_try="$ac_link"
12349 case "(($ac_try" in
12350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351 *) ac_try_echo=$ac_try;;
12352 esac
12353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12354 (eval "$ac_link") 2>conftest.er1
12355 ac_status=$?
12356 grep -v '^ *+' conftest.er1 >conftest.err
12357 rm -f conftest.er1
12358 cat conftest.err >&5
12359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12360 (exit $ac_status); } && {
12361 test -z "$ac_c_werror_flag" ||
12362 test ! -s conftest.err
12363 } && test -s conftest$ac_exeext &&
12364 $as_test_x conftest$ac_exeext; then
12365 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12366 else
12367 echo "$as_me: failed program was:" >&5
12368 sed 's/^/| /' conftest.$ac_ext >&5
12370 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12373 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12374 conftest$ac_exeext conftest.$ac_ext
12375 LIBS=$ac_check_lib_save_LIBS
12377 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12378 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12379 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
12380 have_vidmode=yes
12383 CFLAGS="$save_cflags"
12386 if test "x-$have_vidmode" = "x-yes" ; then
12387 DO_VIDMODE_SUPPORT="1"
12388 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12389 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12390 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12391 { (exit 1); exit 1; }; }
12392 else
12393 DO_VIDMODE_SUPPORT="0"
12397 aros_host_x11_includes=$x_includes
12398 aros_host_x11_libdirs=$x_libraries
12402 # Check whether --enable-sdl_hidd was given.
12403 if test "${enable_sdl_hidd+set}" = set; then
12404 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12405 else
12406 sdl_hidd="auto"
12409 case "x-$sdl_hidd" in
12410 x-yes|x-no|x-auto) ;;
12411 *) sdl_hidd="auto" ;;
12412 esac
12414 if test "x-$sdl_hidd" != "x-no" ; then
12417 # Check whether --with-sdl-prefix was given.
12418 if test "${with_sdl_prefix+set}" = set; then
12419 withval=$with_sdl_prefix; sdl_prefix="$withval"
12420 else
12421 sdl_prefix=""
12425 # Check whether --with-sdl-exec-prefix was given.
12426 if test "${with_sdl_exec_prefix+set}" = set; then
12427 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12428 else
12429 sdl_exec_prefix=""
12432 # Check whether --enable-sdltest was given.
12433 if test "${enable_sdltest+set}" = set; then
12434 enableval=$enable_sdltest;
12435 else
12436 enable_sdltest=yes
12440 if test x$sdl_exec_prefix != x ; then
12441 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12442 if test x${SDL_CONFIG+set} != xset ; then
12443 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12446 if test x$sdl_prefix != x ; then
12447 sdl_args="$sdl_args --prefix=$sdl_prefix"
12448 if test x${SDL_CONFIG+set} != xset ; then
12449 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12453 if test "x$prefix" != xNONE; then
12454 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12456 # Extract the first word of "sdl-config", so it can be a program name with args.
12457 set dummy sdl-config; ac_word=$2
12458 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12459 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12460 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12461 echo $ECHO_N "(cached) $ECHO_C" >&6
12462 else
12463 case $SDL_CONFIG in
12464 [\\/]* | ?:[\\/]*)
12465 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12469 for as_dir in $PATH
12471 IFS=$as_save_IFS
12472 test -z "$as_dir" && as_dir=.
12473 for ac_exec_ext in '' $ac_executable_extensions; do
12474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12475 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12476 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12477 break 2
12479 done
12480 done
12481 IFS=$as_save_IFS
12483 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12485 esac
12487 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12488 if test -n "$SDL_CONFIG"; then
12489 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12490 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12491 else
12492 { echo "$as_me:$LINENO: result: no" >&5
12493 echo "${ECHO_T}no" >&6; }
12497 min_sdl_version=1.2.10
12498 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12499 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12500 no_sdl=""
12501 if test "$SDL_CONFIG" = "no" ; then
12502 no_sdl=yes
12503 else
12504 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12505 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12507 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12508 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12509 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12510 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12511 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12512 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12513 if test "x$enable_sdltest" = "xyes" ; then
12514 ac_save_CFLAGS="$CFLAGS"
12515 ac_save_CXXFLAGS="$CXXFLAGS"
12516 ac_save_LIBS="$LIBS"
12517 CFLAGS="$CFLAGS $SDL_CFLAGS"
12518 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12519 LIBS="$LIBS $SDL_LIBS"
12520 rm -f conf.sdltest
12521 if test "$cross_compiling" = yes; then
12522 echo $ac_n "cross compiling; assumed OK... $ac_c"
12523 else
12524 cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h. */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h. */
12531 #include <stdio.h>
12532 #include <stdlib.h>
12533 #include <string.h>
12534 #include "SDL.h"
12536 char*
12537 my_strdup (char *str)
12539 char *new_str;
12541 if (str)
12543 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12544 strcpy (new_str, str);
12546 else
12547 new_str = NULL;
12549 return new_str;
12552 int main (int argc, char *argv[])
12554 int major, minor, micro;
12555 char *tmp_version;
12557 /* This hangs on some systems (?)
12558 system ("touch conf.sdltest");
12560 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12562 /* HP/UX 9 (%@#!) writes to sscanf strings */
12563 tmp_version = my_strdup("$min_sdl_version");
12564 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12565 printf("%s, bad version string\n", "$min_sdl_version");
12566 exit(1);
12569 if (($sdl_major_version > major) ||
12570 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12571 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12573 return 0;
12575 else
12577 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12578 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12579 printf("*** best to upgrade to the required version.\n");
12580 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12581 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12582 printf("*** config.cache before re-running configure\n");
12583 return 1;
12588 _ACEOF
12589 rm -f conftest$ac_exeext
12590 if { (ac_try="$ac_link"
12591 case "(($ac_try" in
12592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12594 esac
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_link") 2>&5
12597 ac_status=$?
12598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12600 { (case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_try") 2>&5
12606 ac_status=$?
12607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12608 (exit $ac_status); }; }; then
12610 else
12611 echo "$as_me: program exited with status $ac_status" >&5
12612 echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12615 ( exit $ac_status )
12616 no_sdl=yes
12618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12622 CFLAGS="$ac_save_CFLAGS"
12623 CXXFLAGS="$ac_save_CXXFLAGS"
12624 LIBS="$ac_save_LIBS"
12627 if test "x$no_sdl" = x ; then
12628 { echo "$as_me:$LINENO: result: yes" >&5
12629 echo "${ECHO_T}yes" >&6; }
12630 have_sdl="yes"
12631 else
12632 { echo "$as_me:$LINENO: result: no" >&5
12633 echo "${ECHO_T}no" >&6; }
12634 if test "$SDL_CONFIG" = "no" ; then
12635 echo "*** The sdl-config script installed by SDL could not be found"
12636 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12637 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12638 echo "*** full path to sdl-config."
12639 else
12640 if test -f conf.sdltest ; then
12642 else
12643 echo "*** Could not run SDL test program, checking why..."
12644 CFLAGS="$CFLAGS $SDL_CFLAGS"
12645 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12646 LIBS="$LIBS $SDL_LIBS"
12647 cat >conftest.$ac_ext <<_ACEOF
12648 /* confdefs.h. */
12649 _ACEOF
12650 cat confdefs.h >>conftest.$ac_ext
12651 cat >>conftest.$ac_ext <<_ACEOF
12652 /* end confdefs.h. */
12654 #include <stdio.h>
12655 #include "SDL.h"
12657 int main(int argc, char *argv[])
12658 { return 0; }
12659 #undef main
12660 #define main K_and_R_C_main
12663 main ()
12665 return 0;
12667 return 0;
12669 _ACEOF
12670 rm -f conftest.$ac_objext conftest$ac_exeext
12671 if { (ac_try="$ac_link"
12672 case "(($ac_try" in
12673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12675 esac
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_link") 2>conftest.er1
12678 ac_status=$?
12679 grep -v '^ *+' conftest.er1 >conftest.err
12680 rm -f conftest.er1
12681 cat conftest.err >&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } && {
12684 test -z "$ac_c_werror_flag" ||
12685 test ! -s conftest.err
12686 } && test -s conftest$ac_exeext &&
12687 $as_test_x conftest$ac_exeext; then
12688 echo "*** The test program compiled, but did not run. This usually means"
12689 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12690 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12691 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12692 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12693 echo "*** is required on your system"
12694 echo "***"
12695 echo "*** If you have an old version installed, it is best to remove it, although"
12696 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12697 else
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12701 echo "*** The test program failed to compile or link. See the file config.log for the"
12702 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12703 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12704 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12708 conftest$ac_exeext conftest.$ac_ext
12709 CFLAGS="$ac_save_CFLAGS"
12710 CXXFLAGS="$ac_save_CXXFLAGS"
12711 LIBS="$ac_save_LIBS"
12714 SDL_CFLAGS=""
12715 SDL_LIBS=""
12716 have_sdl="no"
12720 rm -f conf.sdltest
12723 if test "x-$have_sdl" != "x-yes" ; then
12725 if test "x-$sdl_hidd" != "x-auto" ; then
12726 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12727 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12728 { (exit 1); exit 1; }; }
12731 else
12732 sdl_hidd_target=kernel-hidd-sdl
12733 aros_host_sdl_cflags=SDL_CFLAGS
12734 aros_host_sdl_libs=SDL_LIBS
12741 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12742 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12743 # Check whether --enable-dbus was given.
12744 if test "${enable_dbus+set}" = set; then
12745 enableval=$enable_dbus; dbus="yes"
12746 else
12747 dbus="no"
12750 if test "$dbus" = "yes" ; then
12751 ENABLE_DBUS=1
12752 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12753 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12754 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12755 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12756 else
12757 ENABLE_DBUS=0
12759 { echo "$as_me:$LINENO: result: $dbus" >&5
12760 echo "${ECHO_T}$dbus" >&6; }
12764 # Generic
12774 # Host related
12797 # Target Related
12851 # Graphics Related
12866 # Native version related
12869 # Palm native version related
12872 # Unix/Hosted version related
12875 # Apple iOS related
12880 # DBUS related
12887 #X11 related
12890 # Debug related
12896 # Collect-aros stuff: "-ius" to ignore undefined symbols
12899 # C compiler related
12902 case "$aros_flavour" in
12903 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12904 aros_flavour="emulation" ;;
12905 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12906 aros_flavour="emulation" ;;
12907 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12908 aros_flavour="standalone";;
12909 standcompat) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12910 aros_flavour="standalone";;
12911 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12912 aros_flavour="native" ;;
12913 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12914 aros_flavour="native" ;;
12915 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12916 aros_flavour="linklib" ;;
12917 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12918 aros_flavour="palmnative" ;;
12919 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12920 aros_flavour="mac68knative" ;;
12921 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12922 aros_flavour="ppcnative" ;;
12923 esac
12925 if test ! -d ${aros_inc_dir} ; then
12926 ${MKDIR} ${aros_inc_dir}
12928 if test ! -d ${aros_geninc_dir} ; then
12929 ${MKDIR} ${aros_geninc_dir}
12931 if test ! -d ${aros_hostcfg_dir} ; then
12932 ${MKDIR} ${aros_hostcfg_dir}
12934 if test ! -d ${aros_targetcfg_dir} ; then
12935 ${MKDIR} ${aros_targetcfg_dir}
12937 if test ! -d ${aros_tools_dir} ; then
12938 ${MKDIR} ${aros_tools_dir}
12940 if test ! -d ${aros_scripts_dir} ; then
12941 ${MKDIR} ${aros_scripts_dir}
12944 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12947 ac_config_commands="$ac_config_commands compiler_executable"
12949 ac_config_commands="$ac_config_commands genshared_executable"
12951 ac_config_commands="$ac_config_commands genmf_executable"
12954 ac_config_files="$ac_config_files Makefile config/make.cfg ${aros_inc_dir}/config.h:config/config.h.in ${aros_geninc_dir}/config.h:config/config.h.in ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in mmake.config ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in ${aros_targetcfg_dir}/specs:config/specs.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-gcc:scripts/aros-gcc.in ${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros-ld:scripts/aros-ld.in ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py tools/collect-aros/env.h"
12957 cat >confcache <<\_ACEOF
12958 # This file is a shell script that caches the results of configure
12959 # tests run on this system so they can be shared between configure
12960 # scripts and configure runs, see configure's option --config-cache.
12961 # It is not useful on other systems. If it contains results you don't
12962 # want to keep, you may remove or edit it.
12964 # config.status only pays attention to the cache file if you give it
12965 # the --recheck option to rerun configure.
12967 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12968 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12969 # following values.
12971 _ACEOF
12973 # The following way of writing the cache mishandles newlines in values,
12974 # but we know of no workaround that is simple, portable, and efficient.
12975 # So, we kill variables containing newlines.
12976 # Ultrix sh set writes to stderr and can't be redirected directly,
12977 # and sets the high bit in the cache file unless we assign to the vars.
12979 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12980 eval ac_val=\$$ac_var
12981 case $ac_val in #(
12982 *${as_nl}*)
12983 case $ac_var in #(
12984 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12985 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12986 esac
12987 case $ac_var in #(
12988 _ | IFS | as_nl) ;; #(
12989 *) $as_unset $ac_var ;;
12990 esac ;;
12991 esac
12992 done
12994 (set) 2>&1 |
12995 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12996 *${as_nl}ac_space=\ *)
12997 # `set' does not quote correctly, so add quotes (double-quote
12998 # substitution turns \\\\ into \\, and sed turns \\ into \).
12999 sed -n \
13000 "s/'/'\\\\''/g;
13001 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13002 ;; #(
13004 # `set' quotes correctly as required by POSIX, so do not add quotes.
13005 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13007 esac |
13008 sort
13010 sed '
13011 /^ac_cv_env_/b end
13012 t clear
13013 :clear
13014 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13015 t end
13016 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13017 :end' >>confcache
13018 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13019 if test -w "$cache_file"; then
13020 test "x$cache_file" != "x/dev/null" &&
13021 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
13022 echo "$as_me: updating cache $cache_file" >&6;}
13023 cat confcache >$cache_file
13024 else
13025 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13026 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13029 rm -f confcache
13031 test "x$prefix" = xNONE && prefix=$ac_default_prefix
13032 # Let make expand exec_prefix.
13033 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13035 DEFS=-DHAVE_CONFIG_H
13037 ac_libobjs=
13038 ac_ltlibobjs=
13039 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13040 # 1. Remove the extension, and $U if already installed.
13041 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13042 ac_i=`echo "$ac_i" | sed "$ac_script"`
13043 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13044 # will be set to the directory where LIBOBJS objects are built.
13045 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13046 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13047 done
13048 LIBOBJS=$ac_libobjs
13050 LTLIBOBJS=$ac_ltlibobjs
13054 : ${CONFIG_STATUS=./config.status}
13055 ac_clean_files_save=$ac_clean_files
13056 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13057 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13058 echo "$as_me: creating $CONFIG_STATUS" >&6;}
13059 cat >$CONFIG_STATUS <<_ACEOF
13060 #! $SHELL
13061 # Generated by $as_me.
13062 # Run this file to recreate the current configuration.
13063 # Compiler output produced by configure, useful for debugging
13064 # configure, is in config.log if it exists.
13066 debug=false
13067 ac_cs_recheck=false
13068 ac_cs_silent=false
13069 SHELL=\${CONFIG_SHELL-$SHELL}
13070 _ACEOF
13072 cat >>$CONFIG_STATUS <<\_ACEOF
13073 ## --------------------- ##
13074 ## M4sh Initialization. ##
13075 ## --------------------- ##
13077 # Be more Bourne compatible
13078 DUALCASE=1; export DUALCASE # for MKS sh
13079 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13080 emulate sh
13081 NULLCMD=:
13082 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
13083 # is contrary to our usage. Disable this feature.
13084 alias -g '${1+"$@"}'='"$@"'
13085 setopt NO_GLOB_SUBST
13086 else
13087 case `(set -o) 2>/dev/null` in
13088 *posix*) set -o posix ;;
13089 esac
13096 # PATH needs CR
13097 # Avoid depending upon Character Ranges.
13098 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13099 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13100 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13101 as_cr_digits='0123456789'
13102 as_cr_alnum=$as_cr_Letters$as_cr_digits
13104 # The user is always right.
13105 if test "${PATH_SEPARATOR+set}" != set; then
13106 echo "#! /bin/sh" >conf$$.sh
13107 echo "exit 0" >>conf$$.sh
13108 chmod +x conf$$.sh
13109 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13110 PATH_SEPARATOR=';'
13111 else
13112 PATH_SEPARATOR=:
13114 rm -f conf$$.sh
13117 # Support unset when possible.
13118 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13119 as_unset=unset
13120 else
13121 as_unset=false
13125 # IFS
13126 # We need space, tab and new line, in precisely that order. Quoting is
13127 # there to prevent editors from complaining about space-tab.
13128 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13129 # splitting by setting IFS to empty value.)
13130 as_nl='
13132 IFS=" "" $as_nl"
13134 # Find who we are. Look in the path if we contain no directory separator.
13135 case $0 in
13136 *[\\/]* ) as_myself=$0 ;;
13137 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13138 for as_dir in $PATH
13140 IFS=$as_save_IFS
13141 test -z "$as_dir" && as_dir=.
13142 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13143 done
13144 IFS=$as_save_IFS
13147 esac
13148 # We did not find ourselves, most probably we were run as `sh COMMAND'
13149 # in which case we are not to be found in the path.
13150 if test "x$as_myself" = x; then
13151 as_myself=$0
13153 if test ! -f "$as_myself"; then
13154 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13155 { (exit 1); exit 1; }
13158 # Work around bugs in pre-3.0 UWIN ksh.
13159 for as_var in ENV MAIL MAILPATH
13160 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13161 done
13162 PS1='$ '
13163 PS2='> '
13164 PS4='+ '
13166 # NLS nuisances.
13167 for as_var in \
13168 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
13169 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
13170 LC_TELEPHONE LC_TIME
13172 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
13173 eval $as_var=C; export $as_var
13174 else
13175 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13177 done
13179 # Required to use basename.
13180 if expr a : '\(a\)' >/dev/null 2>&1 &&
13181 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13182 as_expr=expr
13183 else
13184 as_expr=false
13187 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13188 as_basename=basename
13189 else
13190 as_basename=false
13194 # Name of the executable.
13195 as_me=`$as_basename -- "$0" ||
13196 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13197 X"$0" : 'X\(//\)$' \| \
13198 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13199 echo X/"$0" |
13200 sed '/^.*\/\([^/][^/]*\)\/*$/{
13201 s//\1/
13204 /^X\/\(\/\/\)$/{
13205 s//\1/
13208 /^X\/\(\/\).*/{
13209 s//\1/
13212 s/.*/./; q'`
13214 # CDPATH.
13215 $as_unset CDPATH
13219 as_lineno_1=$LINENO
13220 as_lineno_2=$LINENO
13221 test "x$as_lineno_1" != "x$as_lineno_2" &&
13222 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13224 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13225 # uniformly replaced by the line number. The first 'sed' inserts a
13226 # line-number line after each line using $LINENO; the second 'sed'
13227 # does the real work. The second script uses 'N' to pair each
13228 # line-number line with the line containing $LINENO, and appends
13229 # trailing '-' during substitution so that $LINENO is not a special
13230 # case at line end.
13231 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13232 # scripts with optimization help from Paolo Bonzini. Blame Lee
13233 # E. McMahon (1931-1989) for sed's syntax. :-)
13234 sed -n '
13236 /[$]LINENO/=
13237 ' <$as_myself |
13238 sed '
13239 s/[$]LINENO.*/&-/
13240 t lineno
13242 :lineno
13244 :loop
13245 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13246 t loop
13247 s/-\n.*//
13248 ' >$as_me.lineno &&
13249 chmod +x "$as_me.lineno" ||
13250 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13251 { (exit 1); exit 1; }; }
13253 # Don't try to exec as it changes $[0], causing all sort of problems
13254 # (the dirname of $[0] is not the place where we might find the
13255 # original and so on. Autoconf is especially sensitive to this).
13256 . "./$as_me.lineno"
13257 # Exit status is that of the last command.
13258 exit
13262 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13263 as_dirname=dirname
13264 else
13265 as_dirname=false
13268 ECHO_C= ECHO_N= ECHO_T=
13269 case `echo -n x` in
13270 -n*)
13271 case `echo 'x\c'` in
13272 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13273 *) ECHO_C='\c';;
13274 esac;;
13276 ECHO_N='-n';;
13277 esac
13279 if expr a : '\(a\)' >/dev/null 2>&1 &&
13280 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13281 as_expr=expr
13282 else
13283 as_expr=false
13286 rm -f conf$$ conf$$.exe conf$$.file
13287 if test -d conf$$.dir; then
13288 rm -f conf$$.dir/conf$$.file
13289 else
13290 rm -f conf$$.dir
13291 mkdir conf$$.dir
13293 echo >conf$$.file
13294 if ln -s conf$$.file conf$$ 2>/dev/null; then
13295 as_ln_s='ln -s'
13296 # ... but there are two gotchas:
13297 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13298 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13299 # In both cases, we have to default to `cp -p'.
13300 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13301 as_ln_s='cp -p'
13302 elif ln conf$$.file conf$$ 2>/dev/null; then
13303 as_ln_s=ln
13304 else
13305 as_ln_s='cp -p'
13307 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13308 rmdir conf$$.dir 2>/dev/null
13310 if mkdir -p . 2>/dev/null; then
13311 as_mkdir_p=:
13312 else
13313 test -d ./-p && rmdir ./-p
13314 as_mkdir_p=false
13317 if test -x / >/dev/null 2>&1; then
13318 as_test_x='test -x'
13319 else
13320 if ls -dL / >/dev/null 2>&1; then
13321 as_ls_L_option=L
13322 else
13323 as_ls_L_option=
13325 as_test_x='
13326 eval sh -c '\''
13327 if test -d "$1"; then
13328 test -d "$1/.";
13329 else
13330 case $1 in
13331 -*)set "./$1";;
13332 esac;
13333 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13334 ???[sx]*):;;*)false;;esac;fi
13335 '\'' sh
13338 as_executable_p=$as_test_x
13340 # Sed expression to map a string onto a valid CPP name.
13341 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13343 # Sed expression to map a string onto a valid variable name.
13344 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13347 exec 6>&1
13349 # Save the log message, to keep $[0] and so on meaningful, and to
13350 # report actual input values of CONFIG_FILES etc. instead of their
13351 # values after options handling.
13352 ac_log="
13353 This file was extended by $as_me, which was
13354 generated by GNU Autoconf 2.61. Invocation command line was
13356 CONFIG_FILES = $CONFIG_FILES
13357 CONFIG_HEADERS = $CONFIG_HEADERS
13358 CONFIG_LINKS = $CONFIG_LINKS
13359 CONFIG_COMMANDS = $CONFIG_COMMANDS
13360 $ $0 $@
13362 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13365 _ACEOF
13367 cat >>$CONFIG_STATUS <<_ACEOF
13368 # Files that config.status was made for.
13369 config_files="$ac_config_files"
13370 config_headers="$ac_config_headers"
13371 config_commands="$ac_config_commands"
13373 _ACEOF
13375 cat >>$CONFIG_STATUS <<\_ACEOF
13376 ac_cs_usage="\
13377 \`$as_me' instantiates files from templates according to the
13378 current configuration.
13380 Usage: $0 [OPTIONS] [FILE]...
13382 -h, --help print this help, then exit
13383 -V, --version print version number and configuration settings, then exit
13384 -q, --quiet do not print progress messages
13385 -d, --debug don't remove temporary files
13386 --recheck update $as_me by reconfiguring in the same conditions
13387 --file=FILE[:TEMPLATE]
13388 instantiate the configuration file FILE
13389 --header=FILE[:TEMPLATE]
13390 instantiate the configuration header FILE
13392 Configuration files:
13393 $config_files
13395 Configuration headers:
13396 $config_headers
13398 Configuration commands:
13399 $config_commands
13401 Report bugs to <bug-autoconf@gnu.org>."
13403 _ACEOF
13404 cat >>$CONFIG_STATUS <<_ACEOF
13405 ac_cs_version="\\
13406 config.status
13407 configured by $0, generated by GNU Autoconf 2.61,
13408 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13410 Copyright (C) 2006 Free Software Foundation, Inc.
13411 This config.status script is free software; the Free Software Foundation
13412 gives unlimited permission to copy, distribute and modify it."
13414 ac_pwd='$ac_pwd'
13415 srcdir='$srcdir'
13416 _ACEOF
13418 cat >>$CONFIG_STATUS <<\_ACEOF
13419 # If no file are specified by the user, then we need to provide default
13420 # value. By we need to know if files were specified by the user.
13421 ac_need_defaults=:
13422 while test $# != 0
13424 case $1 in
13425 --*=*)
13426 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13427 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13428 ac_shift=:
13431 ac_option=$1
13432 ac_optarg=$2
13433 ac_shift=shift
13435 esac
13437 case $ac_option in
13438 # Handling of the options.
13439 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13440 ac_cs_recheck=: ;;
13441 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13442 echo "$ac_cs_version"; exit ;;
13443 --debug | --debu | --deb | --de | --d | -d )
13444 debug=: ;;
13445 --file | --fil | --fi | --f )
13446 $ac_shift
13447 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13448 ac_need_defaults=false;;
13449 --header | --heade | --head | --hea )
13450 $ac_shift
13451 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13452 ac_need_defaults=false;;
13453 --he | --h)
13454 # Conflict between --help and --header
13455 { echo "$as_me: error: ambiguous option: $1
13456 Try \`$0 --help' for more information." >&2
13457 { (exit 1); exit 1; }; };;
13458 --help | --hel | -h )
13459 echo "$ac_cs_usage"; exit ;;
13460 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13461 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13462 ac_cs_silent=: ;;
13464 # This is an error.
13465 -*) { echo "$as_me: error: unrecognized option: $1
13466 Try \`$0 --help' for more information." >&2
13467 { (exit 1); exit 1; }; } ;;
13469 *) ac_config_targets="$ac_config_targets $1"
13470 ac_need_defaults=false ;;
13472 esac
13473 shift
13474 done
13476 ac_configure_extra_args=
13478 if $ac_cs_silent; then
13479 exec 6>/dev/null
13480 ac_configure_extra_args="$ac_configure_extra_args --silent"
13483 _ACEOF
13484 cat >>$CONFIG_STATUS <<_ACEOF
13485 if \$ac_cs_recheck; then
13486 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13487 CONFIG_SHELL=$SHELL
13488 export CONFIG_SHELL
13489 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13492 _ACEOF
13493 cat >>$CONFIG_STATUS <<\_ACEOF
13494 exec 5>>config.log
13496 echo
13497 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13498 ## Running $as_me. ##
13499 _ASBOX
13500 echo "$ac_log"
13501 } >&5
13503 _ACEOF
13504 cat >>$CONFIG_STATUS <<_ACEOF
13506 # INIT-COMMANDS
13509 aros_host_exe_suffix=${aros_host_exe_suffix}
13510 aros_tools_dir=${aros_tools_dir}
13511 aros_target_cpu=${aros_target_cpu}
13512 aros_target_arch=${aros_target_arch}
13513 aros_target_suffix=${aros_target_suffix}
13514 aros_target_nm_ln=${aros_target_nm_ln}
13515 aros_target_as_ln=${aros_target_as_ln}
13516 aros_target_ar_ln=${aros_target_ar_ln}
13517 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13518 aros_target_objdump_ln=${aros_target_objdump_ln}
13519 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13520 aros_target_strip_ln=${aros_target_strip_ln}
13523 aros_scripts_dir=${aros_scripts_dir}
13525 aros_tools_dir=${aros_tools_dir}
13528 _ACEOF
13530 cat >>$CONFIG_STATUS <<\_ACEOF
13532 # Handling of arguments.
13533 for ac_config_target in $ac_config_targets
13535 case $ac_config_target in
13536 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13537 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13538 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13539 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13540 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13541 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13542 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13543 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13544 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13545 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13546 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13547 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13548 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13549 "${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" ;;
13550 "${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" ;;
13551 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13552 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13553 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13555 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13556 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13557 { (exit 1); exit 1; }; };;
13558 esac
13559 done
13562 # If the user did not use the arguments to specify the items to instantiate,
13563 # then the envvar interface is used. Set only those that are not.
13564 # We use the long form for the default assignment because of an extremely
13565 # bizarre bug on SunOS 4.1.3.
13566 if $ac_need_defaults; then
13567 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13568 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13569 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13572 # Have a temporary directory for convenience. Make it in the build tree
13573 # simply because there is no reason against having it here, and in addition,
13574 # creating and moving files from /tmp can sometimes cause problems.
13575 # Hook for its removal unless debugging.
13576 # Note that there is a small window in which the directory will not be cleaned:
13577 # after its creation but before its name has been assigned to `$tmp'.
13578 $debug ||
13580 tmp=
13581 trap 'exit_status=$?
13582 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13584 trap '{ (exit 1); exit 1; }' 1 2 13 15
13586 # Create a (secure) tmp directory for tmp files.
13589 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13590 test -n "$tmp" && test -d "$tmp"
13591 } ||
13593 tmp=./conf$$-$RANDOM
13594 (umask 077 && mkdir "$tmp")
13595 } ||
13597 echo "$me: cannot create a temporary directory in ." >&2
13598 { (exit 1); exit 1; }
13602 # Set up the sed scripts for CONFIG_FILES section.
13605 # No need to generate the scripts if there are no CONFIG_FILES.
13606 # This happens for instance when ./config.status config.h
13607 if test -n "$CONFIG_FILES"; then
13609 _ACEOF
13613 ac_delim='%!_!# '
13614 for ac_last_try in false false false false false :; do
13615 cat >conf$$subs.sed <<_ACEOF
13616 SHELL!$SHELL$ac_delim
13617 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13618 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13619 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13620 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13621 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13622 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13623 exec_prefix!$exec_prefix$ac_delim
13624 prefix!$prefix$ac_delim
13625 program_transform_name!$program_transform_name$ac_delim
13626 bindir!$bindir$ac_delim
13627 sbindir!$sbindir$ac_delim
13628 libexecdir!$libexecdir$ac_delim
13629 datarootdir!$datarootdir$ac_delim
13630 datadir!$datadir$ac_delim
13631 sysconfdir!$sysconfdir$ac_delim
13632 sharedstatedir!$sharedstatedir$ac_delim
13633 localstatedir!$localstatedir$ac_delim
13634 includedir!$includedir$ac_delim
13635 oldincludedir!$oldincludedir$ac_delim
13636 docdir!$docdir$ac_delim
13637 infodir!$infodir$ac_delim
13638 htmldir!$htmldir$ac_delim
13639 dvidir!$dvidir$ac_delim
13640 pdfdir!$pdfdir$ac_delim
13641 psdir!$psdir$ac_delim
13642 libdir!$libdir$ac_delim
13643 localedir!$localedir$ac_delim
13644 mandir!$mandir$ac_delim
13645 DEFS!$DEFS$ac_delim
13646 ECHO_C!$ECHO_C$ac_delim
13647 ECHO_N!$ECHO_N$ac_delim
13648 ECHO_T!$ECHO_T$ac_delim
13649 LIBS!$LIBS$ac_delim
13650 build_alias!$build_alias$ac_delim
13651 host_alias!$host_alias$ac_delim
13652 target_alias!$target_alias$ac_delim
13653 build!$build$ac_delim
13654 build_cpu!$build_cpu$ac_delim
13655 build_vendor!$build_vendor$ac_delim
13656 build_os!$build_os$ac_delim
13657 host!$host$ac_delim
13658 host_cpu!$host_cpu$ac_delim
13659 host_vendor!$host_vendor$ac_delim
13660 host_os!$host_os$ac_delim
13661 CC!$CC$ac_delim
13662 CFLAGS!$CFLAGS$ac_delim
13663 LDFLAGS!$LDFLAGS$ac_delim
13664 CPPFLAGS!$CPPFLAGS$ac_delim
13665 ac_ct_CC!$ac_ct_CC$ac_delim
13666 EXEEXT!$EXEEXT$ac_delim
13667 OBJEXT!$OBJEXT$ac_delim
13668 CPP!$CPP$ac_delim
13669 AWK!$AWK$ac_delim
13670 MMAKE!$MMAKE$ac_delim
13671 aros_host_ld!$aros_host_ld$ac_delim
13672 aros_host_aclocal!$aros_host_aclocal$ac_delim
13673 aros_host_autoconf!$aros_host_autoconf$ac_delim
13674 aros_host_autoheader!$aros_host_autoheader$ac_delim
13675 aros_host_automake!$aros_host_automake$ac_delim
13676 aros_host_ar!$aros_host_ar$ac_delim
13677 aros_host_ranlib!$aros_host_ranlib$ac_delim
13678 aros_host_strip!$aros_host_strip$ac_delim
13679 RM!$RM$ac_delim
13680 CP!$CP$ac_delim
13681 MV!$MV$ac_delim
13682 ECHO!$ECHO$ac_delim
13683 MKDIR!$MKDIR$ac_delim
13684 TOUCH!$TOUCH$ac_delim
13685 SORT!$SORT$ac_delim
13686 UNIQ!$UNIQ$ac_delim
13687 NOP!$NOP$ac_delim
13688 CAT!$CAT$ac_delim
13689 BISON!$BISON$ac_delim
13690 FLEX!$FLEX$ac_delim
13691 PNGTOPNM!$PNGTOPNM$ac_delim
13692 PPMTOILBM!$PPMTOILBM$ac_delim
13693 SED!$SED$ac_delim
13694 CHMOD!$CHMOD$ac_delim
13695 PYTHON!$PYTHON$ac_delim
13696 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13697 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13698 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13699 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13700 pythondir!$pythondir$ac_delim
13701 pkgpythondir!$pkgpythondir$ac_delim
13702 pyexecdir!$pyexecdir$ac_delim
13703 pkgpyexecdir!$pkgpyexecdir$ac_delim
13704 FOR!$FOR$ac_delim
13705 IF!$IF$ac_delim
13706 TEST!$TEST$ac_delim
13707 CMP!$CMP$ac_delim
13708 GREP!$GREP$ac_delim
13709 EGREP!$EGREP$ac_delim
13710 LIBOBJS!$LIBOBJS$ac_delim
13711 DISTCC!$DISTCC$ac_delim
13712 CCACHE!$CCACHE$ac_delim
13713 _ACEOF
13715 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13716 break
13717 elif $ac_last_try; then
13718 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13719 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13720 { (exit 1); exit 1; }; }
13721 else
13722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13724 done
13726 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13727 if test -n "$ac_eof"; then
13728 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13729 ac_eof=`expr $ac_eof + 1`
13732 cat >>$CONFIG_STATUS <<_ACEOF
13733 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13735 _ACEOF
13736 sed '
13737 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13738 s/^/s,@/; s/!/@,|#_!!_#|/
13741 s/'"$ac_delim"'$/,g/; t
13742 s/$/\\/; p
13743 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13744 ' >>$CONFIG_STATUS <conf$$subs.sed
13745 rm -f conf$$subs.sed
13746 cat >>$CONFIG_STATUS <<_ACEOF
13747 CEOF$ac_eof
13748 _ACEOF
13751 ac_delim='%!_!# '
13752 for ac_last_try in false false false false false :; do
13753 cat >conf$$subs.sed <<_ACEOF
13754 aros_target_cc!$aros_target_cc$ac_delim
13755 aros_target_ld!$aros_target_ld$ac_delim
13756 aros_target_as_ln!$aros_target_as_ln$ac_delim
13757 aros_kernel_ld!$aros_kernel_ld$ac_delim
13758 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13759 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13760 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13761 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13762 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13763 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13764 aros_target_cxx!$aros_target_cxx$ac_delim
13765 aros_kernel_rescomp!$aros_kernel_rescomp$ac_delim
13766 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13767 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13768 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13769 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13770 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13771 host_cflags_iquote!$host_cflags_iquote$ac_delim
13772 host_cflags_iquote_end!$host_cflags_iquote_end$ac_delim
13773 kernel_cflags_iquote!$kernel_cflags_iquote$ac_delim
13774 kernel_cflags_iquote_end!$kernel_cflags_iquote_end$ac_delim
13775 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13776 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13777 XMKMF!$XMKMF$ac_delim
13778 SDL_CONFIG!$SDL_CONFIG$ac_delim
13779 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13780 SDL_LIBS!$SDL_LIBS$ac_delim
13781 aros_arch!$aros_arch$ac_delim
13782 aros_cpu!$aros_cpu$ac_delim
13783 aros_flavour!$aros_flavour$ac_delim
13784 aros_flavour_uc!$aros_flavour_uc$ac_delim
13785 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13786 AROS_BUILDDIR_UNIX!$AROS_BUILDDIR_UNIX$ac_delim
13787 SRCDIR!$SRCDIR$ac_delim
13788 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13789 aros_cc_pre!$aros_cc_pre$ac_delim
13790 aros_host_arch!$aros_host_arch$ac_delim
13791 aros_host_cpu!$aros_host_cpu$ac_delim
13792 aros_host_cc!$aros_host_cc$ac_delim
13793 aros_host_make!$aros_host_make$ac_delim
13794 aros_host_cflags!$aros_host_cflags$ac_delim
13795 aros_host_ldflags!$aros_host_ldflags$ac_delim
13796 aros_host_debug!$aros_host_debug$ac_delim
13797 aros_host_mkdep!$aros_host_mkdep$ac_delim
13798 aros_host_mkargs!$aros_host_mkargs$ac_delim
13799 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13800 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13801 aros_tools_dir!$aros_tools_dir$ac_delim
13802 aros_target_guitheme!$aros_target_guitheme$ac_delim
13803 aros_target_iconset!$aros_target_iconset$ac_delim
13804 aros_target_bootloader!$aros_target_bootloader$ac_delim
13805 aros_target_arch!$aros_target_arch$ac_delim
13806 aros_target_family!$aros_target_family$ac_delim
13807 aros_target_cpu!$aros_target_cpu$ac_delim
13808 aros_target_variant!$aros_target_variant$ac_delim
13809 aros_target_suffix!$aros_target_suffix$ac_delim
13810 aros_target_incl!$aros_target_incl$ac_delim
13811 aros_target_ar!$aros_target_ar$ac_delim
13812 aros_target_ranlib!$aros_target_ranlib$ac_delim
13813 aros_kernel_nm!$aros_kernel_nm$ac_delim
13814 orig_target_cc!$orig_target_cc$ac_delim
13815 aros_kernel_cc!$aros_kernel_cc$ac_delim
13816 aros_target_as!$aros_target_as$ac_delim
13817 orig_target_ld!$orig_target_ld$ac_delim
13818 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13819 aros_target_cc_path!$aros_target_cc_path$ac_delim
13820 aros_target_objdump!$aros_target_objdump$ac_delim
13821 aros_target_objcopy!$aros_target_objcopy$ac_delim
13822 aros_target_strip!$aros_target_strip$ac_delim
13823 aros_target_nm!$aros_target_nm$ac_delim
13824 aros_shared_default!$aros_shared_default$ac_delim
13825 aros_shared_ld!$aros_shared_ld$ac_delim
13826 aros_object_format!$aros_object_format$ac_delim
13827 aros_compiler_libs!$aros_compiler_libs$ac_delim
13828 aros_arch_libs!$aros_arch_libs$ac_delim
13829 aros_config_cflags!$aros_config_cflags$ac_delim
13830 aros_config_aflags!$aros_config_aflags$ac_delim
13831 aros_config_ldflags!$aros_config_ldflags$ac_delim
13832 aros_shared_cflags!$aros_shared_cflags$ac_delim
13833 aros_shared_aflags!$aros_shared_aflags$ac_delim
13834 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13835 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13836 aros_kernel_includes!$aros_kernel_includes$ac_delim
13837 aros_kernel_objcflags!$aros_kernel_objcflags$ac_delim
13838 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13839 aros_debug_cflags!$aros_debug_cflags$ac_delim
13840 aros_debug_aflags!$aros_debug_aflags$ac_delim
13841 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13842 aros_paranoia_cflags!$aros_paranoia_cflags$ac_delim
13843 aros_target_genmap!$aros_target_genmap$ac_delim
13844 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13845 crosstools_target!$crosstools_target$ac_delim
13846 x11_hidd_target!$x11_hidd_target$ac_delim
13847 sdl_hidd_target!$sdl_hidd_target$ac_delim
13848 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13849 aros_default_wbheight!$aros_default_wbheight$ac_delim
13850 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
13851 _ACEOF
13853 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13854 break
13855 elif $ac_last_try; then
13856 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13857 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13858 { (exit 1); exit 1; }; }
13859 else
13860 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13862 done
13864 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13865 if test -n "$ac_eof"; then
13866 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13867 ac_eof=`expr $ac_eof + 1`
13870 cat >>$CONFIG_STATUS <<_ACEOF
13871 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13872 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13873 _ACEOF
13874 sed '
13875 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13876 s/^/s,@/; s/!/@,|#_!!_#|/
13879 s/'"$ac_delim"'$/,g/; t
13880 s/$/\\/; p
13881 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13882 ' >>$CONFIG_STATUS <conf$$subs.sed
13883 rm -f conf$$subs.sed
13884 cat >>$CONFIG_STATUS <<_ACEOF
13885 CEOF$ac_eof
13886 _ACEOF
13889 ac_delim='%!_!# '
13890 for ac_last_try in false false false false false :; do
13891 cat >conf$$subs.sed <<_ACEOF
13892 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
13893 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
13894 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
13895 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
13896 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
13897 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
13898 aros_serial_debug!$aros_serial_debug$ac_delim
13899 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
13900 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
13901 aros_ios_platform!$aros_ios_platform$ac_delim
13902 aros_ios_version!$aros_ios_version$ac_delim
13903 aros_ios_sdk!$aros_ios_sdk$ac_delim
13904 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
13905 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
13906 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
13907 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
13908 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
13909 ENABLE_X11!$ENABLE_X11$ac_delim
13910 aros_debug!$aros_debug$ac_delim
13911 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
13912 aros_stack_debug!$aros_stack_debug$ac_delim
13913 aros_modules_debug!$aros_modules_debug$ac_delim
13914 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
13915 gcc_target_cpu!$gcc_target_cpu$ac_delim
13916 LTLIBOBJS!$LTLIBOBJS$ac_delim
13917 _ACEOF
13919 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 25; then
13920 break
13921 elif $ac_last_try; then
13922 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13923 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13924 { (exit 1); exit 1; }; }
13925 else
13926 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13928 done
13930 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13931 if test -n "$ac_eof"; then
13932 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13933 ac_eof=`expr $ac_eof + 1`
13936 cat >>$CONFIG_STATUS <<_ACEOF
13937 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
13938 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13939 _ACEOF
13940 sed '
13941 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13942 s/^/s,@/; s/!/@,|#_!!_#|/
13945 s/'"$ac_delim"'$/,g/; t
13946 s/$/\\/; p
13947 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13948 ' >>$CONFIG_STATUS <conf$$subs.sed
13949 rm -f conf$$subs.sed
13950 cat >>$CONFIG_STATUS <<_ACEOF
13951 :end
13952 s/|#_!!_#|//g
13953 CEOF$ac_eof
13954 _ACEOF
13957 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13958 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13959 # trailing colons and then remove the whole line if VPATH becomes empty
13960 # (actually we leave an empty line to preserve line numbers).
13961 if test "x$srcdir" = x.; then
13962 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13963 s/:*\$(srcdir):*/:/
13964 s/:*\${srcdir}:*/:/
13965 s/:*@srcdir@:*/:/
13966 s/^\([^=]*=[ ]*\):*/\1/
13967 s/:*$//
13968 s/^[^=]*=[ ]*$//
13972 cat >>$CONFIG_STATUS <<\_ACEOF
13973 fi # test -n "$CONFIG_FILES"
13976 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13978 case $ac_tag in
13979 :[FHLC]) ac_mode=$ac_tag; continue;;
13980 esac
13981 case $ac_mode$ac_tag in
13982 :[FHL]*:*);;
13983 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13984 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13985 { (exit 1); exit 1; }; };;
13986 :[FH]-) ac_tag=-:-;;
13987 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13988 esac
13989 ac_save_IFS=$IFS
13990 IFS=:
13991 set x $ac_tag
13992 IFS=$ac_save_IFS
13993 shift
13994 ac_file=$1
13995 shift
13997 case $ac_mode in
13998 :L) ac_source=$1;;
13999 :[FH])
14000 ac_file_inputs=
14001 for ac_f
14003 case $ac_f in
14004 -) ac_f="$tmp/stdin";;
14005 *) # Look for the file first in the build tree, then in the source tree
14006 # (if the path is not absolute). The absolute path cannot be DOS-style,
14007 # because $ac_f cannot contain `:'.
14008 test -f "$ac_f" ||
14009 case $ac_f in
14010 [\\/$]*) false;;
14011 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14012 esac ||
14013 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14014 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14015 { (exit 1); exit 1; }; };;
14016 esac
14017 ac_file_inputs="$ac_file_inputs $ac_f"
14018 done
14020 # Let's still pretend it is `configure' which instantiates (i.e., don't
14021 # use $as_me), people would be surprised to read:
14022 # /* config.h. Generated by config.status. */
14023 configure_input="Generated from "`IFS=:
14024 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14025 if test x"$ac_file" != x-; then
14026 configure_input="$ac_file. $configure_input"
14027 { echo "$as_me:$LINENO: creating $ac_file" >&5
14028 echo "$as_me: creating $ac_file" >&6;}
14031 case $ac_tag in
14032 *:-:* | *:-) cat >"$tmp/stdin";;
14033 esac
14035 esac
14037 ac_dir=`$as_dirname -- "$ac_file" ||
14038 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14039 X"$ac_file" : 'X\(//\)[^/]' \| \
14040 X"$ac_file" : 'X\(//\)$' \| \
14041 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14042 echo X"$ac_file" |
14043 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14044 s//\1/
14047 /^X\(\/\/\)[^/].*/{
14048 s//\1/
14051 /^X\(\/\/\)$/{
14052 s//\1/
14055 /^X\(\/\).*/{
14056 s//\1/
14059 s/.*/./; q'`
14060 { as_dir="$ac_dir"
14061 case $as_dir in #(
14062 -*) as_dir=./$as_dir;;
14063 esac
14064 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
14065 as_dirs=
14066 while :; do
14067 case $as_dir in #(
14068 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
14069 *) as_qdir=$as_dir;;
14070 esac
14071 as_dirs="'$as_qdir' $as_dirs"
14072 as_dir=`$as_dirname -- "$as_dir" ||
14073 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14074 X"$as_dir" : 'X\(//\)[^/]' \| \
14075 X"$as_dir" : 'X\(//\)$' \| \
14076 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14077 echo X"$as_dir" |
14078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14079 s//\1/
14082 /^X\(\/\/\)[^/].*/{
14083 s//\1/
14086 /^X\(\/\/\)$/{
14087 s//\1/
14090 /^X\(\/\).*/{
14091 s//\1/
14094 s/.*/./; q'`
14095 test -d "$as_dir" && break
14096 done
14097 test -z "$as_dirs" || eval "mkdir $as_dirs"
14098 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
14099 echo "$as_me: error: cannot create directory $as_dir" >&2;}
14100 { (exit 1); exit 1; }; }; }
14101 ac_builddir=.
14103 case "$ac_dir" in
14104 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14106 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
14107 # A ".." for each directory in $ac_dir_suffix.
14108 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
14109 case $ac_top_builddir_sub in
14110 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14111 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14112 esac ;;
14113 esac
14114 ac_abs_top_builddir=$ac_pwd
14115 ac_abs_builddir=$ac_pwd$ac_dir_suffix
14116 # for backward compatibility:
14117 ac_top_builddir=$ac_top_build_prefix
14119 case $srcdir in
14120 .) # We are building in place.
14121 ac_srcdir=.
14122 ac_top_srcdir=$ac_top_builddir_sub
14123 ac_abs_top_srcdir=$ac_pwd ;;
14124 [\\/]* | ?:[\\/]* ) # Absolute name.
14125 ac_srcdir=$srcdir$ac_dir_suffix;
14126 ac_top_srcdir=$srcdir
14127 ac_abs_top_srcdir=$srcdir ;;
14128 *) # Relative name.
14129 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14130 ac_top_srcdir=$ac_top_build_prefix$srcdir
14131 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14132 esac
14133 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14136 case $ac_mode in
14139 # CONFIG_FILE
14142 _ACEOF
14144 cat >>$CONFIG_STATUS <<\_ACEOF
14145 # If the template does not know about datarootdir, expand it.
14146 # FIXME: This hack should be removed a few years after 2.60.
14147 ac_datarootdir_hack=; ac_datarootdir_seen=
14149 case `sed -n '/datarootdir/ {
14153 /@datadir@/p
14154 /@docdir@/p
14155 /@infodir@/p
14156 /@localedir@/p
14157 /@mandir@/p
14158 ' $ac_file_inputs` in
14159 *datarootdir*) ac_datarootdir_seen=yes;;
14160 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14161 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14162 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14163 _ACEOF
14164 cat >>$CONFIG_STATUS <<_ACEOF
14165 ac_datarootdir_hack='
14166 s&@datadir@&$datadir&g
14167 s&@docdir@&$docdir&g
14168 s&@infodir@&$infodir&g
14169 s&@localedir@&$localedir&g
14170 s&@mandir@&$mandir&g
14171 s&\\\${datarootdir}&$datarootdir&g' ;;
14172 esac
14173 _ACEOF
14175 # Neutralize VPATH when `$srcdir' = `.'.
14176 # Shell code in configure.ac might set extrasub.
14177 # FIXME: do we really want to maintain this feature?
14178 cat >>$CONFIG_STATUS <<_ACEOF
14179 sed "$ac_vpsub
14180 $extrasub
14181 _ACEOF
14182 cat >>$CONFIG_STATUS <<\_ACEOF
14184 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14185 s&@configure_input@&$configure_input&;t t
14186 s&@top_builddir@&$ac_top_builddir_sub&;t t
14187 s&@srcdir@&$ac_srcdir&;t t
14188 s&@abs_srcdir@&$ac_abs_srcdir&;t t
14189 s&@top_srcdir@&$ac_top_srcdir&;t t
14190 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14191 s&@builddir@&$ac_builddir&;t t
14192 s&@abs_builddir@&$ac_abs_builddir&;t t
14193 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14194 $ac_datarootdir_hack
14195 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
14197 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14198 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14199 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14200 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14201 which seems to be undefined. Please make sure it is defined." >&5
14202 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14203 which seems to be undefined. Please make sure it is defined." >&2;}
14205 rm -f "$tmp/stdin"
14206 case $ac_file in
14207 -) cat "$tmp/out"; rm -f "$tmp/out";;
14208 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
14209 esac
14213 # CONFIG_HEADER
14215 _ACEOF
14217 # Transform confdefs.h into a sed script `conftest.defines', that
14218 # substitutes the proper values into config.h.in to produce config.h.
14219 rm -f conftest.defines conftest.tail
14220 # First, append a space to every undef/define line, to ease matching.
14221 echo 's/$/ /' >conftest.defines
14222 # Then, protect against being on the right side of a sed subst, or in
14223 # an unquoted here document, in config.status. If some macros were
14224 # called several times there might be several #defines for the same
14225 # symbol, which is useless. But do not sort them, since the last
14226 # AC_DEFINE must be honored.
14227 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14228 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14229 # NAME is the cpp macro being defined, VALUE is the value it is being given.
14230 # PARAMS is the parameter list in the macro definition--in most cases, it's
14231 # just an empty string.
14232 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14233 ac_dB='\\)[ (].*,\\1define\\2'
14234 ac_dC=' '
14235 ac_dD=' ,'
14237 uniq confdefs.h |
14238 sed -n '
14239 t rset
14240 :rset
14241 s/^[ ]*#[ ]*define[ ][ ]*//
14242 t ok
14245 s/[\\&,]/\\&/g
14246 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14247 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14248 ' >>conftest.defines
14250 # Remove the space that was appended to ease matching.
14251 # Then replace #undef with comments. This is necessary, for
14252 # example, in the case of _POSIX_SOURCE, which is predefined and required
14253 # on some systems where configure will not decide to define it.
14254 # (The regexp can be short, since the line contains either #define or #undef.)
14255 echo 's/ $//
14256 s,^[ #]*u.*,/* & */,' >>conftest.defines
14258 # Break up conftest.defines:
14259 ac_max_sed_lines=50
14261 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14262 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14263 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14264 # et cetera.
14265 ac_in='$ac_file_inputs'
14266 ac_out='"$tmp/out1"'
14267 ac_nxt='"$tmp/out2"'
14269 while :
14271 # Write a here document:
14272 cat >>$CONFIG_STATUS <<_ACEOF
14273 # First, check the format of the line:
14274 cat >"\$tmp/defines.sed" <<\\CEOF
14275 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14276 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14278 :def
14279 _ACEOF
14280 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14281 echo 'CEOF
14282 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14283 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14284 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14285 grep . conftest.tail >/dev/null || break
14286 rm -f conftest.defines
14287 mv conftest.tail conftest.defines
14288 done
14289 rm -f conftest.defines conftest.tail
14291 echo "ac_result=$ac_in" >>$CONFIG_STATUS
14292 cat >>$CONFIG_STATUS <<\_ACEOF
14293 if test x"$ac_file" != x-; then
14294 echo "/* $configure_input */" >"$tmp/config.h"
14295 cat "$ac_result" >>"$tmp/config.h"
14296 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
14297 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14298 echo "$as_me: $ac_file is unchanged" >&6;}
14299 else
14300 rm -f $ac_file
14301 mv "$tmp/config.h" $ac_file
14303 else
14304 echo "/* $configure_input */"
14305 cat "$ac_result"
14307 rm -f "$tmp/out12"
14310 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14311 echo "$as_me: executing $ac_file commands" >&6;}
14313 esac
14316 case $ac_file$ac_mode in
14317 "compiler_executable":C)
14318 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14319 mkdir -p $prefix
14320 prefix="${prefix}/${aros_target_cpu}-aros"
14321 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14323 echo ${prefix}
14324 echo ${prefix2}
14325 chmod a+x ${prefix2}-gcc ${prefix2}-ld
14327 ln -sf ${prefix2}-gcc ${prefix}-gcc
14328 ln -sf ${prefix2}-ld ${prefix}-ld
14330 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix}-as
14331 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix}-nm
14332 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix}-ar
14333 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix}-ranlib
14334 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix}-objcopy
14335 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix}-objdump
14336 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix}-strip
14338 ln -sf $aros_target_as_ln$aros_host_exe_suffix ${prefix2}-as
14339 ln -sf $aros_target_nm_ln$aros_host_exe_suffix ${prefix2}-nm
14340 ln -sf $aros_target_ar_ln$aros_host_exe_suffix ${prefix2}-ar
14341 ln -sf $aros_target_ranlib_ln$aros_host_exe_suffix ${prefix2}-ranlib
14342 ln -sf $aros_target_objcopy_ln$aros_host_exe_suffix ${prefix2}-objcopy
14343 ln -sf $aros_target_objdump_ln$aros_host_exe_suffix ${prefix2}-objdump
14344 ln -sf $aros_target_strip_ln$aros_host_exe_suffix ${prefix2}-strip
14346 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
14347 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14349 esac
14350 done # for ac_tag
14353 { (exit 0); exit 0; }
14354 _ACEOF
14355 chmod +x $CONFIG_STATUS
14356 ac_clean_files=$ac_clean_files_save
14359 # configure is writing to config.log, and then calls config.status.
14360 # config.status does its own redirection, appending to config.log.
14361 # Unfortunately, on DOS this fails, as config.log is still kept open
14362 # by configure, so config.status won't be able to write to it; its
14363 # output is simply discarded. So we exec the FD to /dev/null,
14364 # effectively closing config.log, so it can be properly (re)opened and
14365 # appended to by config.status. When coming back to configure, we
14366 # need to make the FD available again.
14367 if test "$no_create" != yes; then
14368 ac_cs_success=:
14369 ac_config_status_args=
14370 test "$silent" = yes &&
14371 ac_config_status_args="$ac_config_status_args --quiet"
14372 exec 5>/dev/null
14373 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14374 exec 5>>config.log
14375 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14376 # would make configure fail if this is the last instruction.
14377 $ac_cs_success || { (exit 1); exit 1; }
14382 #XXX compatability...
14383 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14385 if test -n "$aros_shared_cflags" ; then
14386 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14387 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg