Disabled include files generation
[AROS.git] / configure
blobc11822ff00838f3febe0febe855e96876dbbac3f
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 LIBLZO
714 aros_kernel_cc
715 aros_target_cc
716 aros_target_ld
717 aros_target_as_ln
718 aros_kernel_ld
719 aros_target_ar_ln
720 aros_target_nm_ln
721 aros_target_objcopy_ln
722 aros_target_objdump_ln
723 aros_target_ranlib_ln
724 aros_target_strip_ln
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 aros_cflags_iquote
731 aros_cflags_iquote_end
732 XMKMF
733 SDL_CONFIG
734 SDL_CFLAGS
735 SDL_LIBS
736 aros_arch
737 aros_cpu
738 aros_flavour
739 aros_flavour_uc
740 AROS_BUILDDIR
741 SRCDIR
742 AROS_PORTSSRCDIR
743 aros_cc_pre
744 aros_host_arch
745 aros_host_cpu
746 aros_host_cc
747 aros_host_make
748 aros_host_cflags
749 aros_host_ldflags
750 aros_host_debug
751 aros_host_mkdep
752 aros_host_mkargs
753 aros_host_exe_suffix
754 aros_host_lib_suffix
755 aros_tools_dir
756 aros_target_guitheme
757 aros_target_bootloader
758 aros_target_arch
759 aros_target_cpu
760 aros_target_variant
761 aros_target_suffix
762 aros_target_incl
763 aros_target_ar
764 aros_target_ranlib
765 aros_kernel_nm
766 orig_target_cc
767 aros_target_as
768 orig_target_ld
769 aros_target_cc_includes
770 aros_target_cc_path
771 aros_target_objdump
772 aros_target_objcopy
773 aros_target_strip
774 aros_target_nm
775 aros_shared_default
776 aros_shared_ld
777 aros_object_format
778 aros_compiler_libs
779 aros_config_cflags
780 aros_config_aflags
781 aros_config_ldflags
782 aros_shared_cflags
783 aros_shared_aflags
784 aros_shared_ldflags
785 aros_kernel_cflags
786 aros_kernel_ldflags
787 aros_debug_cflags
788 aros_debug_aflags
789 aros_debug_ldflags
790 aros_target_genmap
791 aros_target_strip_flags
792 x11_hidd_target
793 sdl_hidd_target
794 aros_default_wbwidth
795 aros_default_wbheight
796 aros_default_wbdepth
797 DO_XSHM_SUPPORT
798 DO_VIDMODE_SUPPORT
799 aros_host_x11_includes
800 aros_host_x11_libdirs
801 aros_host_sdl_cflags
802 aros_host_sdl_libs
803 aros_bochs_hack
804 aros_serial_debug
805 aros_palm_debug_hack
806 aros_nesting_supervisor
807 ENABLE_DBUS
808 DBUS_CFLAGS
809 DBUS_LIBFLAGS
810 KERNEL_DBUS_KOBJ
811 KERNEL_DBUS_INCLUDES
812 aros_debug
813 aros_mungwall_debug
814 aros_stack_debug
815 aros_modules_debug
816 ignore_undefined_symbols
817 gcc_target_cpu
818 LTLIBOBJS'
819 ac_subst_files=''
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
824 CFLAGS
825 LDFLAGS
826 LIBS
827 CPPFLAGS
829 XMKMF'
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
878 ac_prev=
879 ac_dashdash=
880 for ac_option
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
885 ac_prev=
886 continue
889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
898 ac_dashdash=yes ;;
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
917 --config-cache | -C)
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
939 eval enable_$ac_feature=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
951 -enable-* | --enable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1148 -with-* | --with-*)
1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1164 eval with_$ac_package=no ;;
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206 esac
1207 done
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1228 done
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 echo X"$0" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1282 /^X\(\/\/\)$/{
1283 s//\1/
1286 /^X\(\/\).*/{
1287 s//\1/
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1295 else
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures this package to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1387 cat <<\_ACEOF
1389 X features:
1390 --x-includes=DIR X include files are in DIR
1391 --x-libraries=DIR X library files are in DIR
1393 System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 _ACEOF
1399 if test -n "$ac_init_help"; then
1401 cat <<\_ACEOF
1403 Optional Features:
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-build-type=TYPE
1407 Select the build type. Available types are:
1408 personal, nightly, snapshot, milestone, release. Do
1409 NOT use this option unless you know what you are
1410 doing! (default=personal)
1411 --enable-debug=list Enable different types of debug. Commas or
1412 whitespaces can be used to separate the items in the
1413 list. Available types of debug are: all, none,
1414 messages, stack, mungwall, modules, symbols. If no
1415 list is provided then "all" is assumed.
1416 (default=none)
1417 --enable-crosstools Build cross-compiler toolchains if necessary
1418 (default=no).
1419 --enable-distcc Use distcc as a front end to the compiler
1420 (default=no).
1421 --enable-ccache Use ccache as a front end to the compiler
1422 (default=no).
1423 --enable-target-variant=NAME
1424 Enable a specific target variant(default=none)
1425 --enable-includes=dir Alternative system include directory
1426 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1427 (default=no)
1428 --enable-palm-debug-hack
1429 Enable palm debug output hack in palm native
1430 (default=no)
1431 --enable-nesting-supervisor
1432 Enable nesting supervisor support in unix
1433 (default=no)
1434 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1435 --enable-x11-shm use X11 shared memory (default=auto)
1436 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1437 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1438 --disable-sdltest Do not try to compile and run a test SDL program
1439 --enable-dbus Enable DBUS support via dbus.library (default=no)
1441 Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-optimization=FLAGS
1445 Use optimization flags FLAGS (default=-O2).
1446 --with-portssources=DIR Where to download sourcecode for external ports
1447 --with-bootloader=NAME Use a specific bootloader
1448 --with-theme=NAME Use a specific GUI Theme
1449 --with-resolution=XRESxYRESxDEPTH
1450 Default resolution of the initial WorkbenchScreen
1451 --with-serial-debug Enable serial debug output in native (default=no)
1452 --with-x use the X Window System
1453 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1454 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CPP C preprocessor
1465 XMKMF Path to xmkmf, Makefile generator for X Window System
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1470 _ACEOF
1471 ac_status=$?
1474 if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477 test -d "$ac_dir" || continue
1478 ac_builddir=.
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1496 case $srcdir in
1497 .) # We are building in place.
1498 ac_srcdir=.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure" --help=recursive
1520 else
1521 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522 fi || ac_status=$?
1523 cd "$ac_pwd" || { ac_status=$?; break; }
1524 done
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1529 cat <<\_ACEOF
1530 configure
1531 generated by GNU Autoconf 2.61
1533 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1534 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1537 _ACEOF
1538 exit
1540 cat >config.log <<_ACEOF
1541 This file contains any messages produced by compilers while
1542 running configure, to aid debugging if configure makes a mistake.
1544 It was created by $as_me, which was
1545 generated by GNU Autoconf 2.61. Invocation command line was
1547 $ $0 $@
1549 _ACEOF
1550 exec 5>>config.log
1552 cat <<_ASUNAME
1553 ## --------- ##
1554 ## Platform. ##
1555 ## --------- ##
1557 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1558 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1559 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1560 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1561 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1563 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1564 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1566 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1567 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1568 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1569 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1570 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1571 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1572 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1574 _ASUNAME
1576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 for as_dir in $PATH
1579 IFS=$as_save_IFS
1580 test -z "$as_dir" && as_dir=.
1581 echo "PATH: $as_dir"
1582 done
1583 IFS=$as_save_IFS
1585 } >&5
1587 cat >&5 <<_ACEOF
1590 ## ----------- ##
1591 ## Core tests. ##
1592 ## ----------- ##
1594 _ACEOF
1597 # Keep a trace of the command line.
1598 # Strip out --no-create and --no-recursion so they do not pile up.
1599 # Strip out --silent because we don't want to record it for future runs.
1600 # Also quote any args containing shell meta-characters.
1601 # Make two passes to allow for proper duplicate-argument suppression.
1602 ac_configure_args=
1603 ac_configure_args0=
1604 ac_configure_args1=
1605 ac_must_keep_next=false
1606 for ac_pass in 1 2
1608 for ac_arg
1610 case $ac_arg in
1611 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1613 | -silent | --silent | --silen | --sile | --sil)
1614 continue ;;
1615 *\'*)
1616 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1617 esac
1618 case $ac_pass in
1619 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1621 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1622 if test $ac_must_keep_next = true; then
1623 ac_must_keep_next=false # Got value, back to normal.
1624 else
1625 case $ac_arg in
1626 *=* | --config-cache | -C | -disable-* | --disable-* \
1627 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1628 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1629 | -with-* | --with-* | -without-* | --without-* | --x)
1630 case "$ac_configure_args0 " in
1631 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1632 esac
1634 -* ) ac_must_keep_next=true ;;
1635 esac
1637 ac_configure_args="$ac_configure_args '$ac_arg'"
1639 esac
1640 done
1641 done
1642 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1643 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1645 # When interrupted or exit'd, cleanup temporary files, and complete
1646 # config.log. We remove comments because anyway the quotes in there
1647 # would cause problems or look ugly.
1648 # WARNING: Use '\'' to represent an apostrophe within the trap.
1649 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1650 trap 'exit_status=$?
1651 # Save into config.log some information that might help in debugging.
1653 echo
1655 cat <<\_ASBOX
1656 ## ---------------- ##
1657 ## Cache variables. ##
1658 ## ---------------- ##
1659 _ASBOX
1660 echo
1661 # The following way of writing the cache mishandles newlines in values,
1663 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1664 eval ac_val=\$$ac_var
1665 case $ac_val in #(
1666 *${as_nl}*)
1667 case $ac_var in #(
1668 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1669 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1670 esac
1671 case $ac_var in #(
1672 _ | IFS | as_nl) ;; #(
1673 *) $as_unset $ac_var ;;
1674 esac ;;
1675 esac
1676 done
1677 (set) 2>&1 |
1678 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1679 *${as_nl}ac_space=\ *)
1680 sed -n \
1681 "s/'\''/'\''\\\\'\'''\''/g;
1682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1683 ;; #(
1685 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1687 esac |
1688 sort
1690 echo
1692 cat <<\_ASBOX
1693 ## ----------------- ##
1694 ## Output variables. ##
1695 ## ----------------- ##
1696 _ASBOX
1697 echo
1698 for ac_var in $ac_subst_vars
1700 eval ac_val=\$$ac_var
1701 case $ac_val in
1702 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1703 esac
1704 echo "$ac_var='\''$ac_val'\''"
1705 done | sort
1706 echo
1708 if test -n "$ac_subst_files"; then
1709 cat <<\_ASBOX
1710 ## ------------------- ##
1711 ## File substitutions. ##
1712 ## ------------------- ##
1713 _ASBOX
1714 echo
1715 for ac_var in $ac_subst_files
1717 eval ac_val=\$$ac_var
1718 case $ac_val in
1719 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1720 esac
1721 echo "$ac_var='\''$ac_val'\''"
1722 done | sort
1723 echo
1726 if test -s confdefs.h; then
1727 cat <<\_ASBOX
1728 ## ----------- ##
1729 ## confdefs.h. ##
1730 ## ----------- ##
1731 _ASBOX
1732 echo
1733 cat confdefs.h
1734 echo
1736 test "$ac_signal" != 0 &&
1737 echo "$as_me: caught signal $ac_signal"
1738 echo "$as_me: exit $exit_status"
1739 } >&5
1740 rm -f core *.core core.conftest.* &&
1741 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1742 exit $exit_status
1744 for ac_signal in 1 2 13 15; do
1745 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1746 done
1747 ac_signal=0
1749 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1750 rm -f -r conftest* confdefs.h
1752 # Predefined preprocessor variables.
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_NAME "$PACKAGE_NAME"
1756 _ACEOF
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1761 _ACEOF
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1766 _ACEOF
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_STRING "$PACKAGE_STRING"
1771 _ACEOF
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1776 _ACEOF
1779 # Let the site file select an alternate cache file if it wants to.
1780 # Prefer explicitly selected file to automatically selected ones.
1781 if test -n "$CONFIG_SITE"; then
1782 set x "$CONFIG_SITE"
1783 elif test "x$prefix" != xNONE; then
1784 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1785 else
1786 set x "$ac_default_prefix/share/config.site" \
1787 "$ac_default_prefix/etc/config.site"
1789 shift
1790 for ac_site_file
1792 if test -r "$ac_site_file"; then
1793 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1794 echo "$as_me: loading site script $ac_site_file" >&6;}
1795 sed 's/^/| /' "$ac_site_file" >&5
1796 . "$ac_site_file"
1798 done
1800 if test -r "$cache_file"; then
1801 # Some versions of bash will fail to source /dev/null (special
1802 # files actually), so we avoid doing that.
1803 if test -f "$cache_file"; then
1804 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1805 echo "$as_me: loading cache $cache_file" >&6;}
1806 case $cache_file in
1807 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1808 *) . "./$cache_file";;
1809 esac
1811 else
1812 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1813 echo "$as_me: creating cache $cache_file" >&6;}
1814 >$cache_file
1817 # Check that the precious variables saved in the cache have kept the same
1818 # value.
1819 ac_cache_corrupted=false
1820 for ac_var in $ac_precious_vars; do
1821 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1822 eval ac_new_set=\$ac_env_${ac_var}_set
1823 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1824 eval ac_new_val=\$ac_env_${ac_var}_value
1825 case $ac_old_set,$ac_new_set in
1826 set,)
1827 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1828 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1829 ac_cache_corrupted=: ;;
1830 ,set)
1831 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1832 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1833 ac_cache_corrupted=: ;;
1834 ,);;
1836 if test "x$ac_old_val" != "x$ac_new_val"; then
1837 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1838 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1839 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1840 echo "$as_me: former value: $ac_old_val" >&2;}
1841 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1842 echo "$as_me: current value: $ac_new_val" >&2;}
1843 ac_cache_corrupted=:
1844 fi;;
1845 esac
1846 # Pass precious variables to config.status.
1847 if test "$ac_new_set" = set; then
1848 case $ac_new_val in
1849 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1850 *) ac_arg=$ac_var=$ac_new_val ;;
1851 esac
1852 case " $ac_configure_args " in
1853 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1854 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1855 esac
1857 done
1858 if $ac_cache_corrupted; then
1859 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1860 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1861 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1862 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1863 { (exit 1); exit 1; }; }
1882 ac_ext=c
1883 ac_cpp='$CPP $CPPFLAGS'
1884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1890 ac_aux_dir=
1891 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1892 if test -f "$ac_dir/install-sh"; then
1893 ac_aux_dir=$ac_dir
1894 ac_install_sh="$ac_aux_dir/install-sh -c"
1895 break
1896 elif test -f "$ac_dir/install.sh"; then
1897 ac_aux_dir=$ac_dir
1898 ac_install_sh="$ac_aux_dir/install.sh -c"
1899 break
1900 elif test -f "$ac_dir/shtool"; then
1901 ac_aux_dir=$ac_dir
1902 ac_install_sh="$ac_aux_dir/shtool install -c"
1903 break
1905 done
1906 if test -z "$ac_aux_dir"; then
1907 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1908 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1909 { (exit 1); exit 1; }; }
1912 # These three variables are undocumented and unsupported,
1913 # and are intended to be withdrawn in a future Autoconf release.
1914 # They can cause serious problems if a builder's source tree is in a directory
1915 # whose full name contains unusual characters.
1916 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1917 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1918 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1922 # Check what host we are running on.
1923 # If a target is not suggested, we use this one.
1924 # Note that what we call a target, Autoconf calls a host.
1925 # Make sure we can run config.sub.
1926 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1927 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1928 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1929 { (exit 1); exit 1; }; }
1931 { echo "$as_me:$LINENO: checking build system type" >&5
1932 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1933 if test "${ac_cv_build+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936 ac_build_alias=$build_alias
1937 test "x$ac_build_alias" = x &&
1938 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1939 test "x$ac_build_alias" = x &&
1940 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1941 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1942 { (exit 1); exit 1; }; }
1943 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1944 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1945 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1946 { (exit 1); exit 1; }; }
1949 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1950 echo "${ECHO_T}$ac_cv_build" >&6; }
1951 case $ac_cv_build in
1952 *-*-*) ;;
1953 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1954 echo "$as_me: error: invalid value of canonical build" >&2;}
1955 { (exit 1); exit 1; }; };;
1956 esac
1957 build=$ac_cv_build
1958 ac_save_IFS=$IFS; IFS='-'
1959 set x $ac_cv_build
1960 shift
1961 build_cpu=$1
1962 build_vendor=$2
1963 shift; shift
1964 # Remember, the first character of IFS is used to create $*,
1965 # except with old shells:
1966 build_os=$*
1967 IFS=$ac_save_IFS
1968 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1971 { echo "$as_me:$LINENO: checking host system type" >&5
1972 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1973 if test "${ac_cv_host+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976 if test "x$host_alias" = x; then
1977 ac_cv_host=$ac_cv_build
1978 else
1979 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1980 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1981 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1982 { (exit 1); exit 1; }; }
1986 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1987 echo "${ECHO_T}$ac_cv_host" >&6; }
1988 case $ac_cv_host in
1989 *-*-*) ;;
1990 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1991 echo "$as_me: error: invalid value of canonical host" >&2;}
1992 { (exit 1); exit 1; }; };;
1993 esac
1994 host=$ac_cv_host
1995 ac_save_IFS=$IFS; IFS='-'
1996 set x $ac_cv_host
1997 shift
1998 host_cpu=$1
1999 host_vendor=$2
2000 shift; shift
2001 # Remember, the first character of IFS is used to create $*,
2002 # except with old shells:
2003 host_os=$*
2004 IFS=$ac_save_IFS
2005 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2009 # The AROS target is slightly different to the normal GNU style
2010 # format. We don't have the middle part, and we reverse the order
2011 # of the $(CPU) and $(OS) bits.
2013 # Don't strip the version of the target yet, it might be
2014 # useful on some systems.
2016 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2017 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2019 if test "$target" = "NONE" ; then
2020 target=$host_os-$host_cpu
2021 cross_compile=no
2022 else
2023 if test "$target" = "" ; then
2024 target=$host_os-$host_cpu
2025 cross_compile=no
2026 else
2027 cross_compile=yes
2030 { echo "$as_me:$LINENO: result: $target" >&5
2031 echo "${ECHO_T}$target" >&6; }
2033 #don't know where else to put this...
2034 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2035 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2036 AROS_BUILDDIR=$PWD
2037 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2038 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2040 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2041 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2042 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2043 SRCDIR=${srcpwd}
2044 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2045 echo "${ECHO_T}$SRCDIR" >&6; }
2047 # Parse the target field into something useful.
2049 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2050 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2053 aros_default_wbwidth=800
2054 aros_default_wbheight=600
2055 aros_default_wbdepth=4
2058 # The first step is to find the host binaries.
2059 # Check for a compiler.
2060 ac_ext=c
2061 ac_cpp='$CPP $CPPFLAGS'
2062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2065 if test -n "$ac_tool_prefix"; then
2066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2067 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2083 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2087 done
2088 done
2089 IFS=$as_save_IFS
2093 CC=$ac_cv_prog_CC
2094 if test -n "$CC"; then
2095 { echo "$as_me:$LINENO: result: $CC" >&5
2096 echo "${ECHO_T}$CC" >&6; }
2097 else
2098 { echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6; }
2104 if test -z "$ac_cv_prog_CC"; then
2105 ac_ct_CC=$CC
2106 # Extract the first word of "gcc", so it can be a program name with args.
2107 set dummy gcc; ac_word=$2
2108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2110 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 if test -n "$ac_ct_CC"; then
2114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2123 ac_cv_prog_ac_ct_CC="gcc"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2127 done
2128 done
2129 IFS=$as_save_IFS
2133 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2134 if test -n "$ac_ct_CC"; then
2135 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2136 echo "${ECHO_T}$ac_ct_CC" >&6; }
2137 else
2138 { echo "$as_me:$LINENO: result: no" >&5
2139 echo "${ECHO_T}no" >&6; }
2142 if test "x$ac_ct_CC" = x; then
2143 CC=""
2144 else
2145 case $cross_compiling:$ac_tool_warned in
2146 yes:)
2147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2148 whose name does not start with the host triplet. If you think this
2149 configuration is useful to you, please write to autoconf@gnu.org." >&5
2150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2151 whose name does not start with the host triplet. If you think this
2152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2153 ac_tool_warned=yes ;;
2154 esac
2155 CC=$ac_ct_CC
2157 else
2158 CC="$ac_cv_prog_CC"
2161 if test -z "$CC"; then
2162 if test -n "$ac_tool_prefix"; then
2163 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2164 set dummy ${ac_tool_prefix}cc; ac_word=$2
2165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2167 if test "${ac_cv_prog_CC+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 if test -n "$CC"; then
2171 ac_cv_prog_CC="$CC" # Let the user override the test.
2172 else
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 for as_dir in $PATH
2176 IFS=$as_save_IFS
2177 test -z "$as_dir" && as_dir=.
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2180 ac_cv_prog_CC="${ac_tool_prefix}cc"
2181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 break 2
2184 done
2185 done
2186 IFS=$as_save_IFS
2190 CC=$ac_cv_prog_CC
2191 if test -n "$CC"; then
2192 { echo "$as_me:$LINENO: result: $CC" >&5
2193 echo "${ECHO_T}$CC" >&6; }
2194 else
2195 { echo "$as_me:$LINENO: result: no" >&5
2196 echo "${ECHO_T}no" >&6; }
2202 if test -z "$CC"; then
2203 # Extract the first word of "cc", so it can be a program name with args.
2204 set dummy cc; ac_word=$2
2205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2207 if test "${ac_cv_prog_CC+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210 if test -n "$CC"; then
2211 ac_cv_prog_CC="$CC" # Let the user override the test.
2212 else
2213 ac_prog_rejected=no
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2222 ac_prog_rejected=yes
2223 continue
2225 ac_cv_prog_CC="cc"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2229 done
2230 done
2231 IFS=$as_save_IFS
2233 if test $ac_prog_rejected = yes; then
2234 # We found a bogon in the path, so make sure we never use it.
2235 set dummy $ac_cv_prog_CC
2236 shift
2237 if test $# != 0; then
2238 # We chose a different compiler from the bogus one.
2239 # However, it has the same basename, so the bogon will be chosen
2240 # first if we set CC to just the basename; use the full file name.
2241 shift
2242 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2247 CC=$ac_cv_prog_CC
2248 if test -n "$CC"; then
2249 { echo "$as_me:$LINENO: result: $CC" >&5
2250 echo "${ECHO_T}$CC" >&6; }
2251 else
2252 { echo "$as_me:$LINENO: result: no" >&5
2253 echo "${ECHO_T}no" >&6; }
2258 if test -z "$CC"; then
2259 if test -n "$ac_tool_prefix"; then
2260 for ac_prog in cl.exe
2262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2266 if test "${ac_cv_prog_CC+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269 if test -n "$CC"; then
2270 ac_cv_prog_CC="$CC" # Let the user override the test.
2271 else
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2275 IFS=$as_save_IFS
2276 test -z "$as_dir" && as_dir=.
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2279 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2283 done
2284 done
2285 IFS=$as_save_IFS
2289 CC=$ac_cv_prog_CC
2290 if test -n "$CC"; then
2291 { echo "$as_me:$LINENO: result: $CC" >&5
2292 echo "${ECHO_T}$CC" >&6; }
2293 else
2294 { echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6; }
2299 test -n "$CC" && break
2300 done
2302 if test -z "$CC"; then
2303 ac_ct_CC=$CC
2304 for ac_prog in cl.exe
2306 # Extract the first word of "$ac_prog", so it can be a program name with args.
2307 set dummy $ac_prog; ac_word=$2
2308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2310 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313 if test -n "$ac_ct_CC"; then
2314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2315 else
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2319 IFS=$as_save_IFS
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323 ac_cv_prog_ac_ct_CC="$ac_prog"
2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 break 2
2327 done
2328 done
2329 IFS=$as_save_IFS
2333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2334 if test -n "$ac_ct_CC"; then
2335 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2336 echo "${ECHO_T}$ac_ct_CC" >&6; }
2337 else
2338 { echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6; }
2343 test -n "$ac_ct_CC" && break
2344 done
2346 if test "x$ac_ct_CC" = x; then
2347 CC=""
2348 else
2349 case $cross_compiling:$ac_tool_warned in
2350 yes:)
2351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2352 whose name does not start with the host triplet. If you think this
2353 configuration is useful to you, please write to autoconf@gnu.org." >&5
2354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2355 whose name does not start with the host triplet. If you think this
2356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2357 ac_tool_warned=yes ;;
2358 esac
2359 CC=$ac_ct_CC
2366 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2367 See \`config.log' for more details." >&5
2368 echo "$as_me: error: no acceptable C compiler found in \$PATH
2369 See \`config.log' for more details." >&2;}
2370 { (exit 1); exit 1; }; }
2372 # Provide some information about the compiler.
2373 echo "$as_me:$LINENO: checking for C compiler version" >&5
2374 ac_compiler=`set X $ac_compile; echo $2`
2375 { (ac_try="$ac_compiler --version >&5"
2376 case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2379 esac
2380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381 (eval "$ac_compiler --version >&5") 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }
2385 { (ac_try="$ac_compiler -v >&5"
2386 case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389 esac
2390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391 (eval "$ac_compiler -v >&5") 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }
2395 { (ac_try="$ac_compiler -V >&5"
2396 case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2399 esac
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_compiler -V >&5") 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }
2406 cat >conftest.$ac_ext <<_ACEOF
2407 /* confdefs.h. */
2408 _ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h. */
2414 main ()
2418 return 0;
2420 _ACEOF
2421 ac_clean_files_save=$ac_clean_files
2422 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2423 # Try to create an executable without -o first, disregard a.out.
2424 # It will help us diagnose broken compilers, and finding out an intuition
2425 # of exeext.
2426 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2427 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2428 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2430 # List of possible output files, starting from the most likely.
2431 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2432 # only as a last resort. b.out is created by i960 compilers.
2433 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2435 # The IRIX 6 linker writes into existing files which may not be
2436 # executable, retaining their permissions. Remove them first so a
2437 # subsequent execution test works.
2438 ac_rmfiles=
2439 for ac_file in $ac_files
2441 case $ac_file in
2442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2443 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2444 esac
2445 done
2446 rm -f $ac_rmfiles
2448 if { (ac_try="$ac_link_default"
2449 case "(($ac_try" in
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2452 esac
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454 (eval "$ac_link_default") 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; then
2458 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2459 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2460 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2461 # so that the user can short-circuit this test for compilers unknown to
2462 # Autoconf.
2463 for ac_file in $ac_files ''
2465 test -f "$ac_file" || continue
2466 case $ac_file in
2467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2469 [ab].out )
2470 # We found the default executable, but exeext='' is most
2471 # certainly right.
2472 break;;
2473 *.* )
2474 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2475 then :; else
2476 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2478 # We set ac_cv_exeext here because the later test for it is not
2479 # safe: cross compilers may not add the suffix if given an `-o'
2480 # argument, so we may need to know it at that point already.
2481 # Even if this section looks crufty: it has the advantage of
2482 # actually working.
2483 break;;
2485 break;;
2486 esac
2487 done
2488 test "$ac_cv_exeext" = no && ac_cv_exeext=
2490 else
2491 ac_file=''
2494 { echo "$as_me:$LINENO: result: $ac_file" >&5
2495 echo "${ECHO_T}$ac_file" >&6; }
2496 if test -z "$ac_file"; then
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2500 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: C compiler cannot create executables
2503 See \`config.log' for more details." >&2;}
2504 { (exit 77); exit 77; }; }
2507 ac_exeext=$ac_cv_exeext
2509 # Check that the compiler produces executables we can run. If not, either
2510 # the compiler is broken, or we cross compile.
2511 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2512 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2513 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2514 # If not cross compiling, check that we can run a simple program.
2515 if test "$cross_compiling" != yes; then
2516 if { ac_try='./$ac_file'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520 esac
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2526 cross_compiling=no
2527 else
2528 if test "$cross_compiling" = maybe; then
2529 cross_compiling=yes
2530 else
2531 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2532 If you meant to cross compile, use \`--host'.
2533 See \`config.log' for more details." >&5
2534 echo "$as_me: error: cannot run C compiled programs.
2535 If you meant to cross compile, use \`--host'.
2536 See \`config.log' for more details." >&2;}
2537 { (exit 1); exit 1; }; }
2541 { echo "$as_me:$LINENO: result: yes" >&5
2542 echo "${ECHO_T}yes" >&6; }
2544 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2545 ac_clean_files=$ac_clean_files_save
2546 # Check that the compiler produces executables we can run. If not, either
2547 # the compiler is broken, or we cross compile.
2548 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2549 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2550 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2551 echo "${ECHO_T}$cross_compiling" >&6; }
2553 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2554 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2555 if { (ac_try="$ac_link"
2556 case "(($ac_try" in
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2559 esac
2560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2561 (eval "$ac_link") 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; then
2565 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2566 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2567 # work properly (i.e., refer to `conftest.exe'), while it won't with
2568 # `rm'.
2569 for ac_file in conftest.exe conftest conftest.*; do
2570 test -f "$ac_file" || continue
2571 case $ac_file in
2572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2573 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2574 break;;
2575 * ) break;;
2576 esac
2577 done
2578 else
2579 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2580 See \`config.log' for more details." >&5
2581 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2582 See \`config.log' for more details." >&2;}
2583 { (exit 1); exit 1; }; }
2586 rm -f conftest$ac_cv_exeext
2587 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2588 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2590 rm -f conftest.$ac_ext
2591 EXEEXT=$ac_cv_exeext
2592 ac_exeext=$EXEEXT
2593 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2594 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2595 if test "${ac_cv_objext+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598 cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h. */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2606 main ()
2610 return 0;
2612 _ACEOF
2613 rm -f conftest.o conftest.obj
2614 if { (ac_try="$ac_compile"
2615 case "(($ac_try" in
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2618 esac
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620 (eval "$ac_compile") 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; then
2624 for ac_file in conftest.o conftest.obj conftest.*; do
2625 test -f "$ac_file" || continue;
2626 case $ac_file in
2627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2628 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2629 break;;
2630 esac
2631 done
2632 else
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2636 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2637 See \`config.log' for more details." >&5
2638 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2639 See \`config.log' for more details." >&2;}
2640 { (exit 1); exit 1; }; }
2643 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2645 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2646 echo "${ECHO_T}$ac_cv_objext" >&6; }
2647 OBJEXT=$ac_cv_objext
2648 ac_objext=$OBJEXT
2649 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2650 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2651 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654 cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h. */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2662 main ()
2664 #ifndef __GNUC__
2665 choke me
2666 #endif
2669 return 0;
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (ac_try="$ac_compile"
2674 case "(($ac_try" in
2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676 *) ac_try_echo=$ac_try;;
2677 esac
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679 (eval "$ac_compile") 2>conftest.er1
2680 ac_status=$?
2681 grep -v '^ *+' conftest.er1 >conftest.err
2682 rm -f conftest.er1
2683 cat conftest.err >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } && {
2686 test -z "$ac_c_werror_flag" ||
2687 test ! -s conftest.err
2688 } && test -s conftest.$ac_objext; then
2689 ac_compiler_gnu=yes
2690 else
2691 echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2694 ac_compiler_gnu=no
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2701 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2702 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2703 GCC=`test $ac_compiler_gnu = yes && echo yes`
2704 ac_test_CFLAGS=${CFLAGS+set}
2705 ac_save_CFLAGS=$CFLAGS
2706 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2707 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2708 if test "${ac_cv_prog_cc_g+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 ac_save_c_werror_flag=$ac_c_werror_flag
2712 ac_c_werror_flag=yes
2713 ac_cv_prog_cc_g=no
2714 CFLAGS="-g"
2715 cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h. */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2723 main ()
2727 return 0;
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (ac_try="$ac_compile"
2732 case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compile") 2>conftest.er1
2738 ac_status=$?
2739 grep -v '^ *+' conftest.er1 >conftest.err
2740 rm -f conftest.er1
2741 cat conftest.err >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } && {
2744 test -z "$ac_c_werror_flag" ||
2745 test ! -s conftest.err
2746 } && test -s conftest.$ac_objext; then
2747 ac_cv_prog_cc_g=yes
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2752 CFLAGS=""
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h. */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2761 main ()
2765 return 0;
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (ac_try="$ac_compile"
2770 case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773 esac
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compile") 2>conftest.er1
2776 ac_status=$?
2777 grep -v '^ *+' conftest.er1 >conftest.err
2778 rm -f conftest.er1
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } && {
2782 test -z "$ac_c_werror_flag" ||
2783 test ! -s conftest.err
2784 } && test -s conftest.$ac_objext; then
2786 else
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 ac_c_werror_flag=$ac_save_c_werror_flag
2791 CFLAGS="-g"
2792 cat >conftest.$ac_ext <<_ACEOF
2793 /* confdefs.h. */
2794 _ACEOF
2795 cat confdefs.h >>conftest.$ac_ext
2796 cat >>conftest.$ac_ext <<_ACEOF
2797 /* end confdefs.h. */
2800 main ()
2804 return 0;
2806 _ACEOF
2807 rm -f conftest.$ac_objext
2808 if { (ac_try="$ac_compile"
2809 case "(($ac_try" in
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2812 esac
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814 (eval "$ac_compile") 2>conftest.er1
2815 ac_status=$?
2816 grep -v '^ *+' conftest.er1 >conftest.err
2817 rm -f conftest.er1
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } && {
2821 test -z "$ac_c_werror_flag" ||
2822 test ! -s conftest.err
2823 } && test -s conftest.$ac_objext; then
2824 ac_cv_prog_cc_g=yes
2825 else
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 ac_c_werror_flag=$ac_save_c_werror_flag
2841 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2842 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2843 if test "$ac_test_CFLAGS" = set; then
2844 CFLAGS=$ac_save_CFLAGS
2845 elif test $ac_cv_prog_cc_g = yes; then
2846 if test "$GCC" = yes; then
2847 CFLAGS="-g -O2"
2848 else
2849 CFLAGS="-g"
2851 else
2852 if test "$GCC" = yes; then
2853 CFLAGS="-O2"
2854 else
2855 CFLAGS=
2858 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2859 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2860 if test "${ac_cv_prog_cc_c89+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 ac_cv_prog_cc_c89=no
2864 ac_save_CC=$CC
2865 cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h. */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2871 #include <stdarg.h>
2872 #include <stdio.h>
2873 #include <sys/types.h>
2874 #include <sys/stat.h>
2875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2876 struct buf { int x; };
2877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2878 static char *e (p, i)
2879 char **p;
2880 int i;
2882 return p[i];
2884 static char *f (char * (*g) (char **, int), char **p, ...)
2886 char *s;
2887 va_list v;
2888 va_start (v,p);
2889 s = g (p, va_arg (v,int));
2890 va_end (v);
2891 return s;
2894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2895 function prototypes and stuff, but not '\xHH' hex character constants.
2896 These don't provoke an error unfortunately, instead are silently treated
2897 as 'x'. The following induces an error, until -std is added to get
2898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2899 array size at least. It's necessary to write '\x00'==0 to get something
2900 that's true only with -std. */
2901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2903 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2904 inside strings and character constants. */
2905 #define FOO(x) 'x'
2906 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2908 int test (int i, double x);
2909 struct s1 {int (*f) (int a);};
2910 struct s2 {int (*f) (double a);};
2911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2912 int argc;
2913 char **argv;
2915 main ()
2917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2919 return 0;
2921 _ACEOF
2922 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2925 CC="$ac_save_CC $ac_arg"
2926 rm -f conftest.$ac_objext
2927 if { (ac_try="$ac_compile"
2928 case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2934 ac_status=$?
2935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && {
2940 test -z "$ac_c_werror_flag" ||
2941 test ! -s conftest.err
2942 } && test -s conftest.$ac_objext; then
2943 ac_cv_prog_cc_c89=$ac_arg
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2951 rm -f core conftest.err conftest.$ac_objext
2952 test "x$ac_cv_prog_cc_c89" != "xno" && break
2953 done
2954 rm -f conftest.$ac_ext
2955 CC=$ac_save_CC
2958 # AC_CACHE_VAL
2959 case "x$ac_cv_prog_cc_c89" in
2961 { echo "$as_me:$LINENO: result: none needed" >&5
2962 echo "${ECHO_T}none needed" >&6; } ;;
2963 xno)
2964 { echo "$as_me:$LINENO: result: unsupported" >&5
2965 echo "${ECHO_T}unsupported" >&6; } ;;
2967 CC="$CC $ac_cv_prog_cc_c89"
2968 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2969 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2970 esac
2973 ac_ext=c
2974 ac_cpp='$CPP $CPPFLAGS'
2975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979 case $ac_cv_prog_cc_stdc in
2980 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2981 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2982 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cc_c99+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 ac_cv_prog_cc_c99=no
2987 ac_save_CC=$CC
2988 cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h. */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2994 #include <stdarg.h>
2995 #include <stdbool.h>
2996 #include <stdlib.h>
2997 #include <wchar.h>
2998 #include <stdio.h>
3000 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3001 #define debug(...) fprintf (stderr, __VA_ARGS__)
3002 #define showlist(...) puts (#__VA_ARGS__)
3003 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3004 static void
3005 test_varargs_macros (void)
3007 int x = 1234;
3008 int y = 5678;
3009 debug ("Flag");
3010 debug ("X = %d\n", x);
3011 showlist (The first, second, and third items.);
3012 report (x>y, "x is %d but y is %d", x, y);
3015 // Check long long types.
3016 #define BIG64 18446744073709551615ull
3017 #define BIG32 4294967295ul
3018 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3019 #if !BIG_OK
3020 your preprocessor is broken;
3021 #endif
3022 #if BIG_OK
3023 #else
3024 your preprocessor is broken;
3025 #endif
3026 static long long int bignum = -9223372036854775807LL;
3027 static unsigned long long int ubignum = BIG64;
3029 struct incomplete_array
3031 int datasize;
3032 double data[];
3035 struct named_init {
3036 int number;
3037 const wchar_t *name;
3038 double average;
3041 typedef const char *ccp;
3043 static inline int
3044 test_restrict (ccp restrict text)
3046 // See if C++-style comments work.
3047 // Iterate through items via the restricted pointer.
3048 // Also check for declarations in for loops.
3049 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3050 continue;
3051 return 0;
3054 // Check varargs and va_copy.
3055 static void
3056 test_varargs (const char *format, ...)
3058 va_list args;
3059 va_start (args, format);
3060 va_list args_copy;
3061 va_copy (args_copy, args);
3063 const char *str;
3064 int number;
3065 float fnumber;
3067 while (*format)
3069 switch (*format++)
3071 case 's': // string
3072 str = va_arg (args_copy, const char *);
3073 break;
3074 case 'd': // int
3075 number = va_arg (args_copy, int);
3076 break;
3077 case 'f': // float
3078 fnumber = va_arg (args_copy, double);
3079 break;
3080 default:
3081 break;
3084 va_end (args_copy);
3085 va_end (args);
3089 main ()
3092 // Check bool.
3093 _Bool success = false;
3095 // Check restrict.
3096 if (test_restrict ("String literal") == 0)
3097 success = true;
3098 char *restrict newvar = "Another string";
3100 // Check varargs.
3101 test_varargs ("s, d' f .", "string", 65, 34.234);
3102 test_varargs_macros ();
3104 // Check flexible array members.
3105 struct incomplete_array *ia =
3106 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3107 ia->datasize = 10;
3108 for (int i = 0; i < ia->datasize; ++i)
3109 ia->data[i] = i * 1.234;
3111 // Check named initializers.
3112 struct named_init ni = {
3113 .number = 34,
3114 .name = L"Test wide string",
3115 .average = 543.34343,
3118 ni.number = 58;
3120 int dynamic_array[ni.number];
3121 dynamic_array[ni.number - 1] = 543;
3123 // work around unused variable warnings
3124 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3125 || dynamic_array[ni.number - 1] != 543);
3128 return 0;
3130 _ACEOF
3131 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3133 CC="$ac_save_CC $ac_arg"
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3136 case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_compile") 2>conftest.er1
3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } && {
3148 test -z "$ac_c_werror_flag" ||
3149 test ! -s conftest.err
3150 } && test -s conftest.$ac_objext; then
3151 ac_cv_prog_cc_c99=$ac_arg
3152 else
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3159 rm -f core conftest.err conftest.$ac_objext
3160 test "x$ac_cv_prog_cc_c99" != "xno" && break
3161 done
3162 rm -f conftest.$ac_ext
3163 CC=$ac_save_CC
3166 # AC_CACHE_VAL
3167 case "x$ac_cv_prog_cc_c99" in
3169 { echo "$as_me:$LINENO: result: none needed" >&5
3170 echo "${ECHO_T}none needed" >&6; } ;;
3171 xno)
3172 { echo "$as_me:$LINENO: result: unsupported" >&5
3173 echo "${ECHO_T}unsupported" >&6; } ;;
3175 CC="$CC $ac_cv_prog_cc_c99"
3176 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3177 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3178 esac
3179 if test "x$ac_cv_prog_cc_c99" != xno; then
3180 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3181 else
3182 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3183 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3184 if test "${ac_cv_prog_cc_c89+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187 ac_cv_prog_cc_c89=no
3188 ac_save_CC=$CC
3189 cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h. */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3195 #include <stdarg.h>
3196 #include <stdio.h>
3197 #include <sys/types.h>
3198 #include <sys/stat.h>
3199 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3200 struct buf { int x; };
3201 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3202 static char *e (p, i)
3203 char **p;
3204 int i;
3206 return p[i];
3208 static char *f (char * (*g) (char **, int), char **p, ...)
3210 char *s;
3211 va_list v;
3212 va_start (v,p);
3213 s = g (p, va_arg (v,int));
3214 va_end (v);
3215 return s;
3218 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3219 function prototypes and stuff, but not '\xHH' hex character constants.
3220 These don't provoke an error unfortunately, instead are silently treated
3221 as 'x'. The following induces an error, until -std is added to get
3222 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3223 array size at least. It's necessary to write '\x00'==0 to get something
3224 that's true only with -std. */
3225 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3227 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3228 inside strings and character constants. */
3229 #define FOO(x) 'x'
3230 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3232 int test (int i, double x);
3233 struct s1 {int (*f) (int a);};
3234 struct s2 {int (*f) (double a);};
3235 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3236 int argc;
3237 char **argv;
3239 main ()
3241 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3243 return 0;
3245 _ACEOF
3246 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3247 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3249 CC="$ac_save_CC $ac_arg"
3250 rm -f conftest.$ac_objext
3251 if { (ac_try="$ac_compile"
3252 case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257 (eval "$ac_compile") 2>conftest.er1
3258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } && {
3264 test -z "$ac_c_werror_flag" ||
3265 test ! -s conftest.err
3266 } && test -s conftest.$ac_objext; then
3267 ac_cv_prog_cc_c89=$ac_arg
3268 else
3269 echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3275 rm -f core conftest.err conftest.$ac_objext
3276 test "x$ac_cv_prog_cc_c89" != "xno" && break
3277 done
3278 rm -f conftest.$ac_ext
3279 CC=$ac_save_CC
3282 # AC_CACHE_VAL
3283 case "x$ac_cv_prog_cc_c89" in
3285 { echo "$as_me:$LINENO: result: none needed" >&5
3286 echo "${ECHO_T}none needed" >&6; } ;;
3287 xno)
3288 { echo "$as_me:$LINENO: result: unsupported" >&5
3289 echo "${ECHO_T}unsupported" >&6; } ;;
3291 CC="$CC $ac_cv_prog_cc_c89"
3292 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3293 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3294 esac
3295 if test "x$ac_cv_prog_cc_c89" != xno; then
3296 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3297 else
3298 ac_cv_prog_cc_stdc=no
3305 esac
3306 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3307 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3308 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 case $ac_cv_prog_cc_stdc in
3313 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3314 echo "${ECHO_T}unsupported" >&6; } ;;
3315 '') { echo "$as_me:$LINENO: result: none needed" >&5
3316 echo "${ECHO_T}none needed" >&6; } ;;
3317 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3318 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3319 esac
3322 ac_ext=c
3323 ac_cpp='$CPP $CPPFLAGS'
3324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3328 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3329 # On Suns, sometimes $CPP names a directory.
3330 if test -n "$CPP" && test -d "$CPP"; then
3331 CPP=
3333 if test -z "$CPP"; then
3334 if test "${ac_cv_prog_CPP+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337 # Double quotes because CPP needs to be expanded
3338 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3340 ac_preproc_ok=false
3341 for ac_c_preproc_warn_flag in '' yes
3343 # Use a header file that comes with gcc, so configuring glibc
3344 # with a fresh cross-compiler works.
3345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3346 # <limits.h> exists even on freestanding compilers.
3347 # On the NeXT, cc -E runs the code through the compiler's parser,
3348 # not just through cpp. "Syntax error" is here to catch this case.
3349 cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h. */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3355 #ifdef __STDC__
3356 # include <limits.h>
3357 #else
3358 # include <assert.h>
3359 #endif
3360 Syntax error
3361 _ACEOF
3362 if { (ac_try="$ac_cpp conftest.$ac_ext"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } >/dev/null && {
3375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3376 test ! -s conftest.err
3377 }; then
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 # Broken: fails on valid input.
3384 continue
3387 rm -f conftest.err conftest.$ac_ext
3389 # OK, works on sane cases. Now check whether nonexistent headers
3390 # can be detected and how.
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h. */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397 #include <ac_nonexistent.h>
3398 _ACEOF
3399 if { (ac_try="$ac_cpp conftest.$ac_ext"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev/null && {
3412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3413 test ! -s conftest.err
3414 }; then
3415 # Broken: success on invalid input.
3416 continue
3417 else
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 # Passes both tests.
3422 ac_preproc_ok=:
3423 break
3426 rm -f conftest.err conftest.$ac_ext
3428 done
3429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430 rm -f conftest.err conftest.$ac_ext
3431 if $ac_preproc_ok; then
3432 break
3435 done
3436 ac_cv_prog_CPP=$CPP
3439 CPP=$ac_cv_prog_CPP
3440 else
3441 ac_cv_prog_CPP=$CPP
3443 { echo "$as_me:$LINENO: result: $CPP" >&5
3444 echo "${ECHO_T}$CPP" >&6; }
3445 ac_preproc_ok=false
3446 for ac_c_preproc_warn_flag in '' yes
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 #ifdef __STDC__
3461 # include <limits.h>
3462 #else
3463 # include <assert.h>
3464 #endif
3465 Syntax error
3466 _ACEOF
3467 if { (ac_try="$ac_cpp conftest.$ac_ext"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3474 ac_status=$?
3475 grep -v '^ *+' conftest.er1 >conftest.err
3476 rm -f conftest.er1
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } >/dev/null && {
3480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3481 test ! -s conftest.err
3482 }; then
3484 else
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 # Broken: fails on valid input.
3489 continue
3492 rm -f conftest.err conftest.$ac_ext
3494 # OK, works on sane cases. Now check whether nonexistent headers
3495 # can be detected and how.
3496 cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h. */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 #include <ac_nonexistent.h>
3503 _ACEOF
3504 if { (ac_try="$ac_cpp conftest.$ac_ext"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } >/dev/null && {
3517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3518 test ! -s conftest.err
3519 }; then
3520 # Broken: success on invalid input.
3521 continue
3522 else
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3526 # Passes both tests.
3527 ac_preproc_ok=:
3528 break
3531 rm -f conftest.err conftest.$ac_ext
3533 done
3534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3535 rm -f conftest.err conftest.$ac_ext
3536 if $ac_preproc_ok; then
3538 else
3539 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3540 See \`config.log' for more details." >&5
3541 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3542 See \`config.log' for more details." >&2;}
3543 { (exit 1); exit 1; }; }
3546 ac_ext=c
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553 # Check for a compatible awk
3554 for ac_prog in gawk nawk
3556 # Extract the first word of "$ac_prog", so it can be a program name with args.
3557 set dummy $ac_prog; ac_word=$2
3558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3560 if test "${ac_cv_prog_AWK+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563 if test -n "$AWK"; then
3564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573 ac_cv_prog_AWK="$ac_prog"
3574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3577 done
3578 done
3579 IFS=$as_save_IFS
3583 AWK=$ac_cv_prog_AWK
3584 if test -n "$AWK"; then
3585 { echo "$as_me:$LINENO: result: $AWK" >&5
3586 echo "${ECHO_T}$AWK" >&6; }
3587 else
3588 { echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6; }
3593 test -n "$AWK" && break
3594 done
3596 if test "$AWK" = ""; then
3597 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3598 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3599 { (exit 1); exit 1; }; }
3601 # Extract the first word of "mmake", so it can be a program name with args.
3602 set dummy mmake; ac_word=$2
3603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3605 if test "${ac_cv_prog_MMAKE+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 if test -n "$MMAKE"; then
3609 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3618 ac_cv_prog_MMAKE="mmake "
3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3622 done
3623 done
3624 IFS=$as_save_IFS
3628 MMAKE=$ac_cv_prog_MMAKE
3629 if test -n "$MMAKE"; then
3630 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3631 echo "${ECHO_T}$MMAKE" >&6; }
3632 else
3633 { echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6; }
3639 # Perform some default variable assignments. Note all of these will be
3640 # Regenerated from the script, so there is no need to cache them.
3642 aros_host_cc="$CC"
3643 if test "$GCC" = "yes"; then
3644 aros_gcc_ld=`$CC -print-prog-name=ld`
3645 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3646 set dummy `basename $aros_gcc_ld`; ac_word=$2
3647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3649 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652 case $aros_host_ld in
3653 [\\/]* | ?:[\\/]*)
3654 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in `dirname $aros_gcc_ld`
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3664 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 break 2
3668 done
3669 done
3670 IFS=$as_save_IFS
3673 esac
3675 aros_host_ld=$ac_cv_path_aros_host_ld
3676 if test -n "$aros_host_ld"; then
3677 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3678 echo "${ECHO_T}$aros_host_ld" >&6; }
3679 else
3680 { echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6; }
3686 if test "$aros_host_ld" = ""; then
3687 # Extract the first word of "ld", so it can be a program name with args.
3688 set dummy ld; ac_word=$2
3689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3691 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694 case $aros_host_ld in
3695 [\\/]* | ?:[\\/]*)
3696 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3710 done
3711 done
3712 IFS=$as_save_IFS
3715 esac
3717 aros_host_ld=$ac_cv_path_aros_host_ld
3718 if test -n "$aros_host_ld"; then
3719 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3720 echo "${ECHO_T}$aros_host_ld" >&6; }
3721 else
3722 { echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6; }
3728 if test "$aros_host_ld" = ""; then
3729 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3730 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3731 { (exit 1); exit 1; }; }
3733 aros_host_make="make"
3734 aros_host_cflags=$CFLAGS
3735 aros_host_ldflags=$LDFLAGS
3736 aros_host_debug="-g -O0"
3737 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3738 aros_host_mkargs="--no-print-directory"
3739 aros_host_incl="/usr/include"
3740 aros_host_exe_suffix="$EXEEXT"
3741 aros_host_lib_suffix=""
3743 for ac_prog in aclocal aclocal19 aclocal-1.9
3745 # Extract the first word of "$ac_prog", so it can be a program name with args.
3746 set dummy $ac_prog; ac_word=$2
3747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3749 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752 if test -n "$aros_host_aclocal"; then
3753 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 ac_cv_prog_aros_host_aclocal="$ac_prog"
3763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 break 2
3766 done
3767 done
3768 IFS=$as_save_IFS
3772 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3773 if test -n "$aros_host_aclocal"; then
3774 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3775 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3776 else
3777 { echo "$as_me:$LINENO: result: no" >&5
3778 echo "${ECHO_T}no" >&6; }
3782 test -n "$aros_host_aclocal" && break
3783 done
3785 for ac_prog in autoconf autoconf259 autoconf253
3787 # Extract the first word of "$ac_prog", so it can be a program name with args.
3788 set dummy $ac_prog; ac_word=$2
3789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3791 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794 if test -n "$aros_host_autoconf"; then
3795 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_aros_host_autoconf="$ac_prog"
3805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3808 done
3809 done
3810 IFS=$as_save_IFS
3814 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3815 if test -n "$aros_host_autoconf"; then
3816 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3817 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3818 else
3819 { echo "$as_me:$LINENO: result: no" >&5
3820 echo "${ECHO_T}no" >&6; }
3824 test -n "$aros_host_autoconf" && break
3825 done
3827 for ac_prog in autoheader autoheader259 autoheader253
3829 # Extract the first word of "$ac_prog", so it can be a program name with args.
3830 set dummy $ac_prog; ac_word=$2
3831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3833 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836 if test -n "$aros_host_autoheader"; then
3837 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3846 ac_cv_prog_aros_host_autoheader="$ac_prog"
3847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 break 2
3850 done
3851 done
3852 IFS=$as_save_IFS
3856 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3857 if test -n "$aros_host_autoheader"; then
3858 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3859 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3860 else
3861 { echo "$as_me:$LINENO: result: no" >&5
3862 echo "${ECHO_T}no" >&6; }
3866 test -n "$aros_host_autoheader" && break
3867 done
3869 for ac_prog in automake automake19 automake-1.9
3871 # Extract the first word of "$ac_prog", so it can be a program name with args.
3872 set dummy $ac_prog; ac_word=$2
3873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3875 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878 if test -n "$aros_host_automake"; then
3879 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3880 else
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3888 ac_cv_prog_aros_host_automake="$ac_prog"
3889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 break 2
3892 done
3893 done
3894 IFS=$as_save_IFS
3898 aros_host_automake=$ac_cv_prog_aros_host_automake
3899 if test -n "$aros_host_automake"; then
3900 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3901 echo "${ECHO_T}$aros_host_automake" >&6; }
3902 else
3903 { echo "$as_me:$LINENO: result: no" >&5
3904 echo "${ECHO_T}no" >&6; }
3908 test -n "$aros_host_automake" && break
3909 done
3912 if test "$aros_host_aclocal" = ""; then
3913 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3914 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3915 { (exit 1); exit 1; }; }
3917 if test "$aros_host_automake" = ""; then
3918 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3919 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3920 { (exit 1); exit 1; }; }
3923 case "$aros_host_cc" in
3924 *gcc*)
3925 aros_host_cc_pipe="-pipe"
3927 icc)
3928 aros_host_cc_pipe=""
3931 aros_host_cc_pipe=""
3933 esac
3935 aros_target_cc_includes=""
3937 # This is the main host configuration section. It is where the host
3938 # can change the values of any variables it needs to change. We do
3939 # not look at anything that compiles to the target yet, we'll get
3940 # to that later.
3942 case "$host_os" in
3943 linux*)
3944 aros_host_arch="linux"
3945 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3946 case "$host_cpu" in
3947 *i?86*)
3948 aros_host_cpu="i386"
3950 *x86_64*)
3951 aros_host_cpu="x86_64"
3953 *m68k*)
3954 aros_host_cpu="m68k"
3956 *powerpc*)
3957 aros_host_cpu="ppc"
3960 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3961 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3962 aros_host_cpu="$host_cpu"
3964 esac
3967 freebsd*)
3968 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3969 aros_host_make="gmake"
3970 aros_host_arch="freebsd"
3971 aros_host_cpu="i386"
3973 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3976 case $host_os in
3977 freebsd[234]*)
3978 aros_object_format="elf_i386"
3982 aros_object_format="elf_i386_fbsd"
3984 esac
3988 darwin*)
3989 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3990 aros_host_arch="darwin"
3991 case "$host_cpu" in
3992 *i?86*)
3993 aros_host_cpu="i386"
3995 *powerpc*)
3996 aros_host_cpu="ppc"
3999 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4000 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4001 aros_host_cpu="$host_cpu"
4003 esac
4005 aros_host_ldflags="$aros_host_ldflags -liconv"
4009 netbsd*)
4010 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4011 aros_host_make="gmake"
4012 aros_host_arch="netbsd"
4013 case "$host_cpu" in
4014 *i?86*)
4015 aros_host_cpu="i386"
4017 *m68k*)
4018 aros_host_cpu="m68k"
4021 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4022 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4023 aros_host_cpu="$host_cpu"
4025 esac
4026 aros_host_lib_suffix=".0.0"
4029 openbsd*)
4030 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4031 aros_host_make="gmake"
4032 aros_host_arch="openbsd"
4033 case "$host_cpu" in
4034 *i?86*)
4035 aros_host_cpu="i386"
4038 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4039 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4040 aros_host_cpu="$host_cpu"
4042 esac
4045 solaris*)
4046 aros_host_arch="solaris"
4047 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4048 case "$host_cpu" in
4049 *i?86*)
4050 aros_host_cpu="i386"
4052 *sparc*)
4053 aros_host_cpu="sparc"
4056 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4057 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4058 aros_host_cpu="$host_cpu"
4060 esac
4063 morphos*)
4064 aros_host_arch="morphos"
4065 aros_host_cpu="ppc"
4068 amiga*)
4069 aros_host_arch="amiga"
4070 SORT="/gg/bin/sort"
4071 TEST="/gg/bin/test"
4072 UNIQ="/gg/bin/uniq"
4073 FOR="for"
4074 TOUCH="/gg/bin/touch"
4075 case "$host_cpu" in
4076 *m68k*)
4077 aros_host_cpu="m68k"
4079 *powerpc*)
4080 aros_host_cpu="ppc"
4083 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4084 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4085 aros_host_cpu="$host_cpu"
4087 esac
4090 cygwin*)
4091 aros_host_arch="cygwin"
4092 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4093 case "$host_cpu" in
4094 *i?86*)
4095 aros_host_cpu="i386"
4098 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4099 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4100 aros_host_cpu="$host_cpu"
4102 esac
4105 mingw32*)
4106 aros_host_arch="mingw32"
4107 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4108 case "$host_cpu" in
4109 *i?86*)
4110 aros_host_cpu="i386"
4113 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4114 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4115 aros_host_cpu="$host_cpu"
4117 esac
4120 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4121 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4122 { (exit 1); exit 1; }; }
4124 esac
4126 # Extract the first word of "ar", so it can be a program name with args.
4127 set dummy ar; ac_word=$2
4128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4130 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4131 echo $ECHO_N "(cached) $ECHO_C" >&6
4132 else
4133 if test -n "$aros_host_ar"; then
4134 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4135 else
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137 for as_dir in $PATH
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4143 ac_cv_prog_aros_host_ar="ar cr"
4144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 break 2
4147 done
4148 done
4149 IFS=$as_save_IFS
4153 aros_host_ar=$ac_cv_prog_aros_host_ar
4154 if test -n "$aros_host_ar"; then
4155 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4156 echo "${ECHO_T}$aros_host_ar" >&6; }
4157 else
4158 { echo "$as_me:$LINENO: result: no" >&5
4159 echo "${ECHO_T}no" >&6; }
4163 if test "$aros_host_ar" = ""; then
4164 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4165 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4166 { (exit 1); exit 1; }; }
4168 # Extract the first word of "ranlib", so it can be a program name with args.
4169 set dummy ranlib; ac_word=$2
4170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4172 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4173 echo $ECHO_N "(cached) $ECHO_C" >&6
4174 else
4175 if test -n "$aros_host_ranlib"; then
4176 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4177 else
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 for as_dir in $PATH
4181 IFS=$as_save_IFS
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185 ac_cv_prog_aros_host_ranlib="ranlib "
4186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 break 2
4189 done
4190 done
4191 IFS=$as_save_IFS
4195 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4196 if test -n "$aros_host_ranlib"; then
4197 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4198 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4199 else
4200 { echo "$as_me:$LINENO: result: no" >&5
4201 echo "${ECHO_T}no" >&6; }
4205 if test "$aros_host_ranlib" = ""; then
4206 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4207 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4208 { (exit 1); exit 1; }; }
4210 # Extract the first word of "strip", so it can be a program name with args.
4211 set dummy strip; ac_word=$2
4212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4214 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4215 echo $ECHO_N "(cached) $ECHO_C" >&6
4216 else
4217 if test -n "$aros_host_strip"; then
4218 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4219 else
4220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 for as_dir in $PATH
4223 IFS=$as_save_IFS
4224 test -z "$as_dir" && as_dir=.
4225 for ac_exec_ext in '' $ac_executable_extensions; do
4226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4227 ac_cv_prog_aros_host_strip="strip "
4228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 break 2
4231 done
4232 done
4233 IFS=$as_save_IFS
4237 aros_host_strip=$ac_cv_prog_aros_host_strip
4238 if test -n "$aros_host_strip"; then
4239 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4240 echo "${ECHO_T}$aros_host_strip" >&6; }
4241 else
4242 { echo "$as_me:$LINENO: result: no" >&5
4243 echo "${ECHO_T}no" >&6; }
4247 if test "$aros_host_strip" = ""; then
4248 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4249 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4250 { (exit 1); exit 1; }; }
4253 # Extract the first word of "rm", so it can be a program name with args.
4254 set dummy rm; ac_word=$2
4255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4257 if test "${ac_cv_prog_RM+set}" = set; then
4258 echo $ECHO_N "(cached) $ECHO_C" >&6
4259 else
4260 if test -n "$RM"; then
4261 ac_cv_prog_RM="$RM" # Let the user override the test.
4262 else
4263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4264 for as_dir in $PATH
4266 IFS=$as_save_IFS
4267 test -z "$as_dir" && as_dir=.
4268 for ac_exec_ext in '' $ac_executable_extensions; do
4269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4270 ac_cv_prog_RM="rm -rf"
4271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4272 break 2
4274 done
4275 done
4276 IFS=$as_save_IFS
4280 RM=$ac_cv_prog_RM
4281 if test -n "$RM"; then
4282 { echo "$as_me:$LINENO: result: $RM" >&5
4283 echo "${ECHO_T}$RM" >&6; }
4284 else
4285 { echo "$as_me:$LINENO: result: no" >&5
4286 echo "${ECHO_T}no" >&6; }
4290 if test "$RM" = ""; then
4291 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4292 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4293 { (exit 1); exit 1; }; }
4295 # Extract the first word of "cp", so it can be a program name with args.
4296 set dummy cp; ac_word=$2
4297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4299 if test "${ac_cv_prog_CP+set}" = set; then
4300 echo $ECHO_N "(cached) $ECHO_C" >&6
4301 else
4302 if test -n "$CP"; then
4303 ac_cv_prog_CP="$CP" # Let the user override the test.
4304 else
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4308 IFS=$as_save_IFS
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_prog_CP="cp "
4313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 break 2
4316 done
4317 done
4318 IFS=$as_save_IFS
4322 CP=$ac_cv_prog_CP
4323 if test -n "$CP"; then
4324 { echo "$as_me:$LINENO: result: $CP" >&5
4325 echo "${ECHO_T}$CP" >&6; }
4326 else
4327 { echo "$as_me:$LINENO: result: no" >&5
4328 echo "${ECHO_T}no" >&6; }
4332 if test "$CP" = ""; then
4333 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4334 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4335 { (exit 1); exit 1; }; }
4337 # Extract the first word of "mv", so it can be a program name with args.
4338 set dummy mv; ac_word=$2
4339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4341 if test "${ac_cv_prog_MV+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4343 else
4344 if test -n "$MV"; then
4345 ac_cv_prog_MV="$MV" # Let the user override the test.
4346 else
4347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4348 for as_dir in $PATH
4350 IFS=$as_save_IFS
4351 test -z "$as_dir" && as_dir=.
4352 for ac_exec_ext in '' $ac_executable_extensions; do
4353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4354 ac_cv_prog_MV="mv "
4355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4356 break 2
4358 done
4359 done
4360 IFS=$as_save_IFS
4364 MV=$ac_cv_prog_MV
4365 if test -n "$MV"; then
4366 { echo "$as_me:$LINENO: result: $MV" >&5
4367 echo "${ECHO_T}$MV" >&6; }
4368 else
4369 { echo "$as_me:$LINENO: result: no" >&5
4370 echo "${ECHO_T}no" >&6; }
4374 if test "$MV" = ""; then
4375 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4376 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4377 { (exit 1); exit 1; }; }
4379 # Extract the first word of "echo", so it can be a program name with args.
4380 set dummy echo; ac_word=$2
4381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4383 if test "${ac_cv_prog_ECHO+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4385 else
4386 if test -n "$ECHO"; then
4387 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4388 else
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH
4392 IFS=$as_save_IFS
4393 test -z "$as_dir" && as_dir=.
4394 for ac_exec_ext in '' $ac_executable_extensions; do
4395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4396 ac_cv_prog_ECHO="echo "
4397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4398 break 2
4400 done
4401 done
4402 IFS=$as_save_IFS
4406 ECHO=$ac_cv_prog_ECHO
4407 if test -n "$ECHO"; then
4408 { echo "$as_me:$LINENO: result: $ECHO" >&5
4409 echo "${ECHO_T}$ECHO" >&6; }
4410 else
4411 { echo "$as_me:$LINENO: result: no" >&5
4412 echo "${ECHO_T}no" >&6; }
4416 if test "$ECHO" = ""; then
4417 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4418 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4419 { (exit 1); exit 1; }; }
4421 # Extract the first word of "mkdir", so it can be a program name with args.
4422 set dummy mkdir; ac_word=$2
4423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425 if test "${ac_cv_prog_MKDIR+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4427 else
4428 if test -n "$MKDIR"; then
4429 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_prog_MKDIR="mkdir -p"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4440 break 2
4442 done
4443 done
4444 IFS=$as_save_IFS
4448 MKDIR=$ac_cv_prog_MKDIR
4449 if test -n "$MKDIR"; then
4450 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4451 echo "${ECHO_T}$MKDIR" >&6; }
4452 else
4453 { echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6; }
4458 if test "$MKDIR" = ""; then
4459 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4460 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4461 { (exit 1); exit 1; }; }
4463 # Extract the first word of "touch", so it can be a program name with args.
4464 set dummy touch; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_prog_TOUCH+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470 if test -n "$TOUCH"; then
4471 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4472 else
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4480 ac_cv_prog_TOUCH="touch "
4481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4484 done
4485 done
4486 IFS=$as_save_IFS
4490 TOUCH=$ac_cv_prog_TOUCH
4491 if test -n "$TOUCH"; then
4492 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4493 echo "${ECHO_T}$TOUCH" >&6; }
4494 else
4495 { echo "$as_me:$LINENO: result: no" >&5
4496 echo "${ECHO_T}no" >&6; }
4500 if test "$TOUCH" = ""; then
4501 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4502 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4503 { (exit 1); exit 1; }; }
4505 # Extract the first word of "sort", so it can be a program name with args.
4506 set dummy sort; ac_word=$2
4507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4509 if test "${ac_cv_prog_SORT+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 if test -n "$SORT"; then
4513 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 ac_cv_prog_SORT="sort "
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4526 done
4527 done
4528 IFS=$as_save_IFS
4532 SORT=$ac_cv_prog_SORT
4533 if test -n "$SORT"; then
4534 { echo "$as_me:$LINENO: result: $SORT" >&5
4535 echo "${ECHO_T}$SORT" >&6; }
4536 else
4537 { echo "$as_me:$LINENO: result: no" >&5
4538 echo "${ECHO_T}no" >&6; }
4542 if test "$SORT" = ""; then
4543 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4544 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4545 { (exit 1); exit 1; }; }
4547 # Extract the first word of "uniq", so it can be a program name with args.
4548 set dummy uniq; ac_word=$2
4549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4551 if test "${ac_cv_prog_UNIQ+set}" = set; then
4552 echo $ECHO_N "(cached) $ECHO_C" >&6
4553 else
4554 if test -n "$UNIQ"; then
4555 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564 ac_cv_prog_UNIQ="uniq "
4565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4568 done
4569 done
4570 IFS=$as_save_IFS
4574 UNIQ=$ac_cv_prog_UNIQ
4575 if test -n "$UNIQ"; then
4576 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4577 echo "${ECHO_T}$UNIQ" >&6; }
4578 else
4579 { echo "$as_me:$LINENO: result: no" >&5
4580 echo "${ECHO_T}no" >&6; }
4584 if test "$UNIQ" = ""; then
4585 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4586 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4587 { (exit 1); exit 1; }; }
4589 # Extract the first word of "true", so it can be a program name with args.
4590 set dummy true; ac_word=$2
4591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593 if test "${ac_cv_prog_NOP+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596 if test -n "$NOP"; then
4597 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_NOP="true "
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4610 done
4611 done
4612 IFS=$as_save_IFS
4616 NOP=$ac_cv_prog_NOP
4617 if test -n "$NOP"; then
4618 { echo "$as_me:$LINENO: result: $NOP" >&5
4619 echo "${ECHO_T}$NOP" >&6; }
4620 else
4621 { echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6; }
4626 if test "$NOP" = ""; then
4627 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4628 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4629 { (exit 1); exit 1; }; }
4631 # Extract the first word of "cat", so it can be a program name with args.
4632 set dummy cat; ac_word=$2
4633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4635 if test "${ac_cv_prog_CAT+set}" = set; then
4636 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 else
4638 if test -n "$CAT"; then
4639 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4648 ac_cv_prog_CAT="cat "
4649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4652 done
4653 done
4654 IFS=$as_save_IFS
4658 CAT=$ac_cv_prog_CAT
4659 if test -n "$CAT"; then
4660 { echo "$as_me:$LINENO: result: $CAT" >&5
4661 echo "${ECHO_T}$CAT" >&6; }
4662 else
4663 { echo "$as_me:$LINENO: result: no" >&5
4664 echo "${ECHO_T}no" >&6; }
4668 if test "$CAT" = ""; then
4669 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4670 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4671 { (exit 1); exit 1; }; }
4673 # Extract the first word of "bison", so it can be a program name with args.
4674 set dummy bison; ac_word=$2
4675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4677 if test "${ac_cv_prog_BISON+set}" = set; then
4678 echo $ECHO_N "(cached) $ECHO_C" >&6
4679 else
4680 if test -n "$BISON"; then
4681 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4682 else
4683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684 for as_dir in $PATH
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4690 ac_cv_prog_BISON="bison "
4691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 break 2
4694 done
4695 done
4696 IFS=$as_save_IFS
4700 BISON=$ac_cv_prog_BISON
4701 if test -n "$BISON"; then
4702 { echo "$as_me:$LINENO: result: $BISON" >&5
4703 echo "${ECHO_T}$BISON" >&6; }
4704 else
4705 { echo "$as_me:$LINENO: result: no" >&5
4706 echo "${ECHO_T}no" >&6; }
4710 if test "$BISON" = ""; then
4711 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4712 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4713 { (exit 1); exit 1; }; }
4715 # Extract the first word of "flex", so it can be a program name with args.
4716 set dummy flex; ac_word=$2
4717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4719 if test "${ac_cv_prog_FLEX+set}" = set; then
4720 echo $ECHO_N "(cached) $ECHO_C" >&6
4721 else
4722 if test -n "$FLEX"; then
4723 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4724 else
4725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4726 for as_dir in $PATH
4728 IFS=$as_save_IFS
4729 test -z "$as_dir" && as_dir=.
4730 for ac_exec_ext in '' $ac_executable_extensions; do
4731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4732 ac_cv_prog_FLEX="flex "
4733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4734 break 2
4736 done
4737 done
4738 IFS=$as_save_IFS
4742 FLEX=$ac_cv_prog_FLEX
4743 if test -n "$FLEX"; then
4744 { echo "$as_me:$LINENO: result: $FLEX" >&5
4745 echo "${ECHO_T}$FLEX" >&6; }
4746 else
4747 { echo "$as_me:$LINENO: result: no" >&5
4748 echo "${ECHO_T}no" >&6; }
4752 if test "$FLEX" = ""; then
4753 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4754 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4755 { (exit 1); exit 1; }; }
4757 # Extract the first word of "pngtopnm", so it can be a program name with args.
4758 set dummy pngtopnm; ac_word=$2
4759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4761 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4762 echo $ECHO_N "(cached) $ECHO_C" >&6
4763 else
4764 if test -n "$PNGTOPNM"; then
4765 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4770 IFS=$as_save_IFS
4771 test -z "$as_dir" && as_dir=.
4772 for ac_exec_ext in '' $ac_executable_extensions; do
4773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774 ac_cv_prog_PNGTOPNM="pngtopnm "
4775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4776 break 2
4778 done
4779 done
4780 IFS=$as_save_IFS
4784 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4785 if test -n "$PNGTOPNM"; then
4786 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4787 echo "${ECHO_T}$PNGTOPNM" >&6; }
4788 else
4789 { echo "$as_me:$LINENO: result: no" >&5
4790 echo "${ECHO_T}no" >&6; }
4794 if test "$PNGTOPNM" = ""; then
4795 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4796 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4797 { (exit 1); exit 1; }; }
4799 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4800 set dummy ppmtoilbm; ac_word=$2
4801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4803 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4805 else
4806 if test -n "$PPMTOILBM"; then
4807 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4808 else
4809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810 for as_dir in $PATH
4812 IFS=$as_save_IFS
4813 test -z "$as_dir" && as_dir=.
4814 for ac_exec_ext in '' $ac_executable_extensions; do
4815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4816 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 break 2
4820 done
4821 done
4822 IFS=$as_save_IFS
4826 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4827 if test -n "$PPMTOILBM"; then
4828 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4829 echo "${ECHO_T}$PPMTOILBM" >&6; }
4830 else
4831 { echo "$as_me:$LINENO: result: no" >&5
4832 echo "${ECHO_T}no" >&6; }
4836 if test "$PPMTOILBM" = ""; then
4837 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4838 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4839 { (exit 1); exit 1; }; }
4841 # Extract the first word of "sed", so it can be a program name with args.
4842 set dummy sed; ac_word=$2
4843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4845 if test "${ac_cv_prog_SED+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 else
4848 if test -n "$SED"; then
4849 ac_cv_prog_SED="$SED" # Let the user override the test.
4850 else
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_prog_SED="sed "
4859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 break 2
4862 done
4863 done
4864 IFS=$as_save_IFS
4868 SED=$ac_cv_prog_SED
4869 if test -n "$SED"; then
4870 { echo "$as_me:$LINENO: result: $SED" >&5
4871 echo "${ECHO_T}$SED" >&6; }
4872 else
4873 { echo "$as_me:$LINENO: result: no" >&5
4874 echo "${ECHO_T}no" >&6; }
4878 if test "$SED" = ""; then
4879 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4880 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4881 { (exit 1); exit 1; }; }
4883 # Extract the first word of "chmod", so it can be a program name with args.
4884 set dummy chmod; ac_word=$2
4885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4887 if test "${ac_cv_prog_CHMOD+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4889 else
4890 if test -n "$CHMOD"; then
4891 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4892 else
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894 for as_dir in $PATH
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4900 ac_cv_prog_CHMOD="chmod "
4901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 break 2
4904 done
4905 done
4906 IFS=$as_save_IFS
4910 CHMOD=$ac_cv_prog_CHMOD
4911 if test -n "$CHMOD"; then
4912 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4913 echo "${ECHO_T}$CHMOD" >&6; }
4914 else
4915 { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4920 if test "$CHMOD" = ""; then
4921 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4922 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4923 { (exit 1); exit 1; }; }
4930 if test -n "$PYTHON"; then
4931 # If the user set $PYTHON, use it and don't search something else.
4932 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4933 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4934 prog="import sys, string
4935 # split strings by '.' and convert to numeric. Append some zeros
4936 # because we need at least 4 digits for the hex conversion.
4937 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4938 minverhex = 0
4939 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4940 sys.exit(sys.hexversion < minverhex)"
4941 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4942 ($PYTHON -c "$prog") >&5 2>&5
4943 ac_status=$?
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; then
4946 { echo "$as_me:$LINENO: result: yes" >&5
4947 echo "${ECHO_T}yes" >&6; }
4948 else
4949 { { echo "$as_me:$LINENO: error: too old" >&5
4950 echo "$as_me: error: too old" >&2;}
4951 { (exit 1); exit 1; }; }
4954 am_display_PYTHON=$PYTHON
4955 else
4956 # Otherwise, try each interpreter until we find one that satisfies
4957 # VERSION.
4958 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4959 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4960 if test "${am_cv_pathless_PYTHON+set}" = set; then
4961 echo $ECHO_N "(cached) $ECHO_C" >&6
4962 else
4964 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
4965 test "$am_cv_pathless_PYTHON" = none && break
4966 prog="import sys, string
4967 # split strings by '.' and convert to numeric. Append some zeros
4968 # because we need at least 4 digits for the hex conversion.
4969 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4970 minverhex = 0
4971 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4972 sys.exit(sys.hexversion < minverhex)"
4973 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4974 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4975 ac_status=$?
4976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4977 (exit $ac_status); }; then
4978 break
4981 done
4983 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
4984 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
4985 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4986 if test "$am_cv_pathless_PYTHON" = none; then
4987 PYTHON=:
4988 else
4989 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4990 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4993 if test "${ac_cv_path_PYTHON+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4995 else
4996 case $PYTHON in
4997 [\\/]* | ?:[\\/]*)
4998 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5009 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5012 done
5013 done
5014 IFS=$as_save_IFS
5017 esac
5019 PYTHON=$ac_cv_path_PYTHON
5020 if test -n "$PYTHON"; then
5021 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5022 echo "${ECHO_T}$PYTHON" >&6; }
5023 else
5024 { echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6; }
5030 am_display_PYTHON=$am_cv_pathless_PYTHON
5034 if test "$PYTHON" = :; then
5035 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5036 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5037 { (exit 1); exit 1; }; }
5038 else
5041 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5042 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5043 if test "${am_cv_python_version+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 else
5046 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5048 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5049 echo "${ECHO_T}$am_cv_python_version" >&6; }
5050 PYTHON_VERSION=$am_cv_python_version
5054 PYTHON_PREFIX='${prefix}'
5056 PYTHON_EXEC_PREFIX='${exec_prefix}'
5060 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5061 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5062 if test "${am_cv_python_platform+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5067 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5068 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5069 PYTHON_PLATFORM=$am_cv_python_platform
5074 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5075 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5076 if test "${am_cv_python_pythondir+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5080 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5082 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5083 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5084 pythondir=$am_cv_python_pythondir
5088 pkgpythondir=\${pythondir}/$PACKAGE
5091 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5092 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5093 if test "${am_cv_python_pyexecdir+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 else
5096 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5097 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5099 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5100 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5101 pyexecdir=$am_cv_python_pyexecdir
5105 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5113 FOR=for
5115 IF=if
5117 TEST=test
5119 CMP=cmp
5123 # Check for some includes for the X11 HIDD and the kernel
5126 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5127 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5128 if test "${ac_cv_path_GREP+set}" = set; then
5129 echo $ECHO_N "(cached) $ECHO_C" >&6
5130 else
5131 # Extract the first word of "grep ggrep" to use in msg output
5132 if test -z "$GREP"; then
5133 set dummy grep ggrep; ac_prog_name=$2
5134 if test "${ac_cv_path_GREP+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 else
5137 ac_path_GREP_found=false
5138 # Loop through the user's path and test for each of PROGNAME-LIST
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_prog in grep ggrep; do
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5147 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5148 # Check for GNU ac_path_GREP and select it if it is found.
5149 # Check for GNU $ac_path_GREP
5150 case `"$ac_path_GREP" --version 2>&1` in
5151 *GNU*)
5152 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5154 ac_count=0
5155 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5156 while :
5158 cat "conftest.in" "conftest.in" >"conftest.tmp"
5159 mv "conftest.tmp" "conftest.in"
5160 cp "conftest.in" "conftest.nl"
5161 echo 'GREP' >> "conftest.nl"
5162 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5163 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5164 ac_count=`expr $ac_count + 1`
5165 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5166 # Best one so far, save it but keep looking for a better one
5167 ac_cv_path_GREP="$ac_path_GREP"
5168 ac_path_GREP_max=$ac_count
5170 # 10*(2^10) chars as input seems more than enough
5171 test $ac_count -gt 10 && break
5172 done
5173 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5174 esac
5177 $ac_path_GREP_found && break 3
5178 done
5179 done
5181 done
5182 IFS=$as_save_IFS
5187 GREP="$ac_cv_path_GREP"
5188 if test -z "$GREP"; then
5189 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5190 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5191 { (exit 1); exit 1; }; }
5194 else
5195 ac_cv_path_GREP=$GREP
5200 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5201 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5202 GREP="$ac_cv_path_GREP"
5205 { echo "$as_me:$LINENO: checking for egrep" >&5
5206 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5207 if test "${ac_cv_path_EGREP+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5211 then ac_cv_path_EGREP="$GREP -E"
5212 else
5213 # Extract the first word of "egrep" to use in msg output
5214 if test -z "$EGREP"; then
5215 set dummy egrep; ac_prog_name=$2
5216 if test "${ac_cv_path_EGREP+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219 ac_path_EGREP_found=false
5220 # Loop through the user's path and test for each of PROGNAME-LIST
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_prog in egrep; do
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5229 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5230 # Check for GNU ac_path_EGREP and select it if it is found.
5231 # Check for GNU $ac_path_EGREP
5232 case `"$ac_path_EGREP" --version 2>&1` in
5233 *GNU*)
5234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5236 ac_count=0
5237 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5238 while :
5240 cat "conftest.in" "conftest.in" >"conftest.tmp"
5241 mv "conftest.tmp" "conftest.in"
5242 cp "conftest.in" "conftest.nl"
5243 echo 'EGREP' >> "conftest.nl"
5244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5246 ac_count=`expr $ac_count + 1`
5247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_EGREP="$ac_path_EGREP"
5250 ac_path_EGREP_max=$ac_count
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5254 done
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256 esac
5259 $ac_path_EGREP_found && break 3
5260 done
5261 done
5263 done
5264 IFS=$as_save_IFS
5269 EGREP="$ac_cv_path_EGREP"
5270 if test -z "$EGREP"; then
5271 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5272 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5273 { (exit 1); exit 1; }; }
5276 else
5277 ac_cv_path_EGREP=$EGREP
5283 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5284 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5285 EGREP="$ac_cv_path_EGREP"
5288 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5289 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5290 if test "${ac_cv_header_stdc+set}" = set; then
5291 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 else
5293 cat >conftest.$ac_ext <<_ACEOF
5294 /* confdefs.h. */
5295 _ACEOF
5296 cat confdefs.h >>conftest.$ac_ext
5297 cat >>conftest.$ac_ext <<_ACEOF
5298 /* end confdefs.h. */
5299 #include <stdlib.h>
5300 #include <stdarg.h>
5301 #include <string.h>
5302 #include <float.h>
5305 main ()
5309 return 0;
5311 _ACEOF
5312 rm -f conftest.$ac_objext
5313 if { (ac_try="$ac_compile"
5314 case "(($ac_try" in
5315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5316 *) ac_try_echo=$ac_try;;
5317 esac
5318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5319 (eval "$ac_compile") 2>conftest.er1
5320 ac_status=$?
5321 grep -v '^ *+' conftest.er1 >conftest.err
5322 rm -f conftest.er1
5323 cat conftest.err >&5
5324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5325 (exit $ac_status); } && {
5326 test -z "$ac_c_werror_flag" ||
5327 test ! -s conftest.err
5328 } && test -s conftest.$ac_objext; then
5329 ac_cv_header_stdc=yes
5330 else
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5334 ac_cv_header_stdc=no
5337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 if test $ac_cv_header_stdc = yes; then
5340 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5341 cat >conftest.$ac_ext <<_ACEOF
5342 /* confdefs.h. */
5343 _ACEOF
5344 cat confdefs.h >>conftest.$ac_ext
5345 cat >>conftest.$ac_ext <<_ACEOF
5346 /* end confdefs.h. */
5347 #include <string.h>
5349 _ACEOF
5350 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5351 $EGREP "memchr" >/dev/null 2>&1; then
5353 else
5354 ac_cv_header_stdc=no
5356 rm -f conftest*
5360 if test $ac_cv_header_stdc = yes; then
5361 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5362 cat >conftest.$ac_ext <<_ACEOF
5363 /* confdefs.h. */
5364 _ACEOF
5365 cat confdefs.h >>conftest.$ac_ext
5366 cat >>conftest.$ac_ext <<_ACEOF
5367 /* end confdefs.h. */
5368 #include <stdlib.h>
5370 _ACEOF
5371 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5372 $EGREP "free" >/dev/null 2>&1; then
5374 else
5375 ac_cv_header_stdc=no
5377 rm -f conftest*
5381 if test $ac_cv_header_stdc = yes; then
5382 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5383 if test "$cross_compiling" = yes; then
5385 else
5386 cat >conftest.$ac_ext <<_ACEOF
5387 /* confdefs.h. */
5388 _ACEOF
5389 cat confdefs.h >>conftest.$ac_ext
5390 cat >>conftest.$ac_ext <<_ACEOF
5391 /* end confdefs.h. */
5392 #include <ctype.h>
5393 #include <stdlib.h>
5394 #if ((' ' & 0x0FF) == 0x020)
5395 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5396 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5397 #else
5398 # define ISLOWER(c) \
5399 (('a' <= (c) && (c) <= 'i') \
5400 || ('j' <= (c) && (c) <= 'r') \
5401 || ('s' <= (c) && (c) <= 'z'))
5402 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5403 #endif
5405 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5407 main ()
5409 int i;
5410 for (i = 0; i < 256; i++)
5411 if (XOR (islower (i), ISLOWER (i))
5412 || toupper (i) != TOUPPER (i))
5413 return 2;
5414 return 0;
5416 _ACEOF
5417 rm -f conftest$ac_exeext
5418 if { (ac_try="$ac_link"
5419 case "(($ac_try" in
5420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5421 *) ac_try_echo=$ac_try;;
5422 esac
5423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5424 (eval "$ac_link") 2>&5
5425 ac_status=$?
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5428 { (case "(($ac_try" in
5429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5430 *) ac_try_echo=$ac_try;;
5431 esac
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_try") 2>&5
5434 ac_status=$?
5435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5436 (exit $ac_status); }; }; then
5438 else
5439 echo "$as_me: program exited with status $ac_status" >&5
5440 echo "$as_me: failed program was:" >&5
5441 sed 's/^/| /' conftest.$ac_ext >&5
5443 ( exit $ac_status )
5444 ac_cv_header_stdc=no
5446 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5452 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5453 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5454 if test $ac_cv_header_stdc = yes; then
5456 cat >>confdefs.h <<\_ACEOF
5457 #define STDC_HEADERS 1
5458 _ACEOF
5462 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5472 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5473 inttypes.h stdint.h unistd.h
5475 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5479 echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481 cat >conftest.$ac_ext <<_ACEOF
5482 /* confdefs.h. */
5483 _ACEOF
5484 cat confdefs.h >>conftest.$ac_ext
5485 cat >>conftest.$ac_ext <<_ACEOF
5486 /* end confdefs.h. */
5487 $ac_includes_default
5489 #include <$ac_header>
5490 _ACEOF
5491 rm -f conftest.$ac_objext
5492 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
5499 ac_status=$?
5500 grep -v '^ *+' conftest.er1 >conftest.err
5501 rm -f conftest.er1
5502 cat conftest.err >&5
5503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5504 (exit $ac_status); } && {
5505 test -z "$ac_c_werror_flag" ||
5506 test ! -s conftest.err
5507 } && test -s conftest.$ac_objext; then
5508 eval "$as_ac_Header=yes"
5509 else
5510 echo "$as_me: failed program was:" >&5
5511 sed 's/^/| /' conftest.$ac_ext >&5
5513 eval "$as_ac_Header=no"
5516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5518 ac_res=`eval echo '${'$as_ac_Header'}'`
5519 { echo "$as_me:$LINENO: result: $ac_res" >&5
5520 echo "${ECHO_T}$ac_res" >&6; }
5521 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5522 cat >>confdefs.h <<_ACEOF
5523 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5524 _ACEOF
5528 done
5540 for ac_header in sys/ipc.h sys/shm.h \
5541 sys/mmap.h sys/mman.h sysexits.h \
5542 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5550 echo $ECHO_N "(cached) $ECHO_C" >&6
5552 ac_res=`eval echo '${'$as_ac_Header'}'`
5553 { echo "$as_me:$LINENO: result: $ac_res" >&5
5554 echo "${ECHO_T}$ac_res" >&6; }
5555 else
5556 # Is the header compilable?
5557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h. */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 $ac_includes_default
5566 #include <$ac_header>
5567 _ACEOF
5568 rm -f conftest.$ac_objext
5569 if { (ac_try="$ac_compile"
5570 case "(($ac_try" in
5571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5572 *) ac_try_echo=$ac_try;;
5573 esac
5574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5575 (eval "$ac_compile") 2>conftest.er1
5576 ac_status=$?
5577 grep -v '^ *+' conftest.er1 >conftest.err
5578 rm -f conftest.er1
5579 cat conftest.err >&5
5580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5581 (exit $ac_status); } && {
5582 test -z "$ac_c_werror_flag" ||
5583 test ! -s conftest.err
5584 } && test -s conftest.$ac_objext; then
5585 ac_header_compiler=yes
5586 else
5587 echo "$as_me: failed program was:" >&5
5588 sed 's/^/| /' conftest.$ac_ext >&5
5590 ac_header_compiler=no
5593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5595 echo "${ECHO_T}$ac_header_compiler" >&6; }
5597 # Is the header present?
5598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5600 cat >conftest.$ac_ext <<_ACEOF
5601 /* confdefs.h. */
5602 _ACEOF
5603 cat confdefs.h >>conftest.$ac_ext
5604 cat >>conftest.$ac_ext <<_ACEOF
5605 /* end confdefs.h. */
5606 #include <$ac_header>
5607 _ACEOF
5608 if { (ac_try="$ac_cpp conftest.$ac_ext"
5609 case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612 esac
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } >/dev/null && {
5621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5622 test ! -s conftest.err
5623 }; then
5624 ac_header_preproc=yes
5625 else
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5629 ac_header_preproc=no
5632 rm -f conftest.err conftest.$ac_ext
5633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5634 echo "${ECHO_T}$ac_header_preproc" >&6; }
5636 # So? What about this header?
5637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5638 yes:no: )
5639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5643 ac_header_preproc=yes
5645 no:yes:* )
5646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5653 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5660 esac
5661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5665 else
5666 eval "$as_ac_Header=\$ac_header_preproc"
5668 ac_res=`eval echo '${'$as_ac_Header'}'`
5669 { echo "$as_me:$LINENO: result: $ac_res" >&5
5670 echo "${ECHO_T}$ac_res" >&6; }
5673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5674 cat >>confdefs.h <<_ACEOF
5675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5676 _ACEOF
5680 done
5684 for ac_header in sys/mount.h
5686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5690 echo $ECHO_N "(cached) $ECHO_C" >&6
5691 else
5692 cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h. */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h. */
5698 #include <sys/param.h>
5700 #include <$ac_header>
5701 _ACEOF
5702 rm -f conftest.$ac_objext
5703 if { (ac_try="$ac_compile"
5704 case "(($ac_try" in
5705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5706 *) ac_try_echo=$ac_try;;
5707 esac
5708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5709 (eval "$ac_compile") 2>conftest.er1
5710 ac_status=$?
5711 grep -v '^ *+' conftest.er1 >conftest.err
5712 rm -f conftest.er1
5713 cat conftest.err >&5
5714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5715 (exit $ac_status); } && {
5716 test -z "$ac_c_werror_flag" ||
5717 test ! -s conftest.err
5718 } && test -s conftest.$ac_objext; then
5719 eval "$as_ac_Header=yes"
5720 else
5721 echo "$as_me: failed program was:" >&5
5722 sed 's/^/| /' conftest.$ac_ext >&5
5724 eval "$as_ac_Header=no"
5727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5729 ac_res=`eval echo '${'$as_ac_Header'}'`
5730 { echo "$as_me:$LINENO: result: $ac_res" >&5
5731 echo "${ECHO_T}$ac_res" >&6; }
5732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5733 cat >>confdefs.h <<_ACEOF
5734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5735 _ACEOF
5739 done
5747 ac_header_dirent=no
5748 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5749 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5750 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5751 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5753 echo $ECHO_N "(cached) $ECHO_C" >&6
5754 else
5755 cat >conftest.$ac_ext <<_ACEOF
5756 /* confdefs.h. */
5757 _ACEOF
5758 cat confdefs.h >>conftest.$ac_ext
5759 cat >>conftest.$ac_ext <<_ACEOF
5760 /* end confdefs.h. */
5761 #include <sys/types.h>
5762 #include <$ac_hdr>
5765 main ()
5767 if ((DIR *) 0)
5768 return 0;
5770 return 0;
5772 _ACEOF
5773 rm -f conftest.$ac_objext
5774 if { (ac_try="$ac_compile"
5775 case "(($ac_try" in
5776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5778 esac
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_compile") 2>conftest.er1
5781 ac_status=$?
5782 grep -v '^ *+' conftest.er1 >conftest.err
5783 rm -f conftest.er1
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } && {
5787 test -z "$ac_c_werror_flag" ||
5788 test ! -s conftest.err
5789 } && test -s conftest.$ac_objext; then
5790 eval "$as_ac_Header=yes"
5791 else
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5795 eval "$as_ac_Header=no"
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 ac_res=`eval echo '${'$as_ac_Header'}'`
5801 { echo "$as_me:$LINENO: result: $ac_res" >&5
5802 echo "${ECHO_T}$ac_res" >&6; }
5803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5804 cat >>confdefs.h <<_ACEOF
5805 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5806 _ACEOF
5808 ac_header_dirent=$ac_hdr; break
5811 done
5812 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5813 if test $ac_header_dirent = dirent.h; then
5814 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5815 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5816 if test "${ac_cv_search_opendir+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5818 else
5819 ac_func_search_save_LIBS=$LIBS
5820 cat >conftest.$ac_ext <<_ACEOF
5821 /* confdefs.h. */
5822 _ACEOF
5823 cat confdefs.h >>conftest.$ac_ext
5824 cat >>conftest.$ac_ext <<_ACEOF
5825 /* end confdefs.h. */
5827 /* Override any GCC internal prototype to avoid an error.
5828 Use char because int might match the return type of a GCC
5829 builtin and then its argument prototype would still apply. */
5830 #ifdef __cplusplus
5831 extern "C"
5832 #endif
5833 char opendir ();
5835 main ()
5837 return opendir ();
5839 return 0;
5841 _ACEOF
5842 for ac_lib in '' dir; do
5843 if test -z "$ac_lib"; then
5844 ac_res="none required"
5845 else
5846 ac_res=-l$ac_lib
5847 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5849 rm -f conftest.$ac_objext conftest$ac_exeext
5850 if { (ac_try="$ac_link"
5851 case "(($ac_try" in
5852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5853 *) ac_try_echo=$ac_try;;
5854 esac
5855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5856 (eval "$ac_link") 2>conftest.er1
5857 ac_status=$?
5858 grep -v '^ *+' conftest.er1 >conftest.err
5859 rm -f conftest.er1
5860 cat conftest.err >&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); } && {
5863 test -z "$ac_c_werror_flag" ||
5864 test ! -s conftest.err
5865 } && test -s conftest$ac_exeext &&
5866 $as_test_x conftest$ac_exeext; then
5867 ac_cv_search_opendir=$ac_res
5868 else
5869 echo "$as_me: failed program was:" >&5
5870 sed 's/^/| /' conftest.$ac_ext >&5
5875 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5876 conftest$ac_exeext
5877 if test "${ac_cv_search_opendir+set}" = set; then
5878 break
5880 done
5881 if test "${ac_cv_search_opendir+set}" = set; then
5883 else
5884 ac_cv_search_opendir=no
5886 rm conftest.$ac_ext
5887 LIBS=$ac_func_search_save_LIBS
5889 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5890 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5891 ac_res=$ac_cv_search_opendir
5892 if test "$ac_res" != no; then
5893 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5897 else
5898 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5899 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5900 if test "${ac_cv_search_opendir+set}" = set; then
5901 echo $ECHO_N "(cached) $ECHO_C" >&6
5902 else
5903 ac_func_search_save_LIBS=$LIBS
5904 cat >conftest.$ac_ext <<_ACEOF
5905 /* confdefs.h. */
5906 _ACEOF
5907 cat confdefs.h >>conftest.$ac_ext
5908 cat >>conftest.$ac_ext <<_ACEOF
5909 /* end confdefs.h. */
5911 /* Override any GCC internal prototype to avoid an error.
5912 Use char because int might match the return type of a GCC
5913 builtin and then its argument prototype would still apply. */
5914 #ifdef __cplusplus
5915 extern "C"
5916 #endif
5917 char opendir ();
5919 main ()
5921 return opendir ();
5923 return 0;
5925 _ACEOF
5926 for ac_lib in '' x; do
5927 if test -z "$ac_lib"; then
5928 ac_res="none required"
5929 else
5930 ac_res=-l$ac_lib
5931 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5933 rm -f conftest.$ac_objext conftest$ac_exeext
5934 if { (ac_try="$ac_link"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_link") 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_c_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest$ac_exeext &&
5950 $as_test_x conftest$ac_exeext; then
5951 ac_cv_search_opendir=$ac_res
5952 else
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.$ac_ext >&5
5959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5960 conftest$ac_exeext
5961 if test "${ac_cv_search_opendir+set}" = set; then
5962 break
5964 done
5965 if test "${ac_cv_search_opendir+set}" = set; then
5967 else
5968 ac_cv_search_opendir=no
5970 rm conftest.$ac_ext
5971 LIBS=$ac_func_search_save_LIBS
5973 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5974 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5975 ac_res=$ac_cv_search_opendir
5976 if test "$ac_res" != no; then
5977 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5983 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5984 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5985 if test "${ac_cv_header_stat_broken+set}" = set; then
5986 echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988 cat >conftest.$ac_ext <<_ACEOF
5989 /* confdefs.h. */
5990 _ACEOF
5991 cat confdefs.h >>conftest.$ac_ext
5992 cat >>conftest.$ac_ext <<_ACEOF
5993 /* end confdefs.h. */
5994 #include <sys/types.h>
5995 #include <sys/stat.h>
5997 #if defined S_ISBLK && defined S_IFDIR
5998 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5999 #endif
6001 #if defined S_ISBLK && defined S_IFCHR
6002 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6003 #endif
6005 #if defined S_ISLNK && defined S_IFREG
6006 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6007 #endif
6009 #if defined S_ISSOCK && defined S_IFREG
6010 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6011 #endif
6013 _ACEOF
6014 rm -f conftest.$ac_objext
6015 if { (ac_try="$ac_compile"
6016 case "(($ac_try" in
6017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6018 *) ac_try_echo=$ac_try;;
6019 esac
6020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6021 (eval "$ac_compile") 2>conftest.er1
6022 ac_status=$?
6023 grep -v '^ *+' conftest.er1 >conftest.err
6024 rm -f conftest.er1
6025 cat conftest.err >&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); } && {
6028 test -z "$ac_c_werror_flag" ||
6029 test ! -s conftest.err
6030 } && test -s conftest.$ac_objext; then
6031 ac_cv_header_stat_broken=no
6032 else
6033 echo "$as_me: failed program was:" >&5
6034 sed 's/^/| /' conftest.$ac_ext >&5
6036 ac_cv_header_stat_broken=yes
6039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6042 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6043 if test $ac_cv_header_stat_broken = yes; then
6045 cat >>confdefs.h <<\_ACEOF
6046 #define STAT_MACROS_BROKEN 1
6047 _ACEOF
6051 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6052 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6053 if test "${ac_cv_header_stdc+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056 cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h. */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <stdlib.h>
6063 #include <stdarg.h>
6064 #include <string.h>
6065 #include <float.h>
6068 main ()
6072 return 0;
6074 _ACEOF
6075 rm -f conftest.$ac_objext
6076 if { (ac_try="$ac_compile"
6077 case "(($ac_try" in
6078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6079 *) ac_try_echo=$ac_try;;
6080 esac
6081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082 (eval "$ac_compile") 2>conftest.er1
6083 ac_status=$?
6084 grep -v '^ *+' conftest.er1 >conftest.err
6085 rm -f conftest.er1
6086 cat conftest.err >&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } && {
6089 test -z "$ac_c_werror_flag" ||
6090 test ! -s conftest.err
6091 } && test -s conftest.$ac_objext; then
6092 ac_cv_header_stdc=yes
6093 else
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6097 ac_cv_header_stdc=no
6100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6102 if test $ac_cv_header_stdc = yes; then
6103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6104 cat >conftest.$ac_ext <<_ACEOF
6105 /* confdefs.h. */
6106 _ACEOF
6107 cat confdefs.h >>conftest.$ac_ext
6108 cat >>conftest.$ac_ext <<_ACEOF
6109 /* end confdefs.h. */
6110 #include <string.h>
6112 _ACEOF
6113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6114 $EGREP "memchr" >/dev/null 2>&1; then
6116 else
6117 ac_cv_header_stdc=no
6119 rm -f conftest*
6123 if test $ac_cv_header_stdc = yes; then
6124 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6125 cat >conftest.$ac_ext <<_ACEOF
6126 /* confdefs.h. */
6127 _ACEOF
6128 cat confdefs.h >>conftest.$ac_ext
6129 cat >>conftest.$ac_ext <<_ACEOF
6130 /* end confdefs.h. */
6131 #include <stdlib.h>
6133 _ACEOF
6134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6135 $EGREP "free" >/dev/null 2>&1; then
6137 else
6138 ac_cv_header_stdc=no
6140 rm -f conftest*
6144 if test $ac_cv_header_stdc = yes; then
6145 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6146 if test "$cross_compiling" = yes; then
6148 else
6149 cat >conftest.$ac_ext <<_ACEOF
6150 /* confdefs.h. */
6151 _ACEOF
6152 cat confdefs.h >>conftest.$ac_ext
6153 cat >>conftest.$ac_ext <<_ACEOF
6154 /* end confdefs.h. */
6155 #include <ctype.h>
6156 #include <stdlib.h>
6157 #if ((' ' & 0x0FF) == 0x020)
6158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6160 #else
6161 # define ISLOWER(c) \
6162 (('a' <= (c) && (c) <= 'i') \
6163 || ('j' <= (c) && (c) <= 'r') \
6164 || ('s' <= (c) && (c) <= 'z'))
6165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6166 #endif
6168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6170 main ()
6172 int i;
6173 for (i = 0; i < 256; i++)
6174 if (XOR (islower (i), ISLOWER (i))
6175 || toupper (i) != TOUPPER (i))
6176 return 2;
6177 return 0;
6179 _ACEOF
6180 rm -f conftest$ac_exeext
6181 if { (ac_try="$ac_link"
6182 case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185 esac
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_link") 2>&5
6188 ac_status=$?
6189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6190 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6191 { (case "(($ac_try" in
6192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6193 *) ac_try_echo=$ac_try;;
6194 esac
6195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6196 (eval "$ac_try") 2>&5
6197 ac_status=$?
6198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6199 (exit $ac_status); }; }; then
6201 else
6202 echo "$as_me: program exited with status $ac_status" >&5
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6206 ( exit $ac_status )
6207 ac_cv_header_stdc=no
6209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6215 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6216 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6217 if test $ac_cv_header_stdc = yes; then
6219 cat >>confdefs.h <<\_ACEOF
6220 #define STDC_HEADERS 1
6221 _ACEOF
6225 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6226 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6227 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6228 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 else
6230 cat >conftest.$ac_ext <<_ACEOF
6231 /* confdefs.h. */
6232 _ACEOF
6233 cat confdefs.h >>conftest.$ac_ext
6234 cat >>conftest.$ac_ext <<_ACEOF
6235 /* end confdefs.h. */
6236 #include <sys/types.h>
6237 #include <sys/wait.h>
6238 #ifndef WEXITSTATUS
6239 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6240 #endif
6241 #ifndef WIFEXITED
6242 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6243 #endif
6246 main ()
6248 int s;
6249 wait (&s);
6250 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6252 return 0;
6254 _ACEOF
6255 rm -f conftest.$ac_objext
6256 if { (ac_try="$ac_compile"
6257 case "(($ac_try" in
6258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6259 *) ac_try_echo=$ac_try;;
6260 esac
6261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6262 (eval "$ac_compile") 2>conftest.er1
6263 ac_status=$?
6264 grep -v '^ *+' conftest.er1 >conftest.err
6265 rm -f conftest.er1
6266 cat conftest.err >&5
6267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6268 (exit $ac_status); } && {
6269 test -z "$ac_c_werror_flag" ||
6270 test ! -s conftest.err
6271 } && test -s conftest.$ac_objext; then
6272 ac_cv_header_sys_wait_h=yes
6273 else
6274 echo "$as_me: failed program was:" >&5
6275 sed 's/^/| /' conftest.$ac_ext >&5
6277 ac_cv_header_sys_wait_h=no
6280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6282 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6283 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6284 if test $ac_cv_header_sys_wait_h = yes; then
6286 cat >>confdefs.h <<\_ACEOF
6287 #define HAVE_SYS_WAIT_H 1
6288 _ACEOF
6292 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6293 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6294 if test "${ac_cv_header_time+set}" = set; then
6295 echo $ECHO_N "(cached) $ECHO_C" >&6
6296 else
6297 cat >conftest.$ac_ext <<_ACEOF
6298 /* confdefs.h. */
6299 _ACEOF
6300 cat confdefs.h >>conftest.$ac_ext
6301 cat >>conftest.$ac_ext <<_ACEOF
6302 /* end confdefs.h. */
6303 #include <sys/types.h>
6304 #include <sys/time.h>
6305 #include <time.h>
6308 main ()
6310 if ((struct tm *) 0)
6311 return 0;
6313 return 0;
6315 _ACEOF
6316 rm -f conftest.$ac_objext
6317 if { (ac_try="$ac_compile"
6318 case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321 esac
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_compile") 2>conftest.er1
6324 ac_status=$?
6325 grep -v '^ *+' conftest.er1 >conftest.err
6326 rm -f conftest.er1
6327 cat conftest.err >&5
6328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6329 (exit $ac_status); } && {
6330 test -z "$ac_c_werror_flag" ||
6331 test ! -s conftest.err
6332 } && test -s conftest.$ac_objext; then
6333 ac_cv_header_time=yes
6334 else
6335 echo "$as_me: failed program was:" >&5
6336 sed 's/^/| /' conftest.$ac_ext >&5
6338 ac_cv_header_time=no
6341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6343 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6344 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6345 if test $ac_cv_header_time = yes; then
6347 cat >>confdefs.h <<\_ACEOF
6348 #define TIME_WITH_SYS_TIME 1
6349 _ACEOF
6353 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6354 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6355 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 else
6358 cat >conftest.$ac_ext <<_ACEOF
6359 /* confdefs.h. */
6360 _ACEOF
6361 cat confdefs.h >>conftest.$ac_ext
6362 cat >>conftest.$ac_ext <<_ACEOF
6363 /* end confdefs.h. */
6364 $ac_includes_default
6366 main ()
6368 static struct stat ac_aggr;
6369 if (ac_aggr.st_blksize)
6370 return 0;
6372 return 0;
6374 _ACEOF
6375 rm -f conftest.$ac_objext
6376 if { (ac_try="$ac_compile"
6377 case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380 esac
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_compile") 2>conftest.er1
6383 ac_status=$?
6384 grep -v '^ *+' conftest.er1 >conftest.err
6385 rm -f conftest.er1
6386 cat conftest.err >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } && {
6389 test -z "$ac_c_werror_flag" ||
6390 test ! -s conftest.err
6391 } && test -s conftest.$ac_objext; then
6392 ac_cv_member_struct_stat_st_blksize=yes
6393 else
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 cat >conftest.$ac_ext <<_ACEOF
6398 /* confdefs.h. */
6399 _ACEOF
6400 cat confdefs.h >>conftest.$ac_ext
6401 cat >>conftest.$ac_ext <<_ACEOF
6402 /* end confdefs.h. */
6403 $ac_includes_default
6405 main ()
6407 static struct stat ac_aggr;
6408 if (sizeof ac_aggr.st_blksize)
6409 return 0;
6411 return 0;
6413 _ACEOF
6414 rm -f conftest.$ac_objext
6415 if { (ac_try="$ac_compile"
6416 case "(($ac_try" in
6417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6418 *) ac_try_echo=$ac_try;;
6419 esac
6420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6421 (eval "$ac_compile") 2>conftest.er1
6422 ac_status=$?
6423 grep -v '^ *+' conftest.er1 >conftest.err
6424 rm -f conftest.er1
6425 cat conftest.err >&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } && {
6428 test -z "$ac_c_werror_flag" ||
6429 test ! -s conftest.err
6430 } && test -s conftest.$ac_objext; then
6431 ac_cv_member_struct_stat_st_blksize=yes
6432 else
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.$ac_ext >&5
6436 ac_cv_member_struct_stat_st_blksize=no
6439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6445 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6446 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6448 cat >>confdefs.h <<_ACEOF
6449 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6450 _ACEOF
6453 cat >>confdefs.h <<\_ACEOF
6454 #define HAVE_ST_BLKSIZE 1
6455 _ACEOF
6460 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6461 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6462 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6463 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 else
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 $ac_includes_default
6473 main ()
6475 static struct stat ac_aggr;
6476 if (ac_aggr.st_blocks)
6477 return 0;
6479 return 0;
6481 _ACEOF
6482 rm -f conftest.$ac_objext
6483 if { (ac_try="$ac_compile"
6484 case "(($ac_try" in
6485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6486 *) ac_try_echo=$ac_try;;
6487 esac
6488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6489 (eval "$ac_compile") 2>conftest.er1
6490 ac_status=$?
6491 grep -v '^ *+' conftest.er1 >conftest.err
6492 rm -f conftest.er1
6493 cat conftest.err >&5
6494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495 (exit $ac_status); } && {
6496 test -z "$ac_c_werror_flag" ||
6497 test ! -s conftest.err
6498 } && test -s conftest.$ac_objext; then
6499 ac_cv_member_struct_stat_st_blocks=yes
6500 else
6501 echo "$as_me: failed program was:" >&5
6502 sed 's/^/| /' conftest.$ac_ext >&5
6504 cat >conftest.$ac_ext <<_ACEOF
6505 /* confdefs.h. */
6506 _ACEOF
6507 cat confdefs.h >>conftest.$ac_ext
6508 cat >>conftest.$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 $ac_includes_default
6512 main ()
6514 static struct stat ac_aggr;
6515 if (sizeof ac_aggr.st_blocks)
6516 return 0;
6518 return 0;
6520 _ACEOF
6521 rm -f conftest.$ac_objext
6522 if { (ac_try="$ac_compile"
6523 case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6526 esac
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_compile") 2>conftest.er1
6529 ac_status=$?
6530 grep -v '^ *+' conftest.er1 >conftest.err
6531 rm -f conftest.er1
6532 cat conftest.err >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } && {
6535 test -z "$ac_c_werror_flag" ||
6536 test ! -s conftest.err
6537 } && test -s conftest.$ac_objext; then
6538 ac_cv_member_struct_stat_st_blocks=yes
6539 else
6540 echo "$as_me: failed program was:" >&5
6541 sed 's/^/| /' conftest.$ac_ext >&5
6543 ac_cv_member_struct_stat_st_blocks=no
6546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6552 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6553 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6555 cat >>confdefs.h <<_ACEOF
6556 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6557 _ACEOF
6560 cat >>confdefs.h <<\_ACEOF
6561 #define HAVE_ST_BLOCKS 1
6562 _ACEOF
6564 else
6565 case " $LIBOBJS " in
6566 *" fileblocks.$ac_objext "* ) ;;
6567 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6569 esac
6574 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6575 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6576 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6578 else
6579 cat >conftest.$ac_ext <<_ACEOF
6580 /* confdefs.h. */
6581 _ACEOF
6582 cat confdefs.h >>conftest.$ac_ext
6583 cat >>conftest.$ac_ext <<_ACEOF
6584 /* end confdefs.h. */
6585 $ac_includes_default
6587 main ()
6589 static struct stat ac_aggr;
6590 if (ac_aggr.st_rdev)
6591 return 0;
6593 return 0;
6595 _ACEOF
6596 rm -f conftest.$ac_objext
6597 if { (ac_try="$ac_compile"
6598 case "(($ac_try" in
6599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6601 esac
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_compile") 2>conftest.er1
6604 ac_status=$?
6605 grep -v '^ *+' conftest.er1 >conftest.err
6606 rm -f conftest.er1
6607 cat conftest.err >&5
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); } && {
6610 test -z "$ac_c_werror_flag" ||
6611 test ! -s conftest.err
6612 } && test -s conftest.$ac_objext; then
6613 ac_cv_member_struct_stat_st_rdev=yes
6614 else
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6618 cat >conftest.$ac_ext <<_ACEOF
6619 /* confdefs.h. */
6620 _ACEOF
6621 cat confdefs.h >>conftest.$ac_ext
6622 cat >>conftest.$ac_ext <<_ACEOF
6623 /* end confdefs.h. */
6624 $ac_includes_default
6626 main ()
6628 static struct stat ac_aggr;
6629 if (sizeof ac_aggr.st_rdev)
6630 return 0;
6632 return 0;
6634 _ACEOF
6635 rm -f conftest.$ac_objext
6636 if { (ac_try="$ac_compile"
6637 case "(($ac_try" in
6638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6640 esac
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_compile") 2>conftest.er1
6643 ac_status=$?
6644 grep -v '^ *+' conftest.er1 >conftest.err
6645 rm -f conftest.er1
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } && {
6649 test -z "$ac_c_werror_flag" ||
6650 test ! -s conftest.err
6651 } && test -s conftest.$ac_objext; then
6652 ac_cv_member_struct_stat_st_rdev=yes
6653 else
6654 echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6657 ac_cv_member_struct_stat_st_rdev=no
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6665 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6666 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6667 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6669 cat >>confdefs.h <<_ACEOF
6670 #define HAVE_STRUCT_STAT_ST_RDEV 1
6671 _ACEOF
6674 cat >>confdefs.h <<\_ACEOF
6675 #define HAVE_ST_RDEV 1
6676 _ACEOF
6681 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6682 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6683 if test "${ac_cv_struct_tm+set}" = set; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6685 else
6686 cat >conftest.$ac_ext <<_ACEOF
6687 /* confdefs.h. */
6688 _ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #include <sys/types.h>
6693 #include <time.h>
6696 main ()
6698 struct tm tm;
6699 int *p = &tm.tm_sec;
6700 return !p;
6702 return 0;
6704 _ACEOF
6705 rm -f conftest.$ac_objext
6706 if { (ac_try="$ac_compile"
6707 case "(($ac_try" in
6708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6709 *) ac_try_echo=$ac_try;;
6710 esac
6711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6712 (eval "$ac_compile") 2>conftest.er1
6713 ac_status=$?
6714 grep -v '^ *+' conftest.er1 >conftest.err
6715 rm -f conftest.er1
6716 cat conftest.err >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && {
6719 test -z "$ac_c_werror_flag" ||
6720 test ! -s conftest.err
6721 } && test -s conftest.$ac_objext; then
6722 ac_cv_struct_tm=time.h
6723 else
6724 echo "$as_me: failed program was:" >&5
6725 sed 's/^/| /' conftest.$ac_ext >&5
6727 ac_cv_struct_tm=sys/time.h
6730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6733 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6734 if test $ac_cv_struct_tm = sys/time.h; then
6736 cat >>confdefs.h <<\_ACEOF
6737 #define TM_IN_SYS_TIME 1
6738 _ACEOF
6742 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6743 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6744 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747 cat >conftest.$ac_ext <<_ACEOF
6748 /* confdefs.h. */
6749 _ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 #include <sys/types.h>
6754 #include <$ac_cv_struct_tm>
6758 main ()
6760 static struct tm ac_aggr;
6761 if (ac_aggr.tm_zone)
6762 return 0;
6764 return 0;
6766 _ACEOF
6767 rm -f conftest.$ac_objext
6768 if { (ac_try="$ac_compile"
6769 case "(($ac_try" in
6770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771 *) ac_try_echo=$ac_try;;
6772 esac
6773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6774 (eval "$ac_compile") 2>conftest.er1
6775 ac_status=$?
6776 grep -v '^ *+' conftest.er1 >conftest.err
6777 rm -f conftest.er1
6778 cat conftest.err >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } && {
6781 test -z "$ac_c_werror_flag" ||
6782 test ! -s conftest.err
6783 } && test -s conftest.$ac_objext; then
6784 ac_cv_member_struct_tm_tm_zone=yes
6785 else
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6789 cat >conftest.$ac_ext <<_ACEOF
6790 /* confdefs.h. */
6791 _ACEOF
6792 cat confdefs.h >>conftest.$ac_ext
6793 cat >>conftest.$ac_ext <<_ACEOF
6794 /* end confdefs.h. */
6795 #include <sys/types.h>
6796 #include <$ac_cv_struct_tm>
6800 main ()
6802 static struct tm ac_aggr;
6803 if (sizeof ac_aggr.tm_zone)
6804 return 0;
6806 return 0;
6808 _ACEOF
6809 rm -f conftest.$ac_objext
6810 if { (ac_try="$ac_compile"
6811 case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814 esac
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_compile") 2>conftest.er1
6817 ac_status=$?
6818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest.$ac_objext; then
6826 ac_cv_member_struct_tm_tm_zone=yes
6827 else
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6831 ac_cv_member_struct_tm_tm_zone=no
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6839 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6840 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6841 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6843 cat >>confdefs.h <<_ACEOF
6844 #define HAVE_STRUCT_TM_TM_ZONE 1
6845 _ACEOF
6850 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6852 cat >>confdefs.h <<\_ACEOF
6853 #define HAVE_TM_ZONE 1
6854 _ACEOF
6856 else
6857 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6858 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6859 if test "${ac_cv_have_decl_tzname+set}" = set; then
6860 echo $ECHO_N "(cached) $ECHO_C" >&6
6861 else
6862 cat >conftest.$ac_ext <<_ACEOF
6863 /* confdefs.h. */
6864 _ACEOF
6865 cat confdefs.h >>conftest.$ac_ext
6866 cat >>conftest.$ac_ext <<_ACEOF
6867 /* end confdefs.h. */
6868 #include <time.h>
6871 main ()
6873 #ifndef tzname
6874 (void) tzname;
6875 #endif
6878 return 0;
6880 _ACEOF
6881 rm -f conftest.$ac_objext
6882 if { (ac_try="$ac_compile"
6883 case "(($ac_try" in
6884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6885 *) ac_try_echo=$ac_try;;
6886 esac
6887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6888 (eval "$ac_compile") 2>conftest.er1
6889 ac_status=$?
6890 grep -v '^ *+' conftest.er1 >conftest.err
6891 rm -f conftest.er1
6892 cat conftest.err >&5
6893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894 (exit $ac_status); } && {
6895 test -z "$ac_c_werror_flag" ||
6896 test ! -s conftest.err
6897 } && test -s conftest.$ac_objext; then
6898 ac_cv_have_decl_tzname=yes
6899 else
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6903 ac_cv_have_decl_tzname=no
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6908 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6909 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6910 if test $ac_cv_have_decl_tzname = yes; then
6912 cat >>confdefs.h <<_ACEOF
6913 #define HAVE_DECL_TZNAME 1
6914 _ACEOF
6917 else
6918 cat >>confdefs.h <<_ACEOF
6919 #define HAVE_DECL_TZNAME 0
6920 _ACEOF
6926 { echo "$as_me:$LINENO: checking for tzname" >&5
6927 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6928 if test "${ac_cv_var_tzname+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931 cat >conftest.$ac_ext <<_ACEOF
6932 /* confdefs.h. */
6933 _ACEOF
6934 cat confdefs.h >>conftest.$ac_ext
6935 cat >>conftest.$ac_ext <<_ACEOF
6936 /* end confdefs.h. */
6937 #include <time.h>
6938 #if !HAVE_DECL_TZNAME
6939 extern char *tzname[];
6940 #endif
6943 main ()
6945 return tzname[0][0];
6947 return 0;
6949 _ACEOF
6950 rm -f conftest.$ac_objext conftest$ac_exeext
6951 if { (ac_try="$ac_link"
6952 case "(($ac_try" in
6953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954 *) ac_try_echo=$ac_try;;
6955 esac
6956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957 (eval "$ac_link") 2>conftest.er1
6958 ac_status=$?
6959 grep -v '^ *+' conftest.er1 >conftest.err
6960 rm -f conftest.er1
6961 cat conftest.err >&5
6962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963 (exit $ac_status); } && {
6964 test -z "$ac_c_werror_flag" ||
6965 test ! -s conftest.err
6966 } && test -s conftest$ac_exeext &&
6967 $as_test_x conftest$ac_exeext; then
6968 ac_cv_var_tzname=yes
6969 else
6970 echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6973 ac_cv_var_tzname=no
6976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6977 conftest$ac_exeext conftest.$ac_ext
6979 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6980 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
6981 if test $ac_cv_var_tzname = yes; then
6983 cat >>confdefs.h <<\_ACEOF
6984 #define HAVE_TZNAME 1
6985 _ACEOF
6990 { echo "$as_me:$LINENO: checking for off_t" >&5
6991 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6992 if test "${ac_cv_type_off_t+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6994 else
6995 cat >conftest.$ac_ext <<_ACEOF
6996 /* confdefs.h. */
6997 _ACEOF
6998 cat confdefs.h >>conftest.$ac_ext
6999 cat >>conftest.$ac_ext <<_ACEOF
7000 /* end confdefs.h. */
7001 $ac_includes_default
7002 typedef off_t ac__type_new_;
7004 main ()
7006 if ((ac__type_new_ *) 0)
7007 return 0;
7008 if (sizeof (ac__type_new_))
7009 return 0;
7011 return 0;
7013 _ACEOF
7014 rm -f conftest.$ac_objext
7015 if { (ac_try="$ac_compile"
7016 case "(($ac_try" in
7017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7018 *) ac_try_echo=$ac_try;;
7019 esac
7020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7021 (eval "$ac_compile") 2>conftest.er1
7022 ac_status=$?
7023 grep -v '^ *+' conftest.er1 >conftest.err
7024 rm -f conftest.er1
7025 cat conftest.err >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } && {
7028 test -z "$ac_c_werror_flag" ||
7029 test ! -s conftest.err
7030 } && test -s conftest.$ac_objext; then
7031 ac_cv_type_off_t=yes
7032 else
7033 echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7036 ac_cv_type_off_t=no
7039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7042 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7043 if test $ac_cv_type_off_t = yes; then
7045 else
7047 cat >>confdefs.h <<_ACEOF
7048 #define off_t long int
7049 _ACEOF
7053 { echo "$as_me:$LINENO: checking for pid_t" >&5
7054 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7055 if test "${ac_cv_type_pid_t+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7057 else
7058 cat >conftest.$ac_ext <<_ACEOF
7059 /* confdefs.h. */
7060 _ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 $ac_includes_default
7065 typedef pid_t ac__type_new_;
7067 main ()
7069 if ((ac__type_new_ *) 0)
7070 return 0;
7071 if (sizeof (ac__type_new_))
7072 return 0;
7074 return 0;
7076 _ACEOF
7077 rm -f conftest.$ac_objext
7078 if { (ac_try="$ac_compile"
7079 case "(($ac_try" in
7080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7081 *) ac_try_echo=$ac_try;;
7082 esac
7083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7084 (eval "$ac_compile") 2>conftest.er1
7085 ac_status=$?
7086 grep -v '^ *+' conftest.er1 >conftest.err
7087 rm -f conftest.er1
7088 cat conftest.err >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); } && {
7091 test -z "$ac_c_werror_flag" ||
7092 test ! -s conftest.err
7093 } && test -s conftest.$ac_objext; then
7094 ac_cv_type_pid_t=yes
7095 else
7096 echo "$as_me: failed program was:" >&5
7097 sed 's/^/| /' conftest.$ac_ext >&5
7099 ac_cv_type_pid_t=no
7102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7105 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7106 if test $ac_cv_type_pid_t = yes; then
7108 else
7110 cat >>confdefs.h <<_ACEOF
7111 #define pid_t int
7112 _ACEOF
7116 { echo "$as_me:$LINENO: checking for size_t" >&5
7117 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7118 if test "${ac_cv_type_size_t+set}" = set; then
7119 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 else
7121 cat >conftest.$ac_ext <<_ACEOF
7122 /* confdefs.h. */
7123 _ACEOF
7124 cat confdefs.h >>conftest.$ac_ext
7125 cat >>conftest.$ac_ext <<_ACEOF
7126 /* end confdefs.h. */
7127 $ac_includes_default
7128 typedef size_t ac__type_new_;
7130 main ()
7132 if ((ac__type_new_ *) 0)
7133 return 0;
7134 if (sizeof (ac__type_new_))
7135 return 0;
7137 return 0;
7139 _ACEOF
7140 rm -f conftest.$ac_objext
7141 if { (ac_try="$ac_compile"
7142 case "(($ac_try" in
7143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7144 *) ac_try_echo=$ac_try;;
7145 esac
7146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7147 (eval "$ac_compile") 2>conftest.er1
7148 ac_status=$?
7149 grep -v '^ *+' conftest.er1 >conftest.err
7150 rm -f conftest.er1
7151 cat conftest.err >&5
7152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7153 (exit $ac_status); } && {
7154 test -z "$ac_c_werror_flag" ||
7155 test ! -s conftest.err
7156 } && test -s conftest.$ac_objext; then
7157 ac_cv_type_size_t=yes
7158 else
7159 echo "$as_me: failed program was:" >&5
7160 sed 's/^/| /' conftest.$ac_ext >&5
7162 ac_cv_type_size_t=no
7165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7168 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7169 if test $ac_cv_type_size_t = yes; then
7171 else
7173 cat >>confdefs.h <<_ACEOF
7174 #define size_t unsigned int
7175 _ACEOF
7179 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7180 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7181 if test "${ac_cv_type_uid_t+set}" = set; then
7182 echo $ECHO_N "(cached) $ECHO_C" >&6
7183 else
7184 cat >conftest.$ac_ext <<_ACEOF
7185 /* confdefs.h. */
7186 _ACEOF
7187 cat confdefs.h >>conftest.$ac_ext
7188 cat >>conftest.$ac_ext <<_ACEOF
7189 /* end confdefs.h. */
7190 #include <sys/types.h>
7192 _ACEOF
7193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7194 $EGREP "uid_t" >/dev/null 2>&1; then
7195 ac_cv_type_uid_t=yes
7196 else
7197 ac_cv_type_uid_t=no
7199 rm -f conftest*
7202 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7203 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7204 if test $ac_cv_type_uid_t = no; then
7206 cat >>confdefs.h <<\_ACEOF
7207 #define uid_t int
7208 _ACEOF
7211 cat >>confdefs.h <<\_ACEOF
7212 #define gid_t int
7213 _ACEOF
7218 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7219 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7220 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7221 echo $ECHO_N "(cached) $ECHO_C" >&6
7222 else
7223 cat >conftest.$ac_ext <<_ACEOF
7224 /* confdefs.h. */
7225 _ACEOF
7226 cat confdefs.h >>conftest.$ac_ext
7227 cat >>conftest.$ac_ext <<_ACEOF
7228 /* end confdefs.h. */
7229 $ac_includes_default
7231 main ()
7233 static struct tm ac_aggr;
7234 if (ac_aggr.tm_gmtoff)
7235 return 0;
7237 return 0;
7239 _ACEOF
7240 rm -f conftest.$ac_objext
7241 if { (ac_try="$ac_compile"
7242 case "(($ac_try" in
7243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7244 *) ac_try_echo=$ac_try;;
7245 esac
7246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7247 (eval "$ac_compile") 2>conftest.er1
7248 ac_status=$?
7249 grep -v '^ *+' conftest.er1 >conftest.err
7250 rm -f conftest.er1
7251 cat conftest.err >&5
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); } && {
7254 test -z "$ac_c_werror_flag" ||
7255 test ! -s conftest.err
7256 } && test -s conftest.$ac_objext; then
7257 ac_cv_member_struct_tm_tm_gmtoff=yes
7258 else
7259 echo "$as_me: failed program was:" >&5
7260 sed 's/^/| /' conftest.$ac_ext >&5
7262 cat >conftest.$ac_ext <<_ACEOF
7263 /* confdefs.h. */
7264 _ACEOF
7265 cat confdefs.h >>conftest.$ac_ext
7266 cat >>conftest.$ac_ext <<_ACEOF
7267 /* end confdefs.h. */
7268 $ac_includes_default
7270 main ()
7272 static struct tm ac_aggr;
7273 if (sizeof ac_aggr.tm_gmtoff)
7274 return 0;
7276 return 0;
7278 _ACEOF
7279 rm -f conftest.$ac_objext
7280 if { (ac_try="$ac_compile"
7281 case "(($ac_try" in
7282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7283 *) ac_try_echo=$ac_try;;
7284 esac
7285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7286 (eval "$ac_compile") 2>conftest.er1
7287 ac_status=$?
7288 grep -v '^ *+' conftest.er1 >conftest.err
7289 rm -f conftest.er1
7290 cat conftest.err >&5
7291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7292 (exit $ac_status); } && {
7293 test -z "$ac_c_werror_flag" ||
7294 test ! -s conftest.err
7295 } && test -s conftest.$ac_objext; then
7296 ac_cv_member_struct_tm_tm_gmtoff=yes
7297 else
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.$ac_ext >&5
7301 ac_cv_member_struct_tm_tm_gmtoff=no
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7310 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7311 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7313 cat >>confdefs.h <<_ACEOF
7314 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7315 _ACEOF
7321 # Look for some functions
7336 for ac_func in getpagesize kqueue statfs statvfs \
7337 clone kse_create rfork_thread thr_create sa_register \
7338 getcontext makecontext setcontext sigaltstack swapcontext
7340 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7341 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7342 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7343 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7345 else
7346 cat >conftest.$ac_ext <<_ACEOF
7347 /* confdefs.h. */
7348 _ACEOF
7349 cat confdefs.h >>conftest.$ac_ext
7350 cat >>conftest.$ac_ext <<_ACEOF
7351 /* end confdefs.h. */
7352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7354 #define $ac_func innocuous_$ac_func
7356 /* System header to define __stub macros and hopefully few prototypes,
7357 which can conflict with char $ac_func (); below.
7358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7359 <limits.h> exists even on freestanding compilers. */
7361 #ifdef __STDC__
7362 # include <limits.h>
7363 #else
7364 # include <assert.h>
7365 #endif
7367 #undef $ac_func
7369 /* Override any GCC internal prototype to avoid an error.
7370 Use char because int might match the return type of a GCC
7371 builtin and then its argument prototype would still apply. */
7372 #ifdef __cplusplus
7373 extern "C"
7374 #endif
7375 char $ac_func ();
7376 /* The GNU C library defines this for functions which it implements
7377 to always fail with ENOSYS. Some functions are actually named
7378 something starting with __ and the normal name is an alias. */
7379 #if defined __stub_$ac_func || defined __stub___$ac_func
7380 choke me
7381 #endif
7384 main ()
7386 return $ac_func ();
7388 return 0;
7390 _ACEOF
7391 rm -f conftest.$ac_objext conftest$ac_exeext
7392 if { (ac_try="$ac_link"
7393 case "(($ac_try" in
7394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7395 *) ac_try_echo=$ac_try;;
7396 esac
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_link") 2>conftest.er1
7399 ac_status=$?
7400 grep -v '^ *+' conftest.er1 >conftest.err
7401 rm -f conftest.er1
7402 cat conftest.err >&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } && {
7405 test -z "$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7407 } && test -s conftest$ac_exeext &&
7408 $as_test_x conftest$ac_exeext; then
7409 eval "$as_ac_var=yes"
7410 else
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7414 eval "$as_ac_var=no"
7417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7418 conftest$ac_exeext conftest.$ac_ext
7420 ac_res=`eval echo '${'$as_ac_var'}'`
7421 { echo "$as_me:$LINENO: result: $ac_res" >&5
7422 echo "${ECHO_T}$ac_res" >&6; }
7423 if test `eval echo '${'$as_ac_var'}'` = yes; then
7424 cat >>confdefs.h <<_ACEOF
7425 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7426 _ACEOF
7429 done
7434 for ac_header in stdlib.h unistd.h
7436 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7440 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 ac_res=`eval echo '${'$as_ac_Header'}'`
7444 { echo "$as_me:$LINENO: result: $ac_res" >&5
7445 echo "${ECHO_T}$ac_res" >&6; }
7446 else
7447 # Is the header compilable?
7448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h. */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 $ac_includes_default
7457 #include <$ac_header>
7458 _ACEOF
7459 rm -f conftest.$ac_objext
7460 if { (ac_try="$ac_compile"
7461 case "(($ac_try" in
7462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7463 *) ac_try_echo=$ac_try;;
7464 esac
7465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7466 (eval "$ac_compile") 2>conftest.er1
7467 ac_status=$?
7468 grep -v '^ *+' conftest.er1 >conftest.err
7469 rm -f conftest.er1
7470 cat conftest.err >&5
7471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7472 (exit $ac_status); } && {
7473 test -z "$ac_c_werror_flag" ||
7474 test ! -s conftest.err
7475 } && test -s conftest.$ac_objext; then
7476 ac_header_compiler=yes
7477 else
7478 echo "$as_me: failed program was:" >&5
7479 sed 's/^/| /' conftest.$ac_ext >&5
7481 ac_header_compiler=no
7484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7485 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7486 echo "${ECHO_T}$ac_header_compiler" >&6; }
7488 # Is the header present?
7489 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7490 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7491 cat >conftest.$ac_ext <<_ACEOF
7492 /* confdefs.h. */
7493 _ACEOF
7494 cat confdefs.h >>conftest.$ac_ext
7495 cat >>conftest.$ac_ext <<_ACEOF
7496 /* end confdefs.h. */
7497 #include <$ac_header>
7498 _ACEOF
7499 if { (ac_try="$ac_cpp conftest.$ac_ext"
7500 case "(($ac_try" in
7501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502 *) ac_try_echo=$ac_try;;
7503 esac
7504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7505 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7506 ac_status=$?
7507 grep -v '^ *+' conftest.er1 >conftest.err
7508 rm -f conftest.er1
7509 cat conftest.err >&5
7510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7511 (exit $ac_status); } >/dev/null && {
7512 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7513 test ! -s conftest.err
7514 }; then
7515 ac_header_preproc=yes
7516 else
7517 echo "$as_me: failed program was:" >&5
7518 sed 's/^/| /' conftest.$ac_ext >&5
7520 ac_header_preproc=no
7523 rm -f conftest.err conftest.$ac_ext
7524 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7525 echo "${ECHO_T}$ac_header_preproc" >&6; }
7527 # So? What about this header?
7528 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7529 yes:no: )
7530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7533 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7534 ac_header_preproc=yes
7536 no:yes:* )
7537 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7538 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7539 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7540 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7541 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7542 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7543 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7544 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7546 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7547 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7548 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7551 esac
7552 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7553 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7554 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 else
7557 eval "$as_ac_Header=\$ac_header_preproc"
7559 ac_res=`eval echo '${'$as_ac_Header'}'`
7560 { echo "$as_me:$LINENO: result: $ac_res" >&5
7561 echo "${ECHO_T}$ac_res" >&6; }
7564 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7565 cat >>confdefs.h <<_ACEOF
7566 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7567 _ACEOF
7571 done
7574 for ac_func in getpagesize
7576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7580 echo $ECHO_N "(cached) $ECHO_C" >&6
7581 else
7582 cat >conftest.$ac_ext <<_ACEOF
7583 /* confdefs.h. */
7584 _ACEOF
7585 cat confdefs.h >>conftest.$ac_ext
7586 cat >>conftest.$ac_ext <<_ACEOF
7587 /* end confdefs.h. */
7588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7590 #define $ac_func innocuous_$ac_func
7592 /* System header to define __stub macros and hopefully few prototypes,
7593 which can conflict with char $ac_func (); below.
7594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7595 <limits.h> exists even on freestanding compilers. */
7597 #ifdef __STDC__
7598 # include <limits.h>
7599 #else
7600 # include <assert.h>
7601 #endif
7603 #undef $ac_func
7605 /* Override any GCC internal prototype to avoid an error.
7606 Use char because int might match the return type of a GCC
7607 builtin and then its argument prototype would still apply. */
7608 #ifdef __cplusplus
7609 extern "C"
7610 #endif
7611 char $ac_func ();
7612 /* The GNU C library defines this for functions which it implements
7613 to always fail with ENOSYS. Some functions are actually named
7614 something starting with __ and the normal name is an alias. */
7615 #if defined __stub_$ac_func || defined __stub___$ac_func
7616 choke me
7617 #endif
7620 main ()
7622 return $ac_func ();
7624 return 0;
7626 _ACEOF
7627 rm -f conftest.$ac_objext conftest$ac_exeext
7628 if { (ac_try="$ac_link"
7629 case "(($ac_try" in
7630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7631 *) ac_try_echo=$ac_try;;
7632 esac
7633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7634 (eval "$ac_link") 2>conftest.er1
7635 ac_status=$?
7636 grep -v '^ *+' conftest.er1 >conftest.err
7637 rm -f conftest.er1
7638 cat conftest.err >&5
7639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7640 (exit $ac_status); } && {
7641 test -z "$ac_c_werror_flag" ||
7642 test ! -s conftest.err
7643 } && test -s conftest$ac_exeext &&
7644 $as_test_x conftest$ac_exeext; then
7645 eval "$as_ac_var=yes"
7646 else
7647 echo "$as_me: failed program was:" >&5
7648 sed 's/^/| /' conftest.$ac_ext >&5
7650 eval "$as_ac_var=no"
7653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7654 conftest$ac_exeext conftest.$ac_ext
7656 ac_res=`eval echo '${'$as_ac_var'}'`
7657 { echo "$as_me:$LINENO: result: $ac_res" >&5
7658 echo "${ECHO_T}$ac_res" >&6; }
7659 if test `eval echo '${'$as_ac_var'}'` = yes; then
7660 cat >>confdefs.h <<_ACEOF
7661 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7662 _ACEOF
7665 done
7667 { echo "$as_me:$LINENO: checking for working mmap" >&5
7668 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7669 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672 if test "$cross_compiling" = yes; then
7673 ac_cv_func_mmap_fixed_mapped=no
7674 else
7675 cat >conftest.$ac_ext <<_ACEOF
7676 /* confdefs.h. */
7677 _ACEOF
7678 cat confdefs.h >>conftest.$ac_ext
7679 cat >>conftest.$ac_ext <<_ACEOF
7680 /* end confdefs.h. */
7681 $ac_includes_default
7682 /* malloc might have been renamed as rpl_malloc. */
7683 #undef malloc
7685 /* Thanks to Mike Haertel and Jim Avera for this test.
7686 Here is a matrix of mmap possibilities:
7687 mmap private not fixed
7688 mmap private fixed at somewhere currently unmapped
7689 mmap private fixed at somewhere already mapped
7690 mmap shared not fixed
7691 mmap shared fixed at somewhere currently unmapped
7692 mmap shared fixed at somewhere already mapped
7693 For private mappings, we should verify that changes cannot be read()
7694 back from the file, nor mmap's back from the file at a different
7695 address. (There have been systems where private was not correctly
7696 implemented like the infamous i386 svr4.0, and systems where the
7697 VM page cache was not coherent with the file system buffer cache
7698 like early versions of FreeBSD and possibly contemporary NetBSD.)
7699 For shared mappings, we should conversely verify that changes get
7700 propagated back to all the places they're supposed to be.
7702 Grep wants private fixed already mapped.
7703 The main things grep needs to know about mmap are:
7704 * does it exist and is it safe to write into the mmap'd area
7705 * how to use it (BSD variants) */
7707 #include <fcntl.h>
7708 #include <sys/mman.h>
7710 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7711 char *malloc ();
7712 #endif
7714 /* This mess was copied from the GNU getpagesize.h. */
7715 #ifndef HAVE_GETPAGESIZE
7716 /* Assume that all systems that can run configure have sys/param.h. */
7717 # ifndef HAVE_SYS_PARAM_H
7718 # define HAVE_SYS_PARAM_H 1
7719 # endif
7721 # ifdef _SC_PAGESIZE
7722 # define getpagesize() sysconf(_SC_PAGESIZE)
7723 # else /* no _SC_PAGESIZE */
7724 # ifdef HAVE_SYS_PARAM_H
7725 # include <sys/param.h>
7726 # ifdef EXEC_PAGESIZE
7727 # define getpagesize() EXEC_PAGESIZE
7728 # else /* no EXEC_PAGESIZE */
7729 # ifdef NBPG
7730 # define getpagesize() NBPG * CLSIZE
7731 # ifndef CLSIZE
7732 # define CLSIZE 1
7733 # endif /* no CLSIZE */
7734 # else /* no NBPG */
7735 # ifdef NBPC
7736 # define getpagesize() NBPC
7737 # else /* no NBPC */
7738 # ifdef PAGESIZE
7739 # define getpagesize() PAGESIZE
7740 # endif /* PAGESIZE */
7741 # endif /* no NBPC */
7742 # endif /* no NBPG */
7743 # endif /* no EXEC_PAGESIZE */
7744 # else /* no HAVE_SYS_PARAM_H */
7745 # define getpagesize() 8192 /* punt totally */
7746 # endif /* no HAVE_SYS_PARAM_H */
7747 # endif /* no _SC_PAGESIZE */
7749 #endif /* no HAVE_GETPAGESIZE */
7752 main ()
7754 char *data, *data2, *data3;
7755 int i, pagesize;
7756 int fd;
7758 pagesize = getpagesize ();
7760 /* First, make a file with some known garbage in it. */
7761 data = (char *) malloc (pagesize);
7762 if (!data)
7763 return 1;
7764 for (i = 0; i < pagesize; ++i)
7765 *(data + i) = rand ();
7766 umask (0);
7767 fd = creat ("conftest.mmap", 0600);
7768 if (fd < 0)
7769 return 1;
7770 if (write (fd, data, pagesize) != pagesize)
7771 return 1;
7772 close (fd);
7774 /* Next, try to mmap the file at a fixed address which already has
7775 something else allocated at it. If we can, also make sure that
7776 we see the same garbage. */
7777 fd = open ("conftest.mmap", O_RDWR);
7778 if (fd < 0)
7779 return 1;
7780 data2 = (char *) malloc (2 * pagesize);
7781 if (!data2)
7782 return 1;
7783 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7784 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7785 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7786 return 1;
7787 for (i = 0; i < pagesize; ++i)
7788 if (*(data + i) != *(data2 + i))
7789 return 1;
7791 /* Finally, make sure that changes to the mapped area do not
7792 percolate back to the file as seen by read(). (This is a bug on
7793 some variants of i386 svr4.0.) */
7794 for (i = 0; i < pagesize; ++i)
7795 *(data2 + i) = *(data2 + i) + 1;
7796 data3 = (char *) malloc (pagesize);
7797 if (!data3)
7798 return 1;
7799 if (read (fd, data3, pagesize) != pagesize)
7800 return 1;
7801 for (i = 0; i < pagesize; ++i)
7802 if (*(data + i) != *(data3 + i))
7803 return 1;
7804 close (fd);
7805 return 0;
7807 _ACEOF
7808 rm -f conftest$ac_exeext
7809 if { (ac_try="$ac_link"
7810 case "(($ac_try" in
7811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7812 *) ac_try_echo=$ac_try;;
7813 esac
7814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7815 (eval "$ac_link") 2>&5
7816 ac_status=$?
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7819 { (case "(($ac_try" in
7820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7821 *) ac_try_echo=$ac_try;;
7822 esac
7823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7824 (eval "$ac_try") 2>&5
7825 ac_status=$?
7826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7827 (exit $ac_status); }; }; then
7828 ac_cv_func_mmap_fixed_mapped=yes
7829 else
7830 echo "$as_me: program exited with status $ac_status" >&5
7831 echo "$as_me: failed program was:" >&5
7832 sed 's/^/| /' conftest.$ac_ext >&5
7834 ( exit $ac_status )
7835 ac_cv_func_mmap_fixed_mapped=no
7837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7842 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7843 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7844 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7846 cat >>confdefs.h <<\_ACEOF
7847 #define HAVE_MMAP 1
7848 _ACEOF
7851 rm -f conftest.mmap
7856 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7857 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7858 aros_config_ldflags=""
7860 aros_shared_default=yes
7862 aros_shared_cflags="-fPIC"
7863 aros_shared_aflags=""
7864 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7865 aros_kernel_ldflags="-Wl,-rpath,./lib"
7867 aros_target_ar_flags="cr"
7868 aros_target_nm_flags="-C -ul"
7869 aros_target_strip_flags="--strip-unneeded -R.comment"
7871 aros_compiler_libs=
7873 aros_target_genmap="-Wl,-Map -Xlinker"
7875 # Native flavour stuff
7876 aros_bochs_hack="0"
7877 aros_serial_debug="0"
7879 # Palm native flavour stuff
7880 aros_palm_debug_hack="0"
7882 # Unix flavour stuff
7883 aros_nesting_supervisor="0"
7885 # Collect-aros stuff: "-ius" to ignore undefined symbols
7886 ignore_undefined_symbols=""
7888 #-----------------------------------------------------------------------------
7891 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7892 # it switched on by default, and we use the host compiler, so it compiles AROS
7893 # code with this enabled resulting in link failures as we don't have support
7894 # for it.
7896 # We use two methods to disable it. For the host compiler (used to compile
7897 # some hosted modules), we test to see if the compiler supports stack
7898 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7899 # work on all platforms.
7901 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7902 # (this is done unconditionally, as it should have no effect on compilers
7903 # without the stack protection feature). This may be specific to the way that
7904 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7905 # strong enough to disable it in a generic way though, so we'll live with it
7906 # until another vendor ships GCC with it enabled in a different way, and deal
7907 # with it then.
7910 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7911 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7912 save_cflags="$CFLAGS"
7913 CFLAGS="$CFLAGS -fno-stack-protector"
7914 cat >conftest.$ac_ext <<_ACEOF
7915 /* confdefs.h. */
7916 _ACEOF
7917 cat confdefs.h >>conftest.$ac_ext
7918 cat >>conftest.$ac_ext <<_ACEOF
7919 /* end confdefs.h. */
7922 main ()
7926 return 0;
7928 _ACEOF
7929 rm -f conftest.$ac_objext
7930 if { (ac_try="$ac_compile"
7931 case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934 esac
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_compile") 2>conftest.er1
7937 ac_status=$?
7938 grep -v '^ *+' conftest.er1 >conftest.err
7939 rm -f conftest.er1
7940 cat conftest.err >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest.$ac_objext; then
7946 use_no_stack_protector="yes"
7947 else
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 use_no_stack_protector="no"
7954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
7956 echo "${ECHO_T}$use_no_stack_protector" >&6; }
7957 if test "x-$use_no_stack_protector" = "x-yes" ; then
7958 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7960 CFLAGS="$save_cflags"
7963 #-----------------------------------------------------------------------------
7965 # Disable pointer-signedness warnings if the compiler recognises the option
7966 # (this only works for the host compiler at the moment)
7968 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7969 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
7970 save_cflags="$CFLAGS"
7971 CFLAGS="$CFLAGS -Wno-pointer-sign"
7972 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h. */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7980 main ()
7984 return 0;
7986 _ACEOF
7987 rm -f conftest.$ac_objext
7988 if { (ac_try="$ac_compile"
7989 case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992 esac
7993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7994 (eval "$ac_compile") 2>conftest.er1
7995 ac_status=$?
7996 grep -v '^ *+' conftest.er1 >conftest.err
7997 rm -f conftest.er1
7998 cat conftest.err >&5
7999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8000 (exit $ac_status); } && {
8001 test -z "$ac_c_werror_flag" ||
8002 test ! -s conftest.err
8003 } && test -s conftest.$ac_objext; then
8004 use_no_sign_warning="yes"
8005 else
8006 echo "$as_me: failed program was:" >&5
8007 sed 's/^/| /' conftest.$ac_ext >&5
8009 use_no_sign_warning="no"
8012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8013 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8014 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8015 if test "x-$use_no_sign_warning" = "x-yes" ; then
8016 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8018 CFLAGS="$save_cflags"
8020 #-----------------------------------------------------------------------------
8022 { echo "$as_me:$LINENO: checking for type of build" >&5
8023 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8024 # Check whether --enable-build_type was given.
8025 if test "${enable_build_type+set}" = set; then
8026 enableval=$enable_build_type; build_type=$enableval
8027 else
8028 build_type="personal"
8032 if test "$build_type" = "nightly"; then
8033 build_type_string="NIGHTLY"
8034 elif test "$build_type" = "snapshot"; then
8035 build_type_string="SNAPSHOT"
8036 elif test "$build_type" = "milestone"; then
8037 build_type_string="MILESTONE"
8038 elif test "$build_type" = "release"; then
8039 build_type_string="RELEASE"
8040 else
8041 build_type_string="PERSONAL"
8042 build_type="personal"
8045 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8047 { echo "$as_me:$LINENO: result: $build_type" >&5
8048 echo "${ECHO_T}$build_type" >&6; }
8050 #-----------------------------------------------------------------------------
8051 all_debug_types="messages stack mungwall modules symbols"
8053 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8054 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8055 # Check whether --enable-debug was given.
8056 if test "${enable_debug+set}" = set; then
8057 enableval=$enable_debug; debug="$enableval"
8058 else
8059 debug=""
8063 if test "$debug" = "" -o "$debug" = "no"; then
8064 debug="none"
8065 elif test "$debug" = "yes"; then
8066 debug="all"
8069 if test "$debug" = "all" ; then
8070 debug=$all_debug_types
8071 for d in $all_debug_types; do
8072 export aros_${d}_debug="1"
8073 done
8074 else
8075 for d in $all_debug_types; do
8076 export aros_${d}_debug="0"
8077 done
8080 if test "$debug" != "none"; then
8081 debug=`echo $debug | sed s/,/\ /g`
8082 for d in $debug; do
8083 found="0"
8084 for d2 in $all_debug_types; do
8085 if test "$d2" = "$d"; then
8086 found="1"
8087 break
8089 done
8090 if test "$found" = "0"; then
8091 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8092 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8093 { (exit 1); exit 1; }; }
8095 export aros_${d}_debug="1"
8096 done
8097 aros_debug="yes"
8099 { echo "$as_me:$LINENO: result: $debug" >&5
8100 echo "${ECHO_T}$debug" >&6; }
8102 if test "$aros_messages_debug" = "1"; then
8103 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8104 else
8105 aros_messages_debug=""
8107 if test "$aros_symbols_debug" = "1"; then
8108 aros_symbols_debug="-g"
8109 else
8110 aros_symbols_debug=""
8113 # These are the flags to pass when compiling debugged programs
8114 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8115 aros_debug_aflags=""
8116 aros_debug_ldflags="$aros_symbols_debug"
8118 aros_crosstools="no"
8120 #-----------------------------------------------------------------------------
8121 # Checking if we should build crosstools..
8122 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8123 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8124 # Check whether --enable-crosstools was given.
8125 if test "${enable_crosstools+set}" = set; then
8126 enableval=$enable_crosstools; crosstools="$enableval"
8127 else
8128 crosstools="no"
8131 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8132 { echo "$as_me:$LINENO: result: yes" >&5
8133 echo "${ECHO_T}yes" >&6; }
8134 aros_crosstools="yes"
8135 else
8136 { echo "$as_me:$LINENO: result: no" >&5
8137 echo "${ECHO_T}no" >&6; }
8140 #-----------------------------------------------------------------------------
8141 # Checking for distcc and ccache.
8143 # Always apply the transforms in this particular order. Basically you should
8144 # always run 'ccache distcc compiler' in that order for the best performance.
8146 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8147 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8148 # Check whether --enable-distcc was given.
8149 if test "${enable_distcc+set}" = set; then
8150 enableval=$enable_distcc; distcc="$enableval"
8151 else
8152 distcc="no"
8155 if test "$distcc" != "" -a "$distcc" != "no"; then
8156 # AC_CHECK_PROG will print out the result in this case
8157 # Extract the first word of "distcc", so it can be a program name with args.
8158 set dummy distcc; ac_word=$2
8159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8161 if test "${ac_cv_path_DISTCC+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 else
8164 case $DISTCC in
8165 [\\/]* | ?:[\\/]*)
8166 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8170 for as_dir in $PATH
8172 IFS=$as_save_IFS
8173 test -z "$as_dir" && as_dir=.
8174 for ac_exec_ext in '' $ac_executable_extensions; do
8175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8176 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 break 2
8180 done
8181 done
8182 IFS=$as_save_IFS
8184 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8186 esac
8188 DISTCC=$ac_cv_path_DISTCC
8189 if test -n "$DISTCC"; then
8190 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8191 echo "${ECHO_T}$DISTCC" >&6; }
8192 else
8193 { echo "$as_me:$LINENO: result: no" >&5
8194 echo "${ECHO_T}no" >&6; }
8198 else
8199 { echo "$as_me:$LINENO: result: no" >&5
8200 echo "${ECHO_T}no" >&6; }
8203 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8204 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8205 # Check whether --enable-ccache was given.
8206 if test "${enable_ccache+set}" = set; then
8207 enableval=$enable_ccache; ccache="$enableval"
8208 else
8209 ccache="no"
8212 if test "$ccache" != "" -a "$ccache" != "no"; then
8213 # AC_CHECK_PROG will print out the result in this case
8214 # Extract the first word of "ccache", so it can be a program name with args.
8215 set dummy ccache; ac_word=$2
8216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8218 if test "${ac_cv_prog_CCACHE+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 else
8221 if test -n "$CCACHE"; then
8222 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8227 IFS=$as_save_IFS
8228 test -z "$as_dir" && as_dir=.
8229 for ac_exec_ext in '' $ac_executable_extensions; do
8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8231 ac_cv_prog_CCACHE="ccache"
8232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 break 2
8235 done
8236 done
8237 IFS=$as_save_IFS
8241 CCACHE=$ac_cv_prog_CCACHE
8242 if test -n "$CCACHE"; then
8243 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8244 echo "${ECHO_T}$CCACHE" >&6; }
8245 else
8246 { echo "$as_me:$LINENO: result: no" >&5
8247 echo "${ECHO_T}no" >&6; }
8251 else
8252 { echo "$as_me:$LINENO: result: no" >&5
8253 echo "${ECHO_T}no" >&6; }
8256 #-----------------------------------------------------------------------------
8257 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8258 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8260 # Check whether --with-optimization was given.
8261 if test "${with_optimization+set}" = set; then
8262 withval=$with_optimization; optimization="$withval"
8263 else
8264 optimization="unknown"
8267 if test "$optimization" = "unknown"; then
8268 if test "$debug" != "none"; then
8269 optimization="-O0"
8270 else
8271 optimization="-O2"
8274 aros_config_cflags="$aros_config_cflags $optimization"
8275 { echo "$as_me:$LINENO: result: $optimization" >&5
8276 echo "${ECHO_T}$optimization" >&6; }
8278 #-----------------------------------------------------------------------------
8279 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8280 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8281 # Check whether --enable-target_variant was given.
8282 if test "${enable_target_variant+set}" = set; then
8283 enableval=$enable_target_variant; target_variant=$enableval
8284 else
8285 target_variant="none"
8288 if test "$target_variant" = "none"; then
8289 aros_target_variant=""
8290 aros_target_suffix=""
8291 else
8292 aros_target_variant="$target_variant"
8293 aros_target_suffix="-$target_variant"
8295 { echo "$as_me:$LINENO: result: $enableval" >&5
8296 echo "${ECHO_T}$enableval" >&6; }
8298 target_bootloader="none"
8300 #-----------------------------------------------------------------------------
8301 # This is the target configuration switch.
8302 case "$target_os" in
8303 linux*)
8304 aros_target_arch="linux"
8305 case "$target_cpu" in
8306 *m68k*)
8307 aros_target_cpu="m68k"
8308 aros_object_format="m68kelf"
8309 aros_flavour="emulcompat"
8310 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8311 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8312 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8313 gcc_target_cpu="mc68000"
8315 *i?86*)
8316 aros_target_cpu="i386"
8317 aros_object_format="elf_i386"
8318 aros_flavour="emulation"
8319 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8320 aros_default_wbdepth=8
8321 gcc_target_cpu="i386"
8323 *x86_64*)
8324 aros_target_cpu="x86_64"
8325 aros_object_format="elf_x86_64"
8326 aros_flavour="emulation"
8327 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8328 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8329 aros_default_wbdepth=8
8330 gcc_target_cpu="x86_64"
8332 *powerpc*)
8333 aros_target_cpu="ppc"
8334 aros_object_format="elf32ppc"
8335 aros_flavour="emulation"
8336 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8337 aros_default_wbdepth=8
8338 gcc_target_cpu="ppc"
8340 # TODO
8341 # Same as powerpc, but I need this for the nightly build to work again.
8342 # Actually, the nightly should be made working with powerpc target.
8343 # That just was too much work for the moment, another week or two.
8344 *ppc*)
8345 aros_target_cpu="ppc"
8346 aros_object_format="elf32ppc"
8347 aros_flavour="emulation"
8348 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8349 aros_default_wbdepth=8
8350 gcc_target_cpu="ppc"
8353 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8354 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8355 { (exit 1); exit 1; }; }
8357 esac
8361 aros_target_arch="pc"
8362 aros_shared_default="no"
8363 target_bootloader="grub2"
8364 case "$target_cpu" in
8365 *i?86*)
8366 aros_target_cpu="i386"
8369 if test "$aros_object_format" = "" ; then
8370 aros_object_format="elf_i386"
8372 aros_flavour="standalone"
8373 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8374 aros_kernel_ldflags=""
8375 aros_default_wbwidth=640
8376 aros_default_wbheight=480
8377 gcc_target_cpu="i386"
8379 *x86_64*)
8380 aros_target_cpu="x86_64"
8381 aros_serial_debug=1
8382 if test "$aros_object_format" = "" ; then
8383 aros_object_format="elf_x86_64"
8385 aros_flavour="standalone"
8386 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8387 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8388 aros_kernel_ldflags=""
8389 aros_default_wbwidth=640
8390 aros_default_wbheight=480
8391 gcc_target_cpu="x86_64"
8394 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8395 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8396 { (exit 1); exit 1; }; }
8398 esac
8401 prep)
8402 aros_target_arch="prep"
8403 aros_shared_default="no"
8404 aros_target_cpu="ppc"
8405 aros_object_format="elf32ppc"
8406 aros_flavour="ppcnative"
8407 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8408 aros_kernel_ldflags=""
8409 aros_default_wbwidth=640
8410 aros_default_wbheight=480
8411 gcc_target_cpu="ppc"
8414 freebsd*)
8415 aros_target_arch="freebsd"
8416 aros_target_cpu="i386"
8417 aros_flavour="emulation"
8418 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8419 gcc_target_cpu="i386"
8421 aros_target_strip_flags="-x"
8424 darwin*)
8425 aros_target_arch="darwin"
8426 aros_flavour="emulation"
8427 case "$target_cpu" in
8428 *i?86*)
8429 aros_target_cpu="i386"
8430 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8431 gcc_target_cpu="i386"
8432 aros_object_format="elf_i386"
8433 aros_target_strip_flags="-x"
8436 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8437 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8438 { (exit 1); exit 1; }; }
8440 esac
8442 netbsd*)
8443 aros_target_arch="netbsd"
8444 case "$target_cpu" in
8445 *m68k*)
8446 aros_target_cpu="m68k"
8447 aros_object_format="m68kelf"
8448 aros_flavour="emulcompat"
8449 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8450 gcc_target_cpu="mc68000"
8452 *i?86*)
8453 aros_target_cpu="i386"
8454 aros_object_format="elf_i386"
8455 aros_flavour="emulation"
8456 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8457 aros_default_wbdepth=8
8458 gcc_target_cpu="i386"
8461 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8462 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8463 { (exit 1); exit 1; }; }
8465 esac
8466 aros_target_genmap="-Wl,-M -Xlinker >"
8467 aros_flavour="emulation"
8468 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8471 openbsd*)
8472 aros_target_arch="openbsd"
8473 case "$target_cpu" in
8474 *i?86*)
8475 aros_target_cpu="i386"
8476 aros_object_format="elf_i386"
8477 aros_flavour="emulation"
8478 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8479 gcc_target_cpu="i386"
8482 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8483 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8484 { (exit 1); exit 1; }; }
8486 esac
8487 aros_target_genmap="-Wl,-M -Xlinker >"
8488 aros_target_nm_flags="-u"
8489 aros_flavour="emulation"
8492 solaris*)
8493 aros_target_arch="solaris"
8494 case "$target_cpu" in
8495 *i?86*)
8496 aros_target_cpu="i386"
8497 aros_object_format="elf_i386"
8498 aros_flavour="emulation"
8499 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8500 aros_default_wbdepth=8
8501 gcc_target_cpu="i386"
8503 *sparc*)
8504 aros_target_cpu="sparc"
8505 aros_object_format="elf_sparc"
8506 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8507 gcc_target_cpu="sparc"
8510 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8511 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8512 { (exit 1); exit 1; }; }
8514 esac
8515 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8516 aros_flavour="emulation"
8519 morphos*)
8520 aros_target_arch="morphos"
8521 aros_shared_default="no"
8522 aros_target_cpu="ppc"
8523 aros_object_format="elf_ppc"
8524 aros_flavour="nativecompat"
8525 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8526 gcc_target_cpu="ppc"
8529 sam440)
8530 aros_target_arch="sam440"
8531 aros_shared_default="no"
8532 aros_target_cpu="ppc"
8533 aros_object_format="elf32ppc"
8534 aros_flavour="ppcnative"
8535 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8536 aros_kernel_ldflags=""
8537 aros_default_wbwidth=640
8538 aros_default_wbheight=480
8539 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8540 gcc_target_cpu="powerpc"
8543 chrp)
8544 aros_target_arch="chrp"
8545 aros_shared_default="no"
8546 aros_target_cpu="ppc"
8547 aros_object_format="elf32ppc"
8548 aros_flavour="ppcnative"
8549 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8550 aros_kernel_ldflags=""
8551 aros_default_wbwidth=640
8552 aros_default_wbheight=480
8553 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8554 gcc_target_cpu="powerpc"
8555 case "$aros_target_variant" in
8556 efika)
8557 aros_config_cflags="$aros_config_cflags -mcpu=603e"
8559 esac
8562 amiga*)
8563 aros_target_arch="amiga"
8564 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8565 aros_shared_default="no"
8567 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8569 case "$target_cpu" in
8570 *m68k*)
8571 aros_target_cpu="m68k"
8572 aros_object_format="m68kelf"
8573 aros_flavour="nativecompat"
8574 gcc_target_cpu="mc68000"
8576 *ppc*)
8577 aros_cpu="ppc"
8578 aros_flavour="native"
8579 gcc_target_cpu="ppc"
8582 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8583 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8584 { (exit 1); exit 1; }; }
8586 esac
8589 cygwin*)
8590 aros_target_arch="cygwin"
8591 aros_shared_default="no"
8592 case "$target_cpu" in
8593 *i?86*)
8594 aros_target_cpu="i386"
8595 aros_object_format="elf_i386"
8596 aros_flavour="emulation"
8597 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8598 aros_shared_cflags=""
8599 aros_default_wbdepth=8
8600 gcc_target_cpu="i386"
8601 aros_target_cc="i386-aros-gcc"
8602 aros_target_ld="i386-aros-ld"
8603 aros_target_as="i386-aros-as"
8604 aros_target_ar="i386-aros-ar"
8605 aros_target_ranlib="i386-aros-ranlib"
8606 aros_target_nm="i386-aros-nm"
8607 aros_target_strip="i386-aros-strip"
8608 aros_target_objcopy="i386-aros-objcopy"
8609 aros_target_objdump="i386-aros-objdump"
8612 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8613 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8614 { (exit 1); exit 1; }; }
8616 esac
8619 mingw32*)
8620 aros_target_arch="mingw32"
8621 aros_shared_default="no"
8622 case "$target_cpu" in
8623 *i?86*)
8624 aros_target_cpu="i386"
8625 aros_object_format="elf_i386"
8626 aros_flavour="emulation"
8627 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8628 aros_shared_cflags=""
8629 aros_default_wbdepth=8
8630 gcc_target_cpu="i386"
8631 aros_target_cc="i386-aros-gcc"
8632 aros_target_ld="i386-aros-ld"
8633 aros_target_as="i386-aros-as"
8634 aros_target_ar="i386-aros-ar"
8635 aros_target_ranlib="i386-aros-ranlib"
8636 aros_target_nm="i386-aros-nm"
8637 aros_target_strip="i386-aros-strip"
8638 aros_target_objcopy="i386-aros-objcopy"
8639 aros_target_objdump="i386-aros-objdump"
8642 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8643 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8644 { (exit 1); exit 1; }; }
8646 esac
8647 if test $host_os = "cygwin"; then
8648 aros_kernel_cflags="-mno-cygwin"
8651 pp*)
8652 aros_target_arch="pp"
8653 aros_shared_default="no"
8654 case "$target_cpu" in
8655 *m68k*)
8656 aros_target_cpu="m68k"
8657 aros_object_format="m68kelf"
8658 aros_flavour="palmnative"
8659 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8660 aros_kernel_ldflags=""
8661 aros_default_wbwidth=160
8662 aros_default_wbheight=160
8663 aros_default_wbdepth=1
8664 aros_target_ar_flags="cru"
8665 aros_compiler_libs="-lgcc1"
8666 aros_shared_default=no
8667 aros_shared_cflags="-fpic"
8668 aros_shared_aflags=""
8669 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8670 aros_kernel_ldflags="-Wl,-rpath,./lib"
8671 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8672 aros_debug_aflags=""
8673 aros_debug_ldflags="$aros_symbols_debug"
8674 aros_mungwall_debug="0"
8675 aros_modules_debug="0"
8676 gcc_target_cpu="mc68000"
8677 ignore_undefined_symbols="-ius"
8680 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8681 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8682 { (exit 1); exit 1; }; }
8684 esac
8687 mac*)
8688 aros_target_arch="mac"
8689 aros_shared_default="no"
8690 case "$target_cpu" in
8691 *m68k*)
8692 aros_target_cpu="m68k"
8693 aros_object_format="m68kelf"
8694 aros_flavour="mac68knative"
8695 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8696 aros_default_wbwidth=512
8697 aros_default_wbheight=384
8698 aros_default_wbdepth=8
8699 aros_target_ar_flags="cru"
8700 aros_compiler_libs="-lgcc1"
8701 aros_shared_default=no
8702 aros_shared_cflags="-fpic"
8703 aros_shared_aflags=""
8704 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8705 aros_kernel_ldflags="-Wl,-rpath,./lib"
8706 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8707 aros_debug_aflags=""
8708 aros_debug_ldflags="$aros_symbols_debug"
8709 aros_mungwall_debug="0"
8710 aros_modules_debug="0"
8711 gcc_target_cpu="mc68000"
8712 ignore_undefined_symbols="-ius"
8715 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8716 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8717 { (exit 1); exit 1; }; }
8719 esac
8723 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8724 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8725 { (exit 1); exit 1; }; }
8727 esac
8729 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
8730 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
8732 # Check whether --with-portssources was given.
8733 if test "${with_portssources+set}" = set; then
8734 withval=$with_portssources; with_portssrcdir=$withval
8735 else
8736 with_portssrcdir="default"
8739 if test "$with_portssrcdir" = "default"; then
8740 AROS_PORTSSRCDIR="$AROS_BUILDDIR/bin/Sources"
8741 else
8742 AROS_PORTSSRCDIR="$with_portssrcdir"
8744 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
8745 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
8747 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
8748 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
8750 # Check whether --with-bootloader was given.
8751 if test "${with_bootloader+set}" = set; then
8752 withval=$with_bootloader; target_bootloader=$withval
8753 else
8754 target_bootloader=$target_bootloader
8757 if test "$target_bootloader" = "none"; then
8758 aros_target_bootloader=""
8759 else
8760 aros_target_bootloader="$target_bootloader"
8762 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
8763 echo "${ECHO_T}$target_bootloader" >&6; }
8765 # Check LZO when compiling the grub2 bootloader on i386/x86_64.
8766 aros_liblzo_check="no"
8767 case "$aros_target_bootloader" in
8768 grub2*)
8769 case "$target_cpu" in
8770 *i?86*)
8771 aros_liblzo_check="yes"
8773 *x86_64*)
8774 aros_liblzo_check="yes"
8778 esac
8783 esac
8785 if test "$aros_liblzo_check" = "yes"; then
8786 # There are three possibilities. LZO version 2 installed with the name
8787 # liblzo2, with the name liblzo, and LZO version 1.
8788 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
8789 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
8790 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
8791 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 else
8793 ac_check_lib_save_LIBS=$LIBS
8794 LIBS="-llzo2 $LIBS"
8795 cat >conftest.$ac_ext <<_ACEOF
8796 /* confdefs.h. */
8797 _ACEOF
8798 cat confdefs.h >>conftest.$ac_ext
8799 cat >>conftest.$ac_ext <<_ACEOF
8800 /* end confdefs.h. */
8802 /* Override any GCC internal prototype to avoid an error.
8803 Use char because int might match the return type of a GCC
8804 builtin and then its argument prototype would still apply. */
8805 #ifdef __cplusplus
8806 extern "C"
8807 #endif
8808 char __lzo_init_v2 ();
8810 main ()
8812 return __lzo_init_v2 ();
8814 return 0;
8816 _ACEOF
8817 rm -f conftest.$ac_objext conftest$ac_exeext
8818 if { (ac_try="$ac_link"
8819 case "(($ac_try" in
8820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8821 *) ac_try_echo=$ac_try;;
8822 esac
8823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8824 (eval "$ac_link") 2>conftest.er1
8825 ac_status=$?
8826 grep -v '^ *+' conftest.er1 >conftest.err
8827 rm -f conftest.er1
8828 cat conftest.err >&5
8829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 (exit $ac_status); } && {
8831 test -z "$ac_c_werror_flag" ||
8832 test ! -s conftest.err
8833 } && test -s conftest$ac_exeext &&
8834 $as_test_x conftest$ac_exeext; then
8835 ac_cv_lib_lzo2___lzo_init_v2=yes
8836 else
8837 echo "$as_me: failed program was:" >&5
8838 sed 's/^/| /' conftest.$ac_ext >&5
8840 ac_cv_lib_lzo2___lzo_init_v2=no
8843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8844 conftest$ac_exeext conftest.$ac_ext
8845 LIBS=$ac_check_lib_save_LIBS
8847 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
8848 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
8849 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
8850 LIBLZO="-llzo2"
8851 else
8852 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
8853 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
8854 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
8855 echo $ECHO_N "(cached) $ECHO_C" >&6
8856 else
8857 ac_check_lib_save_LIBS=$LIBS
8858 LIBS="-llzo $LIBS"
8859 cat >conftest.$ac_ext <<_ACEOF
8860 /* confdefs.h. */
8861 _ACEOF
8862 cat confdefs.h >>conftest.$ac_ext
8863 cat >>conftest.$ac_ext <<_ACEOF
8864 /* end confdefs.h. */
8866 /* Override any GCC internal prototype to avoid an error.
8867 Use char because int might match the return type of a GCC
8868 builtin and then its argument prototype would still apply. */
8869 #ifdef __cplusplus
8870 extern "C"
8871 #endif
8872 char __lzo_init_v2 ();
8874 main ()
8876 return __lzo_init_v2 ();
8878 return 0;
8880 _ACEOF
8881 rm -f conftest.$ac_objext conftest$ac_exeext
8882 if { (ac_try="$ac_link"
8883 case "(($ac_try" in
8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 *) ac_try_echo=$ac_try;;
8886 esac
8887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888 (eval "$ac_link") 2>conftest.er1
8889 ac_status=$?
8890 grep -v '^ *+' conftest.er1 >conftest.err
8891 rm -f conftest.er1
8892 cat conftest.err >&5
8893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8894 (exit $ac_status); } && {
8895 test -z "$ac_c_werror_flag" ||
8896 test ! -s conftest.err
8897 } && test -s conftest$ac_exeext &&
8898 $as_test_x conftest$ac_exeext; then
8899 ac_cv_lib_lzo___lzo_init_v2=yes
8900 else
8901 echo "$as_me: failed program was:" >&5
8902 sed 's/^/| /' conftest.$ac_ext >&5
8904 ac_cv_lib_lzo___lzo_init_v2=no
8907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8908 conftest$ac_exeext conftest.$ac_ext
8909 LIBS=$ac_check_lib_save_LIBS
8911 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
8912 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
8913 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
8914 LIBLZO="-llzo"
8915 else
8916 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
8917 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
8918 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921 ac_check_lib_save_LIBS=$LIBS
8922 LIBS="-llzo $LIBS"
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h. */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8930 /* Override any GCC internal prototype to avoid an error.
8931 Use char because int might match the return type of a GCC
8932 builtin and then its argument prototype would still apply. */
8933 #ifdef __cplusplus
8934 extern "C"
8935 #endif
8936 char __lzo_init2 ();
8938 main ()
8940 return __lzo_init2 ();
8942 return 0;
8944 _ACEOF
8945 rm -f conftest.$ac_objext conftest$ac_exeext
8946 if { (ac_try="$ac_link"
8947 case "(($ac_try" in
8948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8949 *) ac_try_echo=$ac_try;;
8950 esac
8951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8952 (eval "$ac_link") 2>conftest.er1
8953 ac_status=$?
8954 grep -v '^ *+' conftest.er1 >conftest.err
8955 rm -f conftest.er1
8956 cat conftest.err >&5
8957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8958 (exit $ac_status); } && {
8959 test -z "$ac_c_werror_flag" ||
8960 test ! -s conftest.err
8961 } && test -s conftest$ac_exeext &&
8962 $as_test_x conftest$ac_exeext; then
8963 ac_cv_lib_lzo___lzo_init2=yes
8964 else
8965 echo "$as_me: failed program was:" >&5
8966 sed 's/^/| /' conftest.$ac_ext >&5
8968 ac_cv_lib_lzo___lzo_init2=no
8971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8972 conftest$ac_exeext conftest.$ac_ext
8973 LIBS=$ac_check_lib_save_LIBS
8975 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
8976 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
8977 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
8978 LIBLZO="-llzo"
8979 else
8980 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
8981 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
8982 { (exit 1); exit 1; }; }
8991 LIBS="$LIBS $LIBLZO"
8992 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
8993 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
8994 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997 cat >conftest.$ac_ext <<_ACEOF
8998 /* confdefs.h. */
8999 _ACEOF
9000 cat confdefs.h >>conftest.$ac_ext
9001 cat >>conftest.$ac_ext <<_ACEOF
9002 /* end confdefs.h. */
9003 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
9004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9005 #define lzo1x_999_compress innocuous_lzo1x_999_compress
9007 /* System header to define __stub macros and hopefully few prototypes,
9008 which can conflict with char lzo1x_999_compress (); below.
9009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9010 <limits.h> exists even on freestanding compilers. */
9012 #ifdef __STDC__
9013 # include <limits.h>
9014 #else
9015 # include <assert.h>
9016 #endif
9018 #undef lzo1x_999_compress
9020 /* Override any GCC internal prototype to avoid an error.
9021 Use char because int might match the return type of a GCC
9022 builtin and then its argument prototype would still apply. */
9023 #ifdef __cplusplus
9024 extern "C"
9025 #endif
9026 char lzo1x_999_compress ();
9027 /* The GNU C library defines this for functions which it implements
9028 to always fail with ENOSYS. Some functions are actually named
9029 something starting with __ and the normal name is an alias. */
9030 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
9031 choke me
9032 #endif
9035 main ()
9037 return lzo1x_999_compress ();
9039 return 0;
9041 _ACEOF
9042 rm -f conftest.$ac_objext conftest$ac_exeext
9043 if { (ac_try="$ac_link"
9044 case "(($ac_try" in
9045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9047 esac
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049 (eval "$ac_link") 2>conftest.er1
9050 ac_status=$?
9051 grep -v '^ *+' conftest.er1 >conftest.err
9052 rm -f conftest.er1
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } && {
9056 test -z "$ac_c_werror_flag" ||
9057 test ! -s conftest.err
9058 } && test -s conftest$ac_exeext &&
9059 $as_test_x conftest$ac_exeext; then
9060 ac_cv_func_lzo1x_999_compress=yes
9061 else
9062 echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9065 ac_cv_func_lzo1x_999_compress=no
9068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9069 conftest$ac_exeext conftest.$ac_ext
9071 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
9072 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
9073 if test $ac_cv_func_lzo1x_999_compress = yes; then
9075 else
9076 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
9077 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
9078 { (exit 1); exit 1; }; }
9082 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
9085 for ac_header in lzo/lzo1x.h lzo1x.h
9087 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9089 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9090 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9092 echo $ECHO_N "(cached) $ECHO_C" >&6
9094 ac_res=`eval echo '${'$as_ac_Header'}'`
9095 { echo "$as_me:$LINENO: result: $ac_res" >&5
9096 echo "${ECHO_T}$ac_res" >&6; }
9097 else
9098 # Is the header compilable?
9099 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9100 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9101 cat >conftest.$ac_ext <<_ACEOF
9102 /* confdefs.h. */
9103 _ACEOF
9104 cat confdefs.h >>conftest.$ac_ext
9105 cat >>conftest.$ac_ext <<_ACEOF
9106 /* end confdefs.h. */
9107 $ac_includes_default
9108 #include <$ac_header>
9109 _ACEOF
9110 rm -f conftest.$ac_objext
9111 if { (ac_try="$ac_compile"
9112 case "(($ac_try" in
9113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9114 *) ac_try_echo=$ac_try;;
9115 esac
9116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9117 (eval "$ac_compile") 2>conftest.er1
9118 ac_status=$?
9119 grep -v '^ *+' conftest.er1 >conftest.err
9120 rm -f conftest.er1
9121 cat conftest.err >&5
9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9123 (exit $ac_status); } && {
9124 test -z "$ac_c_werror_flag" ||
9125 test ! -s conftest.err
9126 } && test -s conftest.$ac_objext; then
9127 ac_header_compiler=yes
9128 else
9129 echo "$as_me: failed program was:" >&5
9130 sed 's/^/| /' conftest.$ac_ext >&5
9132 ac_header_compiler=no
9135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9136 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9137 echo "${ECHO_T}$ac_header_compiler" >&6; }
9139 # Is the header present?
9140 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9141 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9142 cat >conftest.$ac_ext <<_ACEOF
9143 /* confdefs.h. */
9144 _ACEOF
9145 cat confdefs.h >>conftest.$ac_ext
9146 cat >>conftest.$ac_ext <<_ACEOF
9147 /* end confdefs.h. */
9148 #include <$ac_header>
9149 _ACEOF
9150 if { (ac_try="$ac_cpp conftest.$ac_ext"
9151 case "(($ac_try" in
9152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9153 *) ac_try_echo=$ac_try;;
9154 esac
9155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9157 ac_status=$?
9158 grep -v '^ *+' conftest.er1 >conftest.err
9159 rm -f conftest.er1
9160 cat conftest.err >&5
9161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9162 (exit $ac_status); } >/dev/null && {
9163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9164 test ! -s conftest.err
9165 }; then
9166 ac_header_preproc=yes
9167 else
9168 echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 ac_header_preproc=no
9174 rm -f conftest.err conftest.$ac_ext
9175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9176 echo "${ECHO_T}$ac_header_preproc" >&6; }
9178 # So? What about this header?
9179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9180 yes:no: )
9181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9185 ac_header_preproc=yes
9187 no:yes:* )
9188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9202 esac
9203 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9206 echo $ECHO_N "(cached) $ECHO_C" >&6
9207 else
9208 eval "$as_ac_Header=\$ac_header_preproc"
9210 ac_res=`eval echo '${'$as_ac_Header'}'`
9211 { echo "$as_me:$LINENO: result: $ac_res" >&5
9212 echo "${ECHO_T}$ac_res" >&6; }
9215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9216 cat >>confdefs.h <<_ACEOF
9217 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9218 _ACEOF
9222 done
9226 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9227 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9229 # Check whether --with-theme was given.
9230 if test "${with_theme+set}" = set; then
9231 withval=$with_theme; target_guitheme=$withval
9232 else
9233 target_guitheme="default"
9236 if test "$target_guitheme" = "default"; then
9237 aros_target_guitheme="Ice"
9238 else
9239 aros_target_guitheme="$target_guitheme"
9241 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9242 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9244 # Find out if we are cross-compiling (ie. if we can't use the host compiler
9245 # for target code)
9246 cross_compiling=no
9247 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9248 cross_compiling=yes
9250 if test "$aros_host_arch" == "darwin" ; then
9251 cross_compiling=yes
9254 # Set prefix for target compiler etc. if we're cross-compiling
9255 # (should possibly be earlier but needs to be after AC_PROG_CC)
9256 if test "$cross_compiling" = "yes" ; then
9257 target_tool_prefix=${target_cpu}-elf-
9258 CC=${target_tool_prefix}gcc
9261 # Find all the tools we need to compile. This could be cross-compiling
9262 # though! If that is the case we use the GNU form of the target and
9263 # simply add this to the front of the binary name. This is rather simple,
9264 # but it should work under most circumstances.
9266 # The default tools are to use the same as the host, but only if the
9267 # host and target CPU are the same. With GCC this is normally enough.
9270 aros_cc_pre=""
9271 aros_shared_ld="$aros_host_ld"
9273 aros_target_mkdep="$aros_host_mkdep"
9274 aros_target_incl_def="$aros_host_incl"
9276 # Extract the first word of "$CC", so it can be a program name with args.
9277 set dummy $CC; ac_word=$2
9278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9280 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283 case $aros_kernel_cc in
9284 [\\/]* | ?:[\\/]*)
9285 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9289 for as_dir in $PATH
9291 IFS=$as_save_IFS
9292 test -z "$as_dir" && as_dir=.
9293 for ac_exec_ext in '' $ac_executable_extensions; do
9294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9295 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9297 break 2
9299 done
9300 done
9301 IFS=$as_save_IFS
9304 esac
9306 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9307 if test -n "$aros_kernel_cc"; then
9308 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
9309 echo "${ECHO_T}$aros_kernel_cc" >&6; }
9310 else
9311 { echo "$as_me:$LINENO: result: no" >&5
9312 echo "${ECHO_T}no" >&6; }
9317 # The default tools executables to be linked to.
9318 if test "$aros_target_cc" != ""; then
9319 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9320 set dummy $aros_target_cc; ac_word=$2
9321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9323 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9325 else
9326 case $aros_target_cc in
9327 [\\/]* | ?:[\\/]*)
9328 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332 for as_dir in $PATH
9334 IFS=$as_save_IFS
9335 test -z "$as_dir" && as_dir=.
9336 for ac_exec_ext in '' $ac_executable_extensions; do
9337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9338 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9340 break 2
9342 done
9343 done
9344 IFS=$as_save_IFS
9347 esac
9349 aros_target_cc=$ac_cv_path_aros_target_cc
9350 if test -n "$aros_target_cc"; then
9351 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9352 echo "${ECHO_T}$aros_target_cc" >&6; }
9353 else
9354 { echo "$as_me:$LINENO: result: no" >&5
9355 echo "${ECHO_T}no" >&6; }
9359 if test "$aros_target_cc" = ""; then
9360 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9361 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9362 { (exit 1); exit 1; }; }
9365 if test "$aros_target_ld" != ""; then
9366 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9367 set dummy $aros_target_ld; ac_word=$2
9368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9370 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9371 echo $ECHO_N "(cached) $ECHO_C" >&6
9372 else
9373 case $aros_target_ld in
9374 [\\/]* | ?:[\\/]*)
9375 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9379 for as_dir in $PATH
9381 IFS=$as_save_IFS
9382 test -z "$as_dir" && as_dir=.
9383 for ac_exec_ext in '' $ac_executable_extensions; do
9384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9385 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9387 break 2
9389 done
9390 done
9391 IFS=$as_save_IFS
9394 esac
9396 aros_target_ld=$ac_cv_path_aros_target_ld
9397 if test -n "$aros_target_ld"; then
9398 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9399 echo "${ECHO_T}$aros_target_ld" >&6; }
9400 else
9401 { echo "$as_me:$LINENO: result: no" >&5
9402 echo "${ECHO_T}no" >&6; }
9406 if test "$aros_target_ld" = ""; then
9407 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9408 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9409 { (exit 1); exit 1; }; }
9413 if test "$crosstools" != "yes"; then
9415 if test "$aros_target_as" = ""; then
9416 if test "$cross_compiling" = "yes" ; then
9417 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9418 set dummy ${target_tool_prefix}as; ac_word=$2
9419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9421 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 else
9424 case $aros_target_as_ln in
9425 [\\/]* | ?:[\\/]*)
9426 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9430 for as_dir in $PATH
9432 IFS=$as_save_IFS
9433 test -z "$as_dir" && as_dir=.
9434 for ac_exec_ext in '' $ac_executable_extensions; do
9435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9436 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9438 break 2
9440 done
9441 done
9442 IFS=$as_save_IFS
9445 esac
9447 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9448 if test -n "$aros_target_as_ln"; then
9449 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9450 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9451 else
9452 { echo "$as_me:$LINENO: result: no" >&5
9453 echo "${ECHO_T}no" >&6; }
9457 else
9458 if test "$GCC" = "yes"; then
9459 aros_gcc_as=`$CC -print-prog-name=as`
9460 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9461 set dummy `basename $aros_gcc_as`; ac_word=$2
9462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9464 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9465 echo $ECHO_N "(cached) $ECHO_C" >&6
9466 else
9467 case $aros_target_as_ln in
9468 [\\/]* | ?:[\\/]*)
9469 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9473 for as_dir in `dirname $aros_gcc_as`
9475 IFS=$as_save_IFS
9476 test -z "$as_dir" && as_dir=.
9477 for ac_exec_ext in '' $ac_executable_extensions; do
9478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9479 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9481 break 2
9483 done
9484 done
9485 IFS=$as_save_IFS
9488 esac
9490 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9491 if test -n "$aros_target_as_ln"; then
9492 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9493 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9494 else
9495 { echo "$as_me:$LINENO: result: no" >&5
9496 echo "${ECHO_T}no" >&6; }
9501 if test "$aros_target_as_ln" = ""; then
9502 # Extract the first word of "as", so it can be a program name with args.
9503 set dummy as; ac_word=$2
9504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9506 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9507 echo $ECHO_N "(cached) $ECHO_C" >&6
9508 else
9509 case $aros_target_as_ln in
9510 [\\/]* | ?:[\\/]*)
9511 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9515 for as_dir in $PATH
9517 IFS=$as_save_IFS
9518 test -z "$as_dir" && as_dir=.
9519 for ac_exec_ext in '' $ac_executable_extensions; do
9520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9521 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9523 break 2
9525 done
9526 done
9527 IFS=$as_save_IFS
9530 esac
9532 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9533 if test -n "$aros_target_as_ln"; then
9534 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9535 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9536 else
9537 { echo "$as_me:$LINENO: result: no" >&5
9538 echo "${ECHO_T}no" >&6; }
9544 else
9545 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9546 set dummy $aros_target_as; ac_word=$2
9547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9549 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9550 echo $ECHO_N "(cached) $ECHO_C" >&6
9551 else
9552 case $aros_target_as_ln in
9553 [\\/]* | ?:[\\/]*)
9554 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9558 for as_dir in $PATH
9560 IFS=$as_save_IFS
9561 test -z "$as_dir" && as_dir=.
9562 for ac_exec_ext in '' $ac_executable_extensions; do
9563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9564 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9566 break 2
9568 done
9569 done
9570 IFS=$as_save_IFS
9573 esac
9575 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9576 if test -n "$aros_target_as_ln"; then
9577 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9578 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9579 else
9580 { echo "$as_me:$LINENO: result: no" >&5
9581 echo "${ECHO_T}no" >&6; }
9587 if test "$aros_target_as_ln" = ""; then
9588 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9589 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9590 { (exit 1); exit 1; }; }
9593 if test "$aros_kernel_ld" = ""; then
9594 if test "$cross_compiling" = "yes" ; then
9595 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9596 set dummy ${target_tool_prefix}ld; ac_word=$2
9597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9599 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9601 else
9602 case $aros_kernel_ld in
9603 [\\/]* | ?:[\\/]*)
9604 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608 for as_dir in $PATH
9610 IFS=$as_save_IFS
9611 test -z "$as_dir" && as_dir=.
9612 for ac_exec_ext in '' $ac_executable_extensions; do
9613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9614 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9616 break 2
9618 done
9619 done
9620 IFS=$as_save_IFS
9623 esac
9625 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9626 if test -n "$aros_kernel_ld"; then
9627 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9628 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9629 else
9630 { echo "$as_me:$LINENO: result: no" >&5
9631 echo "${ECHO_T}no" >&6; }
9635 else
9636 if test "$GCC" = "yes"; then
9637 aros_gcc_ld=`$CC -print-prog-name=ld`
9638 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9639 set dummy `basename $aros_gcc_ld`; ac_word=$2
9640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9642 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645 case $aros_kernel_ld in
9646 [\\/]* | ?:[\\/]*)
9647 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9651 for as_dir in `dirname $aros_gcc_ld`
9653 IFS=$as_save_IFS
9654 test -z "$as_dir" && as_dir=.
9655 for ac_exec_ext in '' $ac_executable_extensions; do
9656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9657 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9658 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9659 break 2
9661 done
9662 done
9663 IFS=$as_save_IFS
9666 esac
9668 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9669 if test -n "$aros_kernel_ld"; then
9670 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9671 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9672 else
9673 { echo "$as_me:$LINENO: result: no" >&5
9674 echo "${ECHO_T}no" >&6; }
9679 if test "$aros_kernel_ld" = ""; then
9680 # Extract the first word of "ld", so it can be a program name with args.
9681 set dummy ld; ac_word=$2
9682 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9684 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 else
9687 case $aros_kernel_ld in
9688 [\\/]* | ?:[\\/]*)
9689 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693 for as_dir in $PATH
9695 IFS=$as_save_IFS
9696 test -z "$as_dir" && as_dir=.
9697 for ac_exec_ext in '' $ac_executable_extensions; do
9698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9699 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9700 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9701 break 2
9703 done
9704 done
9705 IFS=$as_save_IFS
9708 esac
9710 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9711 if test -n "$aros_kernel_ld"; then
9712 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9713 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9714 else
9715 { echo "$as_me:$LINENO: result: no" >&5
9716 echo "${ECHO_T}no" >&6; }
9722 else
9723 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9724 set dummy $aros_kernel_ld; ac_word=$2
9725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9727 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9728 echo $ECHO_N "(cached) $ECHO_C" >&6
9729 else
9730 case $aros_kernel_ld in
9731 [\\/]* | ?:[\\/]*)
9732 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9736 for as_dir in $PATH
9738 IFS=$as_save_IFS
9739 test -z "$as_dir" && as_dir=.
9740 for ac_exec_ext in '' $ac_executable_extensions; do
9741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9742 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9744 break 2
9746 done
9747 done
9748 IFS=$as_save_IFS
9751 esac
9753 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9754 if test -n "$aros_kernel_ld"; then
9755 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9756 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9757 else
9758 { echo "$as_me:$LINENO: result: no" >&5
9759 echo "${ECHO_T}no" >&6; }
9765 if test "$aros_kernel_ld" = ""; then
9766 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9767 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9768 { (exit 1); exit 1; }; }
9771 if test "$aros_target_ar" = ""; then
9772 if test "$cross_compiling" = "yes" ; then
9773 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9774 set dummy ${target_tool_prefix}ar; ac_word=$2
9775 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9776 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9777 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780 case $aros_target_ar_ln in
9781 [\\/]* | ?:[\\/]*)
9782 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9786 for as_dir in $PATH
9788 IFS=$as_save_IFS
9789 test -z "$as_dir" && as_dir=.
9790 for ac_exec_ext in '' $ac_executable_extensions; do
9791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9792 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9794 break 2
9796 done
9797 done
9798 IFS=$as_save_IFS
9801 esac
9803 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9804 if test -n "$aros_target_ar_ln"; then
9805 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9806 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9807 else
9808 { echo "$as_me:$LINENO: result: no" >&5
9809 echo "${ECHO_T}no" >&6; }
9813 else
9814 if test "$GCC" = "yes"; then
9815 aros_gcc_ar=`$CC -print-prog-name=ar`
9816 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9817 set dummy `basename $aros_gcc_ar`; ac_word=$2
9818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9820 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823 case $aros_target_ar_ln in
9824 [\\/]* | ?:[\\/]*)
9825 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9829 for as_dir in `dirname $aros_gcc_ar`
9831 IFS=$as_save_IFS
9832 test -z "$as_dir" && as_dir=.
9833 for ac_exec_ext in '' $ac_executable_extensions; do
9834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9835 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9837 break 2
9839 done
9840 done
9841 IFS=$as_save_IFS
9844 esac
9846 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9847 if test -n "$aros_target_ar_ln"; then
9848 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9849 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9850 else
9851 { echo "$as_me:$LINENO: result: no" >&5
9852 echo "${ECHO_T}no" >&6; }
9857 if test "$aros_target_ar_ln" = ""; then
9858 # Extract the first word of "ar", so it can be a program name with args.
9859 set dummy ar; ac_word=$2
9860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9862 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 else
9865 case $aros_target_ar_ln in
9866 [\\/]* | ?:[\\/]*)
9867 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9871 for as_dir in $PATH
9873 IFS=$as_save_IFS
9874 test -z "$as_dir" && as_dir=.
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9877 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9879 break 2
9881 done
9882 done
9883 IFS=$as_save_IFS
9886 esac
9888 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9889 if test -n "$aros_target_ar_ln"; then
9890 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9891 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9892 else
9893 { echo "$as_me:$LINENO: result: no" >&5
9894 echo "${ECHO_T}no" >&6; }
9900 else
9901 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9902 set dummy $aros_target_ar; ac_word=$2
9903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9905 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9906 echo $ECHO_N "(cached) $ECHO_C" >&6
9907 else
9908 case $aros_target_ar_ln in
9909 [\\/]* | ?:[\\/]*)
9910 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9914 for as_dir in $PATH
9916 IFS=$as_save_IFS
9917 test -z "$as_dir" && as_dir=.
9918 for ac_exec_ext in '' $ac_executable_extensions; do
9919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9920 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9922 break 2
9924 done
9925 done
9926 IFS=$as_save_IFS
9929 esac
9931 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9932 if test -n "$aros_target_ar_ln"; then
9933 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9934 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9935 else
9936 { echo "$as_me:$LINENO: result: no" >&5
9937 echo "${ECHO_T}no" >&6; }
9943 if test "$aros_target_ar_ln" = ""; then
9944 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9945 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9946 { (exit 1); exit 1; }; }
9949 if test "$aros_target_nm" = ""; then
9950 if test "$cross_compiling" = "yes" ; then
9951 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9952 set dummy ${target_tool_prefix}nm; ac_word=$2
9953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9955 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9956 echo $ECHO_N "(cached) $ECHO_C" >&6
9957 else
9958 case $aros_target_nm_ln in
9959 [\\/]* | ?:[\\/]*)
9960 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9964 for as_dir in $PATH
9966 IFS=$as_save_IFS
9967 test -z "$as_dir" && as_dir=.
9968 for ac_exec_ext in '' $ac_executable_extensions; do
9969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9970 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9972 break 2
9974 done
9975 done
9976 IFS=$as_save_IFS
9979 esac
9981 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9982 if test -n "$aros_target_nm_ln"; then
9983 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9984 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9985 else
9986 { echo "$as_me:$LINENO: result: no" >&5
9987 echo "${ECHO_T}no" >&6; }
9991 else
9992 if test "$GCC" = "yes"; then
9993 aros_gcc_nm=`$CC -print-prog-name=nm`
9994 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9995 set dummy `basename $aros_gcc_nm`; ac_word=$2
9996 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9997 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9998 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9999 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 else
10001 case $aros_target_nm_ln in
10002 [\\/]* | ?:[\\/]*)
10003 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10007 for as_dir in `dirname $aros_gcc_nm`
10009 IFS=$as_save_IFS
10010 test -z "$as_dir" && as_dir=.
10011 for ac_exec_ext in '' $ac_executable_extensions; do
10012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10013 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10015 break 2
10017 done
10018 done
10019 IFS=$as_save_IFS
10022 esac
10024 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10025 if test -n "$aros_target_nm_ln"; then
10026 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10027 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10028 else
10029 { echo "$as_me:$LINENO: result: no" >&5
10030 echo "${ECHO_T}no" >&6; }
10035 if test "$aros_target_nm_ln" = ""; then
10036 # Extract the first word of "nm", so it can be a program name with args.
10037 set dummy nm; ac_word=$2
10038 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10039 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10040 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043 case $aros_target_nm_ln in
10044 [\\/]* | ?:[\\/]*)
10045 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049 for as_dir in $PATH
10051 IFS=$as_save_IFS
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10055 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10057 break 2
10059 done
10060 done
10061 IFS=$as_save_IFS
10064 esac
10066 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10067 if test -n "$aros_target_nm_ln"; then
10068 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10069 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10070 else
10071 { echo "$as_me:$LINENO: result: no" >&5
10072 echo "${ECHO_T}no" >&6; }
10078 else
10079 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10080 set dummy $aros_target_nm; ac_word=$2
10081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10083 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10084 echo $ECHO_N "(cached) $ECHO_C" >&6
10085 else
10086 case $aros_target_nm_ln in
10087 [\\/]* | ?:[\\/]*)
10088 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10092 for as_dir in $PATH
10094 IFS=$as_save_IFS
10095 test -z "$as_dir" && as_dir=.
10096 for ac_exec_ext in '' $ac_executable_extensions; do
10097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10098 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10100 break 2
10102 done
10103 done
10104 IFS=$as_save_IFS
10107 esac
10109 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10110 if test -n "$aros_target_nm_ln"; then
10111 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10112 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10113 else
10114 { echo "$as_me:$LINENO: result: no" >&5
10115 echo "${ECHO_T}no" >&6; }
10121 if test "$aros_target_nm_ln" = ""; then
10122 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10123 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10124 { (exit 1); exit 1; }; }
10127 if test "$aros_target_objcopy" = ""; then
10128 if test "$cross_compiling" = "yes" ; then
10129 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10130 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10133 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10134 echo $ECHO_N "(cached) $ECHO_C" >&6
10135 else
10136 case $aros_target_objcopy_ln in
10137 [\\/]* | ?:[\\/]*)
10138 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10142 for as_dir in $PATH
10144 IFS=$as_save_IFS
10145 test -z "$as_dir" && as_dir=.
10146 for ac_exec_ext in '' $ac_executable_extensions; do
10147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10148 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10150 break 2
10152 done
10153 done
10154 IFS=$as_save_IFS
10157 esac
10159 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10160 if test -n "$aros_target_objcopy_ln"; then
10161 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10162 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10163 else
10164 { echo "$as_me:$LINENO: result: no" >&5
10165 echo "${ECHO_T}no" >&6; }
10169 else
10170 if test "$GCC" = "yes"; then
10171 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10172 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10173 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10176 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10178 else
10179 case $aros_target_objcopy_ln in
10180 [\\/]* | ?:[\\/]*)
10181 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185 for as_dir in `dirname $aros_gcc_objcopy`
10187 IFS=$as_save_IFS
10188 test -z "$as_dir" && as_dir=.
10189 for ac_exec_ext in '' $ac_executable_extensions; do
10190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10191 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10193 break 2
10195 done
10196 done
10197 IFS=$as_save_IFS
10200 esac
10202 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10203 if test -n "$aros_target_objcopy_ln"; then
10204 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10205 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10206 else
10207 { echo "$as_me:$LINENO: result: no" >&5
10208 echo "${ECHO_T}no" >&6; }
10213 if test "$aros_target_objcopy_ln" = ""; then
10214 # Extract the first word of "objcopy", so it can be a program name with args.
10215 set dummy objcopy; ac_word=$2
10216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10218 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10219 echo $ECHO_N "(cached) $ECHO_C" >&6
10220 else
10221 case $aros_target_objcopy_ln in
10222 [\\/]* | ?:[\\/]*)
10223 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227 for as_dir in $PATH
10229 IFS=$as_save_IFS
10230 test -z "$as_dir" && as_dir=.
10231 for ac_exec_ext in '' $ac_executable_extensions; do
10232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10233 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10235 break 2
10237 done
10238 done
10239 IFS=$as_save_IFS
10242 esac
10244 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10245 if test -n "$aros_target_objcopy_ln"; then
10246 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10247 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10248 else
10249 { echo "$as_me:$LINENO: result: no" >&5
10250 echo "${ECHO_T}no" >&6; }
10256 else
10257 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10258 set dummy $aros_target_objcopy; ac_word=$2
10259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10261 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10263 else
10264 case $aros_target_objcopy_ln in
10265 [\\/]* | ?:[\\/]*)
10266 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10270 for as_dir in $PATH
10272 IFS=$as_save_IFS
10273 test -z "$as_dir" && as_dir=.
10274 for ac_exec_ext in '' $ac_executable_extensions; do
10275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10276 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10278 break 2
10280 done
10281 done
10282 IFS=$as_save_IFS
10285 esac
10287 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10288 if test -n "$aros_target_objcopy_ln"; then
10289 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10290 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10291 else
10292 { echo "$as_me:$LINENO: result: no" >&5
10293 echo "${ECHO_T}no" >&6; }
10299 if test "$aros_target_objcopy_ln" = ""; then
10300 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10301 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10302 { (exit 1); exit 1; }; }
10305 if test "$aros_target_objdump" = ""; then
10306 if test "$cross_compiling" = "yes" ; then
10307 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10308 set dummy ${target_tool_prefix}objdump; ac_word=$2
10309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10311 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314 case $aros_target_objdump_ln in
10315 [\\/]* | ?:[\\/]*)
10316 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10320 for as_dir in $PATH
10322 IFS=$as_save_IFS
10323 test -z "$as_dir" && as_dir=.
10324 for ac_exec_ext in '' $ac_executable_extensions; do
10325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10326 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10328 break 2
10330 done
10331 done
10332 IFS=$as_save_IFS
10335 esac
10337 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10338 if test -n "$aros_target_objdump_ln"; then
10339 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10340 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10341 else
10342 { echo "$as_me:$LINENO: result: no" >&5
10343 echo "${ECHO_T}no" >&6; }
10347 else
10348 if test "$GCC" = "yes"; then
10349 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10350 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10351 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10354 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10355 echo $ECHO_N "(cached) $ECHO_C" >&6
10356 else
10357 case $aros_target_objdump_ln in
10358 [\\/]* | ?:[\\/]*)
10359 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363 for as_dir in `dirname $aros_gcc_objdump`
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10369 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10371 break 2
10373 done
10374 done
10375 IFS=$as_save_IFS
10378 esac
10380 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10381 if test -n "$aros_target_objdump_ln"; then
10382 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10383 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10384 else
10385 { echo "$as_me:$LINENO: result: no" >&5
10386 echo "${ECHO_T}no" >&6; }
10391 if test "$aros_target_objdump_ln" = ""; then
10392 # Extract the first word of "objdump", so it can be a program name with args.
10393 set dummy objdump; ac_word=$2
10394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10396 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 else
10399 case $aros_target_objdump_ln in
10400 [\\/]* | ?:[\\/]*)
10401 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10405 for as_dir in $PATH
10407 IFS=$as_save_IFS
10408 test -z "$as_dir" && as_dir=.
10409 for ac_exec_ext in '' $ac_executable_extensions; do
10410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10411 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10412 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10413 break 2
10415 done
10416 done
10417 IFS=$as_save_IFS
10420 esac
10422 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10423 if test -n "$aros_target_objdump_ln"; then
10424 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10425 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10426 else
10427 { echo "$as_me:$LINENO: result: no" >&5
10428 echo "${ECHO_T}no" >&6; }
10434 else
10435 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10436 set dummy $aros_target_objdump; ac_word=$2
10437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10439 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442 case $aros_target_objdump_ln in
10443 [\\/]* | ?:[\\/]*)
10444 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10448 for as_dir in $PATH
10450 IFS=$as_save_IFS
10451 test -z "$as_dir" && as_dir=.
10452 for ac_exec_ext in '' $ac_executable_extensions; do
10453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10454 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10456 break 2
10458 done
10459 done
10460 IFS=$as_save_IFS
10463 esac
10465 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10466 if test -n "$aros_target_objdump_ln"; then
10467 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10468 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10469 else
10470 { echo "$as_me:$LINENO: result: no" >&5
10471 echo "${ECHO_T}no" >&6; }
10477 if test "$aros_target_objdump_ln" = ""; then
10478 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10479 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10480 { (exit 1); exit 1; }; }
10483 if test "$aros_target_ranlib" = ""; then
10484 if test "$cross_compiling" = "yes" ; then
10485 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10486 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10489 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10490 echo $ECHO_N "(cached) $ECHO_C" >&6
10491 else
10492 case $aros_target_ranlib_ln in
10493 [\\/]* | ?:[\\/]*)
10494 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10498 for as_dir in $PATH
10500 IFS=$as_save_IFS
10501 test -z "$as_dir" && as_dir=.
10502 for ac_exec_ext in '' $ac_executable_extensions; do
10503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10504 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10506 break 2
10508 done
10509 done
10510 IFS=$as_save_IFS
10513 esac
10515 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10516 if test -n "$aros_target_ranlib_ln"; then
10517 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10518 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10519 else
10520 { echo "$as_me:$LINENO: result: no" >&5
10521 echo "${ECHO_T}no" >&6; }
10525 else
10526 if test "$GCC" = "yes"; then
10527 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10528 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10529 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10532 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10533 echo $ECHO_N "(cached) $ECHO_C" >&6
10534 else
10535 case $aros_target_ranlib_ln in
10536 [\\/]* | ?:[\\/]*)
10537 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541 for as_dir in `dirname $aros_gcc_ranlib`
10543 IFS=$as_save_IFS
10544 test -z "$as_dir" && as_dir=.
10545 for ac_exec_ext in '' $ac_executable_extensions; do
10546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10547 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10549 break 2
10551 done
10552 done
10553 IFS=$as_save_IFS
10556 esac
10558 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10559 if test -n "$aros_target_ranlib_ln"; then
10560 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10561 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10562 else
10563 { echo "$as_me:$LINENO: result: no" >&5
10564 echo "${ECHO_T}no" >&6; }
10569 if test "$aros_target_ranlib_ln" = ""; then
10570 # Extract the first word of "ranlib", so it can be a program name with args.
10571 set dummy ranlib; ac_word=$2
10572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10574 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577 case $aros_target_ranlib_ln in
10578 [\\/]* | ?:[\\/]*)
10579 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10583 for as_dir in $PATH
10585 IFS=$as_save_IFS
10586 test -z "$as_dir" && as_dir=.
10587 for ac_exec_ext in '' $ac_executable_extensions; do
10588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10589 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10591 break 2
10593 done
10594 done
10595 IFS=$as_save_IFS
10598 esac
10600 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10601 if test -n "$aros_target_ranlib_ln"; then
10602 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10603 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10604 else
10605 { echo "$as_me:$LINENO: result: no" >&5
10606 echo "${ECHO_T}no" >&6; }
10612 else
10613 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10614 set dummy $aros_target_ranlib; ac_word=$2
10615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10617 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10618 echo $ECHO_N "(cached) $ECHO_C" >&6
10619 else
10620 case $aros_target_ranlib_ln in
10621 [\\/]* | ?:[\\/]*)
10622 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10626 for as_dir in $PATH
10628 IFS=$as_save_IFS
10629 test -z "$as_dir" && as_dir=.
10630 for ac_exec_ext in '' $ac_executable_extensions; do
10631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10632 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10634 break 2
10636 done
10637 done
10638 IFS=$as_save_IFS
10641 esac
10643 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10644 if test -n "$aros_target_ranlib_ln"; then
10645 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10646 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10647 else
10648 { echo "$as_me:$LINENO: result: no" >&5
10649 echo "${ECHO_T}no" >&6; }
10655 if test "$aros_target_ranlib_ln" = ""; then
10656 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10657 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10658 { (exit 1); exit 1; }; }
10661 if test "$aros_target_strip" = ""; then
10662 if test "$cross_compiling" = "yes" ; then
10663 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10664 set dummy ${target_tool_prefix}strip; ac_word=$2
10665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10667 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 else
10670 case $aros_target_strip_ln in
10671 [\\/]* | ?:[\\/]*)
10672 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10676 for as_dir in $PATH
10678 IFS=$as_save_IFS
10679 test -z "$as_dir" && as_dir=.
10680 for ac_exec_ext in '' $ac_executable_extensions; do
10681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10682 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10684 break 2
10686 done
10687 done
10688 IFS=$as_save_IFS
10691 esac
10693 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10694 if test -n "$aros_target_strip_ln"; then
10695 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10696 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10697 else
10698 { echo "$as_me:$LINENO: result: no" >&5
10699 echo "${ECHO_T}no" >&6; }
10703 else
10704 if test "$GCC" = "yes"; then
10705 aros_gcc_strip=`$CC -print-prog-name=strip`
10706 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10707 set dummy `basename $aros_gcc_strip`; ac_word=$2
10708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10710 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10711 echo $ECHO_N "(cached) $ECHO_C" >&6
10712 else
10713 case $aros_target_strip_ln in
10714 [\\/]* | ?:[\\/]*)
10715 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10719 for as_dir in `dirname $aros_gcc_strip`
10721 IFS=$as_save_IFS
10722 test -z "$as_dir" && as_dir=.
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10725 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10727 break 2
10729 done
10730 done
10731 IFS=$as_save_IFS
10734 esac
10736 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10737 if test -n "$aros_target_strip_ln"; then
10738 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10739 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10740 else
10741 { echo "$as_me:$LINENO: result: no" >&5
10742 echo "${ECHO_T}no" >&6; }
10747 if test "$aros_target_strip_ln" = ""; then
10748 # Extract the first word of "strip", so it can be a program name with args.
10749 set dummy strip; ac_word=$2
10750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10752 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10753 echo $ECHO_N "(cached) $ECHO_C" >&6
10754 else
10755 case $aros_target_strip_ln in
10756 [\\/]* | ?:[\\/]*)
10757 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10761 for as_dir in $PATH
10763 IFS=$as_save_IFS
10764 test -z "$as_dir" && as_dir=.
10765 for ac_exec_ext in '' $ac_executable_extensions; do
10766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10767 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10769 break 2
10771 done
10772 done
10773 IFS=$as_save_IFS
10776 esac
10778 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10779 if test -n "$aros_target_strip_ln"; then
10780 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10781 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10782 else
10783 { echo "$as_me:$LINENO: result: no" >&5
10784 echo "${ECHO_T}no" >&6; }
10790 else
10791 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10792 set dummy $aros_target_strip; ac_word=$2
10793 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10794 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10795 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10796 echo $ECHO_N "(cached) $ECHO_C" >&6
10797 else
10798 case $aros_target_strip_ln in
10799 [\\/]* | ?:[\\/]*)
10800 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10804 for as_dir in $PATH
10806 IFS=$as_save_IFS
10807 test -z "$as_dir" && as_dir=.
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10810 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10811 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10812 break 2
10814 done
10815 done
10816 IFS=$as_save_IFS
10819 esac
10821 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10822 if test -n "$aros_target_strip_ln"; then
10823 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10824 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10825 else
10826 { echo "$as_me:$LINENO: result: no" >&5
10827 echo "${ECHO_T}no" >&6; }
10833 if test "$aros_target_strip_ln" = ""; then
10834 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10835 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10836 { (exit 1); exit 1; }; }
10840 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10841 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10842 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10843 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10844 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10845 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10846 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10848 # aros_cc_pre is a variable that is added to the front of the compiler name
10849 # in the generated aros-gcc shell script. We need this to enable the cache
10850 # to work across cleaned builds. Also, support DISTCC using the correct
10851 # environment variable.
10854 if test "x${DISTCC}" != "x" ; then
10855 if test "x${CCACHE}" != "x" ; then
10856 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10857 else
10858 aros_cc_pre="${DISTCC} "
10860 else
10861 if test "x${CCACHE}" != "x" ; then
10862 aros_cc_pre="${CCACHE} "
10866 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10868 aros_target_nostdinc_cflags=-nostdinc
10870 aros_target_nostartup_ldflags=-nostartfiles
10872 aros_target_nix_ldflags=-nix
10874 aros_target_detach_ldflags=-detach
10876 aros_target_nostdlib_ldflags=-nostdlib
10879 # Target tools
10880 if test "$aros_target_cc" = ""; then
10881 orig_target_cc=$aros_kernel_cc
10882 else
10883 orig_target_cc=$aros_target_cc
10885 if test "$aros_target_ld" = ""; then
10886 orig_target_ld=$aros_kernel_ld
10887 else
10888 orig_target_ld=$aros_target_ld
10890 if test "$GCC" = "yes"; then
10891 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10893 aros_target_cc="${prefix}-gcc"
10894 aros_target_as="${prefix}-as"
10895 aros_target_ld="${prefix}-ld"
10896 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10897 aros_target_objcopy=${prefix}-objcopy
10898 aros_target_objdump=${prefix}-objdump
10899 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10900 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10901 aros_kernel_nm="${prefix}-nm"
10902 aros_target_strip=${prefix}-strip
10904 # Find the system include path. We can suggest that an alternative is
10905 # used if we don't get it correct. The default is to use /usr/include.
10906 # Which is set in the aros_target_incl_def variable.
10908 # Check whether --enable-includes was given.
10909 if test "${enable_includes+set}" = set; then
10910 enableval=$enable_includes; aros_target_incl=$enable_includes
10911 else
10912 aros_target_incl=$aros_target_incl_def
10916 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10917 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
10918 if test "$aros_target_cc_includes" = "" ; then
10919 #try to guess where the directory is
10920 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
10921 if ! test -d $aros_target_cc_includes; then
10922 #the directory doesn't exist, we need to do some more work
10923 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10925 #these are the headers we're looling for
10926 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10927 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10928 zutil.h"
10930 dirs=
10931 for h in $headers; do
10932 #which other headers each of the above headers needs?
10933 deps=$(echo "#include <$h>" | \
10934 $aros_host_cc -E -M - 2>/dev/null | \
10935 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10937 #copy all the needed headers to a directory beneath gendir
10938 for d in $deps; do
10939 h=$(basename $d)
10940 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10941 sed -n "s,^.*/include\(/.*\),\1,p")
10942 ! test -d $dir && mkdir -p $dir
10943 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10944 done
10945 done
10948 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
10949 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
10952 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10953 # On GCC >= 4.0 -iquote should be used
10956 save_cc="$CC"
10957 save_cflags="$CFLAGS"
10958 CC="$aros_kernel_cc"
10959 CFLAGS="-iquote."
10960 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
10961 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
10962 cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h. */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10970 main ()
10974 return 0;
10976 _ACEOF
10977 rm -f conftest.$ac_objext
10978 if { (ac_try="$ac_compile"
10979 case "(($ac_try" in
10980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10981 *) ac_try_echo=$ac_try;;
10982 esac
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_compile") 2>conftest.er1
10985 ac_status=$?
10986 grep -v '^ *+' conftest.er1 >conftest.err
10987 rm -f conftest.er1
10988 cat conftest.err >&5
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); } && {
10991 test -z "$ac_c_werror_flag" ||
10992 test ! -s conftest.err
10993 } && test -s conftest.$ac_objext; then
10994 has_iquote="yes"
10995 else
10996 echo "$as_me: failed program was:" >&5
10997 sed 's/^/| /' conftest.$ac_ext >&5
10999 has_iquote="no"
11002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11003 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11004 echo "${ECHO_T}$has_iquote" >&6; }
11005 if test "x-$has_iquote" = "x-yes" ; then
11006 aros_cflags_iquote=-iquote
11007 aros_cflags_iquote_end=
11008 else
11009 aros_cflags_iquote=-I
11010 aros_cflags_iquote_end=-I-
11012 CC="$save_cc"
11013 CFLAGS="$save_cflags"
11019 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11020 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
11022 # Check whether --with-resolution was given.
11023 if test "${with_resolution+set}" = set; then
11024 withval=$with_resolution; resolution=$withval
11025 else
11026 resolution=none
11029 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11030 if test "$resolution" = "yes" ; then
11031 resolution="none"
11033 if test "$resolution" = "no" ; then
11034 resolution="none"
11036 if test "$resolution" != "none" ; then
11037 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11038 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11039 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11041 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11042 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11043 aros_cv_default_wbwidth=$aros_default_wbwidth
11044 aros_cv_default_wbheight=$aros_default_wbheight
11045 aros_cv_default_wbdepth=$aros_default_wbdepth
11047 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
11048 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
11049 # Check whether --enable-bochs_hack was given.
11050 if test "${enable_bochs_hack+set}" = set; then
11051 enableval=$enable_bochs_hack; bochs_hack="yes"
11052 else
11053 bochs_hack="no"
11056 if test "$bochs_hack" = "yes" ; then
11057 aros_bochs_hack="1"
11059 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
11060 echo "${ECHO_T}$bochs_hack" >&6; }
11062 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11063 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11065 # Check whether --with-serial-debug was given.
11066 if test "${with_serial_debug+set}" = set; then
11067 withval=$with_serial_debug; serial_debug=$withval
11068 else
11069 serial_debug=none
11072 if test "$aros_serial_debug" = 0 ; then
11073 serial_debug_forced=""
11074 if test "$serial_debug" = "yes" ; then
11075 serial_debug="2"
11077 if test "$serial_debug" = "no" ; then
11078 serial_debug="none"
11080 else
11081 serial_debug_forced="(forced)"
11082 serial_debug=$aros_serial_debug
11084 if test "$serial_debug" != "none" ; then
11085 aros_serial_debug=$serial_debug
11086 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11087 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11088 else
11089 { echo "$as_me:$LINENO: result: no" >&5
11090 echo "${ECHO_T}no" >&6; }
11093 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11094 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11095 # Check whether --enable-palm_debug_hack was given.
11096 if test "${enable_palm_debug_hack+set}" = set; then
11097 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11098 else
11099 palm_debug_hack="no"
11102 if test "$palm_debug_hack" = "yes" ; then
11103 aros_palm_debug_hack="1"
11105 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11106 echo "${ECHO_T}$palm_debug_hack" >&6; }
11109 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11110 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11111 # Check whether --enable-nesting_supervisor was given.
11112 if test "${enable_nesting_supervisor+set}" = set; then
11113 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11114 else
11115 nesting_supervisor="no"
11118 if test "$nesting_supervisor" = "yes" ; then
11119 aros_nesting_supervisor="1"
11121 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11122 echo "${ECHO_T}$nesting_supervisor" >&6; }
11125 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11127 if test "x-$aros_host_arch" != "x-darwin" ; then
11128 { echo "$as_me:$LINENO: checking for dlopen" >&5
11129 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11130 if test "${ac_cv_func_dlopen+set}" = set; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133 cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h. */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11141 #define dlopen innocuous_dlopen
11143 /* System header to define __stub macros and hopefully few prototypes,
11144 which can conflict with char dlopen (); below.
11145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11146 <limits.h> exists even on freestanding compilers. */
11148 #ifdef __STDC__
11149 # include <limits.h>
11150 #else
11151 # include <assert.h>
11152 #endif
11154 #undef dlopen
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11159 #ifdef __cplusplus
11160 extern "C"
11161 #endif
11162 char dlopen ();
11163 /* The GNU C library defines this for functions which it implements
11164 to always fail with ENOSYS. Some functions are actually named
11165 something starting with __ and the normal name is an alias. */
11166 #if defined __stub_dlopen || defined __stub___dlopen
11167 choke me
11168 #endif
11171 main ()
11173 return dlopen ();
11175 return 0;
11177 _ACEOF
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (ac_try="$ac_link"
11180 case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11183 esac
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_link") 2>conftest.er1
11186 ac_status=$?
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } && {
11192 test -z "$ac_c_werror_flag" ||
11193 test ! -s conftest.err
11194 } && test -s conftest$ac_exeext &&
11195 $as_test_x conftest$ac_exeext; then
11196 ac_cv_func_dlopen=yes
11197 else
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 ac_cv_func_dlopen=no
11204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11205 conftest$ac_exeext conftest.$ac_ext
11207 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11208 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11209 if test $ac_cv_func_dlopen = yes; then
11210 have_dl="yes"
11211 else
11212 have_dl="no"
11215 if test "x-$have_dl" = "x-no" ; then
11216 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11217 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11218 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11219 echo $ECHO_N "(cached) $ECHO_C" >&6
11220 else
11221 ac_check_lib_save_LIBS=$LIBS
11222 LIBS="-ldl $LIBS"
11223 cat >conftest.$ac_ext <<_ACEOF
11224 /* confdefs.h. */
11225 _ACEOF
11226 cat confdefs.h >>conftest.$ac_ext
11227 cat >>conftest.$ac_ext <<_ACEOF
11228 /* end confdefs.h. */
11230 /* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11233 #ifdef __cplusplus
11234 extern "C"
11235 #endif
11236 char dlopen ();
11238 main ()
11240 return dlopen ();
11242 return 0;
11244 _ACEOF
11245 rm -f conftest.$ac_objext conftest$ac_exeext
11246 if { (ac_try="$ac_link"
11247 case "(($ac_try" in
11248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11249 *) ac_try_echo=$ac_try;;
11250 esac
11251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11252 (eval "$ac_link") 2>conftest.er1
11253 ac_status=$?
11254 grep -v '^ *+' conftest.er1 >conftest.err
11255 rm -f conftest.er1
11256 cat conftest.err >&5
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); } && {
11259 test -z "$ac_c_werror_flag" ||
11260 test ! -s conftest.err
11261 } && test -s conftest$ac_exeext &&
11262 $as_test_x conftest$ac_exeext; then
11263 ac_cv_lib_dl_dlopen=yes
11264 else
11265 echo "$as_me: failed program was:" >&5
11266 sed 's/^/| /' conftest.$ac_ext >&5
11268 ac_cv_lib_dl_dlopen=no
11271 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11272 conftest$ac_exeext conftest.$ac_ext
11273 LIBS=$ac_check_lib_save_LIBS
11275 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11276 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11277 if test $ac_cv_lib_dl_dlopen = yes; then
11278 have_dl="yes"
11279 aros_host_ldflags="$aros_host_ldflags -ldl"
11280 else
11281 have_dl="no"
11285 if test "x-$have_dl" = "x-no" ; then
11286 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11287 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11288 { (exit 1); exit 1; }; }
11293 # Check whether --enable-x11_hidd was given.
11294 if test "${enable_x11_hidd+set}" = set; then
11295 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11296 else
11297 x11_hidd="auto"
11300 case "x-$x11_hidd" in
11301 x-yes|x-no|x-auto) ;;
11302 *) x11_hidd="auto" ;;
11303 esac
11305 if test "x-$x11_hidd" != "x-no" ; then
11307 { echo "$as_me:$LINENO: checking for X" >&5
11308 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11311 # Check whether --with-x was given.
11312 if test "${with_x+set}" = set; then
11313 withval=$with_x;
11316 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11317 if test "x$with_x" = xno; then
11318 # The user explicitly disabled X.
11319 have_x=disabled
11320 else
11321 case $x_includes,$x_libraries in #(
11322 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11323 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11324 { (exit 1); exit 1; }; };; #(
11325 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11326 echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11328 # One or both of the vars are not set, and there is no cached value.
11329 ac_x_includes=no ac_x_libraries=no
11330 rm -f -r conftest.dir
11331 if mkdir conftest.dir; then
11332 cd conftest.dir
11333 cat >Imakefile <<'_ACEOF'
11334 incroot:
11335 @echo incroot='${INCROOT}'
11336 usrlibdir:
11337 @echo usrlibdir='${USRLIBDIR}'
11338 libdir:
11339 @echo libdir='${LIBDIR}'
11340 _ACEOF
11341 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11342 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11343 for ac_var in incroot usrlibdir libdir; do
11344 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11345 done
11346 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11347 for ac_extension in a so sl; do
11348 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11349 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11350 ac_im_usrlibdir=$ac_im_libdir; break
11352 done
11353 # Screen out bogus values from the imake configuration. They are
11354 # bogus both because they are the default anyway, and because
11355 # using them would break gcc on systems where it needs fixed includes.
11356 case $ac_im_incroot in
11357 /usr/include) ac_x_includes= ;;
11358 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11359 esac
11360 case $ac_im_usrlibdir in
11361 /usr/lib | /lib) ;;
11362 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11363 esac
11365 cd ..
11366 rm -f -r conftest.dir
11369 # Standard set of common directories for X headers.
11370 # Check X11 before X11Rn because it is often a symlink to the current release.
11371 ac_x_header_dirs='
11372 /usr/X11/include
11373 /usr/X11R6/include
11374 /usr/X11R5/include
11375 /usr/X11R4/include
11377 /usr/include/X11
11378 /usr/include/X11R6
11379 /usr/include/X11R5
11380 /usr/include/X11R4
11382 /usr/local/X11/include
11383 /usr/local/X11R6/include
11384 /usr/local/X11R5/include
11385 /usr/local/X11R4/include
11387 /usr/local/include/X11
11388 /usr/local/include/X11R6
11389 /usr/local/include/X11R5
11390 /usr/local/include/X11R4
11392 /usr/X386/include
11393 /usr/x386/include
11394 /usr/XFree86/include/X11
11396 /usr/include
11397 /usr/local/include
11398 /usr/unsupported/include
11399 /usr/athena/include
11400 /usr/local/x11r5/include
11401 /usr/lpp/Xamples/include
11403 /usr/openwin/include
11404 /usr/openwin/share/include'
11406 if test "$ac_x_includes" = no; then
11407 # Guess where to find include files, by looking for Xlib.h.
11408 # First, try using that file with no special directory specified.
11409 cat >conftest.$ac_ext <<_ACEOF
11410 /* confdefs.h. */
11411 _ACEOF
11412 cat confdefs.h >>conftest.$ac_ext
11413 cat >>conftest.$ac_ext <<_ACEOF
11414 /* end confdefs.h. */
11415 #include <X11/Xlib.h>
11416 _ACEOF
11417 if { (ac_try="$ac_cpp conftest.$ac_ext"
11418 case "(($ac_try" in
11419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11420 *) ac_try_echo=$ac_try;;
11421 esac
11422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11424 ac_status=$?
11425 grep -v '^ *+' conftest.er1 >conftest.err
11426 rm -f conftest.er1
11427 cat conftest.err >&5
11428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11429 (exit $ac_status); } >/dev/null && {
11430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11431 test ! -s conftest.err
11432 }; then
11433 # We can compile using X headers with no special include directory.
11434 ac_x_includes=
11435 else
11436 echo "$as_me: failed program was:" >&5
11437 sed 's/^/| /' conftest.$ac_ext >&5
11439 for ac_dir in $ac_x_header_dirs; do
11440 if test -r "$ac_dir/X11/Xlib.h"; then
11441 ac_x_includes=$ac_dir
11442 break
11444 done
11447 rm -f conftest.err conftest.$ac_ext
11448 fi # $ac_x_includes = no
11450 if test "$ac_x_libraries" = no; then
11451 # Check for the libraries.
11452 # See if we find them without any special options.
11453 # Don't add to $LIBS permanently.
11454 ac_save_LIBS=$LIBS
11455 LIBS="-lX11 $LIBS"
11456 cat >conftest.$ac_ext <<_ACEOF
11457 /* confdefs.h. */
11458 _ACEOF
11459 cat confdefs.h >>conftest.$ac_ext
11460 cat >>conftest.$ac_ext <<_ACEOF
11461 /* end confdefs.h. */
11462 #include <X11/Xlib.h>
11464 main ()
11466 XrmInitialize ()
11468 return 0;
11470 _ACEOF
11471 rm -f conftest.$ac_objext conftest$ac_exeext
11472 if { (ac_try="$ac_link"
11473 case "(($ac_try" in
11474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11475 *) ac_try_echo=$ac_try;;
11476 esac
11477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11478 (eval "$ac_link") 2>conftest.er1
11479 ac_status=$?
11480 grep -v '^ *+' conftest.er1 >conftest.err
11481 rm -f conftest.er1
11482 cat conftest.err >&5
11483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11484 (exit $ac_status); } && {
11485 test -z "$ac_c_werror_flag" ||
11486 test ! -s conftest.err
11487 } && test -s conftest$ac_exeext &&
11488 $as_test_x conftest$ac_exeext; then
11489 LIBS=$ac_save_LIBS
11490 # We can link X programs with no special library path.
11491 ac_x_libraries=
11492 else
11493 echo "$as_me: failed program was:" >&5
11494 sed 's/^/| /' conftest.$ac_ext >&5
11496 LIBS=$ac_save_LIBS
11497 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11499 # Don't even attempt the hair of trying to link an X program!
11500 for ac_extension in a so sl; do
11501 if test -r "$ac_dir/libX11.$ac_extension"; then
11502 ac_x_libraries=$ac_dir
11503 break 2
11505 done
11506 done
11509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11510 conftest$ac_exeext conftest.$ac_ext
11511 fi # $ac_x_libraries = no
11513 case $ac_x_includes,$ac_x_libraries in #(
11514 no,* | *,no | *\'*)
11515 # Didn't find X, or a directory has "'" in its name.
11516 ac_cv_have_x="have_x=no";; #(
11518 # Record where we found X for the cache.
11519 ac_cv_have_x="have_x=yes\
11520 ac_x_includes='$ac_x_includes'\
11521 ac_x_libraries='$ac_x_libraries'"
11522 esac
11524 ;; #(
11525 *) have_x=yes;;
11526 esac
11527 eval "$ac_cv_have_x"
11528 fi # $with_x != no
11530 if test "$have_x" != yes; then
11531 { echo "$as_me:$LINENO: result: $have_x" >&5
11532 echo "${ECHO_T}$have_x" >&6; }
11533 no_x=yes
11534 else
11535 # If each of the values was on the command line, it overrides each guess.
11536 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11537 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11538 # Update the cache value to reflect the command line values.
11539 ac_cv_have_x="have_x=yes\
11540 ac_x_includes='$x_includes'\
11541 ac_x_libraries='$x_libraries'"
11542 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11543 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11547 x_cflags=
11548 for path in $x_libraries
11550 x_cflags="$x_cflags -L$path"
11551 done
11553 for path in $x_includes
11555 x_cflags="$x_cflags -I$path"
11556 done
11558 if test "x-$no_x" = "x-yes" ; then
11560 if test "x-$x11_hidd" != "x-auto" ; then
11561 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11562 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11563 { (exit 1); exit 1; }; }
11566 else
11567 x11_hidd_target=kernel-x11gfx
11570 # Check whether --enable-x11_shm was given.
11571 if test "${enable_x11_shm+set}" = set; then
11572 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11573 else
11574 x11_hidd_shm="auto"
11577 case "x-$x11_hidd_shm" in
11578 x-yes|x-no|x-auto) ;;
11579 *) x11_hidd_shm="auto" ;;
11580 esac
11582 have_xshm=no
11584 if test "x-$x11_hidd_shm" != "x-no" ; then
11587 for ac_header in sys/ipc.h
11589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 ac_res=`eval echo '${'$as_ac_Header'}'`
11597 { echo "$as_me:$LINENO: result: $ac_res" >&5
11598 echo "${ECHO_T}$ac_res" >&6; }
11599 else
11600 # Is the header compilable?
11601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11603 cat >conftest.$ac_ext <<_ACEOF
11604 /* confdefs.h. */
11605 _ACEOF
11606 cat confdefs.h >>conftest.$ac_ext
11607 cat >>conftest.$ac_ext <<_ACEOF
11608 /* end confdefs.h. */
11609 $ac_includes_default
11610 #include <$ac_header>
11611 _ACEOF
11612 rm -f conftest.$ac_objext
11613 if { (ac_try="$ac_compile"
11614 case "(($ac_try" in
11615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11616 *) ac_try_echo=$ac_try;;
11617 esac
11618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11619 (eval "$ac_compile") 2>conftest.er1
11620 ac_status=$?
11621 grep -v '^ *+' conftest.er1 >conftest.err
11622 rm -f conftest.er1
11623 cat conftest.err >&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } && {
11626 test -z "$ac_c_werror_flag" ||
11627 test ! -s conftest.err
11628 } && test -s conftest.$ac_objext; then
11629 ac_header_compiler=yes
11630 else
11631 echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11634 ac_header_compiler=no
11637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11639 echo "${ECHO_T}$ac_header_compiler" >&6; }
11641 # Is the header present?
11642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11644 cat >conftest.$ac_ext <<_ACEOF
11645 /* confdefs.h. */
11646 _ACEOF
11647 cat confdefs.h >>conftest.$ac_ext
11648 cat >>conftest.$ac_ext <<_ACEOF
11649 /* end confdefs.h. */
11650 #include <$ac_header>
11651 _ACEOF
11652 if { (ac_try="$ac_cpp conftest.$ac_ext"
11653 case "(($ac_try" in
11654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11655 *) ac_try_echo=$ac_try;;
11656 esac
11657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11659 ac_status=$?
11660 grep -v '^ *+' conftest.er1 >conftest.err
11661 rm -f conftest.er1
11662 cat conftest.err >&5
11663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11664 (exit $ac_status); } >/dev/null && {
11665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11666 test ! -s conftest.err
11667 }; then
11668 ac_header_preproc=yes
11669 else
11670 echo "$as_me: failed program was:" >&5
11671 sed 's/^/| /' conftest.$ac_ext >&5
11673 ac_header_preproc=no
11676 rm -f conftest.err conftest.$ac_ext
11677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11678 echo "${ECHO_T}$ac_header_preproc" >&6; }
11680 # So? What about this header?
11681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11682 yes:no: )
11683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11687 ac_header_preproc=yes
11689 no:yes:* )
11690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11704 esac
11705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11708 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 else
11710 eval "$as_ac_Header=\$ac_header_preproc"
11712 ac_res=`eval echo '${'$as_ac_Header'}'`
11713 { echo "$as_me:$LINENO: result: $ac_res" >&5
11714 echo "${ECHO_T}$ac_res" >&6; }
11717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11718 cat >>confdefs.h <<_ACEOF
11719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11720 _ACEOF
11724 done
11727 for ac_header in sys/shm.h
11729 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11731 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11732 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11733 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11734 echo $ECHO_N "(cached) $ECHO_C" >&6
11736 ac_res=`eval echo '${'$as_ac_Header'}'`
11737 { echo "$as_me:$LINENO: result: $ac_res" >&5
11738 echo "${ECHO_T}$ac_res" >&6; }
11739 else
11740 # Is the header compilable?
11741 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11742 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11743 cat >conftest.$ac_ext <<_ACEOF
11744 /* confdefs.h. */
11745 _ACEOF
11746 cat confdefs.h >>conftest.$ac_ext
11747 cat >>conftest.$ac_ext <<_ACEOF
11748 /* end confdefs.h. */
11749 $ac_includes_default
11750 #include <$ac_header>
11751 _ACEOF
11752 rm -f conftest.$ac_objext
11753 if { (ac_try="$ac_compile"
11754 case "(($ac_try" in
11755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11756 *) ac_try_echo=$ac_try;;
11757 esac
11758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11759 (eval "$ac_compile") 2>conftest.er1
11760 ac_status=$?
11761 grep -v '^ *+' conftest.er1 >conftest.err
11762 rm -f conftest.er1
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } && {
11766 test -z "$ac_c_werror_flag" ||
11767 test ! -s conftest.err
11768 } && test -s conftest.$ac_objext; then
11769 ac_header_compiler=yes
11770 else
11771 echo "$as_me: failed program was:" >&5
11772 sed 's/^/| /' conftest.$ac_ext >&5
11774 ac_header_compiler=no
11777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11778 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11779 echo "${ECHO_T}$ac_header_compiler" >&6; }
11781 # Is the header present?
11782 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11783 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11784 cat >conftest.$ac_ext <<_ACEOF
11785 /* confdefs.h. */
11786 _ACEOF
11787 cat confdefs.h >>conftest.$ac_ext
11788 cat >>conftest.$ac_ext <<_ACEOF
11789 /* end confdefs.h. */
11790 #include <$ac_header>
11791 _ACEOF
11792 if { (ac_try="$ac_cpp conftest.$ac_ext"
11793 case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11796 esac
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } >/dev/null && {
11805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11806 test ! -s conftest.err
11807 }; then
11808 ac_header_preproc=yes
11809 else
11810 echo "$as_me: failed program was:" >&5
11811 sed 's/^/| /' conftest.$ac_ext >&5
11813 ac_header_preproc=no
11816 rm -f conftest.err conftest.$ac_ext
11817 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11818 echo "${ECHO_T}$ac_header_preproc" >&6; }
11820 # So? What about this header?
11821 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11822 yes:no: )
11823 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11824 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11825 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11826 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11827 ac_header_preproc=yes
11829 no:yes:* )
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11831 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11833 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11834 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11835 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11836 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11837 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11839 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11840 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11841 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11844 esac
11845 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11849 else
11850 eval "$as_ac_Header=\$ac_header_preproc"
11852 ac_res=`eval echo '${'$as_ac_Header'}'`
11853 { echo "$as_me:$LINENO: result: $ac_res" >&5
11854 echo "${ECHO_T}$ac_res" >&6; }
11857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11858 cat >>confdefs.h <<_ACEOF
11859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11860 _ACEOF
11864 done
11867 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11869 save_cflags="$CFLAGS"
11870 CFLAGS="$CFLAGS $x_cflags"
11871 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
11872 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
11873 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876 ac_check_lib_save_LIBS=$LIBS
11877 LIBS="-lXext $LIBS"
11878 cat >conftest.$ac_ext <<_ACEOF
11879 /* confdefs.h. */
11880 _ACEOF
11881 cat confdefs.h >>conftest.$ac_ext
11882 cat >>conftest.$ac_ext <<_ACEOF
11883 /* end confdefs.h. */
11885 /* Override any GCC internal prototype to avoid an error.
11886 Use char because int might match the return type of a GCC
11887 builtin and then its argument prototype would still apply. */
11888 #ifdef __cplusplus
11889 extern "C"
11890 #endif
11891 char XShmQueryExtension ();
11893 main ()
11895 return XShmQueryExtension ();
11897 return 0;
11899 _ACEOF
11900 rm -f conftest.$ac_objext conftest$ac_exeext
11901 if { (ac_try="$ac_link"
11902 case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905 esac
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_link") 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest$ac_exeext &&
11917 $as_test_x conftest$ac_exeext; then
11918 ac_cv_lib_Xext_XShmQueryExtension=yes
11919 else
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11923 ac_cv_lib_Xext_XShmQueryExtension=no
11926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11927 conftest$ac_exeext conftest.$ac_ext
11928 LIBS=$ac_check_lib_save_LIBS
11930 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11931 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11932 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
11933 have_xshm=yes
11936 CFLAGS="$save_cflags"
11940 if test "x-$have_xshm" = "x-yes" ; then
11941 DO_XSHM_SUPPORT="1"
11942 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11943 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
11944 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
11945 { (exit 1); exit 1; }; }
11946 else
11947 DO_XSHM_SUPPORT="0"
11951 # Check whether --enable-x11_vidmode was given.
11952 if test "${enable_x11_vidmode+set}" = set; then
11953 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11954 else
11955 x11_hidd_vidmode="auto"
11958 case "x-$x11_hidd_vidmode" in
11959 x-yes|x-no|x-auto) ;;
11960 *) x11_hidd_vidmode="auto" ;;
11961 esac
11963 have_vidmode=no
11965 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11967 save_cflags="$CFLAGS"
11968 CFLAGS="$CFLAGS $x_cflags"
11969 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11970 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
11971 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
11972 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 else
11974 ac_check_lib_save_LIBS=$LIBS
11975 LIBS="-lXxf86vm $LIBS"
11976 cat >conftest.$ac_ext <<_ACEOF
11977 /* confdefs.h. */
11978 _ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11983 /* Override any GCC internal prototype to avoid an error.
11984 Use char because int might match the return type of a GCC
11985 builtin and then its argument prototype would still apply. */
11986 #ifdef __cplusplus
11987 extern "C"
11988 #endif
11989 char XF86VidModeQueryExtension ();
11991 main ()
11993 return XF86VidModeQueryExtension ();
11995 return 0;
11997 _ACEOF
11998 rm -f conftest.$ac_objext conftest$ac_exeext
11999 if { (ac_try="$ac_link"
12000 case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12003 esac
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_link") 2>conftest.er1
12006 ac_status=$?
12007 grep -v '^ *+' conftest.er1 >conftest.err
12008 rm -f conftest.er1
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } && {
12012 test -z "$ac_c_werror_flag" ||
12013 test ! -s conftest.err
12014 } && test -s conftest$ac_exeext &&
12015 $as_test_x conftest$ac_exeext; then
12016 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12017 else
12018 echo "$as_me: failed program was:" >&5
12019 sed 's/^/| /' conftest.$ac_ext >&5
12021 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12025 conftest$ac_exeext conftest.$ac_ext
12026 LIBS=$ac_check_lib_save_LIBS
12028 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12029 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12030 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
12031 have_vidmode=yes
12034 CFLAGS="$save_cflags"
12037 if test "x-$have_vidmode" = "x-yes" ; then
12038 DO_VIDMODE_SUPPORT="1"
12039 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12040 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12041 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12042 { (exit 1); exit 1; }; }
12043 else
12044 DO_VIDMODE_SUPPORT="0"
12048 aros_host_x11_includes=$x_includes
12049 aros_host_x11_libdirs=$x_libraries
12053 # Check whether --enable-sdl_hidd was given.
12054 if test "${enable_sdl_hidd+set}" = set; then
12055 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12056 else
12057 sdl_hidd="auto"
12060 case "x-$sdl_hidd" in
12061 x-yes|x-no|x-auto) ;;
12062 *) sdl_hidd="auto" ;;
12063 esac
12065 if test "x-$sdl_hidd" != "x-no" ; then
12068 # Check whether --with-sdl-prefix was given.
12069 if test "${with_sdl_prefix+set}" = set; then
12070 withval=$with_sdl_prefix; sdl_prefix="$withval"
12071 else
12072 sdl_prefix=""
12076 # Check whether --with-sdl-exec-prefix was given.
12077 if test "${with_sdl_exec_prefix+set}" = set; then
12078 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12079 else
12080 sdl_exec_prefix=""
12083 # Check whether --enable-sdltest was given.
12084 if test "${enable_sdltest+set}" = set; then
12085 enableval=$enable_sdltest;
12086 else
12087 enable_sdltest=yes
12091 if test x$sdl_exec_prefix != x ; then
12092 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12093 if test x${SDL_CONFIG+set} != xset ; then
12094 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12097 if test x$sdl_prefix != x ; then
12098 sdl_args="$sdl_args --prefix=$sdl_prefix"
12099 if test x${SDL_CONFIG+set} != xset ; then
12100 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12104 if test "x$prefix" != xNONE; then
12105 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12107 # Extract the first word of "sdl-config", so it can be a program name with args.
12108 set dummy sdl-config; ac_word=$2
12109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12111 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 else
12114 case $SDL_CONFIG in
12115 [\\/]* | ?:[\\/]*)
12116 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12120 for as_dir in $PATH
12122 IFS=$as_save_IFS
12123 test -z "$as_dir" && as_dir=.
12124 for ac_exec_ext in '' $ac_executable_extensions; do
12125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12126 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12128 break 2
12130 done
12131 done
12132 IFS=$as_save_IFS
12134 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12136 esac
12138 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12139 if test -n "$SDL_CONFIG"; then
12140 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12141 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12142 else
12143 { echo "$as_me:$LINENO: result: no" >&5
12144 echo "${ECHO_T}no" >&6; }
12148 min_sdl_version=1.2.10
12149 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12150 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12151 no_sdl=""
12152 if test "$SDL_CONFIG" = "no" ; then
12153 no_sdl=yes
12154 else
12155 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12156 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12158 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12159 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12160 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12161 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12162 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12163 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12164 if test "x$enable_sdltest" = "xyes" ; then
12165 ac_save_CFLAGS="$CFLAGS"
12166 ac_save_CXXFLAGS="$CXXFLAGS"
12167 ac_save_LIBS="$LIBS"
12168 CFLAGS="$CFLAGS $SDL_CFLAGS"
12169 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12170 LIBS="$LIBS $SDL_LIBS"
12171 rm -f conf.sdltest
12172 if test "$cross_compiling" = yes; then
12173 echo $ac_n "cross compiling; assumed OK... $ac_c"
12174 else
12175 cat >conftest.$ac_ext <<_ACEOF
12176 /* confdefs.h. */
12177 _ACEOF
12178 cat confdefs.h >>conftest.$ac_ext
12179 cat >>conftest.$ac_ext <<_ACEOF
12180 /* end confdefs.h. */
12182 #include <stdio.h>
12183 #include <stdlib.h>
12184 #include <string.h>
12185 #include "SDL.h"
12187 char*
12188 my_strdup (char *str)
12190 char *new_str;
12192 if (str)
12194 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12195 strcpy (new_str, str);
12197 else
12198 new_str = NULL;
12200 return new_str;
12203 int main (int argc, char *argv[])
12205 int major, minor, micro;
12206 char *tmp_version;
12208 /* This hangs on some systems (?)
12209 system ("touch conf.sdltest");
12211 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12213 /* HP/UX 9 (%@#!) writes to sscanf strings */
12214 tmp_version = my_strdup("$min_sdl_version");
12215 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12216 printf("%s, bad version string\n", "$min_sdl_version");
12217 exit(1);
12220 if (($sdl_major_version > major) ||
12221 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12222 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12224 return 0;
12226 else
12228 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12229 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12230 printf("*** best to upgrade to the required version.\n");
12231 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12232 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12233 printf("*** config.cache before re-running configure\n");
12234 return 1;
12239 _ACEOF
12240 rm -f conftest$ac_exeext
12241 if { (ac_try="$ac_link"
12242 case "(($ac_try" in
12243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12244 *) ac_try_echo=$ac_try;;
12245 esac
12246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12247 (eval "$ac_link") 2>&5
12248 ac_status=$?
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
12257 ac_status=$?
12258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); }; }; then
12261 else
12262 echo "$as_me: program exited with status $ac_status" >&5
12263 echo "$as_me: failed program was:" >&5
12264 sed 's/^/| /' conftest.$ac_ext >&5
12266 ( exit $ac_status )
12267 no_sdl=yes
12269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12273 CFLAGS="$ac_save_CFLAGS"
12274 CXXFLAGS="$ac_save_CXXFLAGS"
12275 LIBS="$ac_save_LIBS"
12278 if test "x$no_sdl" = x ; then
12279 { echo "$as_me:$LINENO: result: yes" >&5
12280 echo "${ECHO_T}yes" >&6; }
12281 have_sdl="yes"
12282 else
12283 { echo "$as_me:$LINENO: result: no" >&5
12284 echo "${ECHO_T}no" >&6; }
12285 if test "$SDL_CONFIG" = "no" ; then
12286 echo "*** The sdl-config script installed by SDL could not be found"
12287 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12288 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12289 echo "*** full path to sdl-config."
12290 else
12291 if test -f conf.sdltest ; then
12293 else
12294 echo "*** Could not run SDL test program, checking why..."
12295 CFLAGS="$CFLAGS $SDL_CFLAGS"
12296 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12297 LIBS="$LIBS $SDL_LIBS"
12298 cat >conftest.$ac_ext <<_ACEOF
12299 /* confdefs.h. */
12300 _ACEOF
12301 cat confdefs.h >>conftest.$ac_ext
12302 cat >>conftest.$ac_ext <<_ACEOF
12303 /* end confdefs.h. */
12305 #include <stdio.h>
12306 #include "SDL.h"
12308 int main(int argc, char *argv[])
12309 { return 0; }
12310 #undef main
12311 #define main K_and_R_C_main
12314 main ()
12316 return 0;
12318 return 0;
12320 _ACEOF
12321 rm -f conftest.$ac_objext conftest$ac_exeext
12322 if { (ac_try="$ac_link"
12323 case "(($ac_try" in
12324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12325 *) ac_try_echo=$ac_try;;
12326 esac
12327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12328 (eval "$ac_link") 2>conftest.er1
12329 ac_status=$?
12330 grep -v '^ *+' conftest.er1 >conftest.err
12331 rm -f conftest.er1
12332 cat conftest.err >&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); } && {
12335 test -z "$ac_c_werror_flag" ||
12336 test ! -s conftest.err
12337 } && test -s conftest$ac_exeext &&
12338 $as_test_x conftest$ac_exeext; then
12339 echo "*** The test program compiled, but did not run. This usually means"
12340 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12341 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12342 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12343 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12344 echo "*** is required on your system"
12345 echo "***"
12346 echo "*** If you have an old version installed, it is best to remove it, although"
12347 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12348 else
12349 echo "$as_me: failed program was:" >&5
12350 sed 's/^/| /' conftest.$ac_ext >&5
12352 echo "*** The test program failed to compile or link. See the file config.log for the"
12353 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12354 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12355 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12359 conftest$ac_exeext conftest.$ac_ext
12360 CFLAGS="$ac_save_CFLAGS"
12361 CXXFLAGS="$ac_save_CXXFLAGS"
12362 LIBS="$ac_save_LIBS"
12365 SDL_CFLAGS=""
12366 SDL_LIBS=""
12367 have_sdl="no"
12371 rm -f conf.sdltest
12374 if test "x-$have_sdl" != "x-yes" ; then
12376 if test "x-$sdl_hidd" != "x-auto" ; then
12377 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12378 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12379 { (exit 1); exit 1; }; }
12382 else
12383 sdl_hidd_target=kernel-hidd-sdl
12384 aros_host_sdl_cflags=SDL_CFLAGS
12385 aros_host_sdl_libs=SDL_LIBS
12392 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12393 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12394 # Check whether --enable-dbus was given.
12395 if test "${enable_dbus+set}" = set; then
12396 enableval=$enable_dbus; dbus="yes"
12397 else
12398 dbus="no"
12401 if test "$dbus" = "yes" ; then
12402 ENABLE_DBUS=1
12403 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12404 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12405 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12406 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12407 else
12408 ENABLE_DBUS=0
12410 { echo "$as_me:$LINENO: result: $dbus" >&5
12411 echo "${ECHO_T}$dbus" >&6; }
12415 # Generic
12424 # Host related
12447 # Target Related
12491 # Graphics Related
12506 # Native version related
12510 # Palm native version related
12513 # Unix/Hosted version related
12516 # DBUS related
12523 # Debug related
12529 # Collect-aros stuff: "-ius" to ignore undefined symbols
12532 # C compiler related
12535 case "$aros_flavour" in
12536 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12537 aros_flavour="emulation" ;;
12538 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12539 aros_flavour="emulation" ;;
12540 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12541 aros_flavour="standalone";;
12542 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12543 aros_flavour="native" ;;
12544 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12545 aros_flavour="native" ;;
12546 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12547 aros_flavour="linklib" ;;
12548 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12549 aros_flavour="palmnative" ;;
12550 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12551 aros_flavour="mac68knative" ;;
12552 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12553 aros_flavour="ppcnative" ;;
12554 esac
12556 if test ! -d ${aros_inc_dir} ; then
12557 ${MKDIR} ${aros_inc_dir}
12559 if test ! -d ${aros_geninc_dir} ; then
12560 ${MKDIR} ${aros_geninc_dir}
12562 if test ! -d ${aros_hostcfg_dir} ; then
12563 ${MKDIR} ${aros_hostcfg_dir}
12565 if test ! -d ${aros_targetcfg_dir} ; then
12566 ${MKDIR} ${aros_targetcfg_dir}
12568 if test ! -d ${aros_tools_dir} ; then
12569 ${MKDIR} ${aros_tools_dir}
12571 if test ! -d ${aros_scripts_dir} ; then
12572 ${MKDIR} ${aros_scripts_dir}
12575 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12578 ac_config_commands="$ac_config_commands compiler_executable"
12580 ac_config_commands="$ac_config_commands genshared_executable"
12582 ac_config_commands="$ac_config_commands genmf_executable"
12584 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
12587 ac_config_files="$ac_config_files Makefile rom/mmakefile 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/adflib/myconf.aros tools/collect-aros/env.h"
12590 cat >confcache <<\_ACEOF
12591 # This file is a shell script that caches the results of configure
12592 # tests run on this system so they can be shared between configure
12593 # scripts and configure runs, see configure's option --config-cache.
12594 # It is not useful on other systems. If it contains results you don't
12595 # want to keep, you may remove or edit it.
12597 # config.status only pays attention to the cache file if you give it
12598 # the --recheck option to rerun configure.
12600 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12601 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12602 # following values.
12604 _ACEOF
12606 # The following way of writing the cache mishandles newlines in values,
12607 # but we know of no workaround that is simple, portable, and efficient.
12608 # So, we kill variables containing newlines.
12609 # Ultrix sh set writes to stderr and can't be redirected directly,
12610 # and sets the high bit in the cache file unless we assign to the vars.
12612 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12613 eval ac_val=\$$ac_var
12614 case $ac_val in #(
12615 *${as_nl}*)
12616 case $ac_var in #(
12617 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12618 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12619 esac
12620 case $ac_var in #(
12621 _ | IFS | as_nl) ;; #(
12622 *) $as_unset $ac_var ;;
12623 esac ;;
12624 esac
12625 done
12627 (set) 2>&1 |
12628 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12629 *${as_nl}ac_space=\ *)
12630 # `set' does not quote correctly, so add quotes (double-quote
12631 # substitution turns \\\\ into \\, and sed turns \\ into \).
12632 sed -n \
12633 "s/'/'\\\\''/g;
12634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12635 ;; #(
12637 # `set' quotes correctly as required by POSIX, so do not add quotes.
12638 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12640 esac |
12641 sort
12643 sed '
12644 /^ac_cv_env_/b end
12645 t clear
12646 :clear
12647 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12648 t end
12649 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12650 :end' >>confcache
12651 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12652 if test -w "$cache_file"; then
12653 test "x$cache_file" != "x/dev/null" &&
12654 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12655 echo "$as_me: updating cache $cache_file" >&6;}
12656 cat confcache >$cache_file
12657 else
12658 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12659 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12662 rm -f confcache
12664 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12665 # Let make expand exec_prefix.
12666 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12668 DEFS=-DHAVE_CONFIG_H
12670 ac_libobjs=
12671 ac_ltlibobjs=
12672 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12673 # 1. Remove the extension, and $U if already installed.
12674 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12675 ac_i=`echo "$ac_i" | sed "$ac_script"`
12676 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12677 # will be set to the directory where LIBOBJS objects are built.
12678 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12679 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12680 done
12681 LIBOBJS=$ac_libobjs
12683 LTLIBOBJS=$ac_ltlibobjs
12687 : ${CONFIG_STATUS=./config.status}
12688 ac_clean_files_save=$ac_clean_files
12689 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12690 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12691 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12692 cat >$CONFIG_STATUS <<_ACEOF
12693 #! $SHELL
12694 # Generated by $as_me.
12695 # Run this file to recreate the current configuration.
12696 # Compiler output produced by configure, useful for debugging
12697 # configure, is in config.log if it exists.
12699 debug=false
12700 ac_cs_recheck=false
12701 ac_cs_silent=false
12702 SHELL=\${CONFIG_SHELL-$SHELL}
12703 _ACEOF
12705 cat >>$CONFIG_STATUS <<\_ACEOF
12706 ## --------------------- ##
12707 ## M4sh Initialization. ##
12708 ## --------------------- ##
12710 # Be more Bourne compatible
12711 DUALCASE=1; export DUALCASE # for MKS sh
12712 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12713 emulate sh
12714 NULLCMD=:
12715 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12716 # is contrary to our usage. Disable this feature.
12717 alias -g '${1+"$@"}'='"$@"'
12718 setopt NO_GLOB_SUBST
12719 else
12720 case `(set -o) 2>/dev/null` in
12721 *posix*) set -o posix ;;
12722 esac
12729 # PATH needs CR
12730 # Avoid depending upon Character Ranges.
12731 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12732 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12733 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12734 as_cr_digits='0123456789'
12735 as_cr_alnum=$as_cr_Letters$as_cr_digits
12737 # The user is always right.
12738 if test "${PATH_SEPARATOR+set}" != set; then
12739 echo "#! /bin/sh" >conf$$.sh
12740 echo "exit 0" >>conf$$.sh
12741 chmod +x conf$$.sh
12742 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12743 PATH_SEPARATOR=';'
12744 else
12745 PATH_SEPARATOR=:
12747 rm -f conf$$.sh
12750 # Support unset when possible.
12751 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12752 as_unset=unset
12753 else
12754 as_unset=false
12758 # IFS
12759 # We need space, tab and new line, in precisely that order. Quoting is
12760 # there to prevent editors from complaining about space-tab.
12761 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12762 # splitting by setting IFS to empty value.)
12763 as_nl='
12765 IFS=" "" $as_nl"
12767 # Find who we are. Look in the path if we contain no directory separator.
12768 case $0 in
12769 *[\\/]* ) as_myself=$0 ;;
12770 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12771 for as_dir in $PATH
12773 IFS=$as_save_IFS
12774 test -z "$as_dir" && as_dir=.
12775 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12776 done
12777 IFS=$as_save_IFS
12780 esac
12781 # We did not find ourselves, most probably we were run as `sh COMMAND'
12782 # in which case we are not to be found in the path.
12783 if test "x$as_myself" = x; then
12784 as_myself=$0
12786 if test ! -f "$as_myself"; then
12787 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12788 { (exit 1); exit 1; }
12791 # Work around bugs in pre-3.0 UWIN ksh.
12792 for as_var in ENV MAIL MAILPATH
12793 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12794 done
12795 PS1='$ '
12796 PS2='> '
12797 PS4='+ '
12799 # NLS nuisances.
12800 for as_var in \
12801 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12802 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12803 LC_TELEPHONE LC_TIME
12805 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12806 eval $as_var=C; export $as_var
12807 else
12808 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12810 done
12812 # Required to use basename.
12813 if expr a : '\(a\)' >/dev/null 2>&1 &&
12814 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12815 as_expr=expr
12816 else
12817 as_expr=false
12820 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12821 as_basename=basename
12822 else
12823 as_basename=false
12827 # Name of the executable.
12828 as_me=`$as_basename -- "$0" ||
12829 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12830 X"$0" : 'X\(//\)$' \| \
12831 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12832 echo X/"$0" |
12833 sed '/^.*\/\([^/][^/]*\)\/*$/{
12834 s//\1/
12837 /^X\/\(\/\/\)$/{
12838 s//\1/
12841 /^X\/\(\/\).*/{
12842 s//\1/
12845 s/.*/./; q'`
12847 # CDPATH.
12848 $as_unset CDPATH
12852 as_lineno_1=$LINENO
12853 as_lineno_2=$LINENO
12854 test "x$as_lineno_1" != "x$as_lineno_2" &&
12855 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12857 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12858 # uniformly replaced by the line number. The first 'sed' inserts a
12859 # line-number line after each line using $LINENO; the second 'sed'
12860 # does the real work. The second script uses 'N' to pair each
12861 # line-number line with the line containing $LINENO, and appends
12862 # trailing '-' during substitution so that $LINENO is not a special
12863 # case at line end.
12864 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12865 # scripts with optimization help from Paolo Bonzini. Blame Lee
12866 # E. McMahon (1931-1989) for sed's syntax. :-)
12867 sed -n '
12869 /[$]LINENO/=
12870 ' <$as_myself |
12871 sed '
12872 s/[$]LINENO.*/&-/
12873 t lineno
12875 :lineno
12877 :loop
12878 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12879 t loop
12880 s/-\n.*//
12881 ' >$as_me.lineno &&
12882 chmod +x "$as_me.lineno" ||
12883 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12884 { (exit 1); exit 1; }; }
12886 # Don't try to exec as it changes $[0], causing all sort of problems
12887 # (the dirname of $[0] is not the place where we might find the
12888 # original and so on. Autoconf is especially sensitive to this).
12889 . "./$as_me.lineno"
12890 # Exit status is that of the last command.
12891 exit
12895 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12896 as_dirname=dirname
12897 else
12898 as_dirname=false
12901 ECHO_C= ECHO_N= ECHO_T=
12902 case `echo -n x` in
12903 -n*)
12904 case `echo 'x\c'` in
12905 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12906 *) ECHO_C='\c';;
12907 esac;;
12909 ECHO_N='-n';;
12910 esac
12912 if expr a : '\(a\)' >/dev/null 2>&1 &&
12913 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12914 as_expr=expr
12915 else
12916 as_expr=false
12919 rm -f conf$$ conf$$.exe conf$$.file
12920 if test -d conf$$.dir; then
12921 rm -f conf$$.dir/conf$$.file
12922 else
12923 rm -f conf$$.dir
12924 mkdir conf$$.dir
12926 echo >conf$$.file
12927 if ln -s conf$$.file conf$$ 2>/dev/null; then
12928 as_ln_s='ln -s'
12929 # ... but there are two gotchas:
12930 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12931 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12932 # In both cases, we have to default to `cp -p'.
12933 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12934 as_ln_s='cp -p'
12935 elif ln conf$$.file conf$$ 2>/dev/null; then
12936 as_ln_s=ln
12937 else
12938 as_ln_s='cp -p'
12940 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12941 rmdir conf$$.dir 2>/dev/null
12943 if mkdir -p . 2>/dev/null; then
12944 as_mkdir_p=:
12945 else
12946 test -d ./-p && rmdir ./-p
12947 as_mkdir_p=false
12950 if test -x / >/dev/null 2>&1; then
12951 as_test_x='test -x'
12952 else
12953 if ls -dL / >/dev/null 2>&1; then
12954 as_ls_L_option=L
12955 else
12956 as_ls_L_option=
12958 as_test_x='
12959 eval sh -c '\''
12960 if test -d "$1"; then
12961 test -d "$1/.";
12962 else
12963 case $1 in
12964 -*)set "./$1";;
12965 esac;
12966 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12967 ???[sx]*):;;*)false;;esac;fi
12968 '\'' sh
12971 as_executable_p=$as_test_x
12973 # Sed expression to map a string onto a valid CPP name.
12974 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12976 # Sed expression to map a string onto a valid variable name.
12977 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12980 exec 6>&1
12982 # Save the log message, to keep $[0] and so on meaningful, and to
12983 # report actual input values of CONFIG_FILES etc. instead of their
12984 # values after options handling.
12985 ac_log="
12986 This file was extended by $as_me, which was
12987 generated by GNU Autoconf 2.61. Invocation command line was
12989 CONFIG_FILES = $CONFIG_FILES
12990 CONFIG_HEADERS = $CONFIG_HEADERS
12991 CONFIG_LINKS = $CONFIG_LINKS
12992 CONFIG_COMMANDS = $CONFIG_COMMANDS
12993 $ $0 $@
12995 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12998 _ACEOF
13000 cat >>$CONFIG_STATUS <<_ACEOF
13001 # Files that config.status was made for.
13002 config_files="$ac_config_files"
13003 config_headers="$ac_config_headers"
13004 config_commands="$ac_config_commands"
13006 _ACEOF
13008 cat >>$CONFIG_STATUS <<\_ACEOF
13009 ac_cs_usage="\
13010 \`$as_me' instantiates files from templates according to the
13011 current configuration.
13013 Usage: $0 [OPTIONS] [FILE]...
13015 -h, --help print this help, then exit
13016 -V, --version print version number and configuration settings, then exit
13017 -q, --quiet do not print progress messages
13018 -d, --debug don't remove temporary files
13019 --recheck update $as_me by reconfiguring in the same conditions
13020 --file=FILE[:TEMPLATE]
13021 instantiate the configuration file FILE
13022 --header=FILE[:TEMPLATE]
13023 instantiate the configuration header FILE
13025 Configuration files:
13026 $config_files
13028 Configuration headers:
13029 $config_headers
13031 Configuration commands:
13032 $config_commands
13034 Report bugs to <bug-autoconf@gnu.org>."
13036 _ACEOF
13037 cat >>$CONFIG_STATUS <<_ACEOF
13038 ac_cs_version="\\
13039 config.status
13040 configured by $0, generated by GNU Autoconf 2.61,
13041 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13043 Copyright (C) 2006 Free Software Foundation, Inc.
13044 This config.status script is free software; the Free Software Foundation
13045 gives unlimited permission to copy, distribute and modify it."
13047 ac_pwd='$ac_pwd'
13048 srcdir='$srcdir'
13049 _ACEOF
13051 cat >>$CONFIG_STATUS <<\_ACEOF
13052 # If no file are specified by the user, then we need to provide default
13053 # value. By we need to know if files were specified by the user.
13054 ac_need_defaults=:
13055 while test $# != 0
13057 case $1 in
13058 --*=*)
13059 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13060 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13061 ac_shift=:
13064 ac_option=$1
13065 ac_optarg=$2
13066 ac_shift=shift
13068 esac
13070 case $ac_option in
13071 # Handling of the options.
13072 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13073 ac_cs_recheck=: ;;
13074 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13075 echo "$ac_cs_version"; exit ;;
13076 --debug | --debu | --deb | --de | --d | -d )
13077 debug=: ;;
13078 --file | --fil | --fi | --f )
13079 $ac_shift
13080 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13081 ac_need_defaults=false;;
13082 --header | --heade | --head | --hea )
13083 $ac_shift
13084 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13085 ac_need_defaults=false;;
13086 --he | --h)
13087 # Conflict between --help and --header
13088 { echo "$as_me: error: ambiguous option: $1
13089 Try \`$0 --help' for more information." >&2
13090 { (exit 1); exit 1; }; };;
13091 --help | --hel | -h )
13092 echo "$ac_cs_usage"; exit ;;
13093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13094 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13095 ac_cs_silent=: ;;
13097 # This is an error.
13098 -*) { echo "$as_me: error: unrecognized option: $1
13099 Try \`$0 --help' for more information." >&2
13100 { (exit 1); exit 1; }; } ;;
13102 *) ac_config_targets="$ac_config_targets $1"
13103 ac_need_defaults=false ;;
13105 esac
13106 shift
13107 done
13109 ac_configure_extra_args=
13111 if $ac_cs_silent; then
13112 exec 6>/dev/null
13113 ac_configure_extra_args="$ac_configure_extra_args --silent"
13116 _ACEOF
13117 cat >>$CONFIG_STATUS <<_ACEOF
13118 if \$ac_cs_recheck; then
13119 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13120 CONFIG_SHELL=$SHELL
13121 export CONFIG_SHELL
13122 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13125 _ACEOF
13126 cat >>$CONFIG_STATUS <<\_ACEOF
13127 exec 5>>config.log
13129 echo
13130 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13131 ## Running $as_me. ##
13132 _ASBOX
13133 echo "$ac_log"
13134 } >&5
13136 _ACEOF
13137 cat >>$CONFIG_STATUS <<_ACEOF
13139 # INIT-COMMANDS
13142 aros_tools_dir=${aros_tools_dir}
13143 aros_target_cpu=${aros_target_cpu}
13144 aros_target_arch=${aros_target_arch}
13145 aros_target_suffix=${aros_target_suffix}
13146 aros_target_nm_ln=${aros_target_nm_ln}
13147 aros_target_as_ln=${aros_target_as_ln}
13148 aros_target_ar_ln=${aros_target_ar_ln}
13149 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13150 aros_target_objdump_ln=${aros_target_objdump_ln}
13151 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13152 aros_target_strip_ln=${aros_target_strip_ln}
13155 aros_scripts_dir=${aros_scripts_dir}
13157 aros_tools_dir=${aros_tools_dir}
13160 _ACEOF
13162 cat >>$CONFIG_STATUS <<\_ACEOF
13164 # Handling of arguments.
13165 for ac_config_target in $ac_config_targets
13167 case $ac_config_target in
13168 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13169 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13170 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13171 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13172 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
13173 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13174 "rom/mmakefile") CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
13175 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13176 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13177 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13178 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13179 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13180 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13181 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13182 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13183 "${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" ;;
13184 "${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" ;;
13185 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13186 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13187 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
13188 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13190 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13191 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13192 { (exit 1); exit 1; }; };;
13193 esac
13194 done
13197 # If the user did not use the arguments to specify the items to instantiate,
13198 # then the envvar interface is used. Set only those that are not.
13199 # We use the long form for the default assignment because of an extremely
13200 # bizarre bug on SunOS 4.1.3.
13201 if $ac_need_defaults; then
13202 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13203 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13204 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13207 # Have a temporary directory for convenience. Make it in the build tree
13208 # simply because there is no reason against having it here, and in addition,
13209 # creating and moving files from /tmp can sometimes cause problems.
13210 # Hook for its removal unless debugging.
13211 # Note that there is a small window in which the directory will not be cleaned:
13212 # after its creation but before its name has been assigned to `$tmp'.
13213 $debug ||
13215 tmp=
13216 trap 'exit_status=$?
13217 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13219 trap '{ (exit 1); exit 1; }' 1 2 13 15
13221 # Create a (secure) tmp directory for tmp files.
13224 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13225 test -n "$tmp" && test -d "$tmp"
13226 } ||
13228 tmp=./conf$$-$RANDOM
13229 (umask 077 && mkdir "$tmp")
13230 } ||
13232 echo "$me: cannot create a temporary directory in ." >&2
13233 { (exit 1); exit 1; }
13237 # Set up the sed scripts for CONFIG_FILES section.
13240 # No need to generate the scripts if there are no CONFIG_FILES.
13241 # This happens for instance when ./config.status config.h
13242 if test -n "$CONFIG_FILES"; then
13244 _ACEOF
13248 ac_delim='%!_!# '
13249 for ac_last_try in false false false false false :; do
13250 cat >conf$$subs.sed <<_ACEOF
13251 SHELL!$SHELL$ac_delim
13252 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13253 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13254 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13255 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13256 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13257 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13258 exec_prefix!$exec_prefix$ac_delim
13259 prefix!$prefix$ac_delim
13260 program_transform_name!$program_transform_name$ac_delim
13261 bindir!$bindir$ac_delim
13262 sbindir!$sbindir$ac_delim
13263 libexecdir!$libexecdir$ac_delim
13264 datarootdir!$datarootdir$ac_delim
13265 datadir!$datadir$ac_delim
13266 sysconfdir!$sysconfdir$ac_delim
13267 sharedstatedir!$sharedstatedir$ac_delim
13268 localstatedir!$localstatedir$ac_delim
13269 includedir!$includedir$ac_delim
13270 oldincludedir!$oldincludedir$ac_delim
13271 docdir!$docdir$ac_delim
13272 infodir!$infodir$ac_delim
13273 htmldir!$htmldir$ac_delim
13274 dvidir!$dvidir$ac_delim
13275 pdfdir!$pdfdir$ac_delim
13276 psdir!$psdir$ac_delim
13277 libdir!$libdir$ac_delim
13278 localedir!$localedir$ac_delim
13279 mandir!$mandir$ac_delim
13280 DEFS!$DEFS$ac_delim
13281 ECHO_C!$ECHO_C$ac_delim
13282 ECHO_N!$ECHO_N$ac_delim
13283 ECHO_T!$ECHO_T$ac_delim
13284 LIBS!$LIBS$ac_delim
13285 build_alias!$build_alias$ac_delim
13286 host_alias!$host_alias$ac_delim
13287 target_alias!$target_alias$ac_delim
13288 build!$build$ac_delim
13289 build_cpu!$build_cpu$ac_delim
13290 build_vendor!$build_vendor$ac_delim
13291 build_os!$build_os$ac_delim
13292 host!$host$ac_delim
13293 host_cpu!$host_cpu$ac_delim
13294 host_vendor!$host_vendor$ac_delim
13295 host_os!$host_os$ac_delim
13296 CC!$CC$ac_delim
13297 CFLAGS!$CFLAGS$ac_delim
13298 LDFLAGS!$LDFLAGS$ac_delim
13299 CPPFLAGS!$CPPFLAGS$ac_delim
13300 ac_ct_CC!$ac_ct_CC$ac_delim
13301 EXEEXT!$EXEEXT$ac_delim
13302 OBJEXT!$OBJEXT$ac_delim
13303 CPP!$CPP$ac_delim
13304 AWK!$AWK$ac_delim
13305 MMAKE!$MMAKE$ac_delim
13306 aros_host_ld!$aros_host_ld$ac_delim
13307 aros_host_aclocal!$aros_host_aclocal$ac_delim
13308 aros_host_autoconf!$aros_host_autoconf$ac_delim
13309 aros_host_autoheader!$aros_host_autoheader$ac_delim
13310 aros_host_automake!$aros_host_automake$ac_delim
13311 aros_host_ar!$aros_host_ar$ac_delim
13312 aros_host_ranlib!$aros_host_ranlib$ac_delim
13313 aros_host_strip!$aros_host_strip$ac_delim
13314 RM!$RM$ac_delim
13315 CP!$CP$ac_delim
13316 MV!$MV$ac_delim
13317 ECHO!$ECHO$ac_delim
13318 MKDIR!$MKDIR$ac_delim
13319 TOUCH!$TOUCH$ac_delim
13320 SORT!$SORT$ac_delim
13321 UNIQ!$UNIQ$ac_delim
13322 NOP!$NOP$ac_delim
13323 CAT!$CAT$ac_delim
13324 BISON!$BISON$ac_delim
13325 FLEX!$FLEX$ac_delim
13326 PNGTOPNM!$PNGTOPNM$ac_delim
13327 PPMTOILBM!$PPMTOILBM$ac_delim
13328 SED!$SED$ac_delim
13329 CHMOD!$CHMOD$ac_delim
13330 PYTHON!$PYTHON$ac_delim
13331 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13332 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13333 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13334 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13335 pythondir!$pythondir$ac_delim
13336 pkgpythondir!$pkgpythondir$ac_delim
13337 pyexecdir!$pyexecdir$ac_delim
13338 pkgpyexecdir!$pkgpyexecdir$ac_delim
13339 FOR!$FOR$ac_delim
13340 IF!$IF$ac_delim
13341 TEST!$TEST$ac_delim
13342 CMP!$CMP$ac_delim
13343 GREP!$GREP$ac_delim
13344 EGREP!$EGREP$ac_delim
13345 LIBOBJS!$LIBOBJS$ac_delim
13346 DISTCC!$DISTCC$ac_delim
13347 CCACHE!$CCACHE$ac_delim
13348 _ACEOF
13350 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13351 break
13352 elif $ac_last_try; then
13353 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13354 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13355 { (exit 1); exit 1; }; }
13356 else
13357 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13359 done
13361 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13362 if test -n "$ac_eof"; then
13363 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13364 ac_eof=`expr $ac_eof + 1`
13367 cat >>$CONFIG_STATUS <<_ACEOF
13368 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13369 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13370 _ACEOF
13371 sed '
13372 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13373 s/^/s,@/; s/!/@,|#_!!_#|/
13376 s/'"$ac_delim"'$/,g/; t
13377 s/$/\\/; p
13378 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13379 ' >>$CONFIG_STATUS <conf$$subs.sed
13380 rm -f conf$$subs.sed
13381 cat >>$CONFIG_STATUS <<_ACEOF
13382 CEOF$ac_eof
13383 _ACEOF
13386 ac_delim='%!_!# '
13387 for ac_last_try in false false false false false :; do
13388 cat >conf$$subs.sed <<_ACEOF
13389 LIBLZO!$LIBLZO$ac_delim
13390 aros_kernel_cc!$aros_kernel_cc$ac_delim
13391 aros_target_cc!$aros_target_cc$ac_delim
13392 aros_target_ld!$aros_target_ld$ac_delim
13393 aros_target_as_ln!$aros_target_as_ln$ac_delim
13394 aros_kernel_ld!$aros_kernel_ld$ac_delim
13395 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13396 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13397 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13398 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13399 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13400 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13401 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13402 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13403 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13404 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13405 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13406 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13407 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13408 XMKMF!$XMKMF$ac_delim
13409 SDL_CONFIG!$SDL_CONFIG$ac_delim
13410 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13411 SDL_LIBS!$SDL_LIBS$ac_delim
13412 aros_arch!$aros_arch$ac_delim
13413 aros_cpu!$aros_cpu$ac_delim
13414 aros_flavour!$aros_flavour$ac_delim
13415 aros_flavour_uc!$aros_flavour_uc$ac_delim
13416 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13417 SRCDIR!$SRCDIR$ac_delim
13418 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13419 aros_cc_pre!$aros_cc_pre$ac_delim
13420 aros_host_arch!$aros_host_arch$ac_delim
13421 aros_host_cpu!$aros_host_cpu$ac_delim
13422 aros_host_cc!$aros_host_cc$ac_delim
13423 aros_host_make!$aros_host_make$ac_delim
13424 aros_host_cflags!$aros_host_cflags$ac_delim
13425 aros_host_ldflags!$aros_host_ldflags$ac_delim
13426 aros_host_debug!$aros_host_debug$ac_delim
13427 aros_host_mkdep!$aros_host_mkdep$ac_delim
13428 aros_host_mkargs!$aros_host_mkargs$ac_delim
13429 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13430 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13431 aros_tools_dir!$aros_tools_dir$ac_delim
13432 aros_target_guitheme!$aros_target_guitheme$ac_delim
13433 aros_target_bootloader!$aros_target_bootloader$ac_delim
13434 aros_target_arch!$aros_target_arch$ac_delim
13435 aros_target_cpu!$aros_target_cpu$ac_delim
13436 aros_target_variant!$aros_target_variant$ac_delim
13437 aros_target_suffix!$aros_target_suffix$ac_delim
13438 aros_target_incl!$aros_target_incl$ac_delim
13439 aros_target_ar!$aros_target_ar$ac_delim
13440 aros_target_ranlib!$aros_target_ranlib$ac_delim
13441 aros_kernel_nm!$aros_kernel_nm$ac_delim
13442 orig_target_cc!$orig_target_cc$ac_delim
13443 aros_target_as!$aros_target_as$ac_delim
13444 orig_target_ld!$orig_target_ld$ac_delim
13445 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13446 aros_target_cc_path!$aros_target_cc_path$ac_delim
13447 aros_target_objdump!$aros_target_objdump$ac_delim
13448 aros_target_objcopy!$aros_target_objcopy$ac_delim
13449 aros_target_strip!$aros_target_strip$ac_delim
13450 aros_target_nm!$aros_target_nm$ac_delim
13451 aros_shared_default!$aros_shared_default$ac_delim
13452 aros_shared_ld!$aros_shared_ld$ac_delim
13453 aros_object_format!$aros_object_format$ac_delim
13454 aros_compiler_libs!$aros_compiler_libs$ac_delim
13455 aros_config_cflags!$aros_config_cflags$ac_delim
13456 aros_config_aflags!$aros_config_aflags$ac_delim
13457 aros_config_ldflags!$aros_config_ldflags$ac_delim
13458 aros_shared_cflags!$aros_shared_cflags$ac_delim
13459 aros_shared_aflags!$aros_shared_aflags$ac_delim
13460 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13461 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13462 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13463 aros_debug_cflags!$aros_debug_cflags$ac_delim
13464 aros_debug_aflags!$aros_debug_aflags$ac_delim
13465 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13466 aros_target_genmap!$aros_target_genmap$ac_delim
13467 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13468 x11_hidd_target!$x11_hidd_target$ac_delim
13469 sdl_hidd_target!$sdl_hidd_target$ac_delim
13470 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13471 aros_default_wbheight!$aros_default_wbheight$ac_delim
13472 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
13473 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
13474 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
13475 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
13476 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
13477 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
13478 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
13479 aros_bochs_hack!$aros_bochs_hack$ac_delim
13480 aros_serial_debug!$aros_serial_debug$ac_delim
13481 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
13482 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
13483 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
13484 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
13485 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
13486 _ACEOF
13488 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13489 break
13490 elif $ac_last_try; then
13491 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13492 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13493 { (exit 1); exit 1; }; }
13494 else
13495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13497 done
13499 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13500 if test -n "$ac_eof"; then
13501 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13502 ac_eof=`expr $ac_eof + 1`
13505 cat >>$CONFIG_STATUS <<_ACEOF
13506 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13507 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13508 _ACEOF
13509 sed '
13510 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13511 s/^/s,@/; s/!/@,|#_!!_#|/
13514 s/'"$ac_delim"'$/,g/; t
13515 s/$/\\/; p
13516 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13517 ' >>$CONFIG_STATUS <conf$$subs.sed
13518 rm -f conf$$subs.sed
13519 cat >>$CONFIG_STATUS <<_ACEOF
13520 CEOF$ac_eof
13521 _ACEOF
13524 ac_delim='%!_!# '
13525 for ac_last_try in false false false false false :; do
13526 cat >conf$$subs.sed <<_ACEOF
13527 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
13528 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
13529 aros_debug!$aros_debug$ac_delim
13530 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
13531 aros_stack_debug!$aros_stack_debug$ac_delim
13532 aros_modules_debug!$aros_modules_debug$ac_delim
13533 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
13534 gcc_target_cpu!$gcc_target_cpu$ac_delim
13535 LTLIBOBJS!$LTLIBOBJS$ac_delim
13536 _ACEOF
13538 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
13539 break
13540 elif $ac_last_try; then
13541 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13542 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13543 { (exit 1); exit 1; }; }
13544 else
13545 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13547 done
13549 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13550 if test -n "$ac_eof"; then
13551 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13552 ac_eof=`expr $ac_eof + 1`
13555 cat >>$CONFIG_STATUS <<_ACEOF
13556 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
13557 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13558 _ACEOF
13559 sed '
13560 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13561 s/^/s,@/; s/!/@,|#_!!_#|/
13564 s/'"$ac_delim"'$/,g/; t
13565 s/$/\\/; p
13566 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13567 ' >>$CONFIG_STATUS <conf$$subs.sed
13568 rm -f conf$$subs.sed
13569 cat >>$CONFIG_STATUS <<_ACEOF
13570 :end
13571 s/|#_!!_#|//g
13572 CEOF$ac_eof
13573 _ACEOF
13576 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13577 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13578 # trailing colons and then remove the whole line if VPATH becomes empty
13579 # (actually we leave an empty line to preserve line numbers).
13580 if test "x$srcdir" = x.; then
13581 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13582 s/:*\$(srcdir):*/:/
13583 s/:*\${srcdir}:*/:/
13584 s/:*@srcdir@:*/:/
13585 s/^\([^=]*=[ ]*\):*/\1/
13586 s/:*$//
13587 s/^[^=]*=[ ]*$//
13591 cat >>$CONFIG_STATUS <<\_ACEOF
13592 fi # test -n "$CONFIG_FILES"
13595 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13597 case $ac_tag in
13598 :[FHLC]) ac_mode=$ac_tag; continue;;
13599 esac
13600 case $ac_mode$ac_tag in
13601 :[FHL]*:*);;
13602 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13603 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13604 { (exit 1); exit 1; }; };;
13605 :[FH]-) ac_tag=-:-;;
13606 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13607 esac
13608 ac_save_IFS=$IFS
13609 IFS=:
13610 set x $ac_tag
13611 IFS=$ac_save_IFS
13612 shift
13613 ac_file=$1
13614 shift
13616 case $ac_mode in
13617 :L) ac_source=$1;;
13618 :[FH])
13619 ac_file_inputs=
13620 for ac_f
13622 case $ac_f in
13623 -) ac_f="$tmp/stdin";;
13624 *) # Look for the file first in the build tree, then in the source tree
13625 # (if the path is not absolute). The absolute path cannot be DOS-style,
13626 # because $ac_f cannot contain `:'.
13627 test -f "$ac_f" ||
13628 case $ac_f in
13629 [\\/$]*) false;;
13630 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13631 esac ||
13632 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13633 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13634 { (exit 1); exit 1; }; };;
13635 esac
13636 ac_file_inputs="$ac_file_inputs $ac_f"
13637 done
13639 # Let's still pretend it is `configure' which instantiates (i.e., don't
13640 # use $as_me), people would be surprised to read:
13641 # /* config.h. Generated by config.status. */
13642 configure_input="Generated from "`IFS=:
13643 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13644 if test x"$ac_file" != x-; then
13645 configure_input="$ac_file. $configure_input"
13646 { echo "$as_me:$LINENO: creating $ac_file" >&5
13647 echo "$as_me: creating $ac_file" >&6;}
13650 case $ac_tag in
13651 *:-:* | *:-) cat >"$tmp/stdin";;
13652 esac
13654 esac
13656 ac_dir=`$as_dirname -- "$ac_file" ||
13657 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13658 X"$ac_file" : 'X\(//\)[^/]' \| \
13659 X"$ac_file" : 'X\(//\)$' \| \
13660 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13661 echo X"$ac_file" |
13662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13663 s//\1/
13666 /^X\(\/\/\)[^/].*/{
13667 s//\1/
13670 /^X\(\/\/\)$/{
13671 s//\1/
13674 /^X\(\/\).*/{
13675 s//\1/
13678 s/.*/./; q'`
13679 { as_dir="$ac_dir"
13680 case $as_dir in #(
13681 -*) as_dir=./$as_dir;;
13682 esac
13683 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13684 as_dirs=
13685 while :; do
13686 case $as_dir in #(
13687 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13688 *) as_qdir=$as_dir;;
13689 esac
13690 as_dirs="'$as_qdir' $as_dirs"
13691 as_dir=`$as_dirname -- "$as_dir" ||
13692 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13693 X"$as_dir" : 'X\(//\)[^/]' \| \
13694 X"$as_dir" : 'X\(//\)$' \| \
13695 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13696 echo X"$as_dir" |
13697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13698 s//\1/
13701 /^X\(\/\/\)[^/].*/{
13702 s//\1/
13705 /^X\(\/\/\)$/{
13706 s//\1/
13709 /^X\(\/\).*/{
13710 s//\1/
13713 s/.*/./; q'`
13714 test -d "$as_dir" && break
13715 done
13716 test -z "$as_dirs" || eval "mkdir $as_dirs"
13717 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13718 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13719 { (exit 1); exit 1; }; }; }
13720 ac_builddir=.
13722 case "$ac_dir" in
13723 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13725 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13726 # A ".." for each directory in $ac_dir_suffix.
13727 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13728 case $ac_top_builddir_sub in
13729 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13730 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13731 esac ;;
13732 esac
13733 ac_abs_top_builddir=$ac_pwd
13734 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13735 # for backward compatibility:
13736 ac_top_builddir=$ac_top_build_prefix
13738 case $srcdir in
13739 .) # We are building in place.
13740 ac_srcdir=.
13741 ac_top_srcdir=$ac_top_builddir_sub
13742 ac_abs_top_srcdir=$ac_pwd ;;
13743 [\\/]* | ?:[\\/]* ) # Absolute name.
13744 ac_srcdir=$srcdir$ac_dir_suffix;
13745 ac_top_srcdir=$srcdir
13746 ac_abs_top_srcdir=$srcdir ;;
13747 *) # Relative name.
13748 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13749 ac_top_srcdir=$ac_top_build_prefix$srcdir
13750 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13751 esac
13752 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13755 case $ac_mode in
13758 # CONFIG_FILE
13761 _ACEOF
13763 cat >>$CONFIG_STATUS <<\_ACEOF
13764 # If the template does not know about datarootdir, expand it.
13765 # FIXME: This hack should be removed a few years after 2.60.
13766 ac_datarootdir_hack=; ac_datarootdir_seen=
13768 case `sed -n '/datarootdir/ {
13772 /@datadir@/p
13773 /@docdir@/p
13774 /@infodir@/p
13775 /@localedir@/p
13776 /@mandir@/p
13777 ' $ac_file_inputs` in
13778 *datarootdir*) ac_datarootdir_seen=yes;;
13779 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13780 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13781 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13782 _ACEOF
13783 cat >>$CONFIG_STATUS <<_ACEOF
13784 ac_datarootdir_hack='
13785 s&@datadir@&$datadir&g
13786 s&@docdir@&$docdir&g
13787 s&@infodir@&$infodir&g
13788 s&@localedir@&$localedir&g
13789 s&@mandir@&$mandir&g
13790 s&\\\${datarootdir}&$datarootdir&g' ;;
13791 esac
13792 _ACEOF
13794 # Neutralize VPATH when `$srcdir' = `.'.
13795 # Shell code in configure.ac might set extrasub.
13796 # FIXME: do we really want to maintain this feature?
13797 cat >>$CONFIG_STATUS <<_ACEOF
13798 sed "$ac_vpsub
13799 $extrasub
13800 _ACEOF
13801 cat >>$CONFIG_STATUS <<\_ACEOF
13803 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13804 s&@configure_input@&$configure_input&;t t
13805 s&@top_builddir@&$ac_top_builddir_sub&;t t
13806 s&@srcdir@&$ac_srcdir&;t t
13807 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13808 s&@top_srcdir@&$ac_top_srcdir&;t t
13809 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13810 s&@builddir@&$ac_builddir&;t t
13811 s&@abs_builddir@&$ac_abs_builddir&;t t
13812 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13813 $ac_datarootdir_hack
13814 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
13816 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13817 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13818 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13819 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13820 which seems to be undefined. Please make sure it is defined." >&5
13821 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13822 which seems to be undefined. Please make sure it is defined." >&2;}
13824 rm -f "$tmp/stdin"
13825 case $ac_file in
13826 -) cat "$tmp/out"; rm -f "$tmp/out";;
13827 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13828 esac
13832 # CONFIG_HEADER
13834 _ACEOF
13836 # Transform confdefs.h into a sed script `conftest.defines', that
13837 # substitutes the proper values into config.h.in to produce config.h.
13838 rm -f conftest.defines conftest.tail
13839 # First, append a space to every undef/define line, to ease matching.
13840 echo 's/$/ /' >conftest.defines
13841 # Then, protect against being on the right side of a sed subst, or in
13842 # an unquoted here document, in config.status. If some macros were
13843 # called several times there might be several #defines for the same
13844 # symbol, which is useless. But do not sort them, since the last
13845 # AC_DEFINE must be honored.
13846 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13847 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13848 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13849 # PARAMS is the parameter list in the macro definition--in most cases, it's
13850 # just an empty string.
13851 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13852 ac_dB='\\)[ (].*,\\1define\\2'
13853 ac_dC=' '
13854 ac_dD=' ,'
13856 uniq confdefs.h |
13857 sed -n '
13858 t rset
13859 :rset
13860 s/^[ ]*#[ ]*define[ ][ ]*//
13861 t ok
13864 s/[\\&,]/\\&/g
13865 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13866 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13867 ' >>conftest.defines
13869 # Remove the space that was appended to ease matching.
13870 # Then replace #undef with comments. This is necessary, for
13871 # example, in the case of _POSIX_SOURCE, which is predefined and required
13872 # on some systems where configure will not decide to define it.
13873 # (The regexp can be short, since the line contains either #define or #undef.)
13874 echo 's/ $//
13875 s,^[ #]*u.*,/* & */,' >>conftest.defines
13877 # Break up conftest.defines:
13878 ac_max_sed_lines=50
13880 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13881 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13882 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13883 # et cetera.
13884 ac_in='$ac_file_inputs'
13885 ac_out='"$tmp/out1"'
13886 ac_nxt='"$tmp/out2"'
13888 while :
13890 # Write a here document:
13891 cat >>$CONFIG_STATUS <<_ACEOF
13892 # First, check the format of the line:
13893 cat >"\$tmp/defines.sed" <<\\CEOF
13894 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13895 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13897 :def
13898 _ACEOF
13899 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13900 echo 'CEOF
13901 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13902 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13903 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13904 grep . conftest.tail >/dev/null || break
13905 rm -f conftest.defines
13906 mv conftest.tail conftest.defines
13907 done
13908 rm -f conftest.defines conftest.tail
13910 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13911 cat >>$CONFIG_STATUS <<\_ACEOF
13912 if test x"$ac_file" != x-; then
13913 echo "/* $configure_input */" >"$tmp/config.h"
13914 cat "$ac_result" >>"$tmp/config.h"
13915 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13916 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13917 echo "$as_me: $ac_file is unchanged" >&6;}
13918 else
13919 rm -f $ac_file
13920 mv "$tmp/config.h" $ac_file
13922 else
13923 echo "/* $configure_input */"
13924 cat "$ac_result"
13926 rm -f "$tmp/out12"
13929 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13930 echo "$as_me: executing $ac_file commands" >&6;}
13932 esac
13935 case $ac_file$ac_mode in
13936 "compiler_executable":C)
13937 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13938 mkdir -p $prefix
13939 prefix="${prefix}/${aros_target_cpu}-aros"
13940 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13942 echo ${prefix}
13943 echo ${prefix2}
13944 chmod a+x ${prefix2}-gcc ${prefix2}-ld
13946 ln -sf ${prefix2}-gcc ${prefix}-gcc
13947 ln -sf ${prefix2}-ld ${prefix}-ld
13949 ln -sf $aros_target_as_ln ${prefix}-as
13950 ln -sf $aros_target_nm_ln ${prefix}-nm
13951 ln -sf $aros_target_ar_ln ${prefix}-ar
13952 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
13953 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
13954 ln -sf $aros_target_objdump_ln ${prefix}-objdump
13955 ln -sf $aros_target_strip_ln ${prefix}-strip
13957 ln -sf $aros_target_as_ln ${prefix2}-as
13958 ln -sf $aros_target_nm_ln ${prefix2}-nm
13959 ln -sf $aros_target_ar_ln ${prefix2}-ar
13960 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
13961 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
13962 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
13963 ln -sf $aros_target_strip_ln ${prefix2}-strip
13965 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
13966 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13967 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
13970 esac
13971 done # for ac_tag
13974 { (exit 0); exit 0; }
13975 _ACEOF
13976 chmod +x $CONFIG_STATUS
13977 ac_clean_files=$ac_clean_files_save
13980 # configure is writing to config.log, and then calls config.status.
13981 # config.status does its own redirection, appending to config.log.
13982 # Unfortunately, on DOS this fails, as config.log is still kept open
13983 # by configure, so config.status won't be able to write to it; its
13984 # output is simply discarded. So we exec the FD to /dev/null,
13985 # effectively closing config.log, so it can be properly (re)opened and
13986 # appended to by config.status. When coming back to configure, we
13987 # need to make the FD available again.
13988 if test "$no_create" != yes; then
13989 ac_cs_success=:
13990 ac_config_status_args=
13991 test "$silent" = yes &&
13992 ac_config_status_args="$ac_config_status_args --quiet"
13993 exec 5>/dev/null
13994 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13995 exec 5>>config.log
13996 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13997 # would make configure fail if this is the last instruction.
13998 $ac_cs_success || { (exit 1); exit 1; }
14003 #XXX compatability...
14004 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14006 if test -n "$aros_shared_cflags" ; then
14007 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14008 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg