Small modification to diskinfo and info tool layout
[AROS.git] / configure
blobe97e817f4ae6893b5f2a3e441fa440b3b94c660a
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="mmakefile"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
662 CFLAGS
663 LDFLAGS
664 CPPFLAGS
665 ac_ct_CC
666 EXEEXT
667 OBJEXT
670 MMAKE
671 aros_host_ld
672 aros_host_aclocal
673 aros_host_autoconf
674 aros_host_autoheader
675 aros_host_automake
676 aros_host_ar
677 aros_host_ranlib
678 aros_host_strip
682 ECHO
683 MKDIR
684 TOUCH
685 SORT
686 UNIQ
689 BISON
690 FLEX
691 PNGTOPNM
692 PPMTOILBM
694 CHMOD
695 PYTHON
696 PYTHON_VERSION
697 PYTHON_PREFIX
698 PYTHON_EXEC_PREFIX
699 PYTHON_PLATFORM
700 pythondir
701 pkgpythondir
702 pyexecdir
703 pkgpyexecdir
706 TEST
708 GREP
709 EGREP
710 LIBOBJS
711 DISTCC
712 CCACHE
713 LIBLZO
714 aros_kernel_cc
715 aros_target_cc
716 aros_target_ld
717 aros_target_as_ln
718 aros_kernel_ld
719 aros_target_ar_ln
720 aros_target_nm_ln
721 aros_target_objcopy_ln
722 aros_target_objdump_ln
723 aros_target_ranlib_ln
724 aros_target_strip_ln
725 aros_target_nostdinc_cflags
726 aros_target_nostartup_ldflags
727 aros_target_nix_ldflags
728 aros_target_detach_ldflags
729 aros_target_nostdlib_ldflags
730 aros_cflags_iquote
731 aros_cflags_iquote_end
732 XMKMF
733 SDL_CONFIG
734 SDL_CFLAGS
735 SDL_LIBS
736 aros_arch
737 aros_cpu
738 aros_flavour
739 aros_flavour_uc
740 AROS_BUILDDIR
741 SRCDIR
742 AROS_PORTSSRCDIR
743 aros_cc_pre
744 aros_host_arch
745 aros_host_cpu
746 aros_host_cc
747 aros_host_make
748 aros_host_cflags
749 aros_host_ldflags
750 aros_host_debug
751 aros_host_mkdep
752 aros_host_mkargs
753 aros_host_exe_suffix
754 aros_host_lib_suffix
755 aros_tools_dir
756 aros_target_guitheme
757 aros_target_bootloader
758 aros_target_arch
759 aros_target_cpu
760 aros_target_variant
761 aros_target_suffix
762 aros_target_incl
763 aros_target_ar
764 aros_target_ranlib
765 aros_kernel_nm
766 orig_target_cc
767 aros_target_as
768 orig_target_ld
769 aros_target_cc_includes
770 aros_target_cc_path
771 aros_target_objdump
772 aros_target_objcopy
773 aros_target_strip
774 aros_target_nm
775 aros_shared_default
776 aros_shared_ld
777 aros_object_format
778 aros_compiler_libs
779 aros_config_cflags
780 aros_config_aflags
781 aros_config_ldflags
782 aros_shared_cflags
783 aros_shared_aflags
784 aros_shared_ldflags
785 aros_kernel_cflags
786 aros_kernel_ldflags
787 aros_debug_cflags
788 aros_debug_aflags
789 aros_debug_ldflags
790 aros_target_genmap
791 aros_target_strip_flags
792 x11_hidd_target
793 sdl_hidd_target
794 aros_default_wbwidth
795 aros_default_wbheight
796 aros_default_wbdepth
797 DO_XSHM_SUPPORT
798 DO_VIDMODE_SUPPORT
799 aros_host_x11_includes
800 aros_host_x11_libdirs
801 aros_host_sdl_cflags
802 aros_host_sdl_libs
803 aros_bochs_hack
804 aros_serial_debug
805 aros_palm_debug_hack
806 aros_nesting_supervisor
807 ENABLE_DBUS
808 DBUS_CFLAGS
809 DBUS_LIBFLAGS
810 KERNEL_DBUS_KOBJ
811 KERNEL_DBUS_INCLUDES
812 ENABLE_X11
813 aros_debug
814 aros_mungwall_debug
815 aros_stack_debug
816 aros_modules_debug
817 ignore_undefined_symbols
818 gcc_target_cpu
819 LTLIBOBJS'
820 ac_subst_files=''
821 ac_precious_vars='build_alias
822 host_alias
823 target_alias
825 CFLAGS
826 LDFLAGS
827 LIBS
828 CPPFLAGS
830 XMKMF'
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 # The variables have the same names as the options, with
837 # dashes changed to underlines.
838 cache_file=/dev/null
839 exec_prefix=NONE
840 no_create=
841 no_recursion=
842 prefix=NONE
843 program_prefix=NONE
844 program_suffix=NONE
845 program_transform_name=s,x,x,
846 silent=
847 site=
848 srcdir=
849 verbose=
850 x_includes=NONE
851 x_libraries=NONE
853 # Installation directory options.
854 # These are left unexpanded so users can "make install exec_prefix=/foo"
855 # and all the variables that are supposed to be based on exec_prefix
856 # by default will actually change.
857 # Use braces instead of parens because sh, perl, etc. also accept them.
858 # (The list follows the same order as the GNU Coding Standards.)
859 bindir='${exec_prefix}/bin'
860 sbindir='${exec_prefix}/sbin'
861 libexecdir='${exec_prefix}/libexec'
862 datarootdir='${prefix}/share'
863 datadir='${datarootdir}'
864 sysconfdir='${prefix}/etc'
865 sharedstatedir='${prefix}/com'
866 localstatedir='${prefix}/var'
867 includedir='${prefix}/include'
868 oldincludedir='/usr/include'
869 docdir='${datarootdir}/doc/${PACKAGE}'
870 infodir='${datarootdir}/info'
871 htmldir='${docdir}'
872 dvidir='${docdir}'
873 pdfdir='${docdir}'
874 psdir='${docdir}'
875 libdir='${exec_prefix}/lib'
876 localedir='${datarootdir}/locale'
877 mandir='${datarootdir}/man'
879 ac_prev=
880 ac_dashdash=
881 for ac_option
883 # If the previous option needs an argument, assign it.
884 if test -n "$ac_prev"; then
885 eval $ac_prev=\$ac_option
886 ac_prev=
887 continue
890 case $ac_option in
891 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892 *) ac_optarg=yes ;;
893 esac
895 # Accept the important Cygnus configure options, so we can diagnose typos.
897 case $ac_dashdash$ac_option in
899 ac_dashdash=yes ;;
901 -bindir | --bindir | --bindi | --bind | --bin | --bi)
902 ac_prev=bindir ;;
903 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
904 bindir=$ac_optarg ;;
906 -build | --build | --buil | --bui | --bu)
907 ac_prev=build_alias ;;
908 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
909 build_alias=$ac_optarg ;;
911 -cache-file | --cache-file | --cache-fil | --cache-fi \
912 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
913 ac_prev=cache_file ;;
914 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
915 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
916 cache_file=$ac_optarg ;;
918 --config-cache | -C)
919 cache_file=config.cache ;;
921 -datadir | --datadir | --datadi | --datad)
922 ac_prev=datadir ;;
923 -datadir=* | --datadir=* | --datadi=* | --datad=*)
924 datadir=$ac_optarg ;;
926 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
927 | --dataroo | --dataro | --datar)
928 ac_prev=datarootdir ;;
929 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
930 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
931 datarootdir=$ac_optarg ;;
933 -disable-* | --disable-*)
934 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
935 # Reject names that are not valid shell variable names.
936 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
937 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
938 { (exit 1); exit 1; }; }
939 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
940 eval enable_$ac_feature=no ;;
942 -docdir | --docdir | --docdi | --doc | --do)
943 ac_prev=docdir ;;
944 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
945 docdir=$ac_optarg ;;
947 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
948 ac_prev=dvidir ;;
949 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
950 dvidir=$ac_optarg ;;
952 -enable-* | --enable-*)
953 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
954 # Reject names that are not valid shell variable names.
955 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
956 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
957 { (exit 1); exit 1; }; }
958 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
959 eval enable_$ac_feature=\$ac_optarg ;;
961 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
962 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
963 | --exec | --exe | --ex)
964 ac_prev=exec_prefix ;;
965 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
966 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
967 | --exec=* | --exe=* | --ex=*)
968 exec_prefix=$ac_optarg ;;
970 -gas | --gas | --ga | --g)
971 # Obsolete; use --with-gas.
972 with_gas=yes ;;
974 -help | --help | --hel | --he | -h)
975 ac_init_help=long ;;
976 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
977 ac_init_help=recursive ;;
978 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
979 ac_init_help=short ;;
981 -host | --host | --hos | --ho)
982 ac_prev=host_alias ;;
983 -host=* | --host=* | --hos=* | --ho=*)
984 host_alias=$ac_optarg ;;
986 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
987 ac_prev=htmldir ;;
988 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
989 | --ht=*)
990 htmldir=$ac_optarg ;;
992 -includedir | --includedir | --includedi | --included | --include \
993 | --includ | --inclu | --incl | --inc)
994 ac_prev=includedir ;;
995 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
996 | --includ=* | --inclu=* | --incl=* | --inc=*)
997 includedir=$ac_optarg ;;
999 -infodir | --infodir | --infodi | --infod | --info | --inf)
1000 ac_prev=infodir ;;
1001 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1002 infodir=$ac_optarg ;;
1004 -libdir | --libdir | --libdi | --libd)
1005 ac_prev=libdir ;;
1006 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1007 libdir=$ac_optarg ;;
1009 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1010 | --libexe | --libex | --libe)
1011 ac_prev=libexecdir ;;
1012 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1013 | --libexe=* | --libex=* | --libe=*)
1014 libexecdir=$ac_optarg ;;
1016 -localedir | --localedir | --localedi | --localed | --locale)
1017 ac_prev=localedir ;;
1018 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1019 localedir=$ac_optarg ;;
1021 -localstatedir | --localstatedir | --localstatedi | --localstated \
1022 | --localstate | --localstat | --localsta | --localst | --locals)
1023 ac_prev=localstatedir ;;
1024 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1025 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1026 localstatedir=$ac_optarg ;;
1028 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1029 ac_prev=mandir ;;
1030 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1031 mandir=$ac_optarg ;;
1033 -nfp | --nfp | --nf)
1034 # Obsolete; use --without-fp.
1035 with_fp=no ;;
1037 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1038 | --no-cr | --no-c | -n)
1039 no_create=yes ;;
1041 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1042 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1043 no_recursion=yes ;;
1045 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1046 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1047 | --oldin | --oldi | --old | --ol | --o)
1048 ac_prev=oldincludedir ;;
1049 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1050 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1051 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1052 oldincludedir=$ac_optarg ;;
1054 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1055 ac_prev=prefix ;;
1056 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1057 prefix=$ac_optarg ;;
1059 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1060 | --program-pre | --program-pr | --program-p)
1061 ac_prev=program_prefix ;;
1062 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1063 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1064 program_prefix=$ac_optarg ;;
1066 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1067 | --program-suf | --program-su | --program-s)
1068 ac_prev=program_suffix ;;
1069 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1070 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1071 program_suffix=$ac_optarg ;;
1073 -program-transform-name | --program-transform-name \
1074 | --program-transform-nam | --program-transform-na \
1075 | --program-transform-n | --program-transform- \
1076 | --program-transform | --program-transfor \
1077 | --program-transfo | --program-transf \
1078 | --program-trans | --program-tran \
1079 | --progr-tra | --program-tr | --program-t)
1080 ac_prev=program_transform_name ;;
1081 -program-transform-name=* | --program-transform-name=* \
1082 | --program-transform-nam=* | --program-transform-na=* \
1083 | --program-transform-n=* | --program-transform-=* \
1084 | --program-transform=* | --program-transfor=* \
1085 | --program-transfo=* | --program-transf=* \
1086 | --program-trans=* | --program-tran=* \
1087 | --progr-tra=* | --program-tr=* | --program-t=*)
1088 program_transform_name=$ac_optarg ;;
1090 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1091 ac_prev=pdfdir ;;
1092 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1093 pdfdir=$ac_optarg ;;
1095 -psdir | --psdir | --psdi | --psd | --ps)
1096 ac_prev=psdir ;;
1097 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1098 psdir=$ac_optarg ;;
1100 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1101 | -silent | --silent | --silen | --sile | --sil)
1102 silent=yes ;;
1104 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1105 ac_prev=sbindir ;;
1106 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1107 | --sbi=* | --sb=*)
1108 sbindir=$ac_optarg ;;
1110 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1111 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1112 | --sharedst | --shareds | --shared | --share | --shar \
1113 | --sha | --sh)
1114 ac_prev=sharedstatedir ;;
1115 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1116 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1117 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1118 | --sha=* | --sh=*)
1119 sharedstatedir=$ac_optarg ;;
1121 -site | --site | --sit)
1122 ac_prev=site ;;
1123 -site=* | --site=* | --sit=*)
1124 site=$ac_optarg ;;
1126 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1127 ac_prev=srcdir ;;
1128 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1129 srcdir=$ac_optarg ;;
1131 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1132 | --syscon | --sysco | --sysc | --sys | --sy)
1133 ac_prev=sysconfdir ;;
1134 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1135 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1136 sysconfdir=$ac_optarg ;;
1138 -target | --target | --targe | --targ | --tar | --ta | --t)
1139 ac_prev=target_alias ;;
1140 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1141 target_alias=$ac_optarg ;;
1143 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1144 verbose=yes ;;
1146 -version | --version | --versio | --versi | --vers | -V)
1147 ac_init_version=: ;;
1149 -with-* | --with-*)
1150 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid package name: $ac_package" >&2
1154 { (exit 1); exit 1; }; }
1155 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1156 eval with_$ac_package=\$ac_optarg ;;
1158 -without-* | --without-*)
1159 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 { echo "$as_me: error: invalid package name: $ac_package" >&2
1163 { (exit 1); exit 1; }; }
1164 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1165 eval with_$ac_package=no ;;
1167 --x)
1168 # Obsolete; use --with-x.
1169 with_x=yes ;;
1171 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1172 | --x-incl | --x-inc | --x-in | --x-i)
1173 ac_prev=x_includes ;;
1174 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1175 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1176 x_includes=$ac_optarg ;;
1178 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1179 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1180 ac_prev=x_libraries ;;
1181 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1182 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1183 x_libraries=$ac_optarg ;;
1185 -*) { echo "$as_me: error: unrecognized option: $ac_option
1186 Try \`$0 --help' for more information." >&2
1187 { (exit 1); exit 1; }; }
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1194 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1195 { (exit 1); exit 1; }; }
1196 eval $ac_envvar=\$ac_optarg
1197 export $ac_envvar ;;
1200 # FIXME: should be removed in autoconf 3.0.
1201 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1202 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1203 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1204 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1207 esac
1208 done
1210 if test -n "$ac_prev"; then
1211 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1212 { echo "$as_me: error: missing argument to $ac_option" >&2
1213 { (exit 1); exit 1; }; }
1216 # Be sure to have absolute directory names.
1217 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1218 datadir sysconfdir sharedstatedir localstatedir includedir \
1219 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1220 libdir localedir mandir
1222 eval ac_val=\$$ac_var
1223 case $ac_val in
1224 [\\/$]* | ?:[\\/]* ) continue;;
1225 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1226 esac
1227 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1228 { (exit 1); exit 1; }; }
1229 done
1231 # There might be people who depend on the old broken behavior: `$host'
1232 # used to hold the argument of --host etc.
1233 # FIXME: To remove some day.
1234 build=$build_alias
1235 host=$host_alias
1236 target=$target_alias
1238 # FIXME: To remove some day.
1239 if test "x$host_alias" != x; then
1240 if test "x$build_alias" = x; then
1241 cross_compiling=maybe
1242 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1243 If a cross compiler is detected then cross compile mode will be used." >&2
1244 elif test "x$build_alias" != "x$host_alias"; then
1245 cross_compiling=yes
1249 ac_tool_prefix=
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252 test "$silent" = yes && exec 6>/dev/null
1255 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256 ac_ls_di=`ls -di .` &&
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258 { echo "$as_me: error: Working directory cannot be determined" >&2
1259 { (exit 1); exit 1; }; }
1260 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1261 { echo "$as_me: error: pwd does not report name of working directory" >&2
1262 { (exit 1); exit 1; }; }
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$0" ||
1270 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$0" : 'X\(//\)[^/]' \| \
1272 X"$0" : 'X\(//\)$' \| \
1273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1274 echo X"$0" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1283 /^X\(\/\/\)$/{
1284 s//\1/
1287 /^X\(\/\).*/{
1288 s//\1/
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1296 else
1297 ac_srcdir_defaulted=no
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1302 { (exit 1); exit 1; }; }
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1307 { (exit 1); exit 1; }; }
1308 pwd)`
1309 # When building in place, set srcdir=.
1310 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 srcdir=.
1313 # Remove unnecessary trailing slashes from srcdir.
1314 # Double slashes in file names in object file debugging info
1315 # mess up M-x gdb in Emacs.
1316 case $srcdir in
1317 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1318 esac
1319 for ac_var in $ac_precious_vars; do
1320 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_env_${ac_var}_value=\$${ac_var}
1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1323 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1324 done
1327 # Report the --help message.
1329 if test "$ac_init_help" = "long"; then
1330 # Omit some internal or obsolete options to make the list less imposing.
1331 # This message is too long to be a string in the A/UX 3.1 sh.
1332 cat <<_ACEOF
1333 \`configure' configures this package to adapt to many kinds of systems.
1335 Usage: $0 [OPTION]... [VAR=VALUE]...
1337 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1338 VAR=VALUE. See below for descriptions of some of the useful variables.
1340 Defaults for the options are specified in brackets.
1342 Configuration:
1343 -h, --help display this help and exit
1344 --help=short display options specific to this package
1345 --help=recursive display the short help of all the included packages
1346 -V, --version display version information and exit
1347 -q, --quiet, --silent do not print \`checking...' messages
1348 --cache-file=FILE cache test results in FILE [disabled]
1349 -C, --config-cache alias for \`--cache-file=config.cache'
1350 -n, --no-create do not create output files
1351 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1353 Installation directories:
1354 --prefix=PREFIX install architecture-independent files in PREFIX
1355 [$ac_default_prefix]
1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 [PREFIX]
1359 By default, \`make install' will install all the files in
1360 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1361 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1362 for instance \`--prefix=\$HOME'.
1364 For better control, use the options below.
1366 Fine tuning of the installation directories:
1367 --bindir=DIR user executables [EPREFIX/bin]
1368 --sbindir=DIR system admin executables [EPREFIX/sbin]
1369 --libexecdir=DIR program executables [EPREFIX/libexec]
1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1373 --libdir=DIR object code libraries [EPREFIX/lib]
1374 --includedir=DIR C header files [PREFIX/include]
1375 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1378 --infodir=DIR info documentation [DATAROOTDIR/info]
1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1380 --mandir=DIR man documentation [DATAROOTDIR/man]
1381 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1382 --htmldir=DIR html documentation [DOCDIR]
1383 --dvidir=DIR dvi documentation [DOCDIR]
1384 --pdfdir=DIR pdf documentation [DOCDIR]
1385 --psdir=DIR ps documentation [DOCDIR]
1386 _ACEOF
1388 cat <<\_ACEOF
1390 X features:
1391 --x-includes=DIR X include files are in DIR
1392 --x-libraries=DIR X library files are in DIR
1394 System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 _ACEOF
1400 if test -n "$ac_init_help"; then
1402 cat <<\_ACEOF
1404 Optional Features:
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407 --enable-build-type=TYPE
1408 Select the build type. Available types are:
1409 personal, nightly, snapshot, milestone, release. Do
1410 NOT use this option unless you know what you are
1411 doing! (default=personal)
1412 --enable-debug=list Enable different types of debug. Commas or
1413 whitespaces can be used to separate the items in the
1414 list. Available types of debug are: all, none,
1415 messages, stack, mungwall, modules, symbols. If no
1416 list is provided then "all" is assumed.
1417 (default=none)
1418 --enable-crosstools Build cross-compiler toolchains if necessary
1419 (default=no).
1420 --enable-distcc Use distcc as a front end to the compiler
1421 (default=no).
1422 --enable-ccache Use ccache as a front end to the compiler
1423 (default=no).
1424 --enable-target-variant=NAME
1425 Enable a specific target variant(default=none)
1426 --enable-includes=dir Alternative system include directory
1427 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1428 (default=no)
1429 --enable-palm-debug-hack
1430 Enable palm debug output hack in palm native
1431 (default=no)
1432 --enable-nesting-supervisor
1433 Enable nesting supervisor support in unix
1434 (default=no)
1435 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1436 --enable-x11-shm use X11 shared memory (default=auto)
1437 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1438 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1439 --disable-sdltest Do not try to compile and run a test SDL program
1440 --enable-dbus Enable DBUS support via dbus.library (default=no)
1442 Optional Packages:
1443 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1444 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1445 --with-optimization=FLAGS
1446 Use optimization flags FLAGS (default=-O2).
1447 --with-portssources=DIR Where to download sourcecode for external ports
1448 --with-bootloader=NAME Use a specific bootloader
1449 --with-theme=NAME Use a specific GUI Theme
1450 --with-resolution=XRESxYRESxDEPTH
1451 Default resolution of the initial WorkbenchScreen
1452 --with-serial-debug Enable serial debug output in native (default=no)
1453 --with-x use the X Window System
1454 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1455 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1457 Some influential environment variables:
1458 CC C compiler command
1459 CFLAGS C compiler flags
1460 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1461 nonstandard directory <lib dir>
1462 LIBS libraries to pass to the linker, e.g. -l<library>
1463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 CPP C preprocessor
1466 XMKMF Path to xmkmf, Makefile generator for X Window System
1468 Use these variables to override the choices made by `configure' or to help
1469 it to find libraries and programs with nonstandard names/locations.
1471 _ACEOF
1472 ac_status=$?
1475 if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478 test -d "$ac_dir" || continue
1479 ac_builddir=.
1481 case "$ac_dir" in
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1485 # A ".." for each directory in $ac_dir_suffix.
1486 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1490 esac ;;
1491 esac
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1497 case $srcdir in
1498 .) # We are building in place.
1499 ac_srcdir=.
1500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
1503 ac_srcdir=$srcdir$ac_dir_suffix;
1504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1506 *) # Relative name.
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1510 esac
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1519 echo &&
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1521 else
1522 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1523 fi || ac_status=$?
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1525 done
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1530 cat <<\_ACEOF
1531 configure
1532 generated by GNU Autoconf 2.61
1534 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1535 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1538 _ACEOF
1539 exit
1541 cat >config.log <<_ACEOF
1542 This file contains any messages produced by compilers while
1543 running configure, to aid debugging if configure makes a mistake.
1545 It was created by $as_me, which was
1546 generated by GNU Autoconf 2.61. Invocation command line was
1548 $ $0 $@
1550 _ACEOF
1551 exec 5>>config.log
1553 cat <<_ASUNAME
1554 ## --------- ##
1555 ## Platform. ##
1556 ## --------- ##
1558 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1559 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1560 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1561 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1562 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1564 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1565 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1567 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1568 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1569 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1570 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1571 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1572 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1573 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1575 _ASUNAME
1577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578 for as_dir in $PATH
1580 IFS=$as_save_IFS
1581 test -z "$as_dir" && as_dir=.
1582 echo "PATH: $as_dir"
1583 done
1584 IFS=$as_save_IFS
1586 } >&5
1588 cat >&5 <<_ACEOF
1591 ## ----------- ##
1592 ## Core tests. ##
1593 ## ----------- ##
1595 _ACEOF
1598 # Keep a trace of the command line.
1599 # Strip out --no-create and --no-recursion so they do not pile up.
1600 # Strip out --silent because we don't want to record it for future runs.
1601 # Also quote any args containing shell meta-characters.
1602 # Make two passes to allow for proper duplicate-argument suppression.
1603 ac_configure_args=
1604 ac_configure_args0=
1605 ac_configure_args1=
1606 ac_must_keep_next=false
1607 for ac_pass in 1 2
1609 for ac_arg
1611 case $ac_arg in
1612 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1613 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1614 | -silent | --silent | --silen | --sile | --sil)
1615 continue ;;
1616 *\'*)
1617 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1618 esac
1619 case $ac_pass in
1620 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1622 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1623 if test $ac_must_keep_next = true; then
1624 ac_must_keep_next=false # Got value, back to normal.
1625 else
1626 case $ac_arg in
1627 *=* | --config-cache | -C | -disable-* | --disable-* \
1628 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1629 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1630 | -with-* | --with-* | -without-* | --without-* | --x)
1631 case "$ac_configure_args0 " in
1632 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1633 esac
1635 -* ) ac_must_keep_next=true ;;
1636 esac
1638 ac_configure_args="$ac_configure_args '$ac_arg'"
1640 esac
1641 done
1642 done
1643 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1644 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1646 # When interrupted or exit'd, cleanup temporary files, and complete
1647 # config.log. We remove comments because anyway the quotes in there
1648 # would cause problems or look ugly.
1649 # WARNING: Use '\'' to represent an apostrophe within the trap.
1650 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1651 trap 'exit_status=$?
1652 # Save into config.log some information that might help in debugging.
1654 echo
1656 cat <<\_ASBOX
1657 ## ---------------- ##
1658 ## Cache variables. ##
1659 ## ---------------- ##
1660 _ASBOX
1661 echo
1662 # The following way of writing the cache mishandles newlines in values,
1664 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1665 eval ac_val=\$$ac_var
1666 case $ac_val in #(
1667 *${as_nl}*)
1668 case $ac_var in #(
1669 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1670 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1671 esac
1672 case $ac_var in #(
1673 _ | IFS | as_nl) ;; #(
1674 *) $as_unset $ac_var ;;
1675 esac ;;
1676 esac
1677 done
1678 (set) 2>&1 |
1679 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1680 *${as_nl}ac_space=\ *)
1681 sed -n \
1682 "s/'\''/'\''\\\\'\'''\''/g;
1683 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1684 ;; #(
1686 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1688 esac |
1689 sort
1691 echo
1693 cat <<\_ASBOX
1694 ## ----------------- ##
1695 ## Output variables. ##
1696 ## ----------------- ##
1697 _ASBOX
1698 echo
1699 for ac_var in $ac_subst_vars
1701 eval ac_val=\$$ac_var
1702 case $ac_val in
1703 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1704 esac
1705 echo "$ac_var='\''$ac_val'\''"
1706 done | sort
1707 echo
1709 if test -n "$ac_subst_files"; then
1710 cat <<\_ASBOX
1711 ## ------------------- ##
1712 ## File substitutions. ##
1713 ## ------------------- ##
1714 _ASBOX
1715 echo
1716 for ac_var in $ac_subst_files
1718 eval ac_val=\$$ac_var
1719 case $ac_val in
1720 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1721 esac
1722 echo "$ac_var='\''$ac_val'\''"
1723 done | sort
1724 echo
1727 if test -s confdefs.h; then
1728 cat <<\_ASBOX
1729 ## ----------- ##
1730 ## confdefs.h. ##
1731 ## ----------- ##
1732 _ASBOX
1733 echo
1734 cat confdefs.h
1735 echo
1737 test "$ac_signal" != 0 &&
1738 echo "$as_me: caught signal $ac_signal"
1739 echo "$as_me: exit $exit_status"
1740 } >&5
1741 rm -f core *.core core.conftest.* &&
1742 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1743 exit $exit_status
1745 for ac_signal in 1 2 13 15; do
1746 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1747 done
1748 ac_signal=0
1750 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1751 rm -f -r conftest* confdefs.h
1753 # Predefined preprocessor variables.
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_NAME "$PACKAGE_NAME"
1757 _ACEOF
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1762 _ACEOF
1765 cat >>confdefs.h <<_ACEOF
1766 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1767 _ACEOF
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_STRING "$PACKAGE_STRING"
1772 _ACEOF
1775 cat >>confdefs.h <<_ACEOF
1776 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1777 _ACEOF
1780 # Let the site file select an alternate cache file if it wants to.
1781 # Prefer explicitly selected file to automatically selected ones.
1782 if test -n "$CONFIG_SITE"; then
1783 set x "$CONFIG_SITE"
1784 elif test "x$prefix" != xNONE; then
1785 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1786 else
1787 set x "$ac_default_prefix/share/config.site" \
1788 "$ac_default_prefix/etc/config.site"
1790 shift
1791 for ac_site_file
1793 if test -r "$ac_site_file"; then
1794 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1795 echo "$as_me: loading site script $ac_site_file" >&6;}
1796 sed 's/^/| /' "$ac_site_file" >&5
1797 . "$ac_site_file"
1799 done
1801 if test -r "$cache_file"; then
1802 # Some versions of bash will fail to source /dev/null (special
1803 # files actually), so we avoid doing that.
1804 if test -f "$cache_file"; then
1805 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1806 echo "$as_me: loading cache $cache_file" >&6;}
1807 case $cache_file in
1808 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1809 *) . "./$cache_file";;
1810 esac
1812 else
1813 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1814 echo "$as_me: creating cache $cache_file" >&6;}
1815 >$cache_file
1818 # Check that the precious variables saved in the cache have kept the same
1819 # value.
1820 ac_cache_corrupted=false
1821 for ac_var in $ac_precious_vars; do
1822 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1823 eval ac_new_set=\$ac_env_${ac_var}_set
1824 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1825 eval ac_new_val=\$ac_env_${ac_var}_value
1826 case $ac_old_set,$ac_new_set in
1827 set,)
1828 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1829 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1830 ac_cache_corrupted=: ;;
1831 ,set)
1832 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1834 ac_cache_corrupted=: ;;
1835 ,);;
1837 if test "x$ac_old_val" != "x$ac_new_val"; then
1838 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1839 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1840 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1841 echo "$as_me: former value: $ac_old_val" >&2;}
1842 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1843 echo "$as_me: current value: $ac_new_val" >&2;}
1844 ac_cache_corrupted=:
1845 fi;;
1846 esac
1847 # Pass precious variables to config.status.
1848 if test "$ac_new_set" = set; then
1849 case $ac_new_val in
1850 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1851 *) ac_arg=$ac_var=$ac_new_val ;;
1852 esac
1853 case " $ac_configure_args " in
1854 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1855 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1856 esac
1858 done
1859 if $ac_cache_corrupted; then
1860 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1861 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1862 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1863 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1864 { (exit 1); exit 1; }; }
1883 ac_ext=c
1884 ac_cpp='$CPP $CPPFLAGS'
1885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1891 ac_aux_dir=
1892 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1893 if test -f "$ac_dir/install-sh"; then
1894 ac_aux_dir=$ac_dir
1895 ac_install_sh="$ac_aux_dir/install-sh -c"
1896 break
1897 elif test -f "$ac_dir/install.sh"; then
1898 ac_aux_dir=$ac_dir
1899 ac_install_sh="$ac_aux_dir/install.sh -c"
1900 break
1901 elif test -f "$ac_dir/shtool"; then
1902 ac_aux_dir=$ac_dir
1903 ac_install_sh="$ac_aux_dir/shtool install -c"
1904 break
1906 done
1907 if test -z "$ac_aux_dir"; then
1908 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1909 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1910 { (exit 1); exit 1; }; }
1913 # These three variables are undocumented and unsupported,
1914 # and are intended to be withdrawn in a future Autoconf release.
1915 # They can cause serious problems if a builder's source tree is in a directory
1916 # whose full name contains unusual characters.
1917 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1918 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1919 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1923 # Check what host we are running on.
1924 # If a target is not suggested, we use this one.
1925 # Note that what we call a target, Autoconf calls a host.
1926 # Make sure we can run config.sub.
1927 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1928 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1929 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1930 { (exit 1); exit 1; }; }
1932 { echo "$as_me:$LINENO: checking build system type" >&5
1933 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1934 if test "${ac_cv_build+set}" = set; then
1935 echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937 ac_build_alias=$build_alias
1938 test "x$ac_build_alias" = x &&
1939 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1940 test "x$ac_build_alias" = x &&
1941 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1942 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1943 { (exit 1); exit 1; }; }
1944 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1945 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1946 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1947 { (exit 1); exit 1; }; }
1950 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1951 echo "${ECHO_T}$ac_cv_build" >&6; }
1952 case $ac_cv_build in
1953 *-*-*) ;;
1954 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1955 echo "$as_me: error: invalid value of canonical build" >&2;}
1956 { (exit 1); exit 1; }; };;
1957 esac
1958 build=$ac_cv_build
1959 ac_save_IFS=$IFS; IFS='-'
1960 set x $ac_cv_build
1961 shift
1962 build_cpu=$1
1963 build_vendor=$2
1964 shift; shift
1965 # Remember, the first character of IFS is used to create $*,
1966 # except with old shells:
1967 build_os=$*
1968 IFS=$ac_save_IFS
1969 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1972 { echo "$as_me:$LINENO: checking host system type" >&5
1973 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1974 if test "${ac_cv_host+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 else
1977 if test "x$host_alias" = x; then
1978 ac_cv_host=$ac_cv_build
1979 else
1980 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1981 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1982 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1983 { (exit 1); exit 1; }; }
1987 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1988 echo "${ECHO_T}$ac_cv_host" >&6; }
1989 case $ac_cv_host in
1990 *-*-*) ;;
1991 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1992 echo "$as_me: error: invalid value of canonical host" >&2;}
1993 { (exit 1); exit 1; }; };;
1994 esac
1995 host=$ac_cv_host
1996 ac_save_IFS=$IFS; IFS='-'
1997 set x $ac_cv_host
1998 shift
1999 host_cpu=$1
2000 host_vendor=$2
2001 shift; shift
2002 # Remember, the first character of IFS is used to create $*,
2003 # except with old shells:
2004 host_os=$*
2005 IFS=$ac_save_IFS
2006 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2010 # The AROS target is slightly different to the normal GNU style
2011 # format. We don't have the middle part, and we reverse the order
2012 # of the $(CPU) and $(OS) bits.
2014 # Don't strip the version of the target yet, it might be
2015 # useful on some systems.
2017 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2018 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2020 if test "$target" = "NONE" ; then
2021 target=$host_os-$host_cpu
2022 cross_compile=no
2023 else
2024 if test "$target" = "" ; then
2025 target=$host_os-$host_cpu
2026 cross_compile=no
2027 else
2028 cross_compile=yes
2031 { echo "$as_me:$LINENO: result: $target" >&5
2032 echo "${ECHO_T}$target" >&6; }
2034 #don't know where else to put this...
2035 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2036 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2037 AROS_BUILDDIR=$PWD
2038 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2039 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2041 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2042 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2043 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2044 SRCDIR=${srcpwd}
2045 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2046 echo "${ECHO_T}$SRCDIR" >&6; }
2048 # Parse the target field into something useful.
2050 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2051 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2054 aros_default_wbwidth=800
2055 aros_default_wbheight=600
2056 aros_default_wbdepth=4
2059 # The first step is to find the host binaries.
2060 # Check for a compiler.
2061 ac_ext=c
2062 ac_cpp='$CPP $CPPFLAGS'
2063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2066 if test -n "$ac_tool_prefix"; then
2067 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2068 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2071 if test "${ac_cv_prog_CC+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073 else
2074 if test -n "$CC"; then
2075 ac_cv_prog_CC="$CC" # Let the user override the test.
2076 else
2077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2078 for as_dir in $PATH
2080 IFS=$as_save_IFS
2081 test -z "$as_dir" && as_dir=.
2082 for ac_exec_ext in '' $ac_executable_extensions; do
2083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2084 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2086 break 2
2088 done
2089 done
2090 IFS=$as_save_IFS
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096 { echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6; }
2098 else
2099 { echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6; }
2105 if test -z "$ac_cv_prog_CC"; then
2106 ac_ct_CC=$CC
2107 # Extract the first word of "gcc", so it can be a program name with args.
2108 set dummy gcc; ac_word=$2
2109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2111 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2112 echo $ECHO_N "(cached) $ECHO_C" >&6
2113 else
2114 if test -n "$ac_ct_CC"; then
2115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2116 else
2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2118 for as_dir in $PATH
2120 IFS=$as_save_IFS
2121 test -z "$as_dir" && as_dir=.
2122 for ac_exec_ext in '' $ac_executable_extensions; do
2123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2124 ac_cv_prog_ac_ct_CC="gcc"
2125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2126 break 2
2128 done
2129 done
2130 IFS=$as_save_IFS
2134 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2135 if test -n "$ac_ct_CC"; then
2136 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2137 echo "${ECHO_T}$ac_ct_CC" >&6; }
2138 else
2139 { echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6; }
2143 if test "x$ac_ct_CC" = x; then
2144 CC=""
2145 else
2146 case $cross_compiling:$ac_tool_warned in
2147 yes:)
2148 { echo "$as_me:$LINENO: 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." >&5
2151 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2152 whose name does not start with the host triplet. If you think this
2153 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2154 ac_tool_warned=yes ;;
2155 esac
2156 CC=$ac_ct_CC
2158 else
2159 CC="$ac_cv_prog_CC"
2162 if test -z "$CC"; then
2163 if test -n "$ac_tool_prefix"; then
2164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2165 set dummy ${ac_tool_prefix}cc; ac_word=$2
2166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2168 if test "${ac_cv_prog_CC+set}" = set; then
2169 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 else
2171 if test -n "$CC"; then
2172 ac_cv_prog_CC="$CC" # Let the user override the test.
2173 else
2174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2175 for as_dir in $PATH
2177 IFS=$as_save_IFS
2178 test -z "$as_dir" && as_dir=.
2179 for ac_exec_ext in '' $ac_executable_extensions; do
2180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2181 ac_cv_prog_CC="${ac_tool_prefix}cc"
2182 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2183 break 2
2185 done
2186 done
2187 IFS=$as_save_IFS
2191 CC=$ac_cv_prog_CC
2192 if test -n "$CC"; then
2193 { echo "$as_me:$LINENO: result: $CC" >&5
2194 echo "${ECHO_T}$CC" >&6; }
2195 else
2196 { echo "$as_me:$LINENO: result: no" >&5
2197 echo "${ECHO_T}no" >&6; }
2203 if test -z "$CC"; then
2204 # Extract the first word of "cc", so it can be a program name with args.
2205 set dummy cc; ac_word=$2
2206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2208 if test "${ac_cv_prog_CC+set}" = set; then
2209 echo $ECHO_N "(cached) $ECHO_C" >&6
2210 else
2211 if test -n "$CC"; then
2212 ac_cv_prog_CC="$CC" # Let the user override the test.
2213 else
2214 ac_prog_rejected=no
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2223 ac_prog_rejected=yes
2224 continue
2226 ac_cv_prog_CC="cc"
2227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2228 break 2
2230 done
2231 done
2232 IFS=$as_save_IFS
2234 if test $ac_prog_rejected = yes; then
2235 # We found a bogon in the path, so make sure we never use it.
2236 set dummy $ac_cv_prog_CC
2237 shift
2238 if test $# != 0; then
2239 # We chose a different compiler from the bogus one.
2240 # However, it has the same basename, so the bogon will be chosen
2241 # first if we set CC to just the basename; use the full file name.
2242 shift
2243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2248 CC=$ac_cv_prog_CC
2249 if test -n "$CC"; then
2250 { echo "$as_me:$LINENO: result: $CC" >&5
2251 echo "${ECHO_T}$CC" >&6; }
2252 else
2253 { echo "$as_me:$LINENO: result: no" >&5
2254 echo "${ECHO_T}no" >&6; }
2259 if test -z "$CC"; then
2260 if test -n "$ac_tool_prefix"; then
2261 for ac_prog in cl.exe
2263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2267 if test "${ac_cv_prog_CC+set}" = set; then
2268 echo $ECHO_N "(cached) $ECHO_C" >&6
2269 else
2270 if test -n "$CC"; then
2271 ac_cv_prog_CC="$CC" # Let the user override the test.
2272 else
2273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 for as_dir in $PATH
2276 IFS=$as_save_IFS
2277 test -z "$as_dir" && as_dir=.
2278 for ac_exec_ext in '' $ac_executable_extensions; do
2279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2282 break 2
2284 done
2285 done
2286 IFS=$as_save_IFS
2290 CC=$ac_cv_prog_CC
2291 if test -n "$CC"; then
2292 { echo "$as_me:$LINENO: result: $CC" >&5
2293 echo "${ECHO_T}$CC" >&6; }
2294 else
2295 { echo "$as_me:$LINENO: result: no" >&5
2296 echo "${ECHO_T}no" >&6; }
2300 test -n "$CC" && break
2301 done
2303 if test -z "$CC"; then
2304 ac_ct_CC=$CC
2305 for ac_prog in cl.exe
2307 # Extract the first word of "$ac_prog", so it can be a program name with args.
2308 set dummy $ac_prog; ac_word=$2
2309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2312 echo $ECHO_N "(cached) $ECHO_C" >&6
2313 else
2314 if test -n "$ac_ct_CC"; then
2315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2316 else
2317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2318 for as_dir in $PATH
2320 IFS=$as_save_IFS
2321 test -z "$as_dir" && as_dir=.
2322 for ac_exec_ext in '' $ac_executable_extensions; do
2323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2324 ac_cv_prog_ac_ct_CC="$ac_prog"
2325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2326 break 2
2328 done
2329 done
2330 IFS=$as_save_IFS
2334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2335 if test -n "$ac_ct_CC"; then
2336 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2337 echo "${ECHO_T}$ac_ct_CC" >&6; }
2338 else
2339 { echo "$as_me:$LINENO: result: no" >&5
2340 echo "${ECHO_T}no" >&6; }
2344 test -n "$ac_ct_CC" && break
2345 done
2347 if test "x$ac_ct_CC" = x; then
2348 CC=""
2349 else
2350 case $cross_compiling:$ac_tool_warned in
2351 yes:)
2352 { echo "$as_me:$LINENO: 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." >&5
2355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2356 whose name does not start with the host triplet. If you think this
2357 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2358 ac_tool_warned=yes ;;
2359 esac
2360 CC=$ac_ct_CC
2367 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2368 See \`config.log' for more details." >&5
2369 echo "$as_me: error: no acceptable C compiler found in \$PATH
2370 See \`config.log' for more details." >&2;}
2371 { (exit 1); exit 1; }; }
2373 # Provide some information about the compiler.
2374 echo "$as_me:$LINENO: checking for C compiler version" >&5
2375 ac_compiler=`set X $ac_compile; echo $2`
2376 { (ac_try="$ac_compiler --version >&5"
2377 case "(($ac_try" in
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2380 esac
2381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2382 (eval "$ac_compiler --version >&5") 2>&5
2383 ac_status=$?
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }
2386 { (ac_try="$ac_compiler -v >&5"
2387 case "(($ac_try" in
2388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2389 *) ac_try_echo=$ac_try;;
2390 esac
2391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2392 (eval "$ac_compiler -v >&5") 2>&5
2393 ac_status=$?
2394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395 (exit $ac_status); }
2396 { (ac_try="$ac_compiler -V >&5"
2397 case "(($ac_try" in
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2400 esac
2401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2402 (eval "$ac_compiler -V >&5") 2>&5
2403 ac_status=$?
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); }
2407 cat >conftest.$ac_ext <<_ACEOF
2408 /* confdefs.h. */
2409 _ACEOF
2410 cat confdefs.h >>conftest.$ac_ext
2411 cat >>conftest.$ac_ext <<_ACEOF
2412 /* end confdefs.h. */
2415 main ()
2419 return 0;
2421 _ACEOF
2422 ac_clean_files_save=$ac_clean_files
2423 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2424 # Try to create an executable without -o first, disregard a.out.
2425 # It will help us diagnose broken compilers, and finding out an intuition
2426 # of exeext.
2427 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2428 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2429 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2431 # List of possible output files, starting from the most likely.
2432 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2433 # only as a last resort. b.out is created by i960 compilers.
2434 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2436 # The IRIX 6 linker writes into existing files which may not be
2437 # executable, retaining their permissions. Remove them first so a
2438 # subsequent execution test works.
2439 ac_rmfiles=
2440 for ac_file in $ac_files
2442 case $ac_file in
2443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2444 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2445 esac
2446 done
2447 rm -f $ac_rmfiles
2449 if { (ac_try="$ac_link_default"
2450 case "(($ac_try" in
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2453 esac
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_link_default") 2>&5
2456 ac_status=$?
2457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2458 (exit $ac_status); }; then
2459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2460 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2461 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2462 # so that the user can short-circuit this test for compilers unknown to
2463 # Autoconf.
2464 for ac_file in $ac_files ''
2466 test -f "$ac_file" || continue
2467 case $ac_file in
2468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2470 [ab].out )
2471 # We found the default executable, but exeext='' is most
2472 # certainly right.
2473 break;;
2474 *.* )
2475 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2476 then :; else
2477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2479 # We set ac_cv_exeext here because the later test for it is not
2480 # safe: cross compilers may not add the suffix if given an `-o'
2481 # argument, so we may need to know it at that point already.
2482 # Even if this section looks crufty: it has the advantage of
2483 # actually working.
2484 break;;
2486 break;;
2487 esac
2488 done
2489 test "$ac_cv_exeext" = no && ac_cv_exeext=
2491 else
2492 ac_file=''
2495 { echo "$as_me:$LINENO: result: $ac_file" >&5
2496 echo "${ECHO_T}$ac_file" >&6; }
2497 if test -z "$ac_file"; then
2498 echo "$as_me: failed program was:" >&5
2499 sed 's/^/| /' conftest.$ac_ext >&5
2501 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2502 See \`config.log' for more details." >&5
2503 echo "$as_me: error: C compiler cannot create executables
2504 See \`config.log' for more details." >&2;}
2505 { (exit 77); exit 77; }; }
2508 ac_exeext=$ac_cv_exeext
2510 # Check that the compiler produces executables we can run. If not, either
2511 # the compiler is broken, or we cross compile.
2512 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2513 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2514 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2515 # If not cross compiling, check that we can run a simple program.
2516 if test "$cross_compiling" != yes; then
2517 if { ac_try='./$ac_file'
2518 { (case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2521 esac
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_try") 2>&5
2524 ac_status=$?
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; }; then
2527 cross_compiling=no
2528 else
2529 if test "$cross_compiling" = maybe; then
2530 cross_compiling=yes
2531 else
2532 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2533 If you meant to cross compile, use \`--host'.
2534 See \`config.log' for more details." >&5
2535 echo "$as_me: error: cannot run C compiled programs.
2536 If you meant to cross compile, use \`--host'.
2537 See \`config.log' for more details." >&2;}
2538 { (exit 1); exit 1; }; }
2542 { echo "$as_me:$LINENO: result: yes" >&5
2543 echo "${ECHO_T}yes" >&6; }
2545 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2546 ac_clean_files=$ac_clean_files_save
2547 # Check that the compiler produces executables we can run. If not, either
2548 # the compiler is broken, or we cross compile.
2549 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2550 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2551 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2552 echo "${ECHO_T}$cross_compiling" >&6; }
2554 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2555 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2556 if { (ac_try="$ac_link"
2557 case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560 esac
2561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_link") 2>&5
2563 ac_status=$?
2564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565 (exit $ac_status); }; then
2566 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2567 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2568 # work properly (i.e., refer to `conftest.exe'), while it won't with
2569 # `rm'.
2570 for ac_file in conftest.exe conftest conftest.*; do
2571 test -f "$ac_file" || continue
2572 case $ac_file in
2573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2574 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2575 break;;
2576 * ) break;;
2577 esac
2578 done
2579 else
2580 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2583 See \`config.log' for more details." >&2;}
2584 { (exit 1); exit 1; }; }
2587 rm -f conftest$ac_cv_exeext
2588 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2589 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2591 rm -f conftest.$ac_ext
2592 EXEEXT=$ac_cv_exeext
2593 ac_exeext=$EXEEXT
2594 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2595 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2596 if test "${ac_cv_objext+set}" = set; then
2597 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 else
2599 cat >conftest.$ac_ext <<_ACEOF
2600 /* confdefs.h. */
2601 _ACEOF
2602 cat confdefs.h >>conftest.$ac_ext
2603 cat >>conftest.$ac_ext <<_ACEOF
2604 /* end confdefs.h. */
2607 main ()
2611 return 0;
2613 _ACEOF
2614 rm -f conftest.o conftest.obj
2615 if { (ac_try="$ac_compile"
2616 case "(($ac_try" in
2617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618 *) ac_try_echo=$ac_try;;
2619 esac
2620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621 (eval "$ac_compile") 2>&5
2622 ac_status=$?
2623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624 (exit $ac_status); }; then
2625 for ac_file in conftest.o conftest.obj conftest.*; do
2626 test -f "$ac_file" || continue;
2627 case $ac_file in
2628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2629 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2630 break;;
2631 esac
2632 done
2633 else
2634 echo "$as_me: failed program was:" >&5
2635 sed 's/^/| /' conftest.$ac_ext >&5
2637 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2638 See \`config.log' for more details." >&5
2639 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2640 See \`config.log' for more details." >&2;}
2641 { (exit 1); exit 1; }; }
2644 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2646 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2647 echo "${ECHO_T}$ac_cv_objext" >&6; }
2648 OBJEXT=$ac_cv_objext
2649 ac_objext=$OBJEXT
2650 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2651 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2652 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2653 echo $ECHO_N "(cached) $ECHO_C" >&6
2654 else
2655 cat >conftest.$ac_ext <<_ACEOF
2656 /* confdefs.h. */
2657 _ACEOF
2658 cat confdefs.h >>conftest.$ac_ext
2659 cat >>conftest.$ac_ext <<_ACEOF
2660 /* end confdefs.h. */
2663 main ()
2665 #ifndef __GNUC__
2666 choke me
2667 #endif
2670 return 0;
2672 _ACEOF
2673 rm -f conftest.$ac_objext
2674 if { (ac_try="$ac_compile"
2675 case "(($ac_try" in
2676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677 *) ac_try_echo=$ac_try;;
2678 esac
2679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2680 (eval "$ac_compile") 2>conftest.er1
2681 ac_status=$?
2682 grep -v '^ *+' conftest.er1 >conftest.err
2683 rm -f conftest.er1
2684 cat conftest.err >&5
2685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2686 (exit $ac_status); } && {
2687 test -z "$ac_c_werror_flag" ||
2688 test ! -s conftest.err
2689 } && test -s conftest.$ac_objext; then
2690 ac_compiler_gnu=yes
2691 else
2692 echo "$as_me: failed program was:" >&5
2693 sed 's/^/| /' conftest.$ac_ext >&5
2695 ac_compiler_gnu=no
2698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2702 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2703 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2704 GCC=`test $ac_compiler_gnu = yes && echo yes`
2705 ac_test_CFLAGS=${CFLAGS+set}
2706 ac_save_CFLAGS=$CFLAGS
2707 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2708 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2709 if test "${ac_cv_prog_cc_g+set}" = set; then
2710 echo $ECHO_N "(cached) $ECHO_C" >&6
2711 else
2712 ac_save_c_werror_flag=$ac_c_werror_flag
2713 ac_c_werror_flag=yes
2714 ac_cv_prog_cc_g=no
2715 CFLAGS="-g"
2716 cat >conftest.$ac_ext <<_ACEOF
2717 /* confdefs.h. */
2718 _ACEOF
2719 cat confdefs.h >>conftest.$ac_ext
2720 cat >>conftest.$ac_ext <<_ACEOF
2721 /* end confdefs.h. */
2724 main ()
2728 return 0;
2730 _ACEOF
2731 rm -f conftest.$ac_objext
2732 if { (ac_try="$ac_compile"
2733 case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736 esac
2737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2739 ac_status=$?
2740 grep -v '^ *+' conftest.er1 >conftest.err
2741 rm -f conftest.er1
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2744 (exit $ac_status); } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest.$ac_objext; then
2748 ac_cv_prog_cc_g=yes
2749 else
2750 echo "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2753 CFLAGS=""
2754 cat >conftest.$ac_ext <<_ACEOF
2755 /* confdefs.h. */
2756 _ACEOF
2757 cat confdefs.h >>conftest.$ac_ext
2758 cat >>conftest.$ac_ext <<_ACEOF
2759 /* end confdefs.h. */
2762 main ()
2766 return 0;
2768 _ACEOF
2769 rm -f conftest.$ac_objext
2770 if { (ac_try="$ac_compile"
2771 case "(($ac_try" in
2772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2773 *) ac_try_echo=$ac_try;;
2774 esac
2775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2776 (eval "$ac_compile") 2>conftest.er1
2777 ac_status=$?
2778 grep -v '^ *+' conftest.er1 >conftest.err
2779 rm -f conftest.er1
2780 cat conftest.err >&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); } && {
2783 test -z "$ac_c_werror_flag" ||
2784 test ! -s conftest.err
2785 } && test -s conftest.$ac_objext; then
2787 else
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2791 ac_c_werror_flag=$ac_save_c_werror_flag
2792 CFLAGS="-g"
2793 cat >conftest.$ac_ext <<_ACEOF
2794 /* confdefs.h. */
2795 _ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2801 main ()
2805 return 0;
2807 _ACEOF
2808 rm -f conftest.$ac_objext
2809 if { (ac_try="$ac_compile"
2810 case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813 esac
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_compile") 2>conftest.er1
2816 ac_status=$?
2817 grep -v '^ *+' conftest.er1 >conftest.err
2818 rm -f conftest.er1
2819 cat conftest.err >&5
2820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2821 (exit $ac_status); } && {
2822 test -z "$ac_c_werror_flag" ||
2823 test ! -s conftest.err
2824 } && test -s conftest.$ac_objext; then
2825 ac_cv_prog_cc_g=yes
2826 else
2827 echo "$as_me: failed program was:" >&5
2828 sed 's/^/| /' conftest.$ac_ext >&5
2833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2840 ac_c_werror_flag=$ac_save_c_werror_flag
2842 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2843 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2844 if test "$ac_test_CFLAGS" = set; then
2845 CFLAGS=$ac_save_CFLAGS
2846 elif test $ac_cv_prog_cc_g = yes; then
2847 if test "$GCC" = yes; then
2848 CFLAGS="-g -O2"
2849 else
2850 CFLAGS="-g"
2852 else
2853 if test "$GCC" = yes; then
2854 CFLAGS="-O2"
2855 else
2856 CFLAGS=
2859 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2860 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2861 if test "${ac_cv_prog_cc_c89+set}" = set; then
2862 echo $ECHO_N "(cached) $ECHO_C" >&6
2863 else
2864 ac_cv_prog_cc_c89=no
2865 ac_save_CC=$CC
2866 cat >conftest.$ac_ext <<_ACEOF
2867 /* confdefs.h. */
2868 _ACEOF
2869 cat confdefs.h >>conftest.$ac_ext
2870 cat >>conftest.$ac_ext <<_ACEOF
2871 /* end confdefs.h. */
2872 #include <stdarg.h>
2873 #include <stdio.h>
2874 #include <sys/types.h>
2875 #include <sys/stat.h>
2876 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2877 struct buf { int x; };
2878 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2879 static char *e (p, i)
2880 char **p;
2881 int i;
2883 return p[i];
2885 static char *f (char * (*g) (char **, int), char **p, ...)
2887 char *s;
2888 va_list v;
2889 va_start (v,p);
2890 s = g (p, va_arg (v,int));
2891 va_end (v);
2892 return s;
2895 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2896 function prototypes and stuff, but not '\xHH' hex character constants.
2897 These don't provoke an error unfortunately, instead are silently treated
2898 as 'x'. The following induces an error, until -std is added to get
2899 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2900 array size at least. It's necessary to write '\x00'==0 to get something
2901 that's true only with -std. */
2902 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2904 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2905 inside strings and character constants. */
2906 #define FOO(x) 'x'
2907 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2909 int test (int i, double x);
2910 struct s1 {int (*f) (int a);};
2911 struct s2 {int (*f) (double a);};
2912 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2913 int argc;
2914 char **argv;
2916 main ()
2918 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2920 return 0;
2922 _ACEOF
2923 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2924 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2926 CC="$ac_save_CC $ac_arg"
2927 rm -f conftest.$ac_objext
2928 if { (ac_try="$ac_compile"
2929 case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compile") 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } && {
2941 test -z "$ac_c_werror_flag" ||
2942 test ! -s conftest.err
2943 } && test -s conftest.$ac_objext; then
2944 ac_cv_prog_cc_c89=$ac_arg
2945 else
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2952 rm -f core conftest.err conftest.$ac_objext
2953 test "x$ac_cv_prog_cc_c89" != "xno" && break
2954 done
2955 rm -f conftest.$ac_ext
2956 CC=$ac_save_CC
2959 # AC_CACHE_VAL
2960 case "x$ac_cv_prog_cc_c89" in
2962 { echo "$as_me:$LINENO: result: none needed" >&5
2963 echo "${ECHO_T}none needed" >&6; } ;;
2964 xno)
2965 { echo "$as_me:$LINENO: result: unsupported" >&5
2966 echo "${ECHO_T}unsupported" >&6; } ;;
2968 CC="$CC $ac_cv_prog_cc_c89"
2969 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2970 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2971 esac
2974 ac_ext=c
2975 ac_cpp='$CPP $CPPFLAGS'
2976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2980 case $ac_cv_prog_cc_stdc in
2981 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2982 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2983 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2984 if test "${ac_cv_prog_cc_c99+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 else
2987 ac_cv_prog_cc_c99=no
2988 ac_save_CC=$CC
2989 cat >conftest.$ac_ext <<_ACEOF
2990 /* confdefs.h. */
2991 _ACEOF
2992 cat confdefs.h >>conftest.$ac_ext
2993 cat >>conftest.$ac_ext <<_ACEOF
2994 /* end confdefs.h. */
2995 #include <stdarg.h>
2996 #include <stdbool.h>
2997 #include <stdlib.h>
2998 #include <wchar.h>
2999 #include <stdio.h>
3001 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3002 #define debug(...) fprintf (stderr, __VA_ARGS__)
3003 #define showlist(...) puts (#__VA_ARGS__)
3004 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3005 static void
3006 test_varargs_macros (void)
3008 int x = 1234;
3009 int y = 5678;
3010 debug ("Flag");
3011 debug ("X = %d\n", x);
3012 showlist (The first, second, and third items.);
3013 report (x>y, "x is %d but y is %d", x, y);
3016 // Check long long types.
3017 #define BIG64 18446744073709551615ull
3018 #define BIG32 4294967295ul
3019 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3020 #if !BIG_OK
3021 your preprocessor is broken;
3022 #endif
3023 #if BIG_OK
3024 #else
3025 your preprocessor is broken;
3026 #endif
3027 static long long int bignum = -9223372036854775807LL;
3028 static unsigned long long int ubignum = BIG64;
3030 struct incomplete_array
3032 int datasize;
3033 double data[];
3036 struct named_init {
3037 int number;
3038 const wchar_t *name;
3039 double average;
3042 typedef const char *ccp;
3044 static inline int
3045 test_restrict (ccp restrict text)
3047 // See if C++-style comments work.
3048 // Iterate through items via the restricted pointer.
3049 // Also check for declarations in for loops.
3050 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3051 continue;
3052 return 0;
3055 // Check varargs and va_copy.
3056 static void
3057 test_varargs (const char *format, ...)
3059 va_list args;
3060 va_start (args, format);
3061 va_list args_copy;
3062 va_copy (args_copy, args);
3064 const char *str;
3065 int number;
3066 float fnumber;
3068 while (*format)
3070 switch (*format++)
3072 case 's': // string
3073 str = va_arg (args_copy, const char *);
3074 break;
3075 case 'd': // int
3076 number = va_arg (args_copy, int);
3077 break;
3078 case 'f': // float
3079 fnumber = va_arg (args_copy, double);
3080 break;
3081 default:
3082 break;
3085 va_end (args_copy);
3086 va_end (args);
3090 main ()
3093 // Check bool.
3094 _Bool success = false;
3096 // Check restrict.
3097 if (test_restrict ("String literal") == 0)
3098 success = true;
3099 char *restrict newvar = "Another string";
3101 // Check varargs.
3102 test_varargs ("s, d' f .", "string", 65, 34.234);
3103 test_varargs_macros ();
3105 // Check flexible array members.
3106 struct incomplete_array *ia =
3107 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3108 ia->datasize = 10;
3109 for (int i = 0; i < ia->datasize; ++i)
3110 ia->data[i] = i * 1.234;
3112 // Check named initializers.
3113 struct named_init ni = {
3114 .number = 34,
3115 .name = L"Test wide string",
3116 .average = 543.34343,
3119 ni.number = 58;
3121 int dynamic_array[ni.number];
3122 dynamic_array[ni.number - 1] = 543;
3124 // work around unused variable warnings
3125 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3126 || dynamic_array[ni.number - 1] != 543);
3129 return 0;
3131 _ACEOF
3132 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3134 CC="$ac_save_CC $ac_arg"
3135 rm -f conftest.$ac_objext
3136 if { (ac_try="$ac_compile"
3137 case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3140 esac
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3152 ac_cv_prog_cc_c99=$ac_arg
3153 else
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3160 rm -f core conftest.err conftest.$ac_objext
3161 test "x$ac_cv_prog_cc_c99" != "xno" && break
3162 done
3163 rm -f conftest.$ac_ext
3164 CC=$ac_save_CC
3167 # AC_CACHE_VAL
3168 case "x$ac_cv_prog_cc_c99" in
3170 { echo "$as_me:$LINENO: result: none needed" >&5
3171 echo "${ECHO_T}none needed" >&6; } ;;
3172 xno)
3173 { echo "$as_me:$LINENO: result: unsupported" >&5
3174 echo "${ECHO_T}unsupported" >&6; } ;;
3176 CC="$CC $ac_cv_prog_cc_c99"
3177 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3178 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3179 esac
3180 if test "x$ac_cv_prog_cc_c99" != xno; then
3181 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3182 else
3183 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3184 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3185 if test "${ac_cv_prog_cc_c89+set}" = set; then
3186 echo $ECHO_N "(cached) $ECHO_C" >&6
3187 else
3188 ac_cv_prog_cc_c89=no
3189 ac_save_CC=$CC
3190 cat >conftest.$ac_ext <<_ACEOF
3191 /* confdefs.h. */
3192 _ACEOF
3193 cat confdefs.h >>conftest.$ac_ext
3194 cat >>conftest.$ac_ext <<_ACEOF
3195 /* end confdefs.h. */
3196 #include <stdarg.h>
3197 #include <stdio.h>
3198 #include <sys/types.h>
3199 #include <sys/stat.h>
3200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3201 struct buf { int x; };
3202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3203 static char *e (p, i)
3204 char **p;
3205 int i;
3207 return p[i];
3209 static char *f (char * (*g) (char **, int), char **p, ...)
3211 char *s;
3212 va_list v;
3213 va_start (v,p);
3214 s = g (p, va_arg (v,int));
3215 va_end (v);
3216 return s;
3219 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3220 function prototypes and stuff, but not '\xHH' hex character constants.
3221 These don't provoke an error unfortunately, instead are silently treated
3222 as 'x'. The following induces an error, until -std is added to get
3223 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3224 array size at least. It's necessary to write '\x00'==0 to get something
3225 that's true only with -std. */
3226 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3228 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3229 inside strings and character constants. */
3230 #define FOO(x) 'x'
3231 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3233 int test (int i, double x);
3234 struct s1 {int (*f) (int a);};
3235 struct s2 {int (*f) (double a);};
3236 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3237 int argc;
3238 char **argv;
3240 main ()
3242 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3244 return 0;
3246 _ACEOF
3247 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3248 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3250 CC="$ac_save_CC $ac_arg"
3251 rm -f conftest.$ac_objext
3252 if { (ac_try="$ac_compile"
3253 case "(($ac_try" in
3254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3255 *) ac_try_echo=$ac_try;;
3256 esac
3257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3258 (eval "$ac_compile") 2>conftest.er1
3259 ac_status=$?
3260 grep -v '^ *+' conftest.er1 >conftest.err
3261 rm -f conftest.er1
3262 cat conftest.err >&5
3263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3264 (exit $ac_status); } && {
3265 test -z "$ac_c_werror_flag" ||
3266 test ! -s conftest.err
3267 } && test -s conftest.$ac_objext; then
3268 ac_cv_prog_cc_c89=$ac_arg
3269 else
3270 echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3276 rm -f core conftest.err conftest.$ac_objext
3277 test "x$ac_cv_prog_cc_c89" != "xno" && break
3278 done
3279 rm -f conftest.$ac_ext
3280 CC=$ac_save_CC
3283 # AC_CACHE_VAL
3284 case "x$ac_cv_prog_cc_c89" in
3286 { echo "$as_me:$LINENO: result: none needed" >&5
3287 echo "${ECHO_T}none needed" >&6; } ;;
3288 xno)
3289 { echo "$as_me:$LINENO: result: unsupported" >&5
3290 echo "${ECHO_T}unsupported" >&6; } ;;
3292 CC="$CC $ac_cv_prog_cc_c89"
3293 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3294 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3295 esac
3296 if test "x$ac_cv_prog_cc_c89" != xno; then
3297 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3298 else
3299 ac_cv_prog_cc_stdc=no
3306 esac
3307 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3308 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3309 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3313 case $ac_cv_prog_cc_stdc in
3314 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3315 echo "${ECHO_T}unsupported" >&6; } ;;
3316 '') { echo "$as_me:$LINENO: result: none needed" >&5
3317 echo "${ECHO_T}none needed" >&6; } ;;
3318 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3319 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3320 esac
3323 ac_ext=c
3324 ac_cpp='$CPP $CPPFLAGS'
3325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3328 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3329 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3330 # On Suns, sometimes $CPP names a directory.
3331 if test -n "$CPP" && test -d "$CPP"; then
3332 CPP=
3334 if test -z "$CPP"; then
3335 if test "${ac_cv_prog_CPP+set}" = set; then
3336 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 else
3338 # Double quotes because CPP needs to be expanded
3339 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3341 ac_preproc_ok=false
3342 for ac_c_preproc_warn_flag in '' yes
3344 # Use a header file that comes with gcc, so configuring glibc
3345 # with a fresh cross-compiler works.
3346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3347 # <limits.h> exists even on freestanding compilers.
3348 # On the NeXT, cc -E runs the code through the compiler's parser,
3349 # not just through cpp. "Syntax error" is here to catch this case.
3350 cat >conftest.$ac_ext <<_ACEOF
3351 /* confdefs.h. */
3352 _ACEOF
3353 cat confdefs.h >>conftest.$ac_ext
3354 cat >>conftest.$ac_ext <<_ACEOF
3355 /* end confdefs.h. */
3356 #ifdef __STDC__
3357 # include <limits.h>
3358 #else
3359 # include <assert.h>
3360 #endif
3361 Syntax error
3362 _ACEOF
3363 if { (ac_try="$ac_cpp conftest.$ac_ext"
3364 case "(($ac_try" in
3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3366 *) ac_try_echo=$ac_try;;
3367 esac
3368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3370 ac_status=$?
3371 grep -v '^ *+' conftest.er1 >conftest.err
3372 rm -f conftest.er1
3373 cat conftest.err >&5
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } >/dev/null && {
3376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3377 test ! -s conftest.err
3378 }; then
3380 else
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 # Broken: fails on valid input.
3385 continue
3388 rm -f conftest.err conftest.$ac_ext
3390 # OK, works on sane cases. Now check whether nonexistent headers
3391 # can be detected and how.
3392 cat >conftest.$ac_ext <<_ACEOF
3393 /* confdefs.h. */
3394 _ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3398 #include <ac_nonexistent.h>
3399 _ACEOF
3400 if { (ac_try="$ac_cpp conftest.$ac_ext"
3401 case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3407 ac_status=$?
3408 grep -v '^ *+' conftest.er1 >conftest.err
3409 rm -f conftest.er1
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null && {
3413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3414 test ! -s conftest.err
3415 }; then
3416 # Broken: success on invalid input.
3417 continue
3418 else
3419 echo "$as_me: failed program was:" >&5
3420 sed 's/^/| /' conftest.$ac_ext >&5
3422 # Passes both tests.
3423 ac_preproc_ok=:
3424 break
3427 rm -f conftest.err conftest.$ac_ext
3429 done
3430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431 rm -f conftest.err conftest.$ac_ext
3432 if $ac_preproc_ok; then
3433 break
3436 done
3437 ac_cv_prog_CPP=$CPP
3440 CPP=$ac_cv_prog_CPP
3441 else
3442 ac_cv_prog_CPP=$CPP
3444 { echo "$as_me:$LINENO: result: $CPP" >&5
3445 echo "${ECHO_T}$CPP" >&6; }
3446 ac_preproc_ok=false
3447 for ac_c_preproc_warn_flag in '' yes
3449 # Use a header file that comes with gcc, so configuring glibc
3450 # with a fresh cross-compiler works.
3451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3452 # <limits.h> exists even on freestanding compilers.
3453 # On the NeXT, cc -E runs the code through the compiler's parser,
3454 # not just through cpp. "Syntax error" is here to catch this case.
3455 cat >conftest.$ac_ext <<_ACEOF
3456 /* confdefs.h. */
3457 _ACEOF
3458 cat confdefs.h >>conftest.$ac_ext
3459 cat >>conftest.$ac_ext <<_ACEOF
3460 /* end confdefs.h. */
3461 #ifdef __STDC__
3462 # include <limits.h>
3463 #else
3464 # include <assert.h>
3465 #endif
3466 Syntax error
3467 _ACEOF
3468 if { (ac_try="$ac_cpp conftest.$ac_ext"
3469 case "(($ac_try" in
3470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3471 *) ac_try_echo=$ac_try;;
3472 esac
3473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3475 ac_status=$?
3476 grep -v '^ *+' conftest.er1 >conftest.err
3477 rm -f conftest.er1
3478 cat conftest.err >&5
3479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480 (exit $ac_status); } >/dev/null && {
3481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3482 test ! -s conftest.err
3483 }; then
3485 else
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 # Broken: fails on valid input.
3490 continue
3493 rm -f conftest.err conftest.$ac_ext
3495 # OK, works on sane cases. Now check whether nonexistent headers
3496 # can be detected and how.
3497 cat >conftest.$ac_ext <<_ACEOF
3498 /* confdefs.h. */
3499 _ACEOF
3500 cat confdefs.h >>conftest.$ac_ext
3501 cat >>conftest.$ac_ext <<_ACEOF
3502 /* end confdefs.h. */
3503 #include <ac_nonexistent.h>
3504 _ACEOF
3505 if { (ac_try="$ac_cpp conftest.$ac_ext"
3506 case "(($ac_try" in
3507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3508 *) ac_try_echo=$ac_try;;
3509 esac
3510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3512 ac_status=$?
3513 grep -v '^ *+' conftest.er1 >conftest.err
3514 rm -f conftest.er1
3515 cat conftest.err >&5
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); } >/dev/null && {
3518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3519 test ! -s conftest.err
3520 }; then
3521 # Broken: success on invalid input.
3522 continue
3523 else
3524 echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3527 # Passes both tests.
3528 ac_preproc_ok=:
3529 break
3532 rm -f conftest.err conftest.$ac_ext
3534 done
3535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3536 rm -f conftest.err conftest.$ac_ext
3537 if $ac_preproc_ok; then
3539 else
3540 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3541 See \`config.log' for more details." >&5
3542 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3543 See \`config.log' for more details." >&2;}
3544 { (exit 1); exit 1; }; }
3547 ac_ext=c
3548 ac_cpp='$CPP $CPPFLAGS'
3549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3554 # Check for a compatible awk
3555 for ac_prog in gawk nawk
3557 # Extract the first word of "$ac_prog", so it can be a program name with args.
3558 set dummy $ac_prog; ac_word=$2
3559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3561 if test "${ac_cv_prog_AWK+set}" = set; then
3562 echo $ECHO_N "(cached) $ECHO_C" >&6
3563 else
3564 if test -n "$AWK"; then
3565 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3566 else
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 for as_dir in $PATH
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3574 ac_cv_prog_AWK="$ac_prog"
3575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 break 2
3578 done
3579 done
3580 IFS=$as_save_IFS
3584 AWK=$ac_cv_prog_AWK
3585 if test -n "$AWK"; then
3586 { echo "$as_me:$LINENO: result: $AWK" >&5
3587 echo "${ECHO_T}$AWK" >&6; }
3588 else
3589 { echo "$as_me:$LINENO: result: no" >&5
3590 echo "${ECHO_T}no" >&6; }
3594 test -n "$AWK" && break
3595 done
3597 if test "$AWK" = ""; then
3598 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3599 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3600 { (exit 1); exit 1; }; }
3602 # Extract the first word of "mmake", so it can be a program name with args.
3603 set dummy mmake; ac_word=$2
3604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3606 if test "${ac_cv_prog_MMAKE+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 else
3609 if test -n "$MMAKE"; then
3610 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3615 IFS=$as_save_IFS
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3619 ac_cv_prog_MMAKE="mmake "
3620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3621 break 2
3623 done
3624 done
3625 IFS=$as_save_IFS
3629 MMAKE=$ac_cv_prog_MMAKE
3630 if test -n "$MMAKE"; then
3631 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3632 echo "${ECHO_T}$MMAKE" >&6; }
3633 else
3634 { echo "$as_me:$LINENO: result: no" >&5
3635 echo "${ECHO_T}no" >&6; }
3640 # Perform some default variable assignments. Note all of these will be
3641 # Regenerated from the script, so there is no need to cache them.
3643 aros_host_cc="$CC"
3644 if test "$GCC" = "yes"; then
3645 aros_gcc_ld=`$CC -print-prog-name=ld`
3646 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3647 set dummy `basename $aros_gcc_ld`; ac_word=$2
3648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3650 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3651 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 else
3653 case $aros_host_ld in
3654 [\\/]* | ?:[\\/]*)
3655 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in `dirname $aros_gcc_ld`
3661 IFS=$as_save_IFS
3662 test -z "$as_dir" && as_dir=.
3663 for ac_exec_ext in '' $ac_executable_extensions; do
3664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3665 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 break 2
3669 done
3670 done
3671 IFS=$as_save_IFS
3674 esac
3676 aros_host_ld=$ac_cv_path_aros_host_ld
3677 if test -n "$aros_host_ld"; then
3678 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3679 echo "${ECHO_T}$aros_host_ld" >&6; }
3680 else
3681 { echo "$as_me:$LINENO: result: no" >&5
3682 echo "${ECHO_T}no" >&6; }
3687 if test "$aros_host_ld" = ""; then
3688 # Extract the first word of "ld", so it can be a program name with args.
3689 set dummy ld; ac_word=$2
3690 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3691 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3692 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3694 else
3695 case $aros_host_ld in
3696 [\\/]* | ?:[\\/]*)
3697 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3701 for as_dir in $PATH
3703 IFS=$as_save_IFS
3704 test -z "$as_dir" && as_dir=.
3705 for ac_exec_ext in '' $ac_executable_extensions; do
3706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3707 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 break 2
3711 done
3712 done
3713 IFS=$as_save_IFS
3716 esac
3718 aros_host_ld=$ac_cv_path_aros_host_ld
3719 if test -n "$aros_host_ld"; then
3720 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3721 echo "${ECHO_T}$aros_host_ld" >&6; }
3722 else
3723 { echo "$as_me:$LINENO: result: no" >&5
3724 echo "${ECHO_T}no" >&6; }
3729 if test "$aros_host_ld" = ""; then
3730 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3731 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3732 { (exit 1); exit 1; }; }
3734 aros_host_make="make"
3735 aros_host_cflags=$CFLAGS
3736 aros_host_ldflags=$LDFLAGS
3737 aros_host_debug="-g -O0"
3738 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3739 aros_host_mkargs="--no-print-directory"
3740 aros_host_incl="/usr/include"
3741 aros_host_exe_suffix="$EXEEXT"
3742 aros_host_lib_suffix=""
3744 for ac_prog in aclocal aclocal19 aclocal-1.9
3746 # Extract the first word of "$ac_prog", so it can be a program name with args.
3747 set dummy $ac_prog; ac_word=$2
3748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3750 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3752 else
3753 if test -n "$aros_host_aclocal"; then
3754 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3755 else
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 for as_dir in $PATH
3759 IFS=$as_save_IFS
3760 test -z "$as_dir" && as_dir=.
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3763 ac_cv_prog_aros_host_aclocal="$ac_prog"
3764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3765 break 2
3767 done
3768 done
3769 IFS=$as_save_IFS
3773 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3774 if test -n "$aros_host_aclocal"; then
3775 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3776 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3777 else
3778 { echo "$as_me:$LINENO: result: no" >&5
3779 echo "${ECHO_T}no" >&6; }
3783 test -n "$aros_host_aclocal" && break
3784 done
3786 for ac_prog in autoconf autoconf259 autoconf253
3788 # Extract the first word of "$ac_prog", so it can be a program name with args.
3789 set dummy $ac_prog; ac_word=$2
3790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3792 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795 if test -n "$aros_host_autoconf"; then
3796 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3797 else
3798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 for as_dir in $PATH
3801 IFS=$as_save_IFS
3802 test -z "$as_dir" && as_dir=.
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3805 ac_cv_prog_aros_host_autoconf="$ac_prog"
3806 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3807 break 2
3809 done
3810 done
3811 IFS=$as_save_IFS
3815 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3816 if test -n "$aros_host_autoconf"; then
3817 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3818 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3819 else
3820 { echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6; }
3825 test -n "$aros_host_autoconf" && break
3826 done
3828 for ac_prog in autoheader autoheader259 autoheader253
3830 # Extract the first word of "$ac_prog", so it can be a program name with args.
3831 set dummy $ac_prog; ac_word=$2
3832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3834 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3835 echo $ECHO_N "(cached) $ECHO_C" >&6
3836 else
3837 if test -n "$aros_host_autoheader"; then
3838 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3839 else
3840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 for as_dir in $PATH
3843 IFS=$as_save_IFS
3844 test -z "$as_dir" && as_dir=.
3845 for ac_exec_ext in '' $ac_executable_extensions; do
3846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3847 ac_cv_prog_aros_host_autoheader="$ac_prog"
3848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3849 break 2
3851 done
3852 done
3853 IFS=$as_save_IFS
3857 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3858 if test -n "$aros_host_autoheader"; then
3859 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3860 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3861 else
3862 { echo "$as_me:$LINENO: result: no" >&5
3863 echo "${ECHO_T}no" >&6; }
3867 test -n "$aros_host_autoheader" && break
3868 done
3870 for ac_prog in automake automake19 automake-1.9
3872 # Extract the first word of "$ac_prog", so it can be a program name with args.
3873 set dummy $ac_prog; ac_word=$2
3874 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3876 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3877 echo $ECHO_N "(cached) $ECHO_C" >&6
3878 else
3879 if test -n "$aros_host_automake"; then
3880 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3881 else
3882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3883 for as_dir in $PATH
3885 IFS=$as_save_IFS
3886 test -z "$as_dir" && as_dir=.
3887 for ac_exec_ext in '' $ac_executable_extensions; do
3888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3889 ac_cv_prog_aros_host_automake="$ac_prog"
3890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3891 break 2
3893 done
3894 done
3895 IFS=$as_save_IFS
3899 aros_host_automake=$ac_cv_prog_aros_host_automake
3900 if test -n "$aros_host_automake"; then
3901 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3902 echo "${ECHO_T}$aros_host_automake" >&6; }
3903 else
3904 { echo "$as_me:$LINENO: result: no" >&5
3905 echo "${ECHO_T}no" >&6; }
3909 test -n "$aros_host_automake" && break
3910 done
3913 if test "$aros_host_aclocal" = ""; then
3914 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3915 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3916 { (exit 1); exit 1; }; }
3918 if test "$aros_host_automake" = ""; then
3919 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3920 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3921 { (exit 1); exit 1; }; }
3924 case "$aros_host_cc" in
3925 *gcc*)
3926 aros_host_cc_pipe="-pipe"
3928 icc)
3929 aros_host_cc_pipe=""
3932 aros_host_cc_pipe=""
3934 esac
3936 aros_target_cc_includes=""
3938 # This is the main host configuration section. It is where the host
3939 # can change the values of any variables it needs to change. We do
3940 # not look at anything that compiles to the target yet, we'll get
3941 # to that later.
3943 case "$host_os" in
3944 aros*)
3945 aros_host_arch="aros"
3946 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3947 case "$host_cpu" in
3948 *i?86*)
3949 aros_host_cpu="i386"
3951 *x86_64*)
3952 aros_host_cpu="x86_64"
3955 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3956 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3957 aros_host_cpu="$host_cpu"
3959 esac
3962 linux*)
3963 aros_host_arch="linux"
3964 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3965 case "$host_cpu" in
3966 *i?86*)
3967 aros_host_cpu="i386"
3969 *x86_64*)
3970 aros_host_cpu="x86_64"
3972 *m68k*)
3973 aros_host_cpu="m68k"
3975 *powerpc*)
3976 aros_host_cpu="ppc"
3979 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3980 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3981 aros_host_cpu="$host_cpu"
3983 esac
3986 freebsd*)
3987 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3988 aros_host_make="gmake"
3989 aros_host_arch="freebsd"
3990 aros_host_cpu="i386"
3992 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3995 case $host_os in
3996 freebsd[234]*)
3997 aros_object_format="elf_i386"
4001 aros_object_format="elf_i386_fbsd"
4003 esac
4007 darwin*)
4008 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4009 aros_host_arch="darwin"
4010 case "$host_cpu" in
4011 *i?86*)
4012 aros_host_cpu="i386"
4014 *powerpc*)
4015 aros_host_cpu="ppc"
4018 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4019 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4020 aros_host_cpu="$host_cpu"
4022 esac
4024 aros_host_ldflags="$aros_host_ldflags -liconv"
4028 netbsd*)
4029 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4030 aros_host_make="gmake"
4031 aros_host_arch="netbsd"
4032 case "$host_cpu" in
4033 *i?86*)
4034 aros_host_cpu="i386"
4036 *m68k*)
4037 aros_host_cpu="m68k"
4040 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4041 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4042 aros_host_cpu="$host_cpu"
4044 esac
4045 aros_host_lib_suffix=".0.0"
4048 openbsd*)
4049 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4050 aros_host_make="gmake"
4051 aros_host_arch="openbsd"
4052 case "$host_cpu" in
4053 *i?86*)
4054 aros_host_cpu="i386"
4057 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4058 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4059 aros_host_cpu="$host_cpu"
4061 esac
4064 solaris*)
4065 aros_host_arch="solaris"
4066 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4067 case "$host_cpu" in
4068 *i?86*)
4069 aros_host_cpu="i386"
4071 *sparc*)
4072 aros_host_cpu="sparc"
4075 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4076 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4077 aros_host_cpu="$host_cpu"
4079 esac
4082 morphos*)
4083 aros_host_arch="morphos"
4084 aros_host_cpu="ppc"
4087 amiga*)
4088 aros_host_arch="amiga"
4089 SORT="/gg/bin/sort"
4090 TEST="/gg/bin/test"
4091 UNIQ="/gg/bin/uniq"
4092 FOR="for"
4093 TOUCH="/gg/bin/touch"
4094 case "$host_cpu" in
4095 *m68k*)
4096 aros_host_cpu="m68k"
4098 *powerpc*)
4099 aros_host_cpu="ppc"
4102 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4103 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4104 aros_host_cpu="$host_cpu"
4106 esac
4109 cygwin*)
4110 aros_host_arch="cygwin"
4111 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4112 case "$host_cpu" in
4113 *i?86*)
4114 aros_host_cpu="i386"
4117 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4118 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4119 aros_host_cpu="$host_cpu"
4121 esac
4124 mingw32*)
4125 aros_host_arch="mingw32"
4126 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4127 case "$host_cpu" in
4128 *i?86*)
4129 aros_host_cpu="i386"
4132 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4133 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4134 aros_host_cpu="$host_cpu"
4136 esac
4139 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4140 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4141 { (exit 1); exit 1; }; }
4143 esac
4145 # Extract the first word of "ar", so it can be a program name with args.
4146 set dummy ar; ac_word=$2
4147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4149 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4150 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 else
4152 if test -n "$aros_host_ar"; then
4153 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4154 else
4155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4156 for as_dir in $PATH
4158 IFS=$as_save_IFS
4159 test -z "$as_dir" && as_dir=.
4160 for ac_exec_ext in '' $ac_executable_extensions; do
4161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4162 ac_cv_prog_aros_host_ar="ar cr"
4163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 break 2
4166 done
4167 done
4168 IFS=$as_save_IFS
4172 aros_host_ar=$ac_cv_prog_aros_host_ar
4173 if test -n "$aros_host_ar"; then
4174 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4175 echo "${ECHO_T}$aros_host_ar" >&6; }
4176 else
4177 { echo "$as_me:$LINENO: result: no" >&5
4178 echo "${ECHO_T}no" >&6; }
4182 if test "$aros_host_ar" = ""; then
4183 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4184 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4185 { (exit 1); exit 1; }; }
4187 # Extract the first word of "ranlib", so it can be a program name with args.
4188 set dummy ranlib; ac_word=$2
4189 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4191 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4192 echo $ECHO_N "(cached) $ECHO_C" >&6
4193 else
4194 if test -n "$aros_host_ranlib"; then
4195 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4196 else
4197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198 for as_dir in $PATH
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4204 ac_cv_prog_aros_host_ranlib="ranlib "
4205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4206 break 2
4208 done
4209 done
4210 IFS=$as_save_IFS
4214 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4215 if test -n "$aros_host_ranlib"; then
4216 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4217 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4218 else
4219 { echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6; }
4224 if test "$aros_host_ranlib" = ""; then
4225 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4226 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4227 { (exit 1); exit 1; }; }
4229 # Extract the first word of "strip", so it can be a program name with args.
4230 set dummy strip; ac_word=$2
4231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4233 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4234 echo $ECHO_N "(cached) $ECHO_C" >&6
4235 else
4236 if test -n "$aros_host_strip"; then
4237 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4242 IFS=$as_save_IFS
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246 ac_cv_prog_aros_host_strip="strip "
4247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 break 2
4250 done
4251 done
4252 IFS=$as_save_IFS
4256 aros_host_strip=$ac_cv_prog_aros_host_strip
4257 if test -n "$aros_host_strip"; then
4258 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4259 echo "${ECHO_T}$aros_host_strip" >&6; }
4260 else
4261 { echo "$as_me:$LINENO: result: no" >&5
4262 echo "${ECHO_T}no" >&6; }
4266 if test "$aros_host_strip" = ""; then
4267 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4268 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4269 { (exit 1); exit 1; }; }
4272 # Extract the first word of "rm", so it can be a program name with args.
4273 set dummy rm; ac_word=$2
4274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4276 if test "${ac_cv_prog_RM+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4278 else
4279 if test -n "$RM"; then
4280 ac_cv_prog_RM="$RM" # Let the user override the test.
4281 else
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 for as_dir in $PATH
4285 IFS=$as_save_IFS
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4289 ac_cv_prog_RM="rm -rf"
4290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 break 2
4293 done
4294 done
4295 IFS=$as_save_IFS
4299 RM=$ac_cv_prog_RM
4300 if test -n "$RM"; then
4301 { echo "$as_me:$LINENO: result: $RM" >&5
4302 echo "${ECHO_T}$RM" >&6; }
4303 else
4304 { echo "$as_me:$LINENO: result: no" >&5
4305 echo "${ECHO_T}no" >&6; }
4309 if test "$RM" = ""; then
4310 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4311 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4312 { (exit 1); exit 1; }; }
4314 # Extract the first word of "cp", so it can be a program name with args.
4315 set dummy cp; ac_word=$2
4316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4318 if test "${ac_cv_prog_CP+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4320 else
4321 if test -n "$CP"; then
4322 ac_cv_prog_CP="$CP" # Let the user override the test.
4323 else
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH
4327 IFS=$as_save_IFS
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_prog_CP="cp "
4332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4333 break 2
4335 done
4336 done
4337 IFS=$as_save_IFS
4341 CP=$ac_cv_prog_CP
4342 if test -n "$CP"; then
4343 { echo "$as_me:$LINENO: result: $CP" >&5
4344 echo "${ECHO_T}$CP" >&6; }
4345 else
4346 { echo "$as_me:$LINENO: result: no" >&5
4347 echo "${ECHO_T}no" >&6; }
4351 if test "$CP" = ""; then
4352 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4353 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4354 { (exit 1); exit 1; }; }
4356 # Extract the first word of "mv", so it can be a program name with args.
4357 set dummy mv; ac_word=$2
4358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4360 if test "${ac_cv_prog_MV+set}" = set; then
4361 echo $ECHO_N "(cached) $ECHO_C" >&6
4362 else
4363 if test -n "$MV"; then
4364 ac_cv_prog_MV="$MV" # Let the user override the test.
4365 else
4366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 for as_dir in $PATH
4369 IFS=$as_save_IFS
4370 test -z "$as_dir" && as_dir=.
4371 for ac_exec_ext in '' $ac_executable_extensions; do
4372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4373 ac_cv_prog_MV="mv "
4374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4375 break 2
4377 done
4378 done
4379 IFS=$as_save_IFS
4383 MV=$ac_cv_prog_MV
4384 if test -n "$MV"; then
4385 { echo "$as_me:$LINENO: result: $MV" >&5
4386 echo "${ECHO_T}$MV" >&6; }
4387 else
4388 { echo "$as_me:$LINENO: result: no" >&5
4389 echo "${ECHO_T}no" >&6; }
4393 if test "$MV" = ""; then
4394 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4395 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4396 { (exit 1); exit 1; }; }
4398 # Extract the first word of "echo", so it can be a program name with args.
4399 set dummy echo; ac_word=$2
4400 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4401 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4402 if test "${ac_cv_prog_ECHO+set}" = set; then
4403 echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405 if test -n "$ECHO"; then
4406 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4407 else
4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 for as_dir in $PATH
4411 IFS=$as_save_IFS
4412 test -z "$as_dir" && as_dir=.
4413 for ac_exec_ext in '' $ac_executable_extensions; do
4414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4415 ac_cv_prog_ECHO="echo "
4416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4417 break 2
4419 done
4420 done
4421 IFS=$as_save_IFS
4425 ECHO=$ac_cv_prog_ECHO
4426 if test -n "$ECHO"; then
4427 { echo "$as_me:$LINENO: result: $ECHO" >&5
4428 echo "${ECHO_T}$ECHO" >&6; }
4429 else
4430 { echo "$as_me:$LINENO: result: no" >&5
4431 echo "${ECHO_T}no" >&6; }
4435 if test "$ECHO" = ""; then
4436 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4437 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4438 { (exit 1); exit 1; }; }
4440 # Extract the first word of "mkdir", so it can be a program name with args.
4441 set dummy mkdir; ac_word=$2
4442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4444 if test "${ac_cv_prog_MKDIR+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 if test -n "$MKDIR"; then
4448 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4449 else
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4457 ac_cv_prog_MKDIR="mkdir -p"
4458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4461 done
4462 done
4463 IFS=$as_save_IFS
4467 MKDIR=$ac_cv_prog_MKDIR
4468 if test -n "$MKDIR"; then
4469 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4470 echo "${ECHO_T}$MKDIR" >&6; }
4471 else
4472 { echo "$as_me:$LINENO: result: no" >&5
4473 echo "${ECHO_T}no" >&6; }
4477 if test "$MKDIR" = ""; then
4478 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4479 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4480 { (exit 1); exit 1; }; }
4482 # Extract the first word of "touch", so it can be a program name with args.
4483 set dummy touch; ac_word=$2
4484 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4485 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4486 if test "${ac_cv_prog_TOUCH+set}" = set; then
4487 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 else
4489 if test -n "$TOUCH"; then
4490 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4491 else
4492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4493 for as_dir in $PATH
4495 IFS=$as_save_IFS
4496 test -z "$as_dir" && as_dir=.
4497 for ac_exec_ext in '' $ac_executable_extensions; do
4498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4499 ac_cv_prog_TOUCH="touch "
4500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4501 break 2
4503 done
4504 done
4505 IFS=$as_save_IFS
4509 TOUCH=$ac_cv_prog_TOUCH
4510 if test -n "$TOUCH"; then
4511 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4512 echo "${ECHO_T}$TOUCH" >&6; }
4513 else
4514 { echo "$as_me:$LINENO: result: no" >&5
4515 echo "${ECHO_T}no" >&6; }
4519 if test "$TOUCH" = ""; then
4520 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4521 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4522 { (exit 1); exit 1; }; }
4524 # Extract the first word of "sort", so it can be a program name with args.
4525 set dummy sort; ac_word=$2
4526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4528 if test "${ac_cv_prog_SORT+set}" = set; then
4529 echo $ECHO_N "(cached) $ECHO_C" >&6
4530 else
4531 if test -n "$SORT"; then
4532 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4533 else
4534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4535 for as_dir in $PATH
4537 IFS=$as_save_IFS
4538 test -z "$as_dir" && as_dir=.
4539 for ac_exec_ext in '' $ac_executable_extensions; do
4540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4541 ac_cv_prog_SORT="sort "
4542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 break 2
4545 done
4546 done
4547 IFS=$as_save_IFS
4551 SORT=$ac_cv_prog_SORT
4552 if test -n "$SORT"; then
4553 { echo "$as_me:$LINENO: result: $SORT" >&5
4554 echo "${ECHO_T}$SORT" >&6; }
4555 else
4556 { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4561 if test "$SORT" = ""; then
4562 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4563 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4564 { (exit 1); exit 1; }; }
4566 # Extract the first word of "uniq", so it can be a program name with args.
4567 set dummy uniq; ac_word=$2
4568 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4569 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4570 if test "${ac_cv_prog_UNIQ+set}" = set; then
4571 echo $ECHO_N "(cached) $ECHO_C" >&6
4572 else
4573 if test -n "$UNIQ"; then
4574 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4575 else
4576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4577 for as_dir in $PATH
4579 IFS=$as_save_IFS
4580 test -z "$as_dir" && as_dir=.
4581 for ac_exec_ext in '' $ac_executable_extensions; do
4582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4583 ac_cv_prog_UNIQ="uniq "
4584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4585 break 2
4587 done
4588 done
4589 IFS=$as_save_IFS
4593 UNIQ=$ac_cv_prog_UNIQ
4594 if test -n "$UNIQ"; then
4595 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4596 echo "${ECHO_T}$UNIQ" >&6; }
4597 else
4598 { echo "$as_me:$LINENO: result: no" >&5
4599 echo "${ECHO_T}no" >&6; }
4603 if test "$UNIQ" = ""; then
4604 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4605 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4606 { (exit 1); exit 1; }; }
4608 # Extract the first word of "true", so it can be a program name with args.
4609 set dummy true; ac_word=$2
4610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4612 if test "${ac_cv_prog_NOP+set}" = set; then
4613 echo $ECHO_N "(cached) $ECHO_C" >&6
4614 else
4615 if test -n "$NOP"; then
4616 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4617 else
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4625 ac_cv_prog_NOP="true "
4626 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4629 done
4630 done
4631 IFS=$as_save_IFS
4635 NOP=$ac_cv_prog_NOP
4636 if test -n "$NOP"; then
4637 { echo "$as_me:$LINENO: result: $NOP" >&5
4638 echo "${ECHO_T}$NOP" >&6; }
4639 else
4640 { echo "$as_me:$LINENO: result: no" >&5
4641 echo "${ECHO_T}no" >&6; }
4645 if test "$NOP" = ""; then
4646 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4647 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4648 { (exit 1); exit 1; }; }
4650 # Extract the first word of "cat", so it can be a program name with args.
4651 set dummy cat; ac_word=$2
4652 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4653 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4654 if test "${ac_cv_prog_CAT+set}" = set; then
4655 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 else
4657 if test -n "$CAT"; then
4658 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4659 else
4660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4661 for as_dir in $PATH
4663 IFS=$as_save_IFS
4664 test -z "$as_dir" && as_dir=.
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4667 ac_cv_prog_CAT="cat "
4668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 break 2
4671 done
4672 done
4673 IFS=$as_save_IFS
4677 CAT=$ac_cv_prog_CAT
4678 if test -n "$CAT"; then
4679 { echo "$as_me:$LINENO: result: $CAT" >&5
4680 echo "${ECHO_T}$CAT" >&6; }
4681 else
4682 { echo "$as_me:$LINENO: result: no" >&5
4683 echo "${ECHO_T}no" >&6; }
4687 if test "$CAT" = ""; then
4688 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4689 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4690 { (exit 1); exit 1; }; }
4692 # Extract the first word of "bison", so it can be a program name with args.
4693 set dummy bison; ac_word=$2
4694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4696 if test "${ac_cv_prog_BISON+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699 if test -n "$BISON"; then
4700 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4701 else
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_BISON="bison "
4710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4711 break 2
4713 done
4714 done
4715 IFS=$as_save_IFS
4719 BISON=$ac_cv_prog_BISON
4720 if test -n "$BISON"; then
4721 { echo "$as_me:$LINENO: result: $BISON" >&5
4722 echo "${ECHO_T}$BISON" >&6; }
4723 else
4724 { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4729 if test "$BISON" = ""; then
4730 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4731 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4732 { (exit 1); exit 1; }; }
4734 # Extract the first word of "flex", so it can be a program name with args.
4735 set dummy flex; ac_word=$2
4736 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4737 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4738 if test "${ac_cv_prog_FLEX+set}" = set; then
4739 echo $ECHO_N "(cached) $ECHO_C" >&6
4740 else
4741 if test -n "$FLEX"; then
4742 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4743 else
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745 for as_dir in $PATH
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751 ac_cv_prog_FLEX="flex "
4752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4753 break 2
4755 done
4756 done
4757 IFS=$as_save_IFS
4761 FLEX=$ac_cv_prog_FLEX
4762 if test -n "$FLEX"; then
4763 { echo "$as_me:$LINENO: result: $FLEX" >&5
4764 echo "${ECHO_T}$FLEX" >&6; }
4765 else
4766 { echo "$as_me:$LINENO: result: no" >&5
4767 echo "${ECHO_T}no" >&6; }
4771 if test "$FLEX" = ""; then
4772 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4773 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4774 { (exit 1); exit 1; }; }
4776 # Extract the first word of "pngtopnm", so it can be a program name with args.
4777 set dummy pngtopnm; ac_word=$2
4778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4780 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4781 echo $ECHO_N "(cached) $ECHO_C" >&6
4782 else
4783 if test -n "$PNGTOPNM"; then
4784 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4785 else
4786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4787 for as_dir in $PATH
4789 IFS=$as_save_IFS
4790 test -z "$as_dir" && as_dir=.
4791 for ac_exec_ext in '' $ac_executable_extensions; do
4792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4793 ac_cv_prog_PNGTOPNM="pngtopnm "
4794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4795 break 2
4797 done
4798 done
4799 IFS=$as_save_IFS
4803 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4804 if test -n "$PNGTOPNM"; then
4805 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4806 echo "${ECHO_T}$PNGTOPNM" >&6; }
4807 else
4808 { echo "$as_me:$LINENO: result: no" >&5
4809 echo "${ECHO_T}no" >&6; }
4813 if test "$PNGTOPNM" = ""; then
4814 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4815 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4816 { (exit 1); exit 1; }; }
4818 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4819 set dummy ppmtoilbm; ac_word=$2
4820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4823 echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825 if test -n "$PPMTOILBM"; then
4826 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4831 IFS=$as_save_IFS
4832 test -z "$as_dir" && as_dir=.
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837 break 2
4839 done
4840 done
4841 IFS=$as_save_IFS
4845 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4846 if test -n "$PPMTOILBM"; then
4847 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4848 echo "${ECHO_T}$PPMTOILBM" >&6; }
4849 else
4850 { echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6; }
4855 if test "$PPMTOILBM" = ""; then
4856 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4857 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4858 { (exit 1); exit 1; }; }
4860 # Extract the first word of "sed", so it can be a program name with args.
4861 set dummy sed; ac_word=$2
4862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4864 if test "${ac_cv_prog_SED+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 else
4867 if test -n "$SED"; then
4868 ac_cv_prog_SED="$SED" # Let the user override the test.
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4877 ac_cv_prog_SED="sed "
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4879 break 2
4881 done
4882 done
4883 IFS=$as_save_IFS
4887 SED=$ac_cv_prog_SED
4888 if test -n "$SED"; then
4889 { echo "$as_me:$LINENO: result: $SED" >&5
4890 echo "${ECHO_T}$SED" >&6; }
4891 else
4892 { echo "$as_me:$LINENO: result: no" >&5
4893 echo "${ECHO_T}no" >&6; }
4897 if test "$SED" = ""; then
4898 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4899 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4900 { (exit 1); exit 1; }; }
4902 # Extract the first word of "chmod", so it can be a program name with args.
4903 set dummy chmod; ac_word=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_prog_CHMOD+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909 if test -n "$CHMOD"; then
4910 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4911 else
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4915 IFS=$as_save_IFS
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4919 ac_cv_prog_CHMOD="chmod "
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 break 2
4923 done
4924 done
4925 IFS=$as_save_IFS
4929 CHMOD=$ac_cv_prog_CHMOD
4930 if test -n "$CHMOD"; then
4931 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4932 echo "${ECHO_T}$CHMOD" >&6; }
4933 else
4934 { echo "$as_me:$LINENO: result: no" >&5
4935 echo "${ECHO_T}no" >&6; }
4939 if test "$CHMOD" = ""; then
4940 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4941 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4942 { (exit 1); exit 1; }; }
4949 if test -n "$PYTHON"; then
4950 # If the user set $PYTHON, use it and don't search something else.
4951 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4952 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4953 prog="import sys, string
4954 # split strings by '.' and convert to numeric. Append some zeros
4955 # because we need at least 4 digits for the hex conversion.
4956 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4957 minverhex = 0
4958 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4959 sys.exit(sys.hexversion < minverhex)"
4960 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4961 ($PYTHON -c "$prog") >&5 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; then
4965 { echo "$as_me:$LINENO: result: yes" >&5
4966 echo "${ECHO_T}yes" >&6; }
4967 else
4968 { { echo "$as_me:$LINENO: error: too old" >&5
4969 echo "$as_me: error: too old" >&2;}
4970 { (exit 1); exit 1; }; }
4973 am_display_PYTHON=$PYTHON
4974 else
4975 # Otherwise, try each interpreter until we find one that satisfies
4976 # VERSION.
4977 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4978 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4979 if test "${am_cv_pathless_PYTHON+set}" = set; then
4980 echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4983 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
4984 test "$am_cv_pathless_PYTHON" = none && break
4985 prog="import sys, string
4986 # split strings by '.' and convert to numeric. Append some zeros
4987 # because we need at least 4 digits for the hex conversion.
4988 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4989 minverhex = 0
4990 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4991 sys.exit(sys.hexversion < minverhex)"
4992 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4993 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4994 ac_status=$?
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); }; then
4997 break
5000 done
5002 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5003 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
5004 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5005 if test "$am_cv_pathless_PYTHON" = none; then
5006 PYTHON=:
5007 else
5008 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5009 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5010 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5011 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5012 if test "${ac_cv_path_PYTHON+set}" = set; then
5013 echo $ECHO_N "(cached) $ECHO_C" >&6
5014 else
5015 case $PYTHON in
5016 [\\/]* | ?:[\\/]*)
5017 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5021 for as_dir in $PATH
5023 IFS=$as_save_IFS
5024 test -z "$as_dir" && as_dir=.
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5027 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 break 2
5031 done
5032 done
5033 IFS=$as_save_IFS
5036 esac
5038 PYTHON=$ac_cv_path_PYTHON
5039 if test -n "$PYTHON"; then
5040 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5041 echo "${ECHO_T}$PYTHON" >&6; }
5042 else
5043 { echo "$as_me:$LINENO: result: no" >&5
5044 echo "${ECHO_T}no" >&6; }
5049 am_display_PYTHON=$am_cv_pathless_PYTHON
5053 if test "$PYTHON" = :; then
5054 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5055 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5056 { (exit 1); exit 1; }; }
5057 else
5060 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5061 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5062 if test "${am_cv_python_version+set}" = set; then
5063 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5067 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5068 echo "${ECHO_T}$am_cv_python_version" >&6; }
5069 PYTHON_VERSION=$am_cv_python_version
5073 PYTHON_PREFIX='${prefix}'
5075 PYTHON_EXEC_PREFIX='${exec_prefix}'
5079 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5080 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5081 if test "${am_cv_python_platform+set}" = set; then
5082 echo $ECHO_N "(cached) $ECHO_C" >&6
5083 else
5084 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5086 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5087 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5088 PYTHON_PLATFORM=$am_cv_python_platform
5093 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5094 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5095 if test "${am_cv_python_pythondir+set}" = set; then
5096 echo $ECHO_N "(cached) $ECHO_C" >&6
5097 else
5098 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5099 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5101 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5102 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5103 pythondir=$am_cv_python_pythondir
5107 pkgpythondir=\${pythondir}/$PACKAGE
5110 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5111 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5112 if test "${am_cv_python_pyexecdir+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5114 else
5115 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5116 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5118 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5119 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5120 pyexecdir=$am_cv_python_pyexecdir
5124 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5132 FOR=for
5134 IF=if
5136 TEST=test
5138 CMP=cmp
5142 # Check for some includes for the X11 HIDD and the kernel
5145 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5146 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5147 if test "${ac_cv_path_GREP+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5149 else
5150 # Extract the first word of "grep ggrep" to use in msg output
5151 if test -z "$GREP"; then
5152 set dummy grep ggrep; ac_prog_name=$2
5153 if test "${ac_cv_path_GREP+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 ac_path_GREP_found=false
5157 # Loop through the user's path and test for each of PROGNAME-LIST
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_prog in grep ggrep; do
5164 for ac_exec_ext in '' $ac_executable_extensions; do
5165 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5166 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5167 # Check for GNU ac_path_GREP and select it if it is found.
5168 # Check for GNU $ac_path_GREP
5169 case `"$ac_path_GREP" --version 2>&1` in
5170 *GNU*)
5171 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5173 ac_count=0
5174 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5175 while :
5177 cat "conftest.in" "conftest.in" >"conftest.tmp"
5178 mv "conftest.tmp" "conftest.in"
5179 cp "conftest.in" "conftest.nl"
5180 echo 'GREP' >> "conftest.nl"
5181 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5182 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5183 ac_count=`expr $ac_count + 1`
5184 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5185 # Best one so far, save it but keep looking for a better one
5186 ac_cv_path_GREP="$ac_path_GREP"
5187 ac_path_GREP_max=$ac_count
5189 # 10*(2^10) chars as input seems more than enough
5190 test $ac_count -gt 10 && break
5191 done
5192 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5193 esac
5196 $ac_path_GREP_found && break 3
5197 done
5198 done
5200 done
5201 IFS=$as_save_IFS
5206 GREP="$ac_cv_path_GREP"
5207 if test -z "$GREP"; then
5208 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5209 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5210 { (exit 1); exit 1; }; }
5213 else
5214 ac_cv_path_GREP=$GREP
5219 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5220 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5221 GREP="$ac_cv_path_GREP"
5224 { echo "$as_me:$LINENO: checking for egrep" >&5
5225 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5226 if test "${ac_cv_path_EGREP+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5230 then ac_cv_path_EGREP="$GREP -E"
5231 else
5232 # Extract the first word of "egrep" to use in msg output
5233 if test -z "$EGREP"; then
5234 set dummy egrep; ac_prog_name=$2
5235 if test "${ac_cv_path_EGREP+set}" = set; then
5236 echo $ECHO_N "(cached) $ECHO_C" >&6
5237 else
5238 ac_path_EGREP_found=false
5239 # Loop through the user's path and test for each of PROGNAME-LIST
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_prog in egrep; do
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5248 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5249 # Check for GNU ac_path_EGREP and select it if it is found.
5250 # Check for GNU $ac_path_EGREP
5251 case `"$ac_path_EGREP" --version 2>&1` in
5252 *GNU*)
5253 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5255 ac_count=0
5256 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5257 while :
5259 cat "conftest.in" "conftest.in" >"conftest.tmp"
5260 mv "conftest.tmp" "conftest.in"
5261 cp "conftest.in" "conftest.nl"
5262 echo 'EGREP' >> "conftest.nl"
5263 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5265 ac_count=`expr $ac_count + 1`
5266 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5267 # Best one so far, save it but keep looking for a better one
5268 ac_cv_path_EGREP="$ac_path_EGREP"
5269 ac_path_EGREP_max=$ac_count
5271 # 10*(2^10) chars as input seems more than enough
5272 test $ac_count -gt 10 && break
5273 done
5274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5275 esac
5278 $ac_path_EGREP_found && break 3
5279 done
5280 done
5282 done
5283 IFS=$as_save_IFS
5288 EGREP="$ac_cv_path_EGREP"
5289 if test -z "$EGREP"; then
5290 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5291 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5292 { (exit 1); exit 1; }; }
5295 else
5296 ac_cv_path_EGREP=$EGREP
5302 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5303 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5304 EGREP="$ac_cv_path_EGREP"
5307 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5308 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5309 if test "${ac_cv_header_stdc+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312 cat >conftest.$ac_ext <<_ACEOF
5313 /* confdefs.h. */
5314 _ACEOF
5315 cat confdefs.h >>conftest.$ac_ext
5316 cat >>conftest.$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5318 #include <stdlib.h>
5319 #include <stdarg.h>
5320 #include <string.h>
5321 #include <float.h>
5324 main ()
5328 return 0;
5330 _ACEOF
5331 rm -f conftest.$ac_objext
5332 if { (ac_try="$ac_compile"
5333 case "(($ac_try" in
5334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5335 *) ac_try_echo=$ac_try;;
5336 esac
5337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5338 (eval "$ac_compile") 2>conftest.er1
5339 ac_status=$?
5340 grep -v '^ *+' conftest.er1 >conftest.err
5341 rm -f conftest.er1
5342 cat conftest.err >&5
5343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344 (exit $ac_status); } && {
5345 test -z "$ac_c_werror_flag" ||
5346 test ! -s conftest.err
5347 } && test -s conftest.$ac_objext; then
5348 ac_cv_header_stdc=yes
5349 else
5350 echo "$as_me: failed program was:" >&5
5351 sed 's/^/| /' conftest.$ac_ext >&5
5353 ac_cv_header_stdc=no
5356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5358 if test $ac_cv_header_stdc = yes; then
5359 # SunOS 4.x string.h does not declare mem*, 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 <string.h>
5368 _ACEOF
5369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5370 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5381 cat >conftest.$ac_ext <<_ACEOF
5382 /* confdefs.h. */
5383 _ACEOF
5384 cat confdefs.h >>conftest.$ac_ext
5385 cat >>conftest.$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 #include <stdlib.h>
5389 _ACEOF
5390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5391 $EGREP "free" >/dev/null 2>&1; then
5393 else
5394 ac_cv_header_stdc=no
5396 rm -f conftest*
5400 if test $ac_cv_header_stdc = yes; then
5401 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5402 if test "$cross_compiling" = yes; then
5404 else
5405 cat >conftest.$ac_ext <<_ACEOF
5406 /* confdefs.h. */
5407 _ACEOF
5408 cat confdefs.h >>conftest.$ac_ext
5409 cat >>conftest.$ac_ext <<_ACEOF
5410 /* end confdefs.h. */
5411 #include <ctype.h>
5412 #include <stdlib.h>
5413 #if ((' ' & 0x0FF) == 0x020)
5414 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5415 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5416 #else
5417 # define ISLOWER(c) \
5418 (('a' <= (c) && (c) <= 'i') \
5419 || ('j' <= (c) && (c) <= 'r') \
5420 || ('s' <= (c) && (c) <= 'z'))
5421 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5422 #endif
5424 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5426 main ()
5428 int i;
5429 for (i = 0; i < 256; i++)
5430 if (XOR (islower (i), ISLOWER (i))
5431 || toupper (i) != TOUPPER (i))
5432 return 2;
5433 return 0;
5435 _ACEOF
5436 rm -f conftest$ac_exeext
5437 if { (ac_try="$ac_link"
5438 case "(($ac_try" in
5439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5440 *) ac_try_echo=$ac_try;;
5441 esac
5442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5443 (eval "$ac_link") 2>&5
5444 ac_status=$?
5445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5446 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5447 { (case "(($ac_try" in
5448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5450 esac
5451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 (eval "$ac_try") 2>&5
5453 ac_status=$?
5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5455 (exit $ac_status); }; }; then
5457 else
5458 echo "$as_me: program exited with status $ac_status" >&5
5459 echo "$as_me: failed program was:" >&5
5460 sed 's/^/| /' conftest.$ac_ext >&5
5462 ( exit $ac_status )
5463 ac_cv_header_stdc=no
5465 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5471 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5472 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5473 if test $ac_cv_header_stdc = yes; then
5475 cat >>confdefs.h <<\_ACEOF
5476 #define STDC_HEADERS 1
5477 _ACEOF
5481 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5491 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5492 inttypes.h stdint.h unistd.h
5494 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 else
5500 cat >conftest.$ac_ext <<_ACEOF
5501 /* confdefs.h. */
5502 _ACEOF
5503 cat confdefs.h >>conftest.$ac_ext
5504 cat >>conftest.$ac_ext <<_ACEOF
5505 /* end confdefs.h. */
5506 $ac_includes_default
5508 #include <$ac_header>
5509 _ACEOF
5510 rm -f conftest.$ac_objext
5511 if { (ac_try="$ac_compile"
5512 case "(($ac_try" in
5513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5514 *) ac_try_echo=$ac_try;;
5515 esac
5516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5517 (eval "$ac_compile") 2>conftest.er1
5518 ac_status=$?
5519 grep -v '^ *+' conftest.er1 >conftest.err
5520 rm -f conftest.er1
5521 cat conftest.err >&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); } && {
5524 test -z "$ac_c_werror_flag" ||
5525 test ! -s conftest.err
5526 } && test -s conftest.$ac_objext; then
5527 eval "$as_ac_Header=yes"
5528 else
5529 echo "$as_me: failed program was:" >&5
5530 sed 's/^/| /' conftest.$ac_ext >&5
5532 eval "$as_ac_Header=no"
5535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 ac_res=`eval echo '${'$as_ac_Header'}'`
5538 { echo "$as_me:$LINENO: result: $ac_res" >&5
5539 echo "${ECHO_T}$ac_res" >&6; }
5540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5541 cat >>confdefs.h <<_ACEOF
5542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5543 _ACEOF
5547 done
5559 for ac_header in sys/ipc.h sys/shm.h \
5560 sys/mmap.h sys/mman.h sysexits.h \
5561 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5569 echo $ECHO_N "(cached) $ECHO_C" >&6
5571 ac_res=`eval echo '${'$as_ac_Header'}'`
5572 { echo "$as_me:$LINENO: result: $ac_res" >&5
5573 echo "${ECHO_T}$ac_res" >&6; }
5574 else
5575 # Is the header compilable?
5576 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5578 cat >conftest.$ac_ext <<_ACEOF
5579 /* confdefs.h. */
5580 _ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5584 $ac_includes_default
5585 #include <$ac_header>
5586 _ACEOF
5587 rm -f conftest.$ac_objext
5588 if { (ac_try="$ac_compile"
5589 case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5592 esac
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_compile") 2>conftest.er1
5595 ac_status=$?
5596 grep -v '^ *+' conftest.er1 >conftest.err
5597 rm -f conftest.er1
5598 cat conftest.err >&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && {
5601 test -z "$ac_c_werror_flag" ||
5602 test ! -s conftest.err
5603 } && test -s conftest.$ac_objext; then
5604 ac_header_compiler=yes
5605 else
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.$ac_ext >&5
5609 ac_header_compiler=no
5612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5614 echo "${ECHO_T}$ac_header_compiler" >&6; }
5616 # Is the header present?
5617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5619 cat >conftest.$ac_ext <<_ACEOF
5620 /* confdefs.h. */
5621 _ACEOF
5622 cat confdefs.h >>conftest.$ac_ext
5623 cat >>conftest.$ac_ext <<_ACEOF
5624 /* end confdefs.h. */
5625 #include <$ac_header>
5626 _ACEOF
5627 if { (ac_try="$ac_cpp conftest.$ac_ext"
5628 case "(($ac_try" in
5629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5630 *) ac_try_echo=$ac_try;;
5631 esac
5632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5634 ac_status=$?
5635 grep -v '^ *+' conftest.er1 >conftest.err
5636 rm -f conftest.er1
5637 cat conftest.err >&5
5638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639 (exit $ac_status); } >/dev/null && {
5640 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5641 test ! -s conftest.err
5642 }; then
5643 ac_header_preproc=yes
5644 else
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5648 ac_header_preproc=no
5651 rm -f conftest.err conftest.$ac_ext
5652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5653 echo "${ECHO_T}$ac_header_preproc" >&6; }
5655 # So? What about this header?
5656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5657 yes:no: )
5658 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5662 ac_header_preproc=yes
5664 no:yes:* )
5665 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5667 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5668 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5669 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5671 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5672 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5673 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5675 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5679 esac
5680 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5681 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5684 else
5685 eval "$as_ac_Header=\$ac_header_preproc"
5687 ac_res=`eval echo '${'$as_ac_Header'}'`
5688 { echo "$as_me:$LINENO: result: $ac_res" >&5
5689 echo "${ECHO_T}$ac_res" >&6; }
5692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5693 cat >>confdefs.h <<_ACEOF
5694 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5695 _ACEOF
5699 done
5703 for ac_header in sys/mount.h
5705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5706 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711 cat >conftest.$ac_ext <<_ACEOF
5712 /* confdefs.h. */
5713 _ACEOF
5714 cat confdefs.h >>conftest.$ac_ext
5715 cat >>conftest.$ac_ext <<_ACEOF
5716 /* end confdefs.h. */
5717 #include <sys/param.h>
5719 #include <$ac_header>
5720 _ACEOF
5721 rm -f conftest.$ac_objext
5722 if { (ac_try="$ac_compile"
5723 case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726 esac
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_compile") 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } && {
5735 test -z "$ac_c_werror_flag" ||
5736 test ! -s conftest.err
5737 } && test -s conftest.$ac_objext; then
5738 eval "$as_ac_Header=yes"
5739 else
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 eval "$as_ac_Header=no"
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 ac_res=`eval echo '${'$as_ac_Header'}'`
5749 { echo "$as_me:$LINENO: result: $ac_res" >&5
5750 echo "${ECHO_T}$ac_res" >&6; }
5751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5752 cat >>confdefs.h <<_ACEOF
5753 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5754 _ACEOF
5758 done
5766 ac_header_dirent=no
5767 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5768 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5769 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5770 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5772 echo $ECHO_N "(cached) $ECHO_C" >&6
5773 else
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 #include <sys/types.h>
5781 #include <$ac_hdr>
5784 main ()
5786 if ((DIR *) 0)
5787 return 0;
5789 return 0;
5791 _ACEOF
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5794 case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797 esac
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_compile") 2>conftest.er1
5800 ac_status=$?
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } && {
5806 test -z "$ac_c_werror_flag" ||
5807 test ! -s conftest.err
5808 } && test -s conftest.$ac_objext; then
5809 eval "$as_ac_Header=yes"
5810 else
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5814 eval "$as_ac_Header=no"
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 ac_res=`eval echo '${'$as_ac_Header'}'`
5820 { echo "$as_me:$LINENO: result: $ac_res" >&5
5821 echo "${ECHO_T}$ac_res" >&6; }
5822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5823 cat >>confdefs.h <<_ACEOF
5824 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5825 _ACEOF
5827 ac_header_dirent=$ac_hdr; break
5830 done
5831 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5832 if test $ac_header_dirent = dirent.h; then
5833 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5834 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5835 if test "${ac_cv_search_opendir+set}" = set; then
5836 echo $ECHO_N "(cached) $ECHO_C" >&6
5837 else
5838 ac_func_search_save_LIBS=$LIBS
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5846 /* Override any GCC internal prototype to avoid an error.
5847 Use char because int might match the return type of a GCC
5848 builtin and then its argument prototype would still apply. */
5849 #ifdef __cplusplus
5850 extern "C"
5851 #endif
5852 char opendir ();
5854 main ()
5856 return opendir ();
5858 return 0;
5860 _ACEOF
5861 for ac_lib in '' dir; do
5862 if test -z "$ac_lib"; then
5863 ac_res="none required"
5864 else
5865 ac_res=-l$ac_lib
5866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5868 rm -f conftest.$ac_objext conftest$ac_exeext
5869 if { (ac_try="$ac_link"
5870 case "(($ac_try" in
5871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5872 *) ac_try_echo=$ac_try;;
5873 esac
5874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5875 (eval "$ac_link") 2>conftest.er1
5876 ac_status=$?
5877 grep -v '^ *+' conftest.er1 >conftest.err
5878 rm -f conftest.er1
5879 cat conftest.err >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); } && {
5882 test -z "$ac_c_werror_flag" ||
5883 test ! -s conftest.err
5884 } && test -s conftest$ac_exeext &&
5885 $as_test_x conftest$ac_exeext; then
5886 ac_cv_search_opendir=$ac_res
5887 else
5888 echo "$as_me: failed program was:" >&5
5889 sed 's/^/| /' conftest.$ac_ext >&5
5894 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5895 conftest$ac_exeext
5896 if test "${ac_cv_search_opendir+set}" = set; then
5897 break
5899 done
5900 if test "${ac_cv_search_opendir+set}" = set; then
5902 else
5903 ac_cv_search_opendir=no
5905 rm conftest.$ac_ext
5906 LIBS=$ac_func_search_save_LIBS
5908 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5909 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5910 ac_res=$ac_cv_search_opendir
5911 if test "$ac_res" != no; then
5912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5916 else
5917 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5918 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5919 if test "${ac_cv_search_opendir+set}" = set; then
5920 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 else
5922 ac_func_search_save_LIBS=$LIBS
5923 cat >conftest.$ac_ext <<_ACEOF
5924 /* confdefs.h. */
5925 _ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5930 /* Override any GCC internal prototype to avoid an error.
5931 Use char because int might match the return type of a GCC
5932 builtin and then its argument prototype would still apply. */
5933 #ifdef __cplusplus
5934 extern "C"
5935 #endif
5936 char opendir ();
5938 main ()
5940 return opendir ();
5942 return 0;
5944 _ACEOF
5945 for ac_lib in '' x; do
5946 if test -z "$ac_lib"; then
5947 ac_res="none required"
5948 else
5949 ac_res=-l$ac_lib
5950 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5952 rm -f conftest.$ac_objext conftest$ac_exeext
5953 if { (ac_try="$ac_link"
5954 case "(($ac_try" in
5955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5956 *) ac_try_echo=$ac_try;;
5957 esac
5958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5959 (eval "$ac_link") 2>conftest.er1
5960 ac_status=$?
5961 grep -v '^ *+' conftest.er1 >conftest.err
5962 rm -f conftest.er1
5963 cat conftest.err >&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); } && {
5966 test -z "$ac_c_werror_flag" ||
5967 test ! -s conftest.err
5968 } && test -s conftest$ac_exeext &&
5969 $as_test_x conftest$ac_exeext; then
5970 ac_cv_search_opendir=$ac_res
5971 else
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5979 conftest$ac_exeext
5980 if test "${ac_cv_search_opendir+set}" = set; then
5981 break
5983 done
5984 if test "${ac_cv_search_opendir+set}" = set; then
5986 else
5987 ac_cv_search_opendir=no
5989 rm conftest.$ac_ext
5990 LIBS=$ac_func_search_save_LIBS
5992 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5993 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5994 ac_res=$ac_cv_search_opendir
5995 if test "$ac_res" != no; then
5996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6002 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6003 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6004 if test "${ac_cv_header_stat_broken+set}" = set; then
6005 echo $ECHO_N "(cached) $ECHO_C" >&6
6006 else
6007 cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h. */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 #include <sys/types.h>
6014 #include <sys/stat.h>
6016 #if defined S_ISBLK && defined S_IFDIR
6017 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6018 #endif
6020 #if defined S_ISBLK && defined S_IFCHR
6021 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6022 #endif
6024 #if defined S_ISLNK && defined S_IFREG
6025 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6026 #endif
6028 #if defined S_ISSOCK && defined S_IFREG
6029 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6030 #endif
6032 _ACEOF
6033 rm -f conftest.$ac_objext
6034 if { (ac_try="$ac_compile"
6035 case "(($ac_try" in
6036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6037 *) ac_try_echo=$ac_try;;
6038 esac
6039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6040 (eval "$ac_compile") 2>conftest.er1
6041 ac_status=$?
6042 grep -v '^ *+' conftest.er1 >conftest.err
6043 rm -f conftest.er1
6044 cat conftest.err >&5
6045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6046 (exit $ac_status); } && {
6047 test -z "$ac_c_werror_flag" ||
6048 test ! -s conftest.err
6049 } && test -s conftest.$ac_objext; then
6050 ac_cv_header_stat_broken=no
6051 else
6052 echo "$as_me: failed program was:" >&5
6053 sed 's/^/| /' conftest.$ac_ext >&5
6055 ac_cv_header_stat_broken=yes
6058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6061 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6062 if test $ac_cv_header_stat_broken = yes; then
6064 cat >>confdefs.h <<\_ACEOF
6065 #define STAT_MACROS_BROKEN 1
6066 _ACEOF
6070 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6071 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6072 if test "${ac_cv_header_stdc+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 else
6075 cat >conftest.$ac_ext <<_ACEOF
6076 /* confdefs.h. */
6077 _ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6081 #include <stdlib.h>
6082 #include <stdarg.h>
6083 #include <string.h>
6084 #include <float.h>
6087 main ()
6091 return 0;
6093 _ACEOF
6094 rm -f conftest.$ac_objext
6095 if { (ac_try="$ac_compile"
6096 case "(($ac_try" in
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6099 esac
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101 (eval "$ac_compile") 2>conftest.er1
6102 ac_status=$?
6103 grep -v '^ *+' conftest.er1 >conftest.err
6104 rm -f conftest.er1
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } && {
6108 test -z "$ac_c_werror_flag" ||
6109 test ! -s conftest.err
6110 } && test -s conftest.$ac_objext; then
6111 ac_cv_header_stdc=yes
6112 else
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6116 ac_cv_header_stdc=no
6119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6121 if test $ac_cv_header_stdc = yes; then
6122 # SunOS 4.x string.h does not declare mem*, 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 <string.h>
6131 _ACEOF
6132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6133 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6144 cat >conftest.$ac_ext <<_ACEOF
6145 /* confdefs.h. */
6146 _ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6150 #include <stdlib.h>
6152 _ACEOF
6153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6154 $EGREP "free" >/dev/null 2>&1; then
6156 else
6157 ac_cv_header_stdc=no
6159 rm -f conftest*
6163 if test $ac_cv_header_stdc = yes; then
6164 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6165 if test "$cross_compiling" = yes; then
6167 else
6168 cat >conftest.$ac_ext <<_ACEOF
6169 /* confdefs.h. */
6170 _ACEOF
6171 cat confdefs.h >>conftest.$ac_ext
6172 cat >>conftest.$ac_ext <<_ACEOF
6173 /* end confdefs.h. */
6174 #include <ctype.h>
6175 #include <stdlib.h>
6176 #if ((' ' & 0x0FF) == 0x020)
6177 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6178 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6179 #else
6180 # define ISLOWER(c) \
6181 (('a' <= (c) && (c) <= 'i') \
6182 || ('j' <= (c) && (c) <= 'r') \
6183 || ('s' <= (c) && (c) <= 'z'))
6184 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6185 #endif
6187 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6189 main ()
6191 int i;
6192 for (i = 0; i < 256; i++)
6193 if (XOR (islower (i), ISLOWER (i))
6194 || toupper (i) != TOUPPER (i))
6195 return 2;
6196 return 0;
6198 _ACEOF
6199 rm -f conftest$ac_exeext
6200 if { (ac_try="$ac_link"
6201 case "(($ac_try" in
6202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6203 *) ac_try_echo=$ac_try;;
6204 esac
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206 (eval "$ac_link") 2>&5
6207 ac_status=$?
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6210 { (case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213 esac
6214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6215 (eval "$ac_try") 2>&5
6216 ac_status=$?
6217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6218 (exit $ac_status); }; }; then
6220 else
6221 echo "$as_me: program exited with status $ac_status" >&5
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6225 ( exit $ac_status )
6226 ac_cv_header_stdc=no
6228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6234 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6235 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6236 if test $ac_cv_header_stdc = yes; then
6238 cat >>confdefs.h <<\_ACEOF
6239 #define STDC_HEADERS 1
6240 _ACEOF
6244 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6245 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6246 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6247 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249 cat >conftest.$ac_ext <<_ACEOF
6250 /* confdefs.h. */
6251 _ACEOF
6252 cat confdefs.h >>conftest.$ac_ext
6253 cat >>conftest.$ac_ext <<_ACEOF
6254 /* end confdefs.h. */
6255 #include <sys/types.h>
6256 #include <sys/wait.h>
6257 #ifndef WEXITSTATUS
6258 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6259 #endif
6260 #ifndef WIFEXITED
6261 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6262 #endif
6265 main ()
6267 int s;
6268 wait (&s);
6269 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6271 return 0;
6273 _ACEOF
6274 rm -f conftest.$ac_objext
6275 if { (ac_try="$ac_compile"
6276 case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6279 esac
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_compile") 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } && {
6288 test -z "$ac_c_werror_flag" ||
6289 test ! -s conftest.err
6290 } && test -s conftest.$ac_objext; then
6291 ac_cv_header_sys_wait_h=yes
6292 else
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6296 ac_cv_header_sys_wait_h=no
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6301 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6302 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6303 if test $ac_cv_header_sys_wait_h = yes; then
6305 cat >>confdefs.h <<\_ACEOF
6306 #define HAVE_SYS_WAIT_H 1
6307 _ACEOF
6311 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6312 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6313 if test "${ac_cv_header_time+set}" = set; then
6314 echo $ECHO_N "(cached) $ECHO_C" >&6
6315 else
6316 cat >conftest.$ac_ext <<_ACEOF
6317 /* confdefs.h. */
6318 _ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 #include <sys/types.h>
6323 #include <sys/time.h>
6324 #include <time.h>
6327 main ()
6329 if ((struct tm *) 0)
6330 return 0;
6332 return 0;
6334 _ACEOF
6335 rm -f conftest.$ac_objext
6336 if { (ac_try="$ac_compile"
6337 case "(($ac_try" in
6338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6339 *) ac_try_echo=$ac_try;;
6340 esac
6341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6342 (eval "$ac_compile") 2>conftest.er1
6343 ac_status=$?
6344 grep -v '^ *+' conftest.er1 >conftest.err
6345 rm -f conftest.er1
6346 cat conftest.err >&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); } && {
6349 test -z "$ac_c_werror_flag" ||
6350 test ! -s conftest.err
6351 } && test -s conftest.$ac_objext; then
6352 ac_cv_header_time=yes
6353 else
6354 echo "$as_me: failed program was:" >&5
6355 sed 's/^/| /' conftest.$ac_ext >&5
6357 ac_cv_header_time=no
6360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6362 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6363 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6364 if test $ac_cv_header_time = yes; then
6366 cat >>confdefs.h <<\_ACEOF
6367 #define TIME_WITH_SYS_TIME 1
6368 _ACEOF
6372 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6373 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6374 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6375 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 else
6377 cat >conftest.$ac_ext <<_ACEOF
6378 /* confdefs.h. */
6379 _ACEOF
6380 cat confdefs.h >>conftest.$ac_ext
6381 cat >>conftest.$ac_ext <<_ACEOF
6382 /* end confdefs.h. */
6383 $ac_includes_default
6385 main ()
6387 static struct stat ac_aggr;
6388 if (ac_aggr.st_blksize)
6389 return 0;
6391 return 0;
6393 _ACEOF
6394 rm -f conftest.$ac_objext
6395 if { (ac_try="$ac_compile"
6396 case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6399 esac
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_compile") 2>conftest.er1
6402 ac_status=$?
6403 grep -v '^ *+' conftest.er1 >conftest.err
6404 rm -f conftest.er1
6405 cat conftest.err >&5
6406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6407 (exit $ac_status); } && {
6408 test -z "$ac_c_werror_flag" ||
6409 test ! -s conftest.err
6410 } && test -s conftest.$ac_objext; then
6411 ac_cv_member_struct_stat_st_blksize=yes
6412 else
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6416 cat >conftest.$ac_ext <<_ACEOF
6417 /* confdefs.h. */
6418 _ACEOF
6419 cat confdefs.h >>conftest.$ac_ext
6420 cat >>conftest.$ac_ext <<_ACEOF
6421 /* end confdefs.h. */
6422 $ac_includes_default
6424 main ()
6426 static struct stat ac_aggr;
6427 if (sizeof ac_aggr.st_blksize)
6428 return 0;
6430 return 0;
6432 _ACEOF
6433 rm -f conftest.$ac_objext
6434 if { (ac_try="$ac_compile"
6435 case "(($ac_try" in
6436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6437 *) ac_try_echo=$ac_try;;
6438 esac
6439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6440 (eval "$ac_compile") 2>conftest.er1
6441 ac_status=$?
6442 grep -v '^ *+' conftest.er1 >conftest.err
6443 rm -f conftest.er1
6444 cat conftest.err >&5
6445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446 (exit $ac_status); } && {
6447 test -z "$ac_c_werror_flag" ||
6448 test ! -s conftest.err
6449 } && test -s conftest.$ac_objext; then
6450 ac_cv_member_struct_stat_st_blksize=yes
6451 else
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 ac_cv_member_struct_stat_st_blksize=no
6458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6463 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6464 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6465 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6467 cat >>confdefs.h <<_ACEOF
6468 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6469 _ACEOF
6472 cat >>confdefs.h <<\_ACEOF
6473 #define HAVE_ST_BLKSIZE 1
6474 _ACEOF
6479 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6480 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6481 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6482 echo $ECHO_N "(cached) $ECHO_C" >&6
6483 else
6484 cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h. */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 $ac_includes_default
6492 main ()
6494 static struct stat ac_aggr;
6495 if (ac_aggr.st_blocks)
6496 return 0;
6498 return 0;
6500 _ACEOF
6501 rm -f conftest.$ac_objext
6502 if { (ac_try="$ac_compile"
6503 case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6506 esac
6507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_compile") 2>conftest.er1
6509 ac_status=$?
6510 grep -v '^ *+' conftest.er1 >conftest.err
6511 rm -f conftest.er1
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } && {
6515 test -z "$ac_c_werror_flag" ||
6516 test ! -s conftest.err
6517 } && test -s conftest.$ac_objext; then
6518 ac_cv_member_struct_stat_st_blocks=yes
6519 else
6520 echo "$as_me: failed program was:" >&5
6521 sed 's/^/| /' conftest.$ac_ext >&5
6523 cat >conftest.$ac_ext <<_ACEOF
6524 /* confdefs.h. */
6525 _ACEOF
6526 cat confdefs.h >>conftest.$ac_ext
6527 cat >>conftest.$ac_ext <<_ACEOF
6528 /* end confdefs.h. */
6529 $ac_includes_default
6531 main ()
6533 static struct stat ac_aggr;
6534 if (sizeof ac_aggr.st_blocks)
6535 return 0;
6537 return 0;
6539 _ACEOF
6540 rm -f conftest.$ac_objext
6541 if { (ac_try="$ac_compile"
6542 case "(($ac_try" in
6543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544 *) ac_try_echo=$ac_try;;
6545 esac
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547 (eval "$ac_compile") 2>conftest.er1
6548 ac_status=$?
6549 grep -v '^ *+' conftest.er1 >conftest.err
6550 rm -f conftest.er1
6551 cat conftest.err >&5
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); } && {
6554 test -z "$ac_c_werror_flag" ||
6555 test ! -s conftest.err
6556 } && test -s conftest.$ac_objext; then
6557 ac_cv_member_struct_stat_st_blocks=yes
6558 else
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.$ac_ext >&5
6562 ac_cv_member_struct_stat_st_blocks=no
6565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6570 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6571 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6572 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6574 cat >>confdefs.h <<_ACEOF
6575 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6576 _ACEOF
6579 cat >>confdefs.h <<\_ACEOF
6580 #define HAVE_ST_BLOCKS 1
6581 _ACEOF
6583 else
6584 case " $LIBOBJS " in
6585 *" fileblocks.$ac_objext "* ) ;;
6586 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6588 esac
6593 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6594 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6595 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6596 echo $ECHO_N "(cached) $ECHO_C" >&6
6597 else
6598 cat >conftest.$ac_ext <<_ACEOF
6599 /* confdefs.h. */
6600 _ACEOF
6601 cat confdefs.h >>conftest.$ac_ext
6602 cat >>conftest.$ac_ext <<_ACEOF
6603 /* end confdefs.h. */
6604 $ac_includes_default
6606 main ()
6608 static struct stat ac_aggr;
6609 if (ac_aggr.st_rdev)
6610 return 0;
6612 return 0;
6614 _ACEOF
6615 rm -f conftest.$ac_objext
6616 if { (ac_try="$ac_compile"
6617 case "(($ac_try" in
6618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6619 *) ac_try_echo=$ac_try;;
6620 esac
6621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6622 (eval "$ac_compile") 2>conftest.er1
6623 ac_status=$?
6624 grep -v '^ *+' conftest.er1 >conftest.err
6625 rm -f conftest.er1
6626 cat conftest.err >&5
6627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6628 (exit $ac_status); } && {
6629 test -z "$ac_c_werror_flag" ||
6630 test ! -s conftest.err
6631 } && test -s conftest.$ac_objext; then
6632 ac_cv_member_struct_stat_st_rdev=yes
6633 else
6634 echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.$ac_ext >&5
6637 cat >conftest.$ac_ext <<_ACEOF
6638 /* confdefs.h. */
6639 _ACEOF
6640 cat confdefs.h >>conftest.$ac_ext
6641 cat >>conftest.$ac_ext <<_ACEOF
6642 /* end confdefs.h. */
6643 $ac_includes_default
6645 main ()
6647 static struct stat ac_aggr;
6648 if (sizeof ac_aggr.st_rdev)
6649 return 0;
6651 return 0;
6653 _ACEOF
6654 rm -f conftest.$ac_objext
6655 if { (ac_try="$ac_compile"
6656 case "(($ac_try" in
6657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6658 *) ac_try_echo=$ac_try;;
6659 esac
6660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6661 (eval "$ac_compile") 2>conftest.er1
6662 ac_status=$?
6663 grep -v '^ *+' conftest.er1 >conftest.err
6664 rm -f conftest.er1
6665 cat conftest.err >&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && {
6668 test -z "$ac_c_werror_flag" ||
6669 test ! -s conftest.err
6670 } && test -s conftest.$ac_objext; then
6671 ac_cv_member_struct_stat_st_rdev=yes
6672 else
6673 echo "$as_me: failed program was:" >&5
6674 sed 's/^/| /' conftest.$ac_ext >&5
6676 ac_cv_member_struct_stat_st_rdev=no
6679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6684 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6685 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6686 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6688 cat >>confdefs.h <<_ACEOF
6689 #define HAVE_STRUCT_STAT_ST_RDEV 1
6690 _ACEOF
6693 cat >>confdefs.h <<\_ACEOF
6694 #define HAVE_ST_RDEV 1
6695 _ACEOF
6700 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6701 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6702 if test "${ac_cv_struct_tm+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705 cat >conftest.$ac_ext <<_ACEOF
6706 /* confdefs.h. */
6707 _ACEOF
6708 cat confdefs.h >>conftest.$ac_ext
6709 cat >>conftest.$ac_ext <<_ACEOF
6710 /* end confdefs.h. */
6711 #include <sys/types.h>
6712 #include <time.h>
6715 main ()
6717 struct tm tm;
6718 int *p = &tm.tm_sec;
6719 return !p;
6721 return 0;
6723 _ACEOF
6724 rm -f conftest.$ac_objext
6725 if { (ac_try="$ac_compile"
6726 case "(($ac_try" in
6727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6728 *) ac_try_echo=$ac_try;;
6729 esac
6730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6731 (eval "$ac_compile") 2>conftest.er1
6732 ac_status=$?
6733 grep -v '^ *+' conftest.er1 >conftest.err
6734 rm -f conftest.er1
6735 cat conftest.err >&5
6736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6737 (exit $ac_status); } && {
6738 test -z "$ac_c_werror_flag" ||
6739 test ! -s conftest.err
6740 } && test -s conftest.$ac_objext; then
6741 ac_cv_struct_tm=time.h
6742 else
6743 echo "$as_me: failed program was:" >&5
6744 sed 's/^/| /' conftest.$ac_ext >&5
6746 ac_cv_struct_tm=sys/time.h
6749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6751 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6752 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6753 if test $ac_cv_struct_tm = sys/time.h; then
6755 cat >>confdefs.h <<\_ACEOF
6756 #define TM_IN_SYS_TIME 1
6757 _ACEOF
6761 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6762 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6763 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6764 echo $ECHO_N "(cached) $ECHO_C" >&6
6765 else
6766 cat >conftest.$ac_ext <<_ACEOF
6767 /* confdefs.h. */
6768 _ACEOF
6769 cat confdefs.h >>conftest.$ac_ext
6770 cat >>conftest.$ac_ext <<_ACEOF
6771 /* end confdefs.h. */
6772 #include <sys/types.h>
6773 #include <$ac_cv_struct_tm>
6777 main ()
6779 static struct tm ac_aggr;
6780 if (ac_aggr.tm_zone)
6781 return 0;
6783 return 0;
6785 _ACEOF
6786 rm -f conftest.$ac_objext
6787 if { (ac_try="$ac_compile"
6788 case "(($ac_try" in
6789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6790 *) ac_try_echo=$ac_try;;
6791 esac
6792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793 (eval "$ac_compile") 2>conftest.er1
6794 ac_status=$?
6795 grep -v '^ *+' conftest.er1 >conftest.err
6796 rm -f conftest.er1
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } && {
6800 test -z "$ac_c_werror_flag" ||
6801 test ! -s conftest.err
6802 } && test -s conftest.$ac_objext; then
6803 ac_cv_member_struct_tm_tm_zone=yes
6804 else
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #include <sys/types.h>
6815 #include <$ac_cv_struct_tm>
6819 main ()
6821 static struct tm ac_aggr;
6822 if (sizeof ac_aggr.tm_zone)
6823 return 0;
6825 return 0;
6827 _ACEOF
6828 rm -f conftest.$ac_objext
6829 if { (ac_try="$ac_compile"
6830 case "(($ac_try" in
6831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6832 *) ac_try_echo=$ac_try;;
6833 esac
6834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6835 (eval "$ac_compile") 2>conftest.er1
6836 ac_status=$?
6837 grep -v '^ *+' conftest.er1 >conftest.err
6838 rm -f conftest.er1
6839 cat conftest.err >&5
6840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } && {
6842 test -z "$ac_c_werror_flag" ||
6843 test ! -s conftest.err
6844 } && test -s conftest.$ac_objext; then
6845 ac_cv_member_struct_tm_tm_zone=yes
6846 else
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6850 ac_cv_member_struct_tm_tm_zone=no
6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6859 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6860 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6862 cat >>confdefs.h <<_ACEOF
6863 #define HAVE_STRUCT_TM_TM_ZONE 1
6864 _ACEOF
6869 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6871 cat >>confdefs.h <<\_ACEOF
6872 #define HAVE_TM_ZONE 1
6873 _ACEOF
6875 else
6876 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6877 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6878 if test "${ac_cv_have_decl_tzname+set}" = set; then
6879 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 else
6881 cat >conftest.$ac_ext <<_ACEOF
6882 /* confdefs.h. */
6883 _ACEOF
6884 cat confdefs.h >>conftest.$ac_ext
6885 cat >>conftest.$ac_ext <<_ACEOF
6886 /* end confdefs.h. */
6887 #include <time.h>
6890 main ()
6892 #ifndef tzname
6893 (void) tzname;
6894 #endif
6897 return 0;
6899 _ACEOF
6900 rm -f conftest.$ac_objext
6901 if { (ac_try="$ac_compile"
6902 case "(($ac_try" in
6903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6904 *) ac_try_echo=$ac_try;;
6905 esac
6906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6907 (eval "$ac_compile") 2>conftest.er1
6908 ac_status=$?
6909 grep -v '^ *+' conftest.er1 >conftest.err
6910 rm -f conftest.er1
6911 cat conftest.err >&5
6912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6913 (exit $ac_status); } && {
6914 test -z "$ac_c_werror_flag" ||
6915 test ! -s conftest.err
6916 } && test -s conftest.$ac_objext; then
6917 ac_cv_have_decl_tzname=yes
6918 else
6919 echo "$as_me: failed program was:" >&5
6920 sed 's/^/| /' conftest.$ac_ext >&5
6922 ac_cv_have_decl_tzname=no
6925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6927 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6928 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6929 if test $ac_cv_have_decl_tzname = yes; then
6931 cat >>confdefs.h <<_ACEOF
6932 #define HAVE_DECL_TZNAME 1
6933 _ACEOF
6936 else
6937 cat >>confdefs.h <<_ACEOF
6938 #define HAVE_DECL_TZNAME 0
6939 _ACEOF
6945 { echo "$as_me:$LINENO: checking for tzname" >&5
6946 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6947 if test "${ac_cv_var_tzname+set}" = set; then
6948 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 else
6950 cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h. */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956 #include <time.h>
6957 #if !HAVE_DECL_TZNAME
6958 extern char *tzname[];
6959 #endif
6962 main ()
6964 return tzname[0][0];
6966 return 0;
6968 _ACEOF
6969 rm -f conftest.$ac_objext conftest$ac_exeext
6970 if { (ac_try="$ac_link"
6971 case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6974 esac
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_link") 2>conftest.er1
6977 ac_status=$?
6978 grep -v '^ *+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } && {
6983 test -z "$ac_c_werror_flag" ||
6984 test ! -s conftest.err
6985 } && test -s conftest$ac_exeext &&
6986 $as_test_x conftest$ac_exeext; then
6987 ac_cv_var_tzname=yes
6988 else
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6992 ac_cv_var_tzname=no
6995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6996 conftest$ac_exeext conftest.$ac_ext
6998 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6999 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7000 if test $ac_cv_var_tzname = yes; then
7002 cat >>confdefs.h <<\_ACEOF
7003 #define HAVE_TZNAME 1
7004 _ACEOF
7009 { echo "$as_me:$LINENO: checking for off_t" >&5
7010 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7011 if test "${ac_cv_type_off_t+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7013 else
7014 cat >conftest.$ac_ext <<_ACEOF
7015 /* confdefs.h. */
7016 _ACEOF
7017 cat confdefs.h >>conftest.$ac_ext
7018 cat >>conftest.$ac_ext <<_ACEOF
7019 /* end confdefs.h. */
7020 $ac_includes_default
7021 typedef off_t ac__type_new_;
7023 main ()
7025 if ((ac__type_new_ *) 0)
7026 return 0;
7027 if (sizeof (ac__type_new_))
7028 return 0;
7030 return 0;
7032 _ACEOF
7033 rm -f conftest.$ac_objext
7034 if { (ac_try="$ac_compile"
7035 case "(($ac_try" in
7036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7037 *) ac_try_echo=$ac_try;;
7038 esac
7039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7040 (eval "$ac_compile") 2>conftest.er1
7041 ac_status=$?
7042 grep -v '^ *+' conftest.er1 >conftest.err
7043 rm -f conftest.er1
7044 cat conftest.err >&5
7045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046 (exit $ac_status); } && {
7047 test -z "$ac_c_werror_flag" ||
7048 test ! -s conftest.err
7049 } && test -s conftest.$ac_objext; then
7050 ac_cv_type_off_t=yes
7051 else
7052 echo "$as_me: failed program was:" >&5
7053 sed 's/^/| /' conftest.$ac_ext >&5
7055 ac_cv_type_off_t=no
7058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7060 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7061 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7062 if test $ac_cv_type_off_t = yes; then
7064 else
7066 cat >>confdefs.h <<_ACEOF
7067 #define off_t long int
7068 _ACEOF
7072 { echo "$as_me:$LINENO: checking for pid_t" >&5
7073 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7074 if test "${ac_cv_type_pid_t+set}" = set; then
7075 echo $ECHO_N "(cached) $ECHO_C" >&6
7076 else
7077 cat >conftest.$ac_ext <<_ACEOF
7078 /* confdefs.h. */
7079 _ACEOF
7080 cat confdefs.h >>conftest.$ac_ext
7081 cat >>conftest.$ac_ext <<_ACEOF
7082 /* end confdefs.h. */
7083 $ac_includes_default
7084 typedef pid_t ac__type_new_;
7086 main ()
7088 if ((ac__type_new_ *) 0)
7089 return 0;
7090 if (sizeof (ac__type_new_))
7091 return 0;
7093 return 0;
7095 _ACEOF
7096 rm -f conftest.$ac_objext
7097 if { (ac_try="$ac_compile"
7098 case "(($ac_try" in
7099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7100 *) ac_try_echo=$ac_try;;
7101 esac
7102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7103 (eval "$ac_compile") 2>conftest.er1
7104 ac_status=$?
7105 grep -v '^ *+' conftest.er1 >conftest.err
7106 rm -f conftest.er1
7107 cat conftest.err >&5
7108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7109 (exit $ac_status); } && {
7110 test -z "$ac_c_werror_flag" ||
7111 test ! -s conftest.err
7112 } && test -s conftest.$ac_objext; then
7113 ac_cv_type_pid_t=yes
7114 else
7115 echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7118 ac_cv_type_pid_t=no
7121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7123 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7124 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7125 if test $ac_cv_type_pid_t = yes; then
7127 else
7129 cat >>confdefs.h <<_ACEOF
7130 #define pid_t int
7131 _ACEOF
7135 { echo "$as_me:$LINENO: checking for size_t" >&5
7136 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7137 if test "${ac_cv_type_size_t+set}" = set; then
7138 echo $ECHO_N "(cached) $ECHO_C" >&6
7139 else
7140 cat >conftest.$ac_ext <<_ACEOF
7141 /* confdefs.h. */
7142 _ACEOF
7143 cat confdefs.h >>conftest.$ac_ext
7144 cat >>conftest.$ac_ext <<_ACEOF
7145 /* end confdefs.h. */
7146 $ac_includes_default
7147 typedef size_t ac__type_new_;
7149 main ()
7151 if ((ac__type_new_ *) 0)
7152 return 0;
7153 if (sizeof (ac__type_new_))
7154 return 0;
7156 return 0;
7158 _ACEOF
7159 rm -f conftest.$ac_objext
7160 if { (ac_try="$ac_compile"
7161 case "(($ac_try" in
7162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7163 *) ac_try_echo=$ac_try;;
7164 esac
7165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7166 (eval "$ac_compile") 2>conftest.er1
7167 ac_status=$?
7168 grep -v '^ *+' conftest.er1 >conftest.err
7169 rm -f conftest.er1
7170 cat conftest.err >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } && {
7173 test -z "$ac_c_werror_flag" ||
7174 test ! -s conftest.err
7175 } && test -s conftest.$ac_objext; then
7176 ac_cv_type_size_t=yes
7177 else
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7181 ac_cv_type_size_t=no
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7186 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7187 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7188 if test $ac_cv_type_size_t = yes; then
7190 else
7192 cat >>confdefs.h <<_ACEOF
7193 #define size_t unsigned int
7194 _ACEOF
7198 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7199 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7200 if test "${ac_cv_type_uid_t+set}" = set; then
7201 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 else
7203 cat >conftest.$ac_ext <<_ACEOF
7204 /* confdefs.h. */
7205 _ACEOF
7206 cat confdefs.h >>conftest.$ac_ext
7207 cat >>conftest.$ac_ext <<_ACEOF
7208 /* end confdefs.h. */
7209 #include <sys/types.h>
7211 _ACEOF
7212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7213 $EGREP "uid_t" >/dev/null 2>&1; then
7214 ac_cv_type_uid_t=yes
7215 else
7216 ac_cv_type_uid_t=no
7218 rm -f conftest*
7221 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7222 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7223 if test $ac_cv_type_uid_t = no; then
7225 cat >>confdefs.h <<\_ACEOF
7226 #define uid_t int
7227 _ACEOF
7230 cat >>confdefs.h <<\_ACEOF
7231 #define gid_t int
7232 _ACEOF
7237 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7238 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7239 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7241 else
7242 cat >conftest.$ac_ext <<_ACEOF
7243 /* confdefs.h. */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h. */
7248 $ac_includes_default
7250 main ()
7252 static struct tm ac_aggr;
7253 if (ac_aggr.tm_gmtoff)
7254 return 0;
7256 return 0;
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (ac_try="$ac_compile"
7261 case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264 esac
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7276 ac_cv_member_struct_tm_tm_gmtoff=yes
7277 else
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7281 cat >conftest.$ac_ext <<_ACEOF
7282 /* confdefs.h. */
7283 _ACEOF
7284 cat confdefs.h >>conftest.$ac_ext
7285 cat >>conftest.$ac_ext <<_ACEOF
7286 /* end confdefs.h. */
7287 $ac_includes_default
7289 main ()
7291 static struct tm ac_aggr;
7292 if (sizeof ac_aggr.tm_gmtoff)
7293 return 0;
7295 return 0;
7297 _ACEOF
7298 rm -f conftest.$ac_objext
7299 if { (ac_try="$ac_compile"
7300 case "(($ac_try" in
7301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7302 *) ac_try_echo=$ac_try;;
7303 esac
7304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7305 (eval "$ac_compile") 2>conftest.er1
7306 ac_status=$?
7307 grep -v '^ *+' conftest.er1 >conftest.err
7308 rm -f conftest.er1
7309 cat conftest.err >&5
7310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7311 (exit $ac_status); } && {
7312 test -z "$ac_c_werror_flag" ||
7313 test ! -s conftest.err
7314 } && test -s conftest.$ac_objext; then
7315 ac_cv_member_struct_tm_tm_gmtoff=yes
7316 else
7317 echo "$as_me: failed program was:" >&5
7318 sed 's/^/| /' conftest.$ac_ext >&5
7320 ac_cv_member_struct_tm_tm_gmtoff=no
7323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7328 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7329 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7330 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7332 cat >>confdefs.h <<_ACEOF
7333 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7334 _ACEOF
7340 # Look for some functions
7355 for ac_func in getpagesize kqueue statfs statvfs \
7356 clone kse_create rfork_thread thr_create sa_register \
7357 getcontext makecontext setcontext sigaltstack swapcontext
7359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365 cat >conftest.$ac_ext <<_ACEOF
7366 /* confdefs.h. */
7367 _ACEOF
7368 cat confdefs.h >>conftest.$ac_ext
7369 cat >>conftest.$ac_ext <<_ACEOF
7370 /* end confdefs.h. */
7371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7373 #define $ac_func innocuous_$ac_func
7375 /* System header to define __stub macros and hopefully few prototypes,
7376 which can conflict with char $ac_func (); below.
7377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7378 <limits.h> exists even on freestanding compilers. */
7380 #ifdef __STDC__
7381 # include <limits.h>
7382 #else
7383 # include <assert.h>
7384 #endif
7386 #undef $ac_func
7388 /* Override any GCC internal prototype to avoid an error.
7389 Use char because int might match the return type of a GCC
7390 builtin and then its argument prototype would still apply. */
7391 #ifdef __cplusplus
7392 extern "C"
7393 #endif
7394 char $ac_func ();
7395 /* The GNU C library defines this for functions which it implements
7396 to always fail with ENOSYS. Some functions are actually named
7397 something starting with __ and the normal name is an alias. */
7398 #if defined __stub_$ac_func || defined __stub___$ac_func
7399 choke me
7400 #endif
7403 main ()
7405 return $ac_func ();
7407 return 0;
7409 _ACEOF
7410 rm -f conftest.$ac_objext conftest$ac_exeext
7411 if { (ac_try="$ac_link"
7412 case "(($ac_try" in
7413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7415 esac
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417 (eval "$ac_link") 2>conftest.er1
7418 ac_status=$?
7419 grep -v '^ *+' conftest.er1 >conftest.err
7420 rm -f conftest.er1
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } && {
7424 test -z "$ac_c_werror_flag" ||
7425 test ! -s conftest.err
7426 } && test -s conftest$ac_exeext &&
7427 $as_test_x conftest$ac_exeext; then
7428 eval "$as_ac_var=yes"
7429 else
7430 echo "$as_me: failed program was:" >&5
7431 sed 's/^/| /' conftest.$ac_ext >&5
7433 eval "$as_ac_var=no"
7436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7437 conftest$ac_exeext conftest.$ac_ext
7439 ac_res=`eval echo '${'$as_ac_var'}'`
7440 { echo "$as_me:$LINENO: result: $ac_res" >&5
7441 echo "${ECHO_T}$ac_res" >&6; }
7442 if test `eval echo '${'$as_ac_var'}'` = yes; then
7443 cat >>confdefs.h <<_ACEOF
7444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7445 _ACEOF
7448 done
7453 for ac_header in stdlib.h unistd.h
7455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7456 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7457 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7458 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7460 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 ac_res=`eval echo '${'$as_ac_Header'}'`
7463 { echo "$as_me:$LINENO: result: $ac_res" >&5
7464 echo "${ECHO_T}$ac_res" >&6; }
7465 else
7466 # Is the header compilable?
7467 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7468 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7469 cat >conftest.$ac_ext <<_ACEOF
7470 /* confdefs.h. */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 $ac_includes_default
7476 #include <$ac_header>
7477 _ACEOF
7478 rm -f conftest.$ac_objext
7479 if { (ac_try="$ac_compile"
7480 case "(($ac_try" in
7481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7482 *) ac_try_echo=$ac_try;;
7483 esac
7484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7485 (eval "$ac_compile") 2>conftest.er1
7486 ac_status=$?
7487 grep -v '^ *+' conftest.er1 >conftest.err
7488 rm -f conftest.er1
7489 cat conftest.err >&5
7490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7491 (exit $ac_status); } && {
7492 test -z "$ac_c_werror_flag" ||
7493 test ! -s conftest.err
7494 } && test -s conftest.$ac_objext; then
7495 ac_header_compiler=yes
7496 else
7497 echo "$as_me: failed program was:" >&5
7498 sed 's/^/| /' conftest.$ac_ext >&5
7500 ac_header_compiler=no
7503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7504 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7505 echo "${ECHO_T}$ac_header_compiler" >&6; }
7507 # Is the header present?
7508 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7509 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7510 cat >conftest.$ac_ext <<_ACEOF
7511 /* confdefs.h. */
7512 _ACEOF
7513 cat confdefs.h >>conftest.$ac_ext
7514 cat >>conftest.$ac_ext <<_ACEOF
7515 /* end confdefs.h. */
7516 #include <$ac_header>
7517 _ACEOF
7518 if { (ac_try="$ac_cpp conftest.$ac_ext"
7519 case "(($ac_try" in
7520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7522 esac
7523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7525 ac_status=$?
7526 grep -v '^ *+' conftest.er1 >conftest.err
7527 rm -f conftest.er1
7528 cat conftest.err >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } >/dev/null && {
7531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7532 test ! -s conftest.err
7533 }; then
7534 ac_header_preproc=yes
7535 else
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7539 ac_header_preproc=no
7542 rm -f conftest.err conftest.$ac_ext
7543 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7544 echo "${ECHO_T}$ac_header_preproc" >&6; }
7546 # So? What about this header?
7547 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7548 yes:no: )
7549 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7550 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7551 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7552 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7553 ac_header_preproc=yes
7555 no:yes:* )
7556 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7557 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7558 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7559 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7560 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7561 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7562 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7563 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7564 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7565 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7566 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7567 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7570 esac
7571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576 eval "$as_ac_Header=\$ac_header_preproc"
7578 ac_res=`eval echo '${'$as_ac_Header'}'`
7579 { echo "$as_me:$LINENO: result: $ac_res" >&5
7580 echo "${ECHO_T}$ac_res" >&6; }
7583 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7584 cat >>confdefs.h <<_ACEOF
7585 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7586 _ACEOF
7590 done
7593 for ac_func in getpagesize
7595 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7596 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7597 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7598 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7599 echo $ECHO_N "(cached) $ECHO_C" >&6
7600 else
7601 cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h. */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7608 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7609 #define $ac_func innocuous_$ac_func
7611 /* System header to define __stub macros and hopefully few prototypes,
7612 which can conflict with char $ac_func (); below.
7613 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7614 <limits.h> exists even on freestanding compilers. */
7616 #ifdef __STDC__
7617 # include <limits.h>
7618 #else
7619 # include <assert.h>
7620 #endif
7622 #undef $ac_func
7624 /* Override any GCC internal prototype to avoid an error.
7625 Use char because int might match the return type of a GCC
7626 builtin and then its argument prototype would still apply. */
7627 #ifdef __cplusplus
7628 extern "C"
7629 #endif
7630 char $ac_func ();
7631 /* The GNU C library defines this for functions which it implements
7632 to always fail with ENOSYS. Some functions are actually named
7633 something starting with __ and the normal name is an alias. */
7634 #if defined __stub_$ac_func || defined __stub___$ac_func
7635 choke me
7636 #endif
7639 main ()
7641 return $ac_func ();
7643 return 0;
7645 _ACEOF
7646 rm -f conftest.$ac_objext conftest$ac_exeext
7647 if { (ac_try="$ac_link"
7648 case "(($ac_try" in
7649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7650 *) ac_try_echo=$ac_try;;
7651 esac
7652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7653 (eval "$ac_link") 2>conftest.er1
7654 ac_status=$?
7655 grep -v '^ *+' conftest.er1 >conftest.err
7656 rm -f conftest.er1
7657 cat conftest.err >&5
7658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7659 (exit $ac_status); } && {
7660 test -z "$ac_c_werror_flag" ||
7661 test ! -s conftest.err
7662 } && test -s conftest$ac_exeext &&
7663 $as_test_x conftest$ac_exeext; then
7664 eval "$as_ac_var=yes"
7665 else
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7669 eval "$as_ac_var=no"
7672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7673 conftest$ac_exeext conftest.$ac_ext
7675 ac_res=`eval echo '${'$as_ac_var'}'`
7676 { echo "$as_me:$LINENO: result: $ac_res" >&5
7677 echo "${ECHO_T}$ac_res" >&6; }
7678 if test `eval echo '${'$as_ac_var'}'` = yes; then
7679 cat >>confdefs.h <<_ACEOF
7680 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7681 _ACEOF
7684 done
7686 { echo "$as_me:$LINENO: checking for working mmap" >&5
7687 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7688 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7689 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 else
7691 if test "$cross_compiling" = yes; then
7692 ac_cv_func_mmap_fixed_mapped=no
7693 else
7694 cat >conftest.$ac_ext <<_ACEOF
7695 /* confdefs.h. */
7696 _ACEOF
7697 cat confdefs.h >>conftest.$ac_ext
7698 cat >>conftest.$ac_ext <<_ACEOF
7699 /* end confdefs.h. */
7700 $ac_includes_default
7701 /* malloc might have been renamed as rpl_malloc. */
7702 #undef malloc
7704 /* Thanks to Mike Haertel and Jim Avera for this test.
7705 Here is a matrix of mmap possibilities:
7706 mmap private not fixed
7707 mmap private fixed at somewhere currently unmapped
7708 mmap private fixed at somewhere already mapped
7709 mmap shared not fixed
7710 mmap shared fixed at somewhere currently unmapped
7711 mmap shared fixed at somewhere already mapped
7712 For private mappings, we should verify that changes cannot be read()
7713 back from the file, nor mmap's back from the file at a different
7714 address. (There have been systems where private was not correctly
7715 implemented like the infamous i386 svr4.0, and systems where the
7716 VM page cache was not coherent with the file system buffer cache
7717 like early versions of FreeBSD and possibly contemporary NetBSD.)
7718 For shared mappings, we should conversely verify that changes get
7719 propagated back to all the places they're supposed to be.
7721 Grep wants private fixed already mapped.
7722 The main things grep needs to know about mmap are:
7723 * does it exist and is it safe to write into the mmap'd area
7724 * how to use it (BSD variants) */
7726 #include <fcntl.h>
7727 #include <sys/mman.h>
7729 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7730 char *malloc ();
7731 #endif
7733 /* This mess was copied from the GNU getpagesize.h. */
7734 #ifndef HAVE_GETPAGESIZE
7735 /* Assume that all systems that can run configure have sys/param.h. */
7736 # ifndef HAVE_SYS_PARAM_H
7737 # define HAVE_SYS_PARAM_H 1
7738 # endif
7740 # ifdef _SC_PAGESIZE
7741 # define getpagesize() sysconf(_SC_PAGESIZE)
7742 # else /* no _SC_PAGESIZE */
7743 # ifdef HAVE_SYS_PARAM_H
7744 # include <sys/param.h>
7745 # ifdef EXEC_PAGESIZE
7746 # define getpagesize() EXEC_PAGESIZE
7747 # else /* no EXEC_PAGESIZE */
7748 # ifdef NBPG
7749 # define getpagesize() NBPG * CLSIZE
7750 # ifndef CLSIZE
7751 # define CLSIZE 1
7752 # endif /* no CLSIZE */
7753 # else /* no NBPG */
7754 # ifdef NBPC
7755 # define getpagesize() NBPC
7756 # else /* no NBPC */
7757 # ifdef PAGESIZE
7758 # define getpagesize() PAGESIZE
7759 # endif /* PAGESIZE */
7760 # endif /* no NBPC */
7761 # endif /* no NBPG */
7762 # endif /* no EXEC_PAGESIZE */
7763 # else /* no HAVE_SYS_PARAM_H */
7764 # define getpagesize() 8192 /* punt totally */
7765 # endif /* no HAVE_SYS_PARAM_H */
7766 # endif /* no _SC_PAGESIZE */
7768 #endif /* no HAVE_GETPAGESIZE */
7771 main ()
7773 char *data, *data2, *data3;
7774 int i, pagesize;
7775 int fd;
7777 pagesize = getpagesize ();
7779 /* First, make a file with some known garbage in it. */
7780 data = (char *) malloc (pagesize);
7781 if (!data)
7782 return 1;
7783 for (i = 0; i < pagesize; ++i)
7784 *(data + i) = rand ();
7785 umask (0);
7786 fd = creat ("conftest.mmap", 0600);
7787 if (fd < 0)
7788 return 1;
7789 if (write (fd, data, pagesize) != pagesize)
7790 return 1;
7791 close (fd);
7793 /* Next, try to mmap the file at a fixed address which already has
7794 something else allocated at it. If we can, also make sure that
7795 we see the same garbage. */
7796 fd = open ("conftest.mmap", O_RDWR);
7797 if (fd < 0)
7798 return 1;
7799 data2 = (char *) malloc (2 * pagesize);
7800 if (!data2)
7801 return 1;
7802 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7803 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7804 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7805 return 1;
7806 for (i = 0; i < pagesize; ++i)
7807 if (*(data + i) != *(data2 + i))
7808 return 1;
7810 /* Finally, make sure that changes to the mapped area do not
7811 percolate back to the file as seen by read(). (This is a bug on
7812 some variants of i386 svr4.0.) */
7813 for (i = 0; i < pagesize; ++i)
7814 *(data2 + i) = *(data2 + i) + 1;
7815 data3 = (char *) malloc (pagesize);
7816 if (!data3)
7817 return 1;
7818 if (read (fd, data3, pagesize) != pagesize)
7819 return 1;
7820 for (i = 0; i < pagesize; ++i)
7821 if (*(data + i) != *(data3 + i))
7822 return 1;
7823 close (fd);
7824 return 0;
7826 _ACEOF
7827 rm -f conftest$ac_exeext
7828 if { (ac_try="$ac_link"
7829 case "(($ac_try" in
7830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7831 *) ac_try_echo=$ac_try;;
7832 esac
7833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7834 (eval "$ac_link") 2>&5
7835 ac_status=$?
7836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7837 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7838 { (case "(($ac_try" in
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7841 esac
7842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843 (eval "$ac_try") 2>&5
7844 ac_status=$?
7845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); }; }; then
7847 ac_cv_func_mmap_fixed_mapped=yes
7848 else
7849 echo "$as_me: program exited with status $ac_status" >&5
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7853 ( exit $ac_status )
7854 ac_cv_func_mmap_fixed_mapped=no
7856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7861 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7862 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7863 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7865 cat >>confdefs.h <<\_ACEOF
7866 #define HAVE_MMAP 1
7867 _ACEOF
7870 rm -f conftest.mmap
7875 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7876 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7877 aros_config_ldflags=""
7879 aros_shared_default=yes
7881 aros_shared_cflags="-fPIC"
7882 aros_shared_aflags=""
7883 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7884 aros_kernel_ldflags="-Wl,-rpath,./lib"
7886 aros_target_ar_flags="cr"
7887 aros_target_nm_flags="-C -ul"
7888 aros_target_strip_flags="--strip-unneeded -R.comment"
7890 aros_compiler_libs=
7892 aros_target_genmap="-Wl,-Map -Xlinker"
7894 # Native flavour stuff
7895 aros_bochs_hack="0"
7896 aros_serial_debug="0"
7898 # Palm native flavour stuff
7899 aros_palm_debug_hack="0"
7901 # Unix flavour stuff
7902 aros_nesting_supervisor="0"
7904 # Collect-aros stuff: "-ius" to ignore undefined symbols
7905 ignore_undefined_symbols=""
7907 #-----------------------------------------------------------------------------
7910 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7911 # it switched on by default, and we use the host compiler, so it compiles AROS
7912 # code with this enabled resulting in link failures as we don't have support
7913 # for it.
7915 # We use two methods to disable it. For the host compiler (used to compile
7916 # some hosted modules), we test to see if the compiler supports stack
7917 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7918 # work on all platforms.
7920 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7921 # (this is done unconditionally, as it should have no effect on compilers
7922 # without the stack protection feature). This may be specific to the way that
7923 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7924 # strong enough to disable it in a generic way though, so we'll live with it
7925 # until another vendor ships GCC with it enabled in a different way, and deal
7926 # with it then.
7929 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7930 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7931 save_cflags="$CFLAGS"
7932 CFLAGS="$CFLAGS -fno-stack-protector"
7933 cat >conftest.$ac_ext <<_ACEOF
7934 /* confdefs.h. */
7935 _ACEOF
7936 cat confdefs.h >>conftest.$ac_ext
7937 cat >>conftest.$ac_ext <<_ACEOF
7938 /* end confdefs.h. */
7941 main ()
7945 return 0;
7947 _ACEOF
7948 rm -f conftest.$ac_objext
7949 if { (ac_try="$ac_compile"
7950 case "(($ac_try" in
7951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7952 *) ac_try_echo=$ac_try;;
7953 esac
7954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7955 (eval "$ac_compile") 2>conftest.er1
7956 ac_status=$?
7957 grep -v '^ *+' conftest.er1 >conftest.err
7958 rm -f conftest.er1
7959 cat conftest.err >&5
7960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7961 (exit $ac_status); } && {
7962 test -z "$ac_c_werror_flag" ||
7963 test ! -s conftest.err
7964 } && test -s conftest.$ac_objext; then
7965 use_no_stack_protector="yes"
7966 else
7967 echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7970 use_no_stack_protector="no"
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
7975 echo "${ECHO_T}$use_no_stack_protector" >&6; }
7976 if test "x-$use_no_stack_protector" = "x-yes" ; then
7977 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7979 CFLAGS="$save_cflags"
7982 #-----------------------------------------------------------------------------
7984 # Disable pointer-signedness warnings if the compiler recognises the option
7985 # (this only works for the host compiler at the moment)
7987 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7988 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
7989 save_cflags="$CFLAGS"
7990 CFLAGS="$CFLAGS -Wno-pointer-sign"
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h. */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7999 main ()
8003 return 0;
8005 _ACEOF
8006 rm -f conftest.$ac_objext
8007 if { (ac_try="$ac_compile"
8008 case "(($ac_try" in
8009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8010 *) ac_try_echo=$ac_try;;
8011 esac
8012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8013 (eval "$ac_compile") 2>conftest.er1
8014 ac_status=$?
8015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } && {
8020 test -z "$ac_c_werror_flag" ||
8021 test ! -s conftest.err
8022 } && test -s conftest.$ac_objext; then
8023 use_no_sign_warning="yes"
8024 else
8025 echo "$as_me: failed program was:" >&5
8026 sed 's/^/| /' conftest.$ac_ext >&5
8028 use_no_sign_warning="no"
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8033 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8034 if test "x-$use_no_sign_warning" = "x-yes" ; then
8035 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8037 CFLAGS="$save_cflags"
8039 #-----------------------------------------------------------------------------
8041 { echo "$as_me:$LINENO: checking for type of build" >&5
8042 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8043 # Check whether --enable-build_type was given.
8044 if test "${enable_build_type+set}" = set; then
8045 enableval=$enable_build_type; build_type=$enableval
8046 else
8047 build_type="personal"
8051 if test "$build_type" = "nightly"; then
8052 build_type_string="NIGHTLY"
8053 elif test "$build_type" = "snapshot"; then
8054 build_type_string="SNAPSHOT"
8055 elif test "$build_type" = "milestone"; then
8056 build_type_string="MILESTONE"
8057 elif test "$build_type" = "release"; then
8058 build_type_string="RELEASE"
8059 else
8060 build_type_string="PERSONAL"
8061 build_type="personal"
8064 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8066 { echo "$as_me:$LINENO: result: $build_type" >&5
8067 echo "${ECHO_T}$build_type" >&6; }
8069 #-----------------------------------------------------------------------------
8070 all_debug_types="messages stack mungwall modules symbols"
8072 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8073 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8074 # Check whether --enable-debug was given.
8075 if test "${enable_debug+set}" = set; then
8076 enableval=$enable_debug; debug="$enableval"
8077 else
8078 debug=""
8082 if test "$debug" = "" -o "$debug" = "no"; then
8083 debug="none"
8084 elif test "$debug" = "yes"; then
8085 debug="all"
8088 if test "$debug" = "all" ; then
8089 debug=$all_debug_types
8090 for d in $all_debug_types; do
8091 export aros_${d}_debug="1"
8092 done
8093 else
8094 for d in $all_debug_types; do
8095 export aros_${d}_debug="0"
8096 done
8099 if test "$debug" != "none"; then
8100 debug=`echo $debug | sed s/,/\ /g`
8101 for d in $debug; do
8102 found="0"
8103 for d2 in $all_debug_types; do
8104 if test "$d2" = "$d"; then
8105 found="1"
8106 break
8108 done
8109 if test "$found" = "0"; then
8110 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8111 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8112 { (exit 1); exit 1; }; }
8114 export aros_${d}_debug="1"
8115 done
8116 aros_debug="yes"
8118 { echo "$as_me:$LINENO: result: $debug" >&5
8119 echo "${ECHO_T}$debug" >&6; }
8121 if test "$aros_messages_debug" = "1"; then
8122 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8123 else
8124 aros_messages_debug=""
8126 if test "$aros_symbols_debug" = "1"; then
8127 aros_symbols_debug="-g"
8128 else
8129 aros_symbols_debug=""
8132 # These are the flags to pass when compiling debugged programs
8133 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8134 aros_debug_aflags=""
8135 aros_debug_ldflags="$aros_symbols_debug"
8137 aros_crosstools="no"
8139 #-----------------------------------------------------------------------------
8140 # Checking if we should build crosstools..
8141 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8142 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8143 # Check whether --enable-crosstools was given.
8144 if test "${enable_crosstools+set}" = set; then
8145 enableval=$enable_crosstools; crosstools="$enableval"
8146 else
8147 crosstools="no"
8150 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8151 { echo "$as_me:$LINENO: result: yes" >&5
8152 echo "${ECHO_T}yes" >&6; }
8153 aros_crosstools="yes"
8154 else
8155 { echo "$as_me:$LINENO: result: no" >&5
8156 echo "${ECHO_T}no" >&6; }
8159 #-----------------------------------------------------------------------------
8160 # Checking for distcc and ccache.
8162 # Always apply the transforms in this particular order. Basically you should
8163 # always run 'ccache distcc compiler' in that order for the best performance.
8165 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8166 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8167 # Check whether --enable-distcc was given.
8168 if test "${enable_distcc+set}" = set; then
8169 enableval=$enable_distcc; distcc="$enableval"
8170 else
8171 distcc="no"
8174 if test "$distcc" != "" -a "$distcc" != "no"; then
8175 # AC_CHECK_PROG will print out the result in this case
8176 # Extract the first word of "distcc", so it can be a program name with args.
8177 set dummy distcc; ac_word=$2
8178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8180 if test "${ac_cv_path_DISTCC+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 else
8183 case $DISTCC in
8184 [\\/]* | ?:[\\/]*)
8185 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8189 for as_dir in $PATH
8191 IFS=$as_save_IFS
8192 test -z "$as_dir" && as_dir=.
8193 for ac_exec_ext in '' $ac_executable_extensions; do
8194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8195 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 break 2
8199 done
8200 done
8201 IFS=$as_save_IFS
8203 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8205 esac
8207 DISTCC=$ac_cv_path_DISTCC
8208 if test -n "$DISTCC"; then
8209 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8210 echo "${ECHO_T}$DISTCC" >&6; }
8211 else
8212 { echo "$as_me:$LINENO: result: no" >&5
8213 echo "${ECHO_T}no" >&6; }
8217 else
8218 { echo "$as_me:$LINENO: result: no" >&5
8219 echo "${ECHO_T}no" >&6; }
8222 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8223 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8224 # Check whether --enable-ccache was given.
8225 if test "${enable_ccache+set}" = set; then
8226 enableval=$enable_ccache; ccache="$enableval"
8227 else
8228 ccache="no"
8231 if test "$ccache" != "" -a "$ccache" != "no"; then
8232 # AC_CHECK_PROG will print out the result in this case
8233 # Extract the first word of "ccache", so it can be a program name with args.
8234 set dummy ccache; ac_word=$2
8235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8237 if test "${ac_cv_prog_CCACHE+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 else
8240 if test -n "$CCACHE"; then
8241 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8242 else
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 for as_dir in $PATH
8246 IFS=$as_save_IFS
8247 test -z "$as_dir" && as_dir=.
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8250 ac_cv_prog_CCACHE="ccache"
8251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 break 2
8254 done
8255 done
8256 IFS=$as_save_IFS
8260 CCACHE=$ac_cv_prog_CCACHE
8261 if test -n "$CCACHE"; then
8262 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8263 echo "${ECHO_T}$CCACHE" >&6; }
8264 else
8265 { echo "$as_me:$LINENO: result: no" >&5
8266 echo "${ECHO_T}no" >&6; }
8270 else
8271 { echo "$as_me:$LINENO: result: no" >&5
8272 echo "${ECHO_T}no" >&6; }
8275 #-----------------------------------------------------------------------------
8276 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8277 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8279 # Check whether --with-optimization was given.
8280 if test "${with_optimization+set}" = set; then
8281 withval=$with_optimization; optimization="$withval"
8282 else
8283 optimization="unknown"
8286 if test "$optimization" = "unknown"; then
8287 if test "$debug" != "none"; then
8288 optimization="-O0"
8289 else
8290 optimization="-O2"
8293 aros_config_cflags="$aros_config_cflags $optimization"
8294 { echo "$as_me:$LINENO: result: $optimization" >&5
8295 echo "${ECHO_T}$optimization" >&6; }
8297 #-----------------------------------------------------------------------------
8298 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8299 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8300 # Check whether --enable-target_variant was given.
8301 if test "${enable_target_variant+set}" = set; then
8302 enableval=$enable_target_variant; target_variant=$enableval
8303 else
8304 target_variant="none"
8307 if test "$target_variant" = "none"; then
8308 aros_target_variant=""
8309 aros_target_suffix=""
8310 else
8311 aros_target_variant="$target_variant"
8312 aros_target_suffix="-$target_variant"
8314 { echo "$as_me:$LINENO: result: $enableval" >&5
8315 echo "${ECHO_T}$enableval" >&6; }
8317 target_bootloader="none"
8319 #-----------------------------------------------------------------------------
8320 # This is the target configuration switch.
8321 case "$target_os" in
8322 linux*)
8323 aros_target_arch="linux"
8324 case "$target_cpu" in
8325 *m68k*)
8326 aros_target_cpu="m68k"
8327 aros_object_format="m68kelf"
8328 aros_flavour="emulcompat"
8329 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8330 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8331 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8332 gcc_target_cpu="mc68000"
8334 *i?86*)
8335 aros_target_cpu="i386"
8336 aros_object_format="elf_i386"
8337 aros_flavour="emulation"
8338 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8339 aros_default_wbdepth=8
8340 gcc_target_cpu="i386"
8342 *x86_64*)
8343 aros_target_cpu="x86_64"
8344 aros_object_format="elf_x86_64"
8345 aros_flavour="emulation"
8346 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8347 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8348 aros_default_wbdepth=8
8349 gcc_target_cpu="x86_64"
8351 *powerpc*)
8352 aros_target_cpu="ppc"
8353 aros_object_format="elf32ppc"
8354 aros_flavour="emulation"
8355 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8356 aros_default_wbdepth=8
8357 gcc_target_cpu="ppc"
8359 # TODO
8360 # Same as powerpc, but I need this for the nightly build to work again.
8361 # Actually, the nightly should be made working with powerpc target.
8362 # That just was too much work for the moment, another week or two.
8363 *ppc*)
8364 aros_target_cpu="ppc"
8365 aros_object_format="elf32ppc"
8366 aros_flavour="emulation"
8367 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8368 aros_default_wbdepth=8
8369 gcc_target_cpu="ppc"
8372 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8373 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8374 { (exit 1); exit 1; }; }
8376 esac
8380 aros_target_arch="pc"
8381 aros_shared_default="no"
8382 target_bootloader="grub2"
8383 case "$target_cpu" in
8384 *i?86*)
8385 aros_target_cpu="i386"
8388 if test "$aros_object_format" = "" ; then
8389 aros_object_format="elf_i386"
8391 aros_flavour="standalone"
8392 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8393 aros_kernel_ldflags=""
8394 aros_default_wbwidth=640
8395 aros_default_wbheight=480
8396 gcc_target_cpu="i386"
8398 *x86_64*)
8399 aros_target_cpu="x86_64"
8400 aros_serial_debug=1
8401 if test "$aros_object_format" = "" ; then
8402 aros_object_format="elf_x86_64"
8404 aros_flavour="standalone"
8405 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8406 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8407 aros_kernel_ldflags=""
8408 aros_default_wbwidth=640
8409 aros_default_wbheight=480
8410 gcc_target_cpu="x86_64"
8413 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8414 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8415 { (exit 1); exit 1; }; }
8417 esac
8420 prep)
8421 aros_target_arch="prep"
8422 aros_shared_default="no"
8423 aros_target_cpu="ppc"
8424 aros_object_format="elf32ppc"
8425 aros_flavour="ppcnative"
8426 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8427 aros_kernel_ldflags=""
8428 aros_default_wbwidth=640
8429 aros_default_wbheight=480
8430 gcc_target_cpu="ppc"
8433 freebsd*)
8434 aros_target_arch="freebsd"
8435 aros_target_cpu="i386"
8436 aros_flavour="emulation"
8437 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8438 gcc_target_cpu="i386"
8440 aros_target_strip_flags="-x"
8443 darwin*)
8444 aros_target_arch="darwin"
8445 aros_flavour="emulation"
8446 case "$target_cpu" in
8447 *i?86*)
8448 aros_target_cpu="i386"
8449 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8450 gcc_target_cpu="i386"
8451 aros_object_format="elf_i386"
8452 aros_target_strip_flags="-x"
8455 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8456 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8457 { (exit 1); exit 1; }; }
8459 esac
8461 netbsd*)
8462 aros_target_arch="netbsd"
8463 case "$target_cpu" in
8464 *m68k*)
8465 aros_target_cpu="m68k"
8466 aros_object_format="m68kelf"
8467 aros_flavour="emulcompat"
8468 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8469 gcc_target_cpu="mc68000"
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__NetBSD__"
8476 aros_default_wbdepth=8
8477 gcc_target_cpu="i386"
8480 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8481 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8482 { (exit 1); exit 1; }; }
8484 esac
8485 aros_target_genmap="-Wl,-M -Xlinker >"
8486 aros_flavour="emulation"
8487 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8490 openbsd*)
8491 aros_target_arch="openbsd"
8492 case "$target_cpu" in
8493 *i?86*)
8494 aros_target_cpu="i386"
8495 aros_object_format="elf_i386"
8496 aros_flavour="emulation"
8497 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8498 gcc_target_cpu="i386"
8501 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8502 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8503 { (exit 1); exit 1; }; }
8505 esac
8506 aros_target_genmap="-Wl,-M -Xlinker >"
8507 aros_target_nm_flags="-u"
8508 aros_flavour="emulation"
8511 solaris*)
8512 aros_target_arch="solaris"
8513 case "$target_cpu" in
8514 *i?86*)
8515 aros_target_cpu="i386"
8516 aros_object_format="elf_i386"
8517 aros_flavour="emulation"
8518 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8519 aros_default_wbdepth=8
8520 gcc_target_cpu="i386"
8522 *sparc*)
8523 aros_target_cpu="sparc"
8524 aros_object_format="elf_sparc"
8525 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8526 gcc_target_cpu="sparc"
8529 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8530 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8531 { (exit 1); exit 1; }; }
8533 esac
8534 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8535 aros_flavour="emulation"
8538 morphos*)
8539 aros_target_arch="morphos"
8540 aros_shared_default="no"
8541 aros_target_cpu="ppc"
8542 aros_object_format="elf_ppc"
8543 aros_flavour="nativecompat"
8544 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8545 gcc_target_cpu="ppc"
8548 sam440)
8549 aros_target_arch="sam440"
8550 aros_shared_default="no"
8551 aros_target_cpu="ppc"
8552 aros_object_format="elf32ppc"
8553 aros_flavour="ppcnative"
8554 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8555 aros_kernel_ldflags=""
8556 aros_default_wbwidth=640
8557 aros_default_wbheight=480
8558 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8559 gcc_target_cpu="powerpc"
8562 chrp)
8563 aros_target_arch="chrp"
8564 aros_shared_default="no"
8565 aros_target_cpu="ppc"
8566 aros_object_format="elf32ppc"
8567 aros_flavour="ppcnative"
8568 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8569 aros_kernel_ldflags=""
8570 aros_default_wbwidth=640
8571 aros_default_wbheight=480
8572 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8573 gcc_target_cpu="powerpc"
8574 case "$aros_target_variant" in
8575 efika)
8576 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8578 esac
8581 amiga*)
8582 aros_target_arch="amiga"
8583 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8584 aros_shared_default="no"
8586 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8588 case "$target_cpu" in
8589 *m68k*)
8590 aros_target_cpu="m68k"
8591 aros_object_format="m68kelf"
8592 aros_flavour="nativecompat"
8593 gcc_target_cpu="mc68000"
8595 *ppc*)
8596 aros_cpu="ppc"
8597 aros_flavour="native"
8598 gcc_target_cpu="ppc"
8601 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8602 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8603 { (exit 1); exit 1; }; }
8605 esac
8608 cygwin*)
8609 aros_target_arch="cygwin"
8610 aros_shared_default="no"
8611 case "$target_cpu" in
8612 *i?86*)
8613 aros_target_cpu="i386"
8614 aros_object_format="elf_i386"
8615 aros_flavour="emulation"
8616 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8617 aros_shared_cflags=""
8618 aros_default_wbdepth=8
8619 gcc_target_cpu="i386"
8620 aros_target_cc="i386-aros-gcc"
8621 aros_target_ld="i386-aros-ld"
8622 aros_target_as="i386-aros-as"
8623 aros_target_ar="i386-aros-ar"
8624 aros_target_ranlib="i386-aros-ranlib"
8625 aros_target_nm="i386-aros-nm"
8626 aros_target_strip="i386-aros-strip"
8627 aros_target_objcopy="i386-aros-objcopy"
8628 aros_target_objdump="i386-aros-objdump"
8631 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8632 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8633 { (exit 1); exit 1; }; }
8635 esac
8638 mingw32*)
8639 aros_target_arch="mingw32"
8640 aros_shared_default="no"
8641 case "$target_cpu" in
8642 *i?86*)
8643 aros_target_cpu="i386"
8644 aros_object_format="elf_i386"
8645 aros_flavour="emulation"
8646 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8647 aros_shared_cflags=""
8648 aros_default_wbdepth=8
8649 gcc_target_cpu="i386"
8650 aros_target_cc="i386-aros-gcc"
8651 aros_target_ld="i386-aros-ld"
8652 aros_target_as="i386-aros-as"
8653 aros_target_ar="i386-aros-ar"
8654 aros_target_ranlib="i386-aros-ranlib"
8655 aros_target_nm="i386-aros-nm"
8656 aros_target_strip="i386-aros-strip"
8657 aros_target_objcopy="i386-aros-objcopy"
8658 aros_target_objdump="i386-aros-objdump"
8661 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8662 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8663 { (exit 1); exit 1; }; }
8665 esac
8666 if test $host_os = "cygwin"; then
8667 aros_kernel_cflags="-mno-cygwin"
8670 pp*)
8671 aros_target_arch="pp"
8672 aros_shared_default="no"
8673 case "$target_cpu" in
8674 *m68k*)
8675 aros_target_cpu="m68k"
8676 aros_object_format="m68kelf"
8677 aros_flavour="palmnative"
8678 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8679 aros_kernel_ldflags=""
8680 aros_default_wbwidth=160
8681 aros_default_wbheight=160
8682 aros_default_wbdepth=1
8683 aros_target_ar_flags="cru"
8684 aros_compiler_libs="-lgcc1"
8685 aros_shared_default=no
8686 aros_shared_cflags="-fpic"
8687 aros_shared_aflags=""
8688 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8689 aros_kernel_ldflags="-Wl,-rpath,./lib"
8690 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8691 aros_debug_aflags=""
8692 aros_debug_ldflags="$aros_symbols_debug"
8693 aros_mungwall_debug="0"
8694 aros_modules_debug="0"
8695 gcc_target_cpu="mc68000"
8696 ignore_undefined_symbols="-ius"
8699 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8700 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8701 { (exit 1); exit 1; }; }
8703 esac
8706 mac*)
8707 aros_target_arch="mac"
8708 aros_shared_default="no"
8709 case "$target_cpu" in
8710 *m68k*)
8711 aros_target_cpu="m68k"
8712 aros_object_format="m68kelf"
8713 aros_flavour="mac68knative"
8714 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8715 aros_default_wbwidth=512
8716 aros_default_wbheight=384
8717 aros_default_wbdepth=8
8718 aros_target_ar_flags="cru"
8719 aros_compiler_libs="-lgcc1"
8720 aros_shared_default=no
8721 aros_shared_cflags="-fpic"
8722 aros_shared_aflags=""
8723 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8724 aros_kernel_ldflags="-Wl,-rpath,./lib"
8725 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8726 aros_debug_aflags=""
8727 aros_debug_ldflags="$aros_symbols_debug"
8728 aros_mungwall_debug="0"
8729 aros_modules_debug="0"
8730 gcc_target_cpu="mc68000"
8731 ignore_undefined_symbols="-ius"
8734 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8735 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8736 { (exit 1); exit 1; }; }
8738 esac
8742 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8743 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8744 { (exit 1); exit 1; }; }
8746 esac
8748 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
8749 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
8751 # Check whether --with-portssources was given.
8752 if test "${with_portssources+set}" = set; then
8753 withval=$with_portssources; with_portssrcdir=$withval
8754 else
8755 with_portssrcdir="default"
8758 if test "$with_portssrcdir" = "default"; then
8759 AROS_PORTSSRCDIR="$AROS_BUILDDIR/bin/Sources"
8760 else
8761 AROS_PORTSSRCDIR="$with_portssrcdir"
8763 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
8764 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
8766 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
8767 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
8769 # Check whether --with-bootloader was given.
8770 if test "${with_bootloader+set}" = set; then
8771 withval=$with_bootloader; target_bootloader=$withval
8772 else
8773 target_bootloader=$target_bootloader
8776 if test "$target_bootloader" = "none"; then
8777 aros_target_bootloader=""
8778 else
8779 aros_target_bootloader="$target_bootloader"
8781 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
8782 echo "${ECHO_T}$target_bootloader" >&6; }
8784 # Check LZO when compiling the grub2 bootloader on i386/x86_64.
8785 aros_liblzo_check="no"
8786 case "$aros_target_bootloader" in
8787 grub2*)
8788 case "$target_cpu" in
8789 *i?86*)
8790 aros_liblzo_check="yes"
8792 *x86_64*)
8793 aros_liblzo_check="yes"
8797 esac
8802 esac
8804 if test "$aros_liblzo_check" = "yes"; then
8805 # There are three possibilities. LZO version 2 installed with the name
8806 # liblzo2, with the name liblzo, and LZO version 1.
8807 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
8808 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
8809 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 else
8812 ac_check_lib_save_LIBS=$LIBS
8813 LIBS="-llzo2 $LIBS"
8814 cat >conftest.$ac_ext <<_ACEOF
8815 /* confdefs.h. */
8816 _ACEOF
8817 cat confdefs.h >>conftest.$ac_ext
8818 cat >>conftest.$ac_ext <<_ACEOF
8819 /* end confdefs.h. */
8821 /* Override any GCC internal prototype to avoid an error.
8822 Use char because int might match the return type of a GCC
8823 builtin and then its argument prototype would still apply. */
8824 #ifdef __cplusplus
8825 extern "C"
8826 #endif
8827 char __lzo_init_v2 ();
8829 main ()
8831 return __lzo_init_v2 ();
8833 return 0;
8835 _ACEOF
8836 rm -f conftest.$ac_objext conftest$ac_exeext
8837 if { (ac_try="$ac_link"
8838 case "(($ac_try" in
8839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8840 *) ac_try_echo=$ac_try;;
8841 esac
8842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8843 (eval "$ac_link") 2>conftest.er1
8844 ac_status=$?
8845 grep -v '^ *+' conftest.er1 >conftest.err
8846 rm -f conftest.er1
8847 cat conftest.err >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } && {
8850 test -z "$ac_c_werror_flag" ||
8851 test ! -s conftest.err
8852 } && test -s conftest$ac_exeext &&
8853 $as_test_x conftest$ac_exeext; then
8854 ac_cv_lib_lzo2___lzo_init_v2=yes
8855 else
8856 echo "$as_me: failed program was:" >&5
8857 sed 's/^/| /' conftest.$ac_ext >&5
8859 ac_cv_lib_lzo2___lzo_init_v2=no
8862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8863 conftest$ac_exeext conftest.$ac_ext
8864 LIBS=$ac_check_lib_save_LIBS
8866 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
8867 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
8868 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
8869 LIBLZO="-llzo2"
8870 else
8871 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
8872 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
8873 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
8874 echo $ECHO_N "(cached) $ECHO_C" >&6
8875 else
8876 ac_check_lib_save_LIBS=$LIBS
8877 LIBS="-llzo $LIBS"
8878 cat >conftest.$ac_ext <<_ACEOF
8879 /* confdefs.h. */
8880 _ACEOF
8881 cat confdefs.h >>conftest.$ac_ext
8882 cat >>conftest.$ac_ext <<_ACEOF
8883 /* end confdefs.h. */
8885 /* Override any GCC internal prototype to avoid an error.
8886 Use char because int might match the return type of a GCC
8887 builtin and then its argument prototype would still apply. */
8888 #ifdef __cplusplus
8889 extern "C"
8890 #endif
8891 char __lzo_init_v2 ();
8893 main ()
8895 return __lzo_init_v2 ();
8897 return 0;
8899 _ACEOF
8900 rm -f conftest.$ac_objext conftest$ac_exeext
8901 if { (ac_try="$ac_link"
8902 case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8905 esac
8906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_link") 2>conftest.er1
8908 ac_status=$?
8909 grep -v '^ *+' conftest.er1 >conftest.err
8910 rm -f conftest.er1
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } && {
8914 test -z "$ac_c_werror_flag" ||
8915 test ! -s conftest.err
8916 } && test -s conftest$ac_exeext &&
8917 $as_test_x conftest$ac_exeext; then
8918 ac_cv_lib_lzo___lzo_init_v2=yes
8919 else
8920 echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8923 ac_cv_lib_lzo___lzo_init_v2=no
8926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8927 conftest$ac_exeext conftest.$ac_ext
8928 LIBS=$ac_check_lib_save_LIBS
8930 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
8931 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
8932 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
8933 LIBLZO="-llzo"
8934 else
8935 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
8936 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
8937 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
8938 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 else
8940 ac_check_lib_save_LIBS=$LIBS
8941 LIBS="-llzo $LIBS"
8942 cat >conftest.$ac_ext <<_ACEOF
8943 /* confdefs.h. */
8944 _ACEOF
8945 cat confdefs.h >>conftest.$ac_ext
8946 cat >>conftest.$ac_ext <<_ACEOF
8947 /* end confdefs.h. */
8949 /* Override any GCC internal prototype to avoid an error.
8950 Use char because int might match the return type of a GCC
8951 builtin and then its argument prototype would still apply. */
8952 #ifdef __cplusplus
8953 extern "C"
8954 #endif
8955 char __lzo_init2 ();
8957 main ()
8959 return __lzo_init2 ();
8961 return 0;
8963 _ACEOF
8964 rm -f conftest.$ac_objext conftest$ac_exeext
8965 if { (ac_try="$ac_link"
8966 case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8969 esac
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971 (eval "$ac_link") 2>conftest.er1
8972 ac_status=$?
8973 grep -v '^ *+' conftest.er1 >conftest.err
8974 rm -f conftest.er1
8975 cat conftest.err >&5
8976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8977 (exit $ac_status); } && {
8978 test -z "$ac_c_werror_flag" ||
8979 test ! -s conftest.err
8980 } && test -s conftest$ac_exeext &&
8981 $as_test_x conftest$ac_exeext; then
8982 ac_cv_lib_lzo___lzo_init2=yes
8983 else
8984 echo "$as_me: failed program was:" >&5
8985 sed 's/^/| /' conftest.$ac_ext >&5
8987 ac_cv_lib_lzo___lzo_init2=no
8990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8991 conftest$ac_exeext conftest.$ac_ext
8992 LIBS=$ac_check_lib_save_LIBS
8994 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
8995 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
8996 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
8997 LIBLZO="-llzo"
8998 else
8999 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
9000 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
9001 { (exit 1); exit 1; }; }
9010 LIBS="$LIBS $LIBLZO"
9011 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
9012 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
9013 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9015 else
9016 cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h. */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h. */
9022 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
9023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9024 #define lzo1x_999_compress innocuous_lzo1x_999_compress
9026 /* System header to define __stub macros and hopefully few prototypes,
9027 which can conflict with char lzo1x_999_compress (); below.
9028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9029 <limits.h> exists even on freestanding compilers. */
9031 #ifdef __STDC__
9032 # include <limits.h>
9033 #else
9034 # include <assert.h>
9035 #endif
9037 #undef lzo1x_999_compress
9039 /* Override any GCC internal prototype to avoid an error.
9040 Use char because int might match the return type of a GCC
9041 builtin and then its argument prototype would still apply. */
9042 #ifdef __cplusplus
9043 extern "C"
9044 #endif
9045 char lzo1x_999_compress ();
9046 /* The GNU C library defines this for functions which it implements
9047 to always fail with ENOSYS. Some functions are actually named
9048 something starting with __ and the normal name is an alias. */
9049 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
9050 choke me
9051 #endif
9054 main ()
9056 return lzo1x_999_compress ();
9058 return 0;
9060 _ACEOF
9061 rm -f conftest.$ac_objext conftest$ac_exeext
9062 if { (ac_try="$ac_link"
9063 case "(($ac_try" in
9064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065 *) ac_try_echo=$ac_try;;
9066 esac
9067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9068 (eval "$ac_link") 2>conftest.er1
9069 ac_status=$?
9070 grep -v '^ *+' conftest.er1 >conftest.err
9071 rm -f conftest.er1
9072 cat conftest.err >&5
9073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9074 (exit $ac_status); } && {
9075 test -z "$ac_c_werror_flag" ||
9076 test ! -s conftest.err
9077 } && test -s conftest$ac_exeext &&
9078 $as_test_x conftest$ac_exeext; then
9079 ac_cv_func_lzo1x_999_compress=yes
9080 else
9081 echo "$as_me: failed program was:" >&5
9082 sed 's/^/| /' conftest.$ac_ext >&5
9084 ac_cv_func_lzo1x_999_compress=no
9087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9088 conftest$ac_exeext conftest.$ac_ext
9090 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
9091 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
9092 if test $ac_cv_func_lzo1x_999_compress = yes; then
9094 else
9095 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
9096 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
9097 { (exit 1); exit 1; }; }
9101 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
9104 for ac_header in lzo/lzo1x.h lzo1x.h
9106 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9108 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9109 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9110 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9113 ac_res=`eval echo '${'$as_ac_Header'}'`
9114 { echo "$as_me:$LINENO: result: $ac_res" >&5
9115 echo "${ECHO_T}$ac_res" >&6; }
9116 else
9117 # Is the header compilable?
9118 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9119 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9120 cat >conftest.$ac_ext <<_ACEOF
9121 /* confdefs.h. */
9122 _ACEOF
9123 cat confdefs.h >>conftest.$ac_ext
9124 cat >>conftest.$ac_ext <<_ACEOF
9125 /* end confdefs.h. */
9126 $ac_includes_default
9127 #include <$ac_header>
9128 _ACEOF
9129 rm -f conftest.$ac_objext
9130 if { (ac_try="$ac_compile"
9131 case "(($ac_try" in
9132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9133 *) ac_try_echo=$ac_try;;
9134 esac
9135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9136 (eval "$ac_compile") 2>conftest.er1
9137 ac_status=$?
9138 grep -v '^ *+' conftest.er1 >conftest.err
9139 rm -f conftest.er1
9140 cat conftest.err >&5
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); } && {
9143 test -z "$ac_c_werror_flag" ||
9144 test ! -s conftest.err
9145 } && test -s conftest.$ac_objext; then
9146 ac_header_compiler=yes
9147 else
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.$ac_ext >&5
9151 ac_header_compiler=no
9154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9156 echo "${ECHO_T}$ac_header_compiler" >&6; }
9158 # Is the header present?
9159 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9161 cat >conftest.$ac_ext <<_ACEOF
9162 /* confdefs.h. */
9163 _ACEOF
9164 cat confdefs.h >>conftest.$ac_ext
9165 cat >>conftest.$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 #include <$ac_header>
9168 _ACEOF
9169 if { (ac_try="$ac_cpp conftest.$ac_ext"
9170 case "(($ac_try" in
9171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172 *) ac_try_echo=$ac_try;;
9173 esac
9174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9176 ac_status=$?
9177 grep -v '^ *+' conftest.er1 >conftest.err
9178 rm -f conftest.er1
9179 cat conftest.err >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } >/dev/null && {
9182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9183 test ! -s conftest.err
9184 }; then
9185 ac_header_preproc=yes
9186 else
9187 echo "$as_me: failed program was:" >&5
9188 sed 's/^/| /' conftest.$ac_ext >&5
9190 ac_header_preproc=no
9193 rm -f conftest.err conftest.$ac_ext
9194 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9195 echo "${ECHO_T}$ac_header_preproc" >&6; }
9197 # So? What about this header?
9198 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9199 yes:no: )
9200 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9201 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9203 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9204 ac_header_preproc=yes
9206 no:yes:* )
9207 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9208 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9209 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9210 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9211 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9212 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9213 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9214 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9216 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9217 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9218 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9221 esac
9222 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9223 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9225 echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227 eval "$as_ac_Header=\$ac_header_preproc"
9229 ac_res=`eval echo '${'$as_ac_Header'}'`
9230 { echo "$as_me:$LINENO: result: $ac_res" >&5
9231 echo "${ECHO_T}$ac_res" >&6; }
9234 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9235 cat >>confdefs.h <<_ACEOF
9236 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9237 _ACEOF
9241 done
9245 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9246 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9248 # Check whether --with-theme was given.
9249 if test "${with_theme+set}" = set; then
9250 withval=$with_theme; target_guitheme=$withval
9251 else
9252 target_guitheme="default"
9255 if test "$target_guitheme" = "default"; then
9256 aros_target_guitheme="Ice"
9257 else
9258 aros_target_guitheme="$target_guitheme"
9260 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9261 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9263 # Find out if we are cross-compiling (ie. if we can't use the host compiler
9264 # for target code)
9265 cross_compiling=no
9266 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9267 cross_compiling=yes
9269 if test "$aros_host_arch" == "darwin" ; then
9270 cross_compiling=yes
9273 # Set prefix for target compiler etc. if we're cross-compiling
9274 # (should possibly be earlier but needs to be after AC_PROG_CC)
9275 if test "$cross_compiling" = "yes" ; then
9276 target_tool_prefix=${target_cpu}-elf-
9277 CC=${target_tool_prefix}gcc
9280 #-----------------------------------------------------------------------------
9282 # Disable pointer-signedness warnings if the compiler recognises the option
9284 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9285 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
9286 save_cflags="$CFLAGS"
9287 CFLAGS="$CFLAGS -Wno-pointer-sign"
9288 cat >conftest.$ac_ext <<_ACEOF
9289 /* confdefs.h. */
9290 _ACEOF
9291 cat confdefs.h >>conftest.$ac_ext
9292 cat >>conftest.$ac_ext <<_ACEOF
9293 /* end confdefs.h. */
9296 main ()
9300 return 0;
9302 _ACEOF
9303 rm -f conftest.$ac_objext
9304 if { (ac_try="$ac_compile"
9305 case "(($ac_try" in
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9308 esac
9309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9310 (eval "$ac_compile") 2>conftest.er1
9311 ac_status=$?
9312 grep -v '^ *+' conftest.er1 >conftest.err
9313 rm -f conftest.er1
9314 cat conftest.err >&5
9315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316 (exit $ac_status); } && {
9317 test -z "$ac_c_werror_flag" ||
9318 test ! -s conftest.err
9319 } && test -s conftest.$ac_objext; then
9320 use_no_sign_warning="yes"
9321 else
9322 echo "$as_me: failed program was:" >&5
9323 sed 's/^/| /' conftest.$ac_ext >&5
9325 use_no_sign_warning="no"
9328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9329 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9330 echo "${ECHO_T}$use_no_sign_warning" >&6; }
9331 if test "x-$use_no_sign_warning" = "x-yes" ; then
9332 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9334 CFLAGS="$save_cflags"
9336 #-----------------------------------------------------------------------------
9338 # Find all the tools we need to compile. This could be cross-compiling
9339 # though! If that is the case we use the GNU form of the target and
9340 # simply add this to the front of the binary name. This is rather simple,
9341 # but it should work under most circumstances.
9343 # The default tools are to use the same as the host, but only if the
9344 # host and target CPU are the same. With GCC this is normally enough.
9347 aros_cc_pre=""
9348 aros_shared_ld="$aros_host_ld"
9350 aros_target_mkdep="$aros_host_mkdep"
9351 aros_target_incl_def="$aros_host_incl"
9353 # Extract the first word of "$CC", so it can be a program name with args.
9354 set dummy $CC; ac_word=$2
9355 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9357 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360 case $aros_kernel_cc in
9361 [\\/]* | ?:[\\/]*)
9362 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9366 for as_dir in $PATH
9368 IFS=$as_save_IFS
9369 test -z "$as_dir" && as_dir=.
9370 for ac_exec_ext in '' $ac_executable_extensions; do
9371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9372 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9374 break 2
9376 done
9377 done
9378 IFS=$as_save_IFS
9381 esac
9383 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9384 if test -n "$aros_kernel_cc"; then
9385 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
9386 echo "${ECHO_T}$aros_kernel_cc" >&6; }
9387 else
9388 { echo "$as_me:$LINENO: result: no" >&5
9389 echo "${ECHO_T}no" >&6; }
9394 # The default tools executables to be linked to.
9395 if test "$aros_target_cc" != ""; then
9396 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9397 set dummy $aros_target_cc; ac_word=$2
9398 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9399 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9400 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403 case $aros_target_cc in
9404 [\\/]* | ?:[\\/]*)
9405 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409 for as_dir in $PATH
9411 IFS=$as_save_IFS
9412 test -z "$as_dir" && as_dir=.
9413 for ac_exec_ext in '' $ac_executable_extensions; do
9414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9415 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9417 break 2
9419 done
9420 done
9421 IFS=$as_save_IFS
9424 esac
9426 aros_target_cc=$ac_cv_path_aros_target_cc
9427 if test -n "$aros_target_cc"; then
9428 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9429 echo "${ECHO_T}$aros_target_cc" >&6; }
9430 else
9431 { echo "$as_me:$LINENO: result: no" >&5
9432 echo "${ECHO_T}no" >&6; }
9436 if test "$aros_target_cc" = ""; then
9437 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9438 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9439 { (exit 1); exit 1; }; }
9442 if test "$aros_target_ld" != ""; then
9443 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9444 set dummy $aros_target_ld; ac_word=$2
9445 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9446 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9447 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9448 echo $ECHO_N "(cached) $ECHO_C" >&6
9449 else
9450 case $aros_target_ld in
9451 [\\/]* | ?:[\\/]*)
9452 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9456 for as_dir in $PATH
9458 IFS=$as_save_IFS
9459 test -z "$as_dir" && as_dir=.
9460 for ac_exec_ext in '' $ac_executable_extensions; do
9461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9462 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9464 break 2
9466 done
9467 done
9468 IFS=$as_save_IFS
9471 esac
9473 aros_target_ld=$ac_cv_path_aros_target_ld
9474 if test -n "$aros_target_ld"; then
9475 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9476 echo "${ECHO_T}$aros_target_ld" >&6; }
9477 else
9478 { echo "$as_me:$LINENO: result: no" >&5
9479 echo "${ECHO_T}no" >&6; }
9483 if test "$aros_target_ld" = ""; then
9484 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9485 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9486 { (exit 1); exit 1; }; }
9490 if test "$crosstools" != "yes"; then
9492 if test "$aros_target_as" = ""; then
9493 if test "$cross_compiling" = "yes" ; then
9494 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9495 set dummy ${target_tool_prefix}as; ac_word=$2
9496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9498 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9500 else
9501 case $aros_target_as_ln in
9502 [\\/]* | ?:[\\/]*)
9503 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9507 for as_dir in $PATH
9509 IFS=$as_save_IFS
9510 test -z "$as_dir" && as_dir=.
9511 for ac_exec_ext in '' $ac_executable_extensions; do
9512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9513 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9515 break 2
9517 done
9518 done
9519 IFS=$as_save_IFS
9522 esac
9524 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9525 if test -n "$aros_target_as_ln"; then
9526 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9527 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9528 else
9529 { echo "$as_me:$LINENO: result: no" >&5
9530 echo "${ECHO_T}no" >&6; }
9534 else
9535 if test "$GCC" = "yes"; then
9536 aros_gcc_as=`$CC -print-prog-name=as`
9537 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9538 set dummy `basename $aros_gcc_as`; ac_word=$2
9539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9541 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9542 echo $ECHO_N "(cached) $ECHO_C" >&6
9543 else
9544 case $aros_target_as_ln in
9545 [\\/]* | ?:[\\/]*)
9546 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9550 for as_dir in `dirname $aros_gcc_as`
9552 IFS=$as_save_IFS
9553 test -z "$as_dir" && as_dir=.
9554 for ac_exec_ext in '' $ac_executable_extensions; do
9555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9556 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9558 break 2
9560 done
9561 done
9562 IFS=$as_save_IFS
9565 esac
9567 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9568 if test -n "$aros_target_as_ln"; then
9569 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9570 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9571 else
9572 { echo "$as_me:$LINENO: result: no" >&5
9573 echo "${ECHO_T}no" >&6; }
9578 if test "$aros_target_as_ln" = ""; then
9579 # Extract the first word of "as", so it can be a program name with args.
9580 set dummy as; ac_word=$2
9581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9583 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9584 echo $ECHO_N "(cached) $ECHO_C" >&6
9585 else
9586 case $aros_target_as_ln in
9587 [\\/]* | ?:[\\/]*)
9588 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9592 for as_dir in $PATH
9594 IFS=$as_save_IFS
9595 test -z "$as_dir" && as_dir=.
9596 for ac_exec_ext in '' $ac_executable_extensions; do
9597 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9598 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9600 break 2
9602 done
9603 done
9604 IFS=$as_save_IFS
9607 esac
9609 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9610 if test -n "$aros_target_as_ln"; then
9611 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9612 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9613 else
9614 { echo "$as_me:$LINENO: result: no" >&5
9615 echo "${ECHO_T}no" >&6; }
9621 else
9622 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9623 set dummy $aros_target_as; ac_word=$2
9624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9626 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9627 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 else
9629 case $aros_target_as_ln in
9630 [\\/]* | ?:[\\/]*)
9631 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9635 for as_dir in $PATH
9637 IFS=$as_save_IFS
9638 test -z "$as_dir" && as_dir=.
9639 for ac_exec_ext in '' $ac_executable_extensions; do
9640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9641 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9643 break 2
9645 done
9646 done
9647 IFS=$as_save_IFS
9650 esac
9652 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9653 if test -n "$aros_target_as_ln"; then
9654 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9655 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9656 else
9657 { echo "$as_me:$LINENO: result: no" >&5
9658 echo "${ECHO_T}no" >&6; }
9664 if test "$aros_target_as_ln" = ""; then
9665 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9666 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9667 { (exit 1); exit 1; }; }
9670 if test "$aros_kernel_ld" = ""; then
9671 if test "$cross_compiling" = "yes" ; then
9672 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9673 set dummy ${target_tool_prefix}ld; ac_word=$2
9674 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9675 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9676 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9678 else
9679 case $aros_kernel_ld in
9680 [\\/]* | ?:[\\/]*)
9681 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9685 for as_dir in $PATH
9687 IFS=$as_save_IFS
9688 test -z "$as_dir" && as_dir=.
9689 for ac_exec_ext in '' $ac_executable_extensions; do
9690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9691 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9693 break 2
9695 done
9696 done
9697 IFS=$as_save_IFS
9700 esac
9702 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9703 if test -n "$aros_kernel_ld"; then
9704 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9705 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9706 else
9707 { echo "$as_me:$LINENO: result: no" >&5
9708 echo "${ECHO_T}no" >&6; }
9712 else
9713 if test "$GCC" = "yes"; then
9714 aros_gcc_ld=`$CC -print-prog-name=ld`
9715 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9716 set dummy `basename $aros_gcc_ld`; ac_word=$2
9717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9719 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9721 else
9722 case $aros_kernel_ld in
9723 [\\/]* | ?:[\\/]*)
9724 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9728 for as_dir in `dirname $aros_gcc_ld`
9730 IFS=$as_save_IFS
9731 test -z "$as_dir" && as_dir=.
9732 for ac_exec_ext in '' $ac_executable_extensions; do
9733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9734 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9736 break 2
9738 done
9739 done
9740 IFS=$as_save_IFS
9743 esac
9745 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9746 if test -n "$aros_kernel_ld"; then
9747 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9748 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9749 else
9750 { echo "$as_me:$LINENO: result: no" >&5
9751 echo "${ECHO_T}no" >&6; }
9756 if test "$aros_kernel_ld" = ""; then
9757 # Extract the first word of "ld", so it can be a program name with args.
9758 set dummy ld; ac_word=$2
9759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9761 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9762 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 else
9764 case $aros_kernel_ld in
9765 [\\/]* | ?:[\\/]*)
9766 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770 for as_dir in $PATH
9772 IFS=$as_save_IFS
9773 test -z "$as_dir" && as_dir=.
9774 for ac_exec_ext in '' $ac_executable_extensions; do
9775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9776 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9778 break 2
9780 done
9781 done
9782 IFS=$as_save_IFS
9785 esac
9787 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9788 if test -n "$aros_kernel_ld"; then
9789 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9790 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9791 else
9792 { echo "$as_me:$LINENO: result: no" >&5
9793 echo "${ECHO_T}no" >&6; }
9799 else
9800 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9801 set dummy $aros_kernel_ld; ac_word=$2
9802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9804 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9806 else
9807 case $aros_kernel_ld in
9808 [\\/]* | ?:[\\/]*)
9809 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9813 for as_dir in $PATH
9815 IFS=$as_save_IFS
9816 test -z "$as_dir" && as_dir=.
9817 for ac_exec_ext in '' $ac_executable_extensions; do
9818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9819 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9821 break 2
9823 done
9824 done
9825 IFS=$as_save_IFS
9828 esac
9830 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9831 if test -n "$aros_kernel_ld"; then
9832 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9833 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9834 else
9835 { echo "$as_me:$LINENO: result: no" >&5
9836 echo "${ECHO_T}no" >&6; }
9842 if test "$aros_kernel_ld" = ""; then
9843 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9844 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9845 { (exit 1); exit 1; }; }
9848 if test "$aros_target_ar" = ""; then
9849 if test "$cross_compiling" = "yes" ; then
9850 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9851 set dummy ${target_tool_prefix}ar; ac_word=$2
9852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9854 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9855 echo $ECHO_N "(cached) $ECHO_C" >&6
9856 else
9857 case $aros_target_ar_ln in
9858 [\\/]* | ?:[\\/]*)
9859 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9863 for as_dir in $PATH
9865 IFS=$as_save_IFS
9866 test -z "$as_dir" && as_dir=.
9867 for ac_exec_ext in '' $ac_executable_extensions; do
9868 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9869 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9871 break 2
9873 done
9874 done
9875 IFS=$as_save_IFS
9878 esac
9880 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9881 if test -n "$aros_target_ar_ln"; then
9882 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9883 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9884 else
9885 { echo "$as_me:$LINENO: result: no" >&5
9886 echo "${ECHO_T}no" >&6; }
9890 else
9891 if test "$GCC" = "yes"; then
9892 aros_gcc_ar=`$CC -print-prog-name=ar`
9893 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9894 set dummy `basename $aros_gcc_ar`; ac_word=$2
9895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9897 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9899 else
9900 case $aros_target_ar_ln in
9901 [\\/]* | ?:[\\/]*)
9902 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9906 for as_dir in `dirname $aros_gcc_ar`
9908 IFS=$as_save_IFS
9909 test -z "$as_dir" && as_dir=.
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9912 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9914 break 2
9916 done
9917 done
9918 IFS=$as_save_IFS
9921 esac
9923 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9924 if test -n "$aros_target_ar_ln"; then
9925 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9926 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9927 else
9928 { echo "$as_me:$LINENO: result: no" >&5
9929 echo "${ECHO_T}no" >&6; }
9934 if test "$aros_target_ar_ln" = ""; then
9935 # Extract the first word of "ar", so it can be a program name with args.
9936 set dummy ar; ac_word=$2
9937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9939 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9940 echo $ECHO_N "(cached) $ECHO_C" >&6
9941 else
9942 case $aros_target_ar_ln in
9943 [\\/]* | ?:[\\/]*)
9944 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9948 for as_dir in $PATH
9950 IFS=$as_save_IFS
9951 test -z "$as_dir" && as_dir=.
9952 for ac_exec_ext in '' $ac_executable_extensions; do
9953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9954 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9956 break 2
9958 done
9959 done
9960 IFS=$as_save_IFS
9963 esac
9965 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9966 if test -n "$aros_target_ar_ln"; then
9967 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9968 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9969 else
9970 { echo "$as_me:$LINENO: result: no" >&5
9971 echo "${ECHO_T}no" >&6; }
9977 else
9978 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9979 set dummy $aros_target_ar; ac_word=$2
9980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9982 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9983 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 else
9985 case $aros_target_ar_ln in
9986 [\\/]* | ?:[\\/]*)
9987 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9991 for as_dir in $PATH
9993 IFS=$as_save_IFS
9994 test -z "$as_dir" && as_dir=.
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9997 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9999 break 2
10001 done
10002 done
10003 IFS=$as_save_IFS
10006 esac
10008 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10009 if test -n "$aros_target_ar_ln"; then
10010 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10011 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
10012 else
10013 { echo "$as_me:$LINENO: result: no" >&5
10014 echo "${ECHO_T}no" >&6; }
10020 if test "$aros_target_ar_ln" = ""; then
10021 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
10022 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
10023 { (exit 1); exit 1; }; }
10026 if test "$aros_target_nm" = ""; then
10027 if test "$cross_compiling" = "yes" ; then
10028 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
10029 set dummy ${target_tool_prefix}nm; ac_word=$2
10030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10032 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10033 echo $ECHO_N "(cached) $ECHO_C" >&6
10034 else
10035 case $aros_target_nm_ln in
10036 [\\/]* | ?:[\\/]*)
10037 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10041 for as_dir in $PATH
10043 IFS=$as_save_IFS
10044 test -z "$as_dir" && as_dir=.
10045 for ac_exec_ext in '' $ac_executable_extensions; do
10046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10047 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10048 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10049 break 2
10051 done
10052 done
10053 IFS=$as_save_IFS
10056 esac
10058 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10059 if test -n "$aros_target_nm_ln"; then
10060 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10061 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10062 else
10063 { echo "$as_me:$LINENO: result: no" >&5
10064 echo "${ECHO_T}no" >&6; }
10068 else
10069 if test "$GCC" = "yes"; then
10070 aros_gcc_nm=`$CC -print-prog-name=nm`
10071 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10072 set dummy `basename $aros_gcc_nm`; ac_word=$2
10073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10075 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078 case $aros_target_nm_ln in
10079 [\\/]* | ?:[\\/]*)
10080 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084 for as_dir in `dirname $aros_gcc_nm`
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
10088 for ac_exec_ext in '' $ac_executable_extensions; do
10089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10090 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10091 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10092 break 2
10094 done
10095 done
10096 IFS=$as_save_IFS
10099 esac
10101 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10102 if test -n "$aros_target_nm_ln"; then
10103 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10104 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10105 else
10106 { echo "$as_me:$LINENO: result: no" >&5
10107 echo "${ECHO_T}no" >&6; }
10112 if test "$aros_target_nm_ln" = ""; then
10113 # Extract the first word of "nm", so it can be a program name with args.
10114 set dummy nm; ac_word=$2
10115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10117 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10118 echo $ECHO_N "(cached) $ECHO_C" >&6
10119 else
10120 case $aros_target_nm_ln in
10121 [\\/]* | ?:[\\/]*)
10122 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10126 for as_dir in $PATH
10128 IFS=$as_save_IFS
10129 test -z "$as_dir" && as_dir=.
10130 for ac_exec_ext in '' $ac_executable_extensions; do
10131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10132 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10134 break 2
10136 done
10137 done
10138 IFS=$as_save_IFS
10141 esac
10143 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10144 if test -n "$aros_target_nm_ln"; then
10145 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10146 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10147 else
10148 { echo "$as_me:$LINENO: result: no" >&5
10149 echo "${ECHO_T}no" >&6; }
10155 else
10156 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10157 set dummy $aros_target_nm; ac_word=$2
10158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10160 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 else
10163 case $aros_target_nm_ln in
10164 [\\/]* | ?:[\\/]*)
10165 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10169 for as_dir in $PATH
10171 IFS=$as_save_IFS
10172 test -z "$as_dir" && as_dir=.
10173 for ac_exec_ext in '' $ac_executable_extensions; do
10174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10175 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10177 break 2
10179 done
10180 done
10181 IFS=$as_save_IFS
10184 esac
10186 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10187 if test -n "$aros_target_nm_ln"; then
10188 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10189 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10190 else
10191 { echo "$as_me:$LINENO: result: no" >&5
10192 echo "${ECHO_T}no" >&6; }
10198 if test "$aros_target_nm_ln" = ""; then
10199 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10200 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10201 { (exit 1); exit 1; }; }
10204 if test "$aros_target_objcopy" = ""; then
10205 if test "$cross_compiling" = "yes" ; then
10206 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10207 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10210 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10211 echo $ECHO_N "(cached) $ECHO_C" >&6
10212 else
10213 case $aros_target_objcopy_ln in
10214 [\\/]* | ?:[\\/]*)
10215 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219 for as_dir in $PATH
10221 IFS=$as_save_IFS
10222 test -z "$as_dir" && as_dir=.
10223 for ac_exec_ext in '' $ac_executable_extensions; do
10224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10225 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10227 break 2
10229 done
10230 done
10231 IFS=$as_save_IFS
10234 esac
10236 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10237 if test -n "$aros_target_objcopy_ln"; then
10238 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10239 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10240 else
10241 { echo "$as_me:$LINENO: result: no" >&5
10242 echo "${ECHO_T}no" >&6; }
10246 else
10247 if test "$GCC" = "yes"; then
10248 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10249 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10250 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10253 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10254 echo $ECHO_N "(cached) $ECHO_C" >&6
10255 else
10256 case $aros_target_objcopy_ln in
10257 [\\/]* | ?:[\\/]*)
10258 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10262 for as_dir in `dirname $aros_gcc_objcopy`
10264 IFS=$as_save_IFS
10265 test -z "$as_dir" && as_dir=.
10266 for ac_exec_ext in '' $ac_executable_extensions; do
10267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10268 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10270 break 2
10272 done
10273 done
10274 IFS=$as_save_IFS
10277 esac
10279 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10280 if test -n "$aros_target_objcopy_ln"; then
10281 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10282 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10283 else
10284 { echo "$as_me:$LINENO: result: no" >&5
10285 echo "${ECHO_T}no" >&6; }
10290 if test "$aros_target_objcopy_ln" = ""; then
10291 # Extract the first word of "objcopy", so it can be a program name with args.
10292 set dummy objcopy; ac_word=$2
10293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10295 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10296 echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298 case $aros_target_objcopy_ln in
10299 [\\/]* | ?:[\\/]*)
10300 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10304 for as_dir in $PATH
10306 IFS=$as_save_IFS
10307 test -z "$as_dir" && as_dir=.
10308 for ac_exec_ext in '' $ac_executable_extensions; do
10309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10310 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10312 break 2
10314 done
10315 done
10316 IFS=$as_save_IFS
10319 esac
10321 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10322 if test -n "$aros_target_objcopy_ln"; then
10323 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10324 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10325 else
10326 { echo "$as_me:$LINENO: result: no" >&5
10327 echo "${ECHO_T}no" >&6; }
10333 else
10334 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10335 set dummy $aros_target_objcopy; ac_word=$2
10336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10338 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10340 else
10341 case $aros_target_objcopy_ln in
10342 [\\/]* | ?:[\\/]*)
10343 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10347 for as_dir in $PATH
10349 IFS=$as_save_IFS
10350 test -z "$as_dir" && as_dir=.
10351 for ac_exec_ext in '' $ac_executable_extensions; do
10352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10353 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10354 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10355 break 2
10357 done
10358 done
10359 IFS=$as_save_IFS
10362 esac
10364 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10365 if test -n "$aros_target_objcopy_ln"; then
10366 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10367 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10368 else
10369 { echo "$as_me:$LINENO: result: no" >&5
10370 echo "${ECHO_T}no" >&6; }
10376 if test "$aros_target_objcopy_ln" = ""; then
10377 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10378 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10379 { (exit 1); exit 1; }; }
10382 if test "$aros_target_objdump" = ""; then
10383 if test "$cross_compiling" = "yes" ; then
10384 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10385 set dummy ${target_tool_prefix}objdump; ac_word=$2
10386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10388 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10389 echo $ECHO_N "(cached) $ECHO_C" >&6
10390 else
10391 case $aros_target_objdump_ln in
10392 [\\/]* | ?:[\\/]*)
10393 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10399 IFS=$as_save_IFS
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10403 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10404 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10405 break 2
10407 done
10408 done
10409 IFS=$as_save_IFS
10412 esac
10414 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10415 if test -n "$aros_target_objdump_ln"; then
10416 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10417 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10418 else
10419 { echo "$as_me:$LINENO: result: no" >&5
10420 echo "${ECHO_T}no" >&6; }
10424 else
10425 if test "$GCC" = "yes"; then
10426 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10427 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10428 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10431 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434 case $aros_target_objdump_ln in
10435 [\\/]* | ?:[\\/]*)
10436 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440 for as_dir in `dirname $aros_gcc_objdump`
10442 IFS=$as_save_IFS
10443 test -z "$as_dir" && as_dir=.
10444 for ac_exec_ext in '' $ac_executable_extensions; do
10445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10446 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10448 break 2
10450 done
10451 done
10452 IFS=$as_save_IFS
10455 esac
10457 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10458 if test -n "$aros_target_objdump_ln"; then
10459 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10460 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10461 else
10462 { echo "$as_me:$LINENO: result: no" >&5
10463 echo "${ECHO_T}no" >&6; }
10468 if test "$aros_target_objdump_ln" = ""; then
10469 # Extract the first word of "objdump", so it can be a program name with args.
10470 set dummy objdump; ac_word=$2
10471 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10472 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10473 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10474 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 else
10476 case $aros_target_objdump_ln in
10477 [\\/]* | ?:[\\/]*)
10478 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10484 IFS=$as_save_IFS
10485 test -z "$as_dir" && as_dir=.
10486 for ac_exec_ext in '' $ac_executable_extensions; do
10487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10488 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10490 break 2
10492 done
10493 done
10494 IFS=$as_save_IFS
10497 esac
10499 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10500 if test -n "$aros_target_objdump_ln"; then
10501 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10502 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10503 else
10504 { echo "$as_me:$LINENO: result: no" >&5
10505 echo "${ECHO_T}no" >&6; }
10511 else
10512 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10513 set dummy $aros_target_objdump; ac_word=$2
10514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10516 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10517 echo $ECHO_N "(cached) $ECHO_C" >&6
10518 else
10519 case $aros_target_objdump_ln in
10520 [\\/]* | ?:[\\/]*)
10521 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10525 for as_dir in $PATH
10527 IFS=$as_save_IFS
10528 test -z "$as_dir" && as_dir=.
10529 for ac_exec_ext in '' $ac_executable_extensions; do
10530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10531 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10533 break 2
10535 done
10536 done
10537 IFS=$as_save_IFS
10540 esac
10542 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10543 if test -n "$aros_target_objdump_ln"; then
10544 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10545 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10546 else
10547 { echo "$as_me:$LINENO: result: no" >&5
10548 echo "${ECHO_T}no" >&6; }
10554 if test "$aros_target_objdump_ln" = ""; then
10555 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10556 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10557 { (exit 1); exit 1; }; }
10560 if test "$aros_target_ranlib" = ""; then
10561 if test "$cross_compiling" = "yes" ; then
10562 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10563 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10566 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10567 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 else
10569 case $aros_target_ranlib_ln in
10570 [\\/]* | ?:[\\/]*)
10571 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10577 IFS=$as_save_IFS
10578 test -z "$as_dir" && as_dir=.
10579 for ac_exec_ext in '' $ac_executable_extensions; do
10580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10581 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10583 break 2
10585 done
10586 done
10587 IFS=$as_save_IFS
10590 esac
10592 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10593 if test -n "$aros_target_ranlib_ln"; then
10594 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10595 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10596 else
10597 { echo "$as_me:$LINENO: result: no" >&5
10598 echo "${ECHO_T}no" >&6; }
10602 else
10603 if test "$GCC" = "yes"; then
10604 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10605 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10606 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10609 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611 else
10612 case $aros_target_ranlib_ln in
10613 [\\/]* | ?:[\\/]*)
10614 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10618 for as_dir in `dirname $aros_gcc_ranlib`
10620 IFS=$as_save_IFS
10621 test -z "$as_dir" && as_dir=.
10622 for ac_exec_ext in '' $ac_executable_extensions; do
10623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10624 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 break 2
10628 done
10629 done
10630 IFS=$as_save_IFS
10633 esac
10635 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10636 if test -n "$aros_target_ranlib_ln"; then
10637 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10638 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10639 else
10640 { echo "$as_me:$LINENO: result: no" >&5
10641 echo "${ECHO_T}no" >&6; }
10646 if test "$aros_target_ranlib_ln" = ""; then
10647 # Extract the first word of "ranlib", so it can be a program name with args.
10648 set dummy ranlib; ac_word=$2
10649 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10651 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10652 echo $ECHO_N "(cached) $ECHO_C" >&6
10653 else
10654 case $aros_target_ranlib_ln in
10655 [\\/]* | ?:[\\/]*)
10656 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660 for as_dir in $PATH
10662 IFS=$as_save_IFS
10663 test -z "$as_dir" && as_dir=.
10664 for ac_exec_ext in '' $ac_executable_extensions; do
10665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10666 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10668 break 2
10670 done
10671 done
10672 IFS=$as_save_IFS
10675 esac
10677 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10678 if test -n "$aros_target_ranlib_ln"; then
10679 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10680 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10681 else
10682 { echo "$as_me:$LINENO: result: no" >&5
10683 echo "${ECHO_T}no" >&6; }
10689 else
10690 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10691 set dummy $aros_target_ranlib; ac_word=$2
10692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10694 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10695 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 else
10697 case $aros_target_ranlib_ln in
10698 [\\/]* | ?:[\\/]*)
10699 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10703 for as_dir in $PATH
10705 IFS=$as_save_IFS
10706 test -z "$as_dir" && as_dir=.
10707 for ac_exec_ext in '' $ac_executable_extensions; do
10708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10709 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10711 break 2
10713 done
10714 done
10715 IFS=$as_save_IFS
10718 esac
10720 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10721 if test -n "$aros_target_ranlib_ln"; then
10722 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10723 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10724 else
10725 { echo "$as_me:$LINENO: result: no" >&5
10726 echo "${ECHO_T}no" >&6; }
10732 if test "$aros_target_ranlib_ln" = ""; then
10733 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10734 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10735 { (exit 1); exit 1; }; }
10738 if test "$aros_target_strip" = ""; then
10739 if test "$cross_compiling" = "yes" ; then
10740 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10741 set dummy ${target_tool_prefix}strip; ac_word=$2
10742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10744 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10745 echo $ECHO_N "(cached) $ECHO_C" >&6
10746 else
10747 case $aros_target_strip_ln in
10748 [\\/]* | ?:[\\/]*)
10749 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10753 for as_dir in $PATH
10755 IFS=$as_save_IFS
10756 test -z "$as_dir" && as_dir=.
10757 for ac_exec_ext in '' $ac_executable_extensions; do
10758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10759 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10761 break 2
10763 done
10764 done
10765 IFS=$as_save_IFS
10768 esac
10770 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10771 if test -n "$aros_target_strip_ln"; then
10772 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10773 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10774 else
10775 { echo "$as_me:$LINENO: result: no" >&5
10776 echo "${ECHO_T}no" >&6; }
10780 else
10781 if test "$GCC" = "yes"; then
10782 aros_gcc_strip=`$CC -print-prog-name=strip`
10783 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10784 set dummy `basename $aros_gcc_strip`; ac_word=$2
10785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10787 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10788 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 else
10790 case $aros_target_strip_ln in
10791 [\\/]* | ?:[\\/]*)
10792 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in `dirname $aros_gcc_strip`
10798 IFS=$as_save_IFS
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10802 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10804 break 2
10806 done
10807 done
10808 IFS=$as_save_IFS
10811 esac
10813 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10814 if test -n "$aros_target_strip_ln"; then
10815 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10816 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10817 else
10818 { echo "$as_me:$LINENO: result: no" >&5
10819 echo "${ECHO_T}no" >&6; }
10824 if test "$aros_target_strip_ln" = ""; then
10825 # Extract the first word of "strip", so it can be a program name with args.
10826 set dummy strip; ac_word=$2
10827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10829 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10830 echo $ECHO_N "(cached) $ECHO_C" >&6
10831 else
10832 case $aros_target_strip_ln in
10833 [\\/]* | ?:[\\/]*)
10834 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10838 for as_dir in $PATH
10840 IFS=$as_save_IFS
10841 test -z "$as_dir" && as_dir=.
10842 for ac_exec_ext in '' $ac_executable_extensions; do
10843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10844 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10845 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 break 2
10848 done
10849 done
10850 IFS=$as_save_IFS
10853 esac
10855 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10856 if test -n "$aros_target_strip_ln"; then
10857 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10858 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10859 else
10860 { echo "$as_me:$LINENO: result: no" >&5
10861 echo "${ECHO_T}no" >&6; }
10867 else
10868 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10869 set dummy $aros_target_strip; ac_word=$2
10870 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10871 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10872 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10873 echo $ECHO_N "(cached) $ECHO_C" >&6
10874 else
10875 case $aros_target_strip_ln in
10876 [\\/]* | ?:[\\/]*)
10877 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 for as_dir in $PATH
10883 IFS=$as_save_IFS
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10887 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 break 2
10891 done
10892 done
10893 IFS=$as_save_IFS
10896 esac
10898 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10899 if test -n "$aros_target_strip_ln"; then
10900 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10901 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10902 else
10903 { echo "$as_me:$LINENO: result: no" >&5
10904 echo "${ECHO_T}no" >&6; }
10910 if test "$aros_target_strip_ln" = ""; then
10911 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10912 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10913 { (exit 1); exit 1; }; }
10917 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10918 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10919 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10920 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10921 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10922 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10923 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10925 # aros_cc_pre is a variable that is added to the front of the compiler name
10926 # in the generated aros-gcc shell script. We need this to enable the cache
10927 # to work across cleaned builds. Also, support DISTCC using the correct
10928 # environment variable.
10931 if test "x${DISTCC}" != "x" ; then
10932 if test "x${CCACHE}" != "x" ; then
10933 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10934 else
10935 aros_cc_pre="${DISTCC} "
10937 else
10938 if test "x${CCACHE}" != "x" ; then
10939 aros_cc_pre="${CCACHE} "
10943 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10945 aros_target_nostdinc_cflags=-nostdinc
10947 aros_target_nostartup_ldflags=-nostartfiles
10949 aros_target_nix_ldflags=-nix
10951 aros_target_detach_ldflags=-detach
10953 aros_target_nostdlib_ldflags=-nostdlib
10956 # Target tools
10957 if test "$aros_target_cc" = ""; then
10958 orig_target_cc=$aros_kernel_cc
10959 else
10960 orig_target_cc=$aros_target_cc
10962 if test "$aros_target_ld" = ""; then
10963 orig_target_ld=$aros_kernel_ld
10964 else
10965 orig_target_ld=$aros_target_ld
10967 if test "$GCC" = "yes"; then
10968 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10970 aros_target_cc="${prefix}-gcc"
10971 aros_target_as="${prefix}-as"
10972 aros_target_ld="${prefix}-ld"
10973 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10974 aros_target_objcopy=${prefix}-objcopy
10975 aros_target_objdump=${prefix}-objdump
10976 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10977 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10978 aros_kernel_nm="${prefix}-nm"
10979 aros_target_strip=${prefix}-strip
10981 # Find the system include path. We can suggest that an alternative is
10982 # used if we don't get it correct. The default is to use /usr/include.
10983 # Which is set in the aros_target_incl_def variable.
10985 # Check whether --enable-includes was given.
10986 if test "${enable_includes+set}" = set; then
10987 enableval=$enable_includes; aros_target_incl=$enable_includes
10988 else
10989 aros_target_incl=$aros_target_incl_def
10993 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10994 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
10995 if test "$aros_target_cc_includes" = "" ; then
10996 #try to guess where the directory is
10997 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
10998 if ! test -d $aros_target_cc_includes; then
10999 #the directory doesn't exist, we need to do some more work
11000 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
11002 #these are the headers we're looling for
11003 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11004 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11005 zutil.h"
11007 dirs=
11008 for h in $headers; do
11009 #which other headers each of the above headers needs?
11010 deps=$(echo "#include <$h>" | \
11011 $aros_host_cc -E -M - 2>/dev/null | \
11012 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11014 #copy all the needed headers to a directory beneath gendir
11015 for d in $deps; do
11016 h=$(basename $d)
11017 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11018 sed -n "s,^.*/include\(/.*\),\1,p")
11019 ! test -d $dir && mkdir -p $dir
11020 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11021 done
11022 done
11025 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
11026 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
11029 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11030 # On GCC >= 4.0 -iquote should be used
11033 save_cc="$CC"
11034 save_cflags="$CFLAGS"
11035 CC="$aros_kernel_cc"
11036 CFLAGS="-iquote."
11037 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11038 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11039 cat >conftest.$ac_ext <<_ACEOF
11040 /* confdefs.h. */
11041 _ACEOF
11042 cat confdefs.h >>conftest.$ac_ext
11043 cat >>conftest.$ac_ext <<_ACEOF
11044 /* end confdefs.h. */
11047 main ()
11051 return 0;
11053 _ACEOF
11054 rm -f conftest.$ac_objext
11055 if { (ac_try="$ac_compile"
11056 case "(($ac_try" in
11057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11058 *) ac_try_echo=$ac_try;;
11059 esac
11060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11061 (eval "$ac_compile") 2>conftest.er1
11062 ac_status=$?
11063 grep -v '^ *+' conftest.er1 >conftest.err
11064 rm -f conftest.er1
11065 cat conftest.err >&5
11066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11067 (exit $ac_status); } && {
11068 test -z "$ac_c_werror_flag" ||
11069 test ! -s conftest.err
11070 } && test -s conftest.$ac_objext; then
11071 has_iquote="yes"
11072 else
11073 echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11076 has_iquote="no"
11079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11080 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11081 echo "${ECHO_T}$has_iquote" >&6; }
11082 if test "x-$has_iquote" = "x-yes" ; then
11083 aros_cflags_iquote=-iquote
11084 aros_cflags_iquote_end=
11085 else
11086 aros_cflags_iquote=-I
11087 aros_cflags_iquote_end=-I-
11089 CC="$save_cc"
11090 CFLAGS="$save_cflags"
11096 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11097 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
11099 # Check whether --with-resolution was given.
11100 if test "${with_resolution+set}" = set; then
11101 withval=$with_resolution; resolution=$withval
11102 else
11103 resolution=none
11106 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11107 if test "$resolution" = "yes" ; then
11108 resolution="none"
11110 if test "$resolution" = "no" ; then
11111 resolution="none"
11113 if test "$resolution" != "none" ; then
11114 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11115 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11116 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11118 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11119 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11120 aros_cv_default_wbwidth=$aros_default_wbwidth
11121 aros_cv_default_wbheight=$aros_default_wbheight
11122 aros_cv_default_wbdepth=$aros_default_wbdepth
11124 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
11125 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
11126 # Check whether --enable-bochs_hack was given.
11127 if test "${enable_bochs_hack+set}" = set; then
11128 enableval=$enable_bochs_hack; bochs_hack="yes"
11129 else
11130 bochs_hack="no"
11133 if test "$bochs_hack" = "yes" ; then
11134 aros_bochs_hack="1"
11136 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
11137 echo "${ECHO_T}$bochs_hack" >&6; }
11139 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11140 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11142 # Check whether --with-serial-debug was given.
11143 if test "${with_serial_debug+set}" = set; then
11144 withval=$with_serial_debug; serial_debug=$withval
11145 else
11146 serial_debug=none
11149 if test "$aros_serial_debug" = 0 ; then
11150 serial_debug_forced=""
11151 if test "$serial_debug" = "yes" ; then
11152 serial_debug="2"
11154 if test "$serial_debug" = "no" ; then
11155 serial_debug="none"
11157 else
11158 serial_debug_forced="(forced)"
11159 serial_debug=$aros_serial_debug
11161 if test "$serial_debug" != "none" ; then
11162 aros_serial_debug=$serial_debug
11163 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11164 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11165 else
11166 { echo "$as_me:$LINENO: result: no" >&5
11167 echo "${ECHO_T}no" >&6; }
11170 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11171 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11172 # Check whether --enable-palm_debug_hack was given.
11173 if test "${enable_palm_debug_hack+set}" = set; then
11174 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11175 else
11176 palm_debug_hack="no"
11179 if test "$palm_debug_hack" = "yes" ; then
11180 aros_palm_debug_hack="1"
11182 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11183 echo "${ECHO_T}$palm_debug_hack" >&6; }
11186 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11187 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11188 # Check whether --enable-nesting_supervisor was given.
11189 if test "${enable_nesting_supervisor+set}" = set; then
11190 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11191 else
11192 nesting_supervisor="no"
11195 if test "$nesting_supervisor" = "yes" ; then
11196 aros_nesting_supervisor="1"
11198 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11199 echo "${ECHO_T}$nesting_supervisor" >&6; }
11202 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11204 if test "x-$aros_host_arch" != "x-darwin" ; then
11205 { echo "$as_me:$LINENO: checking for dlopen" >&5
11206 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11207 if test "${ac_cv_func_dlopen+set}" = set; then
11208 echo $ECHO_N "(cached) $ECHO_C" >&6
11209 else
11210 cat >conftest.$ac_ext <<_ACEOF
11211 /* confdefs.h. */
11212 _ACEOF
11213 cat confdefs.h >>conftest.$ac_ext
11214 cat >>conftest.$ac_ext <<_ACEOF
11215 /* end confdefs.h. */
11216 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11217 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11218 #define dlopen innocuous_dlopen
11220 /* System header to define __stub macros and hopefully few prototypes,
11221 which can conflict with char dlopen (); below.
11222 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11223 <limits.h> exists even on freestanding compilers. */
11225 #ifdef __STDC__
11226 # include <limits.h>
11227 #else
11228 # include <assert.h>
11229 #endif
11231 #undef dlopen
11233 /* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
11236 #ifdef __cplusplus
11237 extern "C"
11238 #endif
11239 char dlopen ();
11240 /* The GNU C library defines this for functions which it implements
11241 to always fail with ENOSYS. Some functions are actually named
11242 something starting with __ and the normal name is an alias. */
11243 #if defined __stub_dlopen || defined __stub___dlopen
11244 choke me
11245 #endif
11248 main ()
11250 return dlopen ();
11252 return 0;
11254 _ACEOF
11255 rm -f conftest.$ac_objext conftest$ac_exeext
11256 if { (ac_try="$ac_link"
11257 case "(($ac_try" in
11258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11259 *) ac_try_echo=$ac_try;;
11260 esac
11261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11262 (eval "$ac_link") 2>conftest.er1
11263 ac_status=$?
11264 grep -v '^ *+' conftest.er1 >conftest.err
11265 rm -f conftest.er1
11266 cat conftest.err >&5
11267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11268 (exit $ac_status); } && {
11269 test -z "$ac_c_werror_flag" ||
11270 test ! -s conftest.err
11271 } && test -s conftest$ac_exeext &&
11272 $as_test_x conftest$ac_exeext; then
11273 ac_cv_func_dlopen=yes
11274 else
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11278 ac_cv_func_dlopen=no
11281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11282 conftest$ac_exeext conftest.$ac_ext
11284 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11285 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11286 if test $ac_cv_func_dlopen = yes; then
11287 have_dl="yes"
11288 else
11289 have_dl="no"
11292 if test "x-$have_dl" = "x-no" ; then
11293 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11294 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11295 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11296 echo $ECHO_N "(cached) $ECHO_C" >&6
11297 else
11298 ac_check_lib_save_LIBS=$LIBS
11299 LIBS="-ldl $LIBS"
11300 cat >conftest.$ac_ext <<_ACEOF
11301 /* confdefs.h. */
11302 _ACEOF
11303 cat confdefs.h >>conftest.$ac_ext
11304 cat >>conftest.$ac_ext <<_ACEOF
11305 /* end confdefs.h. */
11307 /* Override any GCC internal prototype to avoid an error.
11308 Use char because int might match the return type of a GCC
11309 builtin and then its argument prototype would still apply. */
11310 #ifdef __cplusplus
11311 extern "C"
11312 #endif
11313 char dlopen ();
11315 main ()
11317 return dlopen ();
11319 return 0;
11321 _ACEOF
11322 rm -f conftest.$ac_objext conftest$ac_exeext
11323 if { (ac_try="$ac_link"
11324 case "(($ac_try" in
11325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11326 *) ac_try_echo=$ac_try;;
11327 esac
11328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11329 (eval "$ac_link") 2>conftest.er1
11330 ac_status=$?
11331 grep -v '^ *+' conftest.er1 >conftest.err
11332 rm -f conftest.er1
11333 cat conftest.err >&5
11334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11335 (exit $ac_status); } && {
11336 test -z "$ac_c_werror_flag" ||
11337 test ! -s conftest.err
11338 } && test -s conftest$ac_exeext &&
11339 $as_test_x conftest$ac_exeext; then
11340 ac_cv_lib_dl_dlopen=yes
11341 else
11342 echo "$as_me: failed program was:" >&5
11343 sed 's/^/| /' conftest.$ac_ext >&5
11345 ac_cv_lib_dl_dlopen=no
11348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11349 conftest$ac_exeext conftest.$ac_ext
11350 LIBS=$ac_check_lib_save_LIBS
11352 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11353 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11354 if test $ac_cv_lib_dl_dlopen = yes; then
11355 have_dl="yes"
11356 aros_host_ldflags="$aros_host_ldflags -ldl"
11357 else
11358 have_dl="no"
11362 if test "x-$have_dl" = "x-no" ; then
11363 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11364 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11365 { (exit 1); exit 1; }; }
11370 # Check whether --enable-x11_hidd was given.
11371 if test "${enable_x11_hidd+set}" = set; then
11372 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11373 else
11374 x11_hidd="auto"
11377 case "x-$x11_hidd" in
11378 x-yes|x-no|x-auto) ;;
11379 *) x11_hidd="auto" ;;
11380 esac
11382 if test "x-$x11_hidd" != "x-no" ; then
11384 { echo "$as_me:$LINENO: checking for X" >&5
11385 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11388 # Check whether --with-x was given.
11389 if test "${with_x+set}" = set; then
11390 withval=$with_x;
11393 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11394 if test "x$with_x" = xno; then
11395 # The user explicitly disabled X.
11396 have_x=disabled
11397 else
11398 case $x_includes,$x_libraries in #(
11399 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11400 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11401 { (exit 1); exit 1; }; };; #(
11402 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11403 echo $ECHO_N "(cached) $ECHO_C" >&6
11404 else
11405 # One or both of the vars are not set, and there is no cached value.
11406 ac_x_includes=no ac_x_libraries=no
11407 rm -f -r conftest.dir
11408 if mkdir conftest.dir; then
11409 cd conftest.dir
11410 cat >Imakefile <<'_ACEOF'
11411 incroot:
11412 @echo incroot='${INCROOT}'
11413 usrlibdir:
11414 @echo usrlibdir='${USRLIBDIR}'
11415 libdir:
11416 @echo libdir='${LIBDIR}'
11417 _ACEOF
11418 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11419 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11420 for ac_var in incroot usrlibdir libdir; do
11421 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11422 done
11423 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11424 for ac_extension in a so sl; do
11425 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11426 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11427 ac_im_usrlibdir=$ac_im_libdir; break
11429 done
11430 # Screen out bogus values from the imake configuration. They are
11431 # bogus both because they are the default anyway, and because
11432 # using them would break gcc on systems where it needs fixed includes.
11433 case $ac_im_incroot in
11434 /usr/include) ac_x_includes= ;;
11435 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11436 esac
11437 case $ac_im_usrlibdir in
11438 /usr/lib | /lib) ;;
11439 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11440 esac
11442 cd ..
11443 rm -f -r conftest.dir
11446 # Standard set of common directories for X headers.
11447 # Check X11 before X11Rn because it is often a symlink to the current release.
11448 ac_x_header_dirs='
11449 /usr/X11/include
11450 /usr/X11R6/include
11451 /usr/X11R5/include
11452 /usr/X11R4/include
11454 /usr/include/X11
11455 /usr/include/X11R6
11456 /usr/include/X11R5
11457 /usr/include/X11R4
11459 /usr/local/X11/include
11460 /usr/local/X11R6/include
11461 /usr/local/X11R5/include
11462 /usr/local/X11R4/include
11464 /usr/local/include/X11
11465 /usr/local/include/X11R6
11466 /usr/local/include/X11R5
11467 /usr/local/include/X11R4
11469 /usr/X386/include
11470 /usr/x386/include
11471 /usr/XFree86/include/X11
11473 /usr/include
11474 /usr/local/include
11475 /usr/unsupported/include
11476 /usr/athena/include
11477 /usr/local/x11r5/include
11478 /usr/lpp/Xamples/include
11480 /usr/openwin/include
11481 /usr/openwin/share/include'
11483 if test "$ac_x_includes" = no; then
11484 # Guess where to find include files, by looking for Xlib.h.
11485 # First, try using that file with no special directory specified.
11486 cat >conftest.$ac_ext <<_ACEOF
11487 /* confdefs.h. */
11488 _ACEOF
11489 cat confdefs.h >>conftest.$ac_ext
11490 cat >>conftest.$ac_ext <<_ACEOF
11491 /* end confdefs.h. */
11492 #include <X11/Xlib.h>
11493 _ACEOF
11494 if { (ac_try="$ac_cpp conftest.$ac_ext"
11495 case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498 esac
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11501 ac_status=$?
11502 grep -v '^ *+' conftest.er1 >conftest.err
11503 rm -f conftest.er1
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } >/dev/null && {
11507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11508 test ! -s conftest.err
11509 }; then
11510 # We can compile using X headers with no special include directory.
11511 ac_x_includes=
11512 else
11513 echo "$as_me: failed program was:" >&5
11514 sed 's/^/| /' conftest.$ac_ext >&5
11516 for ac_dir in $ac_x_header_dirs; do
11517 if test -r "$ac_dir/X11/Xlib.h"; then
11518 ac_x_includes=$ac_dir
11519 break
11521 done
11524 rm -f conftest.err conftest.$ac_ext
11525 fi # $ac_x_includes = no
11527 if test "$ac_x_libraries" = no; then
11528 # Check for the libraries.
11529 # See if we find them without any special options.
11530 # Don't add to $LIBS permanently.
11531 ac_save_LIBS=$LIBS
11532 LIBS="-lX11 $LIBS"
11533 cat >conftest.$ac_ext <<_ACEOF
11534 /* confdefs.h. */
11535 _ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 #include <X11/Xlib.h>
11541 main ()
11543 XrmInitialize ()
11545 return 0;
11547 _ACEOF
11548 rm -f conftest.$ac_objext conftest$ac_exeext
11549 if { (ac_try="$ac_link"
11550 case "(($ac_try" in
11551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11552 *) ac_try_echo=$ac_try;;
11553 esac
11554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11555 (eval "$ac_link") 2>conftest.er1
11556 ac_status=$?
11557 grep -v '^ *+' conftest.er1 >conftest.err
11558 rm -f conftest.er1
11559 cat conftest.err >&5
11560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11561 (exit $ac_status); } && {
11562 test -z "$ac_c_werror_flag" ||
11563 test ! -s conftest.err
11564 } && test -s conftest$ac_exeext &&
11565 $as_test_x conftest$ac_exeext; then
11566 LIBS=$ac_save_LIBS
11567 # We can link X programs with no special library path.
11568 ac_x_libraries=
11569 else
11570 echo "$as_me: failed program was:" >&5
11571 sed 's/^/| /' conftest.$ac_ext >&5
11573 LIBS=$ac_save_LIBS
11574 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11576 # Don't even attempt the hair of trying to link an X program!
11577 for ac_extension in a so sl; do
11578 if test -r "$ac_dir/libX11.$ac_extension"; then
11579 ac_x_libraries=$ac_dir
11580 break 2
11582 done
11583 done
11586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11587 conftest$ac_exeext conftest.$ac_ext
11588 fi # $ac_x_libraries = no
11590 case $ac_x_includes,$ac_x_libraries in #(
11591 no,* | *,no | *\'*)
11592 # Didn't find X, or a directory has "'" in its name.
11593 ac_cv_have_x="have_x=no";; #(
11595 # Record where we found X for the cache.
11596 ac_cv_have_x="have_x=yes\
11597 ac_x_includes='$ac_x_includes'\
11598 ac_x_libraries='$ac_x_libraries'"
11599 esac
11601 ;; #(
11602 *) have_x=yes;;
11603 esac
11604 eval "$ac_cv_have_x"
11605 fi # $with_x != no
11607 if test "$have_x" != yes; then
11608 { echo "$as_me:$LINENO: result: $have_x" >&5
11609 echo "${ECHO_T}$have_x" >&6; }
11610 no_x=yes
11611 else
11612 # If each of the values was on the command line, it overrides each guess.
11613 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11614 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11615 # Update the cache value to reflect the command line values.
11616 ac_cv_have_x="have_x=yes\
11617 ac_x_includes='$x_includes'\
11618 ac_x_libraries='$x_libraries'"
11619 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11620 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11624 x_cflags=
11625 for path in $x_libraries
11627 x_cflags="$x_cflags -L$path"
11628 done
11630 for path in $x_includes
11632 x_cflags="$x_cflags -I$path"
11633 done
11635 if test "x-$no_x" = "x-yes" ; then
11637 if test "x-$x11_hidd" != "x-auto" ; then
11638 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11639 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11640 { (exit 1); exit 1; }; }
11642 ENABLE_X11=0
11644 else
11645 x11_hidd_target=kernel-x11gfx-kobj
11646 ENABLE_X11=1
11648 # Check whether --enable-x11_shm was given.
11649 if test "${enable_x11_shm+set}" = set; then
11650 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11651 else
11652 x11_hidd_shm="auto"
11655 case "x-$x11_hidd_shm" in
11656 x-yes|x-no|x-auto) ;;
11657 *) x11_hidd_shm="auto" ;;
11658 esac
11660 have_xshm=no
11662 if test "x-$x11_hidd_shm" != "x-no" ; then
11665 for ac_header in sys/ipc.h
11667 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11669 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11670 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11671 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11672 echo $ECHO_N "(cached) $ECHO_C" >&6
11674 ac_res=`eval echo '${'$as_ac_Header'}'`
11675 { echo "$as_me:$LINENO: result: $ac_res" >&5
11676 echo "${ECHO_T}$ac_res" >&6; }
11677 else
11678 # Is the header compilable?
11679 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11680 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11681 cat >conftest.$ac_ext <<_ACEOF
11682 /* confdefs.h. */
11683 _ACEOF
11684 cat confdefs.h >>conftest.$ac_ext
11685 cat >>conftest.$ac_ext <<_ACEOF
11686 /* end confdefs.h. */
11687 $ac_includes_default
11688 #include <$ac_header>
11689 _ACEOF
11690 rm -f conftest.$ac_objext
11691 if { (ac_try="$ac_compile"
11692 case "(($ac_try" in
11693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11694 *) ac_try_echo=$ac_try;;
11695 esac
11696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11697 (eval "$ac_compile") 2>conftest.er1
11698 ac_status=$?
11699 grep -v '^ *+' conftest.er1 >conftest.err
11700 rm -f conftest.er1
11701 cat conftest.err >&5
11702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11703 (exit $ac_status); } && {
11704 test -z "$ac_c_werror_flag" ||
11705 test ! -s conftest.err
11706 } && test -s conftest.$ac_objext; then
11707 ac_header_compiler=yes
11708 else
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 ac_header_compiler=no
11715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11716 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11717 echo "${ECHO_T}$ac_header_compiler" >&6; }
11719 # Is the header present?
11720 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11721 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11722 cat >conftest.$ac_ext <<_ACEOF
11723 /* confdefs.h. */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11728 #include <$ac_header>
11729 _ACEOF
11730 if { (ac_try="$ac_cpp conftest.$ac_ext"
11731 case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11734 esac
11735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11737 ac_status=$?
11738 grep -v '^ *+' conftest.er1 >conftest.err
11739 rm -f conftest.er1
11740 cat conftest.err >&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } >/dev/null && {
11743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11744 test ! -s conftest.err
11745 }; then
11746 ac_header_preproc=yes
11747 else
11748 echo "$as_me: failed program was:" >&5
11749 sed 's/^/| /' conftest.$ac_ext >&5
11751 ac_header_preproc=no
11754 rm -f conftest.err conftest.$ac_ext
11755 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11756 echo "${ECHO_T}$ac_header_preproc" >&6; }
11758 # So? What about this header?
11759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11760 yes:no: )
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11764 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11765 ac_header_preproc=yes
11767 no:yes:* )
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11769 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11771 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11773 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11775 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11777 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11779 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11782 esac
11783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11786 echo $ECHO_N "(cached) $ECHO_C" >&6
11787 else
11788 eval "$as_ac_Header=\$ac_header_preproc"
11790 ac_res=`eval echo '${'$as_ac_Header'}'`
11791 { echo "$as_me:$LINENO: result: $ac_res" >&5
11792 echo "${ECHO_T}$ac_res" >&6; }
11795 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11796 cat >>confdefs.h <<_ACEOF
11797 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11798 _ACEOF
11802 done
11805 for ac_header in sys/shm.h
11807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11814 ac_res=`eval echo '${'$as_ac_Header'}'`
11815 { echo "$as_me:$LINENO: result: $ac_res" >&5
11816 echo "${ECHO_T}$ac_res" >&6; }
11817 else
11818 # Is the header compilable?
11819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11821 cat >conftest.$ac_ext <<_ACEOF
11822 /* confdefs.h. */
11823 _ACEOF
11824 cat confdefs.h >>conftest.$ac_ext
11825 cat >>conftest.$ac_ext <<_ACEOF
11826 /* end confdefs.h. */
11827 $ac_includes_default
11828 #include <$ac_header>
11829 _ACEOF
11830 rm -f conftest.$ac_objext
11831 if { (ac_try="$ac_compile"
11832 case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11835 esac
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_compile") 2>conftest.er1
11838 ac_status=$?
11839 grep -v '^ *+' conftest.er1 >conftest.err
11840 rm -f conftest.er1
11841 cat conftest.err >&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } && {
11844 test -z "$ac_c_werror_flag" ||
11845 test ! -s conftest.err
11846 } && test -s conftest.$ac_objext; then
11847 ac_header_compiler=yes
11848 else
11849 echo "$as_me: failed program was:" >&5
11850 sed 's/^/| /' conftest.$ac_ext >&5
11852 ac_header_compiler=no
11855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11857 echo "${ECHO_T}$ac_header_compiler" >&6; }
11859 # Is the header present?
11860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11862 cat >conftest.$ac_ext <<_ACEOF
11863 /* confdefs.h. */
11864 _ACEOF
11865 cat confdefs.h >>conftest.$ac_ext
11866 cat >>conftest.$ac_ext <<_ACEOF
11867 /* end confdefs.h. */
11868 #include <$ac_header>
11869 _ACEOF
11870 if { (ac_try="$ac_cpp conftest.$ac_ext"
11871 case "(($ac_try" in
11872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11874 esac
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11877 ac_status=$?
11878 grep -v '^ *+' conftest.er1 >conftest.err
11879 rm -f conftest.er1
11880 cat conftest.err >&5
11881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882 (exit $ac_status); } >/dev/null && {
11883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11884 test ! -s conftest.err
11885 }; then
11886 ac_header_preproc=yes
11887 else
11888 echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11891 ac_header_preproc=no
11894 rm -f conftest.err conftest.$ac_ext
11895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11896 echo "${ECHO_T}$ac_header_preproc" >&6; }
11898 # So? What about this header?
11899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11900 yes:no: )
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11905 ac_header_preproc=yes
11907 no:yes:* )
11908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11922 esac
11923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11926 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 else
11928 eval "$as_ac_Header=\$ac_header_preproc"
11930 ac_res=`eval echo '${'$as_ac_Header'}'`
11931 { echo "$as_me:$LINENO: result: $ac_res" >&5
11932 echo "${ECHO_T}$ac_res" >&6; }
11935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11936 cat >>confdefs.h <<_ACEOF
11937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11938 _ACEOF
11942 done
11945 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11947 save_cflags="$CFLAGS"
11948 CFLAGS="$CFLAGS $x_cflags"
11949 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
11950 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
11951 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
11952 echo $ECHO_N "(cached) $ECHO_C" >&6
11953 else
11954 ac_check_lib_save_LIBS=$LIBS
11955 LIBS="-lXext $LIBS"
11956 cat >conftest.$ac_ext <<_ACEOF
11957 /* confdefs.h. */
11958 _ACEOF
11959 cat confdefs.h >>conftest.$ac_ext
11960 cat >>conftest.$ac_ext <<_ACEOF
11961 /* end confdefs.h. */
11963 /* Override any GCC internal prototype to avoid an error.
11964 Use char because int might match the return type of a GCC
11965 builtin and then its argument prototype would still apply. */
11966 #ifdef __cplusplus
11967 extern "C"
11968 #endif
11969 char XShmQueryExtension ();
11971 main ()
11973 return XShmQueryExtension ();
11975 return 0;
11977 _ACEOF
11978 rm -f conftest.$ac_objext conftest$ac_exeext
11979 if { (ac_try="$ac_link"
11980 case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983 esac
11984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_link") 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } && {
11992 test -z "$ac_c_werror_flag" ||
11993 test ! -s conftest.err
11994 } && test -s conftest$ac_exeext &&
11995 $as_test_x conftest$ac_exeext; then
11996 ac_cv_lib_Xext_XShmQueryExtension=yes
11997 else
11998 echo "$as_me: failed program was:" >&5
11999 sed 's/^/| /' conftest.$ac_ext >&5
12001 ac_cv_lib_Xext_XShmQueryExtension=no
12004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12005 conftest$ac_exeext conftest.$ac_ext
12006 LIBS=$ac_check_lib_save_LIBS
12008 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12009 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12010 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
12011 have_xshm=yes
12014 CFLAGS="$save_cflags"
12018 if test "x-$have_xshm" = "x-yes" ; then
12019 DO_XSHM_SUPPORT="1"
12020 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12021 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12022 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12023 { (exit 1); exit 1; }; }
12024 else
12025 DO_XSHM_SUPPORT="0"
12029 # Check whether --enable-x11_vidmode was given.
12030 if test "${enable_x11_vidmode+set}" = set; then
12031 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12032 else
12033 x11_hidd_vidmode="auto"
12036 case "x-$x11_hidd_vidmode" in
12037 x-yes|x-no|x-auto) ;;
12038 *) x11_hidd_vidmode="auto" ;;
12039 esac
12041 have_vidmode=no
12043 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12045 save_cflags="$CFLAGS"
12046 CFLAGS="$CFLAGS $x_cflags"
12047 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12048 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
12049 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12051 else
12052 ac_check_lib_save_LIBS=$LIBS
12053 LIBS="-lXxf86vm $LIBS"
12054 cat >conftest.$ac_ext <<_ACEOF
12055 /* confdefs.h. */
12056 _ACEOF
12057 cat confdefs.h >>conftest.$ac_ext
12058 cat >>conftest.$ac_ext <<_ACEOF
12059 /* end confdefs.h. */
12061 /* Override any GCC internal prototype to avoid an error.
12062 Use char because int might match the return type of a GCC
12063 builtin and then its argument prototype would still apply. */
12064 #ifdef __cplusplus
12065 extern "C"
12066 #endif
12067 char XF86VidModeQueryExtension ();
12069 main ()
12071 return XF86VidModeQueryExtension ();
12073 return 0;
12075 _ACEOF
12076 rm -f conftest.$ac_objext conftest$ac_exeext
12077 if { (ac_try="$ac_link"
12078 case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12081 esac
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_link") 2>conftest.er1
12084 ac_status=$?
12085 grep -v '^ *+' conftest.er1 >conftest.err
12086 rm -f conftest.er1
12087 cat conftest.err >&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); } && {
12090 test -z "$ac_c_werror_flag" ||
12091 test ! -s conftest.err
12092 } && test -s conftest$ac_exeext &&
12093 $as_test_x conftest$ac_exeext; then
12094 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12095 else
12096 echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12099 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12103 conftest$ac_exeext conftest.$ac_ext
12104 LIBS=$ac_check_lib_save_LIBS
12106 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12107 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12108 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
12109 have_vidmode=yes
12112 CFLAGS="$save_cflags"
12115 if test "x-$have_vidmode" = "x-yes" ; then
12116 DO_VIDMODE_SUPPORT="1"
12117 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12118 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12119 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12120 { (exit 1); exit 1; }; }
12121 else
12122 DO_VIDMODE_SUPPORT="0"
12126 aros_host_x11_includes=$x_includes
12127 aros_host_x11_libdirs=$x_libraries
12131 # Check whether --enable-sdl_hidd was given.
12132 if test "${enable_sdl_hidd+set}" = set; then
12133 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12134 else
12135 sdl_hidd="auto"
12138 case "x-$sdl_hidd" in
12139 x-yes|x-no|x-auto) ;;
12140 *) sdl_hidd="auto" ;;
12141 esac
12143 if test "x-$sdl_hidd" != "x-no" ; then
12146 # Check whether --with-sdl-prefix was given.
12147 if test "${with_sdl_prefix+set}" = set; then
12148 withval=$with_sdl_prefix; sdl_prefix="$withval"
12149 else
12150 sdl_prefix=""
12154 # Check whether --with-sdl-exec-prefix was given.
12155 if test "${with_sdl_exec_prefix+set}" = set; then
12156 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12157 else
12158 sdl_exec_prefix=""
12161 # Check whether --enable-sdltest was given.
12162 if test "${enable_sdltest+set}" = set; then
12163 enableval=$enable_sdltest;
12164 else
12165 enable_sdltest=yes
12169 if test x$sdl_exec_prefix != x ; then
12170 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12171 if test x${SDL_CONFIG+set} != xset ; then
12172 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12175 if test x$sdl_prefix != x ; then
12176 sdl_args="$sdl_args --prefix=$sdl_prefix"
12177 if test x${SDL_CONFIG+set} != xset ; then
12178 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12182 if test "x$prefix" != xNONE; then
12183 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12185 # Extract the first word of "sdl-config", so it can be a program name with args.
12186 set dummy sdl-config; ac_word=$2
12187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12189 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12191 else
12192 case $SDL_CONFIG in
12193 [\\/]* | ?:[\\/]*)
12194 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198 for as_dir in $PATH
12200 IFS=$as_save_IFS
12201 test -z "$as_dir" && as_dir=.
12202 for ac_exec_ext in '' $ac_executable_extensions; do
12203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12204 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12206 break 2
12208 done
12209 done
12210 IFS=$as_save_IFS
12212 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12214 esac
12216 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12217 if test -n "$SDL_CONFIG"; then
12218 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12219 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12220 else
12221 { echo "$as_me:$LINENO: result: no" >&5
12222 echo "${ECHO_T}no" >&6; }
12226 min_sdl_version=1.2.10
12227 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12228 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12229 no_sdl=""
12230 if test "$SDL_CONFIG" = "no" ; then
12231 no_sdl=yes
12232 else
12233 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12234 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12236 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12237 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12238 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12239 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12240 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12241 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12242 if test "x$enable_sdltest" = "xyes" ; then
12243 ac_save_CFLAGS="$CFLAGS"
12244 ac_save_CXXFLAGS="$CXXFLAGS"
12245 ac_save_LIBS="$LIBS"
12246 CFLAGS="$CFLAGS $SDL_CFLAGS"
12247 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12248 LIBS="$LIBS $SDL_LIBS"
12249 rm -f conf.sdltest
12250 if test "$cross_compiling" = yes; then
12251 echo $ac_n "cross compiling; assumed OK... $ac_c"
12252 else
12253 cat >conftest.$ac_ext <<_ACEOF
12254 /* confdefs.h. */
12255 _ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12260 #include <stdio.h>
12261 #include <stdlib.h>
12262 #include <string.h>
12263 #include "SDL.h"
12265 char*
12266 my_strdup (char *str)
12268 char *new_str;
12270 if (str)
12272 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12273 strcpy (new_str, str);
12275 else
12276 new_str = NULL;
12278 return new_str;
12281 int main (int argc, char *argv[])
12283 int major, minor, micro;
12284 char *tmp_version;
12286 /* This hangs on some systems (?)
12287 system ("touch conf.sdltest");
12289 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12291 /* HP/UX 9 (%@#!) writes to sscanf strings */
12292 tmp_version = my_strdup("$min_sdl_version");
12293 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12294 printf("%s, bad version string\n", "$min_sdl_version");
12295 exit(1);
12298 if (($sdl_major_version > major) ||
12299 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12300 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12302 return 0;
12304 else
12306 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12307 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12308 printf("*** best to upgrade to the required version.\n");
12309 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12310 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12311 printf("*** config.cache before re-running configure\n");
12312 return 1;
12317 _ACEOF
12318 rm -f conftest$ac_exeext
12319 if { (ac_try="$ac_link"
12320 case "(($ac_try" in
12321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12322 *) ac_try_echo=$ac_try;;
12323 esac
12324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12325 (eval "$ac_link") 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12329 { (case "(($ac_try" in
12330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12332 esac
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_try") 2>&5
12335 ac_status=$?
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); }; }; then
12339 else
12340 echo "$as_me: program exited with status $ac_status" >&5
12341 echo "$as_me: failed program was:" >&5
12342 sed 's/^/| /' conftest.$ac_ext >&5
12344 ( exit $ac_status )
12345 no_sdl=yes
12347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12351 CFLAGS="$ac_save_CFLAGS"
12352 CXXFLAGS="$ac_save_CXXFLAGS"
12353 LIBS="$ac_save_LIBS"
12356 if test "x$no_sdl" = x ; then
12357 { echo "$as_me:$LINENO: result: yes" >&5
12358 echo "${ECHO_T}yes" >&6; }
12359 have_sdl="yes"
12360 else
12361 { echo "$as_me:$LINENO: result: no" >&5
12362 echo "${ECHO_T}no" >&6; }
12363 if test "$SDL_CONFIG" = "no" ; then
12364 echo "*** The sdl-config script installed by SDL could not be found"
12365 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12366 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12367 echo "*** full path to sdl-config."
12368 else
12369 if test -f conf.sdltest ; then
12371 else
12372 echo "*** Could not run SDL test program, checking why..."
12373 CFLAGS="$CFLAGS $SDL_CFLAGS"
12374 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12375 LIBS="$LIBS $SDL_LIBS"
12376 cat >conftest.$ac_ext <<_ACEOF
12377 /* confdefs.h. */
12378 _ACEOF
12379 cat confdefs.h >>conftest.$ac_ext
12380 cat >>conftest.$ac_ext <<_ACEOF
12381 /* end confdefs.h. */
12383 #include <stdio.h>
12384 #include "SDL.h"
12386 int main(int argc, char *argv[])
12387 { return 0; }
12388 #undef main
12389 #define main K_and_R_C_main
12392 main ()
12394 return 0;
12396 return 0;
12398 _ACEOF
12399 rm -f conftest.$ac_objext conftest$ac_exeext
12400 if { (ac_try="$ac_link"
12401 case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12404 esac
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406 (eval "$ac_link") 2>conftest.er1
12407 ac_status=$?
12408 grep -v '^ *+' conftest.er1 >conftest.err
12409 rm -f conftest.er1
12410 cat conftest.err >&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); } && {
12413 test -z "$ac_c_werror_flag" ||
12414 test ! -s conftest.err
12415 } && test -s conftest$ac_exeext &&
12416 $as_test_x conftest$ac_exeext; then
12417 echo "*** The test program compiled, but did not run. This usually means"
12418 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12419 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12420 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12421 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12422 echo "*** is required on your system"
12423 echo "***"
12424 echo "*** If you have an old version installed, it is best to remove it, although"
12425 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12426 else
12427 echo "$as_me: failed program was:" >&5
12428 sed 's/^/| /' conftest.$ac_ext >&5
12430 echo "*** The test program failed to compile or link. See the file config.log for the"
12431 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12432 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12433 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12437 conftest$ac_exeext conftest.$ac_ext
12438 CFLAGS="$ac_save_CFLAGS"
12439 CXXFLAGS="$ac_save_CXXFLAGS"
12440 LIBS="$ac_save_LIBS"
12443 SDL_CFLAGS=""
12444 SDL_LIBS=""
12445 have_sdl="no"
12449 rm -f conf.sdltest
12452 if test "x-$have_sdl" != "x-yes" ; then
12454 if test "x-$sdl_hidd" != "x-auto" ; then
12455 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12456 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12457 { (exit 1); exit 1; }; }
12460 else
12461 sdl_hidd_target=kernel-hidd-sdl
12462 aros_host_sdl_cflags=SDL_CFLAGS
12463 aros_host_sdl_libs=SDL_LIBS
12470 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12471 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12472 # Check whether --enable-dbus was given.
12473 if test "${enable_dbus+set}" = set; then
12474 enableval=$enable_dbus; dbus="yes"
12475 else
12476 dbus="no"
12479 if test "$dbus" = "yes" ; then
12480 ENABLE_DBUS=1
12481 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12482 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12483 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12484 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12485 else
12486 ENABLE_DBUS=0
12488 { echo "$as_me:$LINENO: result: $dbus" >&5
12489 echo "${ECHO_T}$dbus" >&6; }
12493 # Generic
12502 # Host related
12525 # Target Related
12569 # Graphics Related
12584 # Native version related
12588 # Palm native version related
12591 # Unix/Hosted version related
12594 # DBUS related
12601 #X11 related
12604 # Debug related
12610 # Collect-aros stuff: "-ius" to ignore undefined symbols
12613 # C compiler related
12616 case "$aros_flavour" in
12617 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12618 aros_flavour="emulation" ;;
12619 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12620 aros_flavour="emulation" ;;
12621 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12622 aros_flavour="standalone";;
12623 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12624 aros_flavour="native" ;;
12625 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12626 aros_flavour="native" ;;
12627 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12628 aros_flavour="linklib" ;;
12629 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12630 aros_flavour="palmnative" ;;
12631 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12632 aros_flavour="mac68knative" ;;
12633 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12634 aros_flavour="ppcnative" ;;
12635 esac
12637 if test ! -d ${aros_inc_dir} ; then
12638 ${MKDIR} ${aros_inc_dir}
12640 if test ! -d ${aros_geninc_dir} ; then
12641 ${MKDIR} ${aros_geninc_dir}
12643 if test ! -d ${aros_hostcfg_dir} ; then
12644 ${MKDIR} ${aros_hostcfg_dir}
12646 if test ! -d ${aros_targetcfg_dir} ; then
12647 ${MKDIR} ${aros_targetcfg_dir}
12649 if test ! -d ${aros_tools_dir} ; then
12650 ${MKDIR} ${aros_tools_dir}
12652 if test ! -d ${aros_scripts_dir} ; then
12653 ${MKDIR} ${aros_scripts_dir}
12656 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12659 ac_config_commands="$ac_config_commands compiler_executable"
12661 ac_config_commands="$ac_config_commands genshared_executable"
12663 ac_config_commands="$ac_config_commands genmf_executable"
12665 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
12668 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"
12671 cat >confcache <<\_ACEOF
12672 # This file is a shell script that caches the results of configure
12673 # tests run on this system so they can be shared between configure
12674 # scripts and configure runs, see configure's option --config-cache.
12675 # It is not useful on other systems. If it contains results you don't
12676 # want to keep, you may remove or edit it.
12678 # config.status only pays attention to the cache file if you give it
12679 # the --recheck option to rerun configure.
12681 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12682 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12683 # following values.
12685 _ACEOF
12687 # The following way of writing the cache mishandles newlines in values,
12688 # but we know of no workaround that is simple, portable, and efficient.
12689 # So, we kill variables containing newlines.
12690 # Ultrix sh set writes to stderr and can't be redirected directly,
12691 # and sets the high bit in the cache file unless we assign to the vars.
12693 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12694 eval ac_val=\$$ac_var
12695 case $ac_val in #(
12696 *${as_nl}*)
12697 case $ac_var in #(
12698 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12699 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12700 esac
12701 case $ac_var in #(
12702 _ | IFS | as_nl) ;; #(
12703 *) $as_unset $ac_var ;;
12704 esac ;;
12705 esac
12706 done
12708 (set) 2>&1 |
12709 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12710 *${as_nl}ac_space=\ *)
12711 # `set' does not quote correctly, so add quotes (double-quote
12712 # substitution turns \\\\ into \\, and sed turns \\ into \).
12713 sed -n \
12714 "s/'/'\\\\''/g;
12715 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12716 ;; #(
12718 # `set' quotes correctly as required by POSIX, so do not add quotes.
12719 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12721 esac |
12722 sort
12724 sed '
12725 /^ac_cv_env_/b end
12726 t clear
12727 :clear
12728 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12729 t end
12730 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12731 :end' >>confcache
12732 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12733 if test -w "$cache_file"; then
12734 test "x$cache_file" != "x/dev/null" &&
12735 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12736 echo "$as_me: updating cache $cache_file" >&6;}
12737 cat confcache >$cache_file
12738 else
12739 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12740 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12743 rm -f confcache
12745 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12746 # Let make expand exec_prefix.
12747 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12749 DEFS=-DHAVE_CONFIG_H
12751 ac_libobjs=
12752 ac_ltlibobjs=
12753 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12754 # 1. Remove the extension, and $U if already installed.
12755 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12756 ac_i=`echo "$ac_i" | sed "$ac_script"`
12757 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12758 # will be set to the directory where LIBOBJS objects are built.
12759 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12760 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12761 done
12762 LIBOBJS=$ac_libobjs
12764 LTLIBOBJS=$ac_ltlibobjs
12768 : ${CONFIG_STATUS=./config.status}
12769 ac_clean_files_save=$ac_clean_files
12770 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12771 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12772 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12773 cat >$CONFIG_STATUS <<_ACEOF
12774 #! $SHELL
12775 # Generated by $as_me.
12776 # Run this file to recreate the current configuration.
12777 # Compiler output produced by configure, useful for debugging
12778 # configure, is in config.log if it exists.
12780 debug=false
12781 ac_cs_recheck=false
12782 ac_cs_silent=false
12783 SHELL=\${CONFIG_SHELL-$SHELL}
12784 _ACEOF
12786 cat >>$CONFIG_STATUS <<\_ACEOF
12787 ## --------------------- ##
12788 ## M4sh Initialization. ##
12789 ## --------------------- ##
12791 # Be more Bourne compatible
12792 DUALCASE=1; export DUALCASE # for MKS sh
12793 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12794 emulate sh
12795 NULLCMD=:
12796 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12797 # is contrary to our usage. Disable this feature.
12798 alias -g '${1+"$@"}'='"$@"'
12799 setopt NO_GLOB_SUBST
12800 else
12801 case `(set -o) 2>/dev/null` in
12802 *posix*) set -o posix ;;
12803 esac
12810 # PATH needs CR
12811 # Avoid depending upon Character Ranges.
12812 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12813 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12814 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12815 as_cr_digits='0123456789'
12816 as_cr_alnum=$as_cr_Letters$as_cr_digits
12818 # The user is always right.
12819 if test "${PATH_SEPARATOR+set}" != set; then
12820 echo "#! /bin/sh" >conf$$.sh
12821 echo "exit 0" >>conf$$.sh
12822 chmod +x conf$$.sh
12823 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12824 PATH_SEPARATOR=';'
12825 else
12826 PATH_SEPARATOR=:
12828 rm -f conf$$.sh
12831 # Support unset when possible.
12832 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12833 as_unset=unset
12834 else
12835 as_unset=false
12839 # IFS
12840 # We need space, tab and new line, in precisely that order. Quoting is
12841 # there to prevent editors from complaining about space-tab.
12842 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12843 # splitting by setting IFS to empty value.)
12844 as_nl='
12846 IFS=" "" $as_nl"
12848 # Find who we are. Look in the path if we contain no directory separator.
12849 case $0 in
12850 *[\\/]* ) as_myself=$0 ;;
12851 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12852 for as_dir in $PATH
12854 IFS=$as_save_IFS
12855 test -z "$as_dir" && as_dir=.
12856 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12857 done
12858 IFS=$as_save_IFS
12861 esac
12862 # We did not find ourselves, most probably we were run as `sh COMMAND'
12863 # in which case we are not to be found in the path.
12864 if test "x$as_myself" = x; then
12865 as_myself=$0
12867 if test ! -f "$as_myself"; then
12868 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12869 { (exit 1); exit 1; }
12872 # Work around bugs in pre-3.0 UWIN ksh.
12873 for as_var in ENV MAIL MAILPATH
12874 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12875 done
12876 PS1='$ '
12877 PS2='> '
12878 PS4='+ '
12880 # NLS nuisances.
12881 for as_var in \
12882 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12883 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12884 LC_TELEPHONE LC_TIME
12886 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12887 eval $as_var=C; export $as_var
12888 else
12889 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12891 done
12893 # Required to use basename.
12894 if expr a : '\(a\)' >/dev/null 2>&1 &&
12895 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12896 as_expr=expr
12897 else
12898 as_expr=false
12901 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12902 as_basename=basename
12903 else
12904 as_basename=false
12908 # Name of the executable.
12909 as_me=`$as_basename -- "$0" ||
12910 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12911 X"$0" : 'X\(//\)$' \| \
12912 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12913 echo X/"$0" |
12914 sed '/^.*\/\([^/][^/]*\)\/*$/{
12915 s//\1/
12918 /^X\/\(\/\/\)$/{
12919 s//\1/
12922 /^X\/\(\/\).*/{
12923 s//\1/
12926 s/.*/./; q'`
12928 # CDPATH.
12929 $as_unset CDPATH
12933 as_lineno_1=$LINENO
12934 as_lineno_2=$LINENO
12935 test "x$as_lineno_1" != "x$as_lineno_2" &&
12936 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12938 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12939 # uniformly replaced by the line number. The first 'sed' inserts a
12940 # line-number line after each line using $LINENO; the second 'sed'
12941 # does the real work. The second script uses 'N' to pair each
12942 # line-number line with the line containing $LINENO, and appends
12943 # trailing '-' during substitution so that $LINENO is not a special
12944 # case at line end.
12945 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12946 # scripts with optimization help from Paolo Bonzini. Blame Lee
12947 # E. McMahon (1931-1989) for sed's syntax. :-)
12948 sed -n '
12950 /[$]LINENO/=
12951 ' <$as_myself |
12952 sed '
12953 s/[$]LINENO.*/&-/
12954 t lineno
12956 :lineno
12958 :loop
12959 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12960 t loop
12961 s/-\n.*//
12962 ' >$as_me.lineno &&
12963 chmod +x "$as_me.lineno" ||
12964 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12965 { (exit 1); exit 1; }; }
12967 # Don't try to exec as it changes $[0], causing all sort of problems
12968 # (the dirname of $[0] is not the place where we might find the
12969 # original and so on. Autoconf is especially sensitive to this).
12970 . "./$as_me.lineno"
12971 # Exit status is that of the last command.
12972 exit
12976 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12977 as_dirname=dirname
12978 else
12979 as_dirname=false
12982 ECHO_C= ECHO_N= ECHO_T=
12983 case `echo -n x` in
12984 -n*)
12985 case `echo 'x\c'` in
12986 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12987 *) ECHO_C='\c';;
12988 esac;;
12990 ECHO_N='-n';;
12991 esac
12993 if expr a : '\(a\)' >/dev/null 2>&1 &&
12994 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12995 as_expr=expr
12996 else
12997 as_expr=false
13000 rm -f conf$$ conf$$.exe conf$$.file
13001 if test -d conf$$.dir; then
13002 rm -f conf$$.dir/conf$$.file
13003 else
13004 rm -f conf$$.dir
13005 mkdir conf$$.dir
13007 echo >conf$$.file
13008 if ln -s conf$$.file conf$$ 2>/dev/null; then
13009 as_ln_s='ln -s'
13010 # ... but there are two gotchas:
13011 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13012 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13013 # In both cases, we have to default to `cp -p'.
13014 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13015 as_ln_s='cp -p'
13016 elif ln conf$$.file conf$$ 2>/dev/null; then
13017 as_ln_s=ln
13018 else
13019 as_ln_s='cp -p'
13021 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13022 rmdir conf$$.dir 2>/dev/null
13024 if mkdir -p . 2>/dev/null; then
13025 as_mkdir_p=:
13026 else
13027 test -d ./-p && rmdir ./-p
13028 as_mkdir_p=false
13031 if test -x / >/dev/null 2>&1; then
13032 as_test_x='test -x'
13033 else
13034 if ls -dL / >/dev/null 2>&1; then
13035 as_ls_L_option=L
13036 else
13037 as_ls_L_option=
13039 as_test_x='
13040 eval sh -c '\''
13041 if test -d "$1"; then
13042 test -d "$1/.";
13043 else
13044 case $1 in
13045 -*)set "./$1";;
13046 esac;
13047 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13048 ???[sx]*):;;*)false;;esac;fi
13049 '\'' sh
13052 as_executable_p=$as_test_x
13054 # Sed expression to map a string onto a valid CPP name.
13055 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13057 # Sed expression to map a string onto a valid variable name.
13058 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13061 exec 6>&1
13063 # Save the log message, to keep $[0] and so on meaningful, and to
13064 # report actual input values of CONFIG_FILES etc. instead of their
13065 # values after options handling.
13066 ac_log="
13067 This file was extended by $as_me, which was
13068 generated by GNU Autoconf 2.61. Invocation command line was
13070 CONFIG_FILES = $CONFIG_FILES
13071 CONFIG_HEADERS = $CONFIG_HEADERS
13072 CONFIG_LINKS = $CONFIG_LINKS
13073 CONFIG_COMMANDS = $CONFIG_COMMANDS
13074 $ $0 $@
13076 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13079 _ACEOF
13081 cat >>$CONFIG_STATUS <<_ACEOF
13082 # Files that config.status was made for.
13083 config_files="$ac_config_files"
13084 config_headers="$ac_config_headers"
13085 config_commands="$ac_config_commands"
13087 _ACEOF
13089 cat >>$CONFIG_STATUS <<\_ACEOF
13090 ac_cs_usage="\
13091 \`$as_me' instantiates files from templates according to the
13092 current configuration.
13094 Usage: $0 [OPTIONS] [FILE]...
13096 -h, --help print this help, then exit
13097 -V, --version print version number and configuration settings, then exit
13098 -q, --quiet do not print progress messages
13099 -d, --debug don't remove temporary files
13100 --recheck update $as_me by reconfiguring in the same conditions
13101 --file=FILE[:TEMPLATE]
13102 instantiate the configuration file FILE
13103 --header=FILE[:TEMPLATE]
13104 instantiate the configuration header FILE
13106 Configuration files:
13107 $config_files
13109 Configuration headers:
13110 $config_headers
13112 Configuration commands:
13113 $config_commands
13115 Report bugs to <bug-autoconf@gnu.org>."
13117 _ACEOF
13118 cat >>$CONFIG_STATUS <<_ACEOF
13119 ac_cs_version="\\
13120 config.status
13121 configured by $0, generated by GNU Autoconf 2.61,
13122 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13124 Copyright (C) 2006 Free Software Foundation, Inc.
13125 This config.status script is free software; the Free Software Foundation
13126 gives unlimited permission to copy, distribute and modify it."
13128 ac_pwd='$ac_pwd'
13129 srcdir='$srcdir'
13130 _ACEOF
13132 cat >>$CONFIG_STATUS <<\_ACEOF
13133 # If no file are specified by the user, then we need to provide default
13134 # value. By we need to know if files were specified by the user.
13135 ac_need_defaults=:
13136 while test $# != 0
13138 case $1 in
13139 --*=*)
13140 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13141 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13142 ac_shift=:
13145 ac_option=$1
13146 ac_optarg=$2
13147 ac_shift=shift
13149 esac
13151 case $ac_option in
13152 # Handling of the options.
13153 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13154 ac_cs_recheck=: ;;
13155 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13156 echo "$ac_cs_version"; exit ;;
13157 --debug | --debu | --deb | --de | --d | -d )
13158 debug=: ;;
13159 --file | --fil | --fi | --f )
13160 $ac_shift
13161 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13162 ac_need_defaults=false;;
13163 --header | --heade | --head | --hea )
13164 $ac_shift
13165 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13166 ac_need_defaults=false;;
13167 --he | --h)
13168 # Conflict between --help and --header
13169 { echo "$as_me: error: ambiguous option: $1
13170 Try \`$0 --help' for more information." >&2
13171 { (exit 1); exit 1; }; };;
13172 --help | --hel | -h )
13173 echo "$ac_cs_usage"; exit ;;
13174 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13175 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13176 ac_cs_silent=: ;;
13178 # This is an error.
13179 -*) { echo "$as_me: error: unrecognized option: $1
13180 Try \`$0 --help' for more information." >&2
13181 { (exit 1); exit 1; }; } ;;
13183 *) ac_config_targets="$ac_config_targets $1"
13184 ac_need_defaults=false ;;
13186 esac
13187 shift
13188 done
13190 ac_configure_extra_args=
13192 if $ac_cs_silent; then
13193 exec 6>/dev/null
13194 ac_configure_extra_args="$ac_configure_extra_args --silent"
13197 _ACEOF
13198 cat >>$CONFIG_STATUS <<_ACEOF
13199 if \$ac_cs_recheck; then
13200 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13201 CONFIG_SHELL=$SHELL
13202 export CONFIG_SHELL
13203 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13206 _ACEOF
13207 cat >>$CONFIG_STATUS <<\_ACEOF
13208 exec 5>>config.log
13210 echo
13211 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13212 ## Running $as_me. ##
13213 _ASBOX
13214 echo "$ac_log"
13215 } >&5
13217 _ACEOF
13218 cat >>$CONFIG_STATUS <<_ACEOF
13220 # INIT-COMMANDS
13223 aros_tools_dir=${aros_tools_dir}
13224 aros_target_cpu=${aros_target_cpu}
13225 aros_target_arch=${aros_target_arch}
13226 aros_target_suffix=${aros_target_suffix}
13227 aros_target_nm_ln=${aros_target_nm_ln}
13228 aros_target_as_ln=${aros_target_as_ln}
13229 aros_target_ar_ln=${aros_target_ar_ln}
13230 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13231 aros_target_objdump_ln=${aros_target_objdump_ln}
13232 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13233 aros_target_strip_ln=${aros_target_strip_ln}
13236 aros_scripts_dir=${aros_scripts_dir}
13238 aros_tools_dir=${aros_tools_dir}
13241 _ACEOF
13243 cat >>$CONFIG_STATUS <<\_ACEOF
13245 # Handling of arguments.
13246 for ac_config_target in $ac_config_targets
13248 case $ac_config_target in
13249 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13250 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13251 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13252 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13253 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
13254 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13255 "rom/mmakefile") CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
13256 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13257 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13258 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13259 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13260 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13261 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13262 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13263 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13264 "${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" ;;
13265 "${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" ;;
13266 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13267 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13268 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
13269 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13271 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13272 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13273 { (exit 1); exit 1; }; };;
13274 esac
13275 done
13278 # If the user did not use the arguments to specify the items to instantiate,
13279 # then the envvar interface is used. Set only those that are not.
13280 # We use the long form for the default assignment because of an extremely
13281 # bizarre bug on SunOS 4.1.3.
13282 if $ac_need_defaults; then
13283 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13284 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13285 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13288 # Have a temporary directory for convenience. Make it in the build tree
13289 # simply because there is no reason against having it here, and in addition,
13290 # creating and moving files from /tmp can sometimes cause problems.
13291 # Hook for its removal unless debugging.
13292 # Note that there is a small window in which the directory will not be cleaned:
13293 # after its creation but before its name has been assigned to `$tmp'.
13294 $debug ||
13296 tmp=
13297 trap 'exit_status=$?
13298 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13300 trap '{ (exit 1); exit 1; }' 1 2 13 15
13302 # Create a (secure) tmp directory for tmp files.
13305 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13306 test -n "$tmp" && test -d "$tmp"
13307 } ||
13309 tmp=./conf$$-$RANDOM
13310 (umask 077 && mkdir "$tmp")
13311 } ||
13313 echo "$me: cannot create a temporary directory in ." >&2
13314 { (exit 1); exit 1; }
13318 # Set up the sed scripts for CONFIG_FILES section.
13321 # No need to generate the scripts if there are no CONFIG_FILES.
13322 # This happens for instance when ./config.status config.h
13323 if test -n "$CONFIG_FILES"; then
13325 _ACEOF
13329 ac_delim='%!_!# '
13330 for ac_last_try in false false false false false :; do
13331 cat >conf$$subs.sed <<_ACEOF
13332 SHELL!$SHELL$ac_delim
13333 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13334 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13335 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13336 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13337 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13338 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13339 exec_prefix!$exec_prefix$ac_delim
13340 prefix!$prefix$ac_delim
13341 program_transform_name!$program_transform_name$ac_delim
13342 bindir!$bindir$ac_delim
13343 sbindir!$sbindir$ac_delim
13344 libexecdir!$libexecdir$ac_delim
13345 datarootdir!$datarootdir$ac_delim
13346 datadir!$datadir$ac_delim
13347 sysconfdir!$sysconfdir$ac_delim
13348 sharedstatedir!$sharedstatedir$ac_delim
13349 localstatedir!$localstatedir$ac_delim
13350 includedir!$includedir$ac_delim
13351 oldincludedir!$oldincludedir$ac_delim
13352 docdir!$docdir$ac_delim
13353 infodir!$infodir$ac_delim
13354 htmldir!$htmldir$ac_delim
13355 dvidir!$dvidir$ac_delim
13356 pdfdir!$pdfdir$ac_delim
13357 psdir!$psdir$ac_delim
13358 libdir!$libdir$ac_delim
13359 localedir!$localedir$ac_delim
13360 mandir!$mandir$ac_delim
13361 DEFS!$DEFS$ac_delim
13362 ECHO_C!$ECHO_C$ac_delim
13363 ECHO_N!$ECHO_N$ac_delim
13364 ECHO_T!$ECHO_T$ac_delim
13365 LIBS!$LIBS$ac_delim
13366 build_alias!$build_alias$ac_delim
13367 host_alias!$host_alias$ac_delim
13368 target_alias!$target_alias$ac_delim
13369 build!$build$ac_delim
13370 build_cpu!$build_cpu$ac_delim
13371 build_vendor!$build_vendor$ac_delim
13372 build_os!$build_os$ac_delim
13373 host!$host$ac_delim
13374 host_cpu!$host_cpu$ac_delim
13375 host_vendor!$host_vendor$ac_delim
13376 host_os!$host_os$ac_delim
13377 CC!$CC$ac_delim
13378 CFLAGS!$CFLAGS$ac_delim
13379 LDFLAGS!$LDFLAGS$ac_delim
13380 CPPFLAGS!$CPPFLAGS$ac_delim
13381 ac_ct_CC!$ac_ct_CC$ac_delim
13382 EXEEXT!$EXEEXT$ac_delim
13383 OBJEXT!$OBJEXT$ac_delim
13384 CPP!$CPP$ac_delim
13385 AWK!$AWK$ac_delim
13386 MMAKE!$MMAKE$ac_delim
13387 aros_host_ld!$aros_host_ld$ac_delim
13388 aros_host_aclocal!$aros_host_aclocal$ac_delim
13389 aros_host_autoconf!$aros_host_autoconf$ac_delim
13390 aros_host_autoheader!$aros_host_autoheader$ac_delim
13391 aros_host_automake!$aros_host_automake$ac_delim
13392 aros_host_ar!$aros_host_ar$ac_delim
13393 aros_host_ranlib!$aros_host_ranlib$ac_delim
13394 aros_host_strip!$aros_host_strip$ac_delim
13395 RM!$RM$ac_delim
13396 CP!$CP$ac_delim
13397 MV!$MV$ac_delim
13398 ECHO!$ECHO$ac_delim
13399 MKDIR!$MKDIR$ac_delim
13400 TOUCH!$TOUCH$ac_delim
13401 SORT!$SORT$ac_delim
13402 UNIQ!$UNIQ$ac_delim
13403 NOP!$NOP$ac_delim
13404 CAT!$CAT$ac_delim
13405 BISON!$BISON$ac_delim
13406 FLEX!$FLEX$ac_delim
13407 PNGTOPNM!$PNGTOPNM$ac_delim
13408 PPMTOILBM!$PPMTOILBM$ac_delim
13409 SED!$SED$ac_delim
13410 CHMOD!$CHMOD$ac_delim
13411 PYTHON!$PYTHON$ac_delim
13412 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13413 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13414 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13415 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13416 pythondir!$pythondir$ac_delim
13417 pkgpythondir!$pkgpythondir$ac_delim
13418 pyexecdir!$pyexecdir$ac_delim
13419 pkgpyexecdir!$pkgpyexecdir$ac_delim
13420 FOR!$FOR$ac_delim
13421 IF!$IF$ac_delim
13422 TEST!$TEST$ac_delim
13423 CMP!$CMP$ac_delim
13424 GREP!$GREP$ac_delim
13425 EGREP!$EGREP$ac_delim
13426 LIBOBJS!$LIBOBJS$ac_delim
13427 DISTCC!$DISTCC$ac_delim
13428 CCACHE!$CCACHE$ac_delim
13429 _ACEOF
13431 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13432 break
13433 elif $ac_last_try; then
13434 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13435 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13436 { (exit 1); exit 1; }; }
13437 else
13438 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13440 done
13442 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13443 if test -n "$ac_eof"; then
13444 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13445 ac_eof=`expr $ac_eof + 1`
13448 cat >>$CONFIG_STATUS <<_ACEOF
13449 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13450 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13451 _ACEOF
13452 sed '
13453 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13454 s/^/s,@/; s/!/@,|#_!!_#|/
13457 s/'"$ac_delim"'$/,g/; t
13458 s/$/\\/; p
13459 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13460 ' >>$CONFIG_STATUS <conf$$subs.sed
13461 rm -f conf$$subs.sed
13462 cat >>$CONFIG_STATUS <<_ACEOF
13463 CEOF$ac_eof
13464 _ACEOF
13467 ac_delim='%!_!# '
13468 for ac_last_try in false false false false false :; do
13469 cat >conf$$subs.sed <<_ACEOF
13470 LIBLZO!$LIBLZO$ac_delim
13471 aros_kernel_cc!$aros_kernel_cc$ac_delim
13472 aros_target_cc!$aros_target_cc$ac_delim
13473 aros_target_ld!$aros_target_ld$ac_delim
13474 aros_target_as_ln!$aros_target_as_ln$ac_delim
13475 aros_kernel_ld!$aros_kernel_ld$ac_delim
13476 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13477 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13478 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13479 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13480 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13481 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13482 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13483 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13484 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13485 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13486 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13487 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13488 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13489 XMKMF!$XMKMF$ac_delim
13490 SDL_CONFIG!$SDL_CONFIG$ac_delim
13491 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13492 SDL_LIBS!$SDL_LIBS$ac_delim
13493 aros_arch!$aros_arch$ac_delim
13494 aros_cpu!$aros_cpu$ac_delim
13495 aros_flavour!$aros_flavour$ac_delim
13496 aros_flavour_uc!$aros_flavour_uc$ac_delim
13497 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13498 SRCDIR!$SRCDIR$ac_delim
13499 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13500 aros_cc_pre!$aros_cc_pre$ac_delim
13501 aros_host_arch!$aros_host_arch$ac_delim
13502 aros_host_cpu!$aros_host_cpu$ac_delim
13503 aros_host_cc!$aros_host_cc$ac_delim
13504 aros_host_make!$aros_host_make$ac_delim
13505 aros_host_cflags!$aros_host_cflags$ac_delim
13506 aros_host_ldflags!$aros_host_ldflags$ac_delim
13507 aros_host_debug!$aros_host_debug$ac_delim
13508 aros_host_mkdep!$aros_host_mkdep$ac_delim
13509 aros_host_mkargs!$aros_host_mkargs$ac_delim
13510 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13511 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13512 aros_tools_dir!$aros_tools_dir$ac_delim
13513 aros_target_guitheme!$aros_target_guitheme$ac_delim
13514 aros_target_bootloader!$aros_target_bootloader$ac_delim
13515 aros_target_arch!$aros_target_arch$ac_delim
13516 aros_target_cpu!$aros_target_cpu$ac_delim
13517 aros_target_variant!$aros_target_variant$ac_delim
13518 aros_target_suffix!$aros_target_suffix$ac_delim
13519 aros_target_incl!$aros_target_incl$ac_delim
13520 aros_target_ar!$aros_target_ar$ac_delim
13521 aros_target_ranlib!$aros_target_ranlib$ac_delim
13522 aros_kernel_nm!$aros_kernel_nm$ac_delim
13523 orig_target_cc!$orig_target_cc$ac_delim
13524 aros_target_as!$aros_target_as$ac_delim
13525 orig_target_ld!$orig_target_ld$ac_delim
13526 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13527 aros_target_cc_path!$aros_target_cc_path$ac_delim
13528 aros_target_objdump!$aros_target_objdump$ac_delim
13529 aros_target_objcopy!$aros_target_objcopy$ac_delim
13530 aros_target_strip!$aros_target_strip$ac_delim
13531 aros_target_nm!$aros_target_nm$ac_delim
13532 aros_shared_default!$aros_shared_default$ac_delim
13533 aros_shared_ld!$aros_shared_ld$ac_delim
13534 aros_object_format!$aros_object_format$ac_delim
13535 aros_compiler_libs!$aros_compiler_libs$ac_delim
13536 aros_config_cflags!$aros_config_cflags$ac_delim
13537 aros_config_aflags!$aros_config_aflags$ac_delim
13538 aros_config_ldflags!$aros_config_ldflags$ac_delim
13539 aros_shared_cflags!$aros_shared_cflags$ac_delim
13540 aros_shared_aflags!$aros_shared_aflags$ac_delim
13541 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13542 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13543 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13544 aros_debug_cflags!$aros_debug_cflags$ac_delim
13545 aros_debug_aflags!$aros_debug_aflags$ac_delim
13546 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13547 aros_target_genmap!$aros_target_genmap$ac_delim
13548 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13549 x11_hidd_target!$x11_hidd_target$ac_delim
13550 sdl_hidd_target!$sdl_hidd_target$ac_delim
13551 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13552 aros_default_wbheight!$aros_default_wbheight$ac_delim
13553 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
13554 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
13555 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
13556 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
13557 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
13558 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
13559 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
13560 aros_bochs_hack!$aros_bochs_hack$ac_delim
13561 aros_serial_debug!$aros_serial_debug$ac_delim
13562 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
13563 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
13564 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
13565 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
13566 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
13567 _ACEOF
13569 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13570 break
13571 elif $ac_last_try; then
13572 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13573 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13574 { (exit 1); exit 1; }; }
13575 else
13576 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13578 done
13580 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13581 if test -n "$ac_eof"; then
13582 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13583 ac_eof=`expr $ac_eof + 1`
13586 cat >>$CONFIG_STATUS <<_ACEOF
13587 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13589 _ACEOF
13590 sed '
13591 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13592 s/^/s,@/; s/!/@,|#_!!_#|/
13595 s/'"$ac_delim"'$/,g/; t
13596 s/$/\\/; p
13597 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13598 ' >>$CONFIG_STATUS <conf$$subs.sed
13599 rm -f conf$$subs.sed
13600 cat >>$CONFIG_STATUS <<_ACEOF
13601 CEOF$ac_eof
13602 _ACEOF
13605 ac_delim='%!_!# '
13606 for ac_last_try in false false false false false :; do
13607 cat >conf$$subs.sed <<_ACEOF
13608 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
13609 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
13610 ENABLE_X11!$ENABLE_X11$ac_delim
13611 aros_debug!$aros_debug$ac_delim
13612 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
13613 aros_stack_debug!$aros_stack_debug$ac_delim
13614 aros_modules_debug!$aros_modules_debug$ac_delim
13615 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
13616 gcc_target_cpu!$gcc_target_cpu$ac_delim
13617 LTLIBOBJS!$LTLIBOBJS$ac_delim
13618 _ACEOF
13620 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 10; then
13621 break
13622 elif $ac_last_try; then
13623 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13624 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13625 { (exit 1); exit 1; }; }
13626 else
13627 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13629 done
13631 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13632 if test -n "$ac_eof"; then
13633 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13634 ac_eof=`expr $ac_eof + 1`
13637 cat >>$CONFIG_STATUS <<_ACEOF
13638 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
13639 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13640 _ACEOF
13641 sed '
13642 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13643 s/^/s,@/; s/!/@,|#_!!_#|/
13646 s/'"$ac_delim"'$/,g/; t
13647 s/$/\\/; p
13648 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13649 ' >>$CONFIG_STATUS <conf$$subs.sed
13650 rm -f conf$$subs.sed
13651 cat >>$CONFIG_STATUS <<_ACEOF
13652 :end
13653 s/|#_!!_#|//g
13654 CEOF$ac_eof
13655 _ACEOF
13658 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13659 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13660 # trailing colons and then remove the whole line if VPATH becomes empty
13661 # (actually we leave an empty line to preserve line numbers).
13662 if test "x$srcdir" = x.; then
13663 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13664 s/:*\$(srcdir):*/:/
13665 s/:*\${srcdir}:*/:/
13666 s/:*@srcdir@:*/:/
13667 s/^\([^=]*=[ ]*\):*/\1/
13668 s/:*$//
13669 s/^[^=]*=[ ]*$//
13673 cat >>$CONFIG_STATUS <<\_ACEOF
13674 fi # test -n "$CONFIG_FILES"
13677 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13679 case $ac_tag in
13680 :[FHLC]) ac_mode=$ac_tag; continue;;
13681 esac
13682 case $ac_mode$ac_tag in
13683 :[FHL]*:*);;
13684 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13685 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13686 { (exit 1); exit 1; }; };;
13687 :[FH]-) ac_tag=-:-;;
13688 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13689 esac
13690 ac_save_IFS=$IFS
13691 IFS=:
13692 set x $ac_tag
13693 IFS=$ac_save_IFS
13694 shift
13695 ac_file=$1
13696 shift
13698 case $ac_mode in
13699 :L) ac_source=$1;;
13700 :[FH])
13701 ac_file_inputs=
13702 for ac_f
13704 case $ac_f in
13705 -) ac_f="$tmp/stdin";;
13706 *) # Look for the file first in the build tree, then in the source tree
13707 # (if the path is not absolute). The absolute path cannot be DOS-style,
13708 # because $ac_f cannot contain `:'.
13709 test -f "$ac_f" ||
13710 case $ac_f in
13711 [\\/$]*) false;;
13712 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13713 esac ||
13714 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13715 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13716 { (exit 1); exit 1; }; };;
13717 esac
13718 ac_file_inputs="$ac_file_inputs $ac_f"
13719 done
13721 # Let's still pretend it is `configure' which instantiates (i.e., don't
13722 # use $as_me), people would be surprised to read:
13723 # /* config.h. Generated by config.status. */
13724 configure_input="Generated from "`IFS=:
13725 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13726 if test x"$ac_file" != x-; then
13727 configure_input="$ac_file. $configure_input"
13728 { echo "$as_me:$LINENO: creating $ac_file" >&5
13729 echo "$as_me: creating $ac_file" >&6;}
13732 case $ac_tag in
13733 *:-:* | *:-) cat >"$tmp/stdin";;
13734 esac
13736 esac
13738 ac_dir=`$as_dirname -- "$ac_file" ||
13739 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13740 X"$ac_file" : 'X\(//\)[^/]' \| \
13741 X"$ac_file" : 'X\(//\)$' \| \
13742 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13743 echo X"$ac_file" |
13744 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13745 s//\1/
13748 /^X\(\/\/\)[^/].*/{
13749 s//\1/
13752 /^X\(\/\/\)$/{
13753 s//\1/
13756 /^X\(\/\).*/{
13757 s//\1/
13760 s/.*/./; q'`
13761 { as_dir="$ac_dir"
13762 case $as_dir in #(
13763 -*) as_dir=./$as_dir;;
13764 esac
13765 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13766 as_dirs=
13767 while :; do
13768 case $as_dir in #(
13769 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13770 *) as_qdir=$as_dir;;
13771 esac
13772 as_dirs="'$as_qdir' $as_dirs"
13773 as_dir=`$as_dirname -- "$as_dir" ||
13774 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13775 X"$as_dir" : 'X\(//\)[^/]' \| \
13776 X"$as_dir" : 'X\(//\)$' \| \
13777 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13778 echo X"$as_dir" |
13779 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13780 s//\1/
13783 /^X\(\/\/\)[^/].*/{
13784 s//\1/
13787 /^X\(\/\/\)$/{
13788 s//\1/
13791 /^X\(\/\).*/{
13792 s//\1/
13795 s/.*/./; q'`
13796 test -d "$as_dir" && break
13797 done
13798 test -z "$as_dirs" || eval "mkdir $as_dirs"
13799 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13800 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13801 { (exit 1); exit 1; }; }; }
13802 ac_builddir=.
13804 case "$ac_dir" in
13805 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13807 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13808 # A ".." for each directory in $ac_dir_suffix.
13809 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13810 case $ac_top_builddir_sub in
13811 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13812 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13813 esac ;;
13814 esac
13815 ac_abs_top_builddir=$ac_pwd
13816 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13817 # for backward compatibility:
13818 ac_top_builddir=$ac_top_build_prefix
13820 case $srcdir in
13821 .) # We are building in place.
13822 ac_srcdir=.
13823 ac_top_srcdir=$ac_top_builddir_sub
13824 ac_abs_top_srcdir=$ac_pwd ;;
13825 [\\/]* | ?:[\\/]* ) # Absolute name.
13826 ac_srcdir=$srcdir$ac_dir_suffix;
13827 ac_top_srcdir=$srcdir
13828 ac_abs_top_srcdir=$srcdir ;;
13829 *) # Relative name.
13830 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13831 ac_top_srcdir=$ac_top_build_prefix$srcdir
13832 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13833 esac
13834 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13837 case $ac_mode in
13840 # CONFIG_FILE
13843 _ACEOF
13845 cat >>$CONFIG_STATUS <<\_ACEOF
13846 # If the template does not know about datarootdir, expand it.
13847 # FIXME: This hack should be removed a few years after 2.60.
13848 ac_datarootdir_hack=; ac_datarootdir_seen=
13850 case `sed -n '/datarootdir/ {
13854 /@datadir@/p
13855 /@docdir@/p
13856 /@infodir@/p
13857 /@localedir@/p
13858 /@mandir@/p
13859 ' $ac_file_inputs` in
13860 *datarootdir*) ac_datarootdir_seen=yes;;
13861 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13862 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13863 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13864 _ACEOF
13865 cat >>$CONFIG_STATUS <<_ACEOF
13866 ac_datarootdir_hack='
13867 s&@datadir@&$datadir&g
13868 s&@docdir@&$docdir&g
13869 s&@infodir@&$infodir&g
13870 s&@localedir@&$localedir&g
13871 s&@mandir@&$mandir&g
13872 s&\\\${datarootdir}&$datarootdir&g' ;;
13873 esac
13874 _ACEOF
13876 # Neutralize VPATH when `$srcdir' = `.'.
13877 # Shell code in configure.ac might set extrasub.
13878 # FIXME: do we really want to maintain this feature?
13879 cat >>$CONFIG_STATUS <<_ACEOF
13880 sed "$ac_vpsub
13881 $extrasub
13882 _ACEOF
13883 cat >>$CONFIG_STATUS <<\_ACEOF
13885 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13886 s&@configure_input@&$configure_input&;t t
13887 s&@top_builddir@&$ac_top_builddir_sub&;t t
13888 s&@srcdir@&$ac_srcdir&;t t
13889 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13890 s&@top_srcdir@&$ac_top_srcdir&;t t
13891 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13892 s&@builddir@&$ac_builddir&;t t
13893 s&@abs_builddir@&$ac_abs_builddir&;t t
13894 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13895 $ac_datarootdir_hack
13896 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
13898 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13899 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13900 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13901 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13902 which seems to be undefined. Please make sure it is defined." >&5
13903 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13904 which seems to be undefined. Please make sure it is defined." >&2;}
13906 rm -f "$tmp/stdin"
13907 case $ac_file in
13908 -) cat "$tmp/out"; rm -f "$tmp/out";;
13909 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13910 esac
13914 # CONFIG_HEADER
13916 _ACEOF
13918 # Transform confdefs.h into a sed script `conftest.defines', that
13919 # substitutes the proper values into config.h.in to produce config.h.
13920 rm -f conftest.defines conftest.tail
13921 # First, append a space to every undef/define line, to ease matching.
13922 echo 's/$/ /' >conftest.defines
13923 # Then, protect against being on the right side of a sed subst, or in
13924 # an unquoted here document, in config.status. If some macros were
13925 # called several times there might be several #defines for the same
13926 # symbol, which is useless. But do not sort them, since the last
13927 # AC_DEFINE must be honored.
13928 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13929 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13930 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13931 # PARAMS is the parameter list in the macro definition--in most cases, it's
13932 # just an empty string.
13933 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13934 ac_dB='\\)[ (].*,\\1define\\2'
13935 ac_dC=' '
13936 ac_dD=' ,'
13938 uniq confdefs.h |
13939 sed -n '
13940 t rset
13941 :rset
13942 s/^[ ]*#[ ]*define[ ][ ]*//
13943 t ok
13946 s/[\\&,]/\\&/g
13947 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13948 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13949 ' >>conftest.defines
13951 # Remove the space that was appended to ease matching.
13952 # Then replace #undef with comments. This is necessary, for
13953 # example, in the case of _POSIX_SOURCE, which is predefined and required
13954 # on some systems where configure will not decide to define it.
13955 # (The regexp can be short, since the line contains either #define or #undef.)
13956 echo 's/ $//
13957 s,^[ #]*u.*,/* & */,' >>conftest.defines
13959 # Break up conftest.defines:
13960 ac_max_sed_lines=50
13962 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13963 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13964 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13965 # et cetera.
13966 ac_in='$ac_file_inputs'
13967 ac_out='"$tmp/out1"'
13968 ac_nxt='"$tmp/out2"'
13970 while :
13972 # Write a here document:
13973 cat >>$CONFIG_STATUS <<_ACEOF
13974 # First, check the format of the line:
13975 cat >"\$tmp/defines.sed" <<\\CEOF
13976 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13977 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13979 :def
13980 _ACEOF
13981 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13982 echo 'CEOF
13983 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13984 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13985 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13986 grep . conftest.tail >/dev/null || break
13987 rm -f conftest.defines
13988 mv conftest.tail conftest.defines
13989 done
13990 rm -f conftest.defines conftest.tail
13992 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13993 cat >>$CONFIG_STATUS <<\_ACEOF
13994 if test x"$ac_file" != x-; then
13995 echo "/* $configure_input */" >"$tmp/config.h"
13996 cat "$ac_result" >>"$tmp/config.h"
13997 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13998 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13999 echo "$as_me: $ac_file is unchanged" >&6;}
14000 else
14001 rm -f $ac_file
14002 mv "$tmp/config.h" $ac_file
14004 else
14005 echo "/* $configure_input */"
14006 cat "$ac_result"
14008 rm -f "$tmp/out12"
14011 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14012 echo "$as_me: executing $ac_file commands" >&6;}
14014 esac
14017 case $ac_file$ac_mode in
14018 "compiler_executable":C)
14019 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14020 mkdir -p $prefix
14021 prefix="${prefix}/${aros_target_cpu}-aros"
14022 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14024 echo ${prefix}
14025 echo ${prefix2}
14026 chmod a+x ${prefix2}-gcc ${prefix2}-ld
14028 ln -sf ${prefix2}-gcc ${prefix}-gcc
14029 ln -sf ${prefix2}-ld ${prefix}-ld
14031 ln -sf $aros_target_as_ln ${prefix}-as
14032 ln -sf $aros_target_nm_ln ${prefix}-nm
14033 ln -sf $aros_target_ar_ln ${prefix}-ar
14034 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
14035 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
14036 ln -sf $aros_target_objdump_ln ${prefix}-objdump
14037 ln -sf $aros_target_strip_ln ${prefix}-strip
14039 ln -sf $aros_target_as_ln ${prefix2}-as
14040 ln -sf $aros_target_nm_ln ${prefix2}-nm
14041 ln -sf $aros_target_ar_ln ${prefix2}-ar
14042 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
14043 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
14044 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
14045 ln -sf $aros_target_strip_ln ${prefix2}-strip
14047 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
14048 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14049 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
14052 esac
14053 done # for ac_tag
14056 { (exit 0); exit 0; }
14057 _ACEOF
14058 chmod +x $CONFIG_STATUS
14059 ac_clean_files=$ac_clean_files_save
14062 # configure is writing to config.log, and then calls config.status.
14063 # config.status does its own redirection, appending to config.log.
14064 # Unfortunately, on DOS this fails, as config.log is still kept open
14065 # by configure, so config.status won't be able to write to it; its
14066 # output is simply discarded. So we exec the FD to /dev/null,
14067 # effectively closing config.log, so it can be properly (re)opened and
14068 # appended to by config.status. When coming back to configure, we
14069 # need to make the FD available again.
14070 if test "$no_create" != yes; then
14071 ac_cs_success=:
14072 ac_config_status_args=
14073 test "$silent" = yes &&
14074 ac_config_status_args="$ac_config_status_args --quiet"
14075 exec 5>/dev/null
14076 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14077 exec 5>>config.log
14078 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14079 # would make configure fail if this is the last instruction.
14080 $ac_cs_success || { (exit 1); exit 1; }
14085 #XXX compatability...
14086 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14088 if test -n "$aros_shared_cflags" ; then
14089 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14090 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg