Enabled AmberRAM for hosted.
[cake.git] / configure
blobb27119b118bab53229314016fac8792df028eab0
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 AROS_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-distcc Use distcc as a front end to the compiler
1418 (default=no).
1419 --enable-ccache Use ccache as a front end to the compiler
1420 (default=no).
1421 --enable-target-variant=NAME
1422 Enable a specific target variant(default=none)
1423 --enable-includes=dir Alternative system include directory
1424 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1425 (default=no)
1426 --enable-palm-debug-hack
1427 Enable palm debug output hack in palm native
1428 (default=no)
1429 --enable-nesting-supervisor
1430 Enable nesting supervisor support in unix
1431 (default=no)
1432 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1433 --enable-x11-shm use X11 shared memory (default=auto)
1434 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1435 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1436 --disable-sdltest Do not try to compile and run a test SDL program
1437 --enable-dbus Enable DBUS support via dbus.library (default=no)
1439 Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-optimization=FLAGS
1443 Use optimization flags FLAGS (default=-O2).
1444 --with-portssources=DIR Where to download sourcecode for external ports
1445 --with-bootloader=NAME Use a specific bootloader
1446 --with-theme=NAME Use a specific GUI Theme
1447 --with-resolution=XRESxYRESxDEPTH
1448 Default resolution of the initial WorkbenchScreen
1449 --with-serial-debug Enable serial debug output in native (default=no)
1450 --with-x use the X Window System
1451 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1452 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1454 Some influential environment variables:
1455 CC C compiler command
1456 CFLAGS C compiler flags
1457 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1458 nonstandard directory <lib dir>
1459 LIBS libraries to pass to the linker, e.g. -l<library>
1460 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1461 you have headers in a nonstandard directory <include dir>
1462 CPP C preprocessor
1463 XMKMF Path to xmkmf, Makefile generator for X Window System
1465 Use these variables to override the choices made by `configure' or to help
1466 it to find libraries and programs with nonstandard names/locations.
1468 _ACEOF
1469 ac_status=$?
1472 if test "$ac_init_help" = "recursive"; then
1473 # If there are subdirs, report their specific --help.
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d "$ac_dir" || continue
1476 ac_builddir=.
1478 case "$ac_dir" in
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1482 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1484 case $ac_top_builddir_sub in
1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487 esac ;;
1488 esac
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1494 case $srcdir in
1495 .) # We are building in place.
1496 ac_srcdir=.
1497 ac_top_srcdir=$ac_top_builddir_sub
1498 ac_abs_top_srcdir=$ac_pwd ;;
1499 [\\/]* | ?:[\\/]* ) # Absolute name.
1500 ac_srcdir=$srcdir$ac_dir_suffix;
1501 ac_top_srcdir=$srcdir
1502 ac_abs_top_srcdir=$srcdir ;;
1503 *) # Relative name.
1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505 ac_top_srcdir=$ac_top_build_prefix$srcdir
1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 esac
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for guested configure.
1512 if test -f "$ac_srcdir/configure.gnu"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515 elif test -f "$ac_srcdir/configure"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure" --help=recursive
1518 else
1519 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 fi || ac_status=$?
1521 cd "$ac_pwd" || { ac_status=$?; break; }
1522 done
1525 test -n "$ac_init_help" && exit $ac_status
1526 if $ac_init_version; then
1527 cat <<\_ACEOF
1528 configure
1529 generated by GNU Autoconf 2.61
1531 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1532 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1533 This configure script is free software; the Free Software Foundation
1534 gives unlimited permission to copy, distribute and modify it.
1535 _ACEOF
1536 exit
1538 cat >config.log <<_ACEOF
1539 This file contains any messages produced by compilers while
1540 running configure, to aid debugging if configure makes a mistake.
1542 It was created by $as_me, which was
1543 generated by GNU Autoconf 2.61. Invocation command line was
1545 $ $0 $@
1547 _ACEOF
1548 exec 5>>config.log
1550 cat <<_ASUNAME
1551 ## --------- ##
1552 ## Platform. ##
1553 ## --------- ##
1555 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1556 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1557 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1558 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1559 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1561 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1562 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1564 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1565 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1566 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1567 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1568 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1569 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1570 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1572 _ASUNAME
1574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1575 for as_dir in $PATH
1577 IFS=$as_save_IFS
1578 test -z "$as_dir" && as_dir=.
1579 echo "PATH: $as_dir"
1580 done
1581 IFS=$as_save_IFS
1583 } >&5
1585 cat >&5 <<_ACEOF
1588 ## ----------- ##
1589 ## Core tests. ##
1590 ## ----------- ##
1592 _ACEOF
1595 # Keep a trace of the command line.
1596 # Strip out --no-create and --no-recursion so they do not pile up.
1597 # Strip out --silent because we don't want to record it for future runs.
1598 # Also quote any args containing shell meta-characters.
1599 # Make two passes to allow for proper duplicate-argument suppression.
1600 ac_configure_args=
1601 ac_configure_args0=
1602 ac_configure_args1=
1603 ac_must_keep_next=false
1604 for ac_pass in 1 2
1606 for ac_arg
1608 case $ac_arg in
1609 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1610 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1611 | -silent | --silent | --silen | --sile | --sil)
1612 continue ;;
1613 *\'*)
1614 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1615 esac
1616 case $ac_pass in
1617 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1619 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1620 if test $ac_must_keep_next = true; then
1621 ac_must_keep_next=false # Got value, back to normal.
1622 else
1623 case $ac_arg in
1624 *=* | --config-cache | -C | -disable-* | --disable-* \
1625 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1626 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1627 | -with-* | --with-* | -without-* | --without-* | --x)
1628 case "$ac_configure_args0 " in
1629 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1630 esac
1632 -* ) ac_must_keep_next=true ;;
1633 esac
1635 ac_configure_args="$ac_configure_args '$ac_arg'"
1637 esac
1638 done
1639 done
1640 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1641 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1643 # When interrupted or exit'd, cleanup temporary files, and complete
1644 # config.log. We remove comments because anyway the quotes in there
1645 # would cause problems or look ugly.
1646 # WARNING: Use '\'' to represent an apostrophe within the trap.
1647 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1648 trap 'exit_status=$?
1649 # Save into config.log some information that might help in debugging.
1651 echo
1653 cat <<\_ASBOX
1654 ## ---------------- ##
1655 ## Cache variables. ##
1656 ## ---------------- ##
1657 _ASBOX
1658 echo
1659 # The following way of writing the cache mishandles newlines in values,
1661 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1662 eval ac_val=\$$ac_var
1663 case $ac_val in #(
1664 *${as_nl}*)
1665 case $ac_var in #(
1666 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1667 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1668 esac
1669 case $ac_var in #(
1670 _ | IFS | as_nl) ;; #(
1671 *) $as_unset $ac_var ;;
1672 esac ;;
1673 esac
1674 done
1675 (set) 2>&1 |
1676 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1677 *${as_nl}ac_space=\ *)
1678 sed -n \
1679 "s/'\''/'\''\\\\'\'''\''/g;
1680 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1681 ;; #(
1683 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1685 esac |
1686 sort
1688 echo
1690 cat <<\_ASBOX
1691 ## ----------------- ##
1692 ## Output variables. ##
1693 ## ----------------- ##
1694 _ASBOX
1695 echo
1696 for ac_var in $ac_subst_vars
1698 eval ac_val=\$$ac_var
1699 case $ac_val in
1700 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1701 esac
1702 echo "$ac_var='\''$ac_val'\''"
1703 done | sort
1704 echo
1706 if test -n "$ac_subst_files"; then
1707 cat <<\_ASBOX
1708 ## ------------------- ##
1709 ## File substitutions. ##
1710 ## ------------------- ##
1711 _ASBOX
1712 echo
1713 for ac_var in $ac_subst_files
1715 eval ac_val=\$$ac_var
1716 case $ac_val in
1717 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1718 esac
1719 echo "$ac_var='\''$ac_val'\''"
1720 done | sort
1721 echo
1724 if test -s confdefs.h; then
1725 cat <<\_ASBOX
1726 ## ----------- ##
1727 ## confdefs.h. ##
1728 ## ----------- ##
1729 _ASBOX
1730 echo
1731 cat confdefs.h
1732 echo
1734 test "$ac_signal" != 0 &&
1735 echo "$as_me: caught signal $ac_signal"
1736 echo "$as_me: exit $exit_status"
1737 } >&5
1738 rm -f core *.core core.conftest.* &&
1739 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1740 exit $exit_status
1742 for ac_signal in 1 2 13 15; do
1743 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1744 done
1745 ac_signal=0
1747 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1748 rm -f -r conftest* confdefs.h
1750 # Predefined preprocessor variables.
1752 cat >>confdefs.h <<_ACEOF
1753 #define PACKAGE_NAME "$PACKAGE_NAME"
1754 _ACEOF
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1759 _ACEOF
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1764 _ACEOF
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_STRING "$PACKAGE_STRING"
1769 _ACEOF
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1774 _ACEOF
1777 # Let the site file select an alternate cache file if it wants to.
1778 # Prefer explicitly selected file to automatically selected ones.
1779 if test -n "$CONFIG_SITE"; then
1780 set x "$CONFIG_SITE"
1781 elif test "x$prefix" != xNONE; then
1782 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1783 else
1784 set x "$ac_default_prefix/share/config.site" \
1785 "$ac_default_prefix/etc/config.site"
1787 shift
1788 for ac_site_file
1790 if test -r "$ac_site_file"; then
1791 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1792 echo "$as_me: loading site script $ac_site_file" >&6;}
1793 sed 's/^/| /' "$ac_site_file" >&5
1794 . "$ac_site_file"
1796 done
1798 if test -r "$cache_file"; then
1799 # Some versions of bash will fail to source /dev/null (special
1800 # files actually), so we avoid doing that.
1801 if test -f "$cache_file"; then
1802 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1803 echo "$as_me: loading cache $cache_file" >&6;}
1804 case $cache_file in
1805 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1806 *) . "./$cache_file";;
1807 esac
1809 else
1810 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1811 echo "$as_me: creating cache $cache_file" >&6;}
1812 >$cache_file
1815 # Check that the precious variables saved in the cache have kept the same
1816 # value.
1817 ac_cache_corrupted=false
1818 for ac_var in $ac_precious_vars; do
1819 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1820 eval ac_new_set=\$ac_env_${ac_var}_set
1821 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1822 eval ac_new_val=\$ac_env_${ac_var}_value
1823 case $ac_old_set,$ac_new_set in
1824 set,)
1825 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1826 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1827 ac_cache_corrupted=: ;;
1828 ,set)
1829 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1830 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1831 ac_cache_corrupted=: ;;
1832 ,);;
1834 if test "x$ac_old_val" != "x$ac_new_val"; then
1835 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1836 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1837 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1838 echo "$as_me: former value: $ac_old_val" >&2;}
1839 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1840 echo "$as_me: current value: $ac_new_val" >&2;}
1841 ac_cache_corrupted=:
1842 fi;;
1843 esac
1844 # Pass precious variables to config.status.
1845 if test "$ac_new_set" = set; then
1846 case $ac_new_val in
1847 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1848 *) ac_arg=$ac_var=$ac_new_val ;;
1849 esac
1850 case " $ac_configure_args " in
1851 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1852 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1853 esac
1855 done
1856 if $ac_cache_corrupted; then
1857 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1858 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1859 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1860 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1861 { (exit 1); exit 1; }; }
1880 ac_ext=c
1881 ac_cpp='$CPP $CPPFLAGS'
1882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1888 ac_aux_dir=
1889 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1890 if test -f "$ac_dir/install-sh"; then
1891 ac_aux_dir=$ac_dir
1892 ac_install_sh="$ac_aux_dir/install-sh -c"
1893 break
1894 elif test -f "$ac_dir/install.sh"; then
1895 ac_aux_dir=$ac_dir
1896 ac_install_sh="$ac_aux_dir/install.sh -c"
1897 break
1898 elif test -f "$ac_dir/shtool"; then
1899 ac_aux_dir=$ac_dir
1900 ac_install_sh="$ac_aux_dir/shtool install -c"
1901 break
1903 done
1904 if test -z "$ac_aux_dir"; then
1905 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1906 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1907 { (exit 1); exit 1; }; }
1910 # These three variables are undocumented and unsupported,
1911 # and are intended to be withdrawn in a future Autoconf release.
1912 # They can cause serious problems if a builder's source tree is in a directory
1913 # whose full name contains unusual characters.
1914 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1915 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1916 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1920 # Check what host we are running on.
1921 # If a target is not suggested, we use this one.
1922 # Note that what we call a target, Autoconf calls a host.
1923 # Make sure we can run config.sub.
1924 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1925 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1926 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1927 { (exit 1); exit 1; }; }
1929 { echo "$as_me:$LINENO: checking build system type" >&5
1930 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1931 if test "${ac_cv_build+set}" = set; then
1932 echo $ECHO_N "(cached) $ECHO_C" >&6
1933 else
1934 ac_build_alias=$build_alias
1935 test "x$ac_build_alias" = x &&
1936 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1937 test "x$ac_build_alias" = x &&
1938 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1939 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1940 { (exit 1); exit 1; }; }
1941 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1942 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1943 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1944 { (exit 1); exit 1; }; }
1947 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1948 echo "${ECHO_T}$ac_cv_build" >&6; }
1949 case $ac_cv_build in
1950 *-*-*) ;;
1951 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1952 echo "$as_me: error: invalid value of canonical build" >&2;}
1953 { (exit 1); exit 1; }; };;
1954 esac
1955 build=$ac_cv_build
1956 ac_save_IFS=$IFS; IFS='-'
1957 set x $ac_cv_build
1958 shift
1959 build_cpu=$1
1960 build_vendor=$2
1961 shift; shift
1962 # Remember, the first character of IFS is used to create $*,
1963 # except with old shells:
1964 build_os=$*
1965 IFS=$ac_save_IFS
1966 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1969 { echo "$as_me:$LINENO: checking host system type" >&5
1970 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1971 if test "${ac_cv_host+set}" = set; then
1972 echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974 if test "x$host_alias" = x; then
1975 ac_cv_host=$ac_cv_build
1976 else
1977 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1978 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1979 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1980 { (exit 1); exit 1; }; }
1984 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1985 echo "${ECHO_T}$ac_cv_host" >&6; }
1986 case $ac_cv_host in
1987 *-*-*) ;;
1988 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1989 echo "$as_me: error: invalid value of canonical host" >&2;}
1990 { (exit 1); exit 1; }; };;
1991 esac
1992 host=$ac_cv_host
1993 ac_save_IFS=$IFS; IFS='-'
1994 set x $ac_cv_host
1995 shift
1996 host_cpu=$1
1997 host_vendor=$2
1998 shift; shift
1999 # Remember, the first character of IFS is used to create $*,
2000 # except with old shells:
2001 host_os=$*
2002 IFS=$ac_save_IFS
2003 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2007 # The AROS target is slightly different to the normal GNU style
2008 # format. We don't have the middle part, and we reverse the order
2009 # of the $(CPU) and $(OS) bits.
2011 # Don't strip the version of the target yet, it might be
2012 # useful on some systems.
2014 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2015 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2017 if test "$target" = "NONE" ; then
2018 target=$host_os-$host_cpu
2019 cross_compile=no
2020 else
2021 if test "$target" = "" ; then
2022 target=$host_os-$host_cpu
2023 cross_compile=no
2024 else
2025 cross_compile=yes
2028 { echo "$as_me:$LINENO: result: $target" >&5
2029 echo "${ECHO_T}$target" >&6; }
2031 #don't know where else to put this...
2032 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2033 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2034 AROS_BUILDDIR=$PWD
2035 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2036 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2038 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2039 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2040 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2041 AROS_SRCDIR=${srcpwd}
2042 { echo "$as_me:$LINENO: result: $AROS_SRCDIR" >&5
2043 echo "${ECHO_T}$AROS_SRCDIR" >&6; }
2045 # Parse the target field into something useful.
2047 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2048 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2051 aros_default_wbwidth=800
2052 aros_default_wbheight=600
2053 aros_default_wbdepth=4
2056 # The first step is to find the host binaries.
2057 # Check for a compiler.
2058 ac_ext=c
2059 ac_cpp='$CPP $CPPFLAGS'
2060 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2061 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2062 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2063 if test -n "$ac_tool_prefix"; then
2064 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2065 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2066 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2068 if test "${ac_cv_prog_CC+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 if test -n "$CC"; then
2072 ac_cv_prog_CC="$CC" # Let the user override the test.
2073 else
2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 for as_dir in $PATH
2077 IFS=$as_save_IFS
2078 test -z "$as_dir" && as_dir=.
2079 for ac_exec_ext in '' $ac_executable_extensions; do
2080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2081 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2083 break 2
2085 done
2086 done
2087 IFS=$as_save_IFS
2091 CC=$ac_cv_prog_CC
2092 if test -n "$CC"; then
2093 { echo "$as_me:$LINENO: result: $CC" >&5
2094 echo "${ECHO_T}$CC" >&6; }
2095 else
2096 { echo "$as_me:$LINENO: result: no" >&5
2097 echo "${ECHO_T}no" >&6; }
2102 if test -z "$ac_cv_prog_CC"; then
2103 ac_ct_CC=$CC
2104 # Extract the first word of "gcc", so it can be a program name with args.
2105 set dummy gcc; ac_word=$2
2106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 if test -n "$ac_ct_CC"; then
2112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2113 else
2114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2115 for as_dir in $PATH
2117 IFS=$as_save_IFS
2118 test -z "$as_dir" && as_dir=.
2119 for ac_exec_ext in '' $ac_executable_extensions; do
2120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2121 ac_cv_prog_ac_ct_CC="gcc"
2122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2123 break 2
2125 done
2126 done
2127 IFS=$as_save_IFS
2131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2132 if test -n "$ac_ct_CC"; then
2133 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2134 echo "${ECHO_T}$ac_ct_CC" >&6; }
2135 else
2136 { echo "$as_me:$LINENO: result: no" >&5
2137 echo "${ECHO_T}no" >&6; }
2140 if test "x$ac_ct_CC" = x; then
2141 CC=""
2142 else
2143 case $cross_compiling:$ac_tool_warned in
2144 yes:)
2145 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2146 whose name does not start with the host triplet. If you think this
2147 configuration is useful to you, please write to autoconf@gnu.org." >&5
2148 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2149 whose name does not start with the host triplet. If you think this
2150 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2151 ac_tool_warned=yes ;;
2152 esac
2153 CC=$ac_ct_CC
2155 else
2156 CC="$ac_cv_prog_CC"
2159 if test -z "$CC"; then
2160 if test -n "$ac_tool_prefix"; then
2161 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2162 set dummy ${ac_tool_prefix}cc; ac_word=$2
2163 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2165 if test "${ac_cv_prog_CC+set}" = set; then
2166 echo $ECHO_N "(cached) $ECHO_C" >&6
2167 else
2168 if test -n "$CC"; then
2169 ac_cv_prog_CC="$CC" # Let the user override the test.
2170 else
2171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2172 for as_dir in $PATH
2174 IFS=$as_save_IFS
2175 test -z "$as_dir" && as_dir=.
2176 for ac_exec_ext in '' $ac_executable_extensions; do
2177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2178 ac_cv_prog_CC="${ac_tool_prefix}cc"
2179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2180 break 2
2182 done
2183 done
2184 IFS=$as_save_IFS
2188 CC=$ac_cv_prog_CC
2189 if test -n "$CC"; then
2190 { echo "$as_me:$LINENO: result: $CC" >&5
2191 echo "${ECHO_T}$CC" >&6; }
2192 else
2193 { echo "$as_me:$LINENO: result: no" >&5
2194 echo "${ECHO_T}no" >&6; }
2200 if test -z "$CC"; then
2201 # Extract the first word of "cc", so it can be a program name with args.
2202 set dummy cc; ac_word=$2
2203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2205 if test "${ac_cv_prog_CC+set}" = set; then
2206 echo $ECHO_N "(cached) $ECHO_C" >&6
2207 else
2208 if test -n "$CC"; then
2209 ac_cv_prog_CC="$CC" # Let the user override the test.
2210 else
2211 ac_prog_rejected=no
2212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2213 for as_dir in $PATH
2215 IFS=$as_save_IFS
2216 test -z "$as_dir" && as_dir=.
2217 for ac_exec_ext in '' $ac_executable_extensions; do
2218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2219 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2220 ac_prog_rejected=yes
2221 continue
2223 ac_cv_prog_CC="cc"
2224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2225 break 2
2227 done
2228 done
2229 IFS=$as_save_IFS
2231 if test $ac_prog_rejected = yes; then
2232 # We found a bogon in the path, so make sure we never use it.
2233 set dummy $ac_cv_prog_CC
2234 shift
2235 if test $# != 0; then
2236 # We chose a different compiler from the bogus one.
2237 # However, it has the same basename, so the bogon will be chosen
2238 # first if we set CC to just the basename; use the full file name.
2239 shift
2240 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2245 CC=$ac_cv_prog_CC
2246 if test -n "$CC"; then
2247 { echo "$as_me:$LINENO: result: $CC" >&5
2248 echo "${ECHO_T}$CC" >&6; }
2249 else
2250 { echo "$as_me:$LINENO: result: no" >&5
2251 echo "${ECHO_T}no" >&6; }
2256 if test -z "$CC"; then
2257 if test -n "$ac_tool_prefix"; then
2258 for ac_prog in cl.exe
2260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2264 if test "${ac_cv_prog_CC+set}" = set; then
2265 echo $ECHO_N "(cached) $ECHO_C" >&6
2266 else
2267 if test -n "$CC"; then
2268 ac_cv_prog_CC="$CC" # Let the user override the test.
2269 else
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2271 for as_dir in $PATH
2273 IFS=$as_save_IFS
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2277 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 break 2
2281 done
2282 done
2283 IFS=$as_save_IFS
2287 CC=$ac_cv_prog_CC
2288 if test -n "$CC"; then
2289 { echo "$as_me:$LINENO: result: $CC" >&5
2290 echo "${ECHO_T}$CC" >&6; }
2291 else
2292 { echo "$as_me:$LINENO: result: no" >&5
2293 echo "${ECHO_T}no" >&6; }
2297 test -n "$CC" && break
2298 done
2300 if test -z "$CC"; then
2301 ac_ct_CC=$CC
2302 for ac_prog in cl.exe
2304 # Extract the first word of "$ac_prog", so it can be a program name with args.
2305 set dummy $ac_prog; ac_word=$2
2306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2309 echo $ECHO_N "(cached) $ECHO_C" >&6
2310 else
2311 if test -n "$ac_ct_CC"; then
2312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2313 else
2314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2315 for as_dir in $PATH
2317 IFS=$as_save_IFS
2318 test -z "$as_dir" && as_dir=.
2319 for ac_exec_ext in '' $ac_executable_extensions; do
2320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2321 ac_cv_prog_ac_ct_CC="$ac_prog"
2322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2323 break 2
2325 done
2326 done
2327 IFS=$as_save_IFS
2331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2332 if test -n "$ac_ct_CC"; then
2333 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2334 echo "${ECHO_T}$ac_ct_CC" >&6; }
2335 else
2336 { echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6; }
2341 test -n "$ac_ct_CC" && break
2342 done
2344 if test "x$ac_ct_CC" = x; then
2345 CC=""
2346 else
2347 case $cross_compiling:$ac_tool_warned in
2348 yes:)
2349 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2350 whose name does not start with the host triplet. If you think this
2351 configuration is useful to you, please write to autoconf@gnu.org." >&5
2352 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2353 whose name does not start with the host triplet. If you think this
2354 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2355 ac_tool_warned=yes ;;
2356 esac
2357 CC=$ac_ct_CC
2364 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2365 See \`config.log' for more details." >&5
2366 echo "$as_me: error: no acceptable C compiler found in \$PATH
2367 See \`config.log' for more details." >&2;}
2368 { (exit 1); exit 1; }; }
2370 # Provide some information about the compiler.
2371 echo "$as_me:$LINENO: checking for C compiler version" >&5
2372 ac_compiler=`set X $ac_compile; echo $2`
2373 { (ac_try="$ac_compiler --version >&5"
2374 case "(($ac_try" in
2375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2376 *) ac_try_echo=$ac_try;;
2377 esac
2378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2379 (eval "$ac_compiler --version >&5") 2>&5
2380 ac_status=$?
2381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2382 (exit $ac_status); }
2383 { (ac_try="$ac_compiler -v >&5"
2384 case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387 esac
2388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2389 (eval "$ac_compiler -v >&5") 2>&5
2390 ac_status=$?
2391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2392 (exit $ac_status); }
2393 { (ac_try="$ac_compiler -V >&5"
2394 case "(($ac_try" in
2395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2396 *) ac_try_echo=$ac_try;;
2397 esac
2398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2399 (eval "$ac_compiler -V >&5") 2>&5
2400 ac_status=$?
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); }
2404 cat >conftest.$ac_ext <<_ACEOF
2405 /* confdefs.h. */
2406 _ACEOF
2407 cat confdefs.h >>conftest.$ac_ext
2408 cat >>conftest.$ac_ext <<_ACEOF
2409 /* end confdefs.h. */
2412 main ()
2416 return 0;
2418 _ACEOF
2419 ac_clean_files_save=$ac_clean_files
2420 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2421 # Try to create an executable without -o first, disregard a.out.
2422 # It will help us diagnose broken compilers, and finding out an intuition
2423 # of exeext.
2424 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2425 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2426 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2428 # List of possible output files, starting from the most likely.
2429 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2430 # only as a last resort. b.out is created by i960 compilers.
2431 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2433 # The IRIX 6 linker writes into existing files which may not be
2434 # executable, retaining their permissions. Remove them first so a
2435 # subsequent execution test works.
2436 ac_rmfiles=
2437 for ac_file in $ac_files
2439 case $ac_file in
2440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2441 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2442 esac
2443 done
2444 rm -f $ac_rmfiles
2446 if { (ac_try="$ac_link_default"
2447 case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2450 esac
2451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2452 (eval "$ac_link_default") 2>&5
2453 ac_status=$?
2454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2455 (exit $ac_status); }; then
2456 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2457 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2458 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2459 # so that the user can short-circuit this test for compilers unknown to
2460 # Autoconf.
2461 for ac_file in $ac_files ''
2463 test -f "$ac_file" || continue
2464 case $ac_file in
2465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2467 [ab].out )
2468 # We found the default executable, but exeext='' is most
2469 # certainly right.
2470 break;;
2471 *.* )
2472 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2473 then :; else
2474 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2476 # We set ac_cv_exeext here because the later test for it is not
2477 # safe: cross compilers may not add the suffix if given an `-o'
2478 # argument, so we may need to know it at that point already.
2479 # Even if this section looks crufty: it has the advantage of
2480 # actually working.
2481 break;;
2483 break;;
2484 esac
2485 done
2486 test "$ac_cv_exeext" = no && ac_cv_exeext=
2488 else
2489 ac_file=''
2492 { echo "$as_me:$LINENO: result: $ac_file" >&5
2493 echo "${ECHO_T}$ac_file" >&6; }
2494 if test -z "$ac_file"; then
2495 echo "$as_me: failed program was:" >&5
2496 sed 's/^/| /' conftest.$ac_ext >&5
2498 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2499 See \`config.log' for more details." >&5
2500 echo "$as_me: error: C compiler cannot create executables
2501 See \`config.log' for more details." >&2;}
2502 { (exit 77); exit 77; }; }
2505 ac_exeext=$ac_cv_exeext
2507 # Check that the compiler produces executables we can run. If not, either
2508 # the compiler is broken, or we cross compile.
2509 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2510 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2511 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2512 # If not cross compiling, check that we can run a simple program.
2513 if test "$cross_compiling" != yes; then
2514 if { ac_try='./$ac_file'
2515 { (case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_try") 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }; }; then
2524 cross_compiling=no
2525 else
2526 if test "$cross_compiling" = maybe; then
2527 cross_compiling=yes
2528 else
2529 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2530 If you meant to cross compile, use \`--host'.
2531 See \`config.log' for more details." >&5
2532 echo "$as_me: error: cannot run C compiled programs.
2533 If you meant to cross compile, use \`--host'.
2534 See \`config.log' for more details." >&2;}
2535 { (exit 1); exit 1; }; }
2539 { echo "$as_me:$LINENO: result: yes" >&5
2540 echo "${ECHO_T}yes" >&6; }
2542 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2543 ac_clean_files=$ac_clean_files_save
2544 # Check that the compiler produces executables we can run. If not, either
2545 # the compiler is broken, or we cross compile.
2546 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2547 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2548 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2549 echo "${ECHO_T}$cross_compiling" >&6; }
2551 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2552 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2553 if { (ac_try="$ac_link"
2554 case "(($ac_try" in
2555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2556 *) ac_try_echo=$ac_try;;
2557 esac
2558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2559 (eval "$ac_link") 2>&5
2560 ac_status=$?
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); }; then
2563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2564 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2565 # work properly (i.e., refer to `conftest.exe'), while it won't with
2566 # `rm'.
2567 for ac_file in conftest.exe conftest conftest.*; do
2568 test -f "$ac_file" || continue
2569 case $ac_file in
2570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572 break;;
2573 * ) break;;
2574 esac
2575 done
2576 else
2577 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2578 See \`config.log' for more details." >&5
2579 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2580 See \`config.log' for more details." >&2;}
2581 { (exit 1); exit 1; }; }
2584 rm -f conftest$ac_cv_exeext
2585 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2586 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2588 rm -f conftest.$ac_ext
2589 EXEEXT=$ac_cv_exeext
2590 ac_exeext=$EXEEXT
2591 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2592 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2593 if test "${ac_cv_objext+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 else
2596 cat >conftest.$ac_ext <<_ACEOF
2597 /* confdefs.h. */
2598 _ACEOF
2599 cat confdefs.h >>conftest.$ac_ext
2600 cat >>conftest.$ac_ext <<_ACEOF
2601 /* end confdefs.h. */
2604 main ()
2608 return 0;
2610 _ACEOF
2611 rm -f conftest.o conftest.obj
2612 if { (ac_try="$ac_compile"
2613 case "(($ac_try" in
2614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2615 *) ac_try_echo=$ac_try;;
2616 esac
2617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2618 (eval "$ac_compile") 2>&5
2619 ac_status=$?
2620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2621 (exit $ac_status); }; then
2622 for ac_file in conftest.o conftest.obj conftest.*; do
2623 test -f "$ac_file" || continue;
2624 case $ac_file in
2625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2626 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2627 break;;
2628 esac
2629 done
2630 else
2631 echo "$as_me: failed program was:" >&5
2632 sed 's/^/| /' conftest.$ac_ext >&5
2634 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2635 See \`config.log' for more details." >&5
2636 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2637 See \`config.log' for more details." >&2;}
2638 { (exit 1); exit 1; }; }
2641 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2643 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2644 echo "${ECHO_T}$ac_cv_objext" >&6; }
2645 OBJEXT=$ac_cv_objext
2646 ac_objext=$OBJEXT
2647 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2648 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2649 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2650 echo $ECHO_N "(cached) $ECHO_C" >&6
2651 else
2652 cat >conftest.$ac_ext <<_ACEOF
2653 /* confdefs.h. */
2654 _ACEOF
2655 cat confdefs.h >>conftest.$ac_ext
2656 cat >>conftest.$ac_ext <<_ACEOF
2657 /* end confdefs.h. */
2660 main ()
2662 #ifndef __GNUC__
2663 choke me
2664 #endif
2667 return 0;
2669 _ACEOF
2670 rm -f conftest.$ac_objext
2671 if { (ac_try="$ac_compile"
2672 case "(($ac_try" in
2673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2674 *) ac_try_echo=$ac_try;;
2675 esac
2676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2677 (eval "$ac_compile") 2>conftest.er1
2678 ac_status=$?
2679 grep -v '^ *+' conftest.er1 >conftest.err
2680 rm -f conftest.er1
2681 cat conftest.err >&5
2682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2683 (exit $ac_status); } && {
2684 test -z "$ac_c_werror_flag" ||
2685 test ! -s conftest.err
2686 } && test -s conftest.$ac_objext; then
2687 ac_compiler_gnu=yes
2688 else
2689 echo "$as_me: failed program was:" >&5
2690 sed 's/^/| /' conftest.$ac_ext >&5
2692 ac_compiler_gnu=no
2695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2696 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2699 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2700 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2701 GCC=`test $ac_compiler_gnu = yes && echo yes`
2702 ac_test_CFLAGS=${CFLAGS+set}
2703 ac_save_CFLAGS=$CFLAGS
2704 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2705 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2706 if test "${ac_cv_prog_cc_g+set}" = set; then
2707 echo $ECHO_N "(cached) $ECHO_C" >&6
2708 else
2709 ac_save_c_werror_flag=$ac_c_werror_flag
2710 ac_c_werror_flag=yes
2711 ac_cv_prog_cc_g=no
2712 CFLAGS="-g"
2713 cat >conftest.$ac_ext <<_ACEOF
2714 /* confdefs.h. */
2715 _ACEOF
2716 cat confdefs.h >>conftest.$ac_ext
2717 cat >>conftest.$ac_ext <<_ACEOF
2718 /* end confdefs.h. */
2721 main ()
2725 return 0;
2727 _ACEOF
2728 rm -f conftest.$ac_objext
2729 if { (ac_try="$ac_compile"
2730 case "(($ac_try" in
2731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2732 *) ac_try_echo=$ac_try;;
2733 esac
2734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2735 (eval "$ac_compile") 2>conftest.er1
2736 ac_status=$?
2737 grep -v '^ *+' conftest.er1 >conftest.err
2738 rm -f conftest.er1
2739 cat conftest.err >&5
2740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741 (exit $ac_status); } && {
2742 test -z "$ac_c_werror_flag" ||
2743 test ! -s conftest.err
2744 } && test -s conftest.$ac_objext; then
2745 ac_cv_prog_cc_g=yes
2746 else
2747 echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2750 CFLAGS=""
2751 cat >conftest.$ac_ext <<_ACEOF
2752 /* confdefs.h. */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2759 main ()
2763 return 0;
2765 _ACEOF
2766 rm -f conftest.$ac_objext
2767 if { (ac_try="$ac_compile"
2768 case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771 esac
2772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2773 (eval "$ac_compile") 2>conftest.er1
2774 ac_status=$?
2775 grep -v '^ *+' conftest.er1 >conftest.err
2776 rm -f conftest.er1
2777 cat conftest.err >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); } && {
2780 test -z "$ac_c_werror_flag" ||
2781 test ! -s conftest.err
2782 } && test -s conftest.$ac_objext; then
2784 else
2785 echo "$as_me: failed program was:" >&5
2786 sed 's/^/| /' conftest.$ac_ext >&5
2788 ac_c_werror_flag=$ac_save_c_werror_flag
2789 CFLAGS="-g"
2790 cat >conftest.$ac_ext <<_ACEOF
2791 /* confdefs.h. */
2792 _ACEOF
2793 cat confdefs.h >>conftest.$ac_ext
2794 cat >>conftest.$ac_ext <<_ACEOF
2795 /* end confdefs.h. */
2798 main ()
2802 return 0;
2804 _ACEOF
2805 rm -f conftest.$ac_objext
2806 if { (ac_try="$ac_compile"
2807 case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810 esac
2811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compile") 2>conftest.er1
2813 ac_status=$?
2814 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } && {
2819 test -z "$ac_c_werror_flag" ||
2820 test ! -s conftest.err
2821 } && test -s conftest.$ac_objext; then
2822 ac_cv_prog_cc_g=yes
2823 else
2824 echo "$as_me: failed program was:" >&5
2825 sed 's/^/| /' conftest.$ac_ext >&5
2830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 ac_c_werror_flag=$ac_save_c_werror_flag
2839 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2840 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2841 if test "$ac_test_CFLAGS" = set; then
2842 CFLAGS=$ac_save_CFLAGS
2843 elif test $ac_cv_prog_cc_g = yes; then
2844 if test "$GCC" = yes; then
2845 CFLAGS="-g -O2"
2846 else
2847 CFLAGS="-g"
2849 else
2850 if test "$GCC" = yes; then
2851 CFLAGS="-O2"
2852 else
2853 CFLAGS=
2856 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2857 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2858 if test "${ac_cv_prog_cc_c89+set}" = set; then
2859 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 else
2861 ac_cv_prog_cc_c89=no
2862 ac_save_CC=$CC
2863 cat >conftest.$ac_ext <<_ACEOF
2864 /* confdefs.h. */
2865 _ACEOF
2866 cat confdefs.h >>conftest.$ac_ext
2867 cat >>conftest.$ac_ext <<_ACEOF
2868 /* end confdefs.h. */
2869 #include <stdarg.h>
2870 #include <stdio.h>
2871 #include <sys/types.h>
2872 #include <sys/stat.h>
2873 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2874 struct buf { int x; };
2875 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2876 static char *e (p, i)
2877 char **p;
2878 int i;
2880 return p[i];
2882 static char *f (char * (*g) (char **, int), char **p, ...)
2884 char *s;
2885 va_list v;
2886 va_start (v,p);
2887 s = g (p, va_arg (v,int));
2888 va_end (v);
2889 return s;
2892 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2893 function prototypes and stuff, but not '\xHH' hex character constants.
2894 These don't provoke an error unfortunately, instead are silently treated
2895 as 'x'. The following induces an error, until -std is added to get
2896 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2897 array size at least. It's necessary to write '\x00'==0 to get something
2898 that's true only with -std. */
2899 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2901 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2902 inside strings and character constants. */
2903 #define FOO(x) 'x'
2904 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2906 int test (int i, double x);
2907 struct s1 {int (*f) (int a);};
2908 struct s2 {int (*f) (double a);};
2909 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2910 int argc;
2911 char **argv;
2913 main ()
2915 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2917 return 0;
2919 _ACEOF
2920 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2921 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2923 CC="$ac_save_CC $ac_arg"
2924 rm -f conftest.$ac_objext
2925 if { (ac_try="$ac_compile"
2926 case "(($ac_try" in
2927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2929 esac
2930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2931 (eval "$ac_compile") 2>conftest.er1
2932 ac_status=$?
2933 grep -v '^ *+' conftest.er1 >conftest.err
2934 rm -f conftest.er1
2935 cat conftest.err >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); } && {
2938 test -z "$ac_c_werror_flag" ||
2939 test ! -s conftest.err
2940 } && test -s conftest.$ac_objext; then
2941 ac_cv_prog_cc_c89=$ac_arg
2942 else
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2949 rm -f core conftest.err conftest.$ac_objext
2950 test "x$ac_cv_prog_cc_c89" != "xno" && break
2951 done
2952 rm -f conftest.$ac_ext
2953 CC=$ac_save_CC
2956 # AC_CACHE_VAL
2957 case "x$ac_cv_prog_cc_c89" in
2959 { echo "$as_me:$LINENO: result: none needed" >&5
2960 echo "${ECHO_T}none needed" >&6; } ;;
2961 xno)
2962 { echo "$as_me:$LINENO: result: unsupported" >&5
2963 echo "${ECHO_T}unsupported" >&6; } ;;
2965 CC="$CC $ac_cv_prog_cc_c89"
2966 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2967 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2968 esac
2971 ac_ext=c
2972 ac_cpp='$CPP $CPPFLAGS'
2973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2977 case $ac_cv_prog_cc_stdc in
2978 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2979 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2980 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2981 if test "${ac_cv_prog_cc_c99+set}" = set; then
2982 echo $ECHO_N "(cached) $ECHO_C" >&6
2983 else
2984 ac_cv_prog_cc_c99=no
2985 ac_save_CC=$CC
2986 cat >conftest.$ac_ext <<_ACEOF
2987 /* confdefs.h. */
2988 _ACEOF
2989 cat confdefs.h >>conftest.$ac_ext
2990 cat >>conftest.$ac_ext <<_ACEOF
2991 /* end confdefs.h. */
2992 #include <stdarg.h>
2993 #include <stdbool.h>
2994 #include <stdlib.h>
2995 #include <wchar.h>
2996 #include <stdio.h>
2998 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2999 #define debug(...) fprintf (stderr, __VA_ARGS__)
3000 #define showlist(...) puts (#__VA_ARGS__)
3001 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3002 static void
3003 test_varargs_macros (void)
3005 int x = 1234;
3006 int y = 5678;
3007 debug ("Flag");
3008 debug ("X = %d\n", x);
3009 showlist (The first, second, and third items.);
3010 report (x>y, "x is %d but y is %d", x, y);
3013 // Check long long types.
3014 #define BIG64 18446744073709551615ull
3015 #define BIG32 4294967295ul
3016 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3017 #if !BIG_OK
3018 your preprocessor is broken;
3019 #endif
3020 #if BIG_OK
3021 #else
3022 your preprocessor is broken;
3023 #endif
3024 static long long int bignum = -9223372036854775807LL;
3025 static unsigned long long int ubignum = BIG64;
3027 struct incomplete_array
3029 int datasize;
3030 double data[];
3033 struct named_init {
3034 int number;
3035 const wchar_t *name;
3036 double average;
3039 typedef const char *ccp;
3041 static inline int
3042 test_restrict (ccp restrict text)
3044 // See if C++-style comments work.
3045 // Iterate through items via the restricted pointer.
3046 // Also check for declarations in for loops.
3047 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3048 continue;
3049 return 0;
3052 // Check varargs and va_copy.
3053 static void
3054 test_varargs (const char *format, ...)
3056 va_list args;
3057 va_start (args, format);
3058 va_list args_copy;
3059 va_copy (args_copy, args);
3061 const char *str;
3062 int number;
3063 float fnumber;
3065 while (*format)
3067 switch (*format++)
3069 case 's': // string
3070 str = va_arg (args_copy, const char *);
3071 break;
3072 case 'd': // int
3073 number = va_arg (args_copy, int);
3074 break;
3075 case 'f': // float
3076 fnumber = va_arg (args_copy, double);
3077 break;
3078 default:
3079 break;
3082 va_end (args_copy);
3083 va_end (args);
3087 main ()
3090 // Check bool.
3091 _Bool success = false;
3093 // Check restrict.
3094 if (test_restrict ("String literal") == 0)
3095 success = true;
3096 char *restrict newvar = "Another string";
3098 // Check varargs.
3099 test_varargs ("s, d' f .", "string", 65, 34.234);
3100 test_varargs_macros ();
3102 // Check flexible array members.
3103 struct incomplete_array *ia =
3104 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3105 ia->datasize = 10;
3106 for (int i = 0; i < ia->datasize; ++i)
3107 ia->data[i] = i * 1.234;
3109 // Check named initializers.
3110 struct named_init ni = {
3111 .number = 34,
3112 .name = L"Test wide string",
3113 .average = 543.34343,
3116 ni.number = 58;
3118 int dynamic_array[ni.number];
3119 dynamic_array[ni.number - 1] = 543;
3121 // work around unused variable warnings
3122 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3123 || dynamic_array[ni.number - 1] != 543);
3126 return 0;
3128 _ACEOF
3129 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3131 CC="$ac_save_CC $ac_arg"
3132 rm -f conftest.$ac_objext
3133 if { (ac_try="$ac_compile"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3139 (eval "$ac_compile") 2>conftest.er1
3140 ac_status=$?
3141 grep -v '^ *+' conftest.er1 >conftest.err
3142 rm -f conftest.er1
3143 cat conftest.err >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); } && {
3146 test -z "$ac_c_werror_flag" ||
3147 test ! -s conftest.err
3148 } && test -s conftest.$ac_objext; then
3149 ac_cv_prog_cc_c99=$ac_arg
3150 else
3151 echo "$as_me: failed program was:" >&5
3152 sed 's/^/| /' conftest.$ac_ext >&5
3157 rm -f core conftest.err conftest.$ac_objext
3158 test "x$ac_cv_prog_cc_c99" != "xno" && break
3159 done
3160 rm -f conftest.$ac_ext
3161 CC=$ac_save_CC
3164 # AC_CACHE_VAL
3165 case "x$ac_cv_prog_cc_c99" in
3167 { echo "$as_me:$LINENO: result: none needed" >&5
3168 echo "${ECHO_T}none needed" >&6; } ;;
3169 xno)
3170 { echo "$as_me:$LINENO: result: unsupported" >&5
3171 echo "${ECHO_T}unsupported" >&6; } ;;
3173 CC="$CC $ac_cv_prog_cc_c99"
3174 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3175 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3176 esac
3177 if test "x$ac_cv_prog_cc_c99" != xno; then
3178 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3179 else
3180 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3181 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3182 if test "${ac_cv_prog_cc_c89+set}" = set; then
3183 echo $ECHO_N "(cached) $ECHO_C" >&6
3184 else
3185 ac_cv_prog_cc_c89=no
3186 ac_save_CC=$CC
3187 cat >conftest.$ac_ext <<_ACEOF
3188 /* confdefs.h. */
3189 _ACEOF
3190 cat confdefs.h >>conftest.$ac_ext
3191 cat >>conftest.$ac_ext <<_ACEOF
3192 /* end confdefs.h. */
3193 #include <stdarg.h>
3194 #include <stdio.h>
3195 #include <sys/types.h>
3196 #include <sys/stat.h>
3197 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3198 struct buf { int x; };
3199 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3200 static char *e (p, i)
3201 char **p;
3202 int i;
3204 return p[i];
3206 static char *f (char * (*g) (char **, int), char **p, ...)
3208 char *s;
3209 va_list v;
3210 va_start (v,p);
3211 s = g (p, va_arg (v,int));
3212 va_end (v);
3213 return s;
3216 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3217 function prototypes and stuff, but not '\xHH' hex character constants.
3218 These don't provoke an error unfortunately, instead are silently treated
3219 as 'x'. The following induces an error, until -std is added to get
3220 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3221 array size at least. It's necessary to write '\x00'==0 to get something
3222 that's true only with -std. */
3223 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3225 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3226 inside strings and character constants. */
3227 #define FOO(x) 'x'
3228 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3230 int test (int i, double x);
3231 struct s1 {int (*f) (int a);};
3232 struct s2 {int (*f) (double a);};
3233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3234 int argc;
3235 char **argv;
3237 main ()
3239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3241 return 0;
3243 _ACEOF
3244 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3245 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3247 CC="$ac_save_CC $ac_arg"
3248 rm -f conftest.$ac_objext
3249 if { (ac_try="$ac_compile"
3250 case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253 esac
3254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3255 (eval "$ac_compile") 2>conftest.er1
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } && {
3262 test -z "$ac_c_werror_flag" ||
3263 test ! -s conftest.err
3264 } && test -s conftest.$ac_objext; then
3265 ac_cv_prog_cc_c89=$ac_arg
3266 else
3267 echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3273 rm -f core conftest.err conftest.$ac_objext
3274 test "x$ac_cv_prog_cc_c89" != "xno" && break
3275 done
3276 rm -f conftest.$ac_ext
3277 CC=$ac_save_CC
3280 # AC_CACHE_VAL
3281 case "x$ac_cv_prog_cc_c89" in
3283 { echo "$as_me:$LINENO: result: none needed" >&5
3284 echo "${ECHO_T}none needed" >&6; } ;;
3285 xno)
3286 { echo "$as_me:$LINENO: result: unsupported" >&5
3287 echo "${ECHO_T}unsupported" >&6; } ;;
3289 CC="$CC $ac_cv_prog_cc_c89"
3290 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3291 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3292 esac
3293 if test "x$ac_cv_prog_cc_c89" != xno; then
3294 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3295 else
3296 ac_cv_prog_cc_stdc=no
3303 esac
3304 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3305 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3306 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3307 echo $ECHO_N "(cached) $ECHO_C" >&6
3310 case $ac_cv_prog_cc_stdc in
3311 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3312 echo "${ECHO_T}unsupported" >&6; } ;;
3313 '') { echo "$as_me:$LINENO: result: none needed" >&5
3314 echo "${ECHO_T}none needed" >&6; } ;;
3315 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3316 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3317 esac
3320 ac_ext=c
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3326 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3327 # On Suns, sometimes $CPP names a directory.
3328 if test -n "$CPP" && test -d "$CPP"; then
3329 CPP=
3331 if test -z "$CPP"; then
3332 if test "${ac_cv_prog_CPP+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3334 else
3335 # Double quotes because CPP needs to be expanded
3336 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3338 ac_preproc_ok=false
3339 for ac_c_preproc_warn_flag in '' yes
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat >conftest.$ac_ext <<_ACEOF
3348 /* confdefs.h. */
3349 _ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3353 #ifdef __STDC__
3354 # include <limits.h>
3355 #else
3356 # include <assert.h>
3357 #endif
3358 Syntax error
3359 _ACEOF
3360 if { (ac_try="$ac_cpp conftest.$ac_ext"
3361 case "(($ac_try" in
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3364 esac
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3367 ac_status=$?
3368 grep -v '^ *+' conftest.er1 >conftest.err
3369 rm -f conftest.er1
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } >/dev/null && {
3373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3374 test ! -s conftest.err
3375 }; then
3377 else
3378 echo "$as_me: failed program was:" >&5
3379 sed 's/^/| /' conftest.$ac_ext >&5
3381 # Broken: fails on valid input.
3382 continue
3385 rm -f conftest.err conftest.$ac_ext
3387 # OK, works on sane cases. Now check whether nonexistent headers
3388 # can be detected and how.
3389 cat >conftest.$ac_ext <<_ACEOF
3390 /* confdefs.h. */
3391 _ACEOF
3392 cat confdefs.h >>conftest.$ac_ext
3393 cat >>conftest.$ac_ext <<_ACEOF
3394 /* end confdefs.h. */
3395 #include <ac_nonexistent.h>
3396 _ACEOF
3397 if { (ac_try="$ac_cpp conftest.$ac_ext"
3398 case "(($ac_try" in
3399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3401 esac
3402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3403 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3404 ac_status=$?
3405 grep -v '^ *+' conftest.er1 >conftest.err
3406 rm -f conftest.er1
3407 cat conftest.err >&5
3408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409 (exit $ac_status); } >/dev/null && {
3410 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3411 test ! -s conftest.err
3412 }; then
3413 # Broken: success on invalid input.
3414 continue
3415 else
3416 echo "$as_me: failed program was:" >&5
3417 sed 's/^/| /' conftest.$ac_ext >&5
3419 # Passes both tests.
3420 ac_preproc_ok=:
3421 break
3424 rm -f conftest.err conftest.$ac_ext
3426 done
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.err conftest.$ac_ext
3429 if $ac_preproc_ok; then
3430 break
3433 done
3434 ac_cv_prog_CPP=$CPP
3437 CPP=$ac_cv_prog_CPP
3438 else
3439 ac_cv_prog_CPP=$CPP
3441 { echo "$as_me:$LINENO: result: $CPP" >&5
3442 echo "${ECHO_T}$CPP" >&6; }
3443 ac_preproc_ok=false
3444 for ac_c_preproc_warn_flag in '' yes
3446 # Use a header file that comes with gcc, so configuring glibc
3447 # with a fresh cross-compiler works.
3448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3449 # <limits.h> exists even on freestanding compilers.
3450 # On the NeXT, cc -E runs the code through the compiler's parser,
3451 # not just through cpp. "Syntax error" is here to catch this case.
3452 cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h. */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3458 #ifdef __STDC__
3459 # include <limits.h>
3460 #else
3461 # include <assert.h>
3462 #endif
3463 Syntax error
3464 _ACEOF
3465 if { (ac_try="$ac_cpp conftest.$ac_ext"
3466 case "(($ac_try" in
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3469 esac
3470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3472 ac_status=$?
3473 grep -v '^ *+' conftest.er1 >conftest.err
3474 rm -f conftest.er1
3475 cat conftest.err >&5
3476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477 (exit $ac_status); } >/dev/null && {
3478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3479 test ! -s conftest.err
3480 }; then
3482 else
3483 echo "$as_me: failed program was:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3486 # Broken: fails on valid input.
3487 continue
3490 rm -f conftest.err conftest.$ac_ext
3492 # OK, works on sane cases. Now check whether nonexistent headers
3493 # can be detected and how.
3494 cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h. */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h. */
3500 #include <ac_nonexistent.h>
3501 _ACEOF
3502 if { (ac_try="$ac_cpp conftest.$ac_ext"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3509 ac_status=$?
3510 grep -v '^ *+' conftest.er1 >conftest.err
3511 rm -f conftest.er1
3512 cat conftest.err >&5
3513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3514 (exit $ac_status); } >/dev/null && {
3515 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3516 test ! -s conftest.err
3517 }; then
3518 # Broken: success on invalid input.
3519 continue
3520 else
3521 echo "$as_me: failed program was:" >&5
3522 sed 's/^/| /' conftest.$ac_ext >&5
3524 # Passes both tests.
3525 ac_preproc_ok=:
3526 break
3529 rm -f conftest.err conftest.$ac_ext
3531 done
3532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3533 rm -f conftest.err conftest.$ac_ext
3534 if $ac_preproc_ok; then
3536 else
3537 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3538 See \`config.log' for more details." >&5
3539 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3540 See \`config.log' for more details." >&2;}
3541 { (exit 1); exit 1; }; }
3544 ac_ext=c
3545 ac_cpp='$CPP $CPPFLAGS'
3546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3551 # Check for a compatible awk
3552 for ac_prog in gawk nawk
3554 # Extract the first word of "$ac_prog", so it can be a program name with args.
3555 set dummy $ac_prog; ac_word=$2
3556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3558 if test "${ac_cv_prog_AWK+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 else
3561 if test -n "$AWK"; then
3562 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 ac_cv_prog_AWK="$ac_prog"
3572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3575 done
3576 done
3577 IFS=$as_save_IFS
3581 AWK=$ac_cv_prog_AWK
3582 if test -n "$AWK"; then
3583 { echo "$as_me:$LINENO: result: $AWK" >&5
3584 echo "${ECHO_T}$AWK" >&6; }
3585 else
3586 { echo "$as_me:$LINENO: result: no" >&5
3587 echo "${ECHO_T}no" >&6; }
3591 test -n "$AWK" && break
3592 done
3594 if test "$AWK" = ""; then
3595 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3596 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3597 { (exit 1); exit 1; }; }
3599 # Extract the first word of "mmake", so it can be a program name with args.
3600 set dummy mmake; ac_word=$2
3601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3603 if test "${ac_cv_prog_MMAKE+set}" = set; then
3604 echo $ECHO_N "(cached) $ECHO_C" >&6
3605 else
3606 if test -n "$MMAKE"; then
3607 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3608 else
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 for as_dir in $PATH
3612 IFS=$as_save_IFS
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616 ac_cv_prog_MMAKE="mmake "
3617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 break 2
3620 done
3621 done
3622 IFS=$as_save_IFS
3626 MMAKE=$ac_cv_prog_MMAKE
3627 if test -n "$MMAKE"; then
3628 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3629 echo "${ECHO_T}$MMAKE" >&6; }
3630 else
3631 { echo "$as_me:$LINENO: result: no" >&5
3632 echo "${ECHO_T}no" >&6; }
3637 # Perform some default variable assignments. Note all of these will be
3638 # Regenerated from the script, so there is no need to cache them.
3640 aros_host_cc="$CC"
3641 if test "$GCC" = "yes"; then
3642 aros_gcc_ld=`$CC -print-prog-name=ld`
3643 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3644 set dummy `basename $aros_gcc_ld`; ac_word=$2
3645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3647 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3649 else
3650 case $aros_host_ld in
3651 [\\/]* | ?:[\\/]*)
3652 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 for as_dir in `dirname $aros_gcc_ld`
3658 IFS=$as_save_IFS
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3662 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3664 break 2
3666 done
3667 done
3668 IFS=$as_save_IFS
3671 esac
3673 aros_host_ld=$ac_cv_path_aros_host_ld
3674 if test -n "$aros_host_ld"; then
3675 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3676 echo "${ECHO_T}$aros_host_ld" >&6; }
3677 else
3678 { echo "$as_me:$LINENO: result: no" >&5
3679 echo "${ECHO_T}no" >&6; }
3684 if test "$aros_host_ld" = ""; then
3685 # Extract the first word of "ld", so it can be a program name with args.
3686 set dummy ld; ac_word=$2
3687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3689 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3690 echo $ECHO_N "(cached) $ECHO_C" >&6
3691 else
3692 case $aros_host_ld in
3693 [\\/]* | ?:[\\/]*)
3694 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 for as_dir in $PATH
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
3702 for ac_exec_ext in '' $ac_executable_extensions; do
3703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3704 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3706 break 2
3708 done
3709 done
3710 IFS=$as_save_IFS
3713 esac
3715 aros_host_ld=$ac_cv_path_aros_host_ld
3716 if test -n "$aros_host_ld"; then
3717 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3718 echo "${ECHO_T}$aros_host_ld" >&6; }
3719 else
3720 { echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6; }
3726 if test "$aros_host_ld" = ""; then
3727 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3728 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3729 { (exit 1); exit 1; }; }
3731 aros_host_make="make"
3732 aros_host_cflags=$CFLAGS
3733 aros_host_ldflags=$LDFLAGS
3734 aros_host_debug="-g -O0"
3735 aros_host_mkdep="\$(TOP)/scripts/mkdep"
3736 aros_host_mkargs="--no-print-directory"
3737 aros_host_incl="/usr/include"
3738 aros_host_exe_suffix="$EXEEXT"
3739 aros_host_lib_suffix=""
3741 for ac_prog in aclocal aclocal19 aclocal-1.9
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3747 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3748 echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750 if test -n "$aros_host_aclocal"; then
3751 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_aros_host_aclocal="$ac_prog"
3761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3771 if test -n "$aros_host_aclocal"; then
3772 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3773 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3774 else
3775 { echo "$as_me:$LINENO: result: no" >&5
3776 echo "${ECHO_T}no" >&6; }
3780 test -n "$aros_host_aclocal" && break
3781 done
3783 for ac_prog in autoconf autoconf259 autoconf253
3785 # Extract the first word of "$ac_prog", so it can be a program name with args.
3786 set dummy $ac_prog; ac_word=$2
3787 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3788 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3789 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3790 echo $ECHO_N "(cached) $ECHO_C" >&6
3791 else
3792 if test -n "$aros_host_autoconf"; then
3793 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3794 else
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 for as_dir in $PATH
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802 ac_cv_prog_aros_host_autoconf="$ac_prog"
3803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3806 done
3807 done
3808 IFS=$as_save_IFS
3812 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3813 if test -n "$aros_host_autoconf"; then
3814 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3815 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3816 else
3817 { echo "$as_me:$LINENO: result: no" >&5
3818 echo "${ECHO_T}no" >&6; }
3822 test -n "$aros_host_autoconf" && break
3823 done
3825 for ac_prog in autoheader autoheader259 autoheader253
3827 # Extract the first word of "$ac_prog", so it can be a program name with args.
3828 set dummy $ac_prog; ac_word=$2
3829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3831 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3832 echo $ECHO_N "(cached) $ECHO_C" >&6
3833 else
3834 if test -n "$aros_host_autoheader"; then
3835 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3836 else
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 for as_dir in $PATH
3840 IFS=$as_save_IFS
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3844 ac_cv_prog_aros_host_autoheader="$ac_prog"
3845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3846 break 2
3848 done
3849 done
3850 IFS=$as_save_IFS
3854 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3855 if test -n "$aros_host_autoheader"; then
3856 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3857 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3858 else
3859 { echo "$as_me:$LINENO: result: no" >&5
3860 echo "${ECHO_T}no" >&6; }
3864 test -n "$aros_host_autoheader" && break
3865 done
3867 for ac_prog in automake automake19 automake-1.9
3869 # Extract the first word of "$ac_prog", so it can be a program name with args.
3870 set dummy $ac_prog; ac_word=$2
3871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3873 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3874 echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876 if test -n "$aros_host_automake"; then
3877 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3878 else
3879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 for as_dir in $PATH
3882 IFS=$as_save_IFS
3883 test -z "$as_dir" && as_dir=.
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3886 ac_cv_prog_aros_host_automake="$ac_prog"
3887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3888 break 2
3890 done
3891 done
3892 IFS=$as_save_IFS
3896 aros_host_automake=$ac_cv_prog_aros_host_automake
3897 if test -n "$aros_host_automake"; then
3898 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3899 echo "${ECHO_T}$aros_host_automake" >&6; }
3900 else
3901 { echo "$as_me:$LINENO: result: no" >&5
3902 echo "${ECHO_T}no" >&6; }
3906 test -n "$aros_host_automake" && break
3907 done
3910 if test "$aros_host_aclocal" = ""; then
3911 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3912 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3913 { (exit 1); exit 1; }; }
3915 if test "$aros_host_automake" = ""; then
3916 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3917 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3918 { (exit 1); exit 1; }; }
3921 case "$aros_host_cc" in
3922 *gcc*)
3923 aros_host_cc_pipe="-pipe"
3925 icc)
3926 aros_host_cc_pipe=""
3929 aros_host_cc_pipe=""
3931 esac
3933 aros_target_cc_includes=""
3935 # This is the main host configuration section. It is where the host
3936 # can change the values of any variables it needs to change. We do
3937 # not look at anything that compiles to the target yet, we'll get
3938 # to that later.
3940 case "$host_os" in
3941 linux*)
3942 aros_host_arch="linux"
3943 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3944 case "$host_cpu" in
3945 *i?86*)
3946 aros_host_cpu="i386"
3948 *x86_64*)
3949 aros_host_cpu="x86_64"
3951 *m68k*)
3952 aros_host_cpu="m68k"
3954 *powerpc*)
3955 aros_host_cpu="ppc"
3958 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3959 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3960 aros_host_cpu="$host_cpu"
3962 esac
3965 freebsd*)
3966 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3967 aros_host_make="gmake"
3968 aros_host_arch="freebsd"
3969 aros_host_cpu="i386"
3971 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3974 case $host_os in
3975 freebsd[234]*)
3976 aros_object_format="elf_i386"
3980 aros_object_format="elf_i386_fbsd"
3982 esac
3986 darwin*)
3987 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3988 aros_host_arch="darwin"
3989 case "$host_cpu" in
3990 *i?86*)
3991 aros_host_cpu="i386"
3993 *powerpc*)
3994 aros_host_cpu="ppc"
3997 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3998 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3999 aros_host_cpu="$host_cpu"
4001 esac
4003 aros_host_ldflags="$aros_host_ldflags -liconv"
4007 netbsd*)
4008 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4009 aros_host_make="gmake"
4010 aros_host_arch="netbsd"
4011 case "$host_cpu" in
4012 *i?86*)
4013 aros_host_cpu="i386"
4015 *m68k*)
4016 aros_host_cpu="m68k"
4019 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4020 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4021 aros_host_cpu="$host_cpu"
4023 esac
4024 aros_host_lib_suffix=".0.0"
4027 openbsd*)
4028 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4029 aros_host_make="gmake"
4030 aros_host_arch="openbsd"
4031 case "$host_cpu" in
4032 *i?86*)
4033 aros_host_cpu="i386"
4036 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4037 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4038 aros_host_cpu="$host_cpu"
4040 esac
4043 solaris*)
4044 aros_host_arch="solaris"
4045 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4046 case "$host_cpu" in
4047 *i?86*)
4048 aros_host_cpu="i386"
4050 *sparc*)
4051 aros_host_cpu="sparc"
4054 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4055 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4056 aros_host_cpu="$host_cpu"
4058 esac
4061 morphos*)
4062 aros_host_arch="morphos"
4063 aros_host_cpu="ppc"
4066 amiga*)
4067 aros_host_arch="amiga"
4068 SORT="/gg/bin/sort"
4069 TEST="/gg/bin/test"
4070 UNIQ="/gg/bin/uniq"
4071 FOR="for"
4072 TOUCH="/gg/bin/touch"
4073 case "$host_cpu" in
4074 *m68k*)
4075 aros_host_cpu="m68k"
4077 *powerpc*)
4078 aros_host_cpu="ppc"
4081 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4082 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4083 aros_host_cpu="$host_cpu"
4085 esac
4088 cygwin*)
4089 aros_host_arch="cygwin"
4090 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4091 case "$host_cpu" in
4092 *i?86*)
4093 aros_host_cpu="i386"
4096 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4097 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4098 aros_host_cpu="$host_cpu"
4100 esac
4103 mingw32*)
4104 aros_host_arch="mingw32"
4105 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4106 case "$host_cpu" in
4107 *i?86*)
4108 aros_host_cpu="i386"
4111 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4112 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4113 aros_host_cpu="$host_cpu"
4115 esac
4118 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4119 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4120 { (exit 1); exit 1; }; }
4122 esac
4124 # Extract the first word of "ar", so it can be a program name with args.
4125 set dummy ar; ac_word=$2
4126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4128 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 else
4131 if test -n "$aros_host_ar"; then
4132 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141 ac_cv_prog_aros_host_ar="ar cr"
4142 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 break 2
4145 done
4146 done
4147 IFS=$as_save_IFS
4151 aros_host_ar=$ac_cv_prog_aros_host_ar
4152 if test -n "$aros_host_ar"; then
4153 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4154 echo "${ECHO_T}$aros_host_ar" >&6; }
4155 else
4156 { echo "$as_me:$LINENO: result: no" >&5
4157 echo "${ECHO_T}no" >&6; }
4161 if test "$aros_host_ar" = ""; then
4162 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4163 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4164 { (exit 1); exit 1; }; }
4166 # Extract the first word of "ranlib", so it can be a program name with args.
4167 set dummy ranlib; ac_word=$2
4168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4170 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4172 else
4173 if test -n "$aros_host_ranlib"; then
4174 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4175 else
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 for as_dir in $PATH
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_prog_aros_host_ranlib="ranlib "
4184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4187 done
4188 done
4189 IFS=$as_save_IFS
4193 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4194 if test -n "$aros_host_ranlib"; then
4195 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4196 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4197 else
4198 { echo "$as_me:$LINENO: result: no" >&5
4199 echo "${ECHO_T}no" >&6; }
4203 if test "$aros_host_ranlib" = ""; then
4204 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4205 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4206 { (exit 1); exit 1; }; }
4208 # Extract the first word of "strip", so it can be a program name with args.
4209 set dummy strip; ac_word=$2
4210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4212 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4213 echo $ECHO_N "(cached) $ECHO_C" >&6
4214 else
4215 if test -n "$aros_host_strip"; then
4216 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4217 else
4218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 for as_dir in $PATH
4221 IFS=$as_save_IFS
4222 test -z "$as_dir" && as_dir=.
4223 for ac_exec_ext in '' $ac_executable_extensions; do
4224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4225 ac_cv_prog_aros_host_strip="strip "
4226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4227 break 2
4229 done
4230 done
4231 IFS=$as_save_IFS
4235 aros_host_strip=$ac_cv_prog_aros_host_strip
4236 if test -n "$aros_host_strip"; then
4237 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4238 echo "${ECHO_T}$aros_host_strip" >&6; }
4239 else
4240 { echo "$as_me:$LINENO: result: no" >&5
4241 echo "${ECHO_T}no" >&6; }
4245 if test "$aros_host_strip" = ""; then
4246 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4247 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4248 { (exit 1); exit 1; }; }
4251 # Extract the first word of "rm", so it can be a program name with args.
4252 set dummy rm; ac_word=$2
4253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4255 if test "${ac_cv_prog_RM+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258 if test -n "$RM"; then
4259 ac_cv_prog_RM="$RM" # Let the user override the test.
4260 else
4261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4262 for as_dir in $PATH
4264 IFS=$as_save_IFS
4265 test -z "$as_dir" && as_dir=.
4266 for ac_exec_ext in '' $ac_executable_extensions; do
4267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4268 ac_cv_prog_RM="rm -rf"
4269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 break 2
4272 done
4273 done
4274 IFS=$as_save_IFS
4278 RM=$ac_cv_prog_RM
4279 if test -n "$RM"; then
4280 { echo "$as_me:$LINENO: result: $RM" >&5
4281 echo "${ECHO_T}$RM" >&6; }
4282 else
4283 { echo "$as_me:$LINENO: result: no" >&5
4284 echo "${ECHO_T}no" >&6; }
4288 if test "$RM" = ""; then
4289 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4290 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4291 { (exit 1); exit 1; }; }
4293 # Extract the first word of "cp", so it can be a program name with args.
4294 set dummy cp; ac_word=$2
4295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4297 if test "${ac_cv_prog_CP+set}" = set; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 else
4300 if test -n "$CP"; then
4301 ac_cv_prog_CP="$CP" # Let the user override the test.
4302 else
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_exec_ext in '' $ac_executable_extensions; do
4309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4310 ac_cv_prog_CP="cp "
4311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4312 break 2
4314 done
4315 done
4316 IFS=$as_save_IFS
4320 CP=$ac_cv_prog_CP
4321 if test -n "$CP"; then
4322 { echo "$as_me:$LINENO: result: $CP" >&5
4323 echo "${ECHO_T}$CP" >&6; }
4324 else
4325 { echo "$as_me:$LINENO: result: no" >&5
4326 echo "${ECHO_T}no" >&6; }
4330 if test "$CP" = ""; then
4331 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4332 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4333 { (exit 1); exit 1; }; }
4335 # Extract the first word of "mv", so it can be a program name with args.
4336 set dummy mv; ac_word=$2
4337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4339 if test "${ac_cv_prog_MV+set}" = set; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 else
4342 if test -n "$MV"; then
4343 ac_cv_prog_MV="$MV" # Let the user override the test.
4344 else
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4348 IFS=$as_save_IFS
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 ac_cv_prog_MV="mv "
4353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 break 2
4356 done
4357 done
4358 IFS=$as_save_IFS
4362 MV=$ac_cv_prog_MV
4363 if test -n "$MV"; then
4364 { echo "$as_me:$LINENO: result: $MV" >&5
4365 echo "${ECHO_T}$MV" >&6; }
4366 else
4367 { echo "$as_me:$LINENO: result: no" >&5
4368 echo "${ECHO_T}no" >&6; }
4372 if test "$MV" = ""; then
4373 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4374 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4375 { (exit 1); exit 1; }; }
4377 # Extract the first word of "echo", so it can be a program name with args.
4378 set dummy echo; ac_word=$2
4379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4381 if test "${ac_cv_prog_ECHO+set}" = set; then
4382 echo $ECHO_N "(cached) $ECHO_C" >&6
4383 else
4384 if test -n "$ECHO"; then
4385 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4386 else
4387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4388 for as_dir in $PATH
4390 IFS=$as_save_IFS
4391 test -z "$as_dir" && as_dir=.
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4394 ac_cv_prog_ECHO="echo "
4395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4396 break 2
4398 done
4399 done
4400 IFS=$as_save_IFS
4404 ECHO=$ac_cv_prog_ECHO
4405 if test -n "$ECHO"; then
4406 { echo "$as_me:$LINENO: result: $ECHO" >&5
4407 echo "${ECHO_T}$ECHO" >&6; }
4408 else
4409 { echo "$as_me:$LINENO: result: no" >&5
4410 echo "${ECHO_T}no" >&6; }
4414 if test "$ECHO" = ""; then
4415 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4416 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4417 { (exit 1); exit 1; }; }
4419 # Extract the first word of "mkdir", so it can be a program name with args.
4420 set dummy mkdir; ac_word=$2
4421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4423 if test "${ac_cv_prog_MKDIR+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4425 else
4426 if test -n "$MKDIR"; then
4427 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4428 else
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4432 IFS=$as_save_IFS
4433 test -z "$as_dir" && as_dir=.
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436 ac_cv_prog_MKDIR="mkdir -p"
4437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 break 2
4440 done
4441 done
4442 IFS=$as_save_IFS
4446 MKDIR=$ac_cv_prog_MKDIR
4447 if test -n "$MKDIR"; then
4448 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4449 echo "${ECHO_T}$MKDIR" >&6; }
4450 else
4451 { echo "$as_me:$LINENO: result: no" >&5
4452 echo "${ECHO_T}no" >&6; }
4456 if test "$MKDIR" = ""; then
4457 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4458 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4459 { (exit 1); exit 1; }; }
4461 # Extract the first word of "touch", so it can be a program name with args.
4462 set dummy touch; ac_word=$2
4463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465 if test "${ac_cv_prog_TOUCH+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 else
4468 if test -n "$TOUCH"; then
4469 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4470 else
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 ac_cv_prog_TOUCH="touch "
4479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4482 done
4483 done
4484 IFS=$as_save_IFS
4488 TOUCH=$ac_cv_prog_TOUCH
4489 if test -n "$TOUCH"; then
4490 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4491 echo "${ECHO_T}$TOUCH" >&6; }
4492 else
4493 { echo "$as_me:$LINENO: result: no" >&5
4494 echo "${ECHO_T}no" >&6; }
4498 if test "$TOUCH" = ""; then
4499 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4500 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4501 { (exit 1); exit 1; }; }
4503 # Extract the first word of "sort", so it can be a program name with args.
4504 set dummy sort; ac_word=$2
4505 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4506 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4507 if test "${ac_cv_prog_SORT+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509 else
4510 if test -n "$SORT"; then
4511 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4512 else
4513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4514 for as_dir in $PATH
4516 IFS=$as_save_IFS
4517 test -z "$as_dir" && as_dir=.
4518 for ac_exec_ext in '' $ac_executable_extensions; do
4519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4520 ac_cv_prog_SORT="sort "
4521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 break 2
4524 done
4525 done
4526 IFS=$as_save_IFS
4530 SORT=$ac_cv_prog_SORT
4531 if test -n "$SORT"; then
4532 { echo "$as_me:$LINENO: result: $SORT" >&5
4533 echo "${ECHO_T}$SORT" >&6; }
4534 else
4535 { echo "$as_me:$LINENO: result: no" >&5
4536 echo "${ECHO_T}no" >&6; }
4540 if test "$SORT" = ""; then
4541 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4542 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4543 { (exit 1); exit 1; }; }
4545 # Extract the first word of "uniq", so it can be a program name with args.
4546 set dummy uniq; ac_word=$2
4547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4549 if test "${ac_cv_prog_UNIQ+set}" = set; then
4550 echo $ECHO_N "(cached) $ECHO_C" >&6
4551 else
4552 if test -n "$UNIQ"; then
4553 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4554 else
4555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
4560 for ac_exec_ext in '' $ac_executable_extensions; do
4561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4562 ac_cv_prog_UNIQ="uniq "
4563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4564 break 2
4566 done
4567 done
4568 IFS=$as_save_IFS
4572 UNIQ=$ac_cv_prog_UNIQ
4573 if test -n "$UNIQ"; then
4574 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4575 echo "${ECHO_T}$UNIQ" >&6; }
4576 else
4577 { echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6; }
4582 if test "$UNIQ" = ""; then
4583 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4584 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4585 { (exit 1); exit 1; }; }
4587 # Extract the first word of "true", so it can be a program name with args.
4588 set dummy true; ac_word=$2
4589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4591 if test "${ac_cv_prog_NOP+set}" = set; then
4592 echo $ECHO_N "(cached) $ECHO_C" >&6
4593 else
4594 if test -n "$NOP"; then
4595 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4596 else
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4604 ac_cv_prog_NOP="true "
4605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 break 2
4608 done
4609 done
4610 IFS=$as_save_IFS
4614 NOP=$ac_cv_prog_NOP
4615 if test -n "$NOP"; then
4616 { echo "$as_me:$LINENO: result: $NOP" >&5
4617 echo "${ECHO_T}$NOP" >&6; }
4618 else
4619 { echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6; }
4624 if test "$NOP" = ""; then
4625 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4626 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4627 { (exit 1); exit 1; }; }
4629 # Extract the first word of "cat", so it can be a program name with args.
4630 set dummy cat; ac_word=$2
4631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4633 if test "${ac_cv_prog_CAT+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636 if test -n "$CAT"; then
4637 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 ac_cv_prog_CAT="cat "
4647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4650 done
4651 done
4652 IFS=$as_save_IFS
4656 CAT=$ac_cv_prog_CAT
4657 if test -n "$CAT"; then
4658 { echo "$as_me:$LINENO: result: $CAT" >&5
4659 echo "${ECHO_T}$CAT" >&6; }
4660 else
4661 { echo "$as_me:$LINENO: result: no" >&5
4662 echo "${ECHO_T}no" >&6; }
4666 if test "$CAT" = ""; then
4667 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4668 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4669 { (exit 1); exit 1; }; }
4671 # Extract the first word of "bison", so it can be a program name with args.
4672 set dummy bison; ac_word=$2
4673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675 if test "${ac_cv_prog_BISON+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 else
4678 if test -n "$BISON"; then
4679 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4688 ac_cv_prog_BISON="bison "
4689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4692 done
4693 done
4694 IFS=$as_save_IFS
4698 BISON=$ac_cv_prog_BISON
4699 if test -n "$BISON"; then
4700 { echo "$as_me:$LINENO: result: $BISON" >&5
4701 echo "${ECHO_T}$BISON" >&6; }
4702 else
4703 { echo "$as_me:$LINENO: result: no" >&5
4704 echo "${ECHO_T}no" >&6; }
4708 if test "$BISON" = ""; then
4709 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4710 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4711 { (exit 1); exit 1; }; }
4713 # Extract the first word of "flex", so it can be a program name with args.
4714 set dummy flex; ac_word=$2
4715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4717 if test "${ac_cv_prog_FLEX+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719 else
4720 if test -n "$FLEX"; then
4721 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4722 else
4723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724 for as_dir in $PATH
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
4729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4730 ac_cv_prog_FLEX="flex "
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4734 done
4735 done
4736 IFS=$as_save_IFS
4740 FLEX=$ac_cv_prog_FLEX
4741 if test -n "$FLEX"; then
4742 { echo "$as_me:$LINENO: result: $FLEX" >&5
4743 echo "${ECHO_T}$FLEX" >&6; }
4744 else
4745 { echo "$as_me:$LINENO: result: no" >&5
4746 echo "${ECHO_T}no" >&6; }
4750 if test "$FLEX" = ""; then
4751 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4752 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4753 { (exit 1); exit 1; }; }
4755 # Extract the first word of "pngtopnm", so it can be a program name with args.
4756 set dummy pngtopnm; ac_word=$2
4757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4759 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761 else
4762 if test -n "$PNGTOPNM"; then
4763 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4764 else
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4772 ac_cv_prog_PNGTOPNM="pngtopnm "
4773 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 break 2
4776 done
4777 done
4778 IFS=$as_save_IFS
4782 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4783 if test -n "$PNGTOPNM"; then
4784 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4785 echo "${ECHO_T}$PNGTOPNM" >&6; }
4786 else
4787 { echo "$as_me:$LINENO: result: no" >&5
4788 echo "${ECHO_T}no" >&6; }
4792 if test "$PNGTOPNM" = ""; then
4793 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4794 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4795 { (exit 1); exit 1; }; }
4797 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4798 set dummy ppmtoilbm; ac_word=$2
4799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4801 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4803 else
4804 if test -n "$PPMTOILBM"; then
4805 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4806 else
4807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4808 for as_dir in $PATH
4810 IFS=$as_save_IFS
4811 test -z "$as_dir" && as_dir=.
4812 for ac_exec_ext in '' $ac_executable_extensions; do
4813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4814 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4816 break 2
4818 done
4819 done
4820 IFS=$as_save_IFS
4824 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4825 if test -n "$PPMTOILBM"; then
4826 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4827 echo "${ECHO_T}$PPMTOILBM" >&6; }
4828 else
4829 { echo "$as_me:$LINENO: result: no" >&5
4830 echo "${ECHO_T}no" >&6; }
4834 if test "$PPMTOILBM" = ""; then
4835 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4836 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4837 { (exit 1); exit 1; }; }
4839 # Extract the first word of "sed", so it can be a program name with args.
4840 set dummy sed; ac_word=$2
4841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4843 if test "${ac_cv_prog_SED+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846 if test -n "$SED"; then
4847 ac_cv_prog_SED="$SED" # Let the user override the test.
4848 else
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4852 IFS=$as_save_IFS
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4856 ac_cv_prog_SED="sed "
4857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4858 break 2
4860 done
4861 done
4862 IFS=$as_save_IFS
4866 SED=$ac_cv_prog_SED
4867 if test -n "$SED"; then
4868 { echo "$as_me:$LINENO: result: $SED" >&5
4869 echo "${ECHO_T}$SED" >&6; }
4870 else
4871 { echo "$as_me:$LINENO: result: no" >&5
4872 echo "${ECHO_T}no" >&6; }
4876 if test "$SED" = ""; then
4877 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4878 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4879 { (exit 1); exit 1; }; }
4881 # Extract the first word of "chmod", so it can be a program name with args.
4882 set dummy chmod; ac_word=$2
4883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4885 if test "${ac_cv_prog_CHMOD+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 else
4888 if test -n "$CHMOD"; then
4889 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4890 else
4891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892 for as_dir in $PATH
4894 IFS=$as_save_IFS
4895 test -z "$as_dir" && as_dir=.
4896 for ac_exec_ext in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_prog_CHMOD="chmod "
4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4900 break 2
4902 done
4903 done
4904 IFS=$as_save_IFS
4908 CHMOD=$ac_cv_prog_CHMOD
4909 if test -n "$CHMOD"; then
4910 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4911 echo "${ECHO_T}$CHMOD" >&6; }
4912 else
4913 { echo "$as_me:$LINENO: result: no" >&5
4914 echo "${ECHO_T}no" >&6; }
4918 if test "$CHMOD" = ""; then
4919 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4920 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4921 { (exit 1); exit 1; }; }
4928 if test -n "$PYTHON"; then
4929 # If the user set $PYTHON, use it and don't search something else.
4930 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4931 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4932 prog="import sys, string
4933 # split strings by '.' and convert to numeric. Append some zeros
4934 # because we need at least 4 digits for the hex conversion.
4935 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4936 minverhex = 0
4937 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4938 sys.exit(sys.hexversion < minverhex)"
4939 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4940 ($PYTHON -c "$prog") >&5 2>&5
4941 ac_status=$?
4942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4943 (exit $ac_status); }; then
4944 { echo "$as_me:$LINENO: result: yes" >&5
4945 echo "${ECHO_T}yes" >&6; }
4946 else
4947 { { echo "$as_me:$LINENO: error: too old" >&5
4948 echo "$as_me: error: too old" >&2;}
4949 { (exit 1); exit 1; }; }
4952 am_display_PYTHON=$PYTHON
4953 else
4954 # Otherwise, try each interpreter until we find one that satisfies
4955 # VERSION.
4956 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4957 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4958 if test "${am_cv_pathless_PYTHON+set}" = set; then
4959 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 else
4962 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
4963 test "$am_cv_pathless_PYTHON" = none && break
4964 prog="import sys, string
4965 # split strings by '.' and convert to numeric. Append some zeros
4966 # because we need at least 4 digits for the hex conversion.
4967 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4968 minverhex = 0
4969 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4970 sys.exit(sys.hexversion < minverhex)"
4971 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4972 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4973 ac_status=$?
4974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975 (exit $ac_status); }; then
4976 break
4979 done
4981 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
4982 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
4983 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4984 if test "$am_cv_pathless_PYTHON" = none; then
4985 PYTHON=:
4986 else
4987 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4988 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4991 if test "${ac_cv_path_PYTHON+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 case $PYTHON in
4995 [\\/]* | ?:[\\/]*)
4996 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5002 IFS=$as_save_IFS
5003 test -z "$as_dir" && as_dir=.
5004 for ac_exec_ext in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5008 break 2
5010 done
5011 done
5012 IFS=$as_save_IFS
5015 esac
5017 PYTHON=$ac_cv_path_PYTHON
5018 if test -n "$PYTHON"; then
5019 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5020 echo "${ECHO_T}$PYTHON" >&6; }
5021 else
5022 { echo "$as_me:$LINENO: result: no" >&5
5023 echo "${ECHO_T}no" >&6; }
5028 am_display_PYTHON=$am_cv_pathless_PYTHON
5032 if test "$PYTHON" = :; then
5033 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5034 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5035 { (exit 1); exit 1; }; }
5036 else
5039 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5040 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5041 if test "${am_cv_python_version+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5046 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5047 echo "${ECHO_T}$am_cv_python_version" >&6; }
5048 PYTHON_VERSION=$am_cv_python_version
5052 PYTHON_PREFIX='${prefix}'
5054 PYTHON_EXEC_PREFIX='${exec_prefix}'
5058 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5059 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5060 if test "${am_cv_python_platform+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5065 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5066 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5067 PYTHON_PLATFORM=$am_cv_python_platform
5072 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5073 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5074 if test "${am_cv_python_pythondir+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5078 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5080 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5081 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5082 pythondir=$am_cv_python_pythondir
5086 pkgpythondir=\${pythondir}/$PACKAGE
5089 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5090 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5091 if test "${am_cv_python_pyexecdir+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5095 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5097 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5098 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5099 pyexecdir=$am_cv_python_pyexecdir
5103 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5111 FOR=for
5113 IF=if
5115 TEST=test
5117 CMP=cmp
5121 # Check for some includes for the X11 HIDD and the kernel
5124 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5125 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5126 if test "${ac_cv_path_GREP+set}" = set; then
5127 echo $ECHO_N "(cached) $ECHO_C" >&6
5128 else
5129 # Extract the first word of "grep ggrep" to use in msg output
5130 if test -z "$GREP"; then
5131 set dummy grep ggrep; ac_prog_name=$2
5132 if test "${ac_cv_path_GREP+set}" = set; then
5133 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 else
5135 ac_path_GREP_found=false
5136 # Loop through the user's path and test for each of PROGNAME-LIST
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
5142 for ac_prog in grep ggrep; do
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5145 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5146 # Check for GNU ac_path_GREP and select it if it is found.
5147 # Check for GNU $ac_path_GREP
5148 case `"$ac_path_GREP" --version 2>&1` in
5149 *GNU*)
5150 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5152 ac_count=0
5153 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5154 while :
5156 cat "conftest.in" "conftest.in" >"conftest.tmp"
5157 mv "conftest.tmp" "conftest.in"
5158 cp "conftest.in" "conftest.nl"
5159 echo 'GREP' >> "conftest.nl"
5160 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5162 ac_count=`expr $ac_count + 1`
5163 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5164 # Best one so far, save it but keep looking for a better one
5165 ac_cv_path_GREP="$ac_path_GREP"
5166 ac_path_GREP_max=$ac_count
5168 # 10*(2^10) chars as input seems more than enough
5169 test $ac_count -gt 10 && break
5170 done
5171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5172 esac
5175 $ac_path_GREP_found && break 3
5176 done
5177 done
5179 done
5180 IFS=$as_save_IFS
5185 GREP="$ac_cv_path_GREP"
5186 if test -z "$GREP"; then
5187 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5188 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5189 { (exit 1); exit 1; }; }
5192 else
5193 ac_cv_path_GREP=$GREP
5198 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5199 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5200 GREP="$ac_cv_path_GREP"
5203 { echo "$as_me:$LINENO: checking for egrep" >&5
5204 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5205 if test "${ac_cv_path_EGREP+set}" = set; then
5206 echo $ECHO_N "(cached) $ECHO_C" >&6
5207 else
5208 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5209 then ac_cv_path_EGREP="$GREP -E"
5210 else
5211 # Extract the first word of "egrep" to use in msg output
5212 if test -z "$EGREP"; then
5213 set dummy egrep; ac_prog_name=$2
5214 if test "${ac_cv_path_EGREP+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217 ac_path_EGREP_found=false
5218 # Loop through the user's path and test for each of PROGNAME-LIST
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_prog in egrep; do
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5227 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5228 # Check for GNU ac_path_EGREP and select it if it is found.
5229 # Check for GNU $ac_path_EGREP
5230 case `"$ac_path_EGREP" --version 2>&1` in
5231 *GNU*)
5232 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5234 ac_count=0
5235 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5236 while :
5238 cat "conftest.in" "conftest.in" >"conftest.tmp"
5239 mv "conftest.tmp" "conftest.in"
5240 cp "conftest.in" "conftest.nl"
5241 echo 'EGREP' >> "conftest.nl"
5242 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5243 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5244 ac_count=`expr $ac_count + 1`
5245 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5246 # Best one so far, save it but keep looking for a better one
5247 ac_cv_path_EGREP="$ac_path_EGREP"
5248 ac_path_EGREP_max=$ac_count
5250 # 10*(2^10) chars as input seems more than enough
5251 test $ac_count -gt 10 && break
5252 done
5253 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5254 esac
5257 $ac_path_EGREP_found && break 3
5258 done
5259 done
5261 done
5262 IFS=$as_save_IFS
5267 EGREP="$ac_cv_path_EGREP"
5268 if test -z "$EGREP"; then
5269 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5270 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5271 { (exit 1); exit 1; }; }
5274 else
5275 ac_cv_path_EGREP=$EGREP
5281 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5282 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5283 EGREP="$ac_cv_path_EGREP"
5286 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5287 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5288 if test "${ac_cv_header_stdc+set}" = set; then
5289 echo $ECHO_N "(cached) $ECHO_C" >&6
5290 else
5291 cat >conftest.$ac_ext <<_ACEOF
5292 /* confdefs.h. */
5293 _ACEOF
5294 cat confdefs.h >>conftest.$ac_ext
5295 cat >>conftest.$ac_ext <<_ACEOF
5296 /* end confdefs.h. */
5297 #include <stdlib.h>
5298 #include <stdarg.h>
5299 #include <string.h>
5300 #include <float.h>
5303 main ()
5307 return 0;
5309 _ACEOF
5310 rm -f conftest.$ac_objext
5311 if { (ac_try="$ac_compile"
5312 case "(($ac_try" in
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5315 esac
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_compile") 2>conftest.er1
5318 ac_status=$?
5319 grep -v '^ *+' conftest.er1 >conftest.err
5320 rm -f conftest.er1
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } && {
5324 test -z "$ac_c_werror_flag" ||
5325 test ! -s conftest.err
5326 } && test -s conftest.$ac_objext; then
5327 ac_cv_header_stdc=yes
5328 else
5329 echo "$as_me: failed program was:" >&5
5330 sed 's/^/| /' conftest.$ac_ext >&5
5332 ac_cv_header_stdc=no
5335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5337 if test $ac_cv_header_stdc = yes; then
5338 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5339 cat >conftest.$ac_ext <<_ACEOF
5340 /* confdefs.h. */
5341 _ACEOF
5342 cat confdefs.h >>conftest.$ac_ext
5343 cat >>conftest.$ac_ext <<_ACEOF
5344 /* end confdefs.h. */
5345 #include <string.h>
5347 _ACEOF
5348 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5349 $EGREP "memchr" >/dev/null 2>&1; then
5351 else
5352 ac_cv_header_stdc=no
5354 rm -f conftest*
5358 if test $ac_cv_header_stdc = yes; then
5359 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5360 cat >conftest.$ac_ext <<_ACEOF
5361 /* confdefs.h. */
5362 _ACEOF
5363 cat confdefs.h >>conftest.$ac_ext
5364 cat >>conftest.$ac_ext <<_ACEOF
5365 /* end confdefs.h. */
5366 #include <stdlib.h>
5368 _ACEOF
5369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5370 $EGREP "free" >/dev/null 2>&1; then
5372 else
5373 ac_cv_header_stdc=no
5375 rm -f conftest*
5379 if test $ac_cv_header_stdc = yes; then
5380 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5381 if test "$cross_compiling" = yes; then
5383 else
5384 cat >conftest.$ac_ext <<_ACEOF
5385 /* confdefs.h. */
5386 _ACEOF
5387 cat confdefs.h >>conftest.$ac_ext
5388 cat >>conftest.$ac_ext <<_ACEOF
5389 /* end confdefs.h. */
5390 #include <ctype.h>
5391 #include <stdlib.h>
5392 #if ((' ' & 0x0FF) == 0x020)
5393 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5394 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5395 #else
5396 # define ISLOWER(c) \
5397 (('a' <= (c) && (c) <= 'i') \
5398 || ('j' <= (c) && (c) <= 'r') \
5399 || ('s' <= (c) && (c) <= 'z'))
5400 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5401 #endif
5403 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5405 main ()
5407 int i;
5408 for (i = 0; i < 256; i++)
5409 if (XOR (islower (i), ISLOWER (i))
5410 || toupper (i) != TOUPPER (i))
5411 return 2;
5412 return 0;
5414 _ACEOF
5415 rm -f conftest$ac_exeext
5416 if { (ac_try="$ac_link"
5417 case "(($ac_try" in
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5420 esac
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_link") 2>&5
5423 ac_status=$?
5424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5426 { (case "(($ac_try" in
5427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428 *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431 (eval "$ac_try") 2>&5
5432 ac_status=$?
5433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434 (exit $ac_status); }; }; then
5436 else
5437 echo "$as_me: program exited with status $ac_status" >&5
5438 echo "$as_me: failed program was:" >&5
5439 sed 's/^/| /' conftest.$ac_ext >&5
5441 ( exit $ac_status )
5442 ac_cv_header_stdc=no
5444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5450 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5451 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5452 if test $ac_cv_header_stdc = yes; then
5454 cat >>confdefs.h <<\_ACEOF
5455 #define STDC_HEADERS 1
5456 _ACEOF
5460 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5470 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5471 inttypes.h stdint.h unistd.h
5473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5477 echo $ECHO_N "(cached) $ECHO_C" >&6
5478 else
5479 cat >conftest.$ac_ext <<_ACEOF
5480 /* confdefs.h. */
5481 _ACEOF
5482 cat confdefs.h >>conftest.$ac_ext
5483 cat >>conftest.$ac_ext <<_ACEOF
5484 /* end confdefs.h. */
5485 $ac_includes_default
5487 #include <$ac_header>
5488 _ACEOF
5489 rm -f conftest.$ac_objext
5490 if { (ac_try="$ac_compile"
5491 case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494 esac
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_compile") 2>conftest.er1
5497 ac_status=$?
5498 grep -v '^ *+' conftest.er1 >conftest.err
5499 rm -f conftest.er1
5500 cat conftest.err >&5
5501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5502 (exit $ac_status); } && {
5503 test -z "$ac_c_werror_flag" ||
5504 test ! -s conftest.err
5505 } && test -s conftest.$ac_objext; then
5506 eval "$as_ac_Header=yes"
5507 else
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5511 eval "$as_ac_Header=no"
5514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5516 ac_res=`eval echo '${'$as_ac_Header'}'`
5517 { echo "$as_me:$LINENO: result: $ac_res" >&5
5518 echo "${ECHO_T}$ac_res" >&6; }
5519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5520 cat >>confdefs.h <<_ACEOF
5521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5522 _ACEOF
5526 done
5538 for ac_header in sys/ipc.h sys/shm.h \
5539 sys/mmap.h sys/mman.h sysexits.h \
5540 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5548 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 ac_res=`eval echo '${'$as_ac_Header'}'`
5551 { echo "$as_me:$LINENO: result: $ac_res" >&5
5552 echo "${ECHO_T}$ac_res" >&6; }
5553 else
5554 # Is the header compilable?
5555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h. */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 $ac_includes_default
5564 #include <$ac_header>
5565 _ACEOF
5566 rm -f conftest.$ac_objext
5567 if { (ac_try="$ac_compile"
5568 case "(($ac_try" in
5569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5571 esac
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5574 ac_status=$?
5575 grep -v '^ *+' conftest.er1 >conftest.err
5576 rm -f conftest.er1
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && {
5580 test -z "$ac_c_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.$ac_objext; then
5583 ac_header_compiler=yes
5584 else
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5588 ac_header_compiler=no
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5593 echo "${ECHO_T}$ac_header_compiler" >&6; }
5595 # Is the header present?
5596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5598 cat >conftest.$ac_ext <<_ACEOF
5599 /* confdefs.h. */
5600 _ACEOF
5601 cat confdefs.h >>conftest.$ac_ext
5602 cat >>conftest.$ac_ext <<_ACEOF
5603 /* end confdefs.h. */
5604 #include <$ac_header>
5605 _ACEOF
5606 if { (ac_try="$ac_cpp conftest.$ac_ext"
5607 case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610 esac
5611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5613 ac_status=$?
5614 grep -v '^ *+' conftest.er1 >conftest.err
5615 rm -f conftest.er1
5616 cat conftest.err >&5
5617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5618 (exit $ac_status); } >/dev/null && {
5619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5620 test ! -s conftest.err
5621 }; then
5622 ac_header_preproc=yes
5623 else
5624 echo "$as_me: failed program was:" >&5
5625 sed 's/^/| /' conftest.$ac_ext >&5
5627 ac_header_preproc=no
5630 rm -f conftest.err conftest.$ac_ext
5631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5632 echo "${ECHO_T}$ac_header_preproc" >&6; }
5634 # So? What about this header?
5635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5636 yes:no: )
5637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5641 ac_header_preproc=yes
5643 no:yes:* )
5644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5658 esac
5659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664 eval "$as_ac_Header=\$ac_header_preproc"
5666 ac_res=`eval echo '${'$as_ac_Header'}'`
5667 { echo "$as_me:$LINENO: result: $ac_res" >&5
5668 echo "${ECHO_T}$ac_res" >&6; }
5671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5672 cat >>confdefs.h <<_ACEOF
5673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5674 _ACEOF
5678 done
5682 for ac_header in sys/mount.h
5684 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5688 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 else
5690 cat >conftest.$ac_ext <<_ACEOF
5691 /* confdefs.h. */
5692 _ACEOF
5693 cat confdefs.h >>conftest.$ac_ext
5694 cat >>conftest.$ac_ext <<_ACEOF
5695 /* end confdefs.h. */
5696 #include <sys/param.h>
5698 #include <$ac_header>
5699 _ACEOF
5700 rm -f conftest.$ac_objext
5701 if { (ac_try="$ac_compile"
5702 case "(($ac_try" in
5703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5704 *) ac_try_echo=$ac_try;;
5705 esac
5706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5707 (eval "$ac_compile") 2>conftest.er1
5708 ac_status=$?
5709 grep -v '^ *+' conftest.er1 >conftest.err
5710 rm -f conftest.er1
5711 cat conftest.err >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); } && {
5714 test -z "$ac_c_werror_flag" ||
5715 test ! -s conftest.err
5716 } && test -s conftest.$ac_objext; then
5717 eval "$as_ac_Header=yes"
5718 else
5719 echo "$as_me: failed program was:" >&5
5720 sed 's/^/| /' conftest.$ac_ext >&5
5722 eval "$as_ac_Header=no"
5725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5727 ac_res=`eval echo '${'$as_ac_Header'}'`
5728 { echo "$as_me:$LINENO: result: $ac_res" >&5
5729 echo "${ECHO_T}$ac_res" >&6; }
5730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5731 cat >>confdefs.h <<_ACEOF
5732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5733 _ACEOF
5737 done
5745 ac_header_dirent=no
5746 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5747 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5748 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5749 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5751 echo $ECHO_N "(cached) $ECHO_C" >&6
5752 else
5753 cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h. */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #include <sys/types.h>
5760 #include <$ac_hdr>
5763 main ()
5765 if ((DIR *) 0)
5766 return 0;
5768 return 0;
5770 _ACEOF
5771 rm -f conftest.$ac_objext
5772 if { (ac_try="$ac_compile"
5773 case "(($ac_try" in
5774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5775 *) ac_try_echo=$ac_try;;
5776 esac
5777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5778 (eval "$ac_compile") 2>conftest.er1
5779 ac_status=$?
5780 grep -v '^ *+' conftest.er1 >conftest.err
5781 rm -f conftest.er1
5782 cat conftest.err >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); } && {
5785 test -z "$ac_c_werror_flag" ||
5786 test ! -s conftest.err
5787 } && test -s conftest.$ac_objext; then
5788 eval "$as_ac_Header=yes"
5789 else
5790 echo "$as_me: failed program was:" >&5
5791 sed 's/^/| /' conftest.$ac_ext >&5
5793 eval "$as_ac_Header=no"
5796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5798 ac_res=`eval echo '${'$as_ac_Header'}'`
5799 { echo "$as_me:$LINENO: result: $ac_res" >&5
5800 echo "${ECHO_T}$ac_res" >&6; }
5801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5802 cat >>confdefs.h <<_ACEOF
5803 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5804 _ACEOF
5806 ac_header_dirent=$ac_hdr; break
5809 done
5810 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5811 if test $ac_header_dirent = dirent.h; then
5812 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5813 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5814 if test "${ac_cv_search_opendir+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817 ac_func_search_save_LIBS=$LIBS
5818 cat >conftest.$ac_ext <<_ACEOF
5819 /* confdefs.h. */
5820 _ACEOF
5821 cat confdefs.h >>conftest.$ac_ext
5822 cat >>conftest.$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5825 /* Override any GCC internal prototype to avoid an error.
5826 Use char because int might match the return type of a GCC
5827 builtin and then its argument prototype would still apply. */
5828 #ifdef __cplusplus
5829 extern "C"
5830 #endif
5831 char opendir ();
5833 main ()
5835 return opendir ();
5837 return 0;
5839 _ACEOF
5840 for ac_lib in '' dir; do
5841 if test -z "$ac_lib"; then
5842 ac_res="none required"
5843 else
5844 ac_res=-l$ac_lib
5845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5847 rm -f conftest.$ac_objext conftest$ac_exeext
5848 if { (ac_try="$ac_link"
5849 case "(($ac_try" in
5850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5851 *) ac_try_echo=$ac_try;;
5852 esac
5853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5854 (eval "$ac_link") 2>conftest.er1
5855 ac_status=$?
5856 grep -v '^ *+' conftest.er1 >conftest.err
5857 rm -f conftest.er1
5858 cat conftest.err >&5
5859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5860 (exit $ac_status); } && {
5861 test -z "$ac_c_werror_flag" ||
5862 test ! -s conftest.err
5863 } && test -s conftest$ac_exeext &&
5864 $as_test_x conftest$ac_exeext; then
5865 ac_cv_search_opendir=$ac_res
5866 else
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5874 conftest$ac_exeext
5875 if test "${ac_cv_search_opendir+set}" = set; then
5876 break
5878 done
5879 if test "${ac_cv_search_opendir+set}" = set; then
5881 else
5882 ac_cv_search_opendir=no
5884 rm conftest.$ac_ext
5885 LIBS=$ac_func_search_save_LIBS
5887 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5888 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5889 ac_res=$ac_cv_search_opendir
5890 if test "$ac_res" != no; then
5891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5895 else
5896 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5897 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5898 if test "${ac_cv_search_opendir+set}" = set; then
5899 echo $ECHO_N "(cached) $ECHO_C" >&6
5900 else
5901 ac_func_search_save_LIBS=$LIBS
5902 cat >conftest.$ac_ext <<_ACEOF
5903 /* confdefs.h. */
5904 _ACEOF
5905 cat confdefs.h >>conftest.$ac_ext
5906 cat >>conftest.$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5909 /* Override any GCC internal prototype to avoid an error.
5910 Use char because int might match the return type of a GCC
5911 builtin and then its argument prototype would still apply. */
5912 #ifdef __cplusplus
5913 extern "C"
5914 #endif
5915 char opendir ();
5917 main ()
5919 return opendir ();
5921 return 0;
5923 _ACEOF
5924 for ac_lib in '' x; do
5925 if test -z "$ac_lib"; then
5926 ac_res="none required"
5927 else
5928 ac_res=-l$ac_lib
5929 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5931 rm -f conftest.$ac_objext conftest$ac_exeext
5932 if { (ac_try="$ac_link"
5933 case "(($ac_try" in
5934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5935 *) ac_try_echo=$ac_try;;
5936 esac
5937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5938 (eval "$ac_link") 2>conftest.er1
5939 ac_status=$?
5940 grep -v '^ *+' conftest.er1 >conftest.err
5941 rm -f conftest.er1
5942 cat conftest.err >&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); } && {
5945 test -z "$ac_c_werror_flag" ||
5946 test ! -s conftest.err
5947 } && test -s conftest$ac_exeext &&
5948 $as_test_x conftest$ac_exeext; then
5949 ac_cv_search_opendir=$ac_res
5950 else
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5958 conftest$ac_exeext
5959 if test "${ac_cv_search_opendir+set}" = set; then
5960 break
5962 done
5963 if test "${ac_cv_search_opendir+set}" = set; then
5965 else
5966 ac_cv_search_opendir=no
5968 rm conftest.$ac_ext
5969 LIBS=$ac_func_search_save_LIBS
5971 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5972 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5973 ac_res=$ac_cv_search_opendir
5974 if test "$ac_res" != no; then
5975 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5981 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5982 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5983 if test "${ac_cv_header_stat_broken+set}" = set; then
5984 echo $ECHO_N "(cached) $ECHO_C" >&6
5985 else
5986 cat >conftest.$ac_ext <<_ACEOF
5987 /* confdefs.h. */
5988 _ACEOF
5989 cat confdefs.h >>conftest.$ac_ext
5990 cat >>conftest.$ac_ext <<_ACEOF
5991 /* end confdefs.h. */
5992 #include <sys/types.h>
5993 #include <sys/stat.h>
5995 #if defined S_ISBLK && defined S_IFDIR
5996 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5997 #endif
5999 #if defined S_ISBLK && defined S_IFCHR
6000 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6001 #endif
6003 #if defined S_ISLNK && defined S_IFREG
6004 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6005 #endif
6007 #if defined S_ISSOCK && defined S_IFREG
6008 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6009 #endif
6011 _ACEOF
6012 rm -f conftest.$ac_objext
6013 if { (ac_try="$ac_compile"
6014 case "(($ac_try" in
6015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6016 *) ac_try_echo=$ac_try;;
6017 esac
6018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6019 (eval "$ac_compile") 2>conftest.er1
6020 ac_status=$?
6021 grep -v '^ *+' conftest.er1 >conftest.err
6022 rm -f conftest.er1
6023 cat conftest.err >&5
6024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6025 (exit $ac_status); } && {
6026 test -z "$ac_c_werror_flag" ||
6027 test ! -s conftest.err
6028 } && test -s conftest.$ac_objext; then
6029 ac_cv_header_stat_broken=no
6030 else
6031 echo "$as_me: failed program was:" >&5
6032 sed 's/^/| /' conftest.$ac_ext >&5
6034 ac_cv_header_stat_broken=yes
6037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6039 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6040 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6041 if test $ac_cv_header_stat_broken = yes; then
6043 cat >>confdefs.h <<\_ACEOF
6044 #define STAT_MACROS_BROKEN 1
6045 _ACEOF
6049 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6050 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6051 if test "${ac_cv_header_stdc+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054 cat >conftest.$ac_ext <<_ACEOF
6055 /* confdefs.h. */
6056 _ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6060 #include <stdlib.h>
6061 #include <stdarg.h>
6062 #include <string.h>
6063 #include <float.h>
6066 main ()
6070 return 0;
6072 _ACEOF
6073 rm -f conftest.$ac_objext
6074 if { (ac_try="$ac_compile"
6075 case "(($ac_try" in
6076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6077 *) ac_try_echo=$ac_try;;
6078 esac
6079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6080 (eval "$ac_compile") 2>conftest.er1
6081 ac_status=$?
6082 grep -v '^ *+' conftest.er1 >conftest.err
6083 rm -f conftest.er1
6084 cat conftest.err >&5
6085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6086 (exit $ac_status); } && {
6087 test -z "$ac_c_werror_flag" ||
6088 test ! -s conftest.err
6089 } && test -s conftest.$ac_objext; then
6090 ac_cv_header_stdc=yes
6091 else
6092 echo "$as_me: failed program was:" >&5
6093 sed 's/^/| /' conftest.$ac_ext >&5
6095 ac_cv_header_stdc=no
6098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6100 if test $ac_cv_header_stdc = yes; then
6101 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 #include <string.h>
6110 _ACEOF
6111 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6112 $EGREP "memchr" >/dev/null 2>&1; then
6114 else
6115 ac_cv_header_stdc=no
6117 rm -f conftest*
6121 if test $ac_cv_header_stdc = yes; then
6122 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6123 cat >conftest.$ac_ext <<_ACEOF
6124 /* confdefs.h. */
6125 _ACEOF
6126 cat confdefs.h >>conftest.$ac_ext
6127 cat >>conftest.$ac_ext <<_ACEOF
6128 /* end confdefs.h. */
6129 #include <stdlib.h>
6131 _ACEOF
6132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6133 $EGREP "free" >/dev/null 2>&1; then
6135 else
6136 ac_cv_header_stdc=no
6138 rm -f conftest*
6142 if test $ac_cv_header_stdc = yes; then
6143 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6144 if test "$cross_compiling" = yes; then
6146 else
6147 cat >conftest.$ac_ext <<_ACEOF
6148 /* confdefs.h. */
6149 _ACEOF
6150 cat confdefs.h >>conftest.$ac_ext
6151 cat >>conftest.$ac_ext <<_ACEOF
6152 /* end confdefs.h. */
6153 #include <ctype.h>
6154 #include <stdlib.h>
6155 #if ((' ' & 0x0FF) == 0x020)
6156 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6157 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6158 #else
6159 # define ISLOWER(c) \
6160 (('a' <= (c) && (c) <= 'i') \
6161 || ('j' <= (c) && (c) <= 'r') \
6162 || ('s' <= (c) && (c) <= 'z'))
6163 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6164 #endif
6166 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6168 main ()
6170 int i;
6171 for (i = 0; i < 256; i++)
6172 if (XOR (islower (i), ISLOWER (i))
6173 || toupper (i) != TOUPPER (i))
6174 return 2;
6175 return 0;
6177 _ACEOF
6178 rm -f conftest$ac_exeext
6179 if { (ac_try="$ac_link"
6180 case "(($ac_try" in
6181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6182 *) ac_try_echo=$ac_try;;
6183 esac
6184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6185 (eval "$ac_link") 2>&5
6186 ac_status=$?
6187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6188 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6189 { (case "(($ac_try" in
6190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6191 *) ac_try_echo=$ac_try;;
6192 esac
6193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6194 (eval "$ac_try") 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6199 else
6200 echo "$as_me: program exited with status $ac_status" >&5
6201 echo "$as_me: failed program was:" >&5
6202 sed 's/^/| /' conftest.$ac_ext >&5
6204 ( exit $ac_status )
6205 ac_cv_header_stdc=no
6207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6213 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6214 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6215 if test $ac_cv_header_stdc = yes; then
6217 cat >>confdefs.h <<\_ACEOF
6218 #define STDC_HEADERS 1
6219 _ACEOF
6223 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6224 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6225 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6226 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 else
6228 cat >conftest.$ac_ext <<_ACEOF
6229 /* confdefs.h. */
6230 _ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 #include <sys/types.h>
6235 #include <sys/wait.h>
6236 #ifndef WEXITSTATUS
6237 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6238 #endif
6239 #ifndef WIFEXITED
6240 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6241 #endif
6244 main ()
6246 int s;
6247 wait (&s);
6248 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6250 return 0;
6252 _ACEOF
6253 rm -f conftest.$ac_objext
6254 if { (ac_try="$ac_compile"
6255 case "(($ac_try" in
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6258 esac
6259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6260 (eval "$ac_compile") 2>conftest.er1
6261 ac_status=$?
6262 grep -v '^ *+' conftest.er1 >conftest.err
6263 rm -f conftest.er1
6264 cat conftest.err >&5
6265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6266 (exit $ac_status); } && {
6267 test -z "$ac_c_werror_flag" ||
6268 test ! -s conftest.err
6269 } && test -s conftest.$ac_objext; then
6270 ac_cv_header_sys_wait_h=yes
6271 else
6272 echo "$as_me: failed program was:" >&5
6273 sed 's/^/| /' conftest.$ac_ext >&5
6275 ac_cv_header_sys_wait_h=no
6278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6280 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6281 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6282 if test $ac_cv_header_sys_wait_h = yes; then
6284 cat >>confdefs.h <<\_ACEOF
6285 #define HAVE_SYS_WAIT_H 1
6286 _ACEOF
6290 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6291 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6292 if test "${ac_cv_header_time+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295 cat >conftest.$ac_ext <<_ACEOF
6296 /* confdefs.h. */
6297 _ACEOF
6298 cat confdefs.h >>conftest.$ac_ext
6299 cat >>conftest.$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 #include <sys/types.h>
6302 #include <sys/time.h>
6303 #include <time.h>
6306 main ()
6308 if ((struct tm *) 0)
6309 return 0;
6311 return 0;
6313 _ACEOF
6314 rm -f conftest.$ac_objext
6315 if { (ac_try="$ac_compile"
6316 case "(($ac_try" in
6317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6318 *) ac_try_echo=$ac_try;;
6319 esac
6320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6321 (eval "$ac_compile") 2>conftest.er1
6322 ac_status=$?
6323 grep -v '^ *+' conftest.er1 >conftest.err
6324 rm -f conftest.er1
6325 cat conftest.err >&5
6326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6327 (exit $ac_status); } && {
6328 test -z "$ac_c_werror_flag" ||
6329 test ! -s conftest.err
6330 } && test -s conftest.$ac_objext; then
6331 ac_cv_header_time=yes
6332 else
6333 echo "$as_me: failed program was:" >&5
6334 sed 's/^/| /' conftest.$ac_ext >&5
6336 ac_cv_header_time=no
6339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6341 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6342 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6343 if test $ac_cv_header_time = yes; then
6345 cat >>confdefs.h <<\_ACEOF
6346 #define TIME_WITH_SYS_TIME 1
6347 _ACEOF
6351 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6352 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6353 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6354 echo $ECHO_N "(cached) $ECHO_C" >&6
6355 else
6356 cat >conftest.$ac_ext <<_ACEOF
6357 /* confdefs.h. */
6358 _ACEOF
6359 cat confdefs.h >>conftest.$ac_ext
6360 cat >>conftest.$ac_ext <<_ACEOF
6361 /* end confdefs.h. */
6362 $ac_includes_default
6364 main ()
6366 static struct stat ac_aggr;
6367 if (ac_aggr.st_blksize)
6368 return 0;
6370 return 0;
6372 _ACEOF
6373 rm -f conftest.$ac_objext
6374 if { (ac_try="$ac_compile"
6375 case "(($ac_try" in
6376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6378 esac
6379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380 (eval "$ac_compile") 2>conftest.er1
6381 ac_status=$?
6382 grep -v '^ *+' conftest.er1 >conftest.err
6383 rm -f conftest.er1
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && {
6387 test -z "$ac_c_werror_flag" ||
6388 test ! -s conftest.err
6389 } && test -s conftest.$ac_objext; then
6390 ac_cv_member_struct_stat_st_blksize=yes
6391 else
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 cat >conftest.$ac_ext <<_ACEOF
6396 /* confdefs.h. */
6397 _ACEOF
6398 cat confdefs.h >>conftest.$ac_ext
6399 cat >>conftest.$ac_ext <<_ACEOF
6400 /* end confdefs.h. */
6401 $ac_includes_default
6403 main ()
6405 static struct stat ac_aggr;
6406 if (sizeof ac_aggr.st_blksize)
6407 return 0;
6409 return 0;
6411 _ACEOF
6412 rm -f conftest.$ac_objext
6413 if { (ac_try="$ac_compile"
6414 case "(($ac_try" in
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6417 esac
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_compile") 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } && {
6426 test -z "$ac_c_werror_flag" ||
6427 test ! -s conftest.err
6428 } && test -s conftest.$ac_objext; then
6429 ac_cv_member_struct_stat_st_blksize=yes
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6434 ac_cv_member_struct_stat_st_blksize=no
6437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6443 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6444 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6446 cat >>confdefs.h <<_ACEOF
6447 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6448 _ACEOF
6451 cat >>confdefs.h <<\_ACEOF
6452 #define HAVE_ST_BLKSIZE 1
6453 _ACEOF
6458 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6459 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6460 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462 else
6463 cat >conftest.$ac_ext <<_ACEOF
6464 /* confdefs.h. */
6465 _ACEOF
6466 cat confdefs.h >>conftest.$ac_ext
6467 cat >>conftest.$ac_ext <<_ACEOF
6468 /* end confdefs.h. */
6469 $ac_includes_default
6471 main ()
6473 static struct stat ac_aggr;
6474 if (ac_aggr.st_blocks)
6475 return 0;
6477 return 0;
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6482 case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485 esac
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 ac_cv_member_struct_stat_st_blocks=yes
6498 else
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6502 cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h. */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h. */
6508 $ac_includes_default
6510 main ()
6512 static struct stat ac_aggr;
6513 if (sizeof ac_aggr.st_blocks)
6514 return 0;
6516 return 0;
6518 _ACEOF
6519 rm -f conftest.$ac_objext
6520 if { (ac_try="$ac_compile"
6521 case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524 esac
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_compile") 2>conftest.er1
6527 ac_status=$?
6528 grep -v '^ *+' conftest.er1 >conftest.err
6529 rm -f conftest.er1
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } && {
6533 test -z "$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 } && test -s conftest.$ac_objext; then
6536 ac_cv_member_struct_stat_st_blocks=yes
6537 else
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6541 ac_cv_member_struct_stat_st_blocks=no
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6549 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6550 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6551 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6553 cat >>confdefs.h <<_ACEOF
6554 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6555 _ACEOF
6558 cat >>confdefs.h <<\_ACEOF
6559 #define HAVE_ST_BLOCKS 1
6560 _ACEOF
6562 else
6563 case " $LIBOBJS " in
6564 *" fileblocks.$ac_objext "* ) ;;
6565 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6567 esac
6572 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6573 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6574 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6575 echo $ECHO_N "(cached) $ECHO_C" >&6
6576 else
6577 cat >conftest.$ac_ext <<_ACEOF
6578 /* confdefs.h. */
6579 _ACEOF
6580 cat confdefs.h >>conftest.$ac_ext
6581 cat >>conftest.$ac_ext <<_ACEOF
6582 /* end confdefs.h. */
6583 $ac_includes_default
6585 main ()
6587 static struct stat ac_aggr;
6588 if (ac_aggr.st_rdev)
6589 return 0;
6591 return 0;
6593 _ACEOF
6594 rm -f conftest.$ac_objext
6595 if { (ac_try="$ac_compile"
6596 case "(($ac_try" in
6597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6598 *) ac_try_echo=$ac_try;;
6599 esac
6600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6601 (eval "$ac_compile") 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } && {
6608 test -z "$ac_c_werror_flag" ||
6609 test ! -s conftest.err
6610 } && test -s conftest.$ac_objext; then
6611 ac_cv_member_struct_stat_st_rdev=yes
6612 else
6613 echo "$as_me: failed program was:" >&5
6614 sed 's/^/| /' conftest.$ac_ext >&5
6616 cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h. */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6622 $ac_includes_default
6624 main ()
6626 static struct stat ac_aggr;
6627 if (sizeof ac_aggr.st_rdev)
6628 return 0;
6630 return 0;
6632 _ACEOF
6633 rm -f conftest.$ac_objext
6634 if { (ac_try="$ac_compile"
6635 case "(($ac_try" in
6636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6637 *) ac_try_echo=$ac_try;;
6638 esac
6639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6640 (eval "$ac_compile") 2>conftest.er1
6641 ac_status=$?
6642 grep -v '^ *+' conftest.er1 >conftest.err
6643 rm -f conftest.er1
6644 cat conftest.err >&5
6645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6646 (exit $ac_status); } && {
6647 test -z "$ac_c_werror_flag" ||
6648 test ! -s conftest.err
6649 } && test -s conftest.$ac_objext; then
6650 ac_cv_member_struct_stat_st_rdev=yes
6651 else
6652 echo "$as_me: failed program was:" >&5
6653 sed 's/^/| /' conftest.$ac_ext >&5
6655 ac_cv_member_struct_stat_st_rdev=no
6658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6664 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6665 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6667 cat >>confdefs.h <<_ACEOF
6668 #define HAVE_STRUCT_STAT_ST_RDEV 1
6669 _ACEOF
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_ST_RDEV 1
6674 _ACEOF
6679 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6680 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6681 if test "${ac_cv_struct_tm+set}" = set; then
6682 echo $ECHO_N "(cached) $ECHO_C" >&6
6683 else
6684 cat >conftest.$ac_ext <<_ACEOF
6685 /* confdefs.h. */
6686 _ACEOF
6687 cat confdefs.h >>conftest.$ac_ext
6688 cat >>conftest.$ac_ext <<_ACEOF
6689 /* end confdefs.h. */
6690 #include <sys/types.h>
6691 #include <time.h>
6694 main ()
6696 struct tm tm;
6697 int *p = &tm.tm_sec;
6698 return !p;
6700 return 0;
6702 _ACEOF
6703 rm -f conftest.$ac_objext
6704 if { (ac_try="$ac_compile"
6705 case "(($ac_try" in
6706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6707 *) ac_try_echo=$ac_try;;
6708 esac
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710 (eval "$ac_compile") 2>conftest.er1
6711 ac_status=$?
6712 grep -v '^ *+' conftest.er1 >conftest.err
6713 rm -f conftest.er1
6714 cat conftest.err >&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } && {
6717 test -z "$ac_c_werror_flag" ||
6718 test ! -s conftest.err
6719 } && test -s conftest.$ac_objext; then
6720 ac_cv_struct_tm=time.h
6721 else
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.$ac_ext >&5
6725 ac_cv_struct_tm=sys/time.h
6728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6731 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6732 if test $ac_cv_struct_tm = sys/time.h; then
6734 cat >>confdefs.h <<\_ACEOF
6735 #define TM_IN_SYS_TIME 1
6736 _ACEOF
6740 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6741 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6742 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6743 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 else
6745 cat >conftest.$ac_ext <<_ACEOF
6746 /* confdefs.h. */
6747 _ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6751 #include <sys/types.h>
6752 #include <$ac_cv_struct_tm>
6756 main ()
6758 static struct tm ac_aggr;
6759 if (ac_aggr.tm_zone)
6760 return 0;
6762 return 0;
6764 _ACEOF
6765 rm -f conftest.$ac_objext
6766 if { (ac_try="$ac_compile"
6767 case "(($ac_try" in
6768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6769 *) ac_try_echo=$ac_try;;
6770 esac
6771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6772 (eval "$ac_compile") 2>conftest.er1
6773 ac_status=$?
6774 grep -v '^ *+' conftest.er1 >conftest.err
6775 rm -f conftest.er1
6776 cat conftest.err >&5
6777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6778 (exit $ac_status); } && {
6779 test -z "$ac_c_werror_flag" ||
6780 test ! -s conftest.err
6781 } && test -s conftest.$ac_objext; then
6782 ac_cv_member_struct_tm_tm_zone=yes
6783 else
6784 echo "$as_me: failed program was:" >&5
6785 sed 's/^/| /' conftest.$ac_ext >&5
6787 cat >conftest.$ac_ext <<_ACEOF
6788 /* confdefs.h. */
6789 _ACEOF
6790 cat confdefs.h >>conftest.$ac_ext
6791 cat >>conftest.$ac_ext <<_ACEOF
6792 /* end confdefs.h. */
6793 #include <sys/types.h>
6794 #include <$ac_cv_struct_tm>
6798 main ()
6800 static struct tm ac_aggr;
6801 if (sizeof ac_aggr.tm_zone)
6802 return 0;
6804 return 0;
6806 _ACEOF
6807 rm -f conftest.$ac_objext
6808 if { (ac_try="$ac_compile"
6809 case "(($ac_try" in
6810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6811 *) ac_try_echo=$ac_try;;
6812 esac
6813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6814 (eval "$ac_compile") 2>conftest.er1
6815 ac_status=$?
6816 grep -v '^ *+' conftest.er1 >conftest.err
6817 rm -f conftest.er1
6818 cat conftest.err >&5
6819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820 (exit $ac_status); } && {
6821 test -z "$ac_c_werror_flag" ||
6822 test ! -s conftest.err
6823 } && test -s conftest.$ac_objext; then
6824 ac_cv_member_struct_tm_tm_zone=yes
6825 else
6826 echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6829 ac_cv_member_struct_tm_tm_zone=no
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6837 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6838 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6839 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6841 cat >>confdefs.h <<_ACEOF
6842 #define HAVE_STRUCT_TM_TM_ZONE 1
6843 _ACEOF
6848 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6850 cat >>confdefs.h <<\_ACEOF
6851 #define HAVE_TM_ZONE 1
6852 _ACEOF
6854 else
6855 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6856 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6857 if test "${ac_cv_have_decl_tzname+set}" = set; then
6858 echo $ECHO_N "(cached) $ECHO_C" >&6
6859 else
6860 cat >conftest.$ac_ext <<_ACEOF
6861 /* confdefs.h. */
6862 _ACEOF
6863 cat confdefs.h >>conftest.$ac_ext
6864 cat >>conftest.$ac_ext <<_ACEOF
6865 /* end confdefs.h. */
6866 #include <time.h>
6869 main ()
6871 #ifndef tzname
6872 (void) tzname;
6873 #endif
6876 return 0;
6878 _ACEOF
6879 rm -f conftest.$ac_objext
6880 if { (ac_try="$ac_compile"
6881 case "(($ac_try" in
6882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6883 *) ac_try_echo=$ac_try;;
6884 esac
6885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6886 (eval "$ac_compile") 2>conftest.er1
6887 ac_status=$?
6888 grep -v '^ *+' conftest.er1 >conftest.err
6889 rm -f conftest.er1
6890 cat conftest.err >&5
6891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6892 (exit $ac_status); } && {
6893 test -z "$ac_c_werror_flag" ||
6894 test ! -s conftest.err
6895 } && test -s conftest.$ac_objext; then
6896 ac_cv_have_decl_tzname=yes
6897 else
6898 echo "$as_me: failed program was:" >&5
6899 sed 's/^/| /' conftest.$ac_ext >&5
6901 ac_cv_have_decl_tzname=no
6904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6906 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6907 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6908 if test $ac_cv_have_decl_tzname = yes; then
6910 cat >>confdefs.h <<_ACEOF
6911 #define HAVE_DECL_TZNAME 1
6912 _ACEOF
6915 else
6916 cat >>confdefs.h <<_ACEOF
6917 #define HAVE_DECL_TZNAME 0
6918 _ACEOF
6924 { echo "$as_me:$LINENO: checking for tzname" >&5
6925 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6926 if test "${ac_cv_var_tzname+set}" = set; then
6927 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929 cat >conftest.$ac_ext <<_ACEOF
6930 /* confdefs.h. */
6931 _ACEOF
6932 cat confdefs.h >>conftest.$ac_ext
6933 cat >>conftest.$ac_ext <<_ACEOF
6934 /* end confdefs.h. */
6935 #include <time.h>
6936 #if !HAVE_DECL_TZNAME
6937 extern char *tzname[];
6938 #endif
6941 main ()
6943 return tzname[0][0];
6945 return 0;
6947 _ACEOF
6948 rm -f conftest.$ac_objext conftest$ac_exeext
6949 if { (ac_try="$ac_link"
6950 case "(($ac_try" in
6951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6952 *) ac_try_echo=$ac_try;;
6953 esac
6954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6955 (eval "$ac_link") 2>conftest.er1
6956 ac_status=$?
6957 grep -v '^ *+' conftest.er1 >conftest.err
6958 rm -f conftest.er1
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } && {
6962 test -z "$ac_c_werror_flag" ||
6963 test ! -s conftest.err
6964 } && test -s conftest$ac_exeext &&
6965 $as_test_x conftest$ac_exeext; then
6966 ac_cv_var_tzname=yes
6967 else
6968 echo "$as_me: failed program was:" >&5
6969 sed 's/^/| /' conftest.$ac_ext >&5
6971 ac_cv_var_tzname=no
6974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6975 conftest$ac_exeext conftest.$ac_ext
6977 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6978 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
6979 if test $ac_cv_var_tzname = yes; then
6981 cat >>confdefs.h <<\_ACEOF
6982 #define HAVE_TZNAME 1
6983 _ACEOF
6988 { echo "$as_me:$LINENO: checking for off_t" >&5
6989 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6990 if test "${ac_cv_type_off_t+set}" = set; then
6991 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993 cat >conftest.$ac_ext <<_ACEOF
6994 /* confdefs.h. */
6995 _ACEOF
6996 cat confdefs.h >>conftest.$ac_ext
6997 cat >>conftest.$ac_ext <<_ACEOF
6998 /* end confdefs.h. */
6999 $ac_includes_default
7000 typedef off_t ac__type_new_;
7002 main ()
7004 if ((ac__type_new_ *) 0)
7005 return 0;
7006 if (sizeof (ac__type_new_))
7007 return 0;
7009 return 0;
7011 _ACEOF
7012 rm -f conftest.$ac_objext
7013 if { (ac_try="$ac_compile"
7014 case "(($ac_try" in
7015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7017 esac
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_compile") 2>conftest.er1
7020 ac_status=$?
7021 grep -v '^ *+' conftest.er1 >conftest.err
7022 rm -f conftest.er1
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } && {
7026 test -z "$ac_c_werror_flag" ||
7027 test ! -s conftest.err
7028 } && test -s conftest.$ac_objext; then
7029 ac_cv_type_off_t=yes
7030 else
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7034 ac_cv_type_off_t=no
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7040 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7041 if test $ac_cv_type_off_t = yes; then
7043 else
7045 cat >>confdefs.h <<_ACEOF
7046 #define off_t long int
7047 _ACEOF
7051 { echo "$as_me:$LINENO: checking for pid_t" >&5
7052 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7053 if test "${ac_cv_type_pid_t+set}" = set; then
7054 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 else
7056 cat >conftest.$ac_ext <<_ACEOF
7057 /* confdefs.h. */
7058 _ACEOF
7059 cat confdefs.h >>conftest.$ac_ext
7060 cat >>conftest.$ac_ext <<_ACEOF
7061 /* end confdefs.h. */
7062 $ac_includes_default
7063 typedef pid_t ac__type_new_;
7065 main ()
7067 if ((ac__type_new_ *) 0)
7068 return 0;
7069 if (sizeof (ac__type_new_))
7070 return 0;
7072 return 0;
7074 _ACEOF
7075 rm -f conftest.$ac_objext
7076 if { (ac_try="$ac_compile"
7077 case "(($ac_try" in
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7080 esac
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_compile") 2>conftest.er1
7083 ac_status=$?
7084 grep -v '^ *+' conftest.er1 >conftest.err
7085 rm -f conftest.er1
7086 cat conftest.err >&5
7087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7088 (exit $ac_status); } && {
7089 test -z "$ac_c_werror_flag" ||
7090 test ! -s conftest.err
7091 } && test -s conftest.$ac_objext; then
7092 ac_cv_type_pid_t=yes
7093 else
7094 echo "$as_me: failed program was:" >&5
7095 sed 's/^/| /' conftest.$ac_ext >&5
7097 ac_cv_type_pid_t=no
7100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7103 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7104 if test $ac_cv_type_pid_t = yes; then
7106 else
7108 cat >>confdefs.h <<_ACEOF
7109 #define pid_t int
7110 _ACEOF
7114 { echo "$as_me:$LINENO: checking for size_t" >&5
7115 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7116 if test "${ac_cv_type_size_t+set}" = set; then
7117 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 else
7119 cat >conftest.$ac_ext <<_ACEOF
7120 /* confdefs.h. */
7121 _ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7125 $ac_includes_default
7126 typedef size_t ac__type_new_;
7128 main ()
7130 if ((ac__type_new_ *) 0)
7131 return 0;
7132 if (sizeof (ac__type_new_))
7133 return 0;
7135 return 0;
7137 _ACEOF
7138 rm -f conftest.$ac_objext
7139 if { (ac_try="$ac_compile"
7140 case "(($ac_try" in
7141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7142 *) ac_try_echo=$ac_try;;
7143 esac
7144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7145 (eval "$ac_compile") 2>conftest.er1
7146 ac_status=$?
7147 grep -v '^ *+' conftest.er1 >conftest.err
7148 rm -f conftest.er1
7149 cat conftest.err >&5
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); } && {
7152 test -z "$ac_c_werror_flag" ||
7153 test ! -s conftest.err
7154 } && test -s conftest.$ac_objext; then
7155 ac_cv_type_size_t=yes
7156 else
7157 echo "$as_me: failed program was:" >&5
7158 sed 's/^/| /' conftest.$ac_ext >&5
7160 ac_cv_type_size_t=no
7163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7165 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7166 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7167 if test $ac_cv_type_size_t = yes; then
7169 else
7171 cat >>confdefs.h <<_ACEOF
7172 #define size_t unsigned int
7173 _ACEOF
7177 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7178 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7179 if test "${ac_cv_type_uid_t+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7181 else
7182 cat >conftest.$ac_ext <<_ACEOF
7183 /* confdefs.h. */
7184 _ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7188 #include <sys/types.h>
7190 _ACEOF
7191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7192 $EGREP "uid_t" >/dev/null 2>&1; then
7193 ac_cv_type_uid_t=yes
7194 else
7195 ac_cv_type_uid_t=no
7197 rm -f conftest*
7200 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7201 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7202 if test $ac_cv_type_uid_t = no; then
7204 cat >>confdefs.h <<\_ACEOF
7205 #define uid_t int
7206 _ACEOF
7209 cat >>confdefs.h <<\_ACEOF
7210 #define gid_t int
7211 _ACEOF
7216 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7217 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7218 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7220 else
7221 cat >conftest.$ac_ext <<_ACEOF
7222 /* confdefs.h. */
7223 _ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h. */
7227 $ac_includes_default
7229 main ()
7231 static struct tm ac_aggr;
7232 if (ac_aggr.tm_gmtoff)
7233 return 0;
7235 return 0;
7237 _ACEOF
7238 rm -f conftest.$ac_objext
7239 if { (ac_try="$ac_compile"
7240 case "(($ac_try" in
7241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7242 *) ac_try_echo=$ac_try;;
7243 esac
7244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7245 (eval "$ac_compile") 2>conftest.er1
7246 ac_status=$?
7247 grep -v '^ *+' conftest.er1 >conftest.err
7248 rm -f conftest.er1
7249 cat conftest.err >&5
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); } && {
7252 test -z "$ac_c_werror_flag" ||
7253 test ! -s conftest.err
7254 } && test -s conftest.$ac_objext; then
7255 ac_cv_member_struct_tm_tm_gmtoff=yes
7256 else
7257 echo "$as_me: failed program was:" >&5
7258 sed 's/^/| /' conftest.$ac_ext >&5
7260 cat >conftest.$ac_ext <<_ACEOF
7261 /* confdefs.h. */
7262 _ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7266 $ac_includes_default
7268 main ()
7270 static struct tm ac_aggr;
7271 if (sizeof ac_aggr.tm_gmtoff)
7272 return 0;
7274 return 0;
7276 _ACEOF
7277 rm -f conftest.$ac_objext
7278 if { (ac_try="$ac_compile"
7279 case "(($ac_try" in
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7282 esac
7283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7284 (eval "$ac_compile") 2>conftest.er1
7285 ac_status=$?
7286 grep -v '^ *+' conftest.er1 >conftest.err
7287 rm -f conftest.er1
7288 cat conftest.err >&5
7289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7290 (exit $ac_status); } && {
7291 test -z "$ac_c_werror_flag" ||
7292 test ! -s conftest.err
7293 } && test -s conftest.$ac_objext; then
7294 ac_cv_member_struct_tm_tm_gmtoff=yes
7295 else
7296 echo "$as_me: failed program was:" >&5
7297 sed 's/^/| /' conftest.$ac_ext >&5
7299 ac_cv_member_struct_tm_tm_gmtoff=no
7302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7307 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7308 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7309 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7311 cat >>confdefs.h <<_ACEOF
7312 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7313 _ACEOF
7319 # Look for some functions
7334 for ac_func in getpagesize kqueue statfs statvfs \
7335 clone kse_create rfork_thread thr_create sa_register \
7336 getcontext makecontext setcontext sigaltstack swapcontext
7338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7343 else
7344 cat >conftest.$ac_ext <<_ACEOF
7345 /* confdefs.h. */
7346 _ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7352 #define $ac_func innocuous_$ac_func
7354 /* System header to define __stub macros and hopefully few prototypes,
7355 which can conflict with char $ac_func (); below.
7356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7357 <limits.h> exists even on freestanding compilers. */
7359 #ifdef __STDC__
7360 # include <limits.h>
7361 #else
7362 # include <assert.h>
7363 #endif
7365 #undef $ac_func
7367 /* Override any GCC internal prototype to avoid an error.
7368 Use char because int might match the return type of a GCC
7369 builtin and then its argument prototype would still apply. */
7370 #ifdef __cplusplus
7371 extern "C"
7372 #endif
7373 char $ac_func ();
7374 /* The GNU C library defines this for functions which it implements
7375 to always fail with ENOSYS. Some functions are actually named
7376 something starting with __ and the normal name is an alias. */
7377 #if defined __stub_$ac_func || defined __stub___$ac_func
7378 choke me
7379 #endif
7382 main ()
7384 return $ac_func ();
7386 return 0;
7388 _ACEOF
7389 rm -f conftest.$ac_objext conftest$ac_exeext
7390 if { (ac_try="$ac_link"
7391 case "(($ac_try" in
7392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7393 *) ac_try_echo=$ac_try;;
7394 esac
7395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7396 (eval "$ac_link") 2>conftest.er1
7397 ac_status=$?
7398 grep -v '^ *+' conftest.er1 >conftest.err
7399 rm -f conftest.er1
7400 cat conftest.err >&5
7401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7402 (exit $ac_status); } && {
7403 test -z "$ac_c_werror_flag" ||
7404 test ! -s conftest.err
7405 } && test -s conftest$ac_exeext &&
7406 $as_test_x conftest$ac_exeext; then
7407 eval "$as_ac_var=yes"
7408 else
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7412 eval "$as_ac_var=no"
7415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7416 conftest$ac_exeext conftest.$ac_ext
7418 ac_res=`eval echo '${'$as_ac_var'}'`
7419 { echo "$as_me:$LINENO: result: $ac_res" >&5
7420 echo "${ECHO_T}$ac_res" >&6; }
7421 if test `eval echo '${'$as_ac_var'}'` = yes; then
7422 cat >>confdefs.h <<_ACEOF
7423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7424 _ACEOF
7427 done
7432 for ac_header in stdlib.h unistd.h
7434 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7436 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7437 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7439 echo $ECHO_N "(cached) $ECHO_C" >&6
7441 ac_res=`eval echo '${'$as_ac_Header'}'`
7442 { echo "$as_me:$LINENO: result: $ac_res" >&5
7443 echo "${ECHO_T}$ac_res" >&6; }
7444 else
7445 # Is the header compilable?
7446 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7448 cat >conftest.$ac_ext <<_ACEOF
7449 /* confdefs.h. */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h. */
7454 $ac_includes_default
7455 #include <$ac_header>
7456 _ACEOF
7457 rm -f conftest.$ac_objext
7458 if { (ac_try="$ac_compile"
7459 case "(($ac_try" in
7460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7461 *) ac_try_echo=$ac_try;;
7462 esac
7463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7464 (eval "$ac_compile") 2>conftest.er1
7465 ac_status=$?
7466 grep -v '^ *+' conftest.er1 >conftest.err
7467 rm -f conftest.er1
7468 cat conftest.err >&5
7469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7470 (exit $ac_status); } && {
7471 test -z "$ac_c_werror_flag" ||
7472 test ! -s conftest.err
7473 } && test -s conftest.$ac_objext; then
7474 ac_header_compiler=yes
7475 else
7476 echo "$as_me: failed program was:" >&5
7477 sed 's/^/| /' conftest.$ac_ext >&5
7479 ac_header_compiler=no
7482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7483 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7484 echo "${ECHO_T}$ac_header_compiler" >&6; }
7486 # Is the header present?
7487 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7488 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7489 cat >conftest.$ac_ext <<_ACEOF
7490 /* confdefs.h. */
7491 _ACEOF
7492 cat confdefs.h >>conftest.$ac_ext
7493 cat >>conftest.$ac_ext <<_ACEOF
7494 /* end confdefs.h. */
7495 #include <$ac_header>
7496 _ACEOF
7497 if { (ac_try="$ac_cpp conftest.$ac_ext"
7498 case "(($ac_try" in
7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501 esac
7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } >/dev/null && {
7510 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7511 test ! -s conftest.err
7512 }; then
7513 ac_header_preproc=yes
7514 else
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7518 ac_header_preproc=no
7521 rm -f conftest.err conftest.$ac_ext
7522 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7523 echo "${ECHO_T}$ac_header_preproc" >&6; }
7525 # So? What about this header?
7526 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7527 yes:no: )
7528 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7529 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7530 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7531 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7532 ac_header_preproc=yes
7534 no:yes:* )
7535 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7536 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7537 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7538 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7539 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7540 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7541 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7542 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7544 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7545 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7546 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7549 esac
7550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 else
7555 eval "$as_ac_Header=\$ac_header_preproc"
7557 ac_res=`eval echo '${'$as_ac_Header'}'`
7558 { echo "$as_me:$LINENO: result: $ac_res" >&5
7559 echo "${ECHO_T}$ac_res" >&6; }
7562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7563 cat >>confdefs.h <<_ACEOF
7564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7565 _ACEOF
7569 done
7572 for ac_func in getpagesize
7574 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7575 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7576 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7577 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7578 echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580 cat >conftest.$ac_ext <<_ACEOF
7581 /* confdefs.h. */
7582 _ACEOF
7583 cat confdefs.h >>conftest.$ac_ext
7584 cat >>conftest.$ac_ext <<_ACEOF
7585 /* end confdefs.h. */
7586 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7587 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7588 #define $ac_func innocuous_$ac_func
7590 /* System header to define __stub macros and hopefully few prototypes,
7591 which can conflict with char $ac_func (); below.
7592 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7593 <limits.h> exists even on freestanding compilers. */
7595 #ifdef __STDC__
7596 # include <limits.h>
7597 #else
7598 # include <assert.h>
7599 #endif
7601 #undef $ac_func
7603 /* Override any GCC internal prototype to avoid an error.
7604 Use char because int might match the return type of a GCC
7605 builtin and then its argument prototype would still apply. */
7606 #ifdef __cplusplus
7607 extern "C"
7608 #endif
7609 char $ac_func ();
7610 /* The GNU C library defines this for functions which it implements
7611 to always fail with ENOSYS. Some functions are actually named
7612 something starting with __ and the normal name is an alias. */
7613 #if defined __stub_$ac_func || defined __stub___$ac_func
7614 choke me
7615 #endif
7618 main ()
7620 return $ac_func ();
7622 return 0;
7624 _ACEOF
7625 rm -f conftest.$ac_objext conftest$ac_exeext
7626 if { (ac_try="$ac_link"
7627 case "(($ac_try" in
7628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7629 *) ac_try_echo=$ac_try;;
7630 esac
7631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7632 (eval "$ac_link") 2>conftest.er1
7633 ac_status=$?
7634 grep -v '^ *+' conftest.er1 >conftest.err
7635 rm -f conftest.er1
7636 cat conftest.err >&5
7637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7638 (exit $ac_status); } && {
7639 test -z "$ac_c_werror_flag" ||
7640 test ! -s conftest.err
7641 } && test -s conftest$ac_exeext &&
7642 $as_test_x conftest$ac_exeext; then
7643 eval "$as_ac_var=yes"
7644 else
7645 echo "$as_me: failed program was:" >&5
7646 sed 's/^/| /' conftest.$ac_ext >&5
7648 eval "$as_ac_var=no"
7651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7652 conftest$ac_exeext conftest.$ac_ext
7654 ac_res=`eval echo '${'$as_ac_var'}'`
7655 { echo "$as_me:$LINENO: result: $ac_res" >&5
7656 echo "${ECHO_T}$ac_res" >&6; }
7657 if test `eval echo '${'$as_ac_var'}'` = yes; then
7658 cat >>confdefs.h <<_ACEOF
7659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7660 _ACEOF
7663 done
7665 { echo "$as_me:$LINENO: checking for working mmap" >&5
7666 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7667 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 else
7670 if test "$cross_compiling" = yes; then
7671 ac_cv_func_mmap_fixed_mapped=no
7672 else
7673 cat >conftest.$ac_ext <<_ACEOF
7674 /* confdefs.h. */
7675 _ACEOF
7676 cat confdefs.h >>conftest.$ac_ext
7677 cat >>conftest.$ac_ext <<_ACEOF
7678 /* end confdefs.h. */
7679 $ac_includes_default
7680 /* malloc might have been renamed as rpl_malloc. */
7681 #undef malloc
7683 /* Thanks to Mike Haertel and Jim Avera for this test.
7684 Here is a matrix of mmap possibilities:
7685 mmap private not fixed
7686 mmap private fixed at somewhere currently unmapped
7687 mmap private fixed at somewhere already mapped
7688 mmap shared not fixed
7689 mmap shared fixed at somewhere currently unmapped
7690 mmap shared fixed at somewhere already mapped
7691 For private mappings, we should verify that changes cannot be read()
7692 back from the file, nor mmap's back from the file at a different
7693 address. (There have been systems where private was not correctly
7694 implemented like the infamous i386 svr4.0, and systems where the
7695 VM page cache was not coherent with the file system buffer cache
7696 like early versions of FreeBSD and possibly contemporary NetBSD.)
7697 For shared mappings, we should conversely verify that changes get
7698 propagated back to all the places they're supposed to be.
7700 Grep wants private fixed already mapped.
7701 The main things grep needs to know about mmap are:
7702 * does it exist and is it safe to write into the mmap'd area
7703 * how to use it (BSD variants) */
7705 #include <fcntl.h>
7706 #include <sys/mman.h>
7708 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7709 char *malloc ();
7710 #endif
7712 /* This mess was copied from the GNU getpagesize.h. */
7713 #ifndef HAVE_GETPAGESIZE
7714 /* Assume that all systems that can run configure have sys/param.h. */
7715 # ifndef HAVE_SYS_PARAM_H
7716 # define HAVE_SYS_PARAM_H 1
7717 # endif
7719 # ifdef _SC_PAGESIZE
7720 # define getpagesize() sysconf(_SC_PAGESIZE)
7721 # else /* no _SC_PAGESIZE */
7722 # ifdef HAVE_SYS_PARAM_H
7723 # include <sys/param.h>
7724 # ifdef EXEC_PAGESIZE
7725 # define getpagesize() EXEC_PAGESIZE
7726 # else /* no EXEC_PAGESIZE */
7727 # ifdef NBPG
7728 # define getpagesize() NBPG * CLSIZE
7729 # ifndef CLSIZE
7730 # define CLSIZE 1
7731 # endif /* no CLSIZE */
7732 # else /* no NBPG */
7733 # ifdef NBPC
7734 # define getpagesize() NBPC
7735 # else /* no NBPC */
7736 # ifdef PAGESIZE
7737 # define getpagesize() PAGESIZE
7738 # endif /* PAGESIZE */
7739 # endif /* no NBPC */
7740 # endif /* no NBPG */
7741 # endif /* no EXEC_PAGESIZE */
7742 # else /* no HAVE_SYS_PARAM_H */
7743 # define getpagesize() 8192 /* punt totally */
7744 # endif /* no HAVE_SYS_PARAM_H */
7745 # endif /* no _SC_PAGESIZE */
7747 #endif /* no HAVE_GETPAGESIZE */
7750 main ()
7752 char *data, *data2, *data3;
7753 int i, pagesize;
7754 int fd;
7756 pagesize = getpagesize ();
7758 /* First, make a file with some known garbage in it. */
7759 data = (char *) malloc (pagesize);
7760 if (!data)
7761 return 1;
7762 for (i = 0; i < pagesize; ++i)
7763 *(data + i) = rand ();
7764 umask (0);
7765 fd = creat ("conftest.mmap", 0600);
7766 if (fd < 0)
7767 return 1;
7768 if (write (fd, data, pagesize) != pagesize)
7769 return 1;
7770 close (fd);
7772 /* Next, try to mmap the file at a fixed address which already has
7773 something else allocated at it. If we can, also make sure that
7774 we see the same garbage. */
7775 fd = open ("conftest.mmap", O_RDWR);
7776 if (fd < 0)
7777 return 1;
7778 data2 = (char *) malloc (2 * pagesize);
7779 if (!data2)
7780 return 1;
7781 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7782 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7783 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7784 return 1;
7785 for (i = 0; i < pagesize; ++i)
7786 if (*(data + i) != *(data2 + i))
7787 return 1;
7789 /* Finally, make sure that changes to the mapped area do not
7790 percolate back to the file as seen by read(). (This is a bug on
7791 some variants of i386 svr4.0.) */
7792 for (i = 0; i < pagesize; ++i)
7793 *(data2 + i) = *(data2 + i) + 1;
7794 data3 = (char *) malloc (pagesize);
7795 if (!data3)
7796 return 1;
7797 if (read (fd, data3, pagesize) != pagesize)
7798 return 1;
7799 for (i = 0; i < pagesize; ++i)
7800 if (*(data + i) != *(data3 + i))
7801 return 1;
7802 close (fd);
7803 return 0;
7805 _ACEOF
7806 rm -f conftest$ac_exeext
7807 if { (ac_try="$ac_link"
7808 case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7811 esac
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_link") 2>&5
7814 ac_status=$?
7815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7817 { (case "(($ac_try" in
7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7820 esac
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822 (eval "$ac_try") 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; }; then
7826 ac_cv_func_mmap_fixed_mapped=yes
7827 else
7828 echo "$as_me: program exited with status $ac_status" >&5
7829 echo "$as_me: failed program was:" >&5
7830 sed 's/^/| /' conftest.$ac_ext >&5
7832 ( exit $ac_status )
7833 ac_cv_func_mmap_fixed_mapped=no
7835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7840 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7841 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7842 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7844 cat >>confdefs.h <<\_ACEOF
7845 #define HAVE_MMAP 1
7846 _ACEOF
7849 rm -f conftest.mmap
7854 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7855 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7856 aros_config_ldflags=""
7858 aros_shared_default=yes
7860 aros_shared_cflags="-fPIC"
7861 aros_shared_aflags=""
7862 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7863 aros_kernel_ldflags="-Wl,-rpath,./lib"
7865 aros_target_ar_flags="cr"
7866 aros_target_nm_flags="-C -ul"
7867 aros_target_strip_flags="--strip-unneeded -R.comment"
7869 aros_compiler_libs=
7871 aros_target_genmap="-Wl,-Map -Xlinker"
7873 # Native flavour stuff
7874 aros_bochs_hack="0"
7875 aros_serial_debug="0"
7877 # Palm native flavour stuff
7878 aros_palm_debug_hack="0"
7880 # Unix flavour stuff
7881 aros_nesting_supervisor="0"
7883 # Collect-aros stuff: "-ius" to ignore undefined symbols
7884 ignore_undefined_symbols=""
7886 #-----------------------------------------------------------------------------
7889 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7890 # it switched on by default, and we use the host compiler, so it compiles AROS
7891 # code with this enabled resulting in link failures as we don't have support
7892 # for it.
7894 # We use two methods to disable it. For the host compiler (used to compile
7895 # some hosted modules), we test to see if the compiler supports stack
7896 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7897 # work on all platforms.
7899 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7900 # (this is done unconditionally, as it should have no effect on compilers
7901 # without the stack protection feature). This may be specific to the way that
7902 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7903 # strong enough to disable it in a generic way though, so we'll live with it
7904 # until another vendor ships GCC with it enabled in a different way, and deal
7905 # with it then.
7908 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7909 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7910 save_cflags="$CFLAGS"
7911 CFLAGS="$CFLAGS -fno-stack-protector"
7912 cat >conftest.$ac_ext <<_ACEOF
7913 /* confdefs.h. */
7914 _ACEOF
7915 cat confdefs.h >>conftest.$ac_ext
7916 cat >>conftest.$ac_ext <<_ACEOF
7917 /* end confdefs.h. */
7920 main ()
7924 return 0;
7926 _ACEOF
7927 rm -f conftest.$ac_objext
7928 if { (ac_try="$ac_compile"
7929 case "(($ac_try" in
7930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7931 *) ac_try_echo=$ac_try;;
7932 esac
7933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7934 (eval "$ac_compile") 2>conftest.er1
7935 ac_status=$?
7936 grep -v '^ *+' conftest.er1 >conftest.err
7937 rm -f conftest.er1
7938 cat conftest.err >&5
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); } && {
7941 test -z "$ac_c_werror_flag" ||
7942 test ! -s conftest.err
7943 } && test -s conftest.$ac_objext; then
7944 use_no_stack_protector="yes"
7945 else
7946 echo "$as_me: failed program was:" >&5
7947 sed 's/^/| /' conftest.$ac_ext >&5
7949 use_no_stack_protector="no"
7952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7953 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
7954 echo "${ECHO_T}$use_no_stack_protector" >&6; }
7955 if test "x-$use_no_stack_protector" = "x-yes" ; then
7956 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7958 CFLAGS="$save_cflags"
7961 #-----------------------------------------------------------------------------
7963 # Disable pointer-signedness warnings if the compiler recognises the option
7964 # (this only works for the host compiler at the moment)
7966 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7967 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
7968 save_cflags="$CFLAGS"
7969 CFLAGS="$CFLAGS -Wno-pointer-sign"
7970 cat >conftest.$ac_ext <<_ACEOF
7971 /* confdefs.h. */
7972 _ACEOF
7973 cat confdefs.h >>conftest.$ac_ext
7974 cat >>conftest.$ac_ext <<_ACEOF
7975 /* end confdefs.h. */
7978 main ()
7982 return 0;
7984 _ACEOF
7985 rm -f conftest.$ac_objext
7986 if { (ac_try="$ac_compile"
7987 case "(($ac_try" in
7988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7989 *) ac_try_echo=$ac_try;;
7990 esac
7991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7992 (eval "$ac_compile") 2>conftest.er1
7993 ac_status=$?
7994 grep -v '^ *+' conftest.er1 >conftest.err
7995 rm -f conftest.er1
7996 cat conftest.err >&5
7997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7998 (exit $ac_status); } && {
7999 test -z "$ac_c_werror_flag" ||
8000 test ! -s conftest.err
8001 } && test -s conftest.$ac_objext; then
8002 use_no_sign_warning="yes"
8003 else
8004 echo "$as_me: failed program was:" >&5
8005 sed 's/^/| /' conftest.$ac_ext >&5
8007 use_no_sign_warning="no"
8010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8011 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8012 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8013 if test "x-$use_no_sign_warning" = "x-yes" ; then
8014 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8016 CFLAGS="$save_cflags"
8018 #-----------------------------------------------------------------------------
8020 { echo "$as_me:$LINENO: checking for type of build" >&5
8021 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8022 # Check whether --enable-build_type was given.
8023 if test "${enable_build_type+set}" = set; then
8024 enableval=$enable_build_type; build_type=$enableval
8025 else
8026 build_type="personal"
8030 if test "$build_type" = "nightly"; then
8031 build_type_string="NIGHTLY"
8032 elif test "$build_type" = "snapshot"; then
8033 build_type_string="SNAPSHOT"
8034 elif test "$build_type" = "milestone"; then
8035 build_type_string="MILESTONE"
8036 elif test "$build_type" = "release"; then
8037 build_type_string="RELEASE"
8038 else
8039 build_type_string="PERSONAL"
8040 build_type="personal"
8043 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8045 { echo "$as_me:$LINENO: result: $build_type" >&5
8046 echo "${ECHO_T}$build_type" >&6; }
8048 #-----------------------------------------------------------------------------
8049 all_debug_types="messages stack mungwall modules symbols"
8051 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8052 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8053 # Check whether --enable-debug was given.
8054 if test "${enable_debug+set}" = set; then
8055 enableval=$enable_debug; debug="$enableval"
8056 else
8057 debug=""
8061 if test "$debug" = "" -o "$debug" = "no"; then
8062 debug="none"
8063 elif test "$debug" = "yes"; then
8064 debug="all"
8067 if test "$debug" = "all" ; then
8068 debug=$all_debug_types
8069 for d in $all_debug_types; do
8070 export aros_${d}_debug="1"
8071 done
8072 else
8073 for d in $all_debug_types; do
8074 export aros_${d}_debug="0"
8075 done
8078 if test "$debug" != "none"; then
8079 debug=`echo $debug | sed s/,/\ /g`
8080 for d in $debug; do
8081 found="0"
8082 for d2 in $all_debug_types; do
8083 if test "$d2" = "$d"; then
8084 found="1"
8085 break
8087 done
8088 if test "$found" = "0"; then
8089 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8090 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8091 { (exit 1); exit 1; }; }
8093 export aros_${d}_debug="1"
8094 done
8095 aros_debug="yes"
8097 { echo "$as_me:$LINENO: result: $debug" >&5
8098 echo "${ECHO_T}$debug" >&6; }
8100 if test "$aros_messages_debug" = "1"; then
8101 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8102 else
8103 aros_messages_debug=""
8105 if test "$aros_symbols_debug" = "1"; then
8106 aros_symbols_debug="-g"
8107 else
8108 aros_symbols_debug=""
8111 # These are the flags to pass when compiling debugged programs
8112 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8113 aros_debug_aflags=""
8114 aros_debug_ldflags="$aros_symbols_debug"
8116 #-----------------------------------------------------------------------------
8117 # Checking for distcc and ccache.
8119 # Always apply the transforms in this particular order. Basically you should
8120 # always run 'ccache distcc compiler' in that order for the best performance.
8122 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8123 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8124 # Check whether --enable-distcc was given.
8125 if test "${enable_distcc+set}" = set; then
8126 enableval=$enable_distcc; distcc="$enableval"
8127 else
8128 distcc="no"
8131 if test "$distcc" != "" -a "$distcc" != "no"; then
8132 # AC_CHECK_PROG will print out the result in this case
8133 # Extract the first word of "distcc", so it can be a program name with args.
8134 set dummy distcc; ac_word=$2
8135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8137 if test "${ac_cv_path_DISTCC+set}" = set; then
8138 echo $ECHO_N "(cached) $ECHO_C" >&6
8139 else
8140 case $DISTCC in
8141 [\\/]* | ?:[\\/]*)
8142 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8146 for as_dir in $PATH
8148 IFS=$as_save_IFS
8149 test -z "$as_dir" && as_dir=.
8150 for ac_exec_ext in '' $ac_executable_extensions; do
8151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8152 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 break 2
8156 done
8157 done
8158 IFS=$as_save_IFS
8160 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8162 esac
8164 DISTCC=$ac_cv_path_DISTCC
8165 if test -n "$DISTCC"; then
8166 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8167 echo "${ECHO_T}$DISTCC" >&6; }
8168 else
8169 { echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6; }
8174 else
8175 { echo "$as_me:$LINENO: result: no" >&5
8176 echo "${ECHO_T}no" >&6; }
8179 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8180 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8181 # Check whether --enable-ccache was given.
8182 if test "${enable_ccache+set}" = set; then
8183 enableval=$enable_ccache; ccache="$enableval"
8184 else
8185 ccache="no"
8188 if test "$ccache" != "" -a "$ccache" != "no"; then
8189 # AC_CHECK_PROG will print out the result in this case
8190 # Extract the first word of "ccache", so it can be a program name with args.
8191 set dummy ccache; ac_word=$2
8192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8194 if test "${ac_cv_prog_CCACHE+set}" = set; then
8195 echo $ECHO_N "(cached) $ECHO_C" >&6
8196 else
8197 if test -n "$CCACHE"; then
8198 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8199 else
8200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8201 for as_dir in $PATH
8203 IFS=$as_save_IFS
8204 test -z "$as_dir" && as_dir=.
8205 for ac_exec_ext in '' $ac_executable_extensions; do
8206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8207 ac_cv_prog_CCACHE="ccache"
8208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8209 break 2
8211 done
8212 done
8213 IFS=$as_save_IFS
8217 CCACHE=$ac_cv_prog_CCACHE
8218 if test -n "$CCACHE"; then
8219 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8220 echo "${ECHO_T}$CCACHE" >&6; }
8221 else
8222 { echo "$as_me:$LINENO: result: no" >&5
8223 echo "${ECHO_T}no" >&6; }
8227 else
8228 { echo "$as_me:$LINENO: result: no" >&5
8229 echo "${ECHO_T}no" >&6; }
8232 #-----------------------------------------------------------------------------
8233 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8234 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8236 # Check whether --with-optimization was given.
8237 if test "${with_optimization+set}" = set; then
8238 withval=$with_optimization; optimization="$withval"
8239 else
8240 optimization="unknown"
8243 if test "$optimization" = "unknown"; then
8244 if test "$debug" != "none"; then
8245 optimization="-O0"
8246 else
8247 optimization="-O2"
8250 aros_config_cflags="$aros_config_cflags $optimization"
8251 { echo "$as_me:$LINENO: result: $optimization" >&5
8252 echo "${ECHO_T}$optimization" >&6; }
8254 #-----------------------------------------------------------------------------
8255 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8256 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8257 # Check whether --enable-target_variant was given.
8258 if test "${enable_target_variant+set}" = set; then
8259 enableval=$enable_target_variant; target_variant=$enableval
8260 else
8261 target_variant="none"
8264 if test "$target_variant" = "none"; then
8265 aros_target_variant=""
8266 aros_target_suffix=""
8267 else
8268 aros_target_variant="$target_variant"
8269 aros_target_suffix="-$target_variant"
8271 { echo "$as_me:$LINENO: result: $enableval" >&5
8272 echo "${ECHO_T}$enableval" >&6; }
8274 target_bootloader="none"
8276 #-----------------------------------------------------------------------------
8277 # This is the target configuration switch.
8278 case "$target_os" in
8279 linux*)
8280 aros_target_arch="linux"
8281 case "$target_cpu" in
8282 *m68k*)
8283 aros_target_cpu="m68k"
8284 aros_object_format="m68kelf"
8285 aros_flavour="emulcompat"
8286 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8287 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8288 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8289 gcc_target_cpu="mc68000"
8291 *i?86*)
8292 aros_target_cpu="i386"
8293 aros_object_format="elf_i386"
8294 aros_flavour="emulation"
8295 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8296 aros_default_wbdepth=8
8297 gcc_target_cpu="i386"
8299 *x86_64*)
8300 aros_target_cpu="x86_64"
8301 aros_object_format="elf_x86_64"
8302 aros_flavour="emulation"
8303 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8304 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8305 aros_default_wbdepth=8
8306 gcc_target_cpu="x86_64"
8308 *powerpc*)
8309 aros_target_cpu="ppc"
8310 aros_object_format="elf32ppc"
8311 aros_flavour="emulation"
8312 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8313 aros_default_wbdepth=8
8314 gcc_target_cpu="ppc"
8316 # TODO
8317 # Same as powerpc, but I need this for the nightly build to work again.
8318 # Actually, the nightly should be made working with powerpc target.
8319 # That just was too much work for the moment, another week or two.
8320 *ppc*)
8321 aros_target_cpu="ppc"
8322 aros_object_format="elf32ppc"
8323 aros_flavour="emulation"
8324 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8325 aros_default_wbdepth=8
8326 gcc_target_cpu="ppc"
8329 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8330 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8331 { (exit 1); exit 1; }; }
8333 esac
8337 aros_target_arch="pc"
8338 aros_shared_default="no"
8339 target_bootloader="grub"
8340 case "$target_cpu" in
8341 *i?86*)
8342 aros_target_cpu="i386"
8345 if test "$aros_object_format" = "" ; then
8346 aros_object_format="elf_i386"
8348 aros_flavour="standalone"
8349 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8350 aros_kernel_ldflags=""
8351 aros_default_wbwidth=640
8352 aros_default_wbheight=480
8353 gcc_target_cpu="i386"
8355 *x86_64*)
8356 aros_target_cpu="x86_64"
8357 aros_serial_debug=1
8358 if test "$aros_object_format" = "" ; then
8359 aros_object_format="elf_x86_64"
8361 aros_flavour="standalone"
8362 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8363 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8364 aros_kernel_ldflags=""
8365 aros_default_wbwidth=640
8366 aros_default_wbheight=480
8367 gcc_target_cpu="x86_64"
8370 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8371 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8372 { (exit 1); exit 1; }; }
8374 esac
8377 prep)
8378 aros_target_arch="prep"
8379 aros_shared_default="no"
8380 aros_target_cpu="ppc"
8381 aros_object_format="elf32ppc"
8382 aros_flavour="ppcnative"
8383 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8384 aros_kernel_ldflags=""
8385 aros_default_wbwidth=640
8386 aros_default_wbheight=480
8387 gcc_target_cpu="ppc"
8390 freebsd*)
8391 aros_target_arch="freebsd"
8392 aros_target_cpu="i386"
8393 aros_flavour="emulation"
8394 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8395 gcc_target_cpu="i386"
8397 aros_target_strip_flags="-x"
8400 darwin*)
8401 aros_target_arch="darwin"
8402 aros_flavour="emulation"
8403 case "$target_cpu" in
8404 *i?86*)
8405 aros_target_cpu="i386"
8406 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8407 gcc_target_cpu="i386"
8408 aros_object_format="elf_i386"
8409 aros_target_strip_flags="-x"
8412 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8413 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8414 { (exit 1); exit 1; }; }
8416 esac
8418 netbsd*)
8419 aros_target_arch="netbsd"
8420 case "$target_cpu" in
8421 *m68k*)
8422 aros_target_cpu="m68k"
8423 aros_object_format="m68kelf"
8424 aros_flavour="emulcompat"
8425 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8426 gcc_target_cpu="mc68000"
8428 *i?86*)
8429 aros_target_cpu="i386"
8430 aros_object_format="elf_i386"
8431 aros_flavour="emulation"
8432 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8433 aros_default_wbdepth=8
8434 gcc_target_cpu="i386"
8437 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8438 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8439 { (exit 1); exit 1; }; }
8441 esac
8442 aros_target_genmap="-Wl,-M -Xlinker >"
8443 aros_flavour="emulation"
8444 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8447 openbsd*)
8448 aros_target_arch="openbsd"
8449 case "$target_cpu" in
8450 *i?86*)
8451 aros_target_cpu="i386"
8452 aros_object_format="elf_i386"
8453 aros_flavour="emulation"
8454 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8455 gcc_target_cpu="i386"
8458 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8459 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8460 { (exit 1); exit 1; }; }
8462 esac
8463 aros_target_genmap="-Wl,-M -Xlinker >"
8464 aros_target_nm_flags="-u"
8465 aros_flavour="emulation"
8468 solaris*)
8469 aros_target_arch="solaris"
8470 case "$target_cpu" in
8471 *i?86*)
8472 aros_target_cpu="i386"
8473 aros_object_format="elf_i386"
8474 aros_flavour="emulation"
8475 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8476 aros_default_wbdepth=8
8477 gcc_target_cpu="i386"
8479 *sparc*)
8480 aros_target_cpu="sparc"
8481 aros_object_format="elf_sparc"
8482 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8483 gcc_target_cpu="sparc"
8486 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8487 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8488 { (exit 1); exit 1; }; }
8490 esac
8491 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8492 aros_flavour="emulation"
8495 morphos*)
8496 aros_target_arch="morphos"
8497 aros_shared_default="no"
8498 aros_target_cpu="ppc"
8499 aros_object_format="elf_ppc"
8500 aros_flavour="nativecompat"
8501 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8502 gcc_target_cpu="ppc"
8505 sam440)
8506 aros_target_arch="sam440"
8507 aros_shared_default="no"
8508 aros_target_cpu="ppc"
8509 aros_object_format="elf32ppc"
8510 aros_flavour="ppcnative"
8511 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8512 aros_kernel_ldflags=""
8513 aros_default_wbwidth=640
8514 aros_default_wbheight=480
8515 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8516 gcc_target_cpu="powerpc"
8519 amiga*)
8520 aros_target_arch="amiga"
8521 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8522 aros_shared_default="no"
8524 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8526 case "$target_cpu" in
8527 *m68k*)
8528 aros_target_cpu="m68k"
8529 aros_object_format="m68kelf"
8530 aros_flavour="nativecompat"
8531 gcc_target_cpu="mc68000"
8533 *ppc*)
8534 aros_cpu="ppc"
8535 aros_flavour="native"
8536 gcc_target_cpu="ppc"
8539 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8540 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8541 { (exit 1); exit 1; }; }
8543 esac
8546 cygwin*)
8547 aros_target_arch="cygwin"
8548 aros_shared_default="no"
8549 case "$target_cpu" in
8550 *i?86*)
8551 aros_target_cpu="i386"
8552 aros_object_format="elf_i386"
8553 aros_flavour="emulation"
8554 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8555 aros_shared_cflags=""
8556 aros_default_wbdepth=8
8557 gcc_target_cpu="i386"
8558 aros_target_cc="i386-aros-gcc"
8559 aros_target_ld="i386-aros-ld"
8560 aros_target_as="i386-aros-as"
8561 aros_target_ar="i386-aros-ar"
8562 aros_target_ranlib="i386-aros-ranlib"
8563 aros_target_nm="i386-aros-nm"
8564 aros_target_strip="i386-aros-strip"
8565 aros_target_objcopy="i386-aros-objcopy"
8566 aros_target_objdump="i386-aros-objdump"
8569 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8570 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8571 { (exit 1); exit 1; }; }
8573 esac
8576 mingw32*)
8577 aros_target_arch="mingw32"
8578 aros_shared_default="no"
8579 case "$target_cpu" in
8580 *i?86*)
8581 aros_target_cpu="i386"
8582 aros_object_format="elf_i386"
8583 aros_flavour="emulation"
8584 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8585 aros_shared_cflags=""
8586 aros_default_wbdepth=8
8587 gcc_target_cpu="i386"
8588 aros_target_cc="i386-aros-gcc"
8589 aros_target_ld="i386-aros-ld"
8590 aros_target_as="i386-aros-as"
8591 aros_target_ar="i386-aros-ar"
8592 aros_target_ranlib="i386-aros-ranlib"
8593 aros_target_nm="i386-aros-nm"
8594 aros_target_strip="i386-aros-strip"
8595 aros_target_objcopy="i386-aros-objcopy"
8596 aros_target_objdump="i386-aros-objdump"
8599 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8600 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8601 { (exit 1); exit 1; }; }
8603 esac
8604 if test $host_os = "cygwin"; then
8605 aros_kernel_cflags="-mno-cygwin"
8608 pp*)
8609 aros_target_arch="pp"
8610 aros_shared_default="no"
8611 case "$target_cpu" in
8612 *m68k*)
8613 aros_target_cpu="m68k"
8614 aros_object_format="m68kelf"
8615 aros_flavour="palmnative"
8616 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8617 aros_kernel_ldflags=""
8618 aros_default_wbwidth=160
8619 aros_default_wbheight=160
8620 aros_default_wbdepth=1
8621 aros_target_ar_flags="cru"
8622 aros_compiler_libs="-lgcc1"
8623 aros_shared_default=no
8624 aros_shared_cflags="-fpic"
8625 aros_shared_aflags=""
8626 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8627 aros_kernel_ldflags="-Wl,-rpath,./lib"
8628 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8629 aros_debug_aflags=""
8630 aros_debug_ldflags="$aros_symbols_debug"
8631 aros_mungwall_debug="0"
8632 aros_modules_debug="0"
8633 gcc_target_cpu="mc68000"
8634 ignore_undefined_symbols="-ius"
8637 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8638 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8639 { (exit 1); exit 1; }; }
8641 esac
8644 mac*)
8645 aros_target_arch="mac"
8646 aros_shared_default="no"
8647 case "$target_cpu" in
8648 *m68k*)
8649 aros_target_cpu="m68k"
8650 aros_object_format="m68kelf"
8651 aros_flavour="mac68knative"
8652 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8653 aros_default_wbwidth=512
8654 aros_default_wbheight=384
8655 aros_default_wbdepth=8
8656 aros_target_ar_flags="cru"
8657 aros_compiler_libs="-lgcc1"
8658 aros_shared_default=no
8659 aros_shared_cflags="-fpic"
8660 aros_shared_aflags=""
8661 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8662 aros_kernel_ldflags="-Wl,-rpath,./lib"
8663 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8664 aros_debug_aflags=""
8665 aros_debug_ldflags="$aros_symbols_debug"
8666 aros_mungwall_debug="0"
8667 aros_modules_debug="0"
8668 gcc_target_cpu="mc68000"
8669 ignore_undefined_symbols="-ius"
8672 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8673 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8674 { (exit 1); exit 1; }; }
8676 esac
8680 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8681 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8682 { (exit 1); exit 1; }; }
8684 esac
8686 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
8687 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
8689 # Check whether --with-portssources was given.
8690 if test "${with_portssources+set}" = set; then
8691 withval=$with_portssources; with_portssrcdir=$withval
8692 else
8693 with_portssrcdir="default"
8696 if test "$with_portssrcdir" = "default"; then
8697 AROS_PORTSSRCDIR="$AROS_BUILDDIR/bin/Sources"
8698 else
8699 AROS_PORTSSRCDIR="$with_portssrcdir"
8701 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
8702 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
8704 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
8705 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
8707 # Check whether --with-bootloader was given.
8708 if test "${with_bootloader+set}" = set; then
8709 withval=$with_bootloader; target_bootloader=$withval
8710 else
8711 target_bootloader=$target_bootloader
8714 if test "$target_bootloader" = "none"; then
8715 aros_target_bootloader=""
8716 else
8717 aros_target_bootloader="$target_bootloader"
8719 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
8720 echo "${ECHO_T}$target_bootloader" >&6; }
8722 # Check LZO when compiling the grub2 bootloader on i386/x86_64.
8723 aros_liblzo_check="no"
8724 case "$aros_target_bootloader" in
8725 grub2*)
8726 case "$target_cpu" in
8727 *i?86*)
8728 aros_liblzo_check="yes"
8730 *x86_64*)
8731 aros_liblzo_check="yes"
8735 esac
8740 esac
8742 if test "$aros_liblzo_check" = "yes"; then
8743 # There are three possibilities. LZO version 2 installed with the name
8744 # liblzo2, with the name liblzo, and LZO version 1.
8745 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
8746 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
8747 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 else
8750 ac_check_lib_save_LIBS=$LIBS
8751 LIBS="-llzo2 $LIBS"
8752 cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h. */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8759 /* Override any GCC internal prototype to avoid an error.
8760 Use char because int might match the return type of a GCC
8761 builtin and then its argument prototype would still apply. */
8762 #ifdef __cplusplus
8763 extern "C"
8764 #endif
8765 char __lzo_init_v2 ();
8767 main ()
8769 return __lzo_init_v2 ();
8771 return 0;
8773 _ACEOF
8774 rm -f conftest.$ac_objext conftest$ac_exeext
8775 if { (ac_try="$ac_link"
8776 case "(($ac_try" in
8777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8778 *) ac_try_echo=$ac_try;;
8779 esac
8780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8781 (eval "$ac_link") 2>conftest.er1
8782 ac_status=$?
8783 grep -v '^ *+' conftest.er1 >conftest.err
8784 rm -f conftest.er1
8785 cat conftest.err >&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); } && {
8788 test -z "$ac_c_werror_flag" ||
8789 test ! -s conftest.err
8790 } && test -s conftest$ac_exeext &&
8791 $as_test_x conftest$ac_exeext; then
8792 ac_cv_lib_lzo2___lzo_init_v2=yes
8793 else
8794 echo "$as_me: failed program was:" >&5
8795 sed 's/^/| /' conftest.$ac_ext >&5
8797 ac_cv_lib_lzo2___lzo_init_v2=no
8800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8801 conftest$ac_exeext conftest.$ac_ext
8802 LIBS=$ac_check_lib_save_LIBS
8804 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
8805 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
8806 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
8807 LIBLZO="-llzo2"
8808 else
8809 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
8810 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
8811 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
8812 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 else
8814 ac_check_lib_save_LIBS=$LIBS
8815 LIBS="-llzo $LIBS"
8816 cat >conftest.$ac_ext <<_ACEOF
8817 /* confdefs.h. */
8818 _ACEOF
8819 cat confdefs.h >>conftest.$ac_ext
8820 cat >>conftest.$ac_ext <<_ACEOF
8821 /* end confdefs.h. */
8823 /* Override any GCC internal prototype to avoid an error.
8824 Use char because int might match the return type of a GCC
8825 builtin and then its argument prototype would still apply. */
8826 #ifdef __cplusplus
8827 extern "C"
8828 #endif
8829 char __lzo_init_v2 ();
8831 main ()
8833 return __lzo_init_v2 ();
8835 return 0;
8837 _ACEOF
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (ac_try="$ac_link"
8840 case "(($ac_try" in
8841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842 *) ac_try_echo=$ac_try;;
8843 esac
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845 (eval "$ac_link") 2>conftest.er1
8846 ac_status=$?
8847 grep -v '^ *+' conftest.er1 >conftest.err
8848 rm -f conftest.er1
8849 cat conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 (exit $ac_status); } && {
8852 test -z "$ac_c_werror_flag" ||
8853 test ! -s conftest.err
8854 } && test -s conftest$ac_exeext &&
8855 $as_test_x conftest$ac_exeext; then
8856 ac_cv_lib_lzo___lzo_init_v2=yes
8857 else
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_cv_lib_lzo___lzo_init_v2=no
8864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8865 conftest$ac_exeext conftest.$ac_ext
8866 LIBS=$ac_check_lib_save_LIBS
8868 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
8869 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
8870 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
8871 LIBLZO="-llzo"
8872 else
8873 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
8874 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
8875 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
8876 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 else
8878 ac_check_lib_save_LIBS=$LIBS
8879 LIBS="-llzo $LIBS"
8880 cat >conftest.$ac_ext <<_ACEOF
8881 /* confdefs.h. */
8882 _ACEOF
8883 cat confdefs.h >>conftest.$ac_ext
8884 cat >>conftest.$ac_ext <<_ACEOF
8885 /* end confdefs.h. */
8887 /* Override any GCC internal prototype to avoid an error.
8888 Use char because int might match the return type of a GCC
8889 builtin and then its argument prototype would still apply. */
8890 #ifdef __cplusplus
8891 extern "C"
8892 #endif
8893 char __lzo_init2 ();
8895 main ()
8897 return __lzo_init2 ();
8899 return 0;
8901 _ACEOF
8902 rm -f conftest.$ac_objext conftest$ac_exeext
8903 if { (ac_try="$ac_link"
8904 case "(($ac_try" in
8905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8906 *) ac_try_echo=$ac_try;;
8907 esac
8908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8909 (eval "$ac_link") 2>conftest.er1
8910 ac_status=$?
8911 grep -v '^ *+' conftest.er1 >conftest.err
8912 rm -f conftest.er1
8913 cat conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); } && {
8916 test -z "$ac_c_werror_flag" ||
8917 test ! -s conftest.err
8918 } && test -s conftest$ac_exeext &&
8919 $as_test_x conftest$ac_exeext; then
8920 ac_cv_lib_lzo___lzo_init2=yes
8921 else
8922 echo "$as_me: failed program was:" >&5
8923 sed 's/^/| /' conftest.$ac_ext >&5
8925 ac_cv_lib_lzo___lzo_init2=no
8928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8929 conftest$ac_exeext conftest.$ac_ext
8930 LIBS=$ac_check_lib_save_LIBS
8932 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
8933 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
8934 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
8935 LIBLZO="-llzo"
8936 else
8937 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
8938 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
8939 { (exit 1); exit 1; }; }
8948 LIBS="$LIBS $LIBLZO"
8949 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
8950 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
8951 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 else
8954 cat >conftest.$ac_ext <<_ACEOF
8955 /* confdefs.h. */
8956 _ACEOF
8957 cat confdefs.h >>conftest.$ac_ext
8958 cat >>conftest.$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
8961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8962 #define lzo1x_999_compress innocuous_lzo1x_999_compress
8964 /* System header to define __stub macros and hopefully few prototypes,
8965 which can conflict with char lzo1x_999_compress (); below.
8966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8967 <limits.h> exists even on freestanding compilers. */
8969 #ifdef __STDC__
8970 # include <limits.h>
8971 #else
8972 # include <assert.h>
8973 #endif
8975 #undef lzo1x_999_compress
8977 /* Override any GCC internal prototype to avoid an error.
8978 Use char because int might match the return type of a GCC
8979 builtin and then its argument prototype would still apply. */
8980 #ifdef __cplusplus
8981 extern "C"
8982 #endif
8983 char lzo1x_999_compress ();
8984 /* The GNU C library defines this for functions which it implements
8985 to always fail with ENOSYS. Some functions are actually named
8986 something starting with __ and the normal name is an alias. */
8987 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
8988 choke me
8989 #endif
8992 main ()
8994 return lzo1x_999_compress ();
8996 return 0;
8998 _ACEOF
8999 rm -f conftest.$ac_objext conftest$ac_exeext
9000 if { (ac_try="$ac_link"
9001 case "(($ac_try" in
9002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9003 *) ac_try_echo=$ac_try;;
9004 esac
9005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9006 (eval "$ac_link") 2>conftest.er1
9007 ac_status=$?
9008 grep -v '^ *+' conftest.er1 >conftest.err
9009 rm -f conftest.er1
9010 cat conftest.err >&5
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && {
9013 test -z "$ac_c_werror_flag" ||
9014 test ! -s conftest.err
9015 } && test -s conftest$ac_exeext &&
9016 $as_test_x conftest$ac_exeext; then
9017 ac_cv_func_lzo1x_999_compress=yes
9018 else
9019 echo "$as_me: failed program was:" >&5
9020 sed 's/^/| /' conftest.$ac_ext >&5
9022 ac_cv_func_lzo1x_999_compress=no
9025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9026 conftest$ac_exeext conftest.$ac_ext
9028 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
9029 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
9030 if test $ac_cv_func_lzo1x_999_compress = yes; then
9032 else
9033 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
9034 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
9035 { (exit 1); exit 1; }; }
9039 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
9042 for ac_header in lzo/lzo1x.h lzo1x.h
9044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9046 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9048 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9049 echo $ECHO_N "(cached) $ECHO_C" >&6
9051 ac_res=`eval echo '${'$as_ac_Header'}'`
9052 { echo "$as_me:$LINENO: result: $ac_res" >&5
9053 echo "${ECHO_T}$ac_res" >&6; }
9054 else
9055 # Is the header compilable?
9056 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9057 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9058 cat >conftest.$ac_ext <<_ACEOF
9059 /* confdefs.h. */
9060 _ACEOF
9061 cat confdefs.h >>conftest.$ac_ext
9062 cat >>conftest.$ac_ext <<_ACEOF
9063 /* end confdefs.h. */
9064 $ac_includes_default
9065 #include <$ac_header>
9066 _ACEOF
9067 rm -f conftest.$ac_objext
9068 if { (ac_try="$ac_compile"
9069 case "(($ac_try" in
9070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071 *) ac_try_echo=$ac_try;;
9072 esac
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074 (eval "$ac_compile") 2>conftest.er1
9075 ac_status=$?
9076 grep -v '^ *+' conftest.er1 >conftest.err
9077 rm -f conftest.er1
9078 cat conftest.err >&5
9079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9080 (exit $ac_status); } && {
9081 test -z "$ac_c_werror_flag" ||
9082 test ! -s conftest.err
9083 } && test -s conftest.$ac_objext; then
9084 ac_header_compiler=yes
9085 else
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 ac_header_compiler=no
9092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9093 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9094 echo "${ECHO_T}$ac_header_compiler" >&6; }
9096 # Is the header present?
9097 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9098 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h. */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 #include <$ac_header>
9106 _ACEOF
9107 if { (ac_try="$ac_cpp conftest.$ac_ext"
9108 case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111 esac
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } >/dev/null && {
9120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 }; then
9123 ac_header_preproc=yes
9124 else
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9128 ac_header_preproc=no
9131 rm -f conftest.err conftest.$ac_ext
9132 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9133 echo "${ECHO_T}$ac_header_preproc" >&6; }
9135 # So? What about this header?
9136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9137 yes:no: )
9138 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9139 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9142 ac_header_preproc=yes
9144 no:yes:* )
9145 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9146 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9147 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9148 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9149 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9150 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9151 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9152 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9155 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9156 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9159 esac
9160 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9161 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9163 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 else
9165 eval "$as_ac_Header=\$ac_header_preproc"
9167 ac_res=`eval echo '${'$as_ac_Header'}'`
9168 { echo "$as_me:$LINENO: result: $ac_res" >&5
9169 echo "${ECHO_T}$ac_res" >&6; }
9172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9173 cat >>confdefs.h <<_ACEOF
9174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9175 _ACEOF
9179 done
9183 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9184 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9186 # Check whether --with-theme was given.
9187 if test "${with_theme+set}" = set; then
9188 withval=$with_theme; target_guitheme=$withval
9189 else
9190 target_guitheme="default"
9193 if test "$target_guitheme" = "default"; then
9194 aros_target_guitheme="Ice"
9195 else
9196 aros_target_guitheme="$target_guitheme"
9198 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9199 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9201 # Find out if we are cross-compiling (ie. if we can't use the host compiler
9202 # for target code)
9203 cross_compiling=no
9204 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9205 cross_compiling=yes
9207 if test "$aros_host_arch" == "darwin" ; then
9208 cross_compiling=yes
9211 # Set prefix for target compiler etc. if we're cross-compiling
9212 # (should possibly be earlier but needs to be after AC_PROG_CC)
9213 if test "$cross_compiling" = "yes" ; then
9214 target_tool_prefix=${target_cpu}-elf-
9215 CC=${target_tool_prefix}gcc
9218 # Find all the tools we need to compile. This could be cross-compiling
9219 # though! If that is the case we use the GNU form of the target and
9220 # simply add this to the front of the binary name. This is rather simple,
9221 # but it should work under most circumstances.
9223 # The default tools are to use the same as the host, but only if the
9224 # host and target CPU are the same. With GCC this is normally enough.
9227 aros_cc_pre=""
9228 aros_shared_ld="$aros_host_ld"
9230 aros_target_mkdep="$aros_host_mkdep"
9231 aros_target_incl_def="$aros_host_incl"
9233 # Extract the first word of "$CC", so it can be a program name with args.
9234 set dummy $CC; ac_word=$2
9235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9237 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
9238 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 else
9240 case $aros_kernel_cc in
9241 [\\/]* | ?:[\\/]*)
9242 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246 for as_dir in $PATH
9248 IFS=$as_save_IFS
9249 test -z "$as_dir" && as_dir=.
9250 for ac_exec_ext in '' $ac_executable_extensions; do
9251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9252 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9254 break 2
9256 done
9257 done
9258 IFS=$as_save_IFS
9261 esac
9263 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9264 if test -n "$aros_kernel_cc"; then
9265 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
9266 echo "${ECHO_T}$aros_kernel_cc" >&6; }
9267 else
9268 { echo "$as_me:$LINENO: result: no" >&5
9269 echo "${ECHO_T}no" >&6; }
9274 # The default tools executables to be linked to.
9275 if test "$aros_target_cc" != ""; then
9276 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9277 set dummy $aros_target_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_target_cc+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283 case $aros_target_cc in
9284 [\\/]* | ?:[\\/]*)
9285 ac_cv_path_aros_target_cc="$aros_target_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_target_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_target_cc=$ac_cv_path_aros_target_cc
9307 if test -n "$aros_target_cc"; then
9308 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9309 echo "${ECHO_T}$aros_target_cc" >&6; }
9310 else
9311 { echo "$as_me:$LINENO: result: no" >&5
9312 echo "${ECHO_T}no" >&6; }
9316 if test "$aros_target_cc" = ""; then
9317 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9318 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9319 { (exit 1); exit 1; }; }
9322 if test "$aros_target_ld" != ""; then
9323 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9324 set dummy $aros_target_ld; ac_word=$2
9325 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9326 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9327 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9328 echo $ECHO_N "(cached) $ECHO_C" >&6
9329 else
9330 case $aros_target_ld in
9331 [\\/]* | ?:[\\/]*)
9332 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9336 for as_dir in $PATH
9338 IFS=$as_save_IFS
9339 test -z "$as_dir" && as_dir=.
9340 for ac_exec_ext in '' $ac_executable_extensions; do
9341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9342 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9344 break 2
9346 done
9347 done
9348 IFS=$as_save_IFS
9351 esac
9353 aros_target_ld=$ac_cv_path_aros_target_ld
9354 if test -n "$aros_target_ld"; then
9355 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9356 echo "${ECHO_T}$aros_target_ld" >&6; }
9357 else
9358 { echo "$as_me:$LINENO: result: no" >&5
9359 echo "${ECHO_T}no" >&6; }
9363 if test "$aros_target_ld" = ""; then
9364 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9365 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9366 { (exit 1); exit 1; }; }
9370 if test "$aros_target_as" = ""; then
9371 if test "$cross_compiling" = "yes" ; then
9372 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9373 set dummy ${target_tool_prefix}as; ac_word=$2
9374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9376 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9377 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 else
9379 case $aros_target_as_ln in
9380 [\\/]* | ?:[\\/]*)
9381 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385 for as_dir in $PATH
9387 IFS=$as_save_IFS
9388 test -z "$as_dir" && as_dir=.
9389 for ac_exec_ext in '' $ac_executable_extensions; do
9390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9391 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9393 break 2
9395 done
9396 done
9397 IFS=$as_save_IFS
9400 esac
9402 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9403 if test -n "$aros_target_as_ln"; then
9404 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9405 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9406 else
9407 { echo "$as_me:$LINENO: result: no" >&5
9408 echo "${ECHO_T}no" >&6; }
9412 else
9413 if test "$GCC" = "yes"; then
9414 aros_gcc_as=`$CC -print-prog-name=as`
9415 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9416 set dummy `basename $aros_gcc_as`; ac_word=$2
9417 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9418 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9419 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9420 echo $ECHO_N "(cached) $ECHO_C" >&6
9421 else
9422 case $aros_target_as_ln in
9423 [\\/]* | ?:[\\/]*)
9424 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9428 for as_dir in `dirname $aros_gcc_as`
9430 IFS=$as_save_IFS
9431 test -z "$as_dir" && as_dir=.
9432 for ac_exec_ext in '' $ac_executable_extensions; do
9433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9434 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9436 break 2
9438 done
9439 done
9440 IFS=$as_save_IFS
9443 esac
9445 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9446 if test -n "$aros_target_as_ln"; then
9447 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9448 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9449 else
9450 { echo "$as_me:$LINENO: result: no" >&5
9451 echo "${ECHO_T}no" >&6; }
9456 if test "$aros_target_as_ln" = ""; then
9457 # Extract the first word of "as", so it can be a program name with args.
9458 set dummy as; ac_word=$2
9459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9461 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9463 else
9464 case $aros_target_as_ln in
9465 [\\/]* | ?:[\\/]*)
9466 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9470 for as_dir in $PATH
9472 IFS=$as_save_IFS
9473 test -z "$as_dir" && as_dir=.
9474 for ac_exec_ext in '' $ac_executable_extensions; do
9475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9476 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9478 break 2
9480 done
9481 done
9482 IFS=$as_save_IFS
9485 esac
9487 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9488 if test -n "$aros_target_as_ln"; then
9489 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9490 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9491 else
9492 { echo "$as_me:$LINENO: result: no" >&5
9493 echo "${ECHO_T}no" >&6; }
9499 else
9500 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9501 set dummy $aros_target_as; ac_word=$2
9502 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9503 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9504 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
9506 else
9507 case $aros_target_as_ln in
9508 [\\/]* | ?:[\\/]*)
9509 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9513 for as_dir in $PATH
9515 IFS=$as_save_IFS
9516 test -z "$as_dir" && as_dir=.
9517 for ac_exec_ext in '' $ac_executable_extensions; do
9518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9519 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9521 break 2
9523 done
9524 done
9525 IFS=$as_save_IFS
9528 esac
9530 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9531 if test -n "$aros_target_as_ln"; then
9532 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9533 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9534 else
9535 { echo "$as_me:$LINENO: result: no" >&5
9536 echo "${ECHO_T}no" >&6; }
9542 if test "$aros_target_as_ln" = ""; then
9543 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9544 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9545 { (exit 1); exit 1; }; }
9548 if test "$aros_kernel_ld" = ""; then
9549 if test "$cross_compiling" = "yes" ; then
9550 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9551 set dummy ${target_tool_prefix}ld; ac_word=$2
9552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9554 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9555 echo $ECHO_N "(cached) $ECHO_C" >&6
9556 else
9557 case $aros_kernel_ld in
9558 [\\/]* | ?:[\\/]*)
9559 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9563 for as_dir in $PATH
9565 IFS=$as_save_IFS
9566 test -z "$as_dir" && as_dir=.
9567 for ac_exec_ext in '' $ac_executable_extensions; do
9568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9569 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9571 break 2
9573 done
9574 done
9575 IFS=$as_save_IFS
9578 esac
9580 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9581 if test -n "$aros_kernel_ld"; then
9582 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9583 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9584 else
9585 { echo "$as_me:$LINENO: result: no" >&5
9586 echo "${ECHO_T}no" >&6; }
9590 else
9591 if test "$GCC" = "yes"; then
9592 aros_gcc_ld=`$CC -print-prog-name=ld`
9593 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9594 set dummy `basename $aros_gcc_ld`; ac_word=$2
9595 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9597 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9598 echo $ECHO_N "(cached) $ECHO_C" >&6
9599 else
9600 case $aros_kernel_ld in
9601 [\\/]* | ?:[\\/]*)
9602 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9606 for as_dir in `dirname $aros_gcc_ld`
9608 IFS=$as_save_IFS
9609 test -z "$as_dir" && as_dir=.
9610 for ac_exec_ext in '' $ac_executable_extensions; do
9611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9612 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9614 break 2
9616 done
9617 done
9618 IFS=$as_save_IFS
9621 esac
9623 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9624 if test -n "$aros_kernel_ld"; then
9625 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9626 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9627 else
9628 { echo "$as_me:$LINENO: result: no" >&5
9629 echo "${ECHO_T}no" >&6; }
9634 if test "$aros_kernel_ld" = ""; then
9635 # Extract the first word of "ld", so it can be a program name with args.
9636 set dummy ld; ac_word=$2
9637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9639 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9640 echo $ECHO_N "(cached) $ECHO_C" >&6
9641 else
9642 case $aros_kernel_ld in
9643 [\\/]* | ?:[\\/]*)
9644 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648 for as_dir in $PATH
9650 IFS=$as_save_IFS
9651 test -z "$as_dir" && as_dir=.
9652 for ac_exec_ext in '' $ac_executable_extensions; do
9653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9654 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9656 break 2
9658 done
9659 done
9660 IFS=$as_save_IFS
9663 esac
9665 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9666 if test -n "$aros_kernel_ld"; then
9667 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9668 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9669 else
9670 { echo "$as_me:$LINENO: result: no" >&5
9671 echo "${ECHO_T}no" >&6; }
9677 else
9678 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9679 set dummy $aros_kernel_ld; ac_word=$2
9680 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9682 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9683 echo $ECHO_N "(cached) $ECHO_C" >&6
9684 else
9685 case $aros_kernel_ld in
9686 [\\/]* | ?:[\\/]*)
9687 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9691 for as_dir in $PATH
9693 IFS=$as_save_IFS
9694 test -z "$as_dir" && as_dir=.
9695 for ac_exec_ext in '' $ac_executable_extensions; do
9696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9697 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9699 break 2
9701 done
9702 done
9703 IFS=$as_save_IFS
9706 esac
9708 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9709 if test -n "$aros_kernel_ld"; then
9710 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9711 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9712 else
9713 { echo "$as_me:$LINENO: result: no" >&5
9714 echo "${ECHO_T}no" >&6; }
9720 if test "$aros_kernel_ld" = ""; then
9721 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9722 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9723 { (exit 1); exit 1; }; }
9726 if test "$aros_target_ar" = ""; then
9727 if test "$cross_compiling" = "yes" ; then
9728 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9729 set dummy ${target_tool_prefix}ar; ac_word=$2
9730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9732 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735 case $aros_target_ar_ln in
9736 [\\/]* | ?:[\\/]*)
9737 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741 for as_dir in $PATH
9743 IFS=$as_save_IFS
9744 test -z "$as_dir" && as_dir=.
9745 for ac_exec_ext in '' $ac_executable_extensions; do
9746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9747 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9749 break 2
9751 done
9752 done
9753 IFS=$as_save_IFS
9756 esac
9758 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9759 if test -n "$aros_target_ar_ln"; then
9760 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9761 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9762 else
9763 { echo "$as_me:$LINENO: result: no" >&5
9764 echo "${ECHO_T}no" >&6; }
9768 else
9769 if test "$GCC" = "yes"; then
9770 aros_gcc_ar=`$CC -print-prog-name=ar`
9771 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9772 set dummy `basename $aros_gcc_ar`; ac_word=$2
9773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9775 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9776 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 else
9778 case $aros_target_ar_ln in
9779 [\\/]* | ?:[\\/]*)
9780 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9784 for as_dir in `dirname $aros_gcc_ar`
9786 IFS=$as_save_IFS
9787 test -z "$as_dir" && as_dir=.
9788 for ac_exec_ext in '' $ac_executable_extensions; do
9789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9790 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9792 break 2
9794 done
9795 done
9796 IFS=$as_save_IFS
9799 esac
9801 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9802 if test -n "$aros_target_ar_ln"; then
9803 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9804 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9805 else
9806 { echo "$as_me:$LINENO: result: no" >&5
9807 echo "${ECHO_T}no" >&6; }
9812 if test "$aros_target_ar_ln" = ""; then
9813 # Extract the first word of "ar", so it can be a program name with args.
9814 set dummy ar; ac_word=$2
9815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9817 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9818 echo $ECHO_N "(cached) $ECHO_C" >&6
9819 else
9820 case $aros_target_ar_ln in
9821 [\\/]* | ?:[\\/]*)
9822 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9826 for as_dir in $PATH
9828 IFS=$as_save_IFS
9829 test -z "$as_dir" && as_dir=.
9830 for ac_exec_ext in '' $ac_executable_extensions; do
9831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9832 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9834 break 2
9836 done
9837 done
9838 IFS=$as_save_IFS
9841 esac
9843 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9844 if test -n "$aros_target_ar_ln"; then
9845 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9846 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9847 else
9848 { echo "$as_me:$LINENO: result: no" >&5
9849 echo "${ECHO_T}no" >&6; }
9855 else
9856 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9857 set dummy $aros_target_ar; ac_word=$2
9858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9860 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9861 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 else
9863 case $aros_target_ar_ln in
9864 [\\/]* | ?:[\\/]*)
9865 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9869 for as_dir in $PATH
9871 IFS=$as_save_IFS
9872 test -z "$as_dir" && as_dir=.
9873 for ac_exec_ext in '' $ac_executable_extensions; do
9874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9875 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9877 break 2
9879 done
9880 done
9881 IFS=$as_save_IFS
9884 esac
9886 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9887 if test -n "$aros_target_ar_ln"; then
9888 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9889 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9890 else
9891 { echo "$as_me:$LINENO: result: no" >&5
9892 echo "${ECHO_T}no" >&6; }
9898 if test "$aros_target_ar_ln" = ""; then
9899 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
9900 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
9901 { (exit 1); exit 1; }; }
9904 if test "$aros_target_nm" = ""; then
9905 if test "$cross_compiling" = "yes" ; then
9906 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
9907 set dummy ${target_tool_prefix}nm; ac_word=$2
9908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9910 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9911 echo $ECHO_N "(cached) $ECHO_C" >&6
9912 else
9913 case $aros_target_nm_ln in
9914 [\\/]* | ?:[\\/]*)
9915 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9919 for as_dir in $PATH
9921 IFS=$as_save_IFS
9922 test -z "$as_dir" && as_dir=.
9923 for ac_exec_ext in '' $ac_executable_extensions; do
9924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9925 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9927 break 2
9929 done
9930 done
9931 IFS=$as_save_IFS
9934 esac
9936 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9937 if test -n "$aros_target_nm_ln"; then
9938 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9939 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9940 else
9941 { echo "$as_me:$LINENO: result: no" >&5
9942 echo "${ECHO_T}no" >&6; }
9946 else
9947 if test "$GCC" = "yes"; then
9948 aros_gcc_nm=`$CC -print-prog-name=nm`
9949 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9950 set dummy `basename $aros_gcc_nm`; ac_word=$2
9951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9953 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9954 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 else
9956 case $aros_target_nm_ln in
9957 [\\/]* | ?:[\\/]*)
9958 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9962 for as_dir in `dirname $aros_gcc_nm`
9964 IFS=$as_save_IFS
9965 test -z "$as_dir" && as_dir=.
9966 for ac_exec_ext in '' $ac_executable_extensions; do
9967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9968 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9970 break 2
9972 done
9973 done
9974 IFS=$as_save_IFS
9977 esac
9979 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9980 if test -n "$aros_target_nm_ln"; then
9981 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9982 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9983 else
9984 { echo "$as_me:$LINENO: result: no" >&5
9985 echo "${ECHO_T}no" >&6; }
9990 if test "$aros_target_nm_ln" = ""; then
9991 # Extract the first word of "nm", so it can be a program name with args.
9992 set dummy nm; ac_word=$2
9993 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9994 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9995 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9996 echo $ECHO_N "(cached) $ECHO_C" >&6
9997 else
9998 case $aros_target_nm_ln in
9999 [\\/]* | ?:[\\/]*)
10000 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10004 for as_dir in $PATH
10006 IFS=$as_save_IFS
10007 test -z "$as_dir" && as_dir=.
10008 for ac_exec_ext in '' $ac_executable_extensions; do
10009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10010 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10012 break 2
10014 done
10015 done
10016 IFS=$as_save_IFS
10019 esac
10021 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10022 if test -n "$aros_target_nm_ln"; then
10023 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10024 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10025 else
10026 { echo "$as_me:$LINENO: result: no" >&5
10027 echo "${ECHO_T}no" >&6; }
10033 else
10034 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10035 set dummy $aros_target_nm; ac_word=$2
10036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10038 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10039 echo $ECHO_N "(cached) $ECHO_C" >&6
10040 else
10041 case $aros_target_nm_ln in
10042 [\\/]* | ?:[\\/]*)
10043 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in $PATH
10049 IFS=$as_save_IFS
10050 test -z "$as_dir" && as_dir=.
10051 for ac_exec_ext in '' $ac_executable_extensions; do
10052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10053 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10055 break 2
10057 done
10058 done
10059 IFS=$as_save_IFS
10062 esac
10064 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10065 if test -n "$aros_target_nm_ln"; then
10066 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10067 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10068 else
10069 { echo "$as_me:$LINENO: result: no" >&5
10070 echo "${ECHO_T}no" >&6; }
10076 if test "$aros_target_nm_ln" = ""; then
10077 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10078 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10079 { (exit 1); exit 1; }; }
10082 if test "$aros_target_objcopy" = ""; then
10083 if test "$cross_compiling" = "yes" ; then
10084 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10085 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10086 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10087 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10088 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10089 echo $ECHO_N "(cached) $ECHO_C" >&6
10090 else
10091 case $aros_target_objcopy_ln in
10092 [\\/]* | ?:[\\/]*)
10093 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10097 for as_dir in $PATH
10099 IFS=$as_save_IFS
10100 test -z "$as_dir" && as_dir=.
10101 for ac_exec_ext in '' $ac_executable_extensions; do
10102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10103 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10104 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 break 2
10107 done
10108 done
10109 IFS=$as_save_IFS
10112 esac
10114 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10115 if test -n "$aros_target_objcopy_ln"; then
10116 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10117 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10118 else
10119 { echo "$as_me:$LINENO: result: no" >&5
10120 echo "${ECHO_T}no" >&6; }
10124 else
10125 if test "$GCC" = "yes"; then
10126 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10127 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10128 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10129 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10131 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10132 echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134 case $aros_target_objcopy_ln in
10135 [\\/]* | ?:[\\/]*)
10136 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140 for as_dir in `dirname $aros_gcc_objcopy`
10142 IFS=$as_save_IFS
10143 test -z "$as_dir" && as_dir=.
10144 for ac_exec_ext in '' $ac_executable_extensions; do
10145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10146 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10148 break 2
10150 done
10151 done
10152 IFS=$as_save_IFS
10155 esac
10157 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10158 if test -n "$aros_target_objcopy_ln"; then
10159 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10160 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10161 else
10162 { echo "$as_me:$LINENO: result: no" >&5
10163 echo "${ECHO_T}no" >&6; }
10168 if test "$aros_target_objcopy_ln" = ""; then
10169 # Extract the first word of "objcopy", so it can be a program name with args.
10170 set dummy objcopy; ac_word=$2
10171 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10173 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176 case $aros_target_objcopy_ln in
10177 [\\/]* | ?:[\\/]*)
10178 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10182 for as_dir in $PATH
10184 IFS=$as_save_IFS
10185 test -z "$as_dir" && as_dir=.
10186 for ac_exec_ext in '' $ac_executable_extensions; do
10187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10188 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 break 2
10192 done
10193 done
10194 IFS=$as_save_IFS
10197 esac
10199 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10200 if test -n "$aros_target_objcopy_ln"; then
10201 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10202 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10203 else
10204 { echo "$as_me:$LINENO: result: no" >&5
10205 echo "${ECHO_T}no" >&6; }
10211 else
10212 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10213 set dummy $aros_target_objcopy; ac_word=$2
10214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10216 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10217 echo $ECHO_N "(cached) $ECHO_C" >&6
10218 else
10219 case $aros_target_objcopy_ln in
10220 [\\/]* | ?:[\\/]*)
10221 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in $PATH
10227 IFS=$as_save_IFS
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10231 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10233 break 2
10235 done
10236 done
10237 IFS=$as_save_IFS
10240 esac
10242 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10243 if test -n "$aros_target_objcopy_ln"; then
10244 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10245 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10246 else
10247 { echo "$as_me:$LINENO: result: no" >&5
10248 echo "${ECHO_T}no" >&6; }
10254 if test "$aros_target_objcopy_ln" = ""; then
10255 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10256 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10257 { (exit 1); exit 1; }; }
10260 if test "$aros_target_objdump" = ""; then
10261 if test "$cross_compiling" = "yes" ; then
10262 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10263 set dummy ${target_tool_prefix}objdump; ac_word=$2
10264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10266 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10268 else
10269 case $aros_target_objdump_ln in
10270 [\\/]* | ?:[\\/]*)
10271 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10275 for as_dir in $PATH
10277 IFS=$as_save_IFS
10278 test -z "$as_dir" && as_dir=.
10279 for ac_exec_ext in '' $ac_executable_extensions; do
10280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10281 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10283 break 2
10285 done
10286 done
10287 IFS=$as_save_IFS
10290 esac
10292 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10293 if test -n "$aros_target_objdump_ln"; then
10294 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10295 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10296 else
10297 { echo "$as_me:$LINENO: result: no" >&5
10298 echo "${ECHO_T}no" >&6; }
10302 else
10303 if test "$GCC" = "yes"; then
10304 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10305 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10306 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10309 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10310 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 else
10312 case $aros_target_objdump_ln in
10313 [\\/]* | ?:[\\/]*)
10314 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10318 for as_dir in `dirname $aros_gcc_objdump`
10320 IFS=$as_save_IFS
10321 test -z "$as_dir" && as_dir=.
10322 for ac_exec_ext in '' $ac_executable_extensions; do
10323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10324 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10326 break 2
10328 done
10329 done
10330 IFS=$as_save_IFS
10333 esac
10335 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10336 if test -n "$aros_target_objdump_ln"; then
10337 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10338 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10339 else
10340 { echo "$as_me:$LINENO: result: no" >&5
10341 echo "${ECHO_T}no" >&6; }
10346 if test "$aros_target_objdump_ln" = ""; then
10347 # Extract the first word of "objdump", so it can be a program name with args.
10348 set dummy objdump; ac_word=$2
10349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10351 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354 case $aros_target_objdump_ln in
10355 [\\/]* | ?:[\\/]*)
10356 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10360 for as_dir in $PATH
10362 IFS=$as_save_IFS
10363 test -z "$as_dir" && as_dir=.
10364 for ac_exec_ext in '' $ac_executable_extensions; do
10365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10366 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10368 break 2
10370 done
10371 done
10372 IFS=$as_save_IFS
10375 esac
10377 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10378 if test -n "$aros_target_objdump_ln"; then
10379 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10380 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10381 else
10382 { echo "$as_me:$LINENO: result: no" >&5
10383 echo "${ECHO_T}no" >&6; }
10389 else
10390 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10391 set dummy $aros_target_objdump; ac_word=$2
10392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10394 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10395 echo $ECHO_N "(cached) $ECHO_C" >&6
10396 else
10397 case $aros_target_objdump_ln in
10398 [\\/]* | ?:[\\/]*)
10399 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403 for as_dir in $PATH
10405 IFS=$as_save_IFS
10406 test -z "$as_dir" && as_dir=.
10407 for ac_exec_ext in '' $ac_executable_extensions; do
10408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10409 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10411 break 2
10413 done
10414 done
10415 IFS=$as_save_IFS
10418 esac
10420 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10421 if test -n "$aros_target_objdump_ln"; then
10422 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10423 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10424 else
10425 { echo "$as_me:$LINENO: result: no" >&5
10426 echo "${ECHO_T}no" >&6; }
10432 if test "$aros_target_objdump_ln" = ""; then
10433 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10434 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10435 { (exit 1); exit 1; }; }
10438 if test "$aros_target_ranlib" = ""; then
10439 if test "$cross_compiling" = "yes" ; then
10440 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10441 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10444 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10446 else
10447 case $aros_target_ranlib_ln in
10448 [\\/]* | ?:[\\/]*)
10449 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10453 for as_dir in $PATH
10455 IFS=$as_save_IFS
10456 test -z "$as_dir" && as_dir=.
10457 for ac_exec_ext in '' $ac_executable_extensions; do
10458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10459 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10460 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10461 break 2
10463 done
10464 done
10465 IFS=$as_save_IFS
10468 esac
10470 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10471 if test -n "$aros_target_ranlib_ln"; then
10472 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10473 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10474 else
10475 { echo "$as_me:$LINENO: result: no" >&5
10476 echo "${ECHO_T}no" >&6; }
10480 else
10481 if test "$GCC" = "yes"; then
10482 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10483 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10484 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10487 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489 else
10490 case $aros_target_ranlib_ln in
10491 [\\/]* | ?:[\\/]*)
10492 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496 for as_dir in `dirname $aros_gcc_ranlib`
10498 IFS=$as_save_IFS
10499 test -z "$as_dir" && as_dir=.
10500 for ac_exec_ext in '' $ac_executable_extensions; do
10501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10502 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10504 break 2
10506 done
10507 done
10508 IFS=$as_save_IFS
10511 esac
10513 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10514 if test -n "$aros_target_ranlib_ln"; then
10515 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10516 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10517 else
10518 { echo "$as_me:$LINENO: result: no" >&5
10519 echo "${ECHO_T}no" >&6; }
10524 if test "$aros_target_ranlib_ln" = ""; then
10525 # Extract the first word of "ranlib", so it can be a program name with args.
10526 set dummy ranlib; ac_word=$2
10527 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10529 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10530 echo $ECHO_N "(cached) $ECHO_C" >&6
10531 else
10532 case $aros_target_ranlib_ln in
10533 [\\/]* | ?:[\\/]*)
10534 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10538 for as_dir in $PATH
10540 IFS=$as_save_IFS
10541 test -z "$as_dir" && as_dir=.
10542 for ac_exec_ext in '' $ac_executable_extensions; do
10543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10544 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10546 break 2
10548 done
10549 done
10550 IFS=$as_save_IFS
10553 esac
10555 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10556 if test -n "$aros_target_ranlib_ln"; then
10557 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10558 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10559 else
10560 { echo "$as_me:$LINENO: result: no" >&5
10561 echo "${ECHO_T}no" >&6; }
10567 else
10568 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10569 set dummy $aros_target_ranlib; ac_word=$2
10570 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10571 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10572 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10573 echo $ECHO_N "(cached) $ECHO_C" >&6
10574 else
10575 case $aros_target_ranlib_ln in
10576 [\\/]* | ?:[\\/]*)
10577 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581 for as_dir in $PATH
10583 IFS=$as_save_IFS
10584 test -z "$as_dir" && as_dir=.
10585 for ac_exec_ext in '' $ac_executable_extensions; do
10586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10587 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10588 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10589 break 2
10591 done
10592 done
10593 IFS=$as_save_IFS
10596 esac
10598 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10599 if test -n "$aros_target_ranlib_ln"; then
10600 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10601 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10602 else
10603 { echo "$as_me:$LINENO: result: no" >&5
10604 echo "${ECHO_T}no" >&6; }
10610 if test "$aros_target_ranlib_ln" = ""; then
10611 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10612 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10613 { (exit 1); exit 1; }; }
10616 if test "$aros_target_strip" = ""; then
10617 if test "$cross_compiling" = "yes" ; then
10618 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10619 set dummy ${target_tool_prefix}strip; ac_word=$2
10620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10622 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10623 echo $ECHO_N "(cached) $ECHO_C" >&6
10624 else
10625 case $aros_target_strip_ln in
10626 [\\/]* | ?:[\\/]*)
10627 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10631 for as_dir in $PATH
10633 IFS=$as_save_IFS
10634 test -z "$as_dir" && as_dir=.
10635 for ac_exec_ext in '' $ac_executable_extensions; do
10636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10637 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10639 break 2
10641 done
10642 done
10643 IFS=$as_save_IFS
10646 esac
10648 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10649 if test -n "$aros_target_strip_ln"; then
10650 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10651 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10652 else
10653 { echo "$as_me:$LINENO: result: no" >&5
10654 echo "${ECHO_T}no" >&6; }
10658 else
10659 if test "$GCC" = "yes"; then
10660 aros_gcc_strip=`$CC -print-prog-name=strip`
10661 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10662 set dummy `basename $aros_gcc_strip`; ac_word=$2
10663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10665 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10666 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 else
10668 case $aros_target_strip_ln in
10669 [\\/]* | ?:[\\/]*)
10670 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10674 for as_dir in `dirname $aros_gcc_strip`
10676 IFS=$as_save_IFS
10677 test -z "$as_dir" && as_dir=.
10678 for ac_exec_ext in '' $ac_executable_extensions; do
10679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10680 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10682 break 2
10684 done
10685 done
10686 IFS=$as_save_IFS
10689 esac
10691 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10692 if test -n "$aros_target_strip_ln"; then
10693 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10694 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10695 else
10696 { echo "$as_me:$LINENO: result: no" >&5
10697 echo "${ECHO_T}no" >&6; }
10702 if test "$aros_target_strip_ln" = ""; then
10703 # Extract the first word of "strip", so it can be a program name with args.
10704 set dummy strip; ac_word=$2
10705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10707 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10708 echo $ECHO_N "(cached) $ECHO_C" >&6
10709 else
10710 case $aros_target_strip_ln in
10711 [\\/]* | ?:[\\/]*)
10712 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10716 for as_dir in $PATH
10718 IFS=$as_save_IFS
10719 test -z "$as_dir" && as_dir=.
10720 for ac_exec_ext in '' $ac_executable_extensions; do
10721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10722 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10724 break 2
10726 done
10727 done
10728 IFS=$as_save_IFS
10731 esac
10733 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10734 if test -n "$aros_target_strip_ln"; then
10735 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10736 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10737 else
10738 { echo "$as_me:$LINENO: result: no" >&5
10739 echo "${ECHO_T}no" >&6; }
10745 else
10746 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10747 set dummy $aros_target_strip; ac_word=$2
10748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10750 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10751 echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753 case $aros_target_strip_ln in
10754 [\\/]* | ?:[\\/]*)
10755 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10759 for as_dir in $PATH
10761 IFS=$as_save_IFS
10762 test -z "$as_dir" && as_dir=.
10763 for ac_exec_ext in '' $ac_executable_extensions; do
10764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10765 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10767 break 2
10769 done
10770 done
10771 IFS=$as_save_IFS
10774 esac
10776 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10777 if test -n "$aros_target_strip_ln"; then
10778 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10779 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10780 else
10781 { echo "$as_me:$LINENO: result: no" >&5
10782 echo "${ECHO_T}no" >&6; }
10788 if test "$aros_target_strip_ln" = ""; then
10789 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10790 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10791 { (exit 1); exit 1; }; }
10794 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10795 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10796 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10797 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10798 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10799 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10800 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10802 # aros_cc_pre is a variable that is added to the front of the compiler name
10803 # in the generated aros-gcc shell script. We need this to enable the cache
10804 # to work across cleaned builds. Also, support DISTCC using the correct
10805 # environment variable.
10808 if test "x${DISTCC}" != "x" ; then
10809 if test "x${CCACHE}" != "x" ; then
10810 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10811 else
10812 aros_cc_pre="${DISTCC} "
10814 else
10815 if test "x${CCACHE}" != "x" ; then
10816 aros_cc_pre="${CCACHE} "
10820 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10822 aros_target_nostdinc_cflags=-nostdinc
10824 aros_target_nostartup_ldflags=-nostartfiles
10826 aros_target_nix_ldflags=-nix
10828 aros_target_detach_ldflags=-detach
10830 aros_target_nostdlib_ldflags=-nostdlib
10833 # Target tools
10834 if test "$aros_target_cc" = ""; then
10835 orig_target_cc=$aros_kernel_cc
10836 else
10837 orig_target_cc=$aros_target_cc
10839 if test "$aros_target_ld" = ""; then
10840 orig_target_ld=$aros_kernel_ld
10841 else
10842 orig_target_ld=$aros_target_ld
10844 if test "$GCC" = "yes"; then
10845 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10847 aros_target_cc="${prefix}-gcc"
10848 aros_target_as="${prefix}-as"
10849 aros_target_ld="${prefix}-ld"
10850 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10851 aros_target_objcopy=${prefix}-objcopy
10852 aros_target_objdump=${prefix}-objdump
10853 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10854 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10855 aros_kernel_nm="${prefix}-nm"
10856 aros_target_strip=${prefix}-strip
10858 # Find the system include path. We can suggest that an alternative is
10859 # used if we don't get it correct. The default is to use /usr/include.
10860 # Which is set in the aros_target_incl_def variable.
10862 # Check whether --enable-includes was given.
10863 if test "${enable_includes+set}" = set; then
10864 enableval=$enable_includes; aros_target_incl=$enable_includes
10865 else
10866 aros_target_incl=$aros_target_incl_def
10870 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10871 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
10872 if test "$aros_target_cc_includes" = "" ; then
10873 #try to guess where the directory is
10874 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
10875 if ! test -d $aros_target_cc_includes; then
10876 #the directory doesn't exist, we need to do some more work
10877 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
10879 #these are the headers we're looling for
10880 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
10881 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
10882 zutil.h"
10884 dirs=
10885 for h in $headers; do
10886 #which other headers each of the above headers needs?
10887 deps=$(echo "#include <$h>" | \
10888 $aros_host_cc -E -M - 2>/dev/null | \
10889 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
10891 #copy all the needed headers to a directory beneath gendir
10892 for d in $deps; do
10893 h=$(basename $d)
10894 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
10895 sed -n "s,^.*/include\(/.*\),\1,p")
10896 ! test -d $dir && mkdir -p $dir
10897 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
10898 done
10899 done
10902 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
10903 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
10906 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
10907 # On GCC >= 4.0 -iquote should be used
10910 save_cc="$CC"
10911 save_cflags="$CFLAGS"
10912 CC="$aros_kernel_cc"
10913 CFLAGS="-iquote."
10914 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
10915 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
10916 cat >conftest.$ac_ext <<_ACEOF
10917 /* confdefs.h. */
10918 _ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h. */
10924 main ()
10928 return 0;
10930 _ACEOF
10931 rm -f conftest.$ac_objext
10932 if { (ac_try="$ac_compile"
10933 case "(($ac_try" in
10934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10935 *) ac_try_echo=$ac_try;;
10936 esac
10937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10938 (eval "$ac_compile") 2>conftest.er1
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } && {
10945 test -z "$ac_c_werror_flag" ||
10946 test ! -s conftest.err
10947 } && test -s conftest.$ac_objext; then
10948 has_iquote="yes"
10949 else
10950 echo "$as_me: failed program was:" >&5
10951 sed 's/^/| /' conftest.$ac_ext >&5
10953 has_iquote="no"
10956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10957 { echo "$as_me:$LINENO: result: $has_iquote" >&5
10958 echo "${ECHO_T}$has_iquote" >&6; }
10959 if test "x-$has_iquote" = "x-yes" ; then
10960 aros_cflags_iquote=-iquote
10961 aros_cflags_iquote_end=
10962 else
10963 aros_cflags_iquote=-I
10964 aros_cflags_iquote_end=-I-
10966 CC="$save_cc"
10967 CFLAGS="$save_cflags"
10973 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
10974 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
10976 # Check whether --with-resolution was given.
10977 if test "${with_resolution+set}" = set; then
10978 withval=$with_resolution; resolution=$withval
10979 else
10980 resolution=none
10983 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
10984 if test "$resolution" = "yes" ; then
10985 resolution="none"
10987 if test "$resolution" = "no" ; then
10988 resolution="none"
10990 if test "$resolution" != "none" ; then
10991 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
10992 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
10993 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
10995 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
10996 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
10997 aros_cv_default_wbwidth=$aros_default_wbwidth
10998 aros_cv_default_wbheight=$aros_default_wbheight
10999 aros_cv_default_wbdepth=$aros_default_wbdepth
11001 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
11002 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
11003 # Check whether --enable-bochs_hack was given.
11004 if test "${enable_bochs_hack+set}" = set; then
11005 enableval=$enable_bochs_hack; bochs_hack="yes"
11006 else
11007 bochs_hack="no"
11010 if test "$bochs_hack" = "yes" ; then
11011 aros_bochs_hack="1"
11013 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
11014 echo "${ECHO_T}$bochs_hack" >&6; }
11016 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11017 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11019 # Check whether --with-serial-debug was given.
11020 if test "${with_serial_debug+set}" = set; then
11021 withval=$with_serial_debug; serial_debug=$withval
11022 else
11023 serial_debug=none
11026 if test "$aros_serial_debug" = 0 ; then
11027 serial_debug_forced=""
11028 if test "$serial_debug" = "yes" ; then
11029 serial_debug="2"
11031 if test "$serial_debug" = "no" ; then
11032 serial_debug="none"
11034 else
11035 serial_debug_forced="(forced)"
11036 serial_debug=$aros_serial_debug
11038 if test "$serial_debug" != "none" ; then
11039 aros_serial_debug=$serial_debug
11040 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11041 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11042 else
11043 { echo "$as_me:$LINENO: result: no" >&5
11044 echo "${ECHO_T}no" >&6; }
11047 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11048 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11049 # Check whether --enable-palm_debug_hack was given.
11050 if test "${enable_palm_debug_hack+set}" = set; then
11051 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11052 else
11053 palm_debug_hack="no"
11056 if test "$palm_debug_hack" = "yes" ; then
11057 aros_palm_debug_hack="1"
11059 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11060 echo "${ECHO_T}$palm_debug_hack" >&6; }
11063 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11064 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11065 # Check whether --enable-nesting_supervisor was given.
11066 if test "${enable_nesting_supervisor+set}" = set; then
11067 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11068 else
11069 nesting_supervisor="no"
11072 if test "$nesting_supervisor" = "yes" ; then
11073 aros_nesting_supervisor="1"
11075 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11076 echo "${ECHO_T}$nesting_supervisor" >&6; }
11079 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11081 if test "x-$aros_host_arch" != "x-darwin" ; then
11082 { echo "$as_me:$LINENO: checking for dlopen" >&5
11083 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11084 if test "${ac_cv_func_dlopen+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 else
11087 cat >conftest.$ac_ext <<_ACEOF
11088 /* confdefs.h. */
11089 _ACEOF
11090 cat confdefs.h >>conftest.$ac_ext
11091 cat >>conftest.$ac_ext <<_ACEOF
11092 /* end confdefs.h. */
11093 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11094 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11095 #define dlopen innocuous_dlopen
11097 /* System header to define __stub macros and hopefully few prototypes,
11098 which can conflict with char dlopen (); below.
11099 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11100 <limits.h> exists even on freestanding compilers. */
11102 #ifdef __STDC__
11103 # include <limits.h>
11104 #else
11105 # include <assert.h>
11106 #endif
11108 #undef dlopen
11110 /* Override any GCC internal prototype to avoid an error.
11111 Use char because int might match the return type of a GCC
11112 builtin and then its argument prototype would still apply. */
11113 #ifdef __cplusplus
11114 extern "C"
11115 #endif
11116 char dlopen ();
11117 /* The GNU C library defines this for functions which it implements
11118 to always fail with ENOSYS. Some functions are actually named
11119 something starting with __ and the normal name is an alias. */
11120 #if defined __stub_dlopen || defined __stub___dlopen
11121 choke me
11122 #endif
11125 main ()
11127 return dlopen ();
11129 return 0;
11131 _ACEOF
11132 rm -f conftest.$ac_objext conftest$ac_exeext
11133 if { (ac_try="$ac_link"
11134 case "(($ac_try" in
11135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11136 *) ac_try_echo=$ac_try;;
11137 esac
11138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11139 (eval "$ac_link") 2>conftest.er1
11140 ac_status=$?
11141 grep -v '^ *+' conftest.er1 >conftest.err
11142 rm -f conftest.er1
11143 cat conftest.err >&5
11144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145 (exit $ac_status); } && {
11146 test -z "$ac_c_werror_flag" ||
11147 test ! -s conftest.err
11148 } && test -s conftest$ac_exeext &&
11149 $as_test_x conftest$ac_exeext; then
11150 ac_cv_func_dlopen=yes
11151 else
11152 echo "$as_me: failed program was:" >&5
11153 sed 's/^/| /' conftest.$ac_ext >&5
11155 ac_cv_func_dlopen=no
11158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11159 conftest$ac_exeext conftest.$ac_ext
11161 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11162 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11163 if test $ac_cv_func_dlopen = yes; then
11164 have_dl="yes"
11165 else
11166 have_dl="no"
11169 if test "x-$have_dl" = "x-no" ; then
11170 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11171 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11172 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11174 else
11175 ac_check_lib_save_LIBS=$LIBS
11176 LIBS="-ldl $LIBS"
11177 cat >conftest.$ac_ext <<_ACEOF
11178 /* confdefs.h. */
11179 _ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h. */
11184 /* Override any GCC internal prototype to avoid an error.
11185 Use char because int might match the return type of a GCC
11186 builtin and then its argument prototype would still apply. */
11187 #ifdef __cplusplus
11188 extern "C"
11189 #endif
11190 char dlopen ();
11192 main ()
11194 return dlopen ();
11196 return 0;
11198 _ACEOF
11199 rm -f conftest.$ac_objext conftest$ac_exeext
11200 if { (ac_try="$ac_link"
11201 case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11204 esac
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_link") 2>conftest.er1
11207 ac_status=$?
11208 grep -v '^ *+' conftest.er1 >conftest.err
11209 rm -f conftest.er1
11210 cat conftest.err >&5
11211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11212 (exit $ac_status); } && {
11213 test -z "$ac_c_werror_flag" ||
11214 test ! -s conftest.err
11215 } && test -s conftest$ac_exeext &&
11216 $as_test_x conftest$ac_exeext; then
11217 ac_cv_lib_dl_dlopen=yes
11218 else
11219 echo "$as_me: failed program was:" >&5
11220 sed 's/^/| /' conftest.$ac_ext >&5
11222 ac_cv_lib_dl_dlopen=no
11225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11226 conftest$ac_exeext conftest.$ac_ext
11227 LIBS=$ac_check_lib_save_LIBS
11229 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11230 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11231 if test $ac_cv_lib_dl_dlopen = yes; then
11232 have_dl="yes"
11233 aros_host_ldflags="$aros_host_ldflags -ldl"
11234 else
11235 have_dl="no"
11239 if test "x-$have_dl" = "x-no" ; then
11240 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11241 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11242 { (exit 1); exit 1; }; }
11247 # Check whether --enable-x11_hidd was given.
11248 if test "${enable_x11_hidd+set}" = set; then
11249 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11250 else
11251 x11_hidd="auto"
11254 case "x-$x11_hidd" in
11255 x-yes|x-no|x-auto) ;;
11256 *) x11_hidd="auto" ;;
11257 esac
11259 if test "x-$x11_hidd" != "x-no" ; then
11261 { echo "$as_me:$LINENO: checking for X" >&5
11262 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11265 # Check whether --with-x was given.
11266 if test "${with_x+set}" = set; then
11267 withval=$with_x;
11270 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11271 if test "x$with_x" = xno; then
11272 # The user explicitly disabled X.
11273 have_x=disabled
11274 else
11275 case $x_includes,$x_libraries in #(
11276 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11277 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11278 { (exit 1); exit 1; }; };; #(
11279 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11281 else
11282 # One or both of the vars are not set, and there is no cached value.
11283 ac_x_includes=no ac_x_libraries=no
11284 rm -f -r conftest.dir
11285 if mkdir conftest.dir; then
11286 cd conftest.dir
11287 cat >Imakefile <<'_ACEOF'
11288 incroot:
11289 @echo incroot='${INCROOT}'
11290 usrlibdir:
11291 @echo usrlibdir='${USRLIBDIR}'
11292 libdir:
11293 @echo libdir='${LIBDIR}'
11294 _ACEOF
11295 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11296 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11297 for ac_var in incroot usrlibdir libdir; do
11298 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11299 done
11300 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11301 for ac_extension in a so sl; do
11302 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11303 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11304 ac_im_usrlibdir=$ac_im_libdir; break
11306 done
11307 # Screen out bogus values from the imake configuration. They are
11308 # bogus both because they are the default anyway, and because
11309 # using them would break gcc on systems where it needs fixed includes.
11310 case $ac_im_incroot in
11311 /usr/include) ac_x_includes= ;;
11312 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11313 esac
11314 case $ac_im_usrlibdir in
11315 /usr/lib | /lib) ;;
11316 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11317 esac
11319 cd ..
11320 rm -f -r conftest.dir
11323 # Standard set of common directories for X headers.
11324 # Check X11 before X11Rn because it is often a symlink to the current release.
11325 ac_x_header_dirs='
11326 /usr/X11/include
11327 /usr/X11R6/include
11328 /usr/X11R5/include
11329 /usr/X11R4/include
11331 /usr/include/X11
11332 /usr/include/X11R6
11333 /usr/include/X11R5
11334 /usr/include/X11R4
11336 /usr/local/X11/include
11337 /usr/local/X11R6/include
11338 /usr/local/X11R5/include
11339 /usr/local/X11R4/include
11341 /usr/local/include/X11
11342 /usr/local/include/X11R6
11343 /usr/local/include/X11R5
11344 /usr/local/include/X11R4
11346 /usr/X386/include
11347 /usr/x386/include
11348 /usr/XFree86/include/X11
11350 /usr/include
11351 /usr/local/include
11352 /usr/unsupported/include
11353 /usr/athena/include
11354 /usr/local/x11r5/include
11355 /usr/lpp/Xamples/include
11357 /usr/openwin/include
11358 /usr/openwin/share/include'
11360 if test "$ac_x_includes" = no; then
11361 # Guess where to find include files, by looking for Xlib.h.
11362 # First, try using that file with no special directory specified.
11363 cat >conftest.$ac_ext <<_ACEOF
11364 /* confdefs.h. */
11365 _ACEOF
11366 cat confdefs.h >>conftest.$ac_ext
11367 cat >>conftest.$ac_ext <<_ACEOF
11368 /* end confdefs.h. */
11369 #include <X11/Xlib.h>
11370 _ACEOF
11371 if { (ac_try="$ac_cpp conftest.$ac_ext"
11372 case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11375 esac
11376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11378 ac_status=$?
11379 grep -v '^ *+' conftest.er1 >conftest.err
11380 rm -f conftest.er1
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } >/dev/null && {
11384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11385 test ! -s conftest.err
11386 }; then
11387 # We can compile using X headers with no special include directory.
11388 ac_x_includes=
11389 else
11390 echo "$as_me: failed program was:" >&5
11391 sed 's/^/| /' conftest.$ac_ext >&5
11393 for ac_dir in $ac_x_header_dirs; do
11394 if test -r "$ac_dir/X11/Xlib.h"; then
11395 ac_x_includes=$ac_dir
11396 break
11398 done
11401 rm -f conftest.err conftest.$ac_ext
11402 fi # $ac_x_includes = no
11404 if test "$ac_x_libraries" = no; then
11405 # Check for the libraries.
11406 # See if we find them without any special options.
11407 # Don't add to $LIBS permanently.
11408 ac_save_LIBS=$LIBS
11409 LIBS="-lX11 $LIBS"
11410 cat >conftest.$ac_ext <<_ACEOF
11411 /* confdefs.h. */
11412 _ACEOF
11413 cat confdefs.h >>conftest.$ac_ext
11414 cat >>conftest.$ac_ext <<_ACEOF
11415 /* end confdefs.h. */
11416 #include <X11/Xlib.h>
11418 main ()
11420 XrmInitialize ()
11422 return 0;
11424 _ACEOF
11425 rm -f conftest.$ac_objext conftest$ac_exeext
11426 if { (ac_try="$ac_link"
11427 case "(($ac_try" in
11428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11429 *) ac_try_echo=$ac_try;;
11430 esac
11431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11432 (eval "$ac_link") 2>conftest.er1
11433 ac_status=$?
11434 grep -v '^ *+' conftest.er1 >conftest.err
11435 rm -f conftest.er1
11436 cat conftest.err >&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); } && {
11439 test -z "$ac_c_werror_flag" ||
11440 test ! -s conftest.err
11441 } && test -s conftest$ac_exeext &&
11442 $as_test_x conftest$ac_exeext; then
11443 LIBS=$ac_save_LIBS
11444 # We can link X programs with no special library path.
11445 ac_x_libraries=
11446 else
11447 echo "$as_me: failed program was:" >&5
11448 sed 's/^/| /' conftest.$ac_ext >&5
11450 LIBS=$ac_save_LIBS
11451 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11453 # Don't even attempt the hair of trying to link an X program!
11454 for ac_extension in a so sl; do
11455 if test -r "$ac_dir/libX11.$ac_extension"; then
11456 ac_x_libraries=$ac_dir
11457 break 2
11459 done
11460 done
11463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11464 conftest$ac_exeext conftest.$ac_ext
11465 fi # $ac_x_libraries = no
11467 case $ac_x_includes,$ac_x_libraries in #(
11468 no,* | *,no | *\'*)
11469 # Didn't find X, or a directory has "'" in its name.
11470 ac_cv_have_x="have_x=no";; #(
11472 # Record where we found X for the cache.
11473 ac_cv_have_x="have_x=yes\
11474 ac_x_includes='$ac_x_includes'\
11475 ac_x_libraries='$ac_x_libraries'"
11476 esac
11478 ;; #(
11479 *) have_x=yes;;
11480 esac
11481 eval "$ac_cv_have_x"
11482 fi # $with_x != no
11484 if test "$have_x" != yes; then
11485 { echo "$as_me:$LINENO: result: $have_x" >&5
11486 echo "${ECHO_T}$have_x" >&6; }
11487 no_x=yes
11488 else
11489 # If each of the values was on the command line, it overrides each guess.
11490 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11491 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11492 # Update the cache value to reflect the command line values.
11493 ac_cv_have_x="have_x=yes\
11494 ac_x_includes='$x_includes'\
11495 ac_x_libraries='$x_libraries'"
11496 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11497 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11501 x_cflags=
11502 for path in $x_libraries
11504 x_cflags="$x_cflags -L$path"
11505 done
11507 for path in $x_includes
11509 x_cflags="$x_cflags -I$path"
11510 done
11512 if test "x-$no_x" = "x-yes" ; then
11514 if test "x-$x11_hidd" != "x-auto" ; then
11515 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11516 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11517 { (exit 1); exit 1; }; }
11520 else
11521 x11_hidd_target=kernel-x11gfx
11524 # Check whether --enable-x11_shm was given.
11525 if test "${enable_x11_shm+set}" = set; then
11526 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11527 else
11528 x11_hidd_shm="auto"
11531 case "x-$x11_hidd_shm" in
11532 x-yes|x-no|x-auto) ;;
11533 *) x11_hidd_shm="auto" ;;
11534 esac
11536 have_xshm=no
11538 if test "x-$x11_hidd_shm" != "x-no" ; then
11541 for ac_header in sys/ipc.h
11543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 ac_res=`eval echo '${'$as_ac_Header'}'`
11551 { echo "$as_me:$LINENO: result: $ac_res" >&5
11552 echo "${ECHO_T}$ac_res" >&6; }
11553 else
11554 # Is the header compilable?
11555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11557 cat >conftest.$ac_ext <<_ACEOF
11558 /* confdefs.h. */
11559 _ACEOF
11560 cat confdefs.h >>conftest.$ac_ext
11561 cat >>conftest.$ac_ext <<_ACEOF
11562 /* end confdefs.h. */
11563 $ac_includes_default
11564 #include <$ac_header>
11565 _ACEOF
11566 rm -f conftest.$ac_objext
11567 if { (ac_try="$ac_compile"
11568 case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11571 esac
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_compile") 2>conftest.er1
11574 ac_status=$?
11575 grep -v '^ *+' conftest.er1 >conftest.err
11576 rm -f conftest.er1
11577 cat conftest.err >&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } && {
11580 test -z "$ac_c_werror_flag" ||
11581 test ! -s conftest.err
11582 } && test -s conftest.$ac_objext; then
11583 ac_header_compiler=yes
11584 else
11585 echo "$as_me: failed program was:" >&5
11586 sed 's/^/| /' conftest.$ac_ext >&5
11588 ac_header_compiler=no
11591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11593 echo "${ECHO_T}$ac_header_compiler" >&6; }
11595 # Is the header present?
11596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11598 cat >conftest.$ac_ext <<_ACEOF
11599 /* confdefs.h. */
11600 _ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11604 #include <$ac_header>
11605 _ACEOF
11606 if { (ac_try="$ac_cpp conftest.$ac_ext"
11607 case "(($ac_try" in
11608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11609 *) ac_try_echo=$ac_try;;
11610 esac
11611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11613 ac_status=$?
11614 grep -v '^ *+' conftest.er1 >conftest.err
11615 rm -f conftest.er1
11616 cat conftest.err >&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); } >/dev/null && {
11619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11620 test ! -s conftest.err
11621 }; then
11622 ac_header_preproc=yes
11623 else
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.$ac_ext >&5
11627 ac_header_preproc=no
11630 rm -f conftest.err conftest.$ac_ext
11631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11632 echo "${ECHO_T}$ac_header_preproc" >&6; }
11634 # So? What about this header?
11635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11636 yes:no: )
11637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11641 ac_header_preproc=yes
11643 no:yes:* )
11644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11658 esac
11659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11662 echo $ECHO_N "(cached) $ECHO_C" >&6
11663 else
11664 eval "$as_ac_Header=\$ac_header_preproc"
11666 ac_res=`eval echo '${'$as_ac_Header'}'`
11667 { echo "$as_me:$LINENO: result: $ac_res" >&5
11668 echo "${ECHO_T}$ac_res" >&6; }
11671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11672 cat >>confdefs.h <<_ACEOF
11673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11674 _ACEOF
11678 done
11681 for ac_header in sys/shm.h
11683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11688 echo $ECHO_N "(cached) $ECHO_C" >&6
11690 ac_res=`eval echo '${'$as_ac_Header'}'`
11691 { echo "$as_me:$LINENO: result: $ac_res" >&5
11692 echo "${ECHO_T}$ac_res" >&6; }
11693 else
11694 # Is the header compilable?
11695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11697 cat >conftest.$ac_ext <<_ACEOF
11698 /* confdefs.h. */
11699 _ACEOF
11700 cat confdefs.h >>conftest.$ac_ext
11701 cat >>conftest.$ac_ext <<_ACEOF
11702 /* end confdefs.h. */
11703 $ac_includes_default
11704 #include <$ac_header>
11705 _ACEOF
11706 rm -f conftest.$ac_objext
11707 if { (ac_try="$ac_compile"
11708 case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11711 esac
11712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713 (eval "$ac_compile") 2>conftest.er1
11714 ac_status=$?
11715 grep -v '^ *+' conftest.er1 >conftest.err
11716 rm -f conftest.er1
11717 cat conftest.err >&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } && {
11720 test -z "$ac_c_werror_flag" ||
11721 test ! -s conftest.err
11722 } && test -s conftest.$ac_objext; then
11723 ac_header_compiler=yes
11724 else
11725 echo "$as_me: failed program was:" >&5
11726 sed 's/^/| /' conftest.$ac_ext >&5
11728 ac_header_compiler=no
11731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11733 echo "${ECHO_T}$ac_header_compiler" >&6; }
11735 # Is the header present?
11736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11738 cat >conftest.$ac_ext <<_ACEOF
11739 /* confdefs.h. */
11740 _ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11744 #include <$ac_header>
11745 _ACEOF
11746 if { (ac_try="$ac_cpp conftest.$ac_ext"
11747 case "(($ac_try" in
11748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11750 esac
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11753 ac_status=$?
11754 grep -v '^ *+' conftest.er1 >conftest.err
11755 rm -f conftest.er1
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } >/dev/null && {
11759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11760 test ! -s conftest.err
11761 }; then
11762 ac_header_preproc=yes
11763 else
11764 echo "$as_me: failed program was:" >&5
11765 sed 's/^/| /' conftest.$ac_ext >&5
11767 ac_header_preproc=no
11770 rm -f conftest.err conftest.$ac_ext
11771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11772 echo "${ECHO_T}$ac_header_preproc" >&6; }
11774 # So? What about this header?
11775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11776 yes:no: )
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11781 ac_header_preproc=yes
11783 no:yes:* )
11784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11798 esac
11799 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11800 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11801 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11802 echo $ECHO_N "(cached) $ECHO_C" >&6
11803 else
11804 eval "$as_ac_Header=\$ac_header_preproc"
11806 ac_res=`eval echo '${'$as_ac_Header'}'`
11807 { echo "$as_me:$LINENO: result: $ac_res" >&5
11808 echo "${ECHO_T}$ac_res" >&6; }
11811 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11812 cat >>confdefs.h <<_ACEOF
11813 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11814 _ACEOF
11818 done
11821 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11823 save_cflags="$CFLAGS"
11824 CFLAGS="$CFLAGS $x_cflags"
11825 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
11826 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
11827 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
11828 echo $ECHO_N "(cached) $ECHO_C" >&6
11829 else
11830 ac_check_lib_save_LIBS=$LIBS
11831 LIBS="-lXext $LIBS"
11832 cat >conftest.$ac_ext <<_ACEOF
11833 /* confdefs.h. */
11834 _ACEOF
11835 cat confdefs.h >>conftest.$ac_ext
11836 cat >>conftest.$ac_ext <<_ACEOF
11837 /* end confdefs.h. */
11839 /* Override any GCC internal prototype to avoid an error.
11840 Use char because int might match the return type of a GCC
11841 builtin and then its argument prototype would still apply. */
11842 #ifdef __cplusplus
11843 extern "C"
11844 #endif
11845 char XShmQueryExtension ();
11847 main ()
11849 return XShmQueryExtension ();
11851 return 0;
11853 _ACEOF
11854 rm -f conftest.$ac_objext conftest$ac_exeext
11855 if { (ac_try="$ac_link"
11856 case "(($ac_try" in
11857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11858 *) ac_try_echo=$ac_try;;
11859 esac
11860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11861 (eval "$ac_link") 2>conftest.er1
11862 ac_status=$?
11863 grep -v '^ *+' conftest.er1 >conftest.err
11864 rm -f conftest.er1
11865 cat conftest.err >&5
11866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11867 (exit $ac_status); } && {
11868 test -z "$ac_c_werror_flag" ||
11869 test ! -s conftest.err
11870 } && test -s conftest$ac_exeext &&
11871 $as_test_x conftest$ac_exeext; then
11872 ac_cv_lib_Xext_XShmQueryExtension=yes
11873 else
11874 echo "$as_me: failed program was:" >&5
11875 sed 's/^/| /' conftest.$ac_ext >&5
11877 ac_cv_lib_Xext_XShmQueryExtension=no
11880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11881 conftest$ac_exeext conftest.$ac_ext
11882 LIBS=$ac_check_lib_save_LIBS
11884 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
11885 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
11886 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
11887 have_xshm=yes
11890 CFLAGS="$save_cflags"
11894 if test "x-$have_xshm" = "x-yes" ; then
11895 DO_XSHM_SUPPORT="1"
11896 elif test "x-$x11_hidd_shm" = "x-yes" ; then
11897 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
11898 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
11899 { (exit 1); exit 1; }; }
11900 else
11901 DO_XSHM_SUPPORT="0"
11905 # Check whether --enable-x11_vidmode was given.
11906 if test "${enable_x11_vidmode+set}" = set; then
11907 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
11908 else
11909 x11_hidd_vidmode="auto"
11912 case "x-$x11_hidd_vidmode" in
11913 x-yes|x-no|x-auto) ;;
11914 *) x11_hidd_vidmode="auto" ;;
11915 esac
11917 have_vidmode=no
11919 if test "x-$x11_hidd_vidmode" != "x-no" ; then
11921 save_cflags="$CFLAGS"
11922 CFLAGS="$CFLAGS $x_cflags"
11923 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
11924 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
11925 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928 ac_check_lib_save_LIBS=$LIBS
11929 LIBS="-lXxf86vm $LIBS"
11930 cat >conftest.$ac_ext <<_ACEOF
11931 /* confdefs.h. */
11932 _ACEOF
11933 cat confdefs.h >>conftest.$ac_ext
11934 cat >>conftest.$ac_ext <<_ACEOF
11935 /* end confdefs.h. */
11937 /* Override any GCC internal prototype to avoid an error.
11938 Use char because int might match the return type of a GCC
11939 builtin and then its argument prototype would still apply. */
11940 #ifdef __cplusplus
11941 extern "C"
11942 #endif
11943 char XF86VidModeQueryExtension ();
11945 main ()
11947 return XF86VidModeQueryExtension ();
11949 return 0;
11951 _ACEOF
11952 rm -f conftest.$ac_objext conftest$ac_exeext
11953 if { (ac_try="$ac_link"
11954 case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11957 esac
11958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_link") 2>conftest.er1
11960 ac_status=$?
11961 grep -v '^ *+' conftest.er1 >conftest.err
11962 rm -f conftest.er1
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } && {
11966 test -z "$ac_c_werror_flag" ||
11967 test ! -s conftest.err
11968 } && test -s conftest$ac_exeext &&
11969 $as_test_x conftest$ac_exeext; then
11970 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
11971 else
11972 echo "$as_me: failed program was:" >&5
11973 sed 's/^/| /' conftest.$ac_ext >&5
11975 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
11978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11979 conftest$ac_exeext conftest.$ac_ext
11980 LIBS=$ac_check_lib_save_LIBS
11982 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
11983 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
11984 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
11985 have_vidmode=yes
11988 CFLAGS="$save_cflags"
11991 if test "x-$have_vidmode" = "x-yes" ; then
11992 DO_VIDMODE_SUPPORT="1"
11993 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
11994 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
11995 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
11996 { (exit 1); exit 1; }; }
11997 else
11998 DO_VIDMODE_SUPPORT="0"
12002 aros_host_x11_includes=$x_includes
12003 aros_host_x11_libdirs=$x_libraries
12007 # Check whether --enable-sdl_hidd was given.
12008 if test "${enable_sdl_hidd+set}" = set; then
12009 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12010 else
12011 sdl_hidd="auto"
12014 case "x-$sdl_hidd" in
12015 x-yes|x-no|x-auto) ;;
12016 *) sdl_hidd="auto" ;;
12017 esac
12019 if test "x-$sdl_hidd" != "x-no" ; then
12022 # Check whether --with-sdl-prefix was given.
12023 if test "${with_sdl_prefix+set}" = set; then
12024 withval=$with_sdl_prefix; sdl_prefix="$withval"
12025 else
12026 sdl_prefix=""
12030 # Check whether --with-sdl-exec-prefix was given.
12031 if test "${with_sdl_exec_prefix+set}" = set; then
12032 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12033 else
12034 sdl_exec_prefix=""
12037 # Check whether --enable-sdltest was given.
12038 if test "${enable_sdltest+set}" = set; then
12039 enableval=$enable_sdltest;
12040 else
12041 enable_sdltest=yes
12045 if test x$sdl_exec_prefix != x ; then
12046 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12047 if test x${SDL_CONFIG+set} != xset ; then
12048 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12051 if test x$sdl_prefix != x ; then
12052 sdl_args="$sdl_args --prefix=$sdl_prefix"
12053 if test x${SDL_CONFIG+set} != xset ; then
12054 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12058 if test "x$prefix" != xNONE; then
12059 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12061 # Extract the first word of "sdl-config", so it can be a program name with args.
12062 set dummy sdl-config; ac_word=$2
12063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12065 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12066 echo $ECHO_N "(cached) $ECHO_C" >&6
12067 else
12068 case $SDL_CONFIG in
12069 [\\/]* | ?:[\\/]*)
12070 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12074 for as_dir in $PATH
12076 IFS=$as_save_IFS
12077 test -z "$as_dir" && as_dir=.
12078 for ac_exec_ext in '' $ac_executable_extensions; do
12079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12080 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12082 break 2
12084 done
12085 done
12086 IFS=$as_save_IFS
12088 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12090 esac
12092 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12093 if test -n "$SDL_CONFIG"; then
12094 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12095 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12096 else
12097 { echo "$as_me:$LINENO: result: no" >&5
12098 echo "${ECHO_T}no" >&6; }
12102 min_sdl_version=1.2.10
12103 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12104 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12105 no_sdl=""
12106 if test "$SDL_CONFIG" = "no" ; then
12107 no_sdl=yes
12108 else
12109 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12110 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12112 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12113 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12114 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12115 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12116 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12117 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12118 if test "x$enable_sdltest" = "xyes" ; then
12119 ac_save_CFLAGS="$CFLAGS"
12120 ac_save_CXXFLAGS="$CXXFLAGS"
12121 ac_save_LIBS="$LIBS"
12122 CFLAGS="$CFLAGS $SDL_CFLAGS"
12123 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12124 LIBS="$LIBS $SDL_LIBS"
12125 rm -f conf.sdltest
12126 if test "$cross_compiling" = yes; then
12127 echo $ac_n "cross compiling; assumed OK... $ac_c"
12128 else
12129 cat >conftest.$ac_ext <<_ACEOF
12130 /* confdefs.h. */
12131 _ACEOF
12132 cat confdefs.h >>conftest.$ac_ext
12133 cat >>conftest.$ac_ext <<_ACEOF
12134 /* end confdefs.h. */
12136 #include <stdio.h>
12137 #include <stdlib.h>
12138 #include <string.h>
12139 #include "SDL.h"
12141 char*
12142 my_strdup (char *str)
12144 char *new_str;
12146 if (str)
12148 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12149 strcpy (new_str, str);
12151 else
12152 new_str = NULL;
12154 return new_str;
12157 int main (int argc, char *argv[])
12159 int major, minor, micro;
12160 char *tmp_version;
12162 /* This hangs on some systems (?)
12163 system ("touch conf.sdltest");
12165 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12167 /* HP/UX 9 (%@#!) writes to sscanf strings */
12168 tmp_version = my_strdup("$min_sdl_version");
12169 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12170 printf("%s, bad version string\n", "$min_sdl_version");
12171 exit(1);
12174 if (($sdl_major_version > major) ||
12175 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12176 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12178 return 0;
12180 else
12182 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12183 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12184 printf("*** best to upgrade to the required version.\n");
12185 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12186 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12187 printf("*** config.cache before re-running configure\n");
12188 return 1;
12193 _ACEOF
12194 rm -f conftest$ac_exeext
12195 if { (ac_try="$ac_link"
12196 case "(($ac_try" in
12197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12198 *) ac_try_echo=$ac_try;;
12199 esac
12200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12201 (eval "$ac_link") 2>&5
12202 ac_status=$?
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12205 { (case "(($ac_try" in
12206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12208 esac
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_try") 2>&5
12211 ac_status=$?
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12215 else
12216 echo "$as_me: program exited with status $ac_status" >&5
12217 echo "$as_me: failed program was:" >&5
12218 sed 's/^/| /' conftest.$ac_ext >&5
12220 ( exit $ac_status )
12221 no_sdl=yes
12223 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12227 CFLAGS="$ac_save_CFLAGS"
12228 CXXFLAGS="$ac_save_CXXFLAGS"
12229 LIBS="$ac_save_LIBS"
12232 if test "x$no_sdl" = x ; then
12233 { echo "$as_me:$LINENO: result: yes" >&5
12234 echo "${ECHO_T}yes" >&6; }
12235 have_sdl="yes"
12236 else
12237 { echo "$as_me:$LINENO: result: no" >&5
12238 echo "${ECHO_T}no" >&6; }
12239 if test "$SDL_CONFIG" = "no" ; then
12240 echo "*** The sdl-config script installed by SDL could not be found"
12241 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12242 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12243 echo "*** full path to sdl-config."
12244 else
12245 if test -f conf.sdltest ; then
12247 else
12248 echo "*** Could not run SDL test program, checking why..."
12249 CFLAGS="$CFLAGS $SDL_CFLAGS"
12250 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12251 LIBS="$LIBS $SDL_LIBS"
12252 cat >conftest.$ac_ext <<_ACEOF
12253 /* confdefs.h. */
12254 _ACEOF
12255 cat confdefs.h >>conftest.$ac_ext
12256 cat >>conftest.$ac_ext <<_ACEOF
12257 /* end confdefs.h. */
12259 #include <stdio.h>
12260 #include "SDL.h"
12262 int main(int argc, char *argv[])
12263 { return 0; }
12264 #undef main
12265 #define main K_and_R_C_main
12268 main ()
12270 return 0;
12272 return 0;
12274 _ACEOF
12275 rm -f conftest.$ac_objext conftest$ac_exeext
12276 if { (ac_try="$ac_link"
12277 case "(($ac_try" in
12278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279 *) ac_try_echo=$ac_try;;
12280 esac
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_link") 2>conftest.er1
12283 ac_status=$?
12284 grep -v '^ *+' conftest.er1 >conftest.err
12285 rm -f conftest.er1
12286 cat conftest.err >&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && {
12289 test -z "$ac_c_werror_flag" ||
12290 test ! -s conftest.err
12291 } && test -s conftest$ac_exeext &&
12292 $as_test_x conftest$ac_exeext; then
12293 echo "*** The test program compiled, but did not run. This usually means"
12294 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12295 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12296 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12297 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12298 echo "*** is required on your system"
12299 echo "***"
12300 echo "*** If you have an old version installed, it is best to remove it, although"
12301 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12302 else
12303 echo "$as_me: failed program was:" >&5
12304 sed 's/^/| /' conftest.$ac_ext >&5
12306 echo "*** The test program failed to compile or link. See the file config.log for the"
12307 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12308 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12309 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12313 conftest$ac_exeext conftest.$ac_ext
12314 CFLAGS="$ac_save_CFLAGS"
12315 CXXFLAGS="$ac_save_CXXFLAGS"
12316 LIBS="$ac_save_LIBS"
12319 SDL_CFLAGS=""
12320 SDL_LIBS=""
12321 have_sdl="no"
12325 rm -f conf.sdltest
12328 if test "x-$have_sdl" != "x-yes" ; then
12330 if test "x-$sdl_hidd" != "x-auto" ; then
12331 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12332 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12333 { (exit 1); exit 1; }; }
12336 else
12337 sdl_hidd_target=kernel-hidd-sdl
12338 aros_host_sdl_cflags=SDL_CFLAGS
12339 aros_host_sdl_libs=SDL_LIBS
12346 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12347 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12348 # Check whether --enable-dbus was given.
12349 if test "${enable_dbus+set}" = set; then
12350 enableval=$enable_dbus; dbus="yes"
12351 else
12352 dbus="no"
12355 if test "$dbus" = "yes" ; then
12356 ENABLE_DBUS=1
12357 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12358 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12359 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12360 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12361 else
12362 ENABLE_DBUS=0
12364 { echo "$as_me:$LINENO: result: $dbus" >&5
12365 echo "${ECHO_T}$dbus" >&6; }
12369 # Generic
12378 # Host related
12401 # Target Related
12445 # Graphics Related
12460 # Native version related
12464 # Palm native version related
12467 # Unix/Hosted version related
12470 # DBUS related
12477 # Debug related
12483 # Collect-aros stuff: "-ius" to ignore undefined symbols
12486 # C compiler related
12489 case "$aros_flavour" in
12490 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12491 aros_flavour="emulation" ;;
12492 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12493 aros_flavour="emulation" ;;
12494 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12495 aros_flavour="standalone";;
12496 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12497 aros_flavour="native" ;;
12498 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12499 aros_flavour="native" ;;
12500 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12501 aros_flavour="linklib" ;;
12502 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12503 aros_flavour="palmnative" ;;
12504 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12505 aros_flavour="mac68knative" ;;
12506 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12507 aros_flavour="ppcnative" ;;
12508 esac
12510 if test ! -d ${aros_inc_dir} ; then
12511 ${MKDIR} ${aros_inc_dir}
12513 if test ! -d ${aros_geninc_dir} ; then
12514 ${MKDIR} ${aros_geninc_dir}
12516 if test ! -d ${aros_hostcfg_dir} ; then
12517 ${MKDIR} ${aros_hostcfg_dir}
12519 if test ! -d ${aros_targetcfg_dir} ; then
12520 ${MKDIR} ${aros_targetcfg_dir}
12522 if test ! -d ${aros_tools_dir} ; then
12523 ${MKDIR} ${aros_tools_dir}
12525 if test ! -d ${aros_scripts_dir} ; then
12526 ${MKDIR} ${aros_scripts_dir}
12529 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12532 ac_config_commands="$ac_config_commands compiler_executable"
12534 ac_config_commands="$ac_config_commands genshared_executable"
12536 ac_config_commands="$ac_config_commands genmf_executable"
12538 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
12541 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"
12544 cat >confcache <<\_ACEOF
12545 # This file is a shell script that caches the results of configure
12546 # tests run on this system so they can be shared between configure
12547 # scripts and configure runs, see configure's option --config-cache.
12548 # It is not useful on other systems. If it contains results you don't
12549 # want to keep, you may remove or edit it.
12551 # config.status only pays attention to the cache file if you give it
12552 # the --recheck option to rerun configure.
12554 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12555 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12556 # following values.
12558 _ACEOF
12560 # The following way of writing the cache mishandles newlines in values,
12561 # but we know of no workaround that is simple, portable, and efficient.
12562 # So, we kill variables containing newlines.
12563 # Ultrix sh set writes to stderr and can't be redirected directly,
12564 # and sets the high bit in the cache file unless we assign to the vars.
12566 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12567 eval ac_val=\$$ac_var
12568 case $ac_val in #(
12569 *${as_nl}*)
12570 case $ac_var in #(
12571 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12572 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12573 esac
12574 case $ac_var in #(
12575 _ | IFS | as_nl) ;; #(
12576 *) $as_unset $ac_var ;;
12577 esac ;;
12578 esac
12579 done
12581 (set) 2>&1 |
12582 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12583 *${as_nl}ac_space=\ *)
12584 # `set' does not quote correctly, so add quotes (double-quote
12585 # substitution turns \\\\ into \\, and sed turns \\ into \).
12586 sed -n \
12587 "s/'/'\\\\''/g;
12588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12589 ;; #(
12591 # `set' quotes correctly as required by POSIX, so do not add quotes.
12592 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12594 esac |
12595 sort
12597 sed '
12598 /^ac_cv_env_/b end
12599 t clear
12600 :clear
12601 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12602 t end
12603 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12604 :end' >>confcache
12605 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12606 if test -w "$cache_file"; then
12607 test "x$cache_file" != "x/dev/null" &&
12608 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12609 echo "$as_me: updating cache $cache_file" >&6;}
12610 cat confcache >$cache_file
12611 else
12612 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12613 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12616 rm -f confcache
12618 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12619 # Let make expand exec_prefix.
12620 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12622 DEFS=-DHAVE_CONFIG_H
12624 ac_libobjs=
12625 ac_ltlibobjs=
12626 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12627 # 1. Remove the extension, and $U if already installed.
12628 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12629 ac_i=`echo "$ac_i" | sed "$ac_script"`
12630 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12631 # will be set to the directory where LIBOBJS objects are built.
12632 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12633 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12634 done
12635 LIBOBJS=$ac_libobjs
12637 LTLIBOBJS=$ac_ltlibobjs
12641 : ${CONFIG_STATUS=./config.status}
12642 ac_clean_files_save=$ac_clean_files
12643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12644 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12645 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12646 cat >$CONFIG_STATUS <<_ACEOF
12647 #! $SHELL
12648 # Generated by $as_me.
12649 # Run this file to recreate the current configuration.
12650 # Compiler output produced by configure, useful for debugging
12651 # configure, is in config.log if it exists.
12653 debug=false
12654 ac_cs_recheck=false
12655 ac_cs_silent=false
12656 SHELL=\${CONFIG_SHELL-$SHELL}
12657 _ACEOF
12659 cat >>$CONFIG_STATUS <<\_ACEOF
12660 ## --------------------- ##
12661 ## M4sh Initialization. ##
12662 ## --------------------- ##
12664 # Be more Bourne compatible
12665 DUALCASE=1; export DUALCASE # for MKS sh
12666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12667 emulate sh
12668 NULLCMD=:
12669 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12670 # is contrary to our usage. Disable this feature.
12671 alias -g '${1+"$@"}'='"$@"'
12672 setopt NO_GLOB_SUBST
12673 else
12674 case `(set -o) 2>/dev/null` in
12675 *posix*) set -o posix ;;
12676 esac
12683 # PATH needs CR
12684 # Avoid depending upon Character Ranges.
12685 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12686 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12687 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12688 as_cr_digits='0123456789'
12689 as_cr_alnum=$as_cr_Letters$as_cr_digits
12691 # The user is always right.
12692 if test "${PATH_SEPARATOR+set}" != set; then
12693 echo "#! /bin/sh" >conf$$.sh
12694 echo "exit 0" >>conf$$.sh
12695 chmod +x conf$$.sh
12696 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12697 PATH_SEPARATOR=';'
12698 else
12699 PATH_SEPARATOR=:
12701 rm -f conf$$.sh
12704 # Support unset when possible.
12705 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12706 as_unset=unset
12707 else
12708 as_unset=false
12712 # IFS
12713 # We need space, tab and new line, in precisely that order. Quoting is
12714 # there to prevent editors from complaining about space-tab.
12715 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12716 # splitting by setting IFS to empty value.)
12717 as_nl='
12719 IFS=" "" $as_nl"
12721 # Find who we are. Look in the path if we contain no directory separator.
12722 case $0 in
12723 *[\\/]* ) as_myself=$0 ;;
12724 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725 for as_dir in $PATH
12727 IFS=$as_save_IFS
12728 test -z "$as_dir" && as_dir=.
12729 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12730 done
12731 IFS=$as_save_IFS
12734 esac
12735 # We did not find ourselves, most probably we were run as `sh COMMAND'
12736 # in which case we are not to be found in the path.
12737 if test "x$as_myself" = x; then
12738 as_myself=$0
12740 if test ! -f "$as_myself"; then
12741 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12742 { (exit 1); exit 1; }
12745 # Work around bugs in pre-3.0 UWIN ksh.
12746 for as_var in ENV MAIL MAILPATH
12747 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12748 done
12749 PS1='$ '
12750 PS2='> '
12751 PS4='+ '
12753 # NLS nuisances.
12754 for as_var in \
12755 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12756 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12757 LC_TELEPHONE LC_TIME
12759 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12760 eval $as_var=C; export $as_var
12761 else
12762 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12764 done
12766 # Required to use basename.
12767 if expr a : '\(a\)' >/dev/null 2>&1 &&
12768 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12769 as_expr=expr
12770 else
12771 as_expr=false
12774 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12775 as_basename=basename
12776 else
12777 as_basename=false
12781 # Name of the executable.
12782 as_me=`$as_basename -- "$0" ||
12783 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12784 X"$0" : 'X\(//\)$' \| \
12785 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12786 echo X/"$0" |
12787 sed '/^.*\/\([^/][^/]*\)\/*$/{
12788 s//\1/
12791 /^X\/\(\/\/\)$/{
12792 s//\1/
12795 /^X\/\(\/\).*/{
12796 s//\1/
12799 s/.*/./; q'`
12801 # CDPATH.
12802 $as_unset CDPATH
12806 as_lineno_1=$LINENO
12807 as_lineno_2=$LINENO
12808 test "x$as_lineno_1" != "x$as_lineno_2" &&
12809 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12811 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12812 # uniformly replaced by the line number. The first 'sed' inserts a
12813 # line-number line after each line using $LINENO; the second 'sed'
12814 # does the real work. The second script uses 'N' to pair each
12815 # line-number line with the line containing $LINENO, and appends
12816 # trailing '-' during substitution so that $LINENO is not a special
12817 # case at line end.
12818 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12819 # scripts with optimization help from Paolo Bonzini. Blame Lee
12820 # E. McMahon (1931-1989) for sed's syntax. :-)
12821 sed -n '
12823 /[$]LINENO/=
12824 ' <$as_myself |
12825 sed '
12826 s/[$]LINENO.*/&-/
12827 t lineno
12829 :lineno
12831 :loop
12832 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12833 t loop
12834 s/-\n.*//
12835 ' >$as_me.lineno &&
12836 chmod +x "$as_me.lineno" ||
12837 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12838 { (exit 1); exit 1; }; }
12840 # Don't try to exec as it changes $[0], causing all sort of problems
12841 # (the dirname of $[0] is not the place where we might find the
12842 # original and so on. Autoconf is especially sensitive to this).
12843 . "./$as_me.lineno"
12844 # Exit status is that of the last command.
12845 exit
12849 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12850 as_dirname=dirname
12851 else
12852 as_dirname=false
12855 ECHO_C= ECHO_N= ECHO_T=
12856 case `echo -n x` in
12857 -n*)
12858 case `echo 'x\c'` in
12859 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12860 *) ECHO_C='\c';;
12861 esac;;
12863 ECHO_N='-n';;
12864 esac
12866 if expr a : '\(a\)' >/dev/null 2>&1 &&
12867 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12868 as_expr=expr
12869 else
12870 as_expr=false
12873 rm -f conf$$ conf$$.exe conf$$.file
12874 if test -d conf$$.dir; then
12875 rm -f conf$$.dir/conf$$.file
12876 else
12877 rm -f conf$$.dir
12878 mkdir conf$$.dir
12880 echo >conf$$.file
12881 if ln -s conf$$.file conf$$ 2>/dev/null; then
12882 as_ln_s='ln -s'
12883 # ... but there are two gotchas:
12884 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12885 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12886 # In both cases, we have to default to `cp -p'.
12887 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12888 as_ln_s='cp -p'
12889 elif ln conf$$.file conf$$ 2>/dev/null; then
12890 as_ln_s=ln
12891 else
12892 as_ln_s='cp -p'
12894 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12895 rmdir conf$$.dir 2>/dev/null
12897 if mkdir -p . 2>/dev/null; then
12898 as_mkdir_p=:
12899 else
12900 test -d ./-p && rmdir ./-p
12901 as_mkdir_p=false
12904 if test -x / >/dev/null 2>&1; then
12905 as_test_x='test -x'
12906 else
12907 if ls -dL / >/dev/null 2>&1; then
12908 as_ls_L_option=L
12909 else
12910 as_ls_L_option=
12912 as_test_x='
12913 eval sh -c '\''
12914 if test -d "$1"; then
12915 test -d "$1/.";
12916 else
12917 case $1 in
12918 -*)set "./$1";;
12919 esac;
12920 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
12921 ???[sx]*):;;*)false;;esac;fi
12922 '\'' sh
12925 as_executable_p=$as_test_x
12927 # Sed expression to map a string onto a valid CPP name.
12928 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12930 # Sed expression to map a string onto a valid variable name.
12931 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12934 exec 6>&1
12936 # Save the log message, to keep $[0] and so on meaningful, and to
12937 # report actual input values of CONFIG_FILES etc. instead of their
12938 # values after options handling.
12939 ac_log="
12940 This file was extended by $as_me, which was
12941 generated by GNU Autoconf 2.61. Invocation command line was
12943 CONFIG_FILES = $CONFIG_FILES
12944 CONFIG_HEADERS = $CONFIG_HEADERS
12945 CONFIG_LINKS = $CONFIG_LINKS
12946 CONFIG_COMMANDS = $CONFIG_COMMANDS
12947 $ $0 $@
12949 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12952 _ACEOF
12954 cat >>$CONFIG_STATUS <<_ACEOF
12955 # Files that config.status was made for.
12956 config_files="$ac_config_files"
12957 config_headers="$ac_config_headers"
12958 config_commands="$ac_config_commands"
12960 _ACEOF
12962 cat >>$CONFIG_STATUS <<\_ACEOF
12963 ac_cs_usage="\
12964 \`$as_me' instantiates files from templates according to the
12965 current configuration.
12967 Usage: $0 [OPTIONS] [FILE]...
12969 -h, --help print this help, then exit
12970 -V, --version print version number and configuration settings, then exit
12971 -q, --quiet do not print progress messages
12972 -d, --debug don't remove temporary files
12973 --recheck update $as_me by reconfiguring in the same conditions
12974 --file=FILE[:TEMPLATE]
12975 instantiate the configuration file FILE
12976 --header=FILE[:TEMPLATE]
12977 instantiate the configuration header FILE
12979 Configuration files:
12980 $config_files
12982 Configuration headers:
12983 $config_headers
12985 Configuration commands:
12986 $config_commands
12988 Report bugs to <bug-autoconf@gnu.org>."
12990 _ACEOF
12991 cat >>$CONFIG_STATUS <<_ACEOF
12992 ac_cs_version="\\
12993 config.status
12994 configured by $0, generated by GNU Autoconf 2.61,
12995 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
12997 Copyright (C) 2006 Free Software Foundation, Inc.
12998 This config.status script is free software; the Free Software Foundation
12999 gives unlimited permission to copy, distribute and modify it."
13001 ac_pwd='$ac_pwd'
13002 srcdir='$srcdir'
13003 _ACEOF
13005 cat >>$CONFIG_STATUS <<\_ACEOF
13006 # If no file are specified by the user, then we need to provide default
13007 # value. By we need to know if files were specified by the user.
13008 ac_need_defaults=:
13009 while test $# != 0
13011 case $1 in
13012 --*=*)
13013 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13014 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13015 ac_shift=:
13018 ac_option=$1
13019 ac_optarg=$2
13020 ac_shift=shift
13022 esac
13024 case $ac_option in
13025 # Handling of the options.
13026 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13027 ac_cs_recheck=: ;;
13028 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13029 echo "$ac_cs_version"; exit ;;
13030 --debug | --debu | --deb | --de | --d | -d )
13031 debug=: ;;
13032 --file | --fil | --fi | --f )
13033 $ac_shift
13034 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13035 ac_need_defaults=false;;
13036 --header | --heade | --head | --hea )
13037 $ac_shift
13038 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13039 ac_need_defaults=false;;
13040 --he | --h)
13041 # Conflict between --help and --header
13042 { echo "$as_me: error: ambiguous option: $1
13043 Try \`$0 --help' for more information." >&2
13044 { (exit 1); exit 1; }; };;
13045 --help | --hel | -h )
13046 echo "$ac_cs_usage"; exit ;;
13047 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13048 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13049 ac_cs_silent=: ;;
13051 # This is an error.
13052 -*) { echo "$as_me: error: unrecognized option: $1
13053 Try \`$0 --help' for more information." >&2
13054 { (exit 1); exit 1; }; } ;;
13056 *) ac_config_targets="$ac_config_targets $1"
13057 ac_need_defaults=false ;;
13059 esac
13060 shift
13061 done
13063 ac_configure_extra_args=
13065 if $ac_cs_silent; then
13066 exec 6>/dev/null
13067 ac_configure_extra_args="$ac_configure_extra_args --silent"
13070 _ACEOF
13071 cat >>$CONFIG_STATUS <<_ACEOF
13072 if \$ac_cs_recheck; then
13073 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13074 CONFIG_SHELL=$SHELL
13075 export CONFIG_SHELL
13076 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13079 _ACEOF
13080 cat >>$CONFIG_STATUS <<\_ACEOF
13081 exec 5>>config.log
13083 echo
13084 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13085 ## Running $as_me. ##
13086 _ASBOX
13087 echo "$ac_log"
13088 } >&5
13090 _ACEOF
13091 cat >>$CONFIG_STATUS <<_ACEOF
13093 # INIT-COMMANDS
13096 aros_tools_dir=${aros_tools_dir}
13097 aros_target_cpu=${aros_target_cpu}
13098 aros_target_arch=${aros_target_arch}
13099 aros_target_suffix=${aros_target_suffix}
13100 aros_target_nm_ln=${aros_target_nm_ln}
13101 aros_target_as_ln=${aros_target_as_ln}
13102 aros_target_ar_ln=${aros_target_ar_ln}
13103 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13104 aros_target_objdump_ln=${aros_target_objdump_ln}
13105 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13106 aros_target_strip_ln=${aros_target_strip_ln}
13109 aros_scripts_dir=${aros_scripts_dir}
13111 aros_tools_dir=${aros_tools_dir}
13114 _ACEOF
13116 cat >>$CONFIG_STATUS <<\_ACEOF
13118 # Handling of arguments.
13119 for ac_config_target in $ac_config_targets
13121 case $ac_config_target in
13122 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13123 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13124 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13125 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13126 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
13127 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13128 "rom/mmakefile") CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
13129 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13130 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13131 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13132 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13133 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13134 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13135 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13136 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13137 "${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" ;;
13138 "${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" ;;
13139 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13140 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13141 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
13142 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13144 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13145 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13146 { (exit 1); exit 1; }; };;
13147 esac
13148 done
13151 # If the user did not use the arguments to specify the items to instantiate,
13152 # then the envvar interface is used. Set only those that are not.
13153 # We use the long form for the default assignment because of an extremely
13154 # bizarre bug on SunOS 4.1.3.
13155 if $ac_need_defaults; then
13156 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13157 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13158 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13161 # Have a temporary directory for convenience. Make it in the build tree
13162 # simply because there is no reason against having it here, and in addition,
13163 # creating and moving files from /tmp can sometimes cause problems.
13164 # Hook for its removal unless debugging.
13165 # Note that there is a small window in which the directory will not be cleaned:
13166 # after its creation but before its name has been assigned to `$tmp'.
13167 $debug ||
13169 tmp=
13170 trap 'exit_status=$?
13171 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13173 trap '{ (exit 1); exit 1; }' 1 2 13 15
13175 # Create a (secure) tmp directory for tmp files.
13178 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13179 test -n "$tmp" && test -d "$tmp"
13180 } ||
13182 tmp=./conf$$-$RANDOM
13183 (umask 077 && mkdir "$tmp")
13184 } ||
13186 echo "$me: cannot create a temporary directory in ." >&2
13187 { (exit 1); exit 1; }
13191 # Set up the sed scripts for CONFIG_FILES section.
13194 # No need to generate the scripts if there are no CONFIG_FILES.
13195 # This happens for instance when ./config.status config.h
13196 if test -n "$CONFIG_FILES"; then
13198 _ACEOF
13202 ac_delim='%!_!# '
13203 for ac_last_try in false false false false false :; do
13204 cat >conf$$subs.sed <<_ACEOF
13205 SHELL!$SHELL$ac_delim
13206 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13207 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13208 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13209 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13210 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13211 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13212 exec_prefix!$exec_prefix$ac_delim
13213 prefix!$prefix$ac_delim
13214 program_transform_name!$program_transform_name$ac_delim
13215 bindir!$bindir$ac_delim
13216 sbindir!$sbindir$ac_delim
13217 libexecdir!$libexecdir$ac_delim
13218 datarootdir!$datarootdir$ac_delim
13219 datadir!$datadir$ac_delim
13220 sysconfdir!$sysconfdir$ac_delim
13221 sharedstatedir!$sharedstatedir$ac_delim
13222 localstatedir!$localstatedir$ac_delim
13223 includedir!$includedir$ac_delim
13224 oldincludedir!$oldincludedir$ac_delim
13225 docdir!$docdir$ac_delim
13226 infodir!$infodir$ac_delim
13227 htmldir!$htmldir$ac_delim
13228 dvidir!$dvidir$ac_delim
13229 pdfdir!$pdfdir$ac_delim
13230 psdir!$psdir$ac_delim
13231 libdir!$libdir$ac_delim
13232 localedir!$localedir$ac_delim
13233 mandir!$mandir$ac_delim
13234 DEFS!$DEFS$ac_delim
13235 ECHO_C!$ECHO_C$ac_delim
13236 ECHO_N!$ECHO_N$ac_delim
13237 ECHO_T!$ECHO_T$ac_delim
13238 LIBS!$LIBS$ac_delim
13239 build_alias!$build_alias$ac_delim
13240 host_alias!$host_alias$ac_delim
13241 target_alias!$target_alias$ac_delim
13242 build!$build$ac_delim
13243 build_cpu!$build_cpu$ac_delim
13244 build_vendor!$build_vendor$ac_delim
13245 build_os!$build_os$ac_delim
13246 host!$host$ac_delim
13247 host_cpu!$host_cpu$ac_delim
13248 host_vendor!$host_vendor$ac_delim
13249 host_os!$host_os$ac_delim
13250 CC!$CC$ac_delim
13251 CFLAGS!$CFLAGS$ac_delim
13252 LDFLAGS!$LDFLAGS$ac_delim
13253 CPPFLAGS!$CPPFLAGS$ac_delim
13254 ac_ct_CC!$ac_ct_CC$ac_delim
13255 EXEEXT!$EXEEXT$ac_delim
13256 OBJEXT!$OBJEXT$ac_delim
13257 CPP!$CPP$ac_delim
13258 AWK!$AWK$ac_delim
13259 MMAKE!$MMAKE$ac_delim
13260 aros_host_ld!$aros_host_ld$ac_delim
13261 aros_host_aclocal!$aros_host_aclocal$ac_delim
13262 aros_host_autoconf!$aros_host_autoconf$ac_delim
13263 aros_host_autoheader!$aros_host_autoheader$ac_delim
13264 aros_host_automake!$aros_host_automake$ac_delim
13265 aros_host_ar!$aros_host_ar$ac_delim
13266 aros_host_ranlib!$aros_host_ranlib$ac_delim
13267 aros_host_strip!$aros_host_strip$ac_delim
13268 RM!$RM$ac_delim
13269 CP!$CP$ac_delim
13270 MV!$MV$ac_delim
13271 ECHO!$ECHO$ac_delim
13272 MKDIR!$MKDIR$ac_delim
13273 TOUCH!$TOUCH$ac_delim
13274 SORT!$SORT$ac_delim
13275 UNIQ!$UNIQ$ac_delim
13276 NOP!$NOP$ac_delim
13277 CAT!$CAT$ac_delim
13278 BISON!$BISON$ac_delim
13279 FLEX!$FLEX$ac_delim
13280 PNGTOPNM!$PNGTOPNM$ac_delim
13281 PPMTOILBM!$PPMTOILBM$ac_delim
13282 SED!$SED$ac_delim
13283 CHMOD!$CHMOD$ac_delim
13284 PYTHON!$PYTHON$ac_delim
13285 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13286 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13287 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13288 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13289 pythondir!$pythondir$ac_delim
13290 pkgpythondir!$pkgpythondir$ac_delim
13291 pyexecdir!$pyexecdir$ac_delim
13292 pkgpyexecdir!$pkgpyexecdir$ac_delim
13293 FOR!$FOR$ac_delim
13294 IF!$IF$ac_delim
13295 TEST!$TEST$ac_delim
13296 CMP!$CMP$ac_delim
13297 GREP!$GREP$ac_delim
13298 EGREP!$EGREP$ac_delim
13299 LIBOBJS!$LIBOBJS$ac_delim
13300 DISTCC!$DISTCC$ac_delim
13301 CCACHE!$CCACHE$ac_delim
13302 _ACEOF
13304 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13305 break
13306 elif $ac_last_try; then
13307 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13308 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13309 { (exit 1); exit 1; }; }
13310 else
13311 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13313 done
13315 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13316 if test -n "$ac_eof"; then
13317 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13318 ac_eof=`expr $ac_eof + 1`
13321 cat >>$CONFIG_STATUS <<_ACEOF
13322 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13324 _ACEOF
13325 sed '
13326 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13327 s/^/s,@/; s/!/@,|#_!!_#|/
13330 s/'"$ac_delim"'$/,g/; t
13331 s/$/\\/; p
13332 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13333 ' >>$CONFIG_STATUS <conf$$subs.sed
13334 rm -f conf$$subs.sed
13335 cat >>$CONFIG_STATUS <<_ACEOF
13336 CEOF$ac_eof
13337 _ACEOF
13340 ac_delim='%!_!# '
13341 for ac_last_try in false false false false false :; do
13342 cat >conf$$subs.sed <<_ACEOF
13343 LIBLZO!$LIBLZO$ac_delim
13344 aros_kernel_cc!$aros_kernel_cc$ac_delim
13345 aros_target_cc!$aros_target_cc$ac_delim
13346 aros_target_ld!$aros_target_ld$ac_delim
13347 aros_target_as_ln!$aros_target_as_ln$ac_delim
13348 aros_kernel_ld!$aros_kernel_ld$ac_delim
13349 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13350 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13351 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13352 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13353 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13354 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13355 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13356 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13357 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13358 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13359 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13360 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13361 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13362 XMKMF!$XMKMF$ac_delim
13363 SDL_CONFIG!$SDL_CONFIG$ac_delim
13364 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13365 SDL_LIBS!$SDL_LIBS$ac_delim
13366 aros_arch!$aros_arch$ac_delim
13367 aros_cpu!$aros_cpu$ac_delim
13368 aros_flavour!$aros_flavour$ac_delim
13369 aros_flavour_uc!$aros_flavour_uc$ac_delim
13370 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13371 AROS_SRCDIR!$AROS_SRCDIR$ac_delim
13372 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13373 aros_cc_pre!$aros_cc_pre$ac_delim
13374 aros_host_arch!$aros_host_arch$ac_delim
13375 aros_host_cpu!$aros_host_cpu$ac_delim
13376 aros_host_cc!$aros_host_cc$ac_delim
13377 aros_host_make!$aros_host_make$ac_delim
13378 aros_host_cflags!$aros_host_cflags$ac_delim
13379 aros_host_ldflags!$aros_host_ldflags$ac_delim
13380 aros_host_debug!$aros_host_debug$ac_delim
13381 aros_host_mkdep!$aros_host_mkdep$ac_delim
13382 aros_host_mkargs!$aros_host_mkargs$ac_delim
13383 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13384 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13385 aros_tools_dir!$aros_tools_dir$ac_delim
13386 aros_target_guitheme!$aros_target_guitheme$ac_delim
13387 aros_target_bootloader!$aros_target_bootloader$ac_delim
13388 aros_target_arch!$aros_target_arch$ac_delim
13389 aros_target_cpu!$aros_target_cpu$ac_delim
13390 aros_target_variant!$aros_target_variant$ac_delim
13391 aros_target_suffix!$aros_target_suffix$ac_delim
13392 aros_target_incl!$aros_target_incl$ac_delim
13393 aros_target_ar!$aros_target_ar$ac_delim
13394 aros_target_ranlib!$aros_target_ranlib$ac_delim
13395 aros_kernel_nm!$aros_kernel_nm$ac_delim
13396 orig_target_cc!$orig_target_cc$ac_delim
13397 aros_target_as!$aros_target_as$ac_delim
13398 orig_target_ld!$orig_target_ld$ac_delim
13399 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13400 aros_target_cc_path!$aros_target_cc_path$ac_delim
13401 aros_target_objdump!$aros_target_objdump$ac_delim
13402 aros_target_objcopy!$aros_target_objcopy$ac_delim
13403 aros_target_strip!$aros_target_strip$ac_delim
13404 aros_target_nm!$aros_target_nm$ac_delim
13405 aros_shared_default!$aros_shared_default$ac_delim
13406 aros_shared_ld!$aros_shared_ld$ac_delim
13407 aros_object_format!$aros_object_format$ac_delim
13408 aros_compiler_libs!$aros_compiler_libs$ac_delim
13409 aros_config_cflags!$aros_config_cflags$ac_delim
13410 aros_config_aflags!$aros_config_aflags$ac_delim
13411 aros_config_ldflags!$aros_config_ldflags$ac_delim
13412 aros_shared_cflags!$aros_shared_cflags$ac_delim
13413 aros_shared_aflags!$aros_shared_aflags$ac_delim
13414 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13415 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13416 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13417 aros_debug_cflags!$aros_debug_cflags$ac_delim
13418 aros_debug_aflags!$aros_debug_aflags$ac_delim
13419 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13420 aros_target_genmap!$aros_target_genmap$ac_delim
13421 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13422 x11_hidd_target!$x11_hidd_target$ac_delim
13423 sdl_hidd_target!$sdl_hidd_target$ac_delim
13424 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13425 aros_default_wbheight!$aros_default_wbheight$ac_delim
13426 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
13427 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
13428 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
13429 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
13430 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
13431 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
13432 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
13433 aros_bochs_hack!$aros_bochs_hack$ac_delim
13434 aros_serial_debug!$aros_serial_debug$ac_delim
13435 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
13436 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
13437 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
13438 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
13439 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
13440 _ACEOF
13442 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13443 break
13444 elif $ac_last_try; then
13445 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13446 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13447 { (exit 1); exit 1; }; }
13448 else
13449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13451 done
13453 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13454 if test -n "$ac_eof"; then
13455 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13456 ac_eof=`expr $ac_eof + 1`
13459 cat >>$CONFIG_STATUS <<_ACEOF
13460 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13461 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13462 _ACEOF
13463 sed '
13464 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13465 s/^/s,@/; s/!/@,|#_!!_#|/
13468 s/'"$ac_delim"'$/,g/; t
13469 s/$/\\/; p
13470 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13471 ' >>$CONFIG_STATUS <conf$$subs.sed
13472 rm -f conf$$subs.sed
13473 cat >>$CONFIG_STATUS <<_ACEOF
13474 CEOF$ac_eof
13475 _ACEOF
13478 ac_delim='%!_!# '
13479 for ac_last_try in false false false false false :; do
13480 cat >conf$$subs.sed <<_ACEOF
13481 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
13482 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
13483 aros_debug!$aros_debug$ac_delim
13484 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
13485 aros_stack_debug!$aros_stack_debug$ac_delim
13486 aros_modules_debug!$aros_modules_debug$ac_delim
13487 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
13488 gcc_target_cpu!$gcc_target_cpu$ac_delim
13489 LTLIBOBJS!$LTLIBOBJS$ac_delim
13490 _ACEOF
13492 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
13493 break
13494 elif $ac_last_try; then
13495 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13496 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13497 { (exit 1); exit 1; }; }
13498 else
13499 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13501 done
13503 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13504 if test -n "$ac_eof"; then
13505 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13506 ac_eof=`expr $ac_eof + 1`
13509 cat >>$CONFIG_STATUS <<_ACEOF
13510 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
13511 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13512 _ACEOF
13513 sed '
13514 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13515 s/^/s,@/; s/!/@,|#_!!_#|/
13518 s/'"$ac_delim"'$/,g/; t
13519 s/$/\\/; p
13520 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13521 ' >>$CONFIG_STATUS <conf$$subs.sed
13522 rm -f conf$$subs.sed
13523 cat >>$CONFIG_STATUS <<_ACEOF
13524 :end
13525 s/|#_!!_#|//g
13526 CEOF$ac_eof
13527 _ACEOF
13530 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13531 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13532 # trailing colons and then remove the whole line if VPATH becomes empty
13533 # (actually we leave an empty line to preserve line numbers).
13534 if test "x$srcdir" = x.; then
13535 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13536 s/:*\$(srcdir):*/:/
13537 s/:*\${srcdir}:*/:/
13538 s/:*@srcdir@:*/:/
13539 s/^\([^=]*=[ ]*\):*/\1/
13540 s/:*$//
13541 s/^[^=]*=[ ]*$//
13545 cat >>$CONFIG_STATUS <<\_ACEOF
13546 fi # test -n "$CONFIG_FILES"
13549 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13551 case $ac_tag in
13552 :[FHLC]) ac_mode=$ac_tag; continue;;
13553 esac
13554 case $ac_mode$ac_tag in
13555 :[FHL]*:*);;
13556 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13557 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13558 { (exit 1); exit 1; }; };;
13559 :[FH]-) ac_tag=-:-;;
13560 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13561 esac
13562 ac_save_IFS=$IFS
13563 IFS=:
13564 set x $ac_tag
13565 IFS=$ac_save_IFS
13566 shift
13567 ac_file=$1
13568 shift
13570 case $ac_mode in
13571 :L) ac_source=$1;;
13572 :[FH])
13573 ac_file_inputs=
13574 for ac_f
13576 case $ac_f in
13577 -) ac_f="$tmp/stdin";;
13578 *) # Look for the file first in the build tree, then in the source tree
13579 # (if the path is not absolute). The absolute path cannot be DOS-style,
13580 # because $ac_f cannot contain `:'.
13581 test -f "$ac_f" ||
13582 case $ac_f in
13583 [\\/$]*) false;;
13584 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13585 esac ||
13586 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13587 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13588 { (exit 1); exit 1; }; };;
13589 esac
13590 ac_file_inputs="$ac_file_inputs $ac_f"
13591 done
13593 # Let's still pretend it is `configure' which instantiates (i.e., don't
13594 # use $as_me), people would be surprised to read:
13595 # /* config.h. Generated by config.status. */
13596 configure_input="Generated from "`IFS=:
13597 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13598 if test x"$ac_file" != x-; then
13599 configure_input="$ac_file. $configure_input"
13600 { echo "$as_me:$LINENO: creating $ac_file" >&5
13601 echo "$as_me: creating $ac_file" >&6;}
13604 case $ac_tag in
13605 *:-:* | *:-) cat >"$tmp/stdin";;
13606 esac
13608 esac
13610 ac_dir=`$as_dirname -- "$ac_file" ||
13611 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13612 X"$ac_file" : 'X\(//\)[^/]' \| \
13613 X"$ac_file" : 'X\(//\)$' \| \
13614 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13615 echo X"$ac_file" |
13616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13617 s//\1/
13620 /^X\(\/\/\)[^/].*/{
13621 s//\1/
13624 /^X\(\/\/\)$/{
13625 s//\1/
13628 /^X\(\/\).*/{
13629 s//\1/
13632 s/.*/./; q'`
13633 { as_dir="$ac_dir"
13634 case $as_dir in #(
13635 -*) as_dir=./$as_dir;;
13636 esac
13637 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13638 as_dirs=
13639 while :; do
13640 case $as_dir in #(
13641 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13642 *) as_qdir=$as_dir;;
13643 esac
13644 as_dirs="'$as_qdir' $as_dirs"
13645 as_dir=`$as_dirname -- "$as_dir" ||
13646 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13647 X"$as_dir" : 'X\(//\)[^/]' \| \
13648 X"$as_dir" : 'X\(//\)$' \| \
13649 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13650 echo X"$as_dir" |
13651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13652 s//\1/
13655 /^X\(\/\/\)[^/].*/{
13656 s//\1/
13659 /^X\(\/\/\)$/{
13660 s//\1/
13663 /^X\(\/\).*/{
13664 s//\1/
13667 s/.*/./; q'`
13668 test -d "$as_dir" && break
13669 done
13670 test -z "$as_dirs" || eval "mkdir $as_dirs"
13671 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13672 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13673 { (exit 1); exit 1; }; }; }
13674 ac_builddir=.
13676 case "$ac_dir" in
13677 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13679 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13680 # A ".." for each directory in $ac_dir_suffix.
13681 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13682 case $ac_top_builddir_sub in
13683 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13684 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13685 esac ;;
13686 esac
13687 ac_abs_top_builddir=$ac_pwd
13688 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13689 # for backward compatibility:
13690 ac_top_builddir=$ac_top_build_prefix
13692 case $srcdir in
13693 .) # We are building in place.
13694 ac_srcdir=.
13695 ac_top_srcdir=$ac_top_builddir_sub
13696 ac_abs_top_srcdir=$ac_pwd ;;
13697 [\\/]* | ?:[\\/]* ) # Absolute name.
13698 ac_srcdir=$srcdir$ac_dir_suffix;
13699 ac_top_srcdir=$srcdir
13700 ac_abs_top_srcdir=$srcdir ;;
13701 *) # Relative name.
13702 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13703 ac_top_srcdir=$ac_top_build_prefix$srcdir
13704 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13705 esac
13706 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13709 case $ac_mode in
13712 # CONFIG_FILE
13715 _ACEOF
13717 cat >>$CONFIG_STATUS <<\_ACEOF
13718 # If the template does not know about datarootdir, expand it.
13719 # FIXME: This hack should be removed a few years after 2.60.
13720 ac_datarootdir_hack=; ac_datarootdir_seen=
13722 case `sed -n '/datarootdir/ {
13726 /@datadir@/p
13727 /@docdir@/p
13728 /@infodir@/p
13729 /@localedir@/p
13730 /@mandir@/p
13731 ' $ac_file_inputs` in
13732 *datarootdir*) ac_datarootdir_seen=yes;;
13733 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13734 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13735 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13736 _ACEOF
13737 cat >>$CONFIG_STATUS <<_ACEOF
13738 ac_datarootdir_hack='
13739 s&@datadir@&$datadir&g
13740 s&@docdir@&$docdir&g
13741 s&@infodir@&$infodir&g
13742 s&@localedir@&$localedir&g
13743 s&@mandir@&$mandir&g
13744 s&\\\${datarootdir}&$datarootdir&g' ;;
13745 esac
13746 _ACEOF
13748 # Neutralize VPATH when `$srcdir' = `.'.
13749 # Shell code in configure.ac might set extrasub.
13750 # FIXME: do we really want to maintain this feature?
13751 cat >>$CONFIG_STATUS <<_ACEOF
13752 sed "$ac_vpsub
13753 $extrasub
13754 _ACEOF
13755 cat >>$CONFIG_STATUS <<\_ACEOF
13757 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13758 s&@configure_input@&$configure_input&;t t
13759 s&@top_builddir@&$ac_top_builddir_sub&;t t
13760 s&@srcdir@&$ac_srcdir&;t t
13761 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13762 s&@top_srcdir@&$ac_top_srcdir&;t t
13763 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13764 s&@builddir@&$ac_builddir&;t t
13765 s&@abs_builddir@&$ac_abs_builddir&;t t
13766 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13767 $ac_datarootdir_hack
13768 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
13770 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13771 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13772 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13773 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13774 which seems to be undefined. Please make sure it is defined." >&5
13775 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13776 which seems to be undefined. Please make sure it is defined." >&2;}
13778 rm -f "$tmp/stdin"
13779 case $ac_file in
13780 -) cat "$tmp/out"; rm -f "$tmp/out";;
13781 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13782 esac
13786 # CONFIG_HEADER
13788 _ACEOF
13790 # Transform confdefs.h into a sed script `conftest.defines', that
13791 # substitutes the proper values into config.h.in to produce config.h.
13792 rm -f conftest.defines conftest.tail
13793 # First, append a space to every undef/define line, to ease matching.
13794 echo 's/$/ /' >conftest.defines
13795 # Then, protect against being on the right side of a sed subst, or in
13796 # an unquoted here document, in config.status. If some macros were
13797 # called several times there might be several #defines for the same
13798 # symbol, which is useless. But do not sort them, since the last
13799 # AC_DEFINE must be honored.
13800 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13801 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13802 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13803 # PARAMS is the parameter list in the macro definition--in most cases, it's
13804 # just an empty string.
13805 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13806 ac_dB='\\)[ (].*,\\1define\\2'
13807 ac_dC=' '
13808 ac_dD=' ,'
13810 uniq confdefs.h |
13811 sed -n '
13812 t rset
13813 :rset
13814 s/^[ ]*#[ ]*define[ ][ ]*//
13815 t ok
13818 s/[\\&,]/\\&/g
13819 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13820 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13821 ' >>conftest.defines
13823 # Remove the space that was appended to ease matching.
13824 # Then replace #undef with comments. This is necessary, for
13825 # example, in the case of _POSIX_SOURCE, which is predefined and required
13826 # on some systems where configure will not decide to define it.
13827 # (The regexp can be short, since the line contains either #define or #undef.)
13828 echo 's/ $//
13829 s,^[ #]*u.*,/* & */,' >>conftest.defines
13831 # Break up conftest.defines:
13832 ac_max_sed_lines=50
13834 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13835 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13836 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13837 # et cetera.
13838 ac_in='$ac_file_inputs'
13839 ac_out='"$tmp/out1"'
13840 ac_nxt='"$tmp/out2"'
13842 while :
13844 # Write a here document:
13845 cat >>$CONFIG_STATUS <<_ACEOF
13846 # First, check the format of the line:
13847 cat >"\$tmp/defines.sed" <<\\CEOF
13848 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13849 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13851 :def
13852 _ACEOF
13853 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13854 echo 'CEOF
13855 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13856 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13857 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13858 grep . conftest.tail >/dev/null || break
13859 rm -f conftest.defines
13860 mv conftest.tail conftest.defines
13861 done
13862 rm -f conftest.defines conftest.tail
13864 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13865 cat >>$CONFIG_STATUS <<\_ACEOF
13866 if test x"$ac_file" != x-; then
13867 echo "/* $configure_input */" >"$tmp/config.h"
13868 cat "$ac_result" >>"$tmp/config.h"
13869 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13870 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13871 echo "$as_me: $ac_file is unchanged" >&6;}
13872 else
13873 rm -f $ac_file
13874 mv "$tmp/config.h" $ac_file
13876 else
13877 echo "/* $configure_input */"
13878 cat "$ac_result"
13880 rm -f "$tmp/out12"
13883 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
13884 echo "$as_me: executing $ac_file commands" >&6;}
13886 esac
13889 case $ac_file$ac_mode in
13890 "compiler_executable":C)
13891 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
13892 mkdir -p $prefix
13893 prefix="${prefix}/${aros_target_cpu}-aros"
13894 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
13896 echo ${prefix}
13897 echo ${prefix2}
13898 chmod a+x ${prefix2}-gcc ${prefix2}-ld
13900 ln -sf ${prefix2}-gcc ${prefix}-gcc
13901 ln -sf ${prefix2}-ld ${prefix}-ld
13903 ln -sf $aros_target_as_ln ${prefix}-as
13904 ln -sf $aros_target_nm_ln ${prefix}-nm
13905 ln -sf $aros_target_ar_ln ${prefix}-ar
13906 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
13907 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
13908 ln -sf $aros_target_objdump_ln ${prefix}-objdump
13909 ln -sf $aros_target_strip_ln ${prefix}-strip
13911 ln -sf $aros_target_as_ln ${prefix2}-as
13912 ln -sf $aros_target_nm_ln ${prefix2}-nm
13913 ln -sf $aros_target_ar_ln ${prefix2}-ar
13914 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
13915 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
13916 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
13917 ln -sf $aros_target_strip_ln ${prefix2}-strip
13919 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
13920 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
13921 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
13924 esac
13925 done # for ac_tag
13928 { (exit 0); exit 0; }
13929 _ACEOF
13930 chmod +x $CONFIG_STATUS
13931 ac_clean_files=$ac_clean_files_save
13934 # configure is writing to config.log, and then calls config.status.
13935 # config.status does its own redirection, appending to config.log.
13936 # Unfortunately, on DOS this fails, as config.log is still kept open
13937 # by configure, so config.status won't be able to write to it; its
13938 # output is simply discarded. So we exec the FD to /dev/null,
13939 # effectively closing config.log, so it can be properly (re)opened and
13940 # appended to by config.status. When coming back to configure, we
13941 # need to make the FD available again.
13942 if test "$no_create" != yes; then
13943 ac_cs_success=:
13944 ac_config_status_args=
13945 test "$silent" = yes &&
13946 ac_config_status_args="$ac_config_status_args --quiet"
13947 exec 5>/dev/null
13948 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13949 exec 5>>config.log
13950 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13951 # would make configure fail if this is the last instruction.
13952 $ac_cs_success || { (exit 1); exit 1; }
13957 #XXX compatability...
13958 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
13960 if test -n "$aros_shared_cflags" ; then
13961 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
13962 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg