- Distinguish between different stub functions in debug output.
[cake.git] / configure
blob97fe82ba0bfeb44f1707856679f6ae125c44e6bd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="mmakefile"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
662 CFLAGS
663 LDFLAGS
664 CPPFLAGS
665 ac_ct_CC
666 EXEEXT
667 OBJEXT
670 MMAKE
671 aros_host_ld
672 aros_host_aclocal
673 aros_host_autoconf
674 aros_host_autoheader
675 aros_host_automake
676 aros_host_ar
677 aros_host_ranlib
678 aros_host_strip
682 ECHO
683 MKDIR
684 TOUCH
685 SORT
686 UNIQ
689 BISON
690 FLEX
691 PNGTOPNM
692 PPMTOILBM
694 CHMOD
695 PYTHON
696 PYTHON_VERSION
697 PYTHON_PREFIX
698 PYTHON_EXEC_PREFIX
699 PYTHON_PLATFORM
700 pythondir
701 pkgpythondir
702 pyexecdir
703 pkgpyexecdir
706 TEST
708 GREP
709 EGREP
710 LIBOBJS
711 DISTCC
712 CCACHE
713 LIBLZO
714 aros_kernel_cc
715 aros_target_cc
716 aros_target_ld
717 aros_target_as_ln
718 aros_kernel_ld
719 aros_target_ar_ln
720 aros_target_nm_ln
721 aros_target_objcopy_ln
722 aros_target_objdump_ln
723 aros_target_ranlib_ln
724 aros_target_strip_ln
725 aros_target_nostdinc_cflags
726 aros_target_nostartup_ldflags
727 aros_target_nix_ldflags
728 aros_target_detach_ldflags
729 aros_target_nostdlib_ldflags
730 aros_cflags_iquote
731 aros_cflags_iquote_end
732 XMKMF
733 SDL_CONFIG
734 SDL_CFLAGS
735 SDL_LIBS
736 aros_arch
737 aros_cpu
738 aros_flavour
739 aros_flavour_uc
740 AROS_BUILDDIR
741 SRCDIR
742 AROS_PORTSSRCDIR
743 aros_cc_pre
744 aros_host_arch
745 aros_host_cpu
746 aros_host_cc
747 aros_host_make
748 aros_host_cflags
749 aros_host_ldflags
750 aros_host_debug
751 aros_host_mkdep
752 aros_host_mkargs
753 aros_host_exe_suffix
754 aros_host_lib_suffix
755 aros_tools_dir
756 aros_target_guitheme
757 aros_target_bootloader
758 aros_target_arch
759 aros_target_cpu
760 aros_target_variant
761 aros_target_suffix
762 aros_target_incl
763 aros_target_ar
764 aros_target_ranlib
765 aros_kernel_nm
766 orig_target_cc
767 aros_target_as
768 orig_target_ld
769 aros_target_cc_includes
770 aros_target_cc_path
771 aros_target_objdump
772 aros_target_objcopy
773 aros_target_strip
774 aros_target_nm
775 aros_shared_default
776 aros_shared_ld
777 aros_object_format
778 aros_compiler_libs
779 aros_config_cflags
780 aros_config_aflags
781 aros_config_ldflags
782 aros_shared_cflags
783 aros_shared_aflags
784 aros_shared_ldflags
785 aros_kernel_cflags
786 aros_kernel_ldflags
787 aros_debug_cflags
788 aros_debug_aflags
789 aros_debug_ldflags
790 aros_target_genmap
791 aros_target_strip_flags
792 x11_hidd_target
793 sdl_hidd_target
794 aros_default_wbwidth
795 aros_default_wbheight
796 aros_default_wbdepth
797 DO_XSHM_SUPPORT
798 DO_VIDMODE_SUPPORT
799 aros_host_x11_includes
800 aros_host_x11_libdirs
801 aros_host_sdl_cflags
802 aros_host_sdl_libs
803 aros_bochs_hack
804 aros_serial_debug
805 aros_palm_debug_hack
806 aros_nesting_supervisor
807 ENABLE_DBUS
808 DBUS_CFLAGS
809 DBUS_LIBFLAGS
810 KERNEL_DBUS_KOBJ
811 KERNEL_DBUS_INCLUDES
812 aros_debug
813 aros_mungwall_debug
814 aros_stack_debug
815 aros_modules_debug
816 ignore_undefined_symbols
817 gcc_target_cpu
818 LTLIBOBJS'
819 ac_subst_files=''
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
824 CFLAGS
825 LDFLAGS
826 LIBS
827 CPPFLAGS
829 XMKMF'
832 # Initialize some variables set by options.
833 ac_init_help=
834 ac_init_version=false
835 # The variables have the same names as the options, with
836 # dashes changed to underlines.
837 cache_file=/dev/null
838 exec_prefix=NONE
839 no_create=
840 no_recursion=
841 prefix=NONE
842 program_prefix=NONE
843 program_suffix=NONE
844 program_transform_name=s,x,x,
845 silent=
846 site=
847 srcdir=
848 verbose=
849 x_includes=NONE
850 x_libraries=NONE
852 # Installation directory options.
853 # These are left unexpanded so users can "make install exec_prefix=/foo"
854 # and all the variables that are supposed to be based on exec_prefix
855 # by default will actually change.
856 # Use braces instead of parens because sh, perl, etc. also accept them.
857 # (The list follows the same order as the GNU Coding Standards.)
858 bindir='${exec_prefix}/bin'
859 sbindir='${exec_prefix}/sbin'
860 libexecdir='${exec_prefix}/libexec'
861 datarootdir='${prefix}/share'
862 datadir='${datarootdir}'
863 sysconfdir='${prefix}/etc'
864 sharedstatedir='${prefix}/com'
865 localstatedir='${prefix}/var'
866 includedir='${prefix}/include'
867 oldincludedir='/usr/include'
868 docdir='${datarootdir}/doc/${PACKAGE}'
869 infodir='${datarootdir}/info'
870 htmldir='${docdir}'
871 dvidir='${docdir}'
872 pdfdir='${docdir}'
873 psdir='${docdir}'
874 libdir='${exec_prefix}/lib'
875 localedir='${datarootdir}/locale'
876 mandir='${datarootdir}/man'
878 ac_prev=
879 ac_dashdash=
880 for ac_option
882 # If the previous option needs an argument, assign it.
883 if test -n "$ac_prev"; then
884 eval $ac_prev=\$ac_option
885 ac_prev=
886 continue
889 case $ac_option in
890 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
891 *) ac_optarg=yes ;;
892 esac
894 # Accept the important Cygnus configure options, so we can diagnose typos.
896 case $ac_dashdash$ac_option in
898 ac_dashdash=yes ;;
900 -bindir | --bindir | --bindi | --bind | --bin | --bi)
901 ac_prev=bindir ;;
902 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
903 bindir=$ac_optarg ;;
905 -build | --build | --buil | --bui | --bu)
906 ac_prev=build_alias ;;
907 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
908 build_alias=$ac_optarg ;;
910 -cache-file | --cache-file | --cache-fil | --cache-fi \
911 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
912 ac_prev=cache_file ;;
913 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
914 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
915 cache_file=$ac_optarg ;;
917 --config-cache | -C)
918 cache_file=config.cache ;;
920 -datadir | --datadir | --datadi | --datad)
921 ac_prev=datadir ;;
922 -datadir=* | --datadir=* | --datadi=* | --datad=*)
923 datadir=$ac_optarg ;;
925 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
926 | --dataroo | --dataro | --datar)
927 ac_prev=datarootdir ;;
928 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
929 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
930 datarootdir=$ac_optarg ;;
932 -disable-* | --disable-*)
933 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
936 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
937 { (exit 1); exit 1; }; }
938 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
939 eval enable_$ac_feature=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
951 -enable-* | --enable-*)
952 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
955 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
956 { (exit 1); exit 1; }; }
957 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
958 eval enable_$ac_feature=\$ac_optarg ;;
960 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
961 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
962 | --exec | --exe | --ex)
963 ac_prev=exec_prefix ;;
964 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
965 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
966 | --exec=* | --exe=* | --ex=*)
967 exec_prefix=$ac_optarg ;;
969 -gas | --gas | --ga | --g)
970 # Obsolete; use --with-gas.
971 with_gas=yes ;;
973 -help | --help | --hel | --he | -h)
974 ac_init_help=long ;;
975 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
976 ac_init_help=recursive ;;
977 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
978 ac_init_help=short ;;
980 -host | --host | --hos | --ho)
981 ac_prev=host_alias ;;
982 -host=* | --host=* | --hos=* | --ho=*)
983 host_alias=$ac_optarg ;;
985 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
986 ac_prev=htmldir ;;
987 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
988 | --ht=*)
989 htmldir=$ac_optarg ;;
991 -includedir | --includedir | --includedi | --included | --include \
992 | --includ | --inclu | --incl | --inc)
993 ac_prev=includedir ;;
994 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
995 | --includ=* | --inclu=* | --incl=* | --inc=*)
996 includedir=$ac_optarg ;;
998 -infodir | --infodir | --infodi | --infod | --info | --inf)
999 ac_prev=infodir ;;
1000 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1001 infodir=$ac_optarg ;;
1003 -libdir | --libdir | --libdi | --libd)
1004 ac_prev=libdir ;;
1005 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1006 libdir=$ac_optarg ;;
1008 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1009 | --libexe | --libex | --libe)
1010 ac_prev=libexecdir ;;
1011 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1012 | --libexe=* | --libex=* | --libe=*)
1013 libexecdir=$ac_optarg ;;
1015 -localedir | --localedir | --localedi | --localed | --locale)
1016 ac_prev=localedir ;;
1017 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1018 localedir=$ac_optarg ;;
1020 -localstatedir | --localstatedir | --localstatedi | --localstated \
1021 | --localstate | --localstat | --localsta | --localst | --locals)
1022 ac_prev=localstatedir ;;
1023 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1024 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1025 localstatedir=$ac_optarg ;;
1027 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1028 ac_prev=mandir ;;
1029 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1030 mandir=$ac_optarg ;;
1032 -nfp | --nfp | --nf)
1033 # Obsolete; use --without-fp.
1034 with_fp=no ;;
1036 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1037 | --no-cr | --no-c | -n)
1038 no_create=yes ;;
1040 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1041 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1042 no_recursion=yes ;;
1044 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1045 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1046 | --oldin | --oldi | --old | --ol | --o)
1047 ac_prev=oldincludedir ;;
1048 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1049 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1050 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1051 oldincludedir=$ac_optarg ;;
1053 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1054 ac_prev=prefix ;;
1055 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1056 prefix=$ac_optarg ;;
1058 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1059 | --program-pre | --program-pr | --program-p)
1060 ac_prev=program_prefix ;;
1061 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1062 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1063 program_prefix=$ac_optarg ;;
1065 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1066 | --program-suf | --program-su | --program-s)
1067 ac_prev=program_suffix ;;
1068 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1069 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1070 program_suffix=$ac_optarg ;;
1072 -program-transform-name | --program-transform-name \
1073 | --program-transform-nam | --program-transform-na \
1074 | --program-transform-n | --program-transform- \
1075 | --program-transform | --program-transfor \
1076 | --program-transfo | --program-transf \
1077 | --program-trans | --program-tran \
1078 | --progr-tra | --program-tr | --program-t)
1079 ac_prev=program_transform_name ;;
1080 -program-transform-name=* | --program-transform-name=* \
1081 | --program-transform-nam=* | --program-transform-na=* \
1082 | --program-transform-n=* | --program-transform-=* \
1083 | --program-transform=* | --program-transfor=* \
1084 | --program-transfo=* | --program-transf=* \
1085 | --program-trans=* | --program-tran=* \
1086 | --progr-tra=* | --program-tr=* | --program-t=*)
1087 program_transform_name=$ac_optarg ;;
1089 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1090 ac_prev=pdfdir ;;
1091 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1092 pdfdir=$ac_optarg ;;
1094 -psdir | --psdir | --psdi | --psd | --ps)
1095 ac_prev=psdir ;;
1096 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1097 psdir=$ac_optarg ;;
1099 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1100 | -silent | --silent | --silen | --sile | --sil)
1101 silent=yes ;;
1103 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1104 ac_prev=sbindir ;;
1105 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1106 | --sbi=* | --sb=*)
1107 sbindir=$ac_optarg ;;
1109 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1110 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1111 | --sharedst | --shareds | --shared | --share | --shar \
1112 | --sha | --sh)
1113 ac_prev=sharedstatedir ;;
1114 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1115 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1116 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1117 | --sha=* | --sh=*)
1118 sharedstatedir=$ac_optarg ;;
1120 -site | --site | --sit)
1121 ac_prev=site ;;
1122 -site=* | --site=* | --sit=*)
1123 site=$ac_optarg ;;
1125 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1126 ac_prev=srcdir ;;
1127 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1128 srcdir=$ac_optarg ;;
1130 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1131 | --syscon | --sysco | --sysc | --sys | --sy)
1132 ac_prev=sysconfdir ;;
1133 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1134 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1135 sysconfdir=$ac_optarg ;;
1137 -target | --target | --targe | --targ | --tar | --ta | --t)
1138 ac_prev=target_alias ;;
1139 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1140 target_alias=$ac_optarg ;;
1142 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1143 verbose=yes ;;
1145 -version | --version | --versio | --versi | --vers | -V)
1146 ac_init_version=: ;;
1148 -with-* | --with-*)
1149 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1155 eval with_$ac_package=\$ac_optarg ;;
1157 -without-* | --without-*)
1158 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1159 # Reject names that are not valid shell variable names.
1160 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1161 { echo "$as_me: error: invalid package name: $ac_package" >&2
1162 { (exit 1); exit 1; }; }
1163 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1164 eval with_$ac_package=no ;;
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) { echo "$as_me: error: unrecognized option: $ac_option
1185 Try \`$0 --help' for more information." >&2
1186 { (exit 1); exit 1; }; }
1189 *=*)
1190 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1191 # Reject names that are not valid shell variable names.
1192 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1193 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1194 { (exit 1); exit 1; }; }
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1206 esac
1207 done
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 { echo "$as_me: error: missing argument to $ac_option" >&2
1212 { (exit 1); exit 1; }; }
1215 # Be sure to have absolute directory names.
1216 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1217 datadir sysconfdir sharedstatedir localstatedir includedir \
1218 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1219 libdir localedir mandir
1221 eval ac_val=\$$ac_var
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1227 { (exit 1); exit 1; }; }
1228 done
1230 # There might be people who depend on the old broken behavior: `$host'
1231 # used to hold the argument of --host etc.
1232 # FIXME: To remove some day.
1233 build=$build_alias
1234 host=$host_alias
1235 target=$target_alias
1237 # FIXME: To remove some day.
1238 if test "x$host_alias" != x; then
1239 if test "x$build_alias" = x; then
1240 cross_compiling=maybe
1241 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1242 If a cross compiler is detected then cross compile mode will be used." >&2
1243 elif test "x$build_alias" != "x$host_alias"; then
1244 cross_compiling=yes
1248 ac_tool_prefix=
1249 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1251 test "$silent" = yes && exec 6>/dev/null
1254 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1255 ac_ls_di=`ls -di .` &&
1256 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1257 { echo "$as_me: error: Working directory cannot be determined" >&2
1258 { (exit 1); exit 1; }; }
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260 { echo "$as_me: error: pwd does not report name of working directory" >&2
1261 { (exit 1); exit 1; }; }
1264 # Find the source files, if location was not specified.
1265 if test -z "$srcdir"; then
1266 ac_srcdir_defaulted=yes
1267 # Try the directory containing this script, then the parent directory.
1268 ac_confdir=`$as_dirname -- "$0" ||
1269 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1270 X"$0" : 'X\(//\)[^/]' \| \
1271 X"$0" : 'X\(//\)$' \| \
1272 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 echo X"$0" |
1274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 s//\1/
1278 /^X\(\/\/\)[^/].*/{
1279 s//\1/
1282 /^X\(\/\/\)$/{
1283 s//\1/
1286 /^X\(\/\).*/{
1287 s//\1/
1290 s/.*/./; q'`
1291 srcdir=$ac_confdir
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 srcdir=..
1295 else
1296 ac_srcdir_defaulted=no
1298 if test ! -r "$srcdir/$ac_unique_file"; then
1299 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1300 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1301 { (exit 1); exit 1; }; }
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1306 { (exit 1); exit 1; }; }
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1326 # Report the --help message.
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures this package to adapt to many kinds of systems.
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1339 Defaults for the options are specified in brackets.
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1363 For better control, use the options below.
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1387 cat <<\_ACEOF
1389 X features:
1390 --x-includes=DIR X include files are in DIR
1391 --x-libraries=DIR X library files are in DIR
1393 System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 _ACEOF
1399 if test -n "$ac_init_help"; then
1401 cat <<\_ACEOF
1403 Optional Features:
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-build-type=TYPE
1407 Select the build type. Available types are:
1408 personal, nightly, snapshot, milestone, release. Do
1409 NOT use this option unless you know what you are
1410 doing! (default=personal)
1411 --enable-debug=list Enable different types of debug. Commas or
1412 whitespaces can be used to separate the items in the
1413 list. Available types of debug are: all, none,
1414 messages, stack, mungwall, modules, symbols. If no
1415 list is provided then "all" is assumed.
1416 (default=none)
1417 --enable-crosstools Build cross-compiler toolchains if necessary
1418 (default=no).
1419 --enable-distcc Use distcc as a front end to the compiler
1420 (default=no).
1421 --enable-ccache Use ccache as a front end to the compiler
1422 (default=no).
1423 --enable-target-variant=NAME
1424 Enable a specific target variant(default=none)
1425 --enable-includes=dir Alternative system include directory
1426 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1427 (default=no)
1428 --enable-palm-debug-hack
1429 Enable palm debug output hack in palm native
1430 (default=no)
1431 --enable-nesting-supervisor
1432 Enable nesting supervisor support in unix
1433 (default=no)
1434 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1435 --enable-x11-shm use X11 shared memory (default=auto)
1436 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1437 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1438 --disable-sdltest Do not try to compile and run a test SDL program
1439 --enable-dbus Enable DBUS support via dbus.library (default=no)
1441 Optional Packages:
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-optimization=FLAGS
1445 Use optimization flags FLAGS (default=-O2).
1446 --with-portssources=DIR Where to download sourcecode for external ports
1447 --with-bootloader=NAME Use a specific bootloader
1448 --with-theme=NAME Use a specific GUI Theme
1449 --with-resolution=XRESxYRESxDEPTH
1450 Default resolution of the initial WorkbenchScreen
1451 --with-serial-debug Enable serial debug output in native (default=no)
1452 --with-x use the X Window System
1453 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1454 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 LIBS libraries to pass to the linker, e.g. -l<library>
1462 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1463 you have headers in a nonstandard directory <include dir>
1464 CPP C preprocessor
1465 XMKMF Path to xmkmf, Makefile generator for X Window System
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1470 _ACEOF
1471 ac_status=$?
1474 if test "$ac_init_help" = "recursive"; then
1475 # If there are subdirs, report their specific --help.
1476 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1477 test -d "$ac_dir" || continue
1478 ac_builddir=.
1480 case "$ac_dir" in
1481 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1484 # A ".." for each directory in $ac_dir_suffix.
1485 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1486 case $ac_top_builddir_sub in
1487 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1488 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489 esac ;;
1490 esac
1491 ac_abs_top_builddir=$ac_pwd
1492 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1493 # for backward compatibility:
1494 ac_top_builddir=$ac_top_build_prefix
1496 case $srcdir in
1497 .) # We are building in place.
1498 ac_srcdir=.
1499 ac_top_srcdir=$ac_top_builddir_sub
1500 ac_abs_top_srcdir=$ac_pwd ;;
1501 [\\/]* | ?:[\\/]* ) # Absolute name.
1502 ac_srcdir=$srcdir$ac_dir_suffix;
1503 ac_top_srcdir=$srcdir
1504 ac_abs_top_srcdir=$srcdir ;;
1505 *) # Relative name.
1506 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1507 ac_top_srcdir=$ac_top_build_prefix$srcdir
1508 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1509 esac
1510 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1512 cd "$ac_dir" || { ac_status=$?; continue; }
1513 # Check for guested configure.
1514 if test -f "$ac_srcdir/configure.gnu"; then
1515 echo &&
1516 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1517 elif test -f "$ac_srcdir/configure"; then
1518 echo &&
1519 $SHELL "$ac_srcdir/configure" --help=recursive
1520 else
1521 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1522 fi || ac_status=$?
1523 cd "$ac_pwd" || { ac_status=$?; break; }
1524 done
1527 test -n "$ac_init_help" && exit $ac_status
1528 if $ac_init_version; then
1529 cat <<\_ACEOF
1530 configure
1531 generated by GNU Autoconf 2.61
1533 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1534 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1535 This configure script is free software; the Free Software Foundation
1536 gives unlimited permission to copy, distribute and modify it.
1537 _ACEOF
1538 exit
1540 cat >config.log <<_ACEOF
1541 This file contains any messages produced by compilers while
1542 running configure, to aid debugging if configure makes a mistake.
1544 It was created by $as_me, which was
1545 generated by GNU Autoconf 2.61. Invocation command line was
1547 $ $0 $@
1549 _ACEOF
1550 exec 5>>config.log
1552 cat <<_ASUNAME
1553 ## --------- ##
1554 ## Platform. ##
1555 ## --------- ##
1557 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1558 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1559 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1560 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1561 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1563 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1564 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1566 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1567 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1568 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1569 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1570 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1571 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1572 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1574 _ASUNAME
1576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 for as_dir in $PATH
1579 IFS=$as_save_IFS
1580 test -z "$as_dir" && as_dir=.
1581 echo "PATH: $as_dir"
1582 done
1583 IFS=$as_save_IFS
1585 } >&5
1587 cat >&5 <<_ACEOF
1590 ## ----------- ##
1591 ## Core tests. ##
1592 ## ----------- ##
1594 _ACEOF
1597 # Keep a trace of the command line.
1598 # Strip out --no-create and --no-recursion so they do not pile up.
1599 # Strip out --silent because we don't want to record it for future runs.
1600 # Also quote any args containing shell meta-characters.
1601 # Make two passes to allow for proper duplicate-argument suppression.
1602 ac_configure_args=
1603 ac_configure_args0=
1604 ac_configure_args1=
1605 ac_must_keep_next=false
1606 for ac_pass in 1 2
1608 for ac_arg
1610 case $ac_arg in
1611 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1612 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1613 | -silent | --silent | --silen | --sile | --sil)
1614 continue ;;
1615 *\'*)
1616 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1617 esac
1618 case $ac_pass in
1619 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1621 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1622 if test $ac_must_keep_next = true; then
1623 ac_must_keep_next=false # Got value, back to normal.
1624 else
1625 case $ac_arg in
1626 *=* | --config-cache | -C | -disable-* | --disable-* \
1627 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1628 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1629 | -with-* | --with-* | -without-* | --without-* | --x)
1630 case "$ac_configure_args0 " in
1631 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1632 esac
1634 -* ) ac_must_keep_next=true ;;
1635 esac
1637 ac_configure_args="$ac_configure_args '$ac_arg'"
1639 esac
1640 done
1641 done
1642 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1643 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1645 # When interrupted or exit'd, cleanup temporary files, and complete
1646 # config.log. We remove comments because anyway the quotes in there
1647 # would cause problems or look ugly.
1648 # WARNING: Use '\'' to represent an apostrophe within the trap.
1649 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1650 trap 'exit_status=$?
1651 # Save into config.log some information that might help in debugging.
1653 echo
1655 cat <<\_ASBOX
1656 ## ---------------- ##
1657 ## Cache variables. ##
1658 ## ---------------- ##
1659 _ASBOX
1660 echo
1661 # The following way of writing the cache mishandles newlines in values,
1663 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1664 eval ac_val=\$$ac_var
1665 case $ac_val in #(
1666 *${as_nl}*)
1667 case $ac_var in #(
1668 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1669 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1670 esac
1671 case $ac_var in #(
1672 _ | IFS | as_nl) ;; #(
1673 *) $as_unset $ac_var ;;
1674 esac ;;
1675 esac
1676 done
1677 (set) 2>&1 |
1678 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1679 *${as_nl}ac_space=\ *)
1680 sed -n \
1681 "s/'\''/'\''\\\\'\'''\''/g;
1682 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1683 ;; #(
1685 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1687 esac |
1688 sort
1690 echo
1692 cat <<\_ASBOX
1693 ## ----------------- ##
1694 ## Output variables. ##
1695 ## ----------------- ##
1696 _ASBOX
1697 echo
1698 for ac_var in $ac_subst_vars
1700 eval ac_val=\$$ac_var
1701 case $ac_val in
1702 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1703 esac
1704 echo "$ac_var='\''$ac_val'\''"
1705 done | sort
1706 echo
1708 if test -n "$ac_subst_files"; then
1709 cat <<\_ASBOX
1710 ## ------------------- ##
1711 ## File substitutions. ##
1712 ## ------------------- ##
1713 _ASBOX
1714 echo
1715 for ac_var in $ac_subst_files
1717 eval ac_val=\$$ac_var
1718 case $ac_val in
1719 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1720 esac
1721 echo "$ac_var='\''$ac_val'\''"
1722 done | sort
1723 echo
1726 if test -s confdefs.h; then
1727 cat <<\_ASBOX
1728 ## ----------- ##
1729 ## confdefs.h. ##
1730 ## ----------- ##
1731 _ASBOX
1732 echo
1733 cat confdefs.h
1734 echo
1736 test "$ac_signal" != 0 &&
1737 echo "$as_me: caught signal $ac_signal"
1738 echo "$as_me: exit $exit_status"
1739 } >&5
1740 rm -f core *.core core.conftest.* &&
1741 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1742 exit $exit_status
1744 for ac_signal in 1 2 13 15; do
1745 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1746 done
1747 ac_signal=0
1749 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1750 rm -f -r conftest* confdefs.h
1752 # Predefined preprocessor variables.
1754 cat >>confdefs.h <<_ACEOF
1755 #define PACKAGE_NAME "$PACKAGE_NAME"
1756 _ACEOF
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1761 _ACEOF
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1766 _ACEOF
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_STRING "$PACKAGE_STRING"
1771 _ACEOF
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1776 _ACEOF
1779 # Let the site file select an alternate cache file if it wants to.
1780 # Prefer explicitly selected file to automatically selected ones.
1781 if test -n "$CONFIG_SITE"; then
1782 set x "$CONFIG_SITE"
1783 elif test "x$prefix" != xNONE; then
1784 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1785 else
1786 set x "$ac_default_prefix/share/config.site" \
1787 "$ac_default_prefix/etc/config.site"
1789 shift
1790 for ac_site_file
1792 if test -r "$ac_site_file"; then
1793 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1794 echo "$as_me: loading site script $ac_site_file" >&6;}
1795 sed 's/^/| /' "$ac_site_file" >&5
1796 . "$ac_site_file"
1798 done
1800 if test -r "$cache_file"; then
1801 # Some versions of bash will fail to source /dev/null (special
1802 # files actually), so we avoid doing that.
1803 if test -f "$cache_file"; then
1804 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1805 echo "$as_me: loading cache $cache_file" >&6;}
1806 case $cache_file in
1807 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1808 *) . "./$cache_file";;
1809 esac
1811 else
1812 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1813 echo "$as_me: creating cache $cache_file" >&6;}
1814 >$cache_file
1817 # Check that the precious variables saved in the cache have kept the same
1818 # value.
1819 ac_cache_corrupted=false
1820 for ac_var in $ac_precious_vars; do
1821 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1822 eval ac_new_set=\$ac_env_${ac_var}_set
1823 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1824 eval ac_new_val=\$ac_env_${ac_var}_value
1825 case $ac_old_set,$ac_new_set in
1826 set,)
1827 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1828 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1829 ac_cache_corrupted=: ;;
1830 ,set)
1831 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1832 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1833 ac_cache_corrupted=: ;;
1834 ,);;
1836 if test "x$ac_old_val" != "x$ac_new_val"; then
1837 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1838 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1839 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1840 echo "$as_me: former value: $ac_old_val" >&2;}
1841 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1842 echo "$as_me: current value: $ac_new_val" >&2;}
1843 ac_cache_corrupted=:
1844 fi;;
1845 esac
1846 # Pass precious variables to config.status.
1847 if test "$ac_new_set" = set; then
1848 case $ac_new_val in
1849 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1850 *) ac_arg=$ac_var=$ac_new_val ;;
1851 esac
1852 case " $ac_configure_args " in
1853 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1854 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1855 esac
1857 done
1858 if $ac_cache_corrupted; then
1859 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1860 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1861 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1862 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1863 { (exit 1); exit 1; }; }
1882 ac_ext=c
1883 ac_cpp='$CPP $CPPFLAGS'
1884 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1885 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1886 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1890 ac_aux_dir=
1891 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1892 if test -f "$ac_dir/install-sh"; then
1893 ac_aux_dir=$ac_dir
1894 ac_install_sh="$ac_aux_dir/install-sh -c"
1895 break
1896 elif test -f "$ac_dir/install.sh"; then
1897 ac_aux_dir=$ac_dir
1898 ac_install_sh="$ac_aux_dir/install.sh -c"
1899 break
1900 elif test -f "$ac_dir/shtool"; then
1901 ac_aux_dir=$ac_dir
1902 ac_install_sh="$ac_aux_dir/shtool install -c"
1903 break
1905 done
1906 if test -z "$ac_aux_dir"; then
1907 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1908 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1909 { (exit 1); exit 1; }; }
1912 # These three variables are undocumented and unsupported,
1913 # and are intended to be withdrawn in a future Autoconf release.
1914 # They can cause serious problems if a builder's source tree is in a directory
1915 # whose full name contains unusual characters.
1916 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1917 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1918 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1922 # Check what host we are running on.
1923 # If a target is not suggested, we use this one.
1924 # Note that what we call a target, Autoconf calls a host.
1925 # Make sure we can run config.sub.
1926 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1927 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1928 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1929 { (exit 1); exit 1; }; }
1931 { echo "$as_me:$LINENO: checking build system type" >&5
1932 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1933 if test "${ac_cv_build+set}" = set; then
1934 echo $ECHO_N "(cached) $ECHO_C" >&6
1935 else
1936 ac_build_alias=$build_alias
1937 test "x$ac_build_alias" = x &&
1938 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1939 test "x$ac_build_alias" = x &&
1940 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1941 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1942 { (exit 1); exit 1; }; }
1943 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1944 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1945 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1946 { (exit 1); exit 1; }; }
1949 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1950 echo "${ECHO_T}$ac_cv_build" >&6; }
1951 case $ac_cv_build in
1952 *-*-*) ;;
1953 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1954 echo "$as_me: error: invalid value of canonical build" >&2;}
1955 { (exit 1); exit 1; }; };;
1956 esac
1957 build=$ac_cv_build
1958 ac_save_IFS=$IFS; IFS='-'
1959 set x $ac_cv_build
1960 shift
1961 build_cpu=$1
1962 build_vendor=$2
1963 shift; shift
1964 # Remember, the first character of IFS is used to create $*,
1965 # except with old shells:
1966 build_os=$*
1967 IFS=$ac_save_IFS
1968 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1971 { echo "$as_me:$LINENO: checking host system type" >&5
1972 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1973 if test "${ac_cv_host+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1975 else
1976 if test "x$host_alias" = x; then
1977 ac_cv_host=$ac_cv_build
1978 else
1979 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1980 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1981 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1982 { (exit 1); exit 1; }; }
1986 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1987 echo "${ECHO_T}$ac_cv_host" >&6; }
1988 case $ac_cv_host in
1989 *-*-*) ;;
1990 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1991 echo "$as_me: error: invalid value of canonical host" >&2;}
1992 { (exit 1); exit 1; }; };;
1993 esac
1994 host=$ac_cv_host
1995 ac_save_IFS=$IFS; IFS='-'
1996 set x $ac_cv_host
1997 shift
1998 host_cpu=$1
1999 host_vendor=$2
2000 shift; shift
2001 # Remember, the first character of IFS is used to create $*,
2002 # except with old shells:
2003 host_os=$*
2004 IFS=$ac_save_IFS
2005 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2009 # The AROS target is slightly different to the normal GNU style
2010 # format. We don't have the middle part, and we reverse the order
2011 # of the $(CPU) and $(OS) bits.
2013 # Don't strip the version of the target yet, it might be
2014 # useful on some systems.
2016 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2017 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2019 if test "$target" = "NONE" ; then
2020 target=$host_os-$host_cpu
2021 cross_compile=no
2022 else
2023 if test "$target" = "" ; then
2024 target=$host_os-$host_cpu
2025 cross_compile=no
2026 else
2027 cross_compile=yes
2030 { echo "$as_me:$LINENO: result: $target" >&5
2031 echo "${ECHO_T}$target" >&6; }
2033 #don't know where else to put this...
2034 { echo "$as_me:$LINENO: checking Building AROS in .. " >&5
2035 echo $ECHO_N "checking Building AROS in .. ... $ECHO_C" >&6; }
2036 AROS_BUILDDIR=$PWD
2037 { echo "$as_me:$LINENO: result: $AROS_BUILDDIR" >&5
2038 echo "${ECHO_T}$AROS_BUILDDIR" >&6; }
2040 { echo "$as_me:$LINENO: checking AROS Source in .. " >&5
2041 echo $ECHO_N "checking AROS Source in .. ... $ECHO_C" >&6; }
2042 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2043 SRCDIR=${srcpwd}
2044 { echo "$as_me:$LINENO: result: $SRCDIR" >&5
2045 echo "${ECHO_T}$SRCDIR" >&6; }
2047 # Parse the target field into something useful.
2049 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2050 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2053 aros_default_wbwidth=800
2054 aros_default_wbheight=600
2055 aros_default_wbdepth=4
2058 # The first step is to find the host binaries.
2059 # Check for a compiler.
2060 ac_ext=c
2061 ac_cpp='$CPP $CPPFLAGS'
2062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2065 if test -n "$ac_tool_prefix"; then
2066 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2067 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2068 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2070 if test "${ac_cv_prog_CC+set}" = set; then
2071 echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073 if test -n "$CC"; then
2074 ac_cv_prog_CC="$CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079 IFS=$as_save_IFS
2080 test -z "$as_dir" && as_dir=.
2081 for ac_exec_ext in '' $ac_executable_extensions; do
2082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2083 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2084 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085 break 2
2087 done
2088 done
2089 IFS=$as_save_IFS
2093 CC=$ac_cv_prog_CC
2094 if test -n "$CC"; then
2095 { echo "$as_me:$LINENO: result: $CC" >&5
2096 echo "${ECHO_T}$CC" >&6; }
2097 else
2098 { echo "$as_me:$LINENO: result: no" >&5
2099 echo "${ECHO_T}no" >&6; }
2104 if test -z "$ac_cv_prog_CC"; then
2105 ac_ct_CC=$CC
2106 # Extract the first word of "gcc", so it can be a program name with args.
2107 set dummy gcc; ac_word=$2
2108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2110 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111 echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113 if test -n "$ac_ct_CC"; then
2114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2119 IFS=$as_save_IFS
2120 test -z "$as_dir" && as_dir=.
2121 for ac_exec_ext in '' $ac_executable_extensions; do
2122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2123 ac_cv_prog_ac_ct_CC="gcc"
2124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125 break 2
2127 done
2128 done
2129 IFS=$as_save_IFS
2133 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2134 if test -n "$ac_ct_CC"; then
2135 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2136 echo "${ECHO_T}$ac_ct_CC" >&6; }
2137 else
2138 { echo "$as_me:$LINENO: result: no" >&5
2139 echo "${ECHO_T}no" >&6; }
2142 if test "x$ac_ct_CC" = x; then
2143 CC=""
2144 else
2145 case $cross_compiling:$ac_tool_warned in
2146 yes:)
2147 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2148 whose name does not start with the host triplet. If you think this
2149 configuration is useful to you, please write to autoconf@gnu.org." >&5
2150 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2151 whose name does not start with the host triplet. If you think this
2152 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2153 ac_tool_warned=yes ;;
2154 esac
2155 CC=$ac_ct_CC
2157 else
2158 CC="$ac_cv_prog_CC"
2161 if test -z "$CC"; then
2162 if test -n "$ac_tool_prefix"; then
2163 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2164 set dummy ${ac_tool_prefix}cc; ac_word=$2
2165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2167 if test "${ac_cv_prog_CC+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 if test -n "$CC"; then
2171 ac_cv_prog_CC="$CC" # Let the user override the test.
2172 else
2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2174 for as_dir in $PATH
2176 IFS=$as_save_IFS
2177 test -z "$as_dir" && as_dir=.
2178 for ac_exec_ext in '' $ac_executable_extensions; do
2179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2180 ac_cv_prog_CC="${ac_tool_prefix}cc"
2181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2182 break 2
2184 done
2185 done
2186 IFS=$as_save_IFS
2190 CC=$ac_cv_prog_CC
2191 if test -n "$CC"; then
2192 { echo "$as_me:$LINENO: result: $CC" >&5
2193 echo "${ECHO_T}$CC" >&6; }
2194 else
2195 { echo "$as_me:$LINENO: result: no" >&5
2196 echo "${ECHO_T}no" >&6; }
2202 if test -z "$CC"; then
2203 # Extract the first word of "cc", so it can be a program name with args.
2204 set dummy cc; ac_word=$2
2205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2207 if test "${ac_cv_prog_CC+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210 if test -n "$CC"; then
2211 ac_cv_prog_CC="$CC" # Let the user override the test.
2212 else
2213 ac_prog_rejected=no
2214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2215 for as_dir in $PATH
2217 IFS=$as_save_IFS
2218 test -z "$as_dir" && as_dir=.
2219 for ac_exec_ext in '' $ac_executable_extensions; do
2220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2221 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2222 ac_prog_rejected=yes
2223 continue
2225 ac_cv_prog_CC="cc"
2226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2227 break 2
2229 done
2230 done
2231 IFS=$as_save_IFS
2233 if test $ac_prog_rejected = yes; then
2234 # We found a bogon in the path, so make sure we never use it.
2235 set dummy $ac_cv_prog_CC
2236 shift
2237 if test $# != 0; then
2238 # We chose a different compiler from the bogus one.
2239 # However, it has the same basename, so the bogon will be chosen
2240 # first if we set CC to just the basename; use the full file name.
2241 shift
2242 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2247 CC=$ac_cv_prog_CC
2248 if test -n "$CC"; then
2249 { echo "$as_me:$LINENO: result: $CC" >&5
2250 echo "${ECHO_T}$CC" >&6; }
2251 else
2252 { echo "$as_me:$LINENO: result: no" >&5
2253 echo "${ECHO_T}no" >&6; }
2258 if test -z "$CC"; then
2259 if test -n "$ac_tool_prefix"; then
2260 for ac_prog in cl.exe
2262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2266 if test "${ac_cv_prog_CC+set}" = set; then
2267 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 else
2269 if test -n "$CC"; then
2270 ac_cv_prog_CC="$CC" # Let the user override the test.
2271 else
2272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2273 for as_dir in $PATH
2275 IFS=$as_save_IFS
2276 test -z "$as_dir" && as_dir=.
2277 for ac_exec_ext in '' $ac_executable_extensions; do
2278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2279 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2281 break 2
2283 done
2284 done
2285 IFS=$as_save_IFS
2289 CC=$ac_cv_prog_CC
2290 if test -n "$CC"; then
2291 { echo "$as_me:$LINENO: result: $CC" >&5
2292 echo "${ECHO_T}$CC" >&6; }
2293 else
2294 { echo "$as_me:$LINENO: result: no" >&5
2295 echo "${ECHO_T}no" >&6; }
2299 test -n "$CC" && break
2300 done
2302 if test -z "$CC"; then
2303 ac_ct_CC=$CC
2304 for ac_prog in cl.exe
2306 # Extract the first word of "$ac_prog", so it can be a program name with args.
2307 set dummy $ac_prog; ac_word=$2
2308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2310 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2311 echo $ECHO_N "(cached) $ECHO_C" >&6
2312 else
2313 if test -n "$ac_ct_CC"; then
2314 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2315 else
2316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2317 for as_dir in $PATH
2319 IFS=$as_save_IFS
2320 test -z "$as_dir" && as_dir=.
2321 for ac_exec_ext in '' $ac_executable_extensions; do
2322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2323 ac_cv_prog_ac_ct_CC="$ac_prog"
2324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2325 break 2
2327 done
2328 done
2329 IFS=$as_save_IFS
2333 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2334 if test -n "$ac_ct_CC"; then
2335 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2336 echo "${ECHO_T}$ac_ct_CC" >&6; }
2337 else
2338 { echo "$as_me:$LINENO: result: no" >&5
2339 echo "${ECHO_T}no" >&6; }
2343 test -n "$ac_ct_CC" && break
2344 done
2346 if test "x$ac_ct_CC" = x; then
2347 CC=""
2348 else
2349 case $cross_compiling:$ac_tool_warned in
2350 yes:)
2351 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2352 whose name does not start with the host triplet. If you think this
2353 configuration is useful to you, please write to autoconf@gnu.org." >&5
2354 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2355 whose name does not start with the host triplet. If you think this
2356 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2357 ac_tool_warned=yes ;;
2358 esac
2359 CC=$ac_ct_CC
2366 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2367 See \`config.log' for more details." >&5
2368 echo "$as_me: error: no acceptable C compiler found in \$PATH
2369 See \`config.log' for more details." >&2;}
2370 { (exit 1); exit 1; }; }
2372 # Provide some information about the compiler.
2373 echo "$as_me:$LINENO: checking for C compiler version" >&5
2374 ac_compiler=`set X $ac_compile; echo $2`
2375 { (ac_try="$ac_compiler --version >&5"
2376 case "(($ac_try" in
2377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2378 *) ac_try_echo=$ac_try;;
2379 esac
2380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2381 (eval "$ac_compiler --version >&5") 2>&5
2382 ac_status=$?
2383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384 (exit $ac_status); }
2385 { (ac_try="$ac_compiler -v >&5"
2386 case "(($ac_try" in
2387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2388 *) ac_try_echo=$ac_try;;
2389 esac
2390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2391 (eval "$ac_compiler -v >&5") 2>&5
2392 ac_status=$?
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); }
2395 { (ac_try="$ac_compiler -V >&5"
2396 case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2399 esac
2400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_compiler -V >&5") 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }
2406 cat >conftest.$ac_ext <<_ACEOF
2407 /* confdefs.h. */
2408 _ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h. */
2414 main ()
2418 return 0;
2420 _ACEOF
2421 ac_clean_files_save=$ac_clean_files
2422 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2423 # Try to create an executable without -o first, disregard a.out.
2424 # It will help us diagnose broken compilers, and finding out an intuition
2425 # of exeext.
2426 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2427 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2428 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2430 # List of possible output files, starting from the most likely.
2431 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2432 # only as a last resort. b.out is created by i960 compilers.
2433 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2435 # The IRIX 6 linker writes into existing files which may not be
2436 # executable, retaining their permissions. Remove them first so a
2437 # subsequent execution test works.
2438 ac_rmfiles=
2439 for ac_file in $ac_files
2441 case $ac_file in
2442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2443 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2444 esac
2445 done
2446 rm -f $ac_rmfiles
2448 if { (ac_try="$ac_link_default"
2449 case "(($ac_try" in
2450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2451 *) ac_try_echo=$ac_try;;
2452 esac
2453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2454 (eval "$ac_link_default") 2>&5
2455 ac_status=$?
2456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2457 (exit $ac_status); }; then
2458 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2459 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2460 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2461 # so that the user can short-circuit this test for compilers unknown to
2462 # Autoconf.
2463 for ac_file in $ac_files ''
2465 test -f "$ac_file" || continue
2466 case $ac_file in
2467 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2469 [ab].out )
2470 # We found the default executable, but exeext='' is most
2471 # certainly right.
2472 break;;
2473 *.* )
2474 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2475 then :; else
2476 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2478 # We set ac_cv_exeext here because the later test for it is not
2479 # safe: cross compilers may not add the suffix if given an `-o'
2480 # argument, so we may need to know it at that point already.
2481 # Even if this section looks crufty: it has the advantage of
2482 # actually working.
2483 break;;
2485 break;;
2486 esac
2487 done
2488 test "$ac_cv_exeext" = no && ac_cv_exeext=
2490 else
2491 ac_file=''
2494 { echo "$as_me:$LINENO: result: $ac_file" >&5
2495 echo "${ECHO_T}$ac_file" >&6; }
2496 if test -z "$ac_file"; then
2497 echo "$as_me: failed program was:" >&5
2498 sed 's/^/| /' conftest.$ac_ext >&5
2500 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2501 See \`config.log' for more details." >&5
2502 echo "$as_me: error: C compiler cannot create executables
2503 See \`config.log' for more details." >&2;}
2504 { (exit 77); exit 77; }; }
2507 ac_exeext=$ac_cv_exeext
2509 # Check that the compiler produces executables we can run. If not, either
2510 # the compiler is broken, or we cross compile.
2511 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2512 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2513 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2514 # If not cross compiling, check that we can run a simple program.
2515 if test "$cross_compiling" != yes; then
2516 if { ac_try='./$ac_file'
2517 { (case "(($ac_try" in
2518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2519 *) ac_try_echo=$ac_try;;
2520 esac
2521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2522 (eval "$ac_try") 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; }; then
2526 cross_compiling=no
2527 else
2528 if test "$cross_compiling" = maybe; then
2529 cross_compiling=yes
2530 else
2531 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2532 If you meant to cross compile, use \`--host'.
2533 See \`config.log' for more details." >&5
2534 echo "$as_me: error: cannot run C compiled programs.
2535 If you meant to cross compile, use \`--host'.
2536 See \`config.log' for more details." >&2;}
2537 { (exit 1); exit 1; }; }
2541 { echo "$as_me:$LINENO: result: yes" >&5
2542 echo "${ECHO_T}yes" >&6; }
2544 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2545 ac_clean_files=$ac_clean_files_save
2546 # Check that the compiler produces executables we can run. If not, either
2547 # the compiler is broken, or we cross compile.
2548 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2549 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2550 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2551 echo "${ECHO_T}$cross_compiling" >&6; }
2553 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2554 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2555 if { (ac_try="$ac_link"
2556 case "(($ac_try" in
2557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2558 *) ac_try_echo=$ac_try;;
2559 esac
2560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2561 (eval "$ac_link") 2>&5
2562 ac_status=$?
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); }; then
2565 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2566 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2567 # work properly (i.e., refer to `conftest.exe'), while it won't with
2568 # `rm'.
2569 for ac_file in conftest.exe conftest conftest.*; do
2570 test -f "$ac_file" || continue
2571 case $ac_file in
2572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2573 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2574 break;;
2575 * ) break;;
2576 esac
2577 done
2578 else
2579 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2580 See \`config.log' for more details." >&5
2581 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2582 See \`config.log' for more details." >&2;}
2583 { (exit 1); exit 1; }; }
2586 rm -f conftest$ac_cv_exeext
2587 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2588 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2590 rm -f conftest.$ac_ext
2591 EXEEXT=$ac_cv_exeext
2592 ac_exeext=$EXEEXT
2593 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2594 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2595 if test "${ac_cv_objext+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598 cat >conftest.$ac_ext <<_ACEOF
2599 /* confdefs.h. */
2600 _ACEOF
2601 cat confdefs.h >>conftest.$ac_ext
2602 cat >>conftest.$ac_ext <<_ACEOF
2603 /* end confdefs.h. */
2606 main ()
2610 return 0;
2612 _ACEOF
2613 rm -f conftest.o conftest.obj
2614 if { (ac_try="$ac_compile"
2615 case "(($ac_try" in
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2618 esac
2619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620 (eval "$ac_compile") 2>&5
2621 ac_status=$?
2622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2623 (exit $ac_status); }; then
2624 for ac_file in conftest.o conftest.obj conftest.*; do
2625 test -f "$ac_file" || continue;
2626 case $ac_file in
2627 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2628 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2629 break;;
2630 esac
2631 done
2632 else
2633 echo "$as_me: failed program was:" >&5
2634 sed 's/^/| /' conftest.$ac_ext >&5
2636 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2637 See \`config.log' for more details." >&5
2638 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2639 See \`config.log' for more details." >&2;}
2640 { (exit 1); exit 1; }; }
2643 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2645 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2646 echo "${ECHO_T}$ac_cv_objext" >&6; }
2647 OBJEXT=$ac_cv_objext
2648 ac_objext=$OBJEXT
2649 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2650 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2651 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2652 echo $ECHO_N "(cached) $ECHO_C" >&6
2653 else
2654 cat >conftest.$ac_ext <<_ACEOF
2655 /* confdefs.h. */
2656 _ACEOF
2657 cat confdefs.h >>conftest.$ac_ext
2658 cat >>conftest.$ac_ext <<_ACEOF
2659 /* end confdefs.h. */
2662 main ()
2664 #ifndef __GNUC__
2665 choke me
2666 #endif
2669 return 0;
2671 _ACEOF
2672 rm -f conftest.$ac_objext
2673 if { (ac_try="$ac_compile"
2674 case "(($ac_try" in
2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2676 *) ac_try_echo=$ac_try;;
2677 esac
2678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2679 (eval "$ac_compile") 2>conftest.er1
2680 ac_status=$?
2681 grep -v '^ *+' conftest.er1 >conftest.err
2682 rm -f conftest.er1
2683 cat conftest.err >&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); } && {
2686 test -z "$ac_c_werror_flag" ||
2687 test ! -s conftest.err
2688 } && test -s conftest.$ac_objext; then
2689 ac_compiler_gnu=yes
2690 else
2691 echo "$as_me: failed program was:" >&5
2692 sed 's/^/| /' conftest.$ac_ext >&5
2694 ac_compiler_gnu=no
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2698 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2701 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2702 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2703 GCC=`test $ac_compiler_gnu = yes && echo yes`
2704 ac_test_CFLAGS=${CFLAGS+set}
2705 ac_save_CFLAGS=$CFLAGS
2706 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2707 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2708 if test "${ac_cv_prog_cc_g+set}" = set; then
2709 echo $ECHO_N "(cached) $ECHO_C" >&6
2710 else
2711 ac_save_c_werror_flag=$ac_c_werror_flag
2712 ac_c_werror_flag=yes
2713 ac_cv_prog_cc_g=no
2714 CFLAGS="-g"
2715 cat >conftest.$ac_ext <<_ACEOF
2716 /* confdefs.h. */
2717 _ACEOF
2718 cat confdefs.h >>conftest.$ac_ext
2719 cat >>conftest.$ac_ext <<_ACEOF
2720 /* end confdefs.h. */
2723 main ()
2727 return 0;
2729 _ACEOF
2730 rm -f conftest.$ac_objext
2731 if { (ac_try="$ac_compile"
2732 case "(($ac_try" in
2733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2734 *) ac_try_echo=$ac_try;;
2735 esac
2736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2737 (eval "$ac_compile") 2>conftest.er1
2738 ac_status=$?
2739 grep -v '^ *+' conftest.er1 >conftest.err
2740 rm -f conftest.er1
2741 cat conftest.err >&5
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); } && {
2744 test -z "$ac_c_werror_flag" ||
2745 test ! -s conftest.err
2746 } && test -s conftest.$ac_objext; then
2747 ac_cv_prog_cc_g=yes
2748 else
2749 echo "$as_me: failed program was:" >&5
2750 sed 's/^/| /' conftest.$ac_ext >&5
2752 CFLAGS=""
2753 cat >conftest.$ac_ext <<_ACEOF
2754 /* confdefs.h. */
2755 _ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2761 main ()
2765 return 0;
2767 _ACEOF
2768 rm -f conftest.$ac_objext
2769 if { (ac_try="$ac_compile"
2770 case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2773 esac
2774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2775 (eval "$ac_compile") 2>conftest.er1
2776 ac_status=$?
2777 grep -v '^ *+' conftest.er1 >conftest.err
2778 rm -f conftest.er1
2779 cat conftest.err >&5
2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2781 (exit $ac_status); } && {
2782 test -z "$ac_c_werror_flag" ||
2783 test ! -s conftest.err
2784 } && test -s conftest.$ac_objext; then
2786 else
2787 echo "$as_me: failed program was:" >&5
2788 sed 's/^/| /' conftest.$ac_ext >&5
2790 ac_c_werror_flag=$ac_save_c_werror_flag
2791 CFLAGS="-g"
2792 cat >conftest.$ac_ext <<_ACEOF
2793 /* confdefs.h. */
2794 _ACEOF
2795 cat confdefs.h >>conftest.$ac_ext
2796 cat >>conftest.$ac_ext <<_ACEOF
2797 /* end confdefs.h. */
2800 main ()
2804 return 0;
2806 _ACEOF
2807 rm -f conftest.$ac_objext
2808 if { (ac_try="$ac_compile"
2809 case "(($ac_try" in
2810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2811 *) ac_try_echo=$ac_try;;
2812 esac
2813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2814 (eval "$ac_compile") 2>conftest.er1
2815 ac_status=$?
2816 grep -v '^ *+' conftest.er1 >conftest.err
2817 rm -f conftest.er1
2818 cat conftest.err >&5
2819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820 (exit $ac_status); } && {
2821 test -z "$ac_c_werror_flag" ||
2822 test ! -s conftest.err
2823 } && test -s conftest.$ac_objext; then
2824 ac_cv_prog_cc_g=yes
2825 else
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2839 ac_c_werror_flag=$ac_save_c_werror_flag
2841 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2842 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2843 if test "$ac_test_CFLAGS" = set; then
2844 CFLAGS=$ac_save_CFLAGS
2845 elif test $ac_cv_prog_cc_g = yes; then
2846 if test "$GCC" = yes; then
2847 CFLAGS="-g -O2"
2848 else
2849 CFLAGS="-g"
2851 else
2852 if test "$GCC" = yes; then
2853 CFLAGS="-O2"
2854 else
2855 CFLAGS=
2858 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2859 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2860 if test "${ac_cv_prog_cc_c89+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 ac_cv_prog_cc_c89=no
2864 ac_save_CC=$CC
2865 cat >conftest.$ac_ext <<_ACEOF
2866 /* confdefs.h. */
2867 _ACEOF
2868 cat confdefs.h >>conftest.$ac_ext
2869 cat >>conftest.$ac_ext <<_ACEOF
2870 /* end confdefs.h. */
2871 #include <stdarg.h>
2872 #include <stdio.h>
2873 #include <sys/types.h>
2874 #include <sys/stat.h>
2875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2876 struct buf { int x; };
2877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2878 static char *e (p, i)
2879 char **p;
2880 int i;
2882 return p[i];
2884 static char *f (char * (*g) (char **, int), char **p, ...)
2886 char *s;
2887 va_list v;
2888 va_start (v,p);
2889 s = g (p, va_arg (v,int));
2890 va_end (v);
2891 return s;
2894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2895 function prototypes and stuff, but not '\xHH' hex character constants.
2896 These don't provoke an error unfortunately, instead are silently treated
2897 as 'x'. The following induces an error, until -std is added to get
2898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2899 array size at least. It's necessary to write '\x00'==0 to get something
2900 that's true only with -std. */
2901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2903 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2904 inside strings and character constants. */
2905 #define FOO(x) 'x'
2906 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2908 int test (int i, double x);
2909 struct s1 {int (*f) (int a);};
2910 struct s2 {int (*f) (double a);};
2911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2912 int argc;
2913 char **argv;
2915 main ()
2917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2919 return 0;
2921 _ACEOF
2922 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2925 CC="$ac_save_CC $ac_arg"
2926 rm -f conftest.$ac_objext
2927 if { (ac_try="$ac_compile"
2928 case "(($ac_try" in
2929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2930 *) ac_try_echo=$ac_try;;
2931 esac
2932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2933 (eval "$ac_compile") 2>conftest.er1
2934 ac_status=$?
2935 grep -v '^ *+' conftest.er1 >conftest.err
2936 rm -f conftest.er1
2937 cat conftest.err >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); } && {
2940 test -z "$ac_c_werror_flag" ||
2941 test ! -s conftest.err
2942 } && test -s conftest.$ac_objext; then
2943 ac_cv_prog_cc_c89=$ac_arg
2944 else
2945 echo "$as_me: failed program was:" >&5
2946 sed 's/^/| /' conftest.$ac_ext >&5
2951 rm -f core conftest.err conftest.$ac_objext
2952 test "x$ac_cv_prog_cc_c89" != "xno" && break
2953 done
2954 rm -f conftest.$ac_ext
2955 CC=$ac_save_CC
2958 # AC_CACHE_VAL
2959 case "x$ac_cv_prog_cc_c89" in
2961 { echo "$as_me:$LINENO: result: none needed" >&5
2962 echo "${ECHO_T}none needed" >&6; } ;;
2963 xno)
2964 { echo "$as_me:$LINENO: result: unsupported" >&5
2965 echo "${ECHO_T}unsupported" >&6; } ;;
2967 CC="$CC $ac_cv_prog_cc_c89"
2968 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2969 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2970 esac
2973 ac_ext=c
2974 ac_cpp='$CPP $CPPFLAGS'
2975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2979 case $ac_cv_prog_cc_stdc in
2980 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2981 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2982 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_cc_c99+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2985 else
2986 ac_cv_prog_cc_c99=no
2987 ac_save_CC=$CC
2988 cat >conftest.$ac_ext <<_ACEOF
2989 /* confdefs.h. */
2990 _ACEOF
2991 cat confdefs.h >>conftest.$ac_ext
2992 cat >>conftest.$ac_ext <<_ACEOF
2993 /* end confdefs.h. */
2994 #include <stdarg.h>
2995 #include <stdbool.h>
2996 #include <stdlib.h>
2997 #include <wchar.h>
2998 #include <stdio.h>
3000 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3001 #define debug(...) fprintf (stderr, __VA_ARGS__)
3002 #define showlist(...) puts (#__VA_ARGS__)
3003 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3004 static void
3005 test_varargs_macros (void)
3007 int x = 1234;
3008 int y = 5678;
3009 debug ("Flag");
3010 debug ("X = %d\n", x);
3011 showlist (The first, second, and third items.);
3012 report (x>y, "x is %d but y is %d", x, y);
3015 // Check long long types.
3016 #define BIG64 18446744073709551615ull
3017 #define BIG32 4294967295ul
3018 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3019 #if !BIG_OK
3020 your preprocessor is broken;
3021 #endif
3022 #if BIG_OK
3023 #else
3024 your preprocessor is broken;
3025 #endif
3026 static long long int bignum = -9223372036854775807LL;
3027 static unsigned long long int ubignum = BIG64;
3029 struct incomplete_array
3031 int datasize;
3032 double data[];
3035 struct named_init {
3036 int number;
3037 const wchar_t *name;
3038 double average;
3041 typedef const char *ccp;
3043 static inline int
3044 test_restrict (ccp restrict text)
3046 // See if C++-style comments work.
3047 // Iterate through items via the restricted pointer.
3048 // Also check for declarations in for loops.
3049 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3050 continue;
3051 return 0;
3054 // Check varargs and va_copy.
3055 static void
3056 test_varargs (const char *format, ...)
3058 va_list args;
3059 va_start (args, format);
3060 va_list args_copy;
3061 va_copy (args_copy, args);
3063 const char *str;
3064 int number;
3065 float fnumber;
3067 while (*format)
3069 switch (*format++)
3071 case 's': // string
3072 str = va_arg (args_copy, const char *);
3073 break;
3074 case 'd': // int
3075 number = va_arg (args_copy, int);
3076 break;
3077 case 'f': // float
3078 fnumber = va_arg (args_copy, double);
3079 break;
3080 default:
3081 break;
3084 va_end (args_copy);
3085 va_end (args);
3089 main ()
3092 // Check bool.
3093 _Bool success = false;
3095 // Check restrict.
3096 if (test_restrict ("String literal") == 0)
3097 success = true;
3098 char *restrict newvar = "Another string";
3100 // Check varargs.
3101 test_varargs ("s, d' f .", "string", 65, 34.234);
3102 test_varargs_macros ();
3104 // Check flexible array members.
3105 struct incomplete_array *ia =
3106 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3107 ia->datasize = 10;
3108 for (int i = 0; i < ia->datasize; ++i)
3109 ia->data[i] = i * 1.234;
3111 // Check named initializers.
3112 struct named_init ni = {
3113 .number = 34,
3114 .name = L"Test wide string",
3115 .average = 543.34343,
3118 ni.number = 58;
3120 int dynamic_array[ni.number];
3121 dynamic_array[ni.number - 1] = 543;
3123 // work around unused variable warnings
3124 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3125 || dynamic_array[ni.number - 1] != 543);
3128 return 0;
3130 _ACEOF
3131 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3133 CC="$ac_save_CC $ac_arg"
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3136 case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3141 (eval "$ac_compile") 2>conftest.er1
3142 ac_status=$?
3143 grep -v '^ *+' conftest.er1 >conftest.err
3144 rm -f conftest.er1
3145 cat conftest.err >&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); } && {
3148 test -z "$ac_c_werror_flag" ||
3149 test ! -s conftest.err
3150 } && test -s conftest.$ac_objext; then
3151 ac_cv_prog_cc_c99=$ac_arg
3152 else
3153 echo "$as_me: failed program was:" >&5
3154 sed 's/^/| /' conftest.$ac_ext >&5
3159 rm -f core conftest.err conftest.$ac_objext
3160 test "x$ac_cv_prog_cc_c99" != "xno" && break
3161 done
3162 rm -f conftest.$ac_ext
3163 CC=$ac_save_CC
3166 # AC_CACHE_VAL
3167 case "x$ac_cv_prog_cc_c99" in
3169 { echo "$as_me:$LINENO: result: none needed" >&5
3170 echo "${ECHO_T}none needed" >&6; } ;;
3171 xno)
3172 { echo "$as_me:$LINENO: result: unsupported" >&5
3173 echo "${ECHO_T}unsupported" >&6; } ;;
3175 CC="$CC $ac_cv_prog_cc_c99"
3176 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3177 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3178 esac
3179 if test "x$ac_cv_prog_cc_c99" != xno; then
3180 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3181 else
3182 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3183 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3184 if test "${ac_cv_prog_cc_c89+set}" = set; then
3185 echo $ECHO_N "(cached) $ECHO_C" >&6
3186 else
3187 ac_cv_prog_cc_c89=no
3188 ac_save_CC=$CC
3189 cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h. */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3195 #include <stdarg.h>
3196 #include <stdio.h>
3197 #include <sys/types.h>
3198 #include <sys/stat.h>
3199 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3200 struct buf { int x; };
3201 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3202 static char *e (p, i)
3203 char **p;
3204 int i;
3206 return p[i];
3208 static char *f (char * (*g) (char **, int), char **p, ...)
3210 char *s;
3211 va_list v;
3212 va_start (v,p);
3213 s = g (p, va_arg (v,int));
3214 va_end (v);
3215 return s;
3218 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3219 function prototypes and stuff, but not '\xHH' hex character constants.
3220 These don't provoke an error unfortunately, instead are silently treated
3221 as 'x'. The following induces an error, until -std is added to get
3222 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3223 array size at least. It's necessary to write '\x00'==0 to get something
3224 that's true only with -std. */
3225 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3227 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3228 inside strings and character constants. */
3229 #define FOO(x) 'x'
3230 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3232 int test (int i, double x);
3233 struct s1 {int (*f) (int a);};
3234 struct s2 {int (*f) (double a);};
3235 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3236 int argc;
3237 char **argv;
3239 main ()
3241 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3243 return 0;
3245 _ACEOF
3246 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3247 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3249 CC="$ac_save_CC $ac_arg"
3250 rm -f conftest.$ac_objext
3251 if { (ac_try="$ac_compile"
3252 case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255 esac
3256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3257 (eval "$ac_compile") 2>conftest.er1
3258 ac_status=$?
3259 grep -v '^ *+' conftest.er1 >conftest.err
3260 rm -f conftest.er1
3261 cat conftest.err >&5
3262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3263 (exit $ac_status); } && {
3264 test -z "$ac_c_werror_flag" ||
3265 test ! -s conftest.err
3266 } && test -s conftest.$ac_objext; then
3267 ac_cv_prog_cc_c89=$ac_arg
3268 else
3269 echo "$as_me: failed program was:" >&5
3270 sed 's/^/| /' conftest.$ac_ext >&5
3275 rm -f core conftest.err conftest.$ac_objext
3276 test "x$ac_cv_prog_cc_c89" != "xno" && break
3277 done
3278 rm -f conftest.$ac_ext
3279 CC=$ac_save_CC
3282 # AC_CACHE_VAL
3283 case "x$ac_cv_prog_cc_c89" in
3285 { echo "$as_me:$LINENO: result: none needed" >&5
3286 echo "${ECHO_T}none needed" >&6; } ;;
3287 xno)
3288 { echo "$as_me:$LINENO: result: unsupported" >&5
3289 echo "${ECHO_T}unsupported" >&6; } ;;
3291 CC="$CC $ac_cv_prog_cc_c89"
3292 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3293 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3294 esac
3295 if test "x$ac_cv_prog_cc_c89" != xno; then
3296 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3297 else
3298 ac_cv_prog_cc_stdc=no
3305 esac
3306 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3307 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3308 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 case $ac_cv_prog_cc_stdc in
3313 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3314 echo "${ECHO_T}unsupported" >&6; } ;;
3315 '') { echo "$as_me:$LINENO: result: none needed" >&5
3316 echo "${ECHO_T}none needed" >&6; } ;;
3317 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3318 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3319 esac
3322 ac_ext=c
3323 ac_cpp='$CPP $CPPFLAGS'
3324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3328 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3329 # On Suns, sometimes $CPP names a directory.
3330 if test -n "$CPP" && test -d "$CPP"; then
3331 CPP=
3333 if test -z "$CPP"; then
3334 if test "${ac_cv_prog_CPP+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 else
3337 # Double quotes because CPP needs to be expanded
3338 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3340 ac_preproc_ok=false
3341 for ac_c_preproc_warn_flag in '' yes
3343 # Use a header file that comes with gcc, so configuring glibc
3344 # with a fresh cross-compiler works.
3345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3346 # <limits.h> exists even on freestanding compilers.
3347 # On the NeXT, cc -E runs the code through the compiler's parser,
3348 # not just through cpp. "Syntax error" is here to catch this case.
3349 cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h. */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */
3355 #ifdef __STDC__
3356 # include <limits.h>
3357 #else
3358 # include <assert.h>
3359 #endif
3360 Syntax error
3361 _ACEOF
3362 if { (ac_try="$ac_cpp conftest.$ac_ext"
3363 case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366 esac
3367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3369 ac_status=$?
3370 grep -v '^ *+' conftest.er1 >conftest.err
3371 rm -f conftest.er1
3372 cat conftest.err >&5
3373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3374 (exit $ac_status); } >/dev/null && {
3375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3376 test ! -s conftest.err
3377 }; then
3379 else
3380 echo "$as_me: failed program was:" >&5
3381 sed 's/^/| /' conftest.$ac_ext >&5
3383 # Broken: fails on valid input.
3384 continue
3387 rm -f conftest.err conftest.$ac_ext
3389 # OK, works on sane cases. Now check whether nonexistent headers
3390 # can be detected and how.
3391 cat >conftest.$ac_ext <<_ACEOF
3392 /* confdefs.h. */
3393 _ACEOF
3394 cat confdefs.h >>conftest.$ac_ext
3395 cat >>conftest.$ac_ext <<_ACEOF
3396 /* end confdefs.h. */
3397 #include <ac_nonexistent.h>
3398 _ACEOF
3399 if { (ac_try="$ac_cpp conftest.$ac_ext"
3400 case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3402 *) ac_try_echo=$ac_try;;
3403 esac
3404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3406 ac_status=$?
3407 grep -v '^ *+' conftest.er1 >conftest.err
3408 rm -f conftest.er1
3409 cat conftest.err >&5
3410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3411 (exit $ac_status); } >/dev/null && {
3412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3413 test ! -s conftest.err
3414 }; then
3415 # Broken: success on invalid input.
3416 continue
3417 else
3418 echo "$as_me: failed program was:" >&5
3419 sed 's/^/| /' conftest.$ac_ext >&5
3421 # Passes both tests.
3422 ac_preproc_ok=:
3423 break
3426 rm -f conftest.err conftest.$ac_ext
3428 done
3429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430 rm -f conftest.err conftest.$ac_ext
3431 if $ac_preproc_ok; then
3432 break
3435 done
3436 ac_cv_prog_CPP=$CPP
3439 CPP=$ac_cv_prog_CPP
3440 else
3441 ac_cv_prog_CPP=$CPP
3443 { echo "$as_me:$LINENO: result: $CPP" >&5
3444 echo "${ECHO_T}$CPP" >&6; }
3445 ac_preproc_ok=false
3446 for ac_c_preproc_warn_flag in '' yes
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460 #ifdef __STDC__
3461 # include <limits.h>
3462 #else
3463 # include <assert.h>
3464 #endif
3465 Syntax error
3466 _ACEOF
3467 if { (ac_try="$ac_cpp conftest.$ac_ext"
3468 case "(($ac_try" in
3469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3471 esac
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3474 ac_status=$?
3475 grep -v '^ *+' conftest.er1 >conftest.err
3476 rm -f conftest.er1
3477 cat conftest.err >&5
3478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479 (exit $ac_status); } >/dev/null && {
3480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3481 test ! -s conftest.err
3482 }; then
3484 else
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 # Broken: fails on valid input.
3489 continue
3492 rm -f conftest.err conftest.$ac_ext
3494 # OK, works on sane cases. Now check whether nonexistent headers
3495 # can be detected and how.
3496 cat >conftest.$ac_ext <<_ACEOF
3497 /* confdefs.h. */
3498 _ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3502 #include <ac_nonexistent.h>
3503 _ACEOF
3504 if { (ac_try="$ac_cpp conftest.$ac_ext"
3505 case "(($ac_try" in
3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3507 *) ac_try_echo=$ac_try;;
3508 esac
3509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3511 ac_status=$?
3512 grep -v '^ *+' conftest.er1 >conftest.err
3513 rm -f conftest.er1
3514 cat conftest.err >&5
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); } >/dev/null && {
3517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3518 test ! -s conftest.err
3519 }; then
3520 # Broken: success on invalid input.
3521 continue
3522 else
3523 echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3526 # Passes both tests.
3527 ac_preproc_ok=:
3528 break
3531 rm -f conftest.err conftest.$ac_ext
3533 done
3534 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3535 rm -f conftest.err conftest.$ac_ext
3536 if $ac_preproc_ok; then
3538 else
3539 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3540 See \`config.log' for more details." >&5
3541 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3542 See \`config.log' for more details." >&2;}
3543 { (exit 1); exit 1; }; }
3546 ac_ext=c
3547 ac_cpp='$CPP $CPPFLAGS'
3548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3553 # Check for a compatible awk
3554 for ac_prog in gawk nawk
3556 # Extract the first word of "$ac_prog", so it can be a program name with args.
3557 set dummy $ac_prog; ac_word=$2
3558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3560 if test "${ac_cv_prog_AWK+set}" = set; then
3561 echo $ECHO_N "(cached) $ECHO_C" >&6
3562 else
3563 if test -n "$AWK"; then
3564 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3565 else
3566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3567 for as_dir in $PATH
3569 IFS=$as_save_IFS
3570 test -z "$as_dir" && as_dir=.
3571 for ac_exec_ext in '' $ac_executable_extensions; do
3572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3573 ac_cv_prog_AWK="$ac_prog"
3574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 break 2
3577 done
3578 done
3579 IFS=$as_save_IFS
3583 AWK=$ac_cv_prog_AWK
3584 if test -n "$AWK"; then
3585 { echo "$as_me:$LINENO: result: $AWK" >&5
3586 echo "${ECHO_T}$AWK" >&6; }
3587 else
3588 { echo "$as_me:$LINENO: result: no" >&5
3589 echo "${ECHO_T}no" >&6; }
3593 test -n "$AWK" && break
3594 done
3596 if test "$AWK" = ""; then
3597 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3598 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3599 { (exit 1); exit 1; }; }
3601 # Extract the first word of "mmake", so it can be a program name with args.
3602 set dummy mmake; ac_word=$2
3603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3605 if test "${ac_cv_prog_MMAKE+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3607 else
3608 if test -n "$MMAKE"; then
3609 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3610 else
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3612 for as_dir in $PATH
3614 IFS=$as_save_IFS
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3618 ac_cv_prog_MMAKE="mmake "
3619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 break 2
3622 done
3623 done
3624 IFS=$as_save_IFS
3628 MMAKE=$ac_cv_prog_MMAKE
3629 if test -n "$MMAKE"; then
3630 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3631 echo "${ECHO_T}$MMAKE" >&6; }
3632 else
3633 { echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6; }
3639 # Perform some default variable assignments. Note all of these will be
3640 # Regenerated from the script, so there is no need to cache them.
3642 aros_host_cc="$CC"
3643 if test "$GCC" = "yes"; then
3644 aros_gcc_ld=`$CC -print-prog-name=ld`
3645 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3646 set dummy `basename $aros_gcc_ld`; ac_word=$2
3647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3649 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 else
3652 case $aros_host_ld in
3653 [\\/]* | ?:[\\/]*)
3654 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 for as_dir in `dirname $aros_gcc_ld`
3660 IFS=$as_save_IFS
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3664 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3665 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 break 2
3668 done
3669 done
3670 IFS=$as_save_IFS
3673 esac
3675 aros_host_ld=$ac_cv_path_aros_host_ld
3676 if test -n "$aros_host_ld"; then
3677 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3678 echo "${ECHO_T}$aros_host_ld" >&6; }
3679 else
3680 { echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6; }
3686 if test "$aros_host_ld" = ""; then
3687 # Extract the first word of "ld", so it can be a program name with args.
3688 set dummy ld; ac_word=$2
3689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3691 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3692 echo $ECHO_N "(cached) $ECHO_C" >&6
3693 else
3694 case $aros_host_ld in
3695 [\\/]* | ?:[\\/]*)
3696 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 for as_dir in $PATH
3702 IFS=$as_save_IFS
3703 test -z "$as_dir" && as_dir=.
3704 for ac_exec_ext in '' $ac_executable_extensions; do
3705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3706 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3710 done
3711 done
3712 IFS=$as_save_IFS
3715 esac
3717 aros_host_ld=$ac_cv_path_aros_host_ld
3718 if test -n "$aros_host_ld"; then
3719 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3720 echo "${ECHO_T}$aros_host_ld" >&6; }
3721 else
3722 { echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6; }
3728 if test "$aros_host_ld" = ""; then
3729 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3730 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3731 { (exit 1); exit 1; }; }
3733 aros_host_make="make"
3734 aros_host_cflags=$CFLAGS
3735 aros_host_ldflags=$LDFLAGS
3736 aros_host_debug="-g -O0"
3737 aros_host_mkdep="\$(SRCDIR)/scripts/mkdep"
3738 aros_host_mkargs="--no-print-directory"
3739 aros_host_incl="/usr/include"
3740 aros_host_exe_suffix="$EXEEXT"
3741 aros_host_lib_suffix=""
3743 for ac_prog in aclocal aclocal19 aclocal-1.9
3745 # Extract the first word of "$ac_prog", so it can be a program name with args.
3746 set dummy $ac_prog; ac_word=$2
3747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3749 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3750 echo $ECHO_N "(cached) $ECHO_C" >&6
3751 else
3752 if test -n "$aros_host_aclocal"; then
3753 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3754 else
3755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 for as_dir in $PATH
3758 IFS=$as_save_IFS
3759 test -z "$as_dir" && as_dir=.
3760 for ac_exec_ext in '' $ac_executable_extensions; do
3761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3762 ac_cv_prog_aros_host_aclocal="$ac_prog"
3763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3764 break 2
3766 done
3767 done
3768 IFS=$as_save_IFS
3772 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3773 if test -n "$aros_host_aclocal"; then
3774 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3775 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3776 else
3777 { echo "$as_me:$LINENO: result: no" >&5
3778 echo "${ECHO_T}no" >&6; }
3782 test -n "$aros_host_aclocal" && break
3783 done
3785 for ac_prog in autoconf autoconf259 autoconf253
3787 # Extract the first word of "$ac_prog", so it can be a program name with args.
3788 set dummy $ac_prog; ac_word=$2
3789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3791 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3792 echo $ECHO_N "(cached) $ECHO_C" >&6
3793 else
3794 if test -n "$aros_host_autoconf"; then
3795 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_aros_host_autoconf="$ac_prog"
3805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3808 done
3809 done
3810 IFS=$as_save_IFS
3814 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3815 if test -n "$aros_host_autoconf"; then
3816 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3817 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3818 else
3819 { echo "$as_me:$LINENO: result: no" >&5
3820 echo "${ECHO_T}no" >&6; }
3824 test -n "$aros_host_autoconf" && break
3825 done
3827 for ac_prog in autoheader autoheader259 autoheader253
3829 # Extract the first word of "$ac_prog", so it can be a program name with args.
3830 set dummy $ac_prog; ac_word=$2
3831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3833 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3834 echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836 if test -n "$aros_host_autoheader"; then
3837 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3846 ac_cv_prog_aros_host_autoheader="$ac_prog"
3847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 break 2
3850 done
3851 done
3852 IFS=$as_save_IFS
3856 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3857 if test -n "$aros_host_autoheader"; then
3858 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3859 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3860 else
3861 { echo "$as_me:$LINENO: result: no" >&5
3862 echo "${ECHO_T}no" >&6; }
3866 test -n "$aros_host_autoheader" && break
3867 done
3869 for ac_prog in automake automake19 automake-1.9
3871 # Extract the first word of "$ac_prog", so it can be a program name with args.
3872 set dummy $ac_prog; ac_word=$2
3873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3875 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3876 echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878 if test -n "$aros_host_automake"; then
3879 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3880 else
3881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3882 for as_dir in $PATH
3884 IFS=$as_save_IFS
3885 test -z "$as_dir" && as_dir=.
3886 for ac_exec_ext in '' $ac_executable_extensions; do
3887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3888 ac_cv_prog_aros_host_automake="$ac_prog"
3889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3890 break 2
3892 done
3893 done
3894 IFS=$as_save_IFS
3898 aros_host_automake=$ac_cv_prog_aros_host_automake
3899 if test -n "$aros_host_automake"; then
3900 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3901 echo "${ECHO_T}$aros_host_automake" >&6; }
3902 else
3903 { echo "$as_me:$LINENO: result: no" >&5
3904 echo "${ECHO_T}no" >&6; }
3908 test -n "$aros_host_automake" && break
3909 done
3912 if test "$aros_host_aclocal" = ""; then
3913 { { echo "$as_me:$LINENO: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&5
3914 echo "$as_me: error: aclocal/aclocal19/aclocal-1.9 is required to build AROS. Please install and run configure again." >&2;}
3915 { (exit 1); exit 1; }; }
3917 if test "$aros_host_automake" = ""; then
3918 { { echo "$as_me:$LINENO: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&5
3919 echo "$as_me: error: automake/automake19/automake-1.9 is required to build AROS. Please install and run configure again." >&2;}
3920 { (exit 1); exit 1; }; }
3923 case "$aros_host_cc" in
3924 *gcc*)
3925 aros_host_cc_pipe="-pipe"
3927 icc)
3928 aros_host_cc_pipe=""
3931 aros_host_cc_pipe=""
3933 esac
3935 aros_target_cc_includes=""
3937 # This is the main host configuration section. It is where the host
3938 # can change the values of any variables it needs to change. We do
3939 # not look at anything that compiles to the target yet, we'll get
3940 # to that later.
3942 case "$host_os" in
3943 aros*)
3944 aros_host_arch="aros"
3945 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3946 case "$host_cpu" in
3947 *i?86*)
3948 aros_host_cpu="i386"
3950 *x86_64*)
3951 aros_host_cpu="x86_64"
3954 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3955 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3956 aros_host_cpu="$host_cpu"
3958 esac
3961 linux*)
3962 aros_host_arch="linux"
3963 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3964 case "$host_cpu" in
3965 *i?86*)
3966 aros_host_cpu="i386"
3968 *x86_64*)
3969 aros_host_cpu="x86_64"
3971 *m68k*)
3972 aros_host_cpu="m68k"
3974 *powerpc*)
3975 aros_host_cpu="ppc"
3978 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3979 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3980 aros_host_cpu="$host_cpu"
3982 esac
3985 freebsd*)
3986 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3987 aros_host_make="gmake"
3988 aros_host_arch="freebsd"
3989 aros_host_cpu="i386"
3991 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3994 case $host_os in
3995 freebsd[234]*)
3996 aros_object_format="elf_i386"
4000 aros_object_format="elf_i386_fbsd"
4002 esac
4006 darwin*)
4007 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4008 aros_host_arch="darwin"
4009 case "$host_cpu" in
4010 *i?86*)
4011 aros_host_cpu="i386"
4013 *powerpc*)
4014 aros_host_cpu="ppc"
4017 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4018 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4019 aros_host_cpu="$host_cpu"
4021 esac
4023 aros_host_ldflags="$aros_host_ldflags -liconv"
4027 netbsd*)
4028 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4029 aros_host_make="gmake"
4030 aros_host_arch="netbsd"
4031 case "$host_cpu" in
4032 *i?86*)
4033 aros_host_cpu="i386"
4035 *m68k*)
4036 aros_host_cpu="m68k"
4039 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4040 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4041 aros_host_cpu="$host_cpu"
4043 esac
4044 aros_host_lib_suffix=".0.0"
4047 openbsd*)
4048 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4049 aros_host_make="gmake"
4050 aros_host_arch="openbsd"
4051 case "$host_cpu" in
4052 *i?86*)
4053 aros_host_cpu="i386"
4056 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4057 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4058 aros_host_cpu="$host_cpu"
4060 esac
4063 solaris*)
4064 aros_host_arch="solaris"
4065 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4066 case "$host_cpu" in
4067 *i?86*)
4068 aros_host_cpu="i386"
4070 *sparc*)
4071 aros_host_cpu="sparc"
4074 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4075 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4076 aros_host_cpu="$host_cpu"
4078 esac
4081 morphos*)
4082 aros_host_arch="morphos"
4083 aros_host_cpu="ppc"
4086 amiga*)
4087 aros_host_arch="amiga"
4088 SORT="/gg/bin/sort"
4089 TEST="/gg/bin/test"
4090 UNIQ="/gg/bin/uniq"
4091 FOR="for"
4092 TOUCH="/gg/bin/touch"
4093 case "$host_cpu" in
4094 *m68k*)
4095 aros_host_cpu="m68k"
4097 *powerpc*)
4098 aros_host_cpu="ppc"
4101 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4102 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4103 aros_host_cpu="$host_cpu"
4105 esac
4108 cygwin*)
4109 aros_host_arch="cygwin"
4110 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4111 case "$host_cpu" in
4112 *i?86*)
4113 aros_host_cpu="i386"
4116 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4117 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4118 aros_host_cpu="$host_cpu"
4120 esac
4123 mingw32*)
4124 aros_host_arch="mingw32"
4125 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4126 case "$host_cpu" in
4127 *i?86*)
4128 aros_host_cpu="i386"
4131 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4132 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4133 aros_host_cpu="$host_cpu"
4135 esac
4138 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4139 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4140 { (exit 1); exit 1; }; }
4142 esac
4144 # Extract the first word of "ar", so it can be a program name with args.
4145 set dummy ar; ac_word=$2
4146 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4147 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4148 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4150 else
4151 if test -n "$aros_host_ar"; then
4152 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4153 else
4154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 for as_dir in $PATH
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4161 ac_cv_prog_aros_host_ar="ar cr"
4162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 break 2
4165 done
4166 done
4167 IFS=$as_save_IFS
4171 aros_host_ar=$ac_cv_prog_aros_host_ar
4172 if test -n "$aros_host_ar"; then
4173 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4174 echo "${ECHO_T}$aros_host_ar" >&6; }
4175 else
4176 { echo "$as_me:$LINENO: result: no" >&5
4177 echo "${ECHO_T}no" >&6; }
4181 if test "$aros_host_ar" = ""; then
4182 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4183 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4184 { (exit 1); exit 1; }; }
4186 # Extract the first word of "ranlib", so it can be a program name with args.
4187 set dummy ranlib; ac_word=$2
4188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4190 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193 if test -n "$aros_host_ranlib"; then
4194 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4195 else
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197 for as_dir in $PATH
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_exec_ext in '' $ac_executable_extensions; do
4202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4203 ac_cv_prog_aros_host_ranlib="ranlib "
4204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4205 break 2
4207 done
4208 done
4209 IFS=$as_save_IFS
4213 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4214 if test -n "$aros_host_ranlib"; then
4215 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4216 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4217 else
4218 { echo "$as_me:$LINENO: result: no" >&5
4219 echo "${ECHO_T}no" >&6; }
4223 if test "$aros_host_ranlib" = ""; then
4224 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4225 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4226 { (exit 1); exit 1; }; }
4228 # Extract the first word of "strip", so it can be a program name with args.
4229 set dummy strip; ac_word=$2
4230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4232 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4233 echo $ECHO_N "(cached) $ECHO_C" >&6
4234 else
4235 if test -n "$aros_host_strip"; then
4236 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4237 else
4238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4239 for as_dir in $PATH
4241 IFS=$as_save_IFS
4242 test -z "$as_dir" && as_dir=.
4243 for ac_exec_ext in '' $ac_executable_extensions; do
4244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4245 ac_cv_prog_aros_host_strip="strip "
4246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4247 break 2
4249 done
4250 done
4251 IFS=$as_save_IFS
4255 aros_host_strip=$ac_cv_prog_aros_host_strip
4256 if test -n "$aros_host_strip"; then
4257 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4258 echo "${ECHO_T}$aros_host_strip" >&6; }
4259 else
4260 { echo "$as_me:$LINENO: result: no" >&5
4261 echo "${ECHO_T}no" >&6; }
4265 if test "$aros_host_strip" = ""; then
4266 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4267 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4268 { (exit 1); exit 1; }; }
4271 # Extract the first word of "rm", so it can be a program name with args.
4272 set dummy rm; ac_word=$2
4273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4275 if test "${ac_cv_prog_RM+set}" = set; then
4276 echo $ECHO_N "(cached) $ECHO_C" >&6
4277 else
4278 if test -n "$RM"; then
4279 ac_cv_prog_RM="$RM" # Let the user override the test.
4280 else
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 for as_dir in $PATH
4284 IFS=$as_save_IFS
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4288 ac_cv_prog_RM="rm -rf"
4289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 break 2
4292 done
4293 done
4294 IFS=$as_save_IFS
4298 RM=$ac_cv_prog_RM
4299 if test -n "$RM"; then
4300 { echo "$as_me:$LINENO: result: $RM" >&5
4301 echo "${ECHO_T}$RM" >&6; }
4302 else
4303 { echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6; }
4308 if test "$RM" = ""; then
4309 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4310 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4311 { (exit 1); exit 1; }; }
4313 # Extract the first word of "cp", so it can be a program name with args.
4314 set dummy cp; ac_word=$2
4315 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4317 if test "${ac_cv_prog_CP+set}" = set; then
4318 echo $ECHO_N "(cached) $ECHO_C" >&6
4319 else
4320 if test -n "$CP"; then
4321 ac_cv_prog_CP="$CP" # Let the user override the test.
4322 else
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4330 ac_cv_prog_CP="cp "
4331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 break 2
4334 done
4335 done
4336 IFS=$as_save_IFS
4340 CP=$ac_cv_prog_CP
4341 if test -n "$CP"; then
4342 { echo "$as_me:$LINENO: result: $CP" >&5
4343 echo "${ECHO_T}$CP" >&6; }
4344 else
4345 { echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6; }
4350 if test "$CP" = ""; then
4351 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4352 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4353 { (exit 1); exit 1; }; }
4355 # Extract the first word of "mv", so it can be a program name with args.
4356 set dummy mv; ac_word=$2
4357 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4358 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4359 if test "${ac_cv_prog_MV+set}" = set; then
4360 echo $ECHO_N "(cached) $ECHO_C" >&6
4361 else
4362 if test -n "$MV"; then
4363 ac_cv_prog_MV="$MV" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_prog_MV="mv "
4373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4376 done
4377 done
4378 IFS=$as_save_IFS
4382 MV=$ac_cv_prog_MV
4383 if test -n "$MV"; then
4384 { echo "$as_me:$LINENO: result: $MV" >&5
4385 echo "${ECHO_T}$MV" >&6; }
4386 else
4387 { echo "$as_me:$LINENO: result: no" >&5
4388 echo "${ECHO_T}no" >&6; }
4392 if test "$MV" = ""; then
4393 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4394 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4395 { (exit 1); exit 1; }; }
4397 # Extract the first word of "echo", so it can be a program name with args.
4398 set dummy echo; ac_word=$2
4399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4401 if test "${ac_cv_prog_ECHO+set}" = set; then
4402 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 else
4404 if test -n "$ECHO"; then
4405 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4406 else
4407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 for as_dir in $PATH
4410 IFS=$as_save_IFS
4411 test -z "$as_dir" && as_dir=.
4412 for ac_exec_ext in '' $ac_executable_extensions; do
4413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4414 ac_cv_prog_ECHO="echo "
4415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4416 break 2
4418 done
4419 done
4420 IFS=$as_save_IFS
4424 ECHO=$ac_cv_prog_ECHO
4425 if test -n "$ECHO"; then
4426 { echo "$as_me:$LINENO: result: $ECHO" >&5
4427 echo "${ECHO_T}$ECHO" >&6; }
4428 else
4429 { echo "$as_me:$LINENO: result: no" >&5
4430 echo "${ECHO_T}no" >&6; }
4434 if test "$ECHO" = ""; then
4435 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4436 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4437 { (exit 1); exit 1; }; }
4439 # Extract the first word of "mkdir", so it can be a program name with args.
4440 set dummy mkdir; ac_word=$2
4441 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4442 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4443 if test "${ac_cv_prog_MKDIR+set}" = set; then
4444 echo $ECHO_N "(cached) $ECHO_C" >&6
4445 else
4446 if test -n "$MKDIR"; then
4447 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 for ac_exec_ext in '' $ac_executable_extensions; do
4455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4456 ac_cv_prog_MKDIR="mkdir -p"
4457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 break 2
4460 done
4461 done
4462 IFS=$as_save_IFS
4466 MKDIR=$ac_cv_prog_MKDIR
4467 if test -n "$MKDIR"; then
4468 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4469 echo "${ECHO_T}$MKDIR" >&6; }
4470 else
4471 { echo "$as_me:$LINENO: result: no" >&5
4472 echo "${ECHO_T}no" >&6; }
4476 if test "$MKDIR" = ""; then
4477 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4478 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4479 { (exit 1); exit 1; }; }
4481 # Extract the first word of "touch", so it can be a program name with args.
4482 set dummy touch; ac_word=$2
4483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4485 if test "${ac_cv_prog_TOUCH+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4487 else
4488 if test -n "$TOUCH"; then
4489 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4490 else
4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4492 for as_dir in $PATH
4494 IFS=$as_save_IFS
4495 test -z "$as_dir" && as_dir=.
4496 for ac_exec_ext in '' $ac_executable_extensions; do
4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4498 ac_cv_prog_TOUCH="touch "
4499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4500 break 2
4502 done
4503 done
4504 IFS=$as_save_IFS
4508 TOUCH=$ac_cv_prog_TOUCH
4509 if test -n "$TOUCH"; then
4510 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4511 echo "${ECHO_T}$TOUCH" >&6; }
4512 else
4513 { echo "$as_me:$LINENO: result: no" >&5
4514 echo "${ECHO_T}no" >&6; }
4518 if test "$TOUCH" = ""; then
4519 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4520 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4521 { (exit 1); exit 1; }; }
4523 # Extract the first word of "sort", so it can be a program name with args.
4524 set dummy sort; ac_word=$2
4525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4527 if test "${ac_cv_prog_SORT+set}" = set; then
4528 echo $ECHO_N "(cached) $ECHO_C" >&6
4529 else
4530 if test -n "$SORT"; then
4531 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4532 else
4533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4534 for as_dir in $PATH
4536 IFS=$as_save_IFS
4537 test -z "$as_dir" && as_dir=.
4538 for ac_exec_ext in '' $ac_executable_extensions; do
4539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4540 ac_cv_prog_SORT="sort "
4541 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4542 break 2
4544 done
4545 done
4546 IFS=$as_save_IFS
4550 SORT=$ac_cv_prog_SORT
4551 if test -n "$SORT"; then
4552 { echo "$as_me:$LINENO: result: $SORT" >&5
4553 echo "${ECHO_T}$SORT" >&6; }
4554 else
4555 { echo "$as_me:$LINENO: result: no" >&5
4556 echo "${ECHO_T}no" >&6; }
4560 if test "$SORT" = ""; then
4561 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4562 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4563 { (exit 1); exit 1; }; }
4565 # Extract the first word of "uniq", so it can be a program name with args.
4566 set dummy uniq; ac_word=$2
4567 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4569 if test "${ac_cv_prog_UNIQ+set}" = set; then
4570 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 else
4572 if test -n "$UNIQ"; then
4573 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4574 else
4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4576 for as_dir in $PATH
4578 IFS=$as_save_IFS
4579 test -z "$as_dir" && as_dir=.
4580 for ac_exec_ext in '' $ac_executable_extensions; do
4581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4582 ac_cv_prog_UNIQ="uniq "
4583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4584 break 2
4586 done
4587 done
4588 IFS=$as_save_IFS
4592 UNIQ=$ac_cv_prog_UNIQ
4593 if test -n "$UNIQ"; then
4594 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4595 echo "${ECHO_T}$UNIQ" >&6; }
4596 else
4597 { echo "$as_me:$LINENO: result: no" >&5
4598 echo "${ECHO_T}no" >&6; }
4602 if test "$UNIQ" = ""; then
4603 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4604 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4605 { (exit 1); exit 1; }; }
4607 # Extract the first word of "true", so it can be a program name with args.
4608 set dummy true; ac_word=$2
4609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4611 if test "${ac_cv_prog_NOP+set}" = set; then
4612 echo $ECHO_N "(cached) $ECHO_C" >&6
4613 else
4614 if test -n "$NOP"; then
4615 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4616 else
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4624 ac_cv_prog_NOP="true "
4625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4628 done
4629 done
4630 IFS=$as_save_IFS
4634 NOP=$ac_cv_prog_NOP
4635 if test -n "$NOP"; then
4636 { echo "$as_me:$LINENO: result: $NOP" >&5
4637 echo "${ECHO_T}$NOP" >&6; }
4638 else
4639 { echo "$as_me:$LINENO: result: no" >&5
4640 echo "${ECHO_T}no" >&6; }
4644 if test "$NOP" = ""; then
4645 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4646 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4647 { (exit 1); exit 1; }; }
4649 # Extract the first word of "cat", so it can be a program name with args.
4650 set dummy cat; ac_word=$2
4651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4653 if test "${ac_cv_prog_CAT+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656 if test -n "$CAT"; then
4657 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4658 else
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_exec_ext in '' $ac_executable_extensions; do
4665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4666 ac_cv_prog_CAT="cat "
4667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4668 break 2
4670 done
4671 done
4672 IFS=$as_save_IFS
4676 CAT=$ac_cv_prog_CAT
4677 if test -n "$CAT"; then
4678 { echo "$as_me:$LINENO: result: $CAT" >&5
4679 echo "${ECHO_T}$CAT" >&6; }
4680 else
4681 { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4686 if test "$CAT" = ""; then
4687 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4688 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4689 { (exit 1); exit 1; }; }
4691 # Extract the first word of "bison", so it can be a program name with args.
4692 set dummy bison; ac_word=$2
4693 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4695 if test "${ac_cv_prog_BISON+set}" = set; then
4696 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 else
4698 if test -n "$BISON"; then
4699 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_exec_ext in '' $ac_executable_extensions; do
4707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4708 ac_cv_prog_BISON="bison "
4709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4710 break 2
4712 done
4713 done
4714 IFS=$as_save_IFS
4718 BISON=$ac_cv_prog_BISON
4719 if test -n "$BISON"; then
4720 { echo "$as_me:$LINENO: result: $BISON" >&5
4721 echo "${ECHO_T}$BISON" >&6; }
4722 else
4723 { echo "$as_me:$LINENO: result: no" >&5
4724 echo "${ECHO_T}no" >&6; }
4728 if test "$BISON" = ""; then
4729 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4730 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4731 { (exit 1); exit 1; }; }
4733 # Extract the first word of "flex", so it can be a program name with args.
4734 set dummy flex; ac_word=$2
4735 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4737 if test "${ac_cv_prog_FLEX+set}" = set; then
4738 echo $ECHO_N "(cached) $ECHO_C" >&6
4739 else
4740 if test -n "$FLEX"; then
4741 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4742 else
4743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 for as_dir in $PATH
4746 IFS=$as_save_IFS
4747 test -z "$as_dir" && as_dir=.
4748 for ac_exec_ext in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_prog_FLEX="flex "
4751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4752 break 2
4754 done
4755 done
4756 IFS=$as_save_IFS
4760 FLEX=$ac_cv_prog_FLEX
4761 if test -n "$FLEX"; then
4762 { echo "$as_me:$LINENO: result: $FLEX" >&5
4763 echo "${ECHO_T}$FLEX" >&6; }
4764 else
4765 { echo "$as_me:$LINENO: result: no" >&5
4766 echo "${ECHO_T}no" >&6; }
4770 if test "$FLEX" = ""; then
4771 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4772 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4773 { (exit 1); exit 1; }; }
4775 # Extract the first word of "pngtopnm", so it can be a program name with args.
4776 set dummy pngtopnm; ac_word=$2
4777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4779 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4780 echo $ECHO_N "(cached) $ECHO_C" >&6
4781 else
4782 if test -n "$PNGTOPNM"; then
4783 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4784 else
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4786 for as_dir in $PATH
4788 IFS=$as_save_IFS
4789 test -z "$as_dir" && as_dir=.
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4792 ac_cv_prog_PNGTOPNM="pngtopnm "
4793 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4794 break 2
4796 done
4797 done
4798 IFS=$as_save_IFS
4802 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4803 if test -n "$PNGTOPNM"; then
4804 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4805 echo "${ECHO_T}$PNGTOPNM" >&6; }
4806 else
4807 { echo "$as_me:$LINENO: result: no" >&5
4808 echo "${ECHO_T}no" >&6; }
4812 if test "$PNGTOPNM" = ""; then
4813 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4814 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4815 { (exit 1); exit 1; }; }
4817 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4818 set dummy ppmtoilbm; ac_word=$2
4819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4821 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4822 echo $ECHO_N "(cached) $ECHO_C" >&6
4823 else
4824 if test -n "$PPMTOILBM"; then
4825 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4826 else
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_exec_ext in '' $ac_executable_extensions; do
4833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4834 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 break 2
4838 done
4839 done
4840 IFS=$as_save_IFS
4844 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4845 if test -n "$PPMTOILBM"; then
4846 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4847 echo "${ECHO_T}$PPMTOILBM" >&6; }
4848 else
4849 { echo "$as_me:$LINENO: result: no" >&5
4850 echo "${ECHO_T}no" >&6; }
4854 if test "$PPMTOILBM" = ""; then
4855 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4856 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4857 { (exit 1); exit 1; }; }
4859 # Extract the first word of "sed", so it can be a program name with args.
4860 set dummy sed; ac_word=$2
4861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4863 if test "${ac_cv_prog_SED+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4865 else
4866 if test -n "$SED"; then
4867 ac_cv_prog_SED="$SED" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_SED="sed "
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4880 done
4881 done
4882 IFS=$as_save_IFS
4886 SED=$ac_cv_prog_SED
4887 if test -n "$SED"; then
4888 { echo "$as_me:$LINENO: result: $SED" >&5
4889 echo "${ECHO_T}$SED" >&6; }
4890 else
4891 { echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6; }
4896 if test "$SED" = ""; then
4897 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4898 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4899 { (exit 1); exit 1; }; }
4901 # Extract the first word of "chmod", so it can be a program name with args.
4902 set dummy chmod; ac_word=$2
4903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4905 if test "${ac_cv_prog_CHMOD+set}" = set; then
4906 echo $ECHO_N "(cached) $ECHO_C" >&6
4907 else
4908 if test -n "$CHMOD"; then
4909 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4918 ac_cv_prog_CHMOD="chmod "
4919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4922 done
4923 done
4924 IFS=$as_save_IFS
4928 CHMOD=$ac_cv_prog_CHMOD
4929 if test -n "$CHMOD"; then
4930 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4931 echo "${ECHO_T}$CHMOD" >&6; }
4932 else
4933 { echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6; }
4938 if test "$CHMOD" = ""; then
4939 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4940 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4941 { (exit 1); exit 1; }; }
4948 if test -n "$PYTHON"; then
4949 # If the user set $PYTHON, use it and don't search something else.
4950 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4951 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4952 prog="import sys, string
4953 # split strings by '.' and convert to numeric. Append some zeros
4954 # because we need at least 4 digits for the hex conversion.
4955 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4956 minverhex = 0
4957 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4958 sys.exit(sys.hexversion < minverhex)"
4959 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4960 ($PYTHON -c "$prog") >&5 2>&5
4961 ac_status=$?
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }; then
4964 { echo "$as_me:$LINENO: result: yes" >&5
4965 echo "${ECHO_T}yes" >&6; }
4966 else
4967 { { echo "$as_me:$LINENO: error: too old" >&5
4968 echo "$as_me: error: too old" >&2;}
4969 { (exit 1); exit 1; }; }
4972 am_display_PYTHON=$PYTHON
4973 else
4974 # Otherwise, try each interpreter until we find one that satisfies
4975 # VERSION.
4976 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4977 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4978 if test "${am_cv_pathless_PYTHON+set}" = set; then
4979 echo $ECHO_N "(cached) $ECHO_C" >&6
4980 else
4982 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
4983 test "$am_cv_pathless_PYTHON" = none && break
4984 prog="import sys, string
4985 # split strings by '.' and convert to numeric. Append some zeros
4986 # because we need at least 4 digits for the hex conversion.
4987 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4988 minverhex = 0
4989 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4990 sys.exit(sys.hexversion < minverhex)"
4991 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4992 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4993 ac_status=$?
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; then
4996 break
4999 done
5001 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
5002 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
5003 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
5004 if test "$am_cv_pathless_PYTHON" = none; then
5005 PYTHON=:
5006 else
5007 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
5008 set dummy $am_cv_pathless_PYTHON; ac_word=$2
5009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5011 if test "${ac_cv_path_PYTHON+set}" = set; then
5012 echo $ECHO_N "(cached) $ECHO_C" >&6
5013 else
5014 case $PYTHON in
5015 [\\/]* | ?:[\\/]*)
5016 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5020 for as_dir in $PATH
5022 IFS=$as_save_IFS
5023 test -z "$as_dir" && as_dir=.
5024 for ac_exec_ext in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5028 break 2
5030 done
5031 done
5032 IFS=$as_save_IFS
5035 esac
5037 PYTHON=$ac_cv_path_PYTHON
5038 if test -n "$PYTHON"; then
5039 { echo "$as_me:$LINENO: result: $PYTHON" >&5
5040 echo "${ECHO_T}$PYTHON" >&6; }
5041 else
5042 { echo "$as_me:$LINENO: result: no" >&5
5043 echo "${ECHO_T}no" >&6; }
5048 am_display_PYTHON=$am_cv_pathless_PYTHON
5052 if test "$PYTHON" = :; then
5053 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
5054 echo "$as_me: error: no suitable Python interpreter found" >&2;}
5055 { (exit 1); exit 1; }; }
5056 else
5059 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
5060 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
5061 if test "${am_cv_python_version+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5063 else
5064 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
5066 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
5067 echo "${ECHO_T}$am_cv_python_version" >&6; }
5068 PYTHON_VERSION=$am_cv_python_version
5072 PYTHON_PREFIX='${prefix}'
5074 PYTHON_EXEC_PREFIX='${exec_prefix}'
5078 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5079 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5080 if test "${am_cv_python_platform+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5085 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5086 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5087 PYTHON_PLATFORM=$am_cv_python_platform
5092 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5093 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5094 if test "${am_cv_python_pythondir+set}" = set; then
5095 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 else
5097 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5098 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5100 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5101 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5102 pythondir=$am_cv_python_pythondir
5106 pkgpythondir=\${pythondir}/$PACKAGE
5109 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5110 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5111 if test "${am_cv_python_pyexecdir+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5115 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5117 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5118 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5119 pyexecdir=$am_cv_python_pyexecdir
5123 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5131 FOR=for
5133 IF=if
5135 TEST=test
5137 CMP=cmp
5141 # Check for some includes for the X11 HIDD and the kernel
5144 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5145 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5146 if test "${ac_cv_path_GREP+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 # Extract the first word of "grep ggrep" to use in msg output
5150 if test -z "$GREP"; then
5151 set dummy grep ggrep; ac_prog_name=$2
5152 if test "${ac_cv_path_GREP+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5154 else
5155 ac_path_GREP_found=false
5156 # Loop through the user's path and test for each of PROGNAME-LIST
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_prog in grep ggrep; do
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5165 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5166 # Check for GNU ac_path_GREP and select it if it is found.
5167 # Check for GNU $ac_path_GREP
5168 case `"$ac_path_GREP" --version 2>&1` in
5169 *GNU*)
5170 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5172 ac_count=0
5173 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5174 while :
5176 cat "conftest.in" "conftest.in" >"conftest.tmp"
5177 mv "conftest.tmp" "conftest.in"
5178 cp "conftest.in" "conftest.nl"
5179 echo 'GREP' >> "conftest.nl"
5180 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5182 ac_count=`expr $ac_count + 1`
5183 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5184 # Best one so far, save it but keep looking for a better one
5185 ac_cv_path_GREP="$ac_path_GREP"
5186 ac_path_GREP_max=$ac_count
5188 # 10*(2^10) chars as input seems more than enough
5189 test $ac_count -gt 10 && break
5190 done
5191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5192 esac
5195 $ac_path_GREP_found && break 3
5196 done
5197 done
5199 done
5200 IFS=$as_save_IFS
5205 GREP="$ac_cv_path_GREP"
5206 if test -z "$GREP"; then
5207 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5208 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5209 { (exit 1); exit 1; }; }
5212 else
5213 ac_cv_path_GREP=$GREP
5218 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5219 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5220 GREP="$ac_cv_path_GREP"
5223 { echo "$as_me:$LINENO: checking for egrep" >&5
5224 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5225 if test "${ac_cv_path_EGREP+set}" = set; then
5226 echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5229 then ac_cv_path_EGREP="$GREP -E"
5230 else
5231 # Extract the first word of "egrep" to use in msg output
5232 if test -z "$EGREP"; then
5233 set dummy egrep; ac_prog_name=$2
5234 if test "${ac_cv_path_EGREP+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 else
5237 ac_path_EGREP_found=false
5238 # Loop through the user's path and test for each of PROGNAME-LIST
5239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5240 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5242 IFS=$as_save_IFS
5243 test -z "$as_dir" && as_dir=.
5244 for ac_prog in egrep; do
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5247 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5248 # Check for GNU ac_path_EGREP and select it if it is found.
5249 # Check for GNU $ac_path_EGREP
5250 case `"$ac_path_EGREP" --version 2>&1` in
5251 *GNU*)
5252 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5254 ac_count=0
5255 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5256 while :
5258 cat "conftest.in" "conftest.in" >"conftest.tmp"
5259 mv "conftest.tmp" "conftest.in"
5260 cp "conftest.in" "conftest.nl"
5261 echo 'EGREP' >> "conftest.nl"
5262 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5264 ac_count=`expr $ac_count + 1`
5265 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5266 # Best one so far, save it but keep looking for a better one
5267 ac_cv_path_EGREP="$ac_path_EGREP"
5268 ac_path_EGREP_max=$ac_count
5270 # 10*(2^10) chars as input seems more than enough
5271 test $ac_count -gt 10 && break
5272 done
5273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5274 esac
5277 $ac_path_EGREP_found && break 3
5278 done
5279 done
5281 done
5282 IFS=$as_save_IFS
5287 EGREP="$ac_cv_path_EGREP"
5288 if test -z "$EGREP"; then
5289 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5290 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5291 { (exit 1); exit 1; }; }
5294 else
5295 ac_cv_path_EGREP=$EGREP
5301 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5302 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5303 EGREP="$ac_cv_path_EGREP"
5306 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5307 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5308 if test "${ac_cv_header_stdc+set}" = set; then
5309 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 else
5311 cat >conftest.$ac_ext <<_ACEOF
5312 /* confdefs.h. */
5313 _ACEOF
5314 cat confdefs.h >>conftest.$ac_ext
5315 cat >>conftest.$ac_ext <<_ACEOF
5316 /* end confdefs.h. */
5317 #include <stdlib.h>
5318 #include <stdarg.h>
5319 #include <string.h>
5320 #include <float.h>
5323 main ()
5327 return 0;
5329 _ACEOF
5330 rm -f conftest.$ac_objext
5331 if { (ac_try="$ac_compile"
5332 case "(($ac_try" in
5333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334 *) ac_try_echo=$ac_try;;
5335 esac
5336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5337 (eval "$ac_compile") 2>conftest.er1
5338 ac_status=$?
5339 grep -v '^ *+' conftest.er1 >conftest.err
5340 rm -f conftest.er1
5341 cat conftest.err >&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); } && {
5344 test -z "$ac_c_werror_flag" ||
5345 test ! -s conftest.err
5346 } && test -s conftest.$ac_objext; then
5347 ac_cv_header_stdc=yes
5348 else
5349 echo "$as_me: failed program was:" >&5
5350 sed 's/^/| /' conftest.$ac_ext >&5
5352 ac_cv_header_stdc=no
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 if test $ac_cv_header_stdc = yes; then
5358 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5359 cat >conftest.$ac_ext <<_ACEOF
5360 /* confdefs.h. */
5361 _ACEOF
5362 cat confdefs.h >>conftest.$ac_ext
5363 cat >>conftest.$ac_ext <<_ACEOF
5364 /* end confdefs.h. */
5365 #include <string.h>
5367 _ACEOF
5368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5369 $EGREP "memchr" >/dev/null 2>&1; then
5371 else
5372 ac_cv_header_stdc=no
5374 rm -f conftest*
5378 if test $ac_cv_header_stdc = yes; then
5379 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5380 cat >conftest.$ac_ext <<_ACEOF
5381 /* confdefs.h. */
5382 _ACEOF
5383 cat confdefs.h >>conftest.$ac_ext
5384 cat >>conftest.$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 #include <stdlib.h>
5388 _ACEOF
5389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5390 $EGREP "free" >/dev/null 2>&1; then
5392 else
5393 ac_cv_header_stdc=no
5395 rm -f conftest*
5399 if test $ac_cv_header_stdc = yes; then
5400 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5401 if test "$cross_compiling" = yes; then
5403 else
5404 cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h. */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h. */
5410 #include <ctype.h>
5411 #include <stdlib.h>
5412 #if ((' ' & 0x0FF) == 0x020)
5413 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5414 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5415 #else
5416 # define ISLOWER(c) \
5417 (('a' <= (c) && (c) <= 'i') \
5418 || ('j' <= (c) && (c) <= 'r') \
5419 || ('s' <= (c) && (c) <= 'z'))
5420 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5421 #endif
5423 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5425 main ()
5427 int i;
5428 for (i = 0; i < 256; i++)
5429 if (XOR (islower (i), ISLOWER (i))
5430 || toupper (i) != TOUPPER (i))
5431 return 2;
5432 return 0;
5434 _ACEOF
5435 rm -f conftest$ac_exeext
5436 if { (ac_try="$ac_link"
5437 case "(($ac_try" in
5438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5439 *) ac_try_echo=$ac_try;;
5440 esac
5441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5442 (eval "$ac_link") 2>&5
5443 ac_status=$?
5444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5446 { (case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449 esac
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_try") 2>&5
5452 ac_status=$?
5453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5454 (exit $ac_status); }; }; then
5456 else
5457 echo "$as_me: program exited with status $ac_status" >&5
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5461 ( exit $ac_status )
5462 ac_cv_header_stdc=no
5464 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5470 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5471 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5472 if test $ac_cv_header_stdc = yes; then
5474 cat >>confdefs.h <<\_ACEOF
5475 #define STDC_HEADERS 1
5476 _ACEOF
5480 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5490 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5491 inttypes.h stdint.h unistd.h
5493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5497 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 else
5499 cat >conftest.$ac_ext <<_ACEOF
5500 /* confdefs.h. */
5501 _ACEOF
5502 cat confdefs.h >>conftest.$ac_ext
5503 cat >>conftest.$ac_ext <<_ACEOF
5504 /* end confdefs.h. */
5505 $ac_includes_default
5507 #include <$ac_header>
5508 _ACEOF
5509 rm -f conftest.$ac_objext
5510 if { (ac_try="$ac_compile"
5511 case "(($ac_try" in
5512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5513 *) ac_try_echo=$ac_try;;
5514 esac
5515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5516 (eval "$ac_compile") 2>conftest.er1
5517 ac_status=$?
5518 grep -v '^ *+' conftest.er1 >conftest.err
5519 rm -f conftest.er1
5520 cat conftest.err >&5
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); } && {
5523 test -z "$ac_c_werror_flag" ||
5524 test ! -s conftest.err
5525 } && test -s conftest.$ac_objext; then
5526 eval "$as_ac_Header=yes"
5527 else
5528 echo "$as_me: failed program was:" >&5
5529 sed 's/^/| /' conftest.$ac_ext >&5
5531 eval "$as_ac_Header=no"
5534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5536 ac_res=`eval echo '${'$as_ac_Header'}'`
5537 { echo "$as_me:$LINENO: result: $ac_res" >&5
5538 echo "${ECHO_T}$ac_res" >&6; }
5539 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5540 cat >>confdefs.h <<_ACEOF
5541 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5542 _ACEOF
5546 done
5558 for ac_header in sys/ipc.h sys/shm.h \
5559 sys/mmap.h sys/mman.h sysexits.h \
5560 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 ac_res=`eval echo '${'$as_ac_Header'}'`
5571 { echo "$as_me:$LINENO: result: $ac_res" >&5
5572 echo "${ECHO_T}$ac_res" >&6; }
5573 else
5574 # Is the header compilable?
5575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5577 cat >conftest.$ac_ext <<_ACEOF
5578 /* confdefs.h. */
5579 _ACEOF
5580 cat confdefs.h >>conftest.$ac_ext
5581 cat >>conftest.$ac_ext <<_ACEOF
5582 /* end confdefs.h. */
5583 $ac_includes_default
5584 #include <$ac_header>
5585 _ACEOF
5586 rm -f conftest.$ac_objext
5587 if { (ac_try="$ac_compile"
5588 case "(($ac_try" in
5589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5591 esac
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_compile") 2>conftest.er1
5594 ac_status=$?
5595 grep -v '^ *+' conftest.er1 >conftest.err
5596 rm -f conftest.er1
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && {
5600 test -z "$ac_c_werror_flag" ||
5601 test ! -s conftest.err
5602 } && test -s conftest.$ac_objext; then
5603 ac_header_compiler=yes
5604 else
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 ac_header_compiler=no
5611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5613 echo "${ECHO_T}$ac_header_compiler" >&6; }
5615 # Is the header present?
5616 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5617 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5618 cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h. */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 #include <$ac_header>
5625 _ACEOF
5626 if { (ac_try="$ac_cpp conftest.$ac_ext"
5627 case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630 esac
5631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5633 ac_status=$?
5634 grep -v '^ *+' conftest.er1 >conftest.err
5635 rm -f conftest.er1
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } >/dev/null && {
5639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5640 test ! -s conftest.err
5641 }; then
5642 ac_header_preproc=yes
5643 else
5644 echo "$as_me: failed program was:" >&5
5645 sed 's/^/| /' conftest.$ac_ext >&5
5647 ac_header_preproc=no
5650 rm -f conftest.err conftest.$ac_ext
5651 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5652 echo "${ECHO_T}$ac_header_preproc" >&6; }
5654 # So? What about this header?
5655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5656 yes:no: )
5657 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5658 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5659 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5661 ac_header_preproc=yes
5663 no:yes:* )
5664 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5665 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5666 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5667 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5668 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5669 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5670 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5671 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5672 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5674 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5675 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5678 esac
5679 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5680 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5682 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 else
5684 eval "$as_ac_Header=\$ac_header_preproc"
5686 ac_res=`eval echo '${'$as_ac_Header'}'`
5687 { echo "$as_me:$LINENO: result: $ac_res" >&5
5688 echo "${ECHO_T}$ac_res" >&6; }
5691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5692 cat >>confdefs.h <<_ACEOF
5693 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5694 _ACEOF
5698 done
5702 for ac_header in sys/mount.h
5704 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5708 echo $ECHO_N "(cached) $ECHO_C" >&6
5709 else
5710 cat >conftest.$ac_ext <<_ACEOF
5711 /* confdefs.h. */
5712 _ACEOF
5713 cat confdefs.h >>conftest.$ac_ext
5714 cat >>conftest.$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 #include <sys/param.h>
5718 #include <$ac_header>
5719 _ACEOF
5720 rm -f conftest.$ac_objext
5721 if { (ac_try="$ac_compile"
5722 case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725 esac
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_compile") 2>conftest.er1
5728 ac_status=$?
5729 grep -v '^ *+' conftest.er1 >conftest.err
5730 rm -f conftest.er1
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && {
5734 test -z "$ac_c_werror_flag" ||
5735 test ! -s conftest.err
5736 } && test -s conftest.$ac_objext; then
5737 eval "$as_ac_Header=yes"
5738 else
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5742 eval "$as_ac_Header=no"
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 ac_res=`eval echo '${'$as_ac_Header'}'`
5748 { echo "$as_me:$LINENO: result: $ac_res" >&5
5749 echo "${ECHO_T}$ac_res" >&6; }
5750 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5751 cat >>confdefs.h <<_ACEOF
5752 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5753 _ACEOF
5757 done
5765 ac_header_dirent=no
5766 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5767 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5768 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5769 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773 cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h. */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5779 #include <sys/types.h>
5780 #include <$ac_hdr>
5783 main ()
5785 if ((DIR *) 0)
5786 return 0;
5788 return 0;
5790 _ACEOF
5791 rm -f conftest.$ac_objext
5792 if { (ac_try="$ac_compile"
5793 case "(($ac_try" in
5794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5795 *) ac_try_echo=$ac_try;;
5796 esac
5797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5798 (eval "$ac_compile") 2>conftest.er1
5799 ac_status=$?
5800 grep -v '^ *+' conftest.er1 >conftest.err
5801 rm -f conftest.er1
5802 cat conftest.err >&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); } && {
5805 test -z "$ac_c_werror_flag" ||
5806 test ! -s conftest.err
5807 } && test -s conftest.$ac_objext; then
5808 eval "$as_ac_Header=yes"
5809 else
5810 echo "$as_me: failed program was:" >&5
5811 sed 's/^/| /' conftest.$ac_ext >&5
5813 eval "$as_ac_Header=no"
5816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818 ac_res=`eval echo '${'$as_ac_Header'}'`
5819 { echo "$as_me:$LINENO: result: $ac_res" >&5
5820 echo "${ECHO_T}$ac_res" >&6; }
5821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5822 cat >>confdefs.h <<_ACEOF
5823 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5824 _ACEOF
5826 ac_header_dirent=$ac_hdr; break
5829 done
5830 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5831 if test $ac_header_dirent = dirent.h; then
5832 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5833 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5834 if test "${ac_cv_search_opendir+set}" = set; then
5835 echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837 ac_func_search_save_LIBS=$LIBS
5838 cat >conftest.$ac_ext <<_ACEOF
5839 /* confdefs.h. */
5840 _ACEOF
5841 cat confdefs.h >>conftest.$ac_ext
5842 cat >>conftest.$ac_ext <<_ACEOF
5843 /* end confdefs.h. */
5845 /* Override any GCC internal prototype to avoid an error.
5846 Use char because int might match the return type of a GCC
5847 builtin and then its argument prototype would still apply. */
5848 #ifdef __cplusplus
5849 extern "C"
5850 #endif
5851 char opendir ();
5853 main ()
5855 return opendir ();
5857 return 0;
5859 _ACEOF
5860 for ac_lib in '' dir; do
5861 if test -z "$ac_lib"; then
5862 ac_res="none required"
5863 else
5864 ac_res=-l$ac_lib
5865 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5867 rm -f conftest.$ac_objext conftest$ac_exeext
5868 if { (ac_try="$ac_link"
5869 case "(($ac_try" in
5870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5871 *) ac_try_echo=$ac_try;;
5872 esac
5873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5874 (eval "$ac_link") 2>conftest.er1
5875 ac_status=$?
5876 grep -v '^ *+' conftest.er1 >conftest.err
5877 rm -f conftest.er1
5878 cat conftest.err >&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); } && {
5881 test -z "$ac_c_werror_flag" ||
5882 test ! -s conftest.err
5883 } && test -s conftest$ac_exeext &&
5884 $as_test_x conftest$ac_exeext; then
5885 ac_cv_search_opendir=$ac_res
5886 else
5887 echo "$as_me: failed program was:" >&5
5888 sed 's/^/| /' conftest.$ac_ext >&5
5893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5894 conftest$ac_exeext
5895 if test "${ac_cv_search_opendir+set}" = set; then
5896 break
5898 done
5899 if test "${ac_cv_search_opendir+set}" = set; then
5901 else
5902 ac_cv_search_opendir=no
5904 rm conftest.$ac_ext
5905 LIBS=$ac_func_search_save_LIBS
5907 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5908 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5909 ac_res=$ac_cv_search_opendir
5910 if test "$ac_res" != no; then
5911 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5915 else
5916 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5917 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5918 if test "${ac_cv_search_opendir+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921 ac_func_search_save_LIBS=$LIBS
5922 cat >conftest.$ac_ext <<_ACEOF
5923 /* confdefs.h. */
5924 _ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5929 /* Override any GCC internal prototype to avoid an error.
5930 Use char because int might match the return type of a GCC
5931 builtin and then its argument prototype would still apply. */
5932 #ifdef __cplusplus
5933 extern "C"
5934 #endif
5935 char opendir ();
5937 main ()
5939 return opendir ();
5941 return 0;
5943 _ACEOF
5944 for ac_lib in '' x; do
5945 if test -z "$ac_lib"; then
5946 ac_res="none required"
5947 else
5948 ac_res=-l$ac_lib
5949 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5951 rm -f conftest.$ac_objext conftest$ac_exeext
5952 if { (ac_try="$ac_link"
5953 case "(($ac_try" in
5954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5955 *) ac_try_echo=$ac_try;;
5956 esac
5957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5958 (eval "$ac_link") 2>conftest.er1
5959 ac_status=$?
5960 grep -v '^ *+' conftest.er1 >conftest.err
5961 rm -f conftest.er1
5962 cat conftest.err >&5
5963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5964 (exit $ac_status); } && {
5965 test -z "$ac_c_werror_flag" ||
5966 test ! -s conftest.err
5967 } && test -s conftest$ac_exeext &&
5968 $as_test_x conftest$ac_exeext; then
5969 ac_cv_search_opendir=$ac_res
5970 else
5971 echo "$as_me: failed program was:" >&5
5972 sed 's/^/| /' conftest.$ac_ext >&5
5977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5978 conftest$ac_exeext
5979 if test "${ac_cv_search_opendir+set}" = set; then
5980 break
5982 done
5983 if test "${ac_cv_search_opendir+set}" = set; then
5985 else
5986 ac_cv_search_opendir=no
5988 rm conftest.$ac_ext
5989 LIBS=$ac_func_search_save_LIBS
5991 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5992 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5993 ac_res=$ac_cv_search_opendir
5994 if test "$ac_res" != no; then
5995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6001 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
6002 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
6003 if test "${ac_cv_header_stat_broken+set}" = set; then
6004 echo $ECHO_N "(cached) $ECHO_C" >&6
6005 else
6006 cat >conftest.$ac_ext <<_ACEOF
6007 /* confdefs.h. */
6008 _ACEOF
6009 cat confdefs.h >>conftest.$ac_ext
6010 cat >>conftest.$ac_ext <<_ACEOF
6011 /* end confdefs.h. */
6012 #include <sys/types.h>
6013 #include <sys/stat.h>
6015 #if defined S_ISBLK && defined S_IFDIR
6016 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
6017 #endif
6019 #if defined S_ISBLK && defined S_IFCHR
6020 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
6021 #endif
6023 #if defined S_ISLNK && defined S_IFREG
6024 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
6025 #endif
6027 #if defined S_ISSOCK && defined S_IFREG
6028 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
6029 #endif
6031 _ACEOF
6032 rm -f conftest.$ac_objext
6033 if { (ac_try="$ac_compile"
6034 case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_compile") 2>conftest.er1
6040 ac_status=$?
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } && {
6046 test -z "$ac_c_werror_flag" ||
6047 test ! -s conftest.err
6048 } && test -s conftest.$ac_objext; then
6049 ac_cv_header_stat_broken=no
6050 else
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6054 ac_cv_header_stat_broken=yes
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6059 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
6060 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
6061 if test $ac_cv_header_stat_broken = yes; then
6063 cat >>confdefs.h <<\_ACEOF
6064 #define STAT_MACROS_BROKEN 1
6065 _ACEOF
6069 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6070 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6071 if test "${ac_cv_header_stdc+set}" = set; then
6072 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 else
6074 cat >conftest.$ac_ext <<_ACEOF
6075 /* confdefs.h. */
6076 _ACEOF
6077 cat confdefs.h >>conftest.$ac_ext
6078 cat >>conftest.$ac_ext <<_ACEOF
6079 /* end confdefs.h. */
6080 #include <stdlib.h>
6081 #include <stdarg.h>
6082 #include <string.h>
6083 #include <float.h>
6086 main ()
6090 return 0;
6092 _ACEOF
6093 rm -f conftest.$ac_objext
6094 if { (ac_try="$ac_compile"
6095 case "(($ac_try" in
6096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6097 *) ac_try_echo=$ac_try;;
6098 esac
6099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6100 (eval "$ac_compile") 2>conftest.er1
6101 ac_status=$?
6102 grep -v '^ *+' conftest.er1 >conftest.err
6103 rm -f conftest.er1
6104 cat conftest.err >&5
6105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6106 (exit $ac_status); } && {
6107 test -z "$ac_c_werror_flag" ||
6108 test ! -s conftest.err
6109 } && test -s conftest.$ac_objext; then
6110 ac_cv_header_stdc=yes
6111 else
6112 echo "$as_me: failed program was:" >&5
6113 sed 's/^/| /' conftest.$ac_ext >&5
6115 ac_cv_header_stdc=no
6118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6120 if test $ac_cv_header_stdc = yes; then
6121 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6122 cat >conftest.$ac_ext <<_ACEOF
6123 /* confdefs.h. */
6124 _ACEOF
6125 cat confdefs.h >>conftest.$ac_ext
6126 cat >>conftest.$ac_ext <<_ACEOF
6127 /* end confdefs.h. */
6128 #include <string.h>
6130 _ACEOF
6131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6132 $EGREP "memchr" >/dev/null 2>&1; then
6134 else
6135 ac_cv_header_stdc=no
6137 rm -f conftest*
6141 if test $ac_cv_header_stdc = yes; then
6142 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6143 cat >conftest.$ac_ext <<_ACEOF
6144 /* confdefs.h. */
6145 _ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6149 #include <stdlib.h>
6151 _ACEOF
6152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6153 $EGREP "free" >/dev/null 2>&1; then
6155 else
6156 ac_cv_header_stdc=no
6158 rm -f conftest*
6162 if test $ac_cv_header_stdc = yes; then
6163 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6164 if test "$cross_compiling" = yes; then
6166 else
6167 cat >conftest.$ac_ext <<_ACEOF
6168 /* confdefs.h. */
6169 _ACEOF
6170 cat confdefs.h >>conftest.$ac_ext
6171 cat >>conftest.$ac_ext <<_ACEOF
6172 /* end confdefs.h. */
6173 #include <ctype.h>
6174 #include <stdlib.h>
6175 #if ((' ' & 0x0FF) == 0x020)
6176 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6177 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6178 #else
6179 # define ISLOWER(c) \
6180 (('a' <= (c) && (c) <= 'i') \
6181 || ('j' <= (c) && (c) <= 'r') \
6182 || ('s' <= (c) && (c) <= 'z'))
6183 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6184 #endif
6186 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6188 main ()
6190 int i;
6191 for (i = 0; i < 256; i++)
6192 if (XOR (islower (i), ISLOWER (i))
6193 || toupper (i) != TOUPPER (i))
6194 return 2;
6195 return 0;
6197 _ACEOF
6198 rm -f conftest$ac_exeext
6199 if { (ac_try="$ac_link"
6200 case "(($ac_try" in
6201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6202 *) ac_try_echo=$ac_try;;
6203 esac
6204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6205 (eval "$ac_link") 2>&5
6206 ac_status=$?
6207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6208 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6209 { (case "(($ac_try" in
6210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6211 *) ac_try_echo=$ac_try;;
6212 esac
6213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6214 (eval "$ac_try") 2>&5
6215 ac_status=$?
6216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217 (exit $ac_status); }; }; then
6219 else
6220 echo "$as_me: program exited with status $ac_status" >&5
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.$ac_ext >&5
6224 ( exit $ac_status )
6225 ac_cv_header_stdc=no
6227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6233 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6234 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6235 if test $ac_cv_header_stdc = yes; then
6237 cat >>confdefs.h <<\_ACEOF
6238 #define STDC_HEADERS 1
6239 _ACEOF
6243 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6244 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6245 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 else
6248 cat >conftest.$ac_ext <<_ACEOF
6249 /* confdefs.h. */
6250 _ACEOF
6251 cat confdefs.h >>conftest.$ac_ext
6252 cat >>conftest.$ac_ext <<_ACEOF
6253 /* end confdefs.h. */
6254 #include <sys/types.h>
6255 #include <sys/wait.h>
6256 #ifndef WEXITSTATUS
6257 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6258 #endif
6259 #ifndef WIFEXITED
6260 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6261 #endif
6264 main ()
6266 int s;
6267 wait (&s);
6268 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6270 return 0;
6272 _ACEOF
6273 rm -f conftest.$ac_objext
6274 if { (ac_try="$ac_compile"
6275 case "(($ac_try" in
6276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6277 *) ac_try_echo=$ac_try;;
6278 esac
6279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6280 (eval "$ac_compile") 2>conftest.er1
6281 ac_status=$?
6282 grep -v '^ *+' conftest.er1 >conftest.err
6283 rm -f conftest.er1
6284 cat conftest.err >&5
6285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6286 (exit $ac_status); } && {
6287 test -z "$ac_c_werror_flag" ||
6288 test ! -s conftest.err
6289 } && test -s conftest.$ac_objext; then
6290 ac_cv_header_sys_wait_h=yes
6291 else
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.$ac_ext >&5
6295 ac_cv_header_sys_wait_h=no
6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6301 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6302 if test $ac_cv_header_sys_wait_h = yes; then
6304 cat >>confdefs.h <<\_ACEOF
6305 #define HAVE_SYS_WAIT_H 1
6306 _ACEOF
6310 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6311 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6312 if test "${ac_cv_header_time+set}" = set; then
6313 echo $ECHO_N "(cached) $ECHO_C" >&6
6314 else
6315 cat >conftest.$ac_ext <<_ACEOF
6316 /* confdefs.h. */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h. */
6321 #include <sys/types.h>
6322 #include <sys/time.h>
6323 #include <time.h>
6326 main ()
6328 if ((struct tm *) 0)
6329 return 0;
6331 return 0;
6333 _ACEOF
6334 rm -f conftest.$ac_objext
6335 if { (ac_try="$ac_compile"
6336 case "(($ac_try" in
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6339 esac
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_compile") 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } && {
6348 test -z "$ac_c_werror_flag" ||
6349 test ! -s conftest.err
6350 } && test -s conftest.$ac_objext; then
6351 ac_cv_header_time=yes
6352 else
6353 echo "$as_me: failed program was:" >&5
6354 sed 's/^/| /' conftest.$ac_ext >&5
6356 ac_cv_header_time=no
6359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6362 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6363 if test $ac_cv_header_time = yes; then
6365 cat >>confdefs.h <<\_ACEOF
6366 #define TIME_WITH_SYS_TIME 1
6367 _ACEOF
6371 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6372 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6373 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 else
6376 cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h. */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 $ac_includes_default
6384 main ()
6386 static struct stat ac_aggr;
6387 if (ac_aggr.st_blksize)
6388 return 0;
6390 return 0;
6392 _ACEOF
6393 rm -f conftest.$ac_objext
6394 if { (ac_try="$ac_compile"
6395 case "(($ac_try" in
6396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6397 *) ac_try_echo=$ac_try;;
6398 esac
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_compile") 2>conftest.er1
6401 ac_status=$?
6402 grep -v '^ *+' conftest.er1 >conftest.err
6403 rm -f conftest.er1
6404 cat conftest.err >&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } && {
6407 test -z "$ac_c_werror_flag" ||
6408 test ! -s conftest.err
6409 } && test -s conftest.$ac_objext; then
6410 ac_cv_member_struct_stat_st_blksize=yes
6411 else
6412 echo "$as_me: failed program was:" >&5
6413 sed 's/^/| /' conftest.$ac_ext >&5
6415 cat >conftest.$ac_ext <<_ACEOF
6416 /* confdefs.h. */
6417 _ACEOF
6418 cat confdefs.h >>conftest.$ac_ext
6419 cat >>conftest.$ac_ext <<_ACEOF
6420 /* end confdefs.h. */
6421 $ac_includes_default
6423 main ()
6425 static struct stat ac_aggr;
6426 if (sizeof ac_aggr.st_blksize)
6427 return 0;
6429 return 0;
6431 _ACEOF
6432 rm -f conftest.$ac_objext
6433 if { (ac_try="$ac_compile"
6434 case "(($ac_try" in
6435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6436 *) ac_try_echo=$ac_try;;
6437 esac
6438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6439 (eval "$ac_compile") 2>conftest.er1
6440 ac_status=$?
6441 grep -v '^ *+' conftest.er1 >conftest.err
6442 rm -f conftest.er1
6443 cat conftest.err >&5
6444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6445 (exit $ac_status); } && {
6446 test -z "$ac_c_werror_flag" ||
6447 test ! -s conftest.err
6448 } && test -s conftest.$ac_objext; then
6449 ac_cv_member_struct_stat_st_blksize=yes
6450 else
6451 echo "$as_me: failed program was:" >&5
6452 sed 's/^/| /' conftest.$ac_ext >&5
6454 ac_cv_member_struct_stat_st_blksize=no
6457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6463 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6464 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6466 cat >>confdefs.h <<_ACEOF
6467 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6468 _ACEOF
6471 cat >>confdefs.h <<\_ACEOF
6472 #define HAVE_ST_BLKSIZE 1
6473 _ACEOF
6478 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6479 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6480 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 else
6483 cat >conftest.$ac_ext <<_ACEOF
6484 /* confdefs.h. */
6485 _ACEOF
6486 cat confdefs.h >>conftest.$ac_ext
6487 cat >>conftest.$ac_ext <<_ACEOF
6488 /* end confdefs.h. */
6489 $ac_includes_default
6491 main ()
6493 static struct stat ac_aggr;
6494 if (ac_aggr.st_blocks)
6495 return 0;
6497 return 0;
6499 _ACEOF
6500 rm -f conftest.$ac_objext
6501 if { (ac_try="$ac_compile"
6502 case "(($ac_try" in
6503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6504 *) ac_try_echo=$ac_try;;
6505 esac
6506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6507 (eval "$ac_compile") 2>conftest.er1
6508 ac_status=$?
6509 grep -v '^ *+' conftest.er1 >conftest.err
6510 rm -f conftest.er1
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } && {
6514 test -z "$ac_c_werror_flag" ||
6515 test ! -s conftest.err
6516 } && test -s conftest.$ac_objext; then
6517 ac_cv_member_struct_stat_st_blocks=yes
6518 else
6519 echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6522 cat >conftest.$ac_ext <<_ACEOF
6523 /* confdefs.h. */
6524 _ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 $ac_includes_default
6530 main ()
6532 static struct stat ac_aggr;
6533 if (sizeof ac_aggr.st_blocks)
6534 return 0;
6536 return 0;
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (ac_try="$ac_compile"
6541 case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544 esac
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && {
6553 test -z "$ac_c_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest.$ac_objext; then
6556 ac_cv_member_struct_stat_st_blocks=yes
6557 else
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6561 ac_cv_member_struct_stat_st_blocks=no
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6569 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6570 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6571 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6573 cat >>confdefs.h <<_ACEOF
6574 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6575 _ACEOF
6578 cat >>confdefs.h <<\_ACEOF
6579 #define HAVE_ST_BLOCKS 1
6580 _ACEOF
6582 else
6583 case " $LIBOBJS " in
6584 *" fileblocks.$ac_objext "* ) ;;
6585 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6587 esac
6592 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6593 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6594 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6595 echo $ECHO_N "(cached) $ECHO_C" >&6
6596 else
6597 cat >conftest.$ac_ext <<_ACEOF
6598 /* confdefs.h. */
6599 _ACEOF
6600 cat confdefs.h >>conftest.$ac_ext
6601 cat >>conftest.$ac_ext <<_ACEOF
6602 /* end confdefs.h. */
6603 $ac_includes_default
6605 main ()
6607 static struct stat ac_aggr;
6608 if (ac_aggr.st_rdev)
6609 return 0;
6611 return 0;
6613 _ACEOF
6614 rm -f conftest.$ac_objext
6615 if { (ac_try="$ac_compile"
6616 case "(($ac_try" in
6617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6618 *) ac_try_echo=$ac_try;;
6619 esac
6620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6621 (eval "$ac_compile") 2>conftest.er1
6622 ac_status=$?
6623 grep -v '^ *+' conftest.er1 >conftest.err
6624 rm -f conftest.er1
6625 cat conftest.err >&5
6626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6627 (exit $ac_status); } && {
6628 test -z "$ac_c_werror_flag" ||
6629 test ! -s conftest.err
6630 } && test -s conftest.$ac_objext; then
6631 ac_cv_member_struct_stat_st_rdev=yes
6632 else
6633 echo "$as_me: failed program was:" >&5
6634 sed 's/^/| /' conftest.$ac_ext >&5
6636 cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h. */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6642 $ac_includes_default
6644 main ()
6646 static struct stat ac_aggr;
6647 if (sizeof ac_aggr.st_rdev)
6648 return 0;
6650 return 0;
6652 _ACEOF
6653 rm -f conftest.$ac_objext
6654 if { (ac_try="$ac_compile"
6655 case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6658 esac
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_compile") 2>conftest.er1
6661 ac_status=$?
6662 grep -v '^ *+' conftest.er1 >conftest.err
6663 rm -f conftest.er1
6664 cat conftest.err >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && {
6667 test -z "$ac_c_werror_flag" ||
6668 test ! -s conftest.err
6669 } && test -s conftest.$ac_objext; then
6670 ac_cv_member_struct_stat_st_rdev=yes
6671 else
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6675 ac_cv_member_struct_stat_st_rdev=no
6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6683 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6684 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6685 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6687 cat >>confdefs.h <<_ACEOF
6688 #define HAVE_STRUCT_STAT_ST_RDEV 1
6689 _ACEOF
6692 cat >>confdefs.h <<\_ACEOF
6693 #define HAVE_ST_RDEV 1
6694 _ACEOF
6699 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6700 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6701 if test "${ac_cv_struct_tm+set}" = set; then
6702 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 else
6704 cat >conftest.$ac_ext <<_ACEOF
6705 /* confdefs.h. */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h. */
6710 #include <sys/types.h>
6711 #include <time.h>
6714 main ()
6716 struct tm tm;
6717 int *p = &tm.tm_sec;
6718 return !p;
6720 return 0;
6722 _ACEOF
6723 rm -f conftest.$ac_objext
6724 if { (ac_try="$ac_compile"
6725 case "(($ac_try" in
6726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6727 *) ac_try_echo=$ac_try;;
6728 esac
6729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6730 (eval "$ac_compile") 2>conftest.er1
6731 ac_status=$?
6732 grep -v '^ *+' conftest.er1 >conftest.err
6733 rm -f conftest.er1
6734 cat conftest.err >&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && {
6737 test -z "$ac_c_werror_flag" ||
6738 test ! -s conftest.err
6739 } && test -s conftest.$ac_objext; then
6740 ac_cv_struct_tm=time.h
6741 else
6742 echo "$as_me: failed program was:" >&5
6743 sed 's/^/| /' conftest.$ac_ext >&5
6745 ac_cv_struct_tm=sys/time.h
6748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6750 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6751 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6752 if test $ac_cv_struct_tm = sys/time.h; then
6754 cat >>confdefs.h <<\_ACEOF
6755 #define TM_IN_SYS_TIME 1
6756 _ACEOF
6760 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6761 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6762 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6763 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765 cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h. */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 #include <sys/types.h>
6772 #include <$ac_cv_struct_tm>
6776 main ()
6778 static struct tm ac_aggr;
6779 if (ac_aggr.tm_zone)
6780 return 0;
6782 return 0;
6784 _ACEOF
6785 rm -f conftest.$ac_objext
6786 if { (ac_try="$ac_compile"
6787 case "(($ac_try" in
6788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6790 esac
6791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6792 (eval "$ac_compile") 2>conftest.er1
6793 ac_status=$?
6794 grep -v '^ *+' conftest.er1 >conftest.err
6795 rm -f conftest.er1
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } && {
6799 test -z "$ac_c_werror_flag" ||
6800 test ! -s conftest.err
6801 } && test -s conftest.$ac_objext; then
6802 ac_cv_member_struct_tm_tm_zone=yes
6803 else
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6807 cat >conftest.$ac_ext <<_ACEOF
6808 /* confdefs.h. */
6809 _ACEOF
6810 cat confdefs.h >>conftest.$ac_ext
6811 cat >>conftest.$ac_ext <<_ACEOF
6812 /* end confdefs.h. */
6813 #include <sys/types.h>
6814 #include <$ac_cv_struct_tm>
6818 main ()
6820 static struct tm ac_aggr;
6821 if (sizeof ac_aggr.tm_zone)
6822 return 0;
6824 return 0;
6826 _ACEOF
6827 rm -f conftest.$ac_objext
6828 if { (ac_try="$ac_compile"
6829 case "(($ac_try" in
6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831 *) ac_try_echo=$ac_try;;
6832 esac
6833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6834 (eval "$ac_compile") 2>conftest.er1
6835 ac_status=$?
6836 grep -v '^ *+' conftest.er1 >conftest.err
6837 rm -f conftest.er1
6838 cat conftest.err >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } && {
6841 test -z "$ac_c_werror_flag" ||
6842 test ! -s conftest.err
6843 } && test -s conftest.$ac_objext; then
6844 ac_cv_member_struct_tm_tm_zone=yes
6845 else
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6849 ac_cv_member_struct_tm_tm_zone=no
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6858 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6859 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6861 cat >>confdefs.h <<_ACEOF
6862 #define HAVE_STRUCT_TM_TM_ZONE 1
6863 _ACEOF
6868 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6870 cat >>confdefs.h <<\_ACEOF
6871 #define HAVE_TM_ZONE 1
6872 _ACEOF
6874 else
6875 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6876 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6877 if test "${ac_cv_have_decl_tzname+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6879 else
6880 cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h. */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 #include <time.h>
6889 main ()
6891 #ifndef tzname
6892 (void) tzname;
6893 #endif
6896 return 0;
6898 _ACEOF
6899 rm -f conftest.$ac_objext
6900 if { (ac_try="$ac_compile"
6901 case "(($ac_try" in
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6904 esac
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_compile") 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest.$ac_objext; then
6916 ac_cv_have_decl_tzname=yes
6917 else
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 ac_cv_have_decl_tzname=no
6924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6926 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6927 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6928 if test $ac_cv_have_decl_tzname = yes; then
6930 cat >>confdefs.h <<_ACEOF
6931 #define HAVE_DECL_TZNAME 1
6932 _ACEOF
6935 else
6936 cat >>confdefs.h <<_ACEOF
6937 #define HAVE_DECL_TZNAME 0
6938 _ACEOF
6944 { echo "$as_me:$LINENO: checking for tzname" >&5
6945 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6946 if test "${ac_cv_var_tzname+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6948 else
6949 cat >conftest.$ac_ext <<_ACEOF
6950 /* confdefs.h. */
6951 _ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 #include <time.h>
6956 #if !HAVE_DECL_TZNAME
6957 extern char *tzname[];
6958 #endif
6961 main ()
6963 return tzname[0][0];
6965 return 0;
6967 _ACEOF
6968 rm -f conftest.$ac_objext conftest$ac_exeext
6969 if { (ac_try="$ac_link"
6970 case "(($ac_try" in
6971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6972 *) ac_try_echo=$ac_try;;
6973 esac
6974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6975 (eval "$ac_link") 2>conftest.er1
6976 ac_status=$?
6977 grep -v '^ *+' conftest.er1 >conftest.err
6978 rm -f conftest.er1
6979 cat conftest.err >&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && {
6982 test -z "$ac_c_werror_flag" ||
6983 test ! -s conftest.err
6984 } && test -s conftest$ac_exeext &&
6985 $as_test_x conftest$ac_exeext; then
6986 ac_cv_var_tzname=yes
6987 else
6988 echo "$as_me: failed program was:" >&5
6989 sed 's/^/| /' conftest.$ac_ext >&5
6991 ac_cv_var_tzname=no
6994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6995 conftest$ac_exeext conftest.$ac_ext
6997 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6998 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
6999 if test $ac_cv_var_tzname = yes; then
7001 cat >>confdefs.h <<\_ACEOF
7002 #define HAVE_TZNAME 1
7003 _ACEOF
7008 { echo "$as_me:$LINENO: checking for off_t" >&5
7009 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
7010 if test "${ac_cv_type_off_t+set}" = set; then
7011 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 else
7013 cat >conftest.$ac_ext <<_ACEOF
7014 /* confdefs.h. */
7015 _ACEOF
7016 cat confdefs.h >>conftest.$ac_ext
7017 cat >>conftest.$ac_ext <<_ACEOF
7018 /* end confdefs.h. */
7019 $ac_includes_default
7020 typedef off_t ac__type_new_;
7022 main ()
7024 if ((ac__type_new_ *) 0)
7025 return 0;
7026 if (sizeof (ac__type_new_))
7027 return 0;
7029 return 0;
7031 _ACEOF
7032 rm -f conftest.$ac_objext
7033 if { (ac_try="$ac_compile"
7034 case "(($ac_try" in
7035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7036 *) ac_try_echo=$ac_try;;
7037 esac
7038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7039 (eval "$ac_compile") 2>conftest.er1
7040 ac_status=$?
7041 grep -v '^ *+' conftest.er1 >conftest.err
7042 rm -f conftest.er1
7043 cat conftest.err >&5
7044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7045 (exit $ac_status); } && {
7046 test -z "$ac_c_werror_flag" ||
7047 test ! -s conftest.err
7048 } && test -s conftest.$ac_objext; then
7049 ac_cv_type_off_t=yes
7050 else
7051 echo "$as_me: failed program was:" >&5
7052 sed 's/^/| /' conftest.$ac_ext >&5
7054 ac_cv_type_off_t=no
7057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7059 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
7060 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
7061 if test $ac_cv_type_off_t = yes; then
7063 else
7065 cat >>confdefs.h <<_ACEOF
7066 #define off_t long int
7067 _ACEOF
7071 { echo "$as_me:$LINENO: checking for pid_t" >&5
7072 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7073 if test "${ac_cv_type_pid_t+set}" = set; then
7074 echo $ECHO_N "(cached) $ECHO_C" >&6
7075 else
7076 cat >conftest.$ac_ext <<_ACEOF
7077 /* confdefs.h. */
7078 _ACEOF
7079 cat confdefs.h >>conftest.$ac_ext
7080 cat >>conftest.$ac_ext <<_ACEOF
7081 /* end confdefs.h. */
7082 $ac_includes_default
7083 typedef pid_t ac__type_new_;
7085 main ()
7087 if ((ac__type_new_ *) 0)
7088 return 0;
7089 if (sizeof (ac__type_new_))
7090 return 0;
7092 return 0;
7094 _ACEOF
7095 rm -f conftest.$ac_objext
7096 if { (ac_try="$ac_compile"
7097 case "(($ac_try" in
7098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099 *) ac_try_echo=$ac_try;;
7100 esac
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102 (eval "$ac_compile") 2>conftest.er1
7103 ac_status=$?
7104 grep -v '^ *+' conftest.er1 >conftest.err
7105 rm -f conftest.er1
7106 cat conftest.err >&5
7107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108 (exit $ac_status); } && {
7109 test -z "$ac_c_werror_flag" ||
7110 test ! -s conftest.err
7111 } && test -s conftest.$ac_objext; then
7112 ac_cv_type_pid_t=yes
7113 else
7114 echo "$as_me: failed program was:" >&5
7115 sed 's/^/| /' conftest.$ac_ext >&5
7117 ac_cv_type_pid_t=no
7120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7122 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7123 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7124 if test $ac_cv_type_pid_t = yes; then
7126 else
7128 cat >>confdefs.h <<_ACEOF
7129 #define pid_t int
7130 _ACEOF
7134 { echo "$as_me:$LINENO: checking for size_t" >&5
7135 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7136 if test "${ac_cv_type_size_t+set}" = set; then
7137 echo $ECHO_N "(cached) $ECHO_C" >&6
7138 else
7139 cat >conftest.$ac_ext <<_ACEOF
7140 /* confdefs.h. */
7141 _ACEOF
7142 cat confdefs.h >>conftest.$ac_ext
7143 cat >>conftest.$ac_ext <<_ACEOF
7144 /* end confdefs.h. */
7145 $ac_includes_default
7146 typedef size_t ac__type_new_;
7148 main ()
7150 if ((ac__type_new_ *) 0)
7151 return 0;
7152 if (sizeof (ac__type_new_))
7153 return 0;
7155 return 0;
7157 _ACEOF
7158 rm -f conftest.$ac_objext
7159 if { (ac_try="$ac_compile"
7160 case "(($ac_try" in
7161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7162 *) ac_try_echo=$ac_try;;
7163 esac
7164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7165 (eval "$ac_compile") 2>conftest.er1
7166 ac_status=$?
7167 grep -v '^ *+' conftest.er1 >conftest.err
7168 rm -f conftest.er1
7169 cat conftest.err >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && {
7172 test -z "$ac_c_werror_flag" ||
7173 test ! -s conftest.err
7174 } && test -s conftest.$ac_objext; then
7175 ac_cv_type_size_t=yes
7176 else
7177 echo "$as_me: failed program was:" >&5
7178 sed 's/^/| /' conftest.$ac_ext >&5
7180 ac_cv_type_size_t=no
7183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7185 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7186 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7187 if test $ac_cv_type_size_t = yes; then
7189 else
7191 cat >>confdefs.h <<_ACEOF
7192 #define size_t unsigned int
7193 _ACEOF
7197 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7198 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7199 if test "${ac_cv_type_uid_t+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7201 else
7202 cat >conftest.$ac_ext <<_ACEOF
7203 /* confdefs.h. */
7204 _ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 #include <sys/types.h>
7210 _ACEOF
7211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7212 $EGREP "uid_t" >/dev/null 2>&1; then
7213 ac_cv_type_uid_t=yes
7214 else
7215 ac_cv_type_uid_t=no
7217 rm -f conftest*
7220 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7221 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7222 if test $ac_cv_type_uid_t = no; then
7224 cat >>confdefs.h <<\_ACEOF
7225 #define uid_t int
7226 _ACEOF
7229 cat >>confdefs.h <<\_ACEOF
7230 #define gid_t int
7231 _ACEOF
7236 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7237 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7238 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7240 else
7241 cat >conftest.$ac_ext <<_ACEOF
7242 /* confdefs.h. */
7243 _ACEOF
7244 cat confdefs.h >>conftest.$ac_ext
7245 cat >>conftest.$ac_ext <<_ACEOF
7246 /* end confdefs.h. */
7247 $ac_includes_default
7249 main ()
7251 static struct tm ac_aggr;
7252 if (ac_aggr.tm_gmtoff)
7253 return 0;
7255 return 0;
7257 _ACEOF
7258 rm -f conftest.$ac_objext
7259 if { (ac_try="$ac_compile"
7260 case "(($ac_try" in
7261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7262 *) ac_try_echo=$ac_try;;
7263 esac
7264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_c_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7275 ac_cv_member_struct_tm_tm_gmtoff=yes
7276 else
7277 echo "$as_me: failed program was:" >&5
7278 sed 's/^/| /' conftest.$ac_ext >&5
7280 cat >conftest.$ac_ext <<_ACEOF
7281 /* confdefs.h. */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h. */
7286 $ac_includes_default
7288 main ()
7290 static struct tm ac_aggr;
7291 if (sizeof ac_aggr.tm_gmtoff)
7292 return 0;
7294 return 0;
7296 _ACEOF
7297 rm -f conftest.$ac_objext
7298 if { (ac_try="$ac_compile"
7299 case "(($ac_try" in
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7302 esac
7303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304 (eval "$ac_compile") 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 } && test -s conftest.$ac_objext; then
7314 ac_cv_member_struct_tm_tm_gmtoff=yes
7315 else
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7319 ac_cv_member_struct_tm_tm_gmtoff=no
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7327 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7328 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7329 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7331 cat >>confdefs.h <<_ACEOF
7332 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7333 _ACEOF
7339 # Look for some functions
7354 for ac_func in getpagesize kqueue statfs statvfs \
7355 clone kse_create rfork_thread thr_create sa_register \
7356 getcontext makecontext setcontext sigaltstack swapcontext
7358 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7359 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7360 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7361 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7362 echo $ECHO_N "(cached) $ECHO_C" >&6
7363 else
7364 cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h. */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7371 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7372 #define $ac_func innocuous_$ac_func
7374 /* System header to define __stub macros and hopefully few prototypes,
7375 which can conflict with char $ac_func (); below.
7376 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7377 <limits.h> exists even on freestanding compilers. */
7379 #ifdef __STDC__
7380 # include <limits.h>
7381 #else
7382 # include <assert.h>
7383 #endif
7385 #undef $ac_func
7387 /* Override any GCC internal prototype to avoid an error.
7388 Use char because int might match the return type of a GCC
7389 builtin and then its argument prototype would still apply. */
7390 #ifdef __cplusplus
7391 extern "C"
7392 #endif
7393 char $ac_func ();
7394 /* The GNU C library defines this for functions which it implements
7395 to always fail with ENOSYS. Some functions are actually named
7396 something starting with __ and the normal name is an alias. */
7397 #if defined __stub_$ac_func || defined __stub___$ac_func
7398 choke me
7399 #endif
7402 main ()
7404 return $ac_func ();
7406 return 0;
7408 _ACEOF
7409 rm -f conftest.$ac_objext conftest$ac_exeext
7410 if { (ac_try="$ac_link"
7411 case "(($ac_try" in
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7414 esac
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_link") 2>conftest.er1
7417 ac_status=$?
7418 grep -v '^ *+' conftest.er1 >conftest.err
7419 rm -f conftest.er1
7420 cat conftest.err >&5
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); } && {
7423 test -z "$ac_c_werror_flag" ||
7424 test ! -s conftest.err
7425 } && test -s conftest$ac_exeext &&
7426 $as_test_x conftest$ac_exeext; then
7427 eval "$as_ac_var=yes"
7428 else
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7432 eval "$as_ac_var=no"
7435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7436 conftest$ac_exeext conftest.$ac_ext
7438 ac_res=`eval echo '${'$as_ac_var'}'`
7439 { echo "$as_me:$LINENO: result: $ac_res" >&5
7440 echo "${ECHO_T}$ac_res" >&6; }
7441 if test `eval echo '${'$as_ac_var'}'` = yes; then
7442 cat >>confdefs.h <<_ACEOF
7443 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7444 _ACEOF
7447 done
7452 for ac_header in stdlib.h unistd.h
7454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7459 echo $ECHO_N "(cached) $ECHO_C" >&6
7461 ac_res=`eval echo '${'$as_ac_Header'}'`
7462 { echo "$as_me:$LINENO: result: $ac_res" >&5
7463 echo "${ECHO_T}$ac_res" >&6; }
7464 else
7465 # Is the header compilable?
7466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7468 cat >conftest.$ac_ext <<_ACEOF
7469 /* confdefs.h. */
7470 _ACEOF
7471 cat confdefs.h >>conftest.$ac_ext
7472 cat >>conftest.$ac_ext <<_ACEOF
7473 /* end confdefs.h. */
7474 $ac_includes_default
7475 #include <$ac_header>
7476 _ACEOF
7477 rm -f conftest.$ac_objext
7478 if { (ac_try="$ac_compile"
7479 case "(($ac_try" in
7480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7481 *) ac_try_echo=$ac_try;;
7482 esac
7483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7484 (eval "$ac_compile") 2>conftest.er1
7485 ac_status=$?
7486 grep -v '^ *+' conftest.er1 >conftest.err
7487 rm -f conftest.er1
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } && {
7491 test -z "$ac_c_werror_flag" ||
7492 test ! -s conftest.err
7493 } && test -s conftest.$ac_objext; then
7494 ac_header_compiler=yes
7495 else
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7499 ac_header_compiler=no
7502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7504 echo "${ECHO_T}$ac_header_compiler" >&6; }
7506 # Is the header present?
7507 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7508 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7509 cat >conftest.$ac_ext <<_ACEOF
7510 /* confdefs.h. */
7511 _ACEOF
7512 cat confdefs.h >>conftest.$ac_ext
7513 cat >>conftest.$ac_ext <<_ACEOF
7514 /* end confdefs.h. */
7515 #include <$ac_header>
7516 _ACEOF
7517 if { (ac_try="$ac_cpp conftest.$ac_ext"
7518 case "(($ac_try" in
7519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7520 *) ac_try_echo=$ac_try;;
7521 esac
7522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7524 ac_status=$?
7525 grep -v '^ *+' conftest.er1 >conftest.err
7526 rm -f conftest.er1
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } >/dev/null && {
7530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7531 test ! -s conftest.err
7532 }; then
7533 ac_header_preproc=yes
7534 else
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 ac_header_preproc=no
7541 rm -f conftest.err conftest.$ac_ext
7542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7543 echo "${ECHO_T}$ac_header_preproc" >&6; }
7545 # So? What about this header?
7546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7547 yes:no: )
7548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7552 ac_header_preproc=yes
7554 no:yes:* )
7555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7569 esac
7570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7573 echo $ECHO_N "(cached) $ECHO_C" >&6
7574 else
7575 eval "$as_ac_Header=\$ac_header_preproc"
7577 ac_res=`eval echo '${'$as_ac_Header'}'`
7578 { echo "$as_me:$LINENO: result: $ac_res" >&5
7579 echo "${ECHO_T}$ac_res" >&6; }
7582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7583 cat >>confdefs.h <<_ACEOF
7584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7585 _ACEOF
7589 done
7592 for ac_func in getpagesize
7594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7595 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7597 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7598 echo $ECHO_N "(cached) $ECHO_C" >&6
7599 else
7600 cat >conftest.$ac_ext <<_ACEOF
7601 /* confdefs.h. */
7602 _ACEOF
7603 cat confdefs.h >>conftest.$ac_ext
7604 cat >>conftest.$ac_ext <<_ACEOF
7605 /* end confdefs.h. */
7606 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7608 #define $ac_func innocuous_$ac_func
7610 /* System header to define __stub macros and hopefully few prototypes,
7611 which can conflict with char $ac_func (); below.
7612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7613 <limits.h> exists even on freestanding compilers. */
7615 #ifdef __STDC__
7616 # include <limits.h>
7617 #else
7618 # include <assert.h>
7619 #endif
7621 #undef $ac_func
7623 /* Override any GCC internal prototype to avoid an error.
7624 Use char because int might match the return type of a GCC
7625 builtin and then its argument prototype would still apply. */
7626 #ifdef __cplusplus
7627 extern "C"
7628 #endif
7629 char $ac_func ();
7630 /* The GNU C library defines this for functions which it implements
7631 to always fail with ENOSYS. Some functions are actually named
7632 something starting with __ and the normal name is an alias. */
7633 #if defined __stub_$ac_func || defined __stub___$ac_func
7634 choke me
7635 #endif
7638 main ()
7640 return $ac_func ();
7642 return 0;
7644 _ACEOF
7645 rm -f conftest.$ac_objext conftest$ac_exeext
7646 if { (ac_try="$ac_link"
7647 case "(($ac_try" in
7648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7649 *) ac_try_echo=$ac_try;;
7650 esac
7651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7652 (eval "$ac_link") 2>conftest.er1
7653 ac_status=$?
7654 grep -v '^ *+' conftest.er1 >conftest.err
7655 rm -f conftest.er1
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } && {
7659 test -z "$ac_c_werror_flag" ||
7660 test ! -s conftest.err
7661 } && test -s conftest$ac_exeext &&
7662 $as_test_x conftest$ac_exeext; then
7663 eval "$as_ac_var=yes"
7664 else
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7668 eval "$as_ac_var=no"
7671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7672 conftest$ac_exeext conftest.$ac_ext
7674 ac_res=`eval echo '${'$as_ac_var'}'`
7675 { echo "$as_me:$LINENO: result: $ac_res" >&5
7676 echo "${ECHO_T}$ac_res" >&6; }
7677 if test `eval echo '${'$as_ac_var'}'` = yes; then
7678 cat >>confdefs.h <<_ACEOF
7679 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7680 _ACEOF
7683 done
7685 { echo "$as_me:$LINENO: checking for working mmap" >&5
7686 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7687 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7688 echo $ECHO_N "(cached) $ECHO_C" >&6
7689 else
7690 if test "$cross_compiling" = yes; then
7691 ac_cv_func_mmap_fixed_mapped=no
7692 else
7693 cat >conftest.$ac_ext <<_ACEOF
7694 /* confdefs.h. */
7695 _ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7699 $ac_includes_default
7700 /* malloc might have been renamed as rpl_malloc. */
7701 #undef malloc
7703 /* Thanks to Mike Haertel and Jim Avera for this test.
7704 Here is a matrix of mmap possibilities:
7705 mmap private not fixed
7706 mmap private fixed at somewhere currently unmapped
7707 mmap private fixed at somewhere already mapped
7708 mmap shared not fixed
7709 mmap shared fixed at somewhere currently unmapped
7710 mmap shared fixed at somewhere already mapped
7711 For private mappings, we should verify that changes cannot be read()
7712 back from the file, nor mmap's back from the file at a different
7713 address. (There have been systems where private was not correctly
7714 implemented like the infamous i386 svr4.0, and systems where the
7715 VM page cache was not coherent with the file system buffer cache
7716 like early versions of FreeBSD and possibly contemporary NetBSD.)
7717 For shared mappings, we should conversely verify that changes get
7718 propagated back to all the places they're supposed to be.
7720 Grep wants private fixed already mapped.
7721 The main things grep needs to know about mmap are:
7722 * does it exist and is it safe to write into the mmap'd area
7723 * how to use it (BSD variants) */
7725 #include <fcntl.h>
7726 #include <sys/mman.h>
7728 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7729 char *malloc ();
7730 #endif
7732 /* This mess was copied from the GNU getpagesize.h. */
7733 #ifndef HAVE_GETPAGESIZE
7734 /* Assume that all systems that can run configure have sys/param.h. */
7735 # ifndef HAVE_SYS_PARAM_H
7736 # define HAVE_SYS_PARAM_H 1
7737 # endif
7739 # ifdef _SC_PAGESIZE
7740 # define getpagesize() sysconf(_SC_PAGESIZE)
7741 # else /* no _SC_PAGESIZE */
7742 # ifdef HAVE_SYS_PARAM_H
7743 # include <sys/param.h>
7744 # ifdef EXEC_PAGESIZE
7745 # define getpagesize() EXEC_PAGESIZE
7746 # else /* no EXEC_PAGESIZE */
7747 # ifdef NBPG
7748 # define getpagesize() NBPG * CLSIZE
7749 # ifndef CLSIZE
7750 # define CLSIZE 1
7751 # endif /* no CLSIZE */
7752 # else /* no NBPG */
7753 # ifdef NBPC
7754 # define getpagesize() NBPC
7755 # else /* no NBPC */
7756 # ifdef PAGESIZE
7757 # define getpagesize() PAGESIZE
7758 # endif /* PAGESIZE */
7759 # endif /* no NBPC */
7760 # endif /* no NBPG */
7761 # endif /* no EXEC_PAGESIZE */
7762 # else /* no HAVE_SYS_PARAM_H */
7763 # define getpagesize() 8192 /* punt totally */
7764 # endif /* no HAVE_SYS_PARAM_H */
7765 # endif /* no _SC_PAGESIZE */
7767 #endif /* no HAVE_GETPAGESIZE */
7770 main ()
7772 char *data, *data2, *data3;
7773 int i, pagesize;
7774 int fd;
7776 pagesize = getpagesize ();
7778 /* First, make a file with some known garbage in it. */
7779 data = (char *) malloc (pagesize);
7780 if (!data)
7781 return 1;
7782 for (i = 0; i < pagesize; ++i)
7783 *(data + i) = rand ();
7784 umask (0);
7785 fd = creat ("conftest.mmap", 0600);
7786 if (fd < 0)
7787 return 1;
7788 if (write (fd, data, pagesize) != pagesize)
7789 return 1;
7790 close (fd);
7792 /* Next, try to mmap the file at a fixed address which already has
7793 something else allocated at it. If we can, also make sure that
7794 we see the same garbage. */
7795 fd = open ("conftest.mmap", O_RDWR);
7796 if (fd < 0)
7797 return 1;
7798 data2 = (char *) malloc (2 * pagesize);
7799 if (!data2)
7800 return 1;
7801 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7802 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7803 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7804 return 1;
7805 for (i = 0; i < pagesize; ++i)
7806 if (*(data + i) != *(data2 + i))
7807 return 1;
7809 /* Finally, make sure that changes to the mapped area do not
7810 percolate back to the file as seen by read(). (This is a bug on
7811 some variants of i386 svr4.0.) */
7812 for (i = 0; i < pagesize; ++i)
7813 *(data2 + i) = *(data2 + i) + 1;
7814 data3 = (char *) malloc (pagesize);
7815 if (!data3)
7816 return 1;
7817 if (read (fd, data3, pagesize) != pagesize)
7818 return 1;
7819 for (i = 0; i < pagesize; ++i)
7820 if (*(data + i) != *(data3 + i))
7821 return 1;
7822 close (fd);
7823 return 0;
7825 _ACEOF
7826 rm -f conftest$ac_exeext
7827 if { (ac_try="$ac_link"
7828 case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831 esac
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_link") 2>&5
7834 ac_status=$?
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7837 { (case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7840 esac
7841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_try") 2>&5
7843 ac_status=$?
7844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7845 (exit $ac_status); }; }; then
7846 ac_cv_func_mmap_fixed_mapped=yes
7847 else
7848 echo "$as_me: program exited with status $ac_status" >&5
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.$ac_ext >&5
7852 ( exit $ac_status )
7853 ac_cv_func_mmap_fixed_mapped=no
7855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7860 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7861 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7862 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7864 cat >>confdefs.h <<\_ACEOF
7865 #define HAVE_MMAP 1
7866 _ACEOF
7869 rm -f conftest.mmap
7874 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7875 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7876 aros_config_ldflags=""
7878 aros_shared_default=yes
7880 aros_shared_cflags="-fPIC"
7881 aros_shared_aflags=""
7882 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7883 aros_kernel_ldflags="-Wl,-rpath,./lib"
7885 aros_target_ar_flags="cr"
7886 aros_target_nm_flags="-C -ul"
7887 aros_target_strip_flags="--strip-unneeded -R.comment"
7889 aros_compiler_libs=
7891 aros_target_genmap="-Wl,-Map -Xlinker"
7893 # Native flavour stuff
7894 aros_bochs_hack="0"
7895 aros_serial_debug="0"
7897 # Palm native flavour stuff
7898 aros_palm_debug_hack="0"
7900 # Unix flavour stuff
7901 aros_nesting_supervisor="0"
7903 # Collect-aros stuff: "-ius" to ignore undefined symbols
7904 ignore_undefined_symbols=""
7906 #-----------------------------------------------------------------------------
7909 # GCC 4.1+ has a stack protection feature that requires OS support. Ubuntu has
7910 # it switched on by default, and we use the host compiler, so it compiles AROS
7911 # code with this enabled resulting in link failures as we don't have support
7912 # for it.
7914 # We use two methods to disable it. For the host compiler (used to compile
7915 # some hosted modules), we test to see if the compiler supports stack
7916 # protection, and if it does we disable it in AROS_CONFIG_CFLAGS. This should
7917 # work on all platforms.
7919 # For the "cross" compiler we clear the "ssp_default" spec in config/specs.in
7920 # (this is done unconditionally, as it should have no effect on compilers
7921 # without the stack protection feature). This may be specific to the way that
7922 # Ubuntu enables the feature, so may not work everywhere. My specs-fu isn't
7923 # strong enough to disable it in a generic way though, so we'll live with it
7924 # until another vendor ships GCC with it enabled in a different way, and deal
7925 # with it then.
7928 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7929 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7930 save_cflags="$CFLAGS"
7931 CFLAGS="$CFLAGS -fno-stack-protector"
7932 cat >conftest.$ac_ext <<_ACEOF
7933 /* confdefs.h. */
7934 _ACEOF
7935 cat confdefs.h >>conftest.$ac_ext
7936 cat >>conftest.$ac_ext <<_ACEOF
7937 /* end confdefs.h. */
7940 main ()
7944 return 0;
7946 _ACEOF
7947 rm -f conftest.$ac_objext
7948 if { (ac_try="$ac_compile"
7949 case "(($ac_try" in
7950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7951 *) ac_try_echo=$ac_try;;
7952 esac
7953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7954 (eval "$ac_compile") 2>conftest.er1
7955 ac_status=$?
7956 grep -v '^ *+' conftest.er1 >conftest.err
7957 rm -f conftest.er1
7958 cat conftest.err >&5
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); } && {
7961 test -z "$ac_c_werror_flag" ||
7962 test ! -s conftest.err
7963 } && test -s conftest.$ac_objext; then
7964 use_no_stack_protector="yes"
7965 else
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7969 use_no_stack_protector="no"
7972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7973 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
7974 echo "${ECHO_T}$use_no_stack_protector" >&6; }
7975 if test "x-$use_no_stack_protector" = "x-yes" ; then
7976 aros_host_cflags="$aros_host_cflags -fno-stack-protector"
7978 CFLAGS="$save_cflags"
7981 #-----------------------------------------------------------------------------
7983 # Disable pointer-signedness warnings if the compiler recognises the option
7984 # (this only works for the host compiler at the moment)
7986 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
7987 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
7988 save_cflags="$CFLAGS"
7989 CFLAGS="$CFLAGS -Wno-pointer-sign"
7990 cat >conftest.$ac_ext <<_ACEOF
7991 /* confdefs.h. */
7992 _ACEOF
7993 cat confdefs.h >>conftest.$ac_ext
7994 cat >>conftest.$ac_ext <<_ACEOF
7995 /* end confdefs.h. */
7998 main ()
8002 return 0;
8004 _ACEOF
8005 rm -f conftest.$ac_objext
8006 if { (ac_try="$ac_compile"
8007 case "(($ac_try" in
8008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8009 *) ac_try_echo=$ac_try;;
8010 esac
8011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8012 (eval "$ac_compile") 2>conftest.er1
8013 ac_status=$?
8014 grep -v '^ *+' conftest.er1 >conftest.err
8015 rm -f conftest.er1
8016 cat conftest.err >&5
8017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8018 (exit $ac_status); } && {
8019 test -z "$ac_c_werror_flag" ||
8020 test ! -s conftest.err
8021 } && test -s conftest.$ac_objext; then
8022 use_no_sign_warning="yes"
8023 else
8024 echo "$as_me: failed program was:" >&5
8025 sed 's/^/| /' conftest.$ac_ext >&5
8027 use_no_sign_warning="no"
8030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8031 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
8032 echo "${ECHO_T}$use_no_sign_warning" >&6; }
8033 if test "x-$use_no_sign_warning" = "x-yes" ; then
8034 aros_host_cflags="$aros_host_cflags -Wno-pointer-sign"
8036 CFLAGS="$save_cflags"
8038 #-----------------------------------------------------------------------------
8040 { echo "$as_me:$LINENO: checking for type of build" >&5
8041 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
8042 # Check whether --enable-build_type was given.
8043 if test "${enable_build_type+set}" = set; then
8044 enableval=$enable_build_type; build_type=$enableval
8045 else
8046 build_type="personal"
8050 if test "$build_type" = "nightly"; then
8051 build_type_string="NIGHTLY"
8052 elif test "$build_type" = "snapshot"; then
8053 build_type_string="SNAPSHOT"
8054 elif test "$build_type" = "milestone"; then
8055 build_type_string="MILESTONE"
8056 elif test "$build_type" = "release"; then
8057 build_type_string="RELEASE"
8058 else
8059 build_type_string="PERSONAL"
8060 build_type="personal"
8063 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
8065 { echo "$as_me:$LINENO: result: $build_type" >&5
8066 echo "${ECHO_T}$build_type" >&6; }
8068 #-----------------------------------------------------------------------------
8069 all_debug_types="messages stack mungwall modules symbols"
8071 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
8072 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
8073 # Check whether --enable-debug was given.
8074 if test "${enable_debug+set}" = set; then
8075 enableval=$enable_debug; debug="$enableval"
8076 else
8077 debug=""
8081 if test "$debug" = "" -o "$debug" = "no"; then
8082 debug="none"
8083 elif test "$debug" = "yes"; then
8084 debug="all"
8087 if test "$debug" = "all" ; then
8088 debug=$all_debug_types
8089 for d in $all_debug_types; do
8090 export aros_${d}_debug="1"
8091 done
8092 else
8093 for d in $all_debug_types; do
8094 export aros_${d}_debug="0"
8095 done
8098 if test "$debug" != "none"; then
8099 debug=`echo $debug | sed s/,/\ /g`
8100 for d in $debug; do
8101 found="0"
8102 for d2 in $all_debug_types; do
8103 if test "$d2" = "$d"; then
8104 found="1"
8105 break
8107 done
8108 if test "$found" = "0"; then
8109 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
8110 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
8111 { (exit 1); exit 1; }; }
8113 export aros_${d}_debug="1"
8114 done
8115 aros_debug="yes"
8117 { echo "$as_me:$LINENO: result: $debug" >&5
8118 echo "${ECHO_T}$debug" >&6; }
8120 if test "$aros_messages_debug" = "1"; then
8121 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
8122 else
8123 aros_messages_debug=""
8125 if test "$aros_symbols_debug" = "1"; then
8126 aros_symbols_debug="-g"
8127 else
8128 aros_symbols_debug=""
8131 # These are the flags to pass when compiling debugged programs
8132 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
8133 aros_debug_aflags=""
8134 aros_debug_ldflags="$aros_symbols_debug"
8136 aros_crosstools="no"
8138 #-----------------------------------------------------------------------------
8139 # Checking if we should build crosstools..
8140 { echo "$as_me:$LINENO: checking whether to build crosstools" >&5
8141 echo $ECHO_N "checking whether to build crosstools... $ECHO_C" >&6; }
8142 # Check whether --enable-crosstools was given.
8143 if test "${enable_crosstools+set}" = set; then
8144 enableval=$enable_crosstools; crosstools="$enableval"
8145 else
8146 crosstools="no"
8149 if test "$crosstools" != "" -a "$crosstools" != "no"; then
8150 { echo "$as_me:$LINENO: result: yes" >&5
8151 echo "${ECHO_T}yes" >&6; }
8152 aros_crosstools="yes"
8153 else
8154 { echo "$as_me:$LINENO: result: no" >&5
8155 echo "${ECHO_T}no" >&6; }
8158 #-----------------------------------------------------------------------------
8159 # Checking for distcc and ccache.
8161 # Always apply the transforms in this particular order. Basically you should
8162 # always run 'ccache distcc compiler' in that order for the best performance.
8164 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
8165 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
8166 # Check whether --enable-distcc was given.
8167 if test "${enable_distcc+set}" = set; then
8168 enableval=$enable_distcc; distcc="$enableval"
8169 else
8170 distcc="no"
8173 if test "$distcc" != "" -a "$distcc" != "no"; then
8174 # AC_CHECK_PROG will print out the result in this case
8175 # Extract the first word of "distcc", so it can be a program name with args.
8176 set dummy distcc; ac_word=$2
8177 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8179 if test "${ac_cv_path_DISTCC+set}" = set; then
8180 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 else
8182 case $DISTCC in
8183 [\\/]* | ?:[\\/]*)
8184 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8188 for as_dir in $PATH
8190 IFS=$as_save_IFS
8191 test -z "$as_dir" && as_dir=.
8192 for ac_exec_ext in '' $ac_executable_extensions; do
8193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8194 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8196 break 2
8198 done
8199 done
8200 IFS=$as_save_IFS
8202 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8204 esac
8206 DISTCC=$ac_cv_path_DISTCC
8207 if test -n "$DISTCC"; then
8208 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8209 echo "${ECHO_T}$DISTCC" >&6; }
8210 else
8211 { echo "$as_me:$LINENO: result: no" >&5
8212 echo "${ECHO_T}no" >&6; }
8216 else
8217 { echo "$as_me:$LINENO: result: no" >&5
8218 echo "${ECHO_T}no" >&6; }
8221 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8222 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8223 # Check whether --enable-ccache was given.
8224 if test "${enable_ccache+set}" = set; then
8225 enableval=$enable_ccache; ccache="$enableval"
8226 else
8227 ccache="no"
8230 if test "$ccache" != "" -a "$ccache" != "no"; then
8231 # AC_CHECK_PROG will print out the result in this case
8232 # Extract the first word of "ccache", so it can be a program name with args.
8233 set dummy ccache; ac_word=$2
8234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8236 if test "${ac_cv_prog_CCACHE+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 else
8239 if test -n "$CCACHE"; then
8240 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8241 else
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8249 ac_cv_prog_CCACHE="ccache"
8250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 break 2
8253 done
8254 done
8255 IFS=$as_save_IFS
8259 CCACHE=$ac_cv_prog_CCACHE
8260 if test -n "$CCACHE"; then
8261 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8262 echo "${ECHO_T}$CCACHE" >&6; }
8263 else
8264 { echo "$as_me:$LINENO: result: no" >&5
8265 echo "${ECHO_T}no" >&6; }
8269 else
8270 { echo "$as_me:$LINENO: result: no" >&5
8271 echo "${ECHO_T}no" >&6; }
8274 #-----------------------------------------------------------------------------
8275 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8276 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8278 # Check whether --with-optimization was given.
8279 if test "${with_optimization+set}" = set; then
8280 withval=$with_optimization; optimization="$withval"
8281 else
8282 optimization="unknown"
8285 if test "$optimization" = "unknown"; then
8286 if test "$debug" != "none"; then
8287 optimization="-O0"
8288 else
8289 optimization="-O2"
8292 aros_config_cflags="$aros_config_cflags $optimization"
8293 { echo "$as_me:$LINENO: result: $optimization" >&5
8294 echo "${ECHO_T}$optimization" >&6; }
8296 #-----------------------------------------------------------------------------
8297 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8298 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8299 # Check whether --enable-target_variant was given.
8300 if test "${enable_target_variant+set}" = set; then
8301 enableval=$enable_target_variant; target_variant=$enableval
8302 else
8303 target_variant="none"
8306 if test "$target_variant" = "none"; then
8307 aros_target_variant=""
8308 aros_target_suffix=""
8309 else
8310 aros_target_variant="$target_variant"
8311 aros_target_suffix="-$target_variant"
8313 { echo "$as_me:$LINENO: result: $enableval" >&5
8314 echo "${ECHO_T}$enableval" >&6; }
8316 target_bootloader="none"
8318 #-----------------------------------------------------------------------------
8319 # This is the target configuration switch.
8320 case "$target_os" in
8321 linux*)
8322 aros_target_arch="linux"
8323 case "$target_cpu" in
8324 *m68k*)
8325 aros_target_cpu="m68k"
8326 aros_object_format="m68kelf"
8327 aros_flavour="emulcompat"
8328 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8329 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8330 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8331 gcc_target_cpu="mc68000"
8333 *i?86*)
8334 aros_target_cpu="i386"
8335 aros_object_format="elf_i386"
8336 aros_flavour="emulation"
8337 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8338 aros_default_wbdepth=8
8339 gcc_target_cpu="i386"
8341 *x86_64*)
8342 aros_target_cpu="x86_64"
8343 aros_object_format="elf_x86_64"
8344 aros_flavour="emulation"
8345 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8346 aros_config_cflags="$aros_config_cflags -mno-red-zone"
8347 aros_default_wbdepth=8
8348 gcc_target_cpu="x86_64"
8350 *powerpc*)
8351 aros_target_cpu="ppc"
8352 aros_object_format="elf32ppc"
8353 aros_flavour="emulation"
8354 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8355 aros_default_wbdepth=8
8356 gcc_target_cpu="ppc"
8358 # TODO
8359 # Same as powerpc, but I need this for the nightly build to work again.
8360 # Actually, the nightly should be made working with powerpc target.
8361 # That just was too much work for the moment, another week or two.
8362 *ppc*)
8363 aros_target_cpu="ppc"
8364 aros_object_format="elf32ppc"
8365 aros_flavour="emulation"
8366 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8367 aros_default_wbdepth=8
8368 gcc_target_cpu="ppc"
8371 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8372 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8373 { (exit 1); exit 1; }; }
8375 esac
8379 aros_target_arch="pc"
8380 aros_shared_default="no"
8381 target_bootloader="grub2"
8382 case "$target_cpu" in
8383 *i?86*)
8384 aros_target_cpu="i386"
8387 if test "$aros_object_format" = "" ; then
8388 aros_object_format="elf_i386"
8390 aros_flavour="standalone"
8391 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8392 aros_kernel_ldflags=""
8393 aros_default_wbwidth=640
8394 aros_default_wbheight=480
8395 gcc_target_cpu="i386"
8397 *x86_64*)
8398 aros_target_cpu="x86_64"
8399 aros_serial_debug=1
8400 if test "$aros_object_format" = "" ; then
8401 aros_object_format="elf_x86_64"
8403 aros_flavour="standalone"
8404 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8405 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables -mno-red-zone"
8406 aros_kernel_ldflags=""
8407 aros_default_wbwidth=640
8408 aros_default_wbheight=480
8409 gcc_target_cpu="x86_64"
8412 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8413 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8414 { (exit 1); exit 1; }; }
8416 esac
8419 prep)
8420 aros_target_arch="prep"
8421 aros_shared_default="no"
8422 aros_target_cpu="ppc"
8423 aros_object_format="elf32ppc"
8424 aros_flavour="ppcnative"
8425 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8426 aros_kernel_ldflags=""
8427 aros_default_wbwidth=640
8428 aros_default_wbheight=480
8429 gcc_target_cpu="ppc"
8432 freebsd*)
8433 aros_target_arch="freebsd"
8434 aros_target_cpu="i386"
8435 aros_flavour="emulation"
8436 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8437 gcc_target_cpu="i386"
8439 aros_target_strip_flags="-x"
8442 darwin*)
8443 aros_target_arch="darwin"
8444 aros_flavour="emulation"
8445 case "$target_cpu" in
8446 *i?86*)
8447 aros_target_cpu="i386"
8448 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8449 gcc_target_cpu="i386"
8450 aros_object_format="elf_i386"
8451 aros_target_strip_flags="-x"
8454 { { echo "$as_me:$LINENO: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&5
8455 echo "$as_me: error: \"Unsupported target CPU for darwin hosted flavour -- $target_cpu\"" >&2;}
8456 { (exit 1); exit 1; }; }
8458 esac
8460 netbsd*)
8461 aros_target_arch="netbsd"
8462 case "$target_cpu" in
8463 *m68k*)
8464 aros_target_cpu="m68k"
8465 aros_object_format="m68kelf"
8466 aros_flavour="emulcompat"
8467 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8468 gcc_target_cpu="mc68000"
8470 *i?86*)
8471 aros_target_cpu="i386"
8472 aros_object_format="elf_i386"
8473 aros_flavour="emulation"
8474 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8475 aros_default_wbdepth=8
8476 gcc_target_cpu="i386"
8479 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8480 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8481 { (exit 1); exit 1; }; }
8483 esac
8484 aros_target_genmap="-Wl,-M -Xlinker >"
8485 aros_flavour="emulation"
8486 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8489 openbsd*)
8490 aros_target_arch="openbsd"
8491 case "$target_cpu" in
8492 *i?86*)
8493 aros_target_cpu="i386"
8494 aros_object_format="elf_i386"
8495 aros_flavour="emulation"
8496 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8497 gcc_target_cpu="i386"
8500 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8501 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8502 { (exit 1); exit 1; }; }
8504 esac
8505 aros_target_genmap="-Wl,-M -Xlinker >"
8506 aros_target_nm_flags="-u"
8507 aros_flavour="emulation"
8510 solaris*)
8511 aros_target_arch="solaris"
8512 case "$target_cpu" in
8513 *i?86*)
8514 aros_target_cpu="i386"
8515 aros_object_format="elf_i386"
8516 aros_flavour="emulation"
8517 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__Solaris__"
8518 aros_default_wbdepth=8
8519 gcc_target_cpu="i386"
8521 *sparc*)
8522 aros_target_cpu="sparc"
8523 aros_object_format="elf_sparc"
8524 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8525 gcc_target_cpu="sparc"
8528 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8529 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8530 { (exit 1); exit 1; }; }
8532 esac
8533 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8534 aros_flavour="emulation"
8537 morphos*)
8538 aros_target_arch="morphos"
8539 aros_shared_default="no"
8540 aros_target_cpu="ppc"
8541 aros_object_format="elf_ppc"
8542 aros_flavour="nativecompat"
8543 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8544 gcc_target_cpu="ppc"
8547 sam440)
8548 aros_target_arch="sam440"
8549 aros_shared_default="no"
8550 aros_target_cpu="ppc"
8551 aros_object_format="elf32ppc"
8552 aros_flavour="ppcnative"
8553 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8554 aros_kernel_ldflags=""
8555 aros_default_wbwidth=640
8556 aros_default_wbheight=480
8557 aros_config_cflags="$aros_config_cflags -mcpu=440fp -mno-toc -fno-asynchronous-unwind-tables"
8558 gcc_target_cpu="powerpc"
8561 chrp)
8562 aros_target_arch="chrp"
8563 aros_shared_default="no"
8564 aros_target_cpu="ppc"
8565 aros_object_format="elf32ppc"
8566 aros_flavour="ppcnative"
8567 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8568 aros_kernel_ldflags=""
8569 aros_default_wbwidth=640
8570 aros_default_wbheight=480
8571 aros_config_cflags="$aros_config_cflags -mno-toc -fno-asynchronous-unwind-tables"
8572 gcc_target_cpu="powerpc"
8573 case "$aros_target_variant" in
8574 efika)
8575 aros_config_cflags="$aros_config_cflags -DBIG_ENDIAN_OHCI=1 -mcpu=603e"
8577 esac
8580 amiga*)
8581 aros_target_arch="amiga"
8582 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8583 aros_shared_default="no"
8585 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8587 case "$target_cpu" in
8588 *m68k*)
8589 aros_target_cpu="m68k"
8590 aros_object_format="m68kelf"
8591 aros_flavour="nativecompat"
8592 gcc_target_cpu="mc68000"
8594 *ppc*)
8595 aros_cpu="ppc"
8596 aros_flavour="native"
8597 gcc_target_cpu="ppc"
8600 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8601 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8602 { (exit 1); exit 1; }; }
8604 esac
8607 cygwin*)
8608 aros_target_arch="cygwin"
8609 aros_shared_default="no"
8610 case "$target_cpu" in
8611 *i?86*)
8612 aros_target_cpu="i386"
8613 aros_object_format="elf_i386"
8614 aros_flavour="emulation"
8615 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8616 aros_shared_cflags=""
8617 aros_default_wbdepth=8
8618 gcc_target_cpu="i386"
8619 aros_target_cc="i386-aros-gcc"
8620 aros_target_ld="i386-aros-ld"
8621 aros_target_as="i386-aros-as"
8622 aros_target_ar="i386-aros-ar"
8623 aros_target_ranlib="i386-aros-ranlib"
8624 aros_target_nm="i386-aros-nm"
8625 aros_target_strip="i386-aros-strip"
8626 aros_target_objcopy="i386-aros-objcopy"
8627 aros_target_objdump="i386-aros-objdump"
8630 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8631 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8632 { (exit 1); exit 1; }; }
8634 esac
8637 mingw32*)
8638 aros_target_arch="mingw32"
8639 aros_shared_default="no"
8640 case "$target_cpu" in
8641 *i?86*)
8642 aros_target_cpu="i386"
8643 aros_object_format="elf_i386"
8644 aros_flavour="emulation"
8645 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8646 aros_shared_cflags=""
8647 aros_default_wbdepth=8
8648 gcc_target_cpu="i386"
8649 aros_target_cc="i386-aros-gcc"
8650 aros_target_ld="i386-aros-ld"
8651 aros_target_as="i386-aros-as"
8652 aros_target_ar="i386-aros-ar"
8653 aros_target_ranlib="i386-aros-ranlib"
8654 aros_target_nm="i386-aros-nm"
8655 aros_target_strip="i386-aros-strip"
8656 aros_target_objcopy="i386-aros-objcopy"
8657 aros_target_objdump="i386-aros-objdump"
8660 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&5
8661 echo "$as_me: error: \"Unknown CPU for Mingw32 -- $target_cpu\"" >&2;}
8662 { (exit 1); exit 1; }; }
8664 esac
8665 if test $host_os = "cygwin"; then
8666 aros_kernel_cflags="-mno-cygwin"
8669 pp*)
8670 aros_target_arch="pp"
8671 aros_shared_default="no"
8672 case "$target_cpu" in
8673 *m68k*)
8674 aros_target_cpu="m68k"
8675 aros_object_format="m68kelf"
8676 aros_flavour="palmnative"
8677 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8678 aros_kernel_ldflags=""
8679 aros_default_wbwidth=160
8680 aros_default_wbheight=160
8681 aros_default_wbdepth=1
8682 aros_target_ar_flags="cru"
8683 aros_compiler_libs="-lgcc1"
8684 aros_shared_default=no
8685 aros_shared_cflags="-fpic"
8686 aros_shared_aflags=""
8687 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8688 aros_kernel_ldflags="-Wl,-rpath,./lib"
8689 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8690 aros_debug_aflags=""
8691 aros_debug_ldflags="$aros_symbols_debug"
8692 aros_mungwall_debug="0"
8693 aros_modules_debug="0"
8694 gcc_target_cpu="mc68000"
8695 ignore_undefined_symbols="-ius"
8698 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8699 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8700 { (exit 1); exit 1; }; }
8702 esac
8705 mac*)
8706 aros_target_arch="mac"
8707 aros_shared_default="no"
8708 case "$target_cpu" in
8709 *m68k*)
8710 aros_target_cpu="m68k"
8711 aros_object_format="m68kelf"
8712 aros_flavour="mac68knative"
8713 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8714 aros_default_wbwidth=512
8715 aros_default_wbheight=384
8716 aros_default_wbdepth=8
8717 aros_target_ar_flags="cru"
8718 aros_compiler_libs="-lgcc1"
8719 aros_shared_default=no
8720 aros_shared_cflags="-fpic"
8721 aros_shared_aflags=""
8722 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8723 aros_kernel_ldflags="-Wl,-rpath,./lib"
8724 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8725 aros_debug_aflags=""
8726 aros_debug_ldflags="$aros_symbols_debug"
8727 aros_mungwall_debug="0"
8728 aros_modules_debug="0"
8729 gcc_target_cpu="mc68000"
8730 ignore_undefined_symbols="-ius"
8733 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8734 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8735 { (exit 1); exit 1; }; }
8737 esac
8741 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8742 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8743 { (exit 1); exit 1; }; }
8745 esac
8747 { echo "$as_me:$LINENO: checking Where to download sourcecode for external ports" >&5
8748 echo $ECHO_N "checking Where to download sourcecode for external ports... $ECHO_C" >&6; }
8750 # Check whether --with-portssources was given.
8751 if test "${with_portssources+set}" = set; then
8752 withval=$with_portssources; with_portssrcdir=$withval
8753 else
8754 with_portssrcdir="default"
8757 if test "$with_portssrcdir" = "default"; then
8758 AROS_PORTSSRCDIR="$AROS_BUILDDIR/bin/Sources"
8759 else
8760 AROS_PORTSSRCDIR="$with_portssrcdir"
8762 { echo "$as_me:$LINENO: result: $AROS_PORTSSRCDIR" >&5
8763 echo "${ECHO_T}$AROS_PORTSSRCDIR" >&6; }
8765 { echo "$as_me:$LINENO: checking which bootloader to use" >&5
8766 echo $ECHO_N "checking which bootloader to use... $ECHO_C" >&6; }
8768 # Check whether --with-bootloader was given.
8769 if test "${with_bootloader+set}" = set; then
8770 withval=$with_bootloader; target_bootloader=$withval
8771 else
8772 target_bootloader=$target_bootloader
8775 if test "$target_bootloader" = "none"; then
8776 aros_target_bootloader=""
8777 else
8778 aros_target_bootloader="$target_bootloader"
8780 { echo "$as_me:$LINENO: result: $target_bootloader" >&5
8781 echo "${ECHO_T}$target_bootloader" >&6; }
8783 # Check LZO when compiling the grub2 bootloader on i386/x86_64.
8784 aros_liblzo_check="no"
8785 case "$aros_target_bootloader" in
8786 grub2*)
8787 case "$target_cpu" in
8788 *i?86*)
8789 aros_liblzo_check="yes"
8791 *x86_64*)
8792 aros_liblzo_check="yes"
8796 esac
8801 esac
8803 if test "$aros_liblzo_check" = "yes"; then
8804 # There are three possibilities. LZO version 2 installed with the name
8805 # liblzo2, with the name liblzo, and LZO version 1.
8806 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo2" >&5
8807 echo $ECHO_N "checking for __lzo_init_v2 in -llzo2... $ECHO_C" >&6; }
8808 if test "${ac_cv_lib_lzo2___lzo_init_v2+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811 ac_check_lib_save_LIBS=$LIBS
8812 LIBS="-llzo2 $LIBS"
8813 cat >conftest.$ac_ext <<_ACEOF
8814 /* confdefs.h. */
8815 _ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8820 /* Override any GCC internal prototype to avoid an error.
8821 Use char because int might match the return type of a GCC
8822 builtin and then its argument prototype would still apply. */
8823 #ifdef __cplusplus
8824 extern "C"
8825 #endif
8826 char __lzo_init_v2 ();
8828 main ()
8830 return __lzo_init_v2 ();
8832 return 0;
8834 _ACEOF
8835 rm -f conftest.$ac_objext conftest$ac_exeext
8836 if { (ac_try="$ac_link"
8837 case "(($ac_try" in
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8840 esac
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_link") 2>conftest.er1
8843 ac_status=$?
8844 grep -v '^ *+' conftest.er1 >conftest.err
8845 rm -f conftest.er1
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } && {
8849 test -z "$ac_c_werror_flag" ||
8850 test ! -s conftest.err
8851 } && test -s conftest$ac_exeext &&
8852 $as_test_x conftest$ac_exeext; then
8853 ac_cv_lib_lzo2___lzo_init_v2=yes
8854 else
8855 echo "$as_me: failed program was:" >&5
8856 sed 's/^/| /' conftest.$ac_ext >&5
8858 ac_cv_lib_lzo2___lzo_init_v2=no
8861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8862 conftest$ac_exeext conftest.$ac_ext
8863 LIBS=$ac_check_lib_save_LIBS
8865 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo2___lzo_init_v2" >&5
8866 echo "${ECHO_T}$ac_cv_lib_lzo2___lzo_init_v2" >&6; }
8867 if test $ac_cv_lib_lzo2___lzo_init_v2 = yes; then
8868 LIBLZO="-llzo2"
8869 else
8870 { echo "$as_me:$LINENO: checking for __lzo_init_v2 in -llzo" >&5
8871 echo $ECHO_N "checking for __lzo_init_v2 in -llzo... $ECHO_C" >&6; }
8872 if test "${ac_cv_lib_lzo___lzo_init_v2+set}" = set; then
8873 echo $ECHO_N "(cached) $ECHO_C" >&6
8874 else
8875 ac_check_lib_save_LIBS=$LIBS
8876 LIBS="-llzo $LIBS"
8877 cat >conftest.$ac_ext <<_ACEOF
8878 /* confdefs.h. */
8879 _ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8884 /* Override any GCC internal prototype to avoid an error.
8885 Use char because int might match the return type of a GCC
8886 builtin and then its argument prototype would still apply. */
8887 #ifdef __cplusplus
8888 extern "C"
8889 #endif
8890 char __lzo_init_v2 ();
8892 main ()
8894 return __lzo_init_v2 ();
8896 return 0;
8898 _ACEOF
8899 rm -f conftest.$ac_objext conftest$ac_exeext
8900 if { (ac_try="$ac_link"
8901 case "(($ac_try" in
8902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8903 *) ac_try_echo=$ac_try;;
8904 esac
8905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8906 (eval "$ac_link") 2>conftest.er1
8907 ac_status=$?
8908 grep -v '^ *+' conftest.er1 >conftest.err
8909 rm -f conftest.er1
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } && {
8913 test -z "$ac_c_werror_flag" ||
8914 test ! -s conftest.err
8915 } && test -s conftest$ac_exeext &&
8916 $as_test_x conftest$ac_exeext; then
8917 ac_cv_lib_lzo___lzo_init_v2=yes
8918 else
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8922 ac_cv_lib_lzo___lzo_init_v2=no
8925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8926 conftest$ac_exeext conftest.$ac_ext
8927 LIBS=$ac_check_lib_save_LIBS
8929 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init_v2" >&5
8930 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init_v2" >&6; }
8931 if test $ac_cv_lib_lzo___lzo_init_v2 = yes; then
8932 LIBLZO="-llzo"
8933 else
8934 { echo "$as_me:$LINENO: checking for __lzo_init2 in -llzo" >&5
8935 echo $ECHO_N "checking for __lzo_init2 in -llzo... $ECHO_C" >&6; }
8936 if test "${ac_cv_lib_lzo___lzo_init2+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939 ac_check_lib_save_LIBS=$LIBS
8940 LIBS="-llzo $LIBS"
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8948 /* Override any GCC internal prototype to avoid an error.
8949 Use char because int might match the return type of a GCC
8950 builtin and then its argument prototype would still apply. */
8951 #ifdef __cplusplus
8952 extern "C"
8953 #endif
8954 char __lzo_init2 ();
8956 main ()
8958 return __lzo_init2 ();
8960 return 0;
8962 _ACEOF
8963 rm -f conftest.$ac_objext conftest$ac_exeext
8964 if { (ac_try="$ac_link"
8965 case "(($ac_try" in
8966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8967 *) ac_try_echo=$ac_try;;
8968 esac
8969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8970 (eval "$ac_link") 2>conftest.er1
8971 ac_status=$?
8972 grep -v '^ *+' conftest.er1 >conftest.err
8973 rm -f conftest.er1
8974 cat conftest.err >&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); } && {
8977 test -z "$ac_c_werror_flag" ||
8978 test ! -s conftest.err
8979 } && test -s conftest$ac_exeext &&
8980 $as_test_x conftest$ac_exeext; then
8981 ac_cv_lib_lzo___lzo_init2=yes
8982 else
8983 echo "$as_me: failed program was:" >&5
8984 sed 's/^/| /' conftest.$ac_ext >&5
8986 ac_cv_lib_lzo___lzo_init2=no
8989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8990 conftest$ac_exeext conftest.$ac_ext
8991 LIBS=$ac_check_lib_save_LIBS
8993 { echo "$as_me:$LINENO: result: $ac_cv_lib_lzo___lzo_init2" >&5
8994 echo "${ECHO_T}$ac_cv_lib_lzo___lzo_init2" >&6; }
8995 if test $ac_cv_lib_lzo___lzo_init2 = yes; then
8996 LIBLZO="-llzo"
8997 else
8998 { { echo "$as_me:$LINENO: error: LZO library version 1.02 or later is required" >&5
8999 echo "$as_me: error: LZO library version 1.02 or later is required" >&2;}
9000 { (exit 1); exit 1; }; }
9009 LIBS="$LIBS $LIBLZO"
9010 { echo "$as_me:$LINENO: checking for lzo1x_999_compress" >&5
9011 echo $ECHO_N "checking for lzo1x_999_compress... $ECHO_C" >&6; }
9012 if test "${ac_cv_func_lzo1x_999_compress+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 cat >conftest.$ac_ext <<_ACEOF
9016 /* confdefs.h. */
9017 _ACEOF
9018 cat confdefs.h >>conftest.$ac_ext
9019 cat >>conftest.$ac_ext <<_ACEOF
9020 /* end confdefs.h. */
9021 /* Define lzo1x_999_compress to an innocuous variant, in case <limits.h> declares lzo1x_999_compress.
9022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9023 #define lzo1x_999_compress innocuous_lzo1x_999_compress
9025 /* System header to define __stub macros and hopefully few prototypes,
9026 which can conflict with char lzo1x_999_compress (); below.
9027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9028 <limits.h> exists even on freestanding compilers. */
9030 #ifdef __STDC__
9031 # include <limits.h>
9032 #else
9033 # include <assert.h>
9034 #endif
9036 #undef lzo1x_999_compress
9038 /* Override any GCC internal prototype to avoid an error.
9039 Use char because int might match the return type of a GCC
9040 builtin and then its argument prototype would still apply. */
9041 #ifdef __cplusplus
9042 extern "C"
9043 #endif
9044 char lzo1x_999_compress ();
9045 /* The GNU C library defines this for functions which it implements
9046 to always fail with ENOSYS. Some functions are actually named
9047 something starting with __ and the normal name is an alias. */
9048 #if defined __stub_lzo1x_999_compress || defined __stub___lzo1x_999_compress
9049 choke me
9050 #endif
9053 main ()
9055 return lzo1x_999_compress ();
9057 return 0;
9059 _ACEOF
9060 rm -f conftest.$ac_objext conftest$ac_exeext
9061 if { (ac_try="$ac_link"
9062 case "(($ac_try" in
9063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9064 *) ac_try_echo=$ac_try;;
9065 esac
9066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9067 (eval "$ac_link") 2>conftest.er1
9068 ac_status=$?
9069 grep -v '^ *+' conftest.er1 >conftest.err
9070 rm -f conftest.er1
9071 cat conftest.err >&5
9072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9073 (exit $ac_status); } && {
9074 test -z "$ac_c_werror_flag" ||
9075 test ! -s conftest.err
9076 } && test -s conftest$ac_exeext &&
9077 $as_test_x conftest$ac_exeext; then
9078 ac_cv_func_lzo1x_999_compress=yes
9079 else
9080 echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9083 ac_cv_func_lzo1x_999_compress=no
9086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9087 conftest$ac_exeext conftest.$ac_ext
9089 { echo "$as_me:$LINENO: result: $ac_cv_func_lzo1x_999_compress" >&5
9090 echo "${ECHO_T}$ac_cv_func_lzo1x_999_compress" >&6; }
9091 if test $ac_cv_func_lzo1x_999_compress = yes; then
9093 else
9094 { { echo "$as_me:$LINENO: error: LZO1X-999 must be enabled" >&5
9095 echo "$as_me: error: LZO1X-999 must be enabled" >&2;}
9096 { (exit 1); exit 1; }; }
9100 # LZO version 2 uses lzo/lzo1x.h, while LZO version 1 uses lzo1x.h.
9103 for ac_header in lzo/lzo1x.h lzo1x.h
9105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9110 echo $ECHO_N "(cached) $ECHO_C" >&6
9112 ac_res=`eval echo '${'$as_ac_Header'}'`
9113 { echo "$as_me:$LINENO: result: $ac_res" >&5
9114 echo "${ECHO_T}$ac_res" >&6; }
9115 else
9116 # Is the header compilable?
9117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9119 cat >conftest.$ac_ext <<_ACEOF
9120 /* confdefs.h. */
9121 _ACEOF
9122 cat confdefs.h >>conftest.$ac_ext
9123 cat >>conftest.$ac_ext <<_ACEOF
9124 /* end confdefs.h. */
9125 $ac_includes_default
9126 #include <$ac_header>
9127 _ACEOF
9128 rm -f conftest.$ac_objext
9129 if { (ac_try="$ac_compile"
9130 case "(($ac_try" in
9131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9132 *) ac_try_echo=$ac_try;;
9133 esac
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_compile") 2>conftest.er1
9136 ac_status=$?
9137 grep -v '^ *+' conftest.er1 >conftest.err
9138 rm -f conftest.er1
9139 cat conftest.err >&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } && {
9142 test -z "$ac_c_werror_flag" ||
9143 test ! -s conftest.err
9144 } && test -s conftest.$ac_objext; then
9145 ac_header_compiler=yes
9146 else
9147 echo "$as_me: failed program was:" >&5
9148 sed 's/^/| /' conftest.$ac_ext >&5
9150 ac_header_compiler=no
9153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9154 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9155 echo "${ECHO_T}$ac_header_compiler" >&6; }
9157 # Is the header present?
9158 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9159 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9160 cat >conftest.$ac_ext <<_ACEOF
9161 /* confdefs.h. */
9162 _ACEOF
9163 cat confdefs.h >>conftest.$ac_ext
9164 cat >>conftest.$ac_ext <<_ACEOF
9165 /* end confdefs.h. */
9166 #include <$ac_header>
9167 _ACEOF
9168 if { (ac_try="$ac_cpp conftest.$ac_ext"
9169 case "(($ac_try" in
9170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171 *) ac_try_echo=$ac_try;;
9172 esac
9173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9174 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9175 ac_status=$?
9176 grep -v '^ *+' conftest.er1 >conftest.err
9177 rm -f conftest.er1
9178 cat conftest.err >&5
9179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9180 (exit $ac_status); } >/dev/null && {
9181 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9182 test ! -s conftest.err
9183 }; then
9184 ac_header_preproc=yes
9185 else
9186 echo "$as_me: failed program was:" >&5
9187 sed 's/^/| /' conftest.$ac_ext >&5
9189 ac_header_preproc=no
9192 rm -f conftest.err conftest.$ac_ext
9193 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9194 echo "${ECHO_T}$ac_header_preproc" >&6; }
9196 # So? What about this header?
9197 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9198 yes:no: )
9199 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9200 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9202 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9203 ac_header_preproc=yes
9205 no:yes:* )
9206 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9207 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9209 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9210 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9211 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9212 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9213 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9215 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9216 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9217 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9220 esac
9221 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9223 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9224 echo $ECHO_N "(cached) $ECHO_C" >&6
9225 else
9226 eval "$as_ac_Header=\$ac_header_preproc"
9228 ac_res=`eval echo '${'$as_ac_Header'}'`
9229 { echo "$as_me:$LINENO: result: $ac_res" >&5
9230 echo "${ECHO_T}$ac_res" >&6; }
9233 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9234 cat >>confdefs.h <<_ACEOF
9235 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9236 _ACEOF
9240 done
9244 { echo "$as_me:$LINENO: checking which GUI Theme to use" >&5
9245 echo $ECHO_N "checking which GUI Theme to use... $ECHO_C" >&6; }
9247 # Check whether --with-theme was given.
9248 if test "${with_theme+set}" = set; then
9249 withval=$with_theme; target_guitheme=$withval
9250 else
9251 target_guitheme="default"
9254 if test "$target_guitheme" = "default"; then
9255 aros_target_guitheme="Ice"
9256 else
9257 aros_target_guitheme="$target_guitheme"
9259 { echo "$as_me:$LINENO: result: $aros_target_guitheme" >&5
9260 echo "${ECHO_T}$aros_target_guitheme" >&6; }
9262 # Find out if we are cross-compiling (ie. if we can't use the host compiler
9263 # for target code)
9264 cross_compiling=no
9265 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
9266 cross_compiling=yes
9268 if test "$aros_host_arch" == "darwin" ; then
9269 cross_compiling=yes
9272 # Set prefix for target compiler etc. if we're cross-compiling
9273 # (should possibly be earlier but needs to be after AC_PROG_CC)
9274 if test "$cross_compiling" = "yes" ; then
9275 target_tool_prefix=${target_cpu}-elf-
9276 CC=${target_tool_prefix}gcc
9279 #-----------------------------------------------------------------------------
9281 # Disable pointer-signedness warnings if the compiler recognises the option
9283 { echo "$as_me:$LINENO: checking whether ${CC} accepts -Wno-pointer-sign" >&5
9284 echo $ECHO_N "checking whether ${CC} accepts -Wno-pointer-sign... $ECHO_C" >&6; }
9285 save_cflags="$CFLAGS"
9286 CFLAGS="$CFLAGS -Wno-pointer-sign"
9287 cat >conftest.$ac_ext <<_ACEOF
9288 /* confdefs.h. */
9289 _ACEOF
9290 cat confdefs.h >>conftest.$ac_ext
9291 cat >>conftest.$ac_ext <<_ACEOF
9292 /* end confdefs.h. */
9295 main ()
9299 return 0;
9301 _ACEOF
9302 rm -f conftest.$ac_objext
9303 if { (ac_try="$ac_compile"
9304 case "(($ac_try" in
9305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9306 *) ac_try_echo=$ac_try;;
9307 esac
9308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9309 (eval "$ac_compile") 2>conftest.er1
9310 ac_status=$?
9311 grep -v '^ *+' conftest.er1 >conftest.err
9312 rm -f conftest.er1
9313 cat conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } && {
9316 test -z "$ac_c_werror_flag" ||
9317 test ! -s conftest.err
9318 } && test -s conftest.$ac_objext; then
9319 use_no_sign_warning="yes"
9320 else
9321 echo "$as_me: failed program was:" >&5
9322 sed 's/^/| /' conftest.$ac_ext >&5
9324 use_no_sign_warning="no"
9327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9328 { echo "$as_me:$LINENO: result: $use_no_sign_warning" >&5
9329 echo "${ECHO_T}$use_no_sign_warning" >&6; }
9330 if test "x-$use_no_sign_warning" = "x-yes" ; then
9331 aros_config_cflags="$aros_config_cflags -Wno-pointer-sign"
9333 CFLAGS="$save_cflags"
9335 #-----------------------------------------------------------------------------
9337 # Find all the tools we need to compile. This could be cross-compiling
9338 # though! If that is the case we use the GNU form of the target and
9339 # simply add this to the front of the binary name. This is rather simple,
9340 # but it should work under most circumstances.
9342 # The default tools are to use the same as the host, but only if the
9343 # host and target CPU are the same. With GCC this is normally enough.
9346 aros_cc_pre=""
9347 aros_shared_ld="$aros_host_ld"
9349 aros_target_mkdep="$aros_host_mkdep"
9350 aros_target_incl_def="$aros_host_incl"
9352 # Extract the first word of "$CC", so it can be a program name with args.
9353 set dummy $CC; ac_word=$2
9354 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9356 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
9357 echo $ECHO_N "(cached) $ECHO_C" >&6
9358 else
9359 case $aros_kernel_cc in
9360 [\\/]* | ?:[\\/]*)
9361 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
9364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9365 for as_dir in $PATH
9367 IFS=$as_save_IFS
9368 test -z "$as_dir" && as_dir=.
9369 for ac_exec_ext in '' $ac_executable_extensions; do
9370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9371 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
9372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9373 break 2
9375 done
9376 done
9377 IFS=$as_save_IFS
9380 esac
9382 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
9383 if test -n "$aros_kernel_cc"; then
9384 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
9385 echo "${ECHO_T}$aros_kernel_cc" >&6; }
9386 else
9387 { echo "$as_me:$LINENO: result: no" >&5
9388 echo "${ECHO_T}no" >&6; }
9393 # The default tools executables to be linked to.
9394 if test "$aros_target_cc" != ""; then
9395 # Extract the first word of "$aros_target_cc", so it can be a program name with args.
9396 set dummy $aros_target_cc; ac_word=$2
9397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9399 if test "${ac_cv_path_aros_target_cc+set}" = set; then
9400 echo $ECHO_N "(cached) $ECHO_C" >&6
9401 else
9402 case $aros_target_cc in
9403 [\\/]* | ?:[\\/]*)
9404 ac_cv_path_aros_target_cc="$aros_target_cc" # Let the user override the test with a path.
9407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9408 for as_dir in $PATH
9410 IFS=$as_save_IFS
9411 test -z "$as_dir" && as_dir=.
9412 for ac_exec_ext in '' $ac_executable_extensions; do
9413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9414 ac_cv_path_aros_target_cc="$as_dir/$ac_word$ac_exec_ext"
9415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9416 break 2
9418 done
9419 done
9420 IFS=$as_save_IFS
9423 esac
9425 aros_target_cc=$ac_cv_path_aros_target_cc
9426 if test -n "$aros_target_cc"; then
9427 { echo "$as_me:$LINENO: result: $aros_target_cc" >&5
9428 echo "${ECHO_T}$aros_target_cc" >&6; }
9429 else
9430 { echo "$as_me:$LINENO: result: no" >&5
9431 echo "${ECHO_T}no" >&6; }
9435 if test "$aros_target_cc" = ""; then
9436 { { echo "$as_me:$LINENO: error: gcc is required to build AROS. Please install and run configure again." >&5
9437 echo "$as_me: error: gcc is required to build AROS. Please install and run configure again." >&2;}
9438 { (exit 1); exit 1; }; }
9441 if test "$aros_target_ld" != ""; then
9442 # Extract the first word of "$aros_target_ld", so it can be a program name with args.
9443 set dummy $aros_target_ld; ac_word=$2
9444 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9446 if test "${ac_cv_path_aros_target_ld+set}" = set; then
9447 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 else
9449 case $aros_target_ld in
9450 [\\/]* | ?:[\\/]*)
9451 ac_cv_path_aros_target_ld="$aros_target_ld" # Let the user override the test with a path.
9454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9455 for as_dir in $PATH
9457 IFS=$as_save_IFS
9458 test -z "$as_dir" && as_dir=.
9459 for ac_exec_ext in '' $ac_executable_extensions; do
9460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9461 ac_cv_path_aros_target_ld="$as_dir/$ac_word$ac_exec_ext"
9462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9463 break 2
9465 done
9466 done
9467 IFS=$as_save_IFS
9470 esac
9472 aros_target_ld=$ac_cv_path_aros_target_ld
9473 if test -n "$aros_target_ld"; then
9474 { echo "$as_me:$LINENO: result: $aros_target_ld" >&5
9475 echo "${ECHO_T}$aros_target_ld" >&6; }
9476 else
9477 { echo "$as_me:$LINENO: result: no" >&5
9478 echo "${ECHO_T}no" >&6; }
9482 if test "$aros_target_ld" = ""; then
9483 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9484 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9485 { (exit 1); exit 1; }; }
9489 if test "$crosstools" != "yes"; then
9491 if test "$aros_target_as" = ""; then
9492 if test "$cross_compiling" = "yes" ; then
9493 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
9494 set dummy ${target_tool_prefix}as; ac_word=$2
9495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9497 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9498 echo $ECHO_N "(cached) $ECHO_C" >&6
9499 else
9500 case $aros_target_as_ln in
9501 [\\/]* | ?:[\\/]*)
9502 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9506 for as_dir in $PATH
9508 IFS=$as_save_IFS
9509 test -z "$as_dir" && as_dir=.
9510 for ac_exec_ext in '' $ac_executable_extensions; do
9511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9512 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9514 break 2
9516 done
9517 done
9518 IFS=$as_save_IFS
9521 esac
9523 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9524 if test -n "$aros_target_as_ln"; then
9525 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9526 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9527 else
9528 { echo "$as_me:$LINENO: result: no" >&5
9529 echo "${ECHO_T}no" >&6; }
9533 else
9534 if test "$GCC" = "yes"; then
9535 aros_gcc_as=`$CC -print-prog-name=as`
9536 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
9537 set dummy `basename $aros_gcc_as`; ac_word=$2
9538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9540 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543 case $aros_target_as_ln in
9544 [\\/]* | ?:[\\/]*)
9545 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549 for as_dir in `dirname $aros_gcc_as`
9551 IFS=$as_save_IFS
9552 test -z "$as_dir" && as_dir=.
9553 for ac_exec_ext in '' $ac_executable_extensions; do
9554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9555 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9557 break 2
9559 done
9560 done
9561 IFS=$as_save_IFS
9564 esac
9566 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9567 if test -n "$aros_target_as_ln"; then
9568 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9569 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9570 else
9571 { echo "$as_me:$LINENO: result: no" >&5
9572 echo "${ECHO_T}no" >&6; }
9577 if test "$aros_target_as_ln" = ""; then
9578 # Extract the first word of "as", so it can be a program name with args.
9579 set dummy as; ac_word=$2
9580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9582 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9583 echo $ECHO_N "(cached) $ECHO_C" >&6
9584 else
9585 case $aros_target_as_ln in
9586 [\\/]* | ?:[\\/]*)
9587 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9591 for as_dir in $PATH
9593 IFS=$as_save_IFS
9594 test -z "$as_dir" && as_dir=.
9595 for ac_exec_ext in '' $ac_executable_extensions; do
9596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9597 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9599 break 2
9601 done
9602 done
9603 IFS=$as_save_IFS
9606 esac
9608 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9609 if test -n "$aros_target_as_ln"; then
9610 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9611 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9612 else
9613 { echo "$as_me:$LINENO: result: no" >&5
9614 echo "${ECHO_T}no" >&6; }
9620 else
9621 # Extract the first word of "$aros_target_as", so it can be a program name with args.
9622 set dummy $aros_target_as; ac_word=$2
9623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9625 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9627 else
9628 case $aros_target_as_ln in
9629 [\\/]* | ?:[\\/]*)
9630 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
9633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9634 for as_dir in $PATH
9636 IFS=$as_save_IFS
9637 test -z "$as_dir" && as_dir=.
9638 for ac_exec_ext in '' $ac_executable_extensions; do
9639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9640 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
9641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9642 break 2
9644 done
9645 done
9646 IFS=$as_save_IFS
9649 esac
9651 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
9652 if test -n "$aros_target_as_ln"; then
9653 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
9654 echo "${ECHO_T}$aros_target_as_ln" >&6; }
9655 else
9656 { echo "$as_me:$LINENO: result: no" >&5
9657 echo "${ECHO_T}no" >&6; }
9663 if test "$aros_target_as_ln" = ""; then
9664 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
9665 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
9666 { (exit 1); exit 1; }; }
9669 if test "$aros_kernel_ld" = ""; then
9670 if test "$cross_compiling" = "yes" ; then
9671 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
9672 set dummy ${target_tool_prefix}ld; ac_word=$2
9673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9675 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677 else
9678 case $aros_kernel_ld in
9679 [\\/]* | ?:[\\/]*)
9680 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9684 for as_dir in $PATH
9686 IFS=$as_save_IFS
9687 test -z "$as_dir" && as_dir=.
9688 for ac_exec_ext in '' $ac_executable_extensions; do
9689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9690 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9692 break 2
9694 done
9695 done
9696 IFS=$as_save_IFS
9699 esac
9701 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9702 if test -n "$aros_kernel_ld"; then
9703 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9704 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9705 else
9706 { echo "$as_me:$LINENO: result: no" >&5
9707 echo "${ECHO_T}no" >&6; }
9711 else
9712 if test "$GCC" = "yes"; then
9713 aros_gcc_ld=`$CC -print-prog-name=ld`
9714 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
9715 set dummy `basename $aros_gcc_ld`; ac_word=$2
9716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9718 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9719 echo $ECHO_N "(cached) $ECHO_C" >&6
9720 else
9721 case $aros_kernel_ld in
9722 [\\/]* | ?:[\\/]*)
9723 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9727 for as_dir in `dirname $aros_gcc_ld`
9729 IFS=$as_save_IFS
9730 test -z "$as_dir" && as_dir=.
9731 for ac_exec_ext in '' $ac_executable_extensions; do
9732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9733 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9735 break 2
9737 done
9738 done
9739 IFS=$as_save_IFS
9742 esac
9744 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9745 if test -n "$aros_kernel_ld"; then
9746 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9747 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9748 else
9749 { echo "$as_me:$LINENO: result: no" >&5
9750 echo "${ECHO_T}no" >&6; }
9755 if test "$aros_kernel_ld" = ""; then
9756 # Extract the first word of "ld", so it can be a program name with args.
9757 set dummy ld; ac_word=$2
9758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9760 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9762 else
9763 case $aros_kernel_ld in
9764 [\\/]* | ?:[\\/]*)
9765 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9769 for as_dir in $PATH
9771 IFS=$as_save_IFS
9772 test -z "$as_dir" && as_dir=.
9773 for ac_exec_ext in '' $ac_executable_extensions; do
9774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9775 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9777 break 2
9779 done
9780 done
9781 IFS=$as_save_IFS
9784 esac
9786 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9787 if test -n "$aros_kernel_ld"; then
9788 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9789 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9790 else
9791 { echo "$as_me:$LINENO: result: no" >&5
9792 echo "${ECHO_T}no" >&6; }
9798 else
9799 # Extract the first word of "$aros_kernel_ld", so it can be a program name with args.
9800 set dummy $aros_kernel_ld; ac_word=$2
9801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9803 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
9804 echo $ECHO_N "(cached) $ECHO_C" >&6
9805 else
9806 case $aros_kernel_ld in
9807 [\\/]* | ?:[\\/]*)
9808 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9812 for as_dir in $PATH
9814 IFS=$as_save_IFS
9815 test -z "$as_dir" && as_dir=.
9816 for ac_exec_ext in '' $ac_executable_extensions; do
9817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9818 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
9819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9820 break 2
9822 done
9823 done
9824 IFS=$as_save_IFS
9827 esac
9829 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
9830 if test -n "$aros_kernel_ld"; then
9831 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
9832 echo "${ECHO_T}$aros_kernel_ld" >&6; }
9833 else
9834 { echo "$as_me:$LINENO: result: no" >&5
9835 echo "${ECHO_T}no" >&6; }
9841 if test "$aros_kernel_ld" = ""; then
9842 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
9843 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
9844 { (exit 1); exit 1; }; }
9847 if test "$aros_target_ar" = ""; then
9848 if test "$cross_compiling" = "yes" ; then
9849 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
9850 set dummy ${target_tool_prefix}ar; ac_word=$2
9851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9853 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9854 echo $ECHO_N "(cached) $ECHO_C" >&6
9855 else
9856 case $aros_target_ar_ln in
9857 [\\/]* | ?:[\\/]*)
9858 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862 for as_dir in $PATH
9864 IFS=$as_save_IFS
9865 test -z "$as_dir" && as_dir=.
9866 for ac_exec_ext in '' $ac_executable_extensions; do
9867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9868 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9870 break 2
9872 done
9873 done
9874 IFS=$as_save_IFS
9877 esac
9879 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9880 if test -n "$aros_target_ar_ln"; then
9881 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9882 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9883 else
9884 { echo "$as_me:$LINENO: result: no" >&5
9885 echo "${ECHO_T}no" >&6; }
9889 else
9890 if test "$GCC" = "yes"; then
9891 aros_gcc_ar=`$CC -print-prog-name=ar`
9892 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
9893 set dummy `basename $aros_gcc_ar`; ac_word=$2
9894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9896 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9897 echo $ECHO_N "(cached) $ECHO_C" >&6
9898 else
9899 case $aros_target_ar_ln in
9900 [\\/]* | ?:[\\/]*)
9901 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905 for as_dir in `dirname $aros_gcc_ar`
9907 IFS=$as_save_IFS
9908 test -z "$as_dir" && as_dir=.
9909 for ac_exec_ext in '' $ac_executable_extensions; do
9910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9911 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9913 break 2
9915 done
9916 done
9917 IFS=$as_save_IFS
9920 esac
9922 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9923 if test -n "$aros_target_ar_ln"; then
9924 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9925 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9926 else
9927 { echo "$as_me:$LINENO: result: no" >&5
9928 echo "${ECHO_T}no" >&6; }
9933 if test "$aros_target_ar_ln" = ""; then
9934 # Extract the first word of "ar", so it can be a program name with args.
9935 set dummy ar; ac_word=$2
9936 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9938 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9939 echo $ECHO_N "(cached) $ECHO_C" >&6
9940 else
9941 case $aros_target_ar_ln in
9942 [\\/]* | ?:[\\/]*)
9943 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9947 for as_dir in $PATH
9949 IFS=$as_save_IFS
9950 test -z "$as_dir" && as_dir=.
9951 for ac_exec_ext in '' $ac_executable_extensions; do
9952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9953 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9954 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9955 break 2
9957 done
9958 done
9959 IFS=$as_save_IFS
9962 esac
9964 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
9965 if test -n "$aros_target_ar_ln"; then
9966 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
9967 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
9968 else
9969 { echo "$as_me:$LINENO: result: no" >&5
9970 echo "${ECHO_T}no" >&6; }
9976 else
9977 # Extract the first word of "$aros_target_ar", so it can be a program name with args.
9978 set dummy $aros_target_ar; ac_word=$2
9979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9981 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9983 else
9984 case $aros_target_ar_ln in
9985 [\\/]* | ?:[\\/]*)
9986 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
9989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9990 for as_dir in $PATH
9992 IFS=$as_save_IFS
9993 test -z "$as_dir" && as_dir=.
9994 for ac_exec_ext in '' $ac_executable_extensions; do
9995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9996 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
9997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9998 break 2
10000 done
10001 done
10002 IFS=$as_save_IFS
10005 esac
10007 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
10008 if test -n "$aros_target_ar_ln"; then
10009 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
10010 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
10011 else
10012 { echo "$as_me:$LINENO: result: no" >&5
10013 echo "${ECHO_T}no" >&6; }
10019 if test "$aros_target_ar_ln" = ""; then
10020 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
10021 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
10022 { (exit 1); exit 1; }; }
10025 if test "$aros_target_nm" = ""; then
10026 if test "$cross_compiling" = "yes" ; then
10027 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
10028 set dummy ${target_tool_prefix}nm; ac_word=$2
10029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10031 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033 else
10034 case $aros_target_nm_ln in
10035 [\\/]* | ?:[\\/]*)
10036 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10040 for as_dir in $PATH
10042 IFS=$as_save_IFS
10043 test -z "$as_dir" && as_dir=.
10044 for ac_exec_ext in '' $ac_executable_extensions; do
10045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10046 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10048 break 2
10050 done
10051 done
10052 IFS=$as_save_IFS
10055 esac
10057 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10058 if test -n "$aros_target_nm_ln"; then
10059 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10060 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10061 else
10062 { echo "$as_me:$LINENO: result: no" >&5
10063 echo "${ECHO_T}no" >&6; }
10067 else
10068 if test "$GCC" = "yes"; then
10069 aros_gcc_nm=`$CC -print-prog-name=nm`
10070 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
10071 set dummy `basename $aros_gcc_nm`; ac_word=$2
10072 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10074 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10075 echo $ECHO_N "(cached) $ECHO_C" >&6
10076 else
10077 case $aros_target_nm_ln in
10078 [\\/]* | ?:[\\/]*)
10079 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10083 for as_dir in `dirname $aros_gcc_nm`
10085 IFS=$as_save_IFS
10086 test -z "$as_dir" && as_dir=.
10087 for ac_exec_ext in '' $ac_executable_extensions; do
10088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10089 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10091 break 2
10093 done
10094 done
10095 IFS=$as_save_IFS
10098 esac
10100 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10101 if test -n "$aros_target_nm_ln"; then
10102 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10103 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10104 else
10105 { echo "$as_me:$LINENO: result: no" >&5
10106 echo "${ECHO_T}no" >&6; }
10111 if test "$aros_target_nm_ln" = ""; then
10112 # Extract the first word of "nm", so it can be a program name with args.
10113 set dummy nm; ac_word=$2
10114 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10115 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10116 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10117 echo $ECHO_N "(cached) $ECHO_C" >&6
10118 else
10119 case $aros_target_nm_ln in
10120 [\\/]* | ?:[\\/]*)
10121 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10125 for as_dir in $PATH
10127 IFS=$as_save_IFS
10128 test -z "$as_dir" && as_dir=.
10129 for ac_exec_ext in '' $ac_executable_extensions; do
10130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10131 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10133 break 2
10135 done
10136 done
10137 IFS=$as_save_IFS
10140 esac
10142 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10143 if test -n "$aros_target_nm_ln"; then
10144 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10145 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10146 else
10147 { echo "$as_me:$LINENO: result: no" >&5
10148 echo "${ECHO_T}no" >&6; }
10154 else
10155 # Extract the first word of "$aros_target_nm", so it can be a program name with args.
10156 set dummy $aros_target_nm; ac_word=$2
10157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10159 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
10160 echo $ECHO_N "(cached) $ECHO_C" >&6
10161 else
10162 case $aros_target_nm_ln in
10163 [\\/]* | ?:[\\/]*)
10164 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
10167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10168 for as_dir in $PATH
10170 IFS=$as_save_IFS
10171 test -z "$as_dir" && as_dir=.
10172 for ac_exec_ext in '' $ac_executable_extensions; do
10173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10174 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
10175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10176 break 2
10178 done
10179 done
10180 IFS=$as_save_IFS
10183 esac
10185 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
10186 if test -n "$aros_target_nm_ln"; then
10187 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
10188 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
10189 else
10190 { echo "$as_me:$LINENO: result: no" >&5
10191 echo "${ECHO_T}no" >&6; }
10197 if test "$aros_target_nm_ln" = ""; then
10198 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
10199 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
10200 { (exit 1); exit 1; }; }
10203 if test "$aros_target_objcopy" = ""; then
10204 if test "$cross_compiling" = "yes" ; then
10205 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
10206 set dummy ${target_tool_prefix}objcopy; ac_word=$2
10207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10209 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10210 echo $ECHO_N "(cached) $ECHO_C" >&6
10211 else
10212 case $aros_target_objcopy_ln in
10213 [\\/]* | ?:[\\/]*)
10214 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10218 for as_dir in $PATH
10220 IFS=$as_save_IFS
10221 test -z "$as_dir" && as_dir=.
10222 for ac_exec_ext in '' $ac_executable_extensions; do
10223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10224 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10226 break 2
10228 done
10229 done
10230 IFS=$as_save_IFS
10233 esac
10235 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10236 if test -n "$aros_target_objcopy_ln"; then
10237 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10238 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10239 else
10240 { echo "$as_me:$LINENO: result: no" >&5
10241 echo "${ECHO_T}no" >&6; }
10245 else
10246 if test "$GCC" = "yes"; then
10247 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
10248 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
10249 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
10250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10252 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10253 echo $ECHO_N "(cached) $ECHO_C" >&6
10254 else
10255 case $aros_target_objcopy_ln in
10256 [\\/]* | ?:[\\/]*)
10257 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10261 for as_dir in `dirname $aros_gcc_objcopy`
10263 IFS=$as_save_IFS
10264 test -z "$as_dir" && as_dir=.
10265 for ac_exec_ext in '' $ac_executable_extensions; do
10266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10267 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10269 break 2
10271 done
10272 done
10273 IFS=$as_save_IFS
10276 esac
10278 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10279 if test -n "$aros_target_objcopy_ln"; then
10280 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10281 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10282 else
10283 { echo "$as_me:$LINENO: result: no" >&5
10284 echo "${ECHO_T}no" >&6; }
10289 if test "$aros_target_objcopy_ln" = ""; then
10290 # Extract the first word of "objcopy", so it can be a program name with args.
10291 set dummy objcopy; ac_word=$2
10292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10294 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10295 echo $ECHO_N "(cached) $ECHO_C" >&6
10296 else
10297 case $aros_target_objcopy_ln in
10298 [\\/]* | ?:[\\/]*)
10299 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10303 for as_dir in $PATH
10305 IFS=$as_save_IFS
10306 test -z "$as_dir" && as_dir=.
10307 for ac_exec_ext in '' $ac_executable_extensions; do
10308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10309 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10311 break 2
10313 done
10314 done
10315 IFS=$as_save_IFS
10318 esac
10320 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10321 if test -n "$aros_target_objcopy_ln"; then
10322 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10323 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10324 else
10325 { echo "$as_me:$LINENO: result: no" >&5
10326 echo "${ECHO_T}no" >&6; }
10332 else
10333 # Extract the first word of "$aros_target_objcopy", so it can be a program name with args.
10334 set dummy $aros_target_objcopy; ac_word=$2
10335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10337 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
10338 echo $ECHO_N "(cached) $ECHO_C" >&6
10339 else
10340 case $aros_target_objcopy_ln in
10341 [\\/]* | ?:[\\/]*)
10342 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
10345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346 for as_dir in $PATH
10348 IFS=$as_save_IFS
10349 test -z "$as_dir" && as_dir=.
10350 for ac_exec_ext in '' $ac_executable_extensions; do
10351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10352 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
10353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10354 break 2
10356 done
10357 done
10358 IFS=$as_save_IFS
10361 esac
10363 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
10364 if test -n "$aros_target_objcopy_ln"; then
10365 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
10366 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
10367 else
10368 { echo "$as_me:$LINENO: result: no" >&5
10369 echo "${ECHO_T}no" >&6; }
10375 if test "$aros_target_objcopy_ln" = ""; then
10376 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
10377 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
10378 { (exit 1); exit 1; }; }
10381 if test "$aros_target_objdump" = ""; then
10382 if test "$cross_compiling" = "yes" ; then
10383 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
10384 set dummy ${target_tool_prefix}objdump; ac_word=$2
10385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10387 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10388 echo $ECHO_N "(cached) $ECHO_C" >&6
10389 else
10390 case $aros_target_objdump_ln in
10391 [\\/]* | ?:[\\/]*)
10392 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10396 for as_dir in $PATH
10398 IFS=$as_save_IFS
10399 test -z "$as_dir" && as_dir=.
10400 for ac_exec_ext in '' $ac_executable_extensions; do
10401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10402 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10404 break 2
10406 done
10407 done
10408 IFS=$as_save_IFS
10411 esac
10413 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10414 if test -n "$aros_target_objdump_ln"; then
10415 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10416 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10417 else
10418 { echo "$as_me:$LINENO: result: no" >&5
10419 echo "${ECHO_T}no" >&6; }
10423 else
10424 if test "$GCC" = "yes"; then
10425 aros_gcc_objdump=`$CC -print-prog-name=objdump`
10426 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
10427 set dummy `basename $aros_gcc_objdump`; ac_word=$2
10428 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10429 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10430 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10431 echo $ECHO_N "(cached) $ECHO_C" >&6
10432 else
10433 case $aros_target_objdump_ln in
10434 [\\/]* | ?:[\\/]*)
10435 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10439 for as_dir in `dirname $aros_gcc_objdump`
10441 IFS=$as_save_IFS
10442 test -z "$as_dir" && as_dir=.
10443 for ac_exec_ext in '' $ac_executable_extensions; do
10444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10445 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10447 break 2
10449 done
10450 done
10451 IFS=$as_save_IFS
10454 esac
10456 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10457 if test -n "$aros_target_objdump_ln"; then
10458 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10459 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10460 else
10461 { echo "$as_me:$LINENO: result: no" >&5
10462 echo "${ECHO_T}no" >&6; }
10467 if test "$aros_target_objdump_ln" = ""; then
10468 # Extract the first word of "objdump", so it can be a program name with args.
10469 set dummy objdump; ac_word=$2
10470 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10471 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10472 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474 else
10475 case $aros_target_objdump_ln in
10476 [\\/]* | ?:[\\/]*)
10477 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10483 IFS=$as_save_IFS
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10487 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10489 break 2
10491 done
10492 done
10493 IFS=$as_save_IFS
10496 esac
10498 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10499 if test -n "$aros_target_objdump_ln"; then
10500 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10501 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10502 else
10503 { echo "$as_me:$LINENO: result: no" >&5
10504 echo "${ECHO_T}no" >&6; }
10510 else
10511 # Extract the first word of "$aros_target_objdump", so it can be a program name with args.
10512 set dummy $aros_target_objdump; ac_word=$2
10513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10515 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
10516 echo $ECHO_N "(cached) $ECHO_C" >&6
10517 else
10518 case $aros_target_objdump_ln in
10519 [\\/]* | ?:[\\/]*)
10520 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
10523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524 for as_dir in $PATH
10526 IFS=$as_save_IFS
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10530 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
10531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10532 break 2
10534 done
10535 done
10536 IFS=$as_save_IFS
10539 esac
10541 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
10542 if test -n "$aros_target_objdump_ln"; then
10543 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
10544 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
10545 else
10546 { echo "$as_me:$LINENO: result: no" >&5
10547 echo "${ECHO_T}no" >&6; }
10553 if test "$aros_target_objdump_ln" = ""; then
10554 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
10555 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
10556 { (exit 1); exit 1; }; }
10559 if test "$aros_target_ranlib" = ""; then
10560 if test "$cross_compiling" = "yes" ; then
10561 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
10562 set dummy ${target_tool_prefix}ranlib; ac_word=$2
10563 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10564 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10565 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10567 else
10568 case $aros_target_ranlib_ln in
10569 [\\/]* | ?:[\\/]*)
10570 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10574 for as_dir in $PATH
10576 IFS=$as_save_IFS
10577 test -z "$as_dir" && as_dir=.
10578 for ac_exec_ext in '' $ac_executable_extensions; do
10579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10580 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10582 break 2
10584 done
10585 done
10586 IFS=$as_save_IFS
10589 esac
10591 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10592 if test -n "$aros_target_ranlib_ln"; then
10593 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10594 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10595 else
10596 { echo "$as_me:$LINENO: result: no" >&5
10597 echo "${ECHO_T}no" >&6; }
10601 else
10602 if test "$GCC" = "yes"; then
10603 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
10604 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
10605 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
10606 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10608 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10609 echo $ECHO_N "(cached) $ECHO_C" >&6
10610 else
10611 case $aros_target_ranlib_ln in
10612 [\\/]* | ?:[\\/]*)
10613 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10617 for as_dir in `dirname $aros_gcc_ranlib`
10619 IFS=$as_save_IFS
10620 test -z "$as_dir" && as_dir=.
10621 for ac_exec_ext in '' $ac_executable_extensions; do
10622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10623 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10624 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10625 break 2
10627 done
10628 done
10629 IFS=$as_save_IFS
10632 esac
10634 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10635 if test -n "$aros_target_ranlib_ln"; then
10636 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10637 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10638 else
10639 { echo "$as_me:$LINENO: result: no" >&5
10640 echo "${ECHO_T}no" >&6; }
10645 if test "$aros_target_ranlib_ln" = ""; then
10646 # Extract the first word of "ranlib", so it can be a program name with args.
10647 set dummy ranlib; ac_word=$2
10648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10650 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10651 echo $ECHO_N "(cached) $ECHO_C" >&6
10652 else
10653 case $aros_target_ranlib_ln in
10654 [\\/]* | ?:[\\/]*)
10655 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659 for as_dir in $PATH
10661 IFS=$as_save_IFS
10662 test -z "$as_dir" && as_dir=.
10663 for ac_exec_ext in '' $ac_executable_extensions; do
10664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10665 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10667 break 2
10669 done
10670 done
10671 IFS=$as_save_IFS
10674 esac
10676 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10677 if test -n "$aros_target_ranlib_ln"; then
10678 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10679 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10680 else
10681 { echo "$as_me:$LINENO: result: no" >&5
10682 echo "${ECHO_T}no" >&6; }
10688 else
10689 # Extract the first word of "$aros_target_ranlib", so it can be a program name with args.
10690 set dummy $aros_target_ranlib; ac_word=$2
10691 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10692 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10693 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10695 else
10696 case $aros_target_ranlib_ln in
10697 [\\/]* | ?:[\\/]*)
10698 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
10701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702 for as_dir in $PATH
10704 IFS=$as_save_IFS
10705 test -z "$as_dir" && as_dir=.
10706 for ac_exec_ext in '' $ac_executable_extensions; do
10707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10708 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
10709 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10710 break 2
10712 done
10713 done
10714 IFS=$as_save_IFS
10717 esac
10719 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
10720 if test -n "$aros_target_ranlib_ln"; then
10721 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
10722 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
10723 else
10724 { echo "$as_me:$LINENO: result: no" >&5
10725 echo "${ECHO_T}no" >&6; }
10731 if test "$aros_target_ranlib_ln" = ""; then
10732 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
10733 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
10734 { (exit 1); exit 1; }; }
10737 if test "$aros_target_strip" = ""; then
10738 if test "$cross_compiling" = "yes" ; then
10739 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
10740 set dummy ${target_tool_prefix}strip; ac_word=$2
10741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10743 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10744 echo $ECHO_N "(cached) $ECHO_C" >&6
10745 else
10746 case $aros_target_strip_ln in
10747 [\\/]* | ?:[\\/]*)
10748 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752 for as_dir in $PATH
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10758 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 break 2
10762 done
10763 done
10764 IFS=$as_save_IFS
10767 esac
10769 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10770 if test -n "$aros_target_strip_ln"; then
10771 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10772 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10773 else
10774 { echo "$as_me:$LINENO: result: no" >&5
10775 echo "${ECHO_T}no" >&6; }
10779 else
10780 if test "$GCC" = "yes"; then
10781 aros_gcc_strip=`$CC -print-prog-name=strip`
10782 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
10783 set dummy `basename $aros_gcc_strip`; ac_word=$2
10784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10786 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10789 case $aros_target_strip_ln in
10790 [\\/]* | ?:[\\/]*)
10791 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in `dirname $aros_gcc_strip`
10797 IFS=$as_save_IFS
10798 test -z "$as_dir" && as_dir=.
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10801 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 break 2
10805 done
10806 done
10807 IFS=$as_save_IFS
10810 esac
10812 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10813 if test -n "$aros_target_strip_ln"; then
10814 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10815 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10816 else
10817 { echo "$as_me:$LINENO: result: no" >&5
10818 echo "${ECHO_T}no" >&6; }
10823 if test "$aros_target_strip_ln" = ""; then
10824 # Extract the first word of "strip", so it can be a program name with args.
10825 set dummy strip; ac_word=$2
10826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10828 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831 case $aros_target_strip_ln in
10832 [\\/]* | ?:[\\/]*)
10833 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10843 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 break 2
10847 done
10848 done
10849 IFS=$as_save_IFS
10852 esac
10854 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10855 if test -n "$aros_target_strip_ln"; then
10856 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10857 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10858 else
10859 { echo "$as_me:$LINENO: result: no" >&5
10860 echo "${ECHO_T}no" >&6; }
10866 else
10867 # Extract the first word of "$aros_target_strip", so it can be a program name with args.
10868 set dummy $aros_target_strip; ac_word=$2
10869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10871 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
10872 echo $ECHO_N "(cached) $ECHO_C" >&6
10873 else
10874 case $aros_target_strip_ln in
10875 [\\/]* | ?:[\\/]*)
10876 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
10879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880 for as_dir in $PATH
10882 IFS=$as_save_IFS
10883 test -z "$as_dir" && as_dir=.
10884 for ac_exec_ext in '' $ac_executable_extensions; do
10885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10886 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
10887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10888 break 2
10890 done
10891 done
10892 IFS=$as_save_IFS
10895 esac
10897 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
10898 if test -n "$aros_target_strip_ln"; then
10899 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
10900 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
10901 else
10902 { echo "$as_me:$LINENO: result: no" >&5
10903 echo "${ECHO_T}no" >&6; }
10909 if test "$aros_target_strip_ln" = ""; then
10910 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
10911 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
10912 { (exit 1); exit 1; }; }
10916 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
10917 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
10918 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
10919 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
10920 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
10921 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
10922 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
10924 # aros_cc_pre is a variable that is added to the front of the compiler name
10925 # in the generated aros-gcc shell script. We need this to enable the cache
10926 # to work across cleaned builds. Also, support DISTCC using the correct
10927 # environment variable.
10930 if test "x${DISTCC}" != "x" ; then
10931 if test "x${CCACHE}" != "x" ; then
10932 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
10933 else
10934 aros_cc_pre="${DISTCC} "
10936 else
10937 if test "x${CCACHE}" != "x" ; then
10938 aros_cc_pre="${CCACHE} "
10942 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
10944 aros_target_nostdinc_cflags=-nostdinc
10946 aros_target_nostartup_ldflags=-nostartfiles
10948 aros_target_nix_ldflags=-nix
10950 aros_target_detach_ldflags=-detach
10952 aros_target_nostdlib_ldflags=-nostdlib
10955 # Target tools
10956 if test "$aros_target_cc" = ""; then
10957 orig_target_cc=$aros_kernel_cc
10958 else
10959 orig_target_cc=$aros_target_cc
10961 if test "$aros_target_ld" = ""; then
10962 orig_target_ld=$aros_kernel_ld
10963 else
10964 orig_target_ld=$aros_target_ld
10966 if test "$GCC" = "yes"; then
10967 aros_target_cc_path=`$orig_target_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
10969 aros_target_cc="${prefix}-gcc"
10970 aros_target_as="${prefix}-as"
10971 aros_target_ld="${prefix}-ld"
10972 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
10973 aros_target_objcopy=${prefix}-objcopy
10974 aros_target_objdump=${prefix}-objdump
10975 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
10976 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
10977 aros_kernel_nm="${prefix}-nm"
10978 aros_target_strip=${prefix}-strip
10980 # Find the system include path. We can suggest that an alternative is
10981 # used if we don't get it correct. The default is to use /usr/include.
10982 # Which is set in the aros_target_incl_def variable.
10984 # Check whether --enable-includes was given.
10985 if test "${enable_includes+set}" = set; then
10986 enableval=$enable_includes; aros_target_incl=$enable_includes
10987 else
10988 aros_target_incl=$aros_target_incl_def
10992 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
10993 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
10994 if test "$aros_target_cc_includes" = "" ; then
10995 #try to guess where the directory is
10996 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
10997 if ! test -d $aros_target_cc_includes; then
10998 #the directory doesn't exist, we need to do some more work
10999 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
11001 #these are the headers we're looling for
11002 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
11003 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
11004 zutil.h"
11006 dirs=
11007 for h in $headers; do
11008 #which other headers each of the above headers needs?
11009 deps=$(echo "#include <$h>" | \
11010 $aros_host_cc -E -M - 2>/dev/null | \
11011 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
11013 #copy all the needed headers to a directory beneath gendir
11014 for d in $deps; do
11015 h=$(basename $d)
11016 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
11017 sed -n "s,^.*/include\(/.*\),\1,p")
11018 ! test -d $dir && mkdir -p $dir
11019 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
11020 done
11021 done
11024 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
11025 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
11028 # For GCC < 4.0 -I- is used for giving the search path for '#include "..."'
11029 # On GCC >= 4.0 -iquote should be used
11032 save_cc="$CC"
11033 save_cflags="$CFLAGS"
11034 CC="$aros_kernel_cc"
11035 CFLAGS="-iquote."
11036 { echo "$as_me:$LINENO: checking whether ${CC} accepts -iquote" >&5
11037 echo $ECHO_N "checking whether ${CC} accepts -iquote... $ECHO_C" >&6; }
11038 cat >conftest.$ac_ext <<_ACEOF
11039 /* confdefs.h. */
11040 _ACEOF
11041 cat confdefs.h >>conftest.$ac_ext
11042 cat >>conftest.$ac_ext <<_ACEOF
11043 /* end confdefs.h. */
11046 main ()
11050 return 0;
11052 _ACEOF
11053 rm -f conftest.$ac_objext
11054 if { (ac_try="$ac_compile"
11055 case "(($ac_try" in
11056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11057 *) ac_try_echo=$ac_try;;
11058 esac
11059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11060 (eval "$ac_compile") 2>conftest.er1
11061 ac_status=$?
11062 grep -v '^ *+' conftest.er1 >conftest.err
11063 rm -f conftest.er1
11064 cat conftest.err >&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } && {
11067 test -z "$ac_c_werror_flag" ||
11068 test ! -s conftest.err
11069 } && test -s conftest.$ac_objext; then
11070 has_iquote="yes"
11071 else
11072 echo "$as_me: failed program was:" >&5
11073 sed 's/^/| /' conftest.$ac_ext >&5
11075 has_iquote="no"
11078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11079 { echo "$as_me:$LINENO: result: $has_iquote" >&5
11080 echo "${ECHO_T}$has_iquote" >&6; }
11081 if test "x-$has_iquote" = "x-yes" ; then
11082 aros_cflags_iquote=-iquote
11083 aros_cflags_iquote_end=
11084 else
11085 aros_cflags_iquote=-I
11086 aros_cflags_iquote_end=-I-
11088 CC="$save_cc"
11089 CFLAGS="$save_cflags"
11095 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
11096 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
11098 # Check whether --with-resolution was given.
11099 if test "${with_resolution+set}" = set; then
11100 withval=$with_resolution; resolution=$withval
11101 else
11102 resolution=none
11105 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
11106 if test "$resolution" = "yes" ; then
11107 resolution="none"
11109 if test "$resolution" = "no" ; then
11110 resolution="none"
11112 if test "$resolution" != "none" ; then
11113 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
11114 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
11115 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
11117 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
11118 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
11119 aros_cv_default_wbwidth=$aros_default_wbwidth
11120 aros_cv_default_wbheight=$aros_default_wbheight
11121 aros_cv_default_wbdepth=$aros_default_wbdepth
11123 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
11124 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
11125 # Check whether --enable-bochs_hack was given.
11126 if test "${enable_bochs_hack+set}" = set; then
11127 enableval=$enable_bochs_hack; bochs_hack="yes"
11128 else
11129 bochs_hack="no"
11132 if test "$bochs_hack" = "yes" ; then
11133 aros_bochs_hack="1"
11135 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
11136 echo "${ECHO_T}$bochs_hack" >&6; }
11138 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
11139 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
11141 # Check whether --with-serial-debug was given.
11142 if test "${with_serial_debug+set}" = set; then
11143 withval=$with_serial_debug; serial_debug=$withval
11144 else
11145 serial_debug=none
11148 if test "$aros_serial_debug" = 0 ; then
11149 serial_debug_forced=""
11150 if test "$serial_debug" = "yes" ; then
11151 serial_debug="2"
11153 if test "$serial_debug" = "no" ; then
11154 serial_debug="none"
11156 else
11157 serial_debug_forced="(forced)"
11158 serial_debug=$aros_serial_debug
11160 if test "$serial_debug" != "none" ; then
11161 aros_serial_debug=$serial_debug
11162 { echo "$as_me:$LINENO: result: $serial_debug_forced on port $serial_debug" >&5
11163 echo "${ECHO_T}$serial_debug_forced on port $serial_debug" >&6; }
11164 else
11165 { echo "$as_me:$LINENO: result: no" >&5
11166 echo "${ECHO_T}no" >&6; }
11169 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
11170 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
11171 # Check whether --enable-palm_debug_hack was given.
11172 if test "${enable_palm_debug_hack+set}" = set; then
11173 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
11174 else
11175 palm_debug_hack="no"
11178 if test "$palm_debug_hack" = "yes" ; then
11179 aros_palm_debug_hack="1"
11181 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
11182 echo "${ECHO_T}$palm_debug_hack" >&6; }
11185 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
11186 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
11187 # Check whether --enable-nesting_supervisor was given.
11188 if test "${enable_nesting_supervisor+set}" = set; then
11189 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
11190 else
11191 nesting_supervisor="no"
11194 if test "$nesting_supervisor" = "yes" ; then
11195 aros_nesting_supervisor="1"
11197 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
11198 echo "${ECHO_T}$nesting_supervisor" >&6; }
11201 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
11203 if test "x-$aros_host_arch" != "x-darwin" ; then
11204 { echo "$as_me:$LINENO: checking for dlopen" >&5
11205 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
11206 if test "${ac_cv_func_dlopen+set}" = set; then
11207 echo $ECHO_N "(cached) $ECHO_C" >&6
11208 else
11209 cat >conftest.$ac_ext <<_ACEOF
11210 /* confdefs.h. */
11211 _ACEOF
11212 cat confdefs.h >>conftest.$ac_ext
11213 cat >>conftest.$ac_ext <<_ACEOF
11214 /* end confdefs.h. */
11215 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11216 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11217 #define dlopen innocuous_dlopen
11219 /* System header to define __stub macros and hopefully few prototypes,
11220 which can conflict with char dlopen (); below.
11221 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11222 <limits.h> exists even on freestanding compilers. */
11224 #ifdef __STDC__
11225 # include <limits.h>
11226 #else
11227 # include <assert.h>
11228 #endif
11230 #undef dlopen
11232 /* Override any GCC internal prototype to avoid an error.
11233 Use char because int might match the return type of a GCC
11234 builtin and then its argument prototype would still apply. */
11235 #ifdef __cplusplus
11236 extern "C"
11237 #endif
11238 char dlopen ();
11239 /* The GNU C library defines this for functions which it implements
11240 to always fail with ENOSYS. Some functions are actually named
11241 something starting with __ and the normal name is an alias. */
11242 #if defined __stub_dlopen || defined __stub___dlopen
11243 choke me
11244 #endif
11247 main ()
11249 return dlopen ();
11251 return 0;
11253 _ACEOF
11254 rm -f conftest.$ac_objext conftest$ac_exeext
11255 if { (ac_try="$ac_link"
11256 case "(($ac_try" in
11257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11258 *) ac_try_echo=$ac_try;;
11259 esac
11260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11261 (eval "$ac_link") 2>conftest.er1
11262 ac_status=$?
11263 grep -v '^ *+' conftest.er1 >conftest.err
11264 rm -f conftest.er1
11265 cat conftest.err >&5
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); } && {
11268 test -z "$ac_c_werror_flag" ||
11269 test ! -s conftest.err
11270 } && test -s conftest$ac_exeext &&
11271 $as_test_x conftest$ac_exeext; then
11272 ac_cv_func_dlopen=yes
11273 else
11274 echo "$as_me: failed program was:" >&5
11275 sed 's/^/| /' conftest.$ac_ext >&5
11277 ac_cv_func_dlopen=no
11280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11281 conftest$ac_exeext conftest.$ac_ext
11283 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11284 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
11285 if test $ac_cv_func_dlopen = yes; then
11286 have_dl="yes"
11287 else
11288 have_dl="no"
11291 if test "x-$have_dl" = "x-no" ; then
11292 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11293 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
11294 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11295 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 else
11297 ac_check_lib_save_LIBS=$LIBS
11298 LIBS="-ldl $LIBS"
11299 cat >conftest.$ac_ext <<_ACEOF
11300 /* confdefs.h. */
11301 _ACEOF
11302 cat confdefs.h >>conftest.$ac_ext
11303 cat >>conftest.$ac_ext <<_ACEOF
11304 /* end confdefs.h. */
11306 /* Override any GCC internal prototype to avoid an error.
11307 Use char because int might match the return type of a GCC
11308 builtin and then its argument prototype would still apply. */
11309 #ifdef __cplusplus
11310 extern "C"
11311 #endif
11312 char dlopen ();
11314 main ()
11316 return dlopen ();
11318 return 0;
11320 _ACEOF
11321 rm -f conftest.$ac_objext conftest$ac_exeext
11322 if { (ac_try="$ac_link"
11323 case "(($ac_try" in
11324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11325 *) ac_try_echo=$ac_try;;
11326 esac
11327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11328 (eval "$ac_link") 2>conftest.er1
11329 ac_status=$?
11330 grep -v '^ *+' conftest.er1 >conftest.err
11331 rm -f conftest.er1
11332 cat conftest.err >&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); } && {
11335 test -z "$ac_c_werror_flag" ||
11336 test ! -s conftest.err
11337 } && test -s conftest$ac_exeext &&
11338 $as_test_x conftest$ac_exeext; then
11339 ac_cv_lib_dl_dlopen=yes
11340 else
11341 echo "$as_me: failed program was:" >&5
11342 sed 's/^/| /' conftest.$ac_ext >&5
11344 ac_cv_lib_dl_dlopen=no
11347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11348 conftest$ac_exeext conftest.$ac_ext
11349 LIBS=$ac_check_lib_save_LIBS
11351 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11352 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11353 if test $ac_cv_lib_dl_dlopen = yes; then
11354 have_dl="yes"
11355 aros_host_ldflags="$aros_host_ldflags -ldl"
11356 else
11357 have_dl="no"
11361 if test "x-$have_dl" = "x-no" ; then
11362 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
11363 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
11364 { (exit 1); exit 1; }; }
11369 # Check whether --enable-x11_hidd was given.
11370 if test "${enable_x11_hidd+set}" = set; then
11371 enableval=$enable_x11_hidd; x11_hidd="$enableval"
11372 else
11373 x11_hidd="auto"
11376 case "x-$x11_hidd" in
11377 x-yes|x-no|x-auto) ;;
11378 *) x11_hidd="auto" ;;
11379 esac
11381 if test "x-$x11_hidd" != "x-no" ; then
11383 { echo "$as_me:$LINENO: checking for X" >&5
11384 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
11387 # Check whether --with-x was given.
11388 if test "${with_x+set}" = set; then
11389 withval=$with_x;
11392 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
11393 if test "x$with_x" = xno; then
11394 # The user explicitly disabled X.
11395 have_x=disabled
11396 else
11397 case $x_includes,$x_libraries in #(
11398 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
11399 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
11400 { (exit 1); exit 1; }; };; #(
11401 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
11402 echo $ECHO_N "(cached) $ECHO_C" >&6
11403 else
11404 # One or both of the vars are not set, and there is no cached value.
11405 ac_x_includes=no ac_x_libraries=no
11406 rm -f -r conftest.dir
11407 if mkdir conftest.dir; then
11408 cd conftest.dir
11409 cat >Imakefile <<'_ACEOF'
11410 incroot:
11411 @echo incroot='${INCROOT}'
11412 usrlibdir:
11413 @echo usrlibdir='${USRLIBDIR}'
11414 libdir:
11415 @echo libdir='${LIBDIR}'
11416 _ACEOF
11417 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
11418 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
11419 for ac_var in incroot usrlibdir libdir; do
11420 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
11421 done
11422 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
11423 for ac_extension in a so sl; do
11424 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
11425 test -f "$ac_im_libdir/libX11.$ac_extension"; then
11426 ac_im_usrlibdir=$ac_im_libdir; break
11428 done
11429 # Screen out bogus values from the imake configuration. They are
11430 # bogus both because they are the default anyway, and because
11431 # using them would break gcc on systems where it needs fixed includes.
11432 case $ac_im_incroot in
11433 /usr/include) ac_x_includes= ;;
11434 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
11435 esac
11436 case $ac_im_usrlibdir in
11437 /usr/lib | /lib) ;;
11438 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
11439 esac
11441 cd ..
11442 rm -f -r conftest.dir
11445 # Standard set of common directories for X headers.
11446 # Check X11 before X11Rn because it is often a symlink to the current release.
11447 ac_x_header_dirs='
11448 /usr/X11/include
11449 /usr/X11R6/include
11450 /usr/X11R5/include
11451 /usr/X11R4/include
11453 /usr/include/X11
11454 /usr/include/X11R6
11455 /usr/include/X11R5
11456 /usr/include/X11R4
11458 /usr/local/X11/include
11459 /usr/local/X11R6/include
11460 /usr/local/X11R5/include
11461 /usr/local/X11R4/include
11463 /usr/local/include/X11
11464 /usr/local/include/X11R6
11465 /usr/local/include/X11R5
11466 /usr/local/include/X11R4
11468 /usr/X386/include
11469 /usr/x386/include
11470 /usr/XFree86/include/X11
11472 /usr/include
11473 /usr/local/include
11474 /usr/unsupported/include
11475 /usr/athena/include
11476 /usr/local/x11r5/include
11477 /usr/lpp/Xamples/include
11479 /usr/openwin/include
11480 /usr/openwin/share/include'
11482 if test "$ac_x_includes" = no; then
11483 # Guess where to find include files, by looking for Xlib.h.
11484 # First, try using that file with no special directory specified.
11485 cat >conftest.$ac_ext <<_ACEOF
11486 /* confdefs.h. */
11487 _ACEOF
11488 cat confdefs.h >>conftest.$ac_ext
11489 cat >>conftest.$ac_ext <<_ACEOF
11490 /* end confdefs.h. */
11491 #include <X11/Xlib.h>
11492 _ACEOF
11493 if { (ac_try="$ac_cpp conftest.$ac_ext"
11494 case "(($ac_try" in
11495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11496 *) ac_try_echo=$ac_try;;
11497 esac
11498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11500 ac_status=$?
11501 grep -v '^ *+' conftest.er1 >conftest.err
11502 rm -f conftest.er1
11503 cat conftest.err >&5
11504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11505 (exit $ac_status); } >/dev/null && {
11506 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11507 test ! -s conftest.err
11508 }; then
11509 # We can compile using X headers with no special include directory.
11510 ac_x_includes=
11511 else
11512 echo "$as_me: failed program was:" >&5
11513 sed 's/^/| /' conftest.$ac_ext >&5
11515 for ac_dir in $ac_x_header_dirs; do
11516 if test -r "$ac_dir/X11/Xlib.h"; then
11517 ac_x_includes=$ac_dir
11518 break
11520 done
11523 rm -f conftest.err conftest.$ac_ext
11524 fi # $ac_x_includes = no
11526 if test "$ac_x_libraries" = no; then
11527 # Check for the libraries.
11528 # See if we find them without any special options.
11529 # Don't add to $LIBS permanently.
11530 ac_save_LIBS=$LIBS
11531 LIBS="-lX11 $LIBS"
11532 cat >conftest.$ac_ext <<_ACEOF
11533 /* confdefs.h. */
11534 _ACEOF
11535 cat confdefs.h >>conftest.$ac_ext
11536 cat >>conftest.$ac_ext <<_ACEOF
11537 /* end confdefs.h. */
11538 #include <X11/Xlib.h>
11540 main ()
11542 XrmInitialize ()
11544 return 0;
11546 _ACEOF
11547 rm -f conftest.$ac_objext conftest$ac_exeext
11548 if { (ac_try="$ac_link"
11549 case "(($ac_try" in
11550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11551 *) ac_try_echo=$ac_try;;
11552 esac
11553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11554 (eval "$ac_link") 2>conftest.er1
11555 ac_status=$?
11556 grep -v '^ *+' conftest.er1 >conftest.err
11557 rm -f conftest.er1
11558 cat conftest.err >&5
11559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11560 (exit $ac_status); } && {
11561 test -z "$ac_c_werror_flag" ||
11562 test ! -s conftest.err
11563 } && test -s conftest$ac_exeext &&
11564 $as_test_x conftest$ac_exeext; then
11565 LIBS=$ac_save_LIBS
11566 # We can link X programs with no special library path.
11567 ac_x_libraries=
11568 else
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 LIBS=$ac_save_LIBS
11573 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
11575 # Don't even attempt the hair of trying to link an X program!
11576 for ac_extension in a so sl; do
11577 if test -r "$ac_dir/libX11.$ac_extension"; then
11578 ac_x_libraries=$ac_dir
11579 break 2
11581 done
11582 done
11585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11586 conftest$ac_exeext conftest.$ac_ext
11587 fi # $ac_x_libraries = no
11589 case $ac_x_includes,$ac_x_libraries in #(
11590 no,* | *,no | *\'*)
11591 # Didn't find X, or a directory has "'" in its name.
11592 ac_cv_have_x="have_x=no";; #(
11594 # Record where we found X for the cache.
11595 ac_cv_have_x="have_x=yes\
11596 ac_x_includes='$ac_x_includes'\
11597 ac_x_libraries='$ac_x_libraries'"
11598 esac
11600 ;; #(
11601 *) have_x=yes;;
11602 esac
11603 eval "$ac_cv_have_x"
11604 fi # $with_x != no
11606 if test "$have_x" != yes; then
11607 { echo "$as_me:$LINENO: result: $have_x" >&5
11608 echo "${ECHO_T}$have_x" >&6; }
11609 no_x=yes
11610 else
11611 # If each of the values was on the command line, it overrides each guess.
11612 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
11613 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
11614 # Update the cache value to reflect the command line values.
11615 ac_cv_have_x="have_x=yes\
11616 ac_x_includes='$x_includes'\
11617 ac_x_libraries='$x_libraries'"
11618 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
11619 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
11623 x_cflags=
11624 for path in $x_libraries
11626 x_cflags="$x_cflags -L$path"
11627 done
11629 for path in $x_includes
11631 x_cflags="$x_cflags -I$path"
11632 done
11634 if test "x-$no_x" = "x-yes" ; then
11636 if test "x-$x11_hidd" != "x-auto" ; then
11637 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
11638 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
11639 { (exit 1); exit 1; }; }
11642 else
11643 x11_hidd_target=kernel-x11gfx
11646 # Check whether --enable-x11_shm was given.
11647 if test "${enable_x11_shm+set}" = set; then
11648 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
11649 else
11650 x11_hidd_shm="auto"
11653 case "x-$x11_hidd_shm" in
11654 x-yes|x-no|x-auto) ;;
11655 *) x11_hidd_shm="auto" ;;
11656 esac
11658 have_xshm=no
11660 if test "x-$x11_hidd_shm" != "x-no" ; then
11663 for ac_header in sys/ipc.h
11665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11667 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11668 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11670 echo $ECHO_N "(cached) $ECHO_C" >&6
11672 ac_res=`eval echo '${'$as_ac_Header'}'`
11673 { echo "$as_me:$LINENO: result: $ac_res" >&5
11674 echo "${ECHO_T}$ac_res" >&6; }
11675 else
11676 # Is the header compilable?
11677 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11678 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11679 cat >conftest.$ac_ext <<_ACEOF
11680 /* confdefs.h. */
11681 _ACEOF
11682 cat confdefs.h >>conftest.$ac_ext
11683 cat >>conftest.$ac_ext <<_ACEOF
11684 /* end confdefs.h. */
11685 $ac_includes_default
11686 #include <$ac_header>
11687 _ACEOF
11688 rm -f conftest.$ac_objext
11689 if { (ac_try="$ac_compile"
11690 case "(($ac_try" in
11691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11692 *) ac_try_echo=$ac_try;;
11693 esac
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 (eval "$ac_compile") 2>conftest.er1
11696 ac_status=$?
11697 grep -v '^ *+' conftest.er1 >conftest.err
11698 rm -f conftest.er1
11699 cat conftest.err >&5
11700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11701 (exit $ac_status); } && {
11702 test -z "$ac_c_werror_flag" ||
11703 test ! -s conftest.err
11704 } && test -s conftest.$ac_objext; then
11705 ac_header_compiler=yes
11706 else
11707 echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11710 ac_header_compiler=no
11713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11714 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11715 echo "${ECHO_T}$ac_header_compiler" >&6; }
11717 # Is the header present?
11718 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11719 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11720 cat >conftest.$ac_ext <<_ACEOF
11721 /* confdefs.h. */
11722 _ACEOF
11723 cat confdefs.h >>conftest.$ac_ext
11724 cat >>conftest.$ac_ext <<_ACEOF
11725 /* end confdefs.h. */
11726 #include <$ac_header>
11727 _ACEOF
11728 if { (ac_try="$ac_cpp conftest.$ac_ext"
11729 case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11732 esac
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11735 ac_status=$?
11736 grep -v '^ *+' conftest.er1 >conftest.err
11737 rm -f conftest.er1
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } >/dev/null && {
11741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11742 test ! -s conftest.err
11743 }; then
11744 ac_header_preproc=yes
11745 else
11746 echo "$as_me: failed program was:" >&5
11747 sed 's/^/| /' conftest.$ac_ext >&5
11749 ac_header_preproc=no
11752 rm -f conftest.err conftest.$ac_ext
11753 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11754 echo "${ECHO_T}$ac_header_preproc" >&6; }
11756 # So? What about this header?
11757 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11758 yes:no: )
11759 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11760 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11761 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11762 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11763 ac_header_preproc=yes
11765 no:yes:* )
11766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11771 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11773 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11774 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11775 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11777 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11780 esac
11781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11784 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 else
11786 eval "$as_ac_Header=\$ac_header_preproc"
11788 ac_res=`eval echo '${'$as_ac_Header'}'`
11789 { echo "$as_me:$LINENO: result: $ac_res" >&5
11790 echo "${ECHO_T}$ac_res" >&6; }
11793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11794 cat >>confdefs.h <<_ACEOF
11795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11796 _ACEOF
11800 done
11803 for ac_header in sys/shm.h
11805 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11807 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11808 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11809 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 ac_res=`eval echo '${'$as_ac_Header'}'`
11813 { echo "$as_me:$LINENO: result: $ac_res" >&5
11814 echo "${ECHO_T}$ac_res" >&6; }
11815 else
11816 # Is the header compilable?
11817 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11818 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11819 cat >conftest.$ac_ext <<_ACEOF
11820 /* confdefs.h. */
11821 _ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11825 $ac_includes_default
11826 #include <$ac_header>
11827 _ACEOF
11828 rm -f conftest.$ac_objext
11829 if { (ac_try="$ac_compile"
11830 case "(($ac_try" in
11831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11832 *) ac_try_echo=$ac_try;;
11833 esac
11834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11835 (eval "$ac_compile") 2>conftest.er1
11836 ac_status=$?
11837 grep -v '^ *+' conftest.er1 >conftest.err
11838 rm -f conftest.er1
11839 cat conftest.err >&5
11840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11841 (exit $ac_status); } && {
11842 test -z "$ac_c_werror_flag" ||
11843 test ! -s conftest.err
11844 } && test -s conftest.$ac_objext; then
11845 ac_header_compiler=yes
11846 else
11847 echo "$as_me: failed program was:" >&5
11848 sed 's/^/| /' conftest.$ac_ext >&5
11850 ac_header_compiler=no
11853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11855 echo "${ECHO_T}$ac_header_compiler" >&6; }
11857 # Is the header present?
11858 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11859 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11860 cat >conftest.$ac_ext <<_ACEOF
11861 /* confdefs.h. */
11862 _ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h. */
11866 #include <$ac_header>
11867 _ACEOF
11868 if { (ac_try="$ac_cpp conftest.$ac_ext"
11869 case "(($ac_try" in
11870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871 *) ac_try_echo=$ac_try;;
11872 esac
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11875 ac_status=$?
11876 grep -v '^ *+' conftest.er1 >conftest.err
11877 rm -f conftest.er1
11878 cat conftest.err >&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); } >/dev/null && {
11881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11882 test ! -s conftest.err
11883 }; then
11884 ac_header_preproc=yes
11885 else
11886 echo "$as_me: failed program was:" >&5
11887 sed 's/^/| /' conftest.$ac_ext >&5
11889 ac_header_preproc=no
11892 rm -f conftest.err conftest.$ac_ext
11893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11894 echo "${ECHO_T}$ac_header_preproc" >&6; }
11896 # So? What about this header?
11897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11898 yes:no: )
11899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11903 ac_header_preproc=yes
11905 no:yes:* )
11906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11920 esac
11921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11925 else
11926 eval "$as_ac_Header=\$ac_header_preproc"
11928 ac_res=`eval echo '${'$as_ac_Header'}'`
11929 { echo "$as_me:$LINENO: result: $ac_res" >&5
11930 echo "${ECHO_T}$ac_res" >&6; }
11933 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11934 cat >>confdefs.h <<_ACEOF
11935 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11936 _ACEOF
11940 done
11943 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
11945 save_cflags="$CFLAGS"
11946 CFLAGS="$CFLAGS $x_cflags"
11947 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
11948 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
11949 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
11950 echo $ECHO_N "(cached) $ECHO_C" >&6
11951 else
11952 ac_check_lib_save_LIBS=$LIBS
11953 LIBS="-lXext $LIBS"
11954 cat >conftest.$ac_ext <<_ACEOF
11955 /* confdefs.h. */
11956 _ACEOF
11957 cat confdefs.h >>conftest.$ac_ext
11958 cat >>conftest.$ac_ext <<_ACEOF
11959 /* end confdefs.h. */
11961 /* Override any GCC internal prototype to avoid an error.
11962 Use char because int might match the return type of a GCC
11963 builtin and then its argument prototype would still apply. */
11964 #ifdef __cplusplus
11965 extern "C"
11966 #endif
11967 char XShmQueryExtension ();
11969 main ()
11971 return XShmQueryExtension ();
11973 return 0;
11975 _ACEOF
11976 rm -f conftest.$ac_objext conftest$ac_exeext
11977 if { (ac_try="$ac_link"
11978 case "(($ac_try" in
11979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980 *) ac_try_echo=$ac_try;;
11981 esac
11982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11983 (eval "$ac_link") 2>conftest.er1
11984 ac_status=$?
11985 grep -v '^ *+' conftest.er1 >conftest.err
11986 rm -f conftest.er1
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } && {
11990 test -z "$ac_c_werror_flag" ||
11991 test ! -s conftest.err
11992 } && test -s conftest$ac_exeext &&
11993 $as_test_x conftest$ac_exeext; then
11994 ac_cv_lib_Xext_XShmQueryExtension=yes
11995 else
11996 echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
11999 ac_cv_lib_Xext_XShmQueryExtension=no
12002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12003 conftest$ac_exeext conftest.$ac_ext
12004 LIBS=$ac_check_lib_save_LIBS
12006 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
12007 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
12008 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
12009 have_xshm=yes
12012 CFLAGS="$save_cflags"
12016 if test "x-$have_xshm" = "x-yes" ; then
12017 DO_XSHM_SUPPORT="1"
12018 elif test "x-$x11_hidd_shm" = "x-yes" ; then
12019 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
12020 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
12021 { (exit 1); exit 1; }; }
12022 else
12023 DO_XSHM_SUPPORT="0"
12027 # Check whether --enable-x11_vidmode was given.
12028 if test "${enable_x11_vidmode+set}" = set; then
12029 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
12030 else
12031 x11_hidd_vidmode="auto"
12034 case "x-$x11_hidd_vidmode" in
12035 x-yes|x-no|x-auto) ;;
12036 *) x11_hidd_vidmode="auto" ;;
12037 esac
12039 have_vidmode=no
12041 if test "x-$x11_hidd_vidmode" != "x-no" ; then
12043 save_cflags="$CFLAGS"
12044 CFLAGS="$CFLAGS $x_cflags"
12045 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
12046 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
12047 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 else
12050 ac_check_lib_save_LIBS=$LIBS
12051 LIBS="-lXxf86vm $LIBS"
12052 cat >conftest.$ac_ext <<_ACEOF
12053 /* confdefs.h. */
12054 _ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12062 #ifdef __cplusplus
12063 extern "C"
12064 #endif
12065 char XF86VidModeQueryExtension ();
12067 main ()
12069 return XF86VidModeQueryExtension ();
12071 return 0;
12073 _ACEOF
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (ac_try="$ac_link"
12076 case "(($ac_try" in
12077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12078 *) ac_try_echo=$ac_try;;
12079 esac
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081 (eval "$ac_link") 2>conftest.er1
12082 ac_status=$?
12083 grep -v '^ *+' conftest.er1 >conftest.err
12084 rm -f conftest.er1
12085 cat conftest.err >&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } && {
12088 test -z "$ac_c_werror_flag" ||
12089 test ! -s conftest.err
12090 } && test -s conftest$ac_exeext &&
12091 $as_test_x conftest$ac_exeext; then
12092 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
12093 else
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.$ac_ext >&5
12097 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
12100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12101 conftest$ac_exeext conftest.$ac_ext
12102 LIBS=$ac_check_lib_save_LIBS
12104 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
12105 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
12106 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
12107 have_vidmode=yes
12110 CFLAGS="$save_cflags"
12113 if test "x-$have_vidmode" = "x-yes" ; then
12114 DO_VIDMODE_SUPPORT="1"
12115 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
12116 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
12117 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
12118 { (exit 1); exit 1; }; }
12119 else
12120 DO_VIDMODE_SUPPORT="0"
12124 aros_host_x11_includes=$x_includes
12125 aros_host_x11_libdirs=$x_libraries
12129 # Check whether --enable-sdl_hidd was given.
12130 if test "${enable_sdl_hidd+set}" = set; then
12131 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
12132 else
12133 sdl_hidd="auto"
12136 case "x-$sdl_hidd" in
12137 x-yes|x-no|x-auto) ;;
12138 *) sdl_hidd="auto" ;;
12139 esac
12141 if test "x-$sdl_hidd" != "x-no" ; then
12144 # Check whether --with-sdl-prefix was given.
12145 if test "${with_sdl_prefix+set}" = set; then
12146 withval=$with_sdl_prefix; sdl_prefix="$withval"
12147 else
12148 sdl_prefix=""
12152 # Check whether --with-sdl-exec-prefix was given.
12153 if test "${with_sdl_exec_prefix+set}" = set; then
12154 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
12155 else
12156 sdl_exec_prefix=""
12159 # Check whether --enable-sdltest was given.
12160 if test "${enable_sdltest+set}" = set; then
12161 enableval=$enable_sdltest;
12162 else
12163 enable_sdltest=yes
12167 if test x$sdl_exec_prefix != x ; then
12168 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
12169 if test x${SDL_CONFIG+set} != xset ; then
12170 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
12173 if test x$sdl_prefix != x ; then
12174 sdl_args="$sdl_args --prefix=$sdl_prefix"
12175 if test x${SDL_CONFIG+set} != xset ; then
12176 SDL_CONFIG=$sdl_prefix/bin/sdl-config
12180 if test "x$prefix" != xNONE; then
12181 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
12183 # Extract the first word of "sdl-config", so it can be a program name with args.
12184 set dummy sdl-config; ac_word=$2
12185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12187 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190 case $SDL_CONFIG in
12191 [\\/]* | ?:[\\/]*)
12192 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12198 IFS=$as_save_IFS
12199 test -z "$as_dir" && as_dir=.
12200 for ac_exec_ext in '' $ac_executable_extensions; do
12201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12202 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12204 break 2
12206 done
12207 done
12208 IFS=$as_save_IFS
12210 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
12212 esac
12214 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
12215 if test -n "$SDL_CONFIG"; then
12216 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
12217 echo "${ECHO_T}$SDL_CONFIG" >&6; }
12218 else
12219 { echo "$as_me:$LINENO: result: no" >&5
12220 echo "${ECHO_T}no" >&6; }
12224 min_sdl_version=1.2.10
12225 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
12226 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
12227 no_sdl=""
12228 if test "$SDL_CONFIG" = "no" ; then
12229 no_sdl=yes
12230 else
12231 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
12232 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
12234 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
12235 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
12236 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
12237 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
12238 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
12239 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
12240 if test "x$enable_sdltest" = "xyes" ; then
12241 ac_save_CFLAGS="$CFLAGS"
12242 ac_save_CXXFLAGS="$CXXFLAGS"
12243 ac_save_LIBS="$LIBS"
12244 CFLAGS="$CFLAGS $SDL_CFLAGS"
12245 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12246 LIBS="$LIBS $SDL_LIBS"
12247 rm -f conf.sdltest
12248 if test "$cross_compiling" = yes; then
12249 echo $ac_n "cross compiling; assumed OK... $ac_c"
12250 else
12251 cat >conftest.$ac_ext <<_ACEOF
12252 /* confdefs.h. */
12253 _ACEOF
12254 cat confdefs.h >>conftest.$ac_ext
12255 cat >>conftest.$ac_ext <<_ACEOF
12256 /* end confdefs.h. */
12258 #include <stdio.h>
12259 #include <stdlib.h>
12260 #include <string.h>
12261 #include "SDL.h"
12263 char*
12264 my_strdup (char *str)
12266 char *new_str;
12268 if (str)
12270 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
12271 strcpy (new_str, str);
12273 else
12274 new_str = NULL;
12276 return new_str;
12279 int main (int argc, char *argv[])
12281 int major, minor, micro;
12282 char *tmp_version;
12284 /* This hangs on some systems (?)
12285 system ("touch conf.sdltest");
12287 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
12289 /* HP/UX 9 (%@#!) writes to sscanf strings */
12290 tmp_version = my_strdup("$min_sdl_version");
12291 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
12292 printf("%s, bad version string\n", "$min_sdl_version");
12293 exit(1);
12296 if (($sdl_major_version > major) ||
12297 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
12298 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
12300 return 0;
12302 else
12304 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
12305 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
12306 printf("*** best to upgrade to the required version.\n");
12307 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
12308 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
12309 printf("*** config.cache before re-running configure\n");
12310 return 1;
12315 _ACEOF
12316 rm -f conftest$ac_exeext
12317 if { (ac_try="$ac_link"
12318 case "(($ac_try" in
12319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12320 *) ac_try_echo=$ac_try;;
12321 esac
12322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12323 (eval "$ac_link") 2>&5
12324 ac_status=$?
12325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12326 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12327 { (case "(($ac_try" in
12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12330 esac
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332 (eval "$ac_try") 2>&5
12333 ac_status=$?
12334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12335 (exit $ac_status); }; }; then
12337 else
12338 echo "$as_me: program exited with status $ac_status" >&5
12339 echo "$as_me: failed program was:" >&5
12340 sed 's/^/| /' conftest.$ac_ext >&5
12342 ( exit $ac_status )
12343 no_sdl=yes
12345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12349 CFLAGS="$ac_save_CFLAGS"
12350 CXXFLAGS="$ac_save_CXXFLAGS"
12351 LIBS="$ac_save_LIBS"
12354 if test "x$no_sdl" = x ; then
12355 { echo "$as_me:$LINENO: result: yes" >&5
12356 echo "${ECHO_T}yes" >&6; }
12357 have_sdl="yes"
12358 else
12359 { echo "$as_me:$LINENO: result: no" >&5
12360 echo "${ECHO_T}no" >&6; }
12361 if test "$SDL_CONFIG" = "no" ; then
12362 echo "*** The sdl-config script installed by SDL could not be found"
12363 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
12364 echo "*** your path, or set the SDL_CONFIG environment variable to the"
12365 echo "*** full path to sdl-config."
12366 else
12367 if test -f conf.sdltest ; then
12369 else
12370 echo "*** Could not run SDL test program, checking why..."
12371 CFLAGS="$CFLAGS $SDL_CFLAGS"
12372 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
12373 LIBS="$LIBS $SDL_LIBS"
12374 cat >conftest.$ac_ext <<_ACEOF
12375 /* confdefs.h. */
12376 _ACEOF
12377 cat confdefs.h >>conftest.$ac_ext
12378 cat >>conftest.$ac_ext <<_ACEOF
12379 /* end confdefs.h. */
12381 #include <stdio.h>
12382 #include "SDL.h"
12384 int main(int argc, char *argv[])
12385 { return 0; }
12386 #undef main
12387 #define main K_and_R_C_main
12390 main ()
12392 return 0;
12394 return 0;
12396 _ACEOF
12397 rm -f conftest.$ac_objext conftest$ac_exeext
12398 if { (ac_try="$ac_link"
12399 case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12402 esac
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_link") 2>conftest.er1
12405 ac_status=$?
12406 grep -v '^ *+' conftest.er1 >conftest.err
12407 rm -f conftest.er1
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } && {
12411 test -z "$ac_c_werror_flag" ||
12412 test ! -s conftest.err
12413 } && test -s conftest$ac_exeext &&
12414 $as_test_x conftest$ac_exeext; then
12415 echo "*** The test program compiled, but did not run. This usually means"
12416 echo "*** that the run-time linker is not finding SDL or finding the wrong"
12417 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
12418 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12419 echo "*** to the installed location Also, make sure you have run ldconfig if that"
12420 echo "*** is required on your system"
12421 echo "***"
12422 echo "*** If you have an old version installed, it is best to remove it, although"
12423 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12424 else
12425 echo "$as_me: failed program was:" >&5
12426 sed 's/^/| /' conftest.$ac_ext >&5
12428 echo "*** The test program failed to compile or link. See the file config.log for the"
12429 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
12430 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
12431 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
12434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12435 conftest$ac_exeext conftest.$ac_ext
12436 CFLAGS="$ac_save_CFLAGS"
12437 CXXFLAGS="$ac_save_CXXFLAGS"
12438 LIBS="$ac_save_LIBS"
12441 SDL_CFLAGS=""
12442 SDL_LIBS=""
12443 have_sdl="no"
12447 rm -f conf.sdltest
12450 if test "x-$have_sdl" != "x-yes" ; then
12452 if test "x-$sdl_hidd" != "x-auto" ; then
12453 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
12454 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
12455 { (exit 1); exit 1; }; }
12458 else
12459 sdl_hidd_target=kernel-hidd-sdl
12460 aros_host_sdl_cflags=SDL_CFLAGS
12461 aros_host_sdl_libs=SDL_LIBS
12468 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
12469 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
12470 # Check whether --enable-dbus was given.
12471 if test "${enable_dbus+set}" = set; then
12472 enableval=$enable_dbus; dbus="yes"
12473 else
12474 dbus="no"
12477 if test "$dbus" = "yes" ; then
12478 ENABLE_DBUS=1
12479 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
12480 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
12481 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
12482 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
12483 else
12484 ENABLE_DBUS=0
12486 { echo "$as_me:$LINENO: result: $dbus" >&5
12487 echo "${ECHO_T}$dbus" >&6; }
12491 # Generic
12500 # Host related
12523 # Target Related
12567 # Graphics Related
12582 # Native version related
12586 # Palm native version related
12589 # Unix/Hosted version related
12592 # DBUS related
12599 # Debug related
12605 # Collect-aros stuff: "-ius" to ignore undefined symbols
12608 # C compiler related
12611 case "$aros_flavour" in
12612 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
12613 aros_flavour="emulation" ;;
12614 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
12615 aros_flavour="emulation" ;;
12616 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
12617 aros_flavour="standalone";;
12618 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
12619 aros_flavour="native" ;;
12620 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
12621 aros_flavour="native" ;;
12622 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
12623 aros_flavour="linklib" ;;
12624 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12625 aros_flavour="palmnative" ;;
12626 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
12627 aros_flavour="mac68knative" ;;
12628 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_BINCOMPAT)"
12629 aros_flavour="ppcnative" ;;
12630 esac
12632 if test ! -d ${aros_inc_dir} ; then
12633 ${MKDIR} ${aros_inc_dir}
12635 if test ! -d ${aros_geninc_dir} ; then
12636 ${MKDIR} ${aros_geninc_dir}
12638 if test ! -d ${aros_hostcfg_dir} ; then
12639 ${MKDIR} ${aros_hostcfg_dir}
12641 if test ! -d ${aros_targetcfg_dir} ; then
12642 ${MKDIR} ${aros_targetcfg_dir}
12644 if test ! -d ${aros_tools_dir} ; then
12645 ${MKDIR} ${aros_tools_dir}
12647 if test ! -d ${aros_scripts_dir} ; then
12648 ${MKDIR} ${aros_scripts_dir}
12651 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
12654 ac_config_commands="$ac_config_commands compiler_executable"
12656 ac_config_commands="$ac_config_commands genshared_executable"
12658 ac_config_commands="$ac_config_commands genmf_executable"
12660 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
12663 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"
12666 cat >confcache <<\_ACEOF
12667 # This file is a shell script that caches the results of configure
12668 # tests run on this system so they can be shared between configure
12669 # scripts and configure runs, see configure's option --config-cache.
12670 # It is not useful on other systems. If it contains results you don't
12671 # want to keep, you may remove or edit it.
12673 # config.status only pays attention to the cache file if you give it
12674 # the --recheck option to rerun configure.
12676 # `ac_cv_env_foo' variables (set or unset) will be overridden when
12677 # loading this file, other *unset* `ac_cv_foo' will be assigned the
12678 # following values.
12680 _ACEOF
12682 # The following way of writing the cache mishandles newlines in values,
12683 # but we know of no workaround that is simple, portable, and efficient.
12684 # So, we kill variables containing newlines.
12685 # Ultrix sh set writes to stderr and can't be redirected directly,
12686 # and sets the high bit in the cache file unless we assign to the vars.
12688 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12689 eval ac_val=\$$ac_var
12690 case $ac_val in #(
12691 *${as_nl}*)
12692 case $ac_var in #(
12693 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
12694 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
12695 esac
12696 case $ac_var in #(
12697 _ | IFS | as_nl) ;; #(
12698 *) $as_unset $ac_var ;;
12699 esac ;;
12700 esac
12701 done
12703 (set) 2>&1 |
12704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12705 *${as_nl}ac_space=\ *)
12706 # `set' does not quote correctly, so add quotes (double-quote
12707 # substitution turns \\\\ into \\, and sed turns \\ into \).
12708 sed -n \
12709 "s/'/'\\\\''/g;
12710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12711 ;; #(
12713 # `set' quotes correctly as required by POSIX, so do not add quotes.
12714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12716 esac |
12717 sort
12719 sed '
12720 /^ac_cv_env_/b end
12721 t clear
12722 :clear
12723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12724 t end
12725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12726 :end' >>confcache
12727 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12728 if test -w "$cache_file"; then
12729 test "x$cache_file" != "x/dev/null" &&
12730 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
12731 echo "$as_me: updating cache $cache_file" >&6;}
12732 cat confcache >$cache_file
12733 else
12734 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
12735 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12738 rm -f confcache
12740 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12741 # Let make expand exec_prefix.
12742 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12744 DEFS=-DHAVE_CONFIG_H
12746 ac_libobjs=
12747 ac_ltlibobjs=
12748 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12749 # 1. Remove the extension, and $U if already installed.
12750 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12751 ac_i=`echo "$ac_i" | sed "$ac_script"`
12752 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12753 # will be set to the directory where LIBOBJS objects are built.
12754 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12755 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
12756 done
12757 LIBOBJS=$ac_libobjs
12759 LTLIBOBJS=$ac_ltlibobjs
12763 : ${CONFIG_STATUS=./config.status}
12764 ac_clean_files_save=$ac_clean_files
12765 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12766 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
12767 echo "$as_me: creating $CONFIG_STATUS" >&6;}
12768 cat >$CONFIG_STATUS <<_ACEOF
12769 #! $SHELL
12770 # Generated by $as_me.
12771 # Run this file to recreate the current configuration.
12772 # Compiler output produced by configure, useful for debugging
12773 # configure, is in config.log if it exists.
12775 debug=false
12776 ac_cs_recheck=false
12777 ac_cs_silent=false
12778 SHELL=\${CONFIG_SHELL-$SHELL}
12779 _ACEOF
12781 cat >>$CONFIG_STATUS <<\_ACEOF
12782 ## --------------------- ##
12783 ## M4sh Initialization. ##
12784 ## --------------------- ##
12786 # Be more Bourne compatible
12787 DUALCASE=1; export DUALCASE # for MKS sh
12788 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
12789 emulate sh
12790 NULLCMD=:
12791 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
12792 # is contrary to our usage. Disable this feature.
12793 alias -g '${1+"$@"}'='"$@"'
12794 setopt NO_GLOB_SUBST
12795 else
12796 case `(set -o) 2>/dev/null` in
12797 *posix*) set -o posix ;;
12798 esac
12805 # PATH needs CR
12806 # Avoid depending upon Character Ranges.
12807 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12808 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12809 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12810 as_cr_digits='0123456789'
12811 as_cr_alnum=$as_cr_Letters$as_cr_digits
12813 # The user is always right.
12814 if test "${PATH_SEPARATOR+set}" != set; then
12815 echo "#! /bin/sh" >conf$$.sh
12816 echo "exit 0" >>conf$$.sh
12817 chmod +x conf$$.sh
12818 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
12819 PATH_SEPARATOR=';'
12820 else
12821 PATH_SEPARATOR=:
12823 rm -f conf$$.sh
12826 # Support unset when possible.
12827 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12828 as_unset=unset
12829 else
12830 as_unset=false
12834 # IFS
12835 # We need space, tab and new line, in precisely that order. Quoting is
12836 # there to prevent editors from complaining about space-tab.
12837 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12838 # splitting by setting IFS to empty value.)
12839 as_nl='
12841 IFS=" "" $as_nl"
12843 # Find who we are. Look in the path if we contain no directory separator.
12844 case $0 in
12845 *[\\/]* ) as_myself=$0 ;;
12846 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12847 for as_dir in $PATH
12849 IFS=$as_save_IFS
12850 test -z "$as_dir" && as_dir=.
12851 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12852 done
12853 IFS=$as_save_IFS
12856 esac
12857 # We did not find ourselves, most probably we were run as `sh COMMAND'
12858 # in which case we are not to be found in the path.
12859 if test "x$as_myself" = x; then
12860 as_myself=$0
12862 if test ! -f "$as_myself"; then
12863 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12864 { (exit 1); exit 1; }
12867 # Work around bugs in pre-3.0 UWIN ksh.
12868 for as_var in ENV MAIL MAILPATH
12869 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12870 done
12871 PS1='$ '
12872 PS2='> '
12873 PS4='+ '
12875 # NLS nuisances.
12876 for as_var in \
12877 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
12878 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
12879 LC_TELEPHONE LC_TIME
12881 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
12882 eval $as_var=C; export $as_var
12883 else
12884 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
12886 done
12888 # Required to use basename.
12889 if expr a : '\(a\)' >/dev/null 2>&1 &&
12890 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12891 as_expr=expr
12892 else
12893 as_expr=false
12896 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12897 as_basename=basename
12898 else
12899 as_basename=false
12903 # Name of the executable.
12904 as_me=`$as_basename -- "$0" ||
12905 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12906 X"$0" : 'X\(//\)$' \| \
12907 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12908 echo X/"$0" |
12909 sed '/^.*\/\([^/][^/]*\)\/*$/{
12910 s//\1/
12913 /^X\/\(\/\/\)$/{
12914 s//\1/
12917 /^X\/\(\/\).*/{
12918 s//\1/
12921 s/.*/./; q'`
12923 # CDPATH.
12924 $as_unset CDPATH
12928 as_lineno_1=$LINENO
12929 as_lineno_2=$LINENO
12930 test "x$as_lineno_1" != "x$as_lineno_2" &&
12931 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
12933 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
12934 # uniformly replaced by the line number. The first 'sed' inserts a
12935 # line-number line after each line using $LINENO; the second 'sed'
12936 # does the real work. The second script uses 'N' to pair each
12937 # line-number line with the line containing $LINENO, and appends
12938 # trailing '-' during substitution so that $LINENO is not a special
12939 # case at line end.
12940 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
12941 # scripts with optimization help from Paolo Bonzini. Blame Lee
12942 # E. McMahon (1931-1989) for sed's syntax. :-)
12943 sed -n '
12945 /[$]LINENO/=
12946 ' <$as_myself |
12947 sed '
12948 s/[$]LINENO.*/&-/
12949 t lineno
12951 :lineno
12953 :loop
12954 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
12955 t loop
12956 s/-\n.*//
12957 ' >$as_me.lineno &&
12958 chmod +x "$as_me.lineno" ||
12959 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
12960 { (exit 1); exit 1; }; }
12962 # Don't try to exec as it changes $[0], causing all sort of problems
12963 # (the dirname of $[0] is not the place where we might find the
12964 # original and so on. Autoconf is especially sensitive to this).
12965 . "./$as_me.lineno"
12966 # Exit status is that of the last command.
12967 exit
12971 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12972 as_dirname=dirname
12973 else
12974 as_dirname=false
12977 ECHO_C= ECHO_N= ECHO_T=
12978 case `echo -n x` in
12979 -n*)
12980 case `echo 'x\c'` in
12981 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12982 *) ECHO_C='\c';;
12983 esac;;
12985 ECHO_N='-n';;
12986 esac
12988 if expr a : '\(a\)' >/dev/null 2>&1 &&
12989 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12990 as_expr=expr
12991 else
12992 as_expr=false
12995 rm -f conf$$ conf$$.exe conf$$.file
12996 if test -d conf$$.dir; then
12997 rm -f conf$$.dir/conf$$.file
12998 else
12999 rm -f conf$$.dir
13000 mkdir conf$$.dir
13002 echo >conf$$.file
13003 if ln -s conf$$.file conf$$ 2>/dev/null; then
13004 as_ln_s='ln -s'
13005 # ... but there are two gotchas:
13006 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13007 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13008 # In both cases, we have to default to `cp -p'.
13009 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13010 as_ln_s='cp -p'
13011 elif ln conf$$.file conf$$ 2>/dev/null; then
13012 as_ln_s=ln
13013 else
13014 as_ln_s='cp -p'
13016 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13017 rmdir conf$$.dir 2>/dev/null
13019 if mkdir -p . 2>/dev/null; then
13020 as_mkdir_p=:
13021 else
13022 test -d ./-p && rmdir ./-p
13023 as_mkdir_p=false
13026 if test -x / >/dev/null 2>&1; then
13027 as_test_x='test -x'
13028 else
13029 if ls -dL / >/dev/null 2>&1; then
13030 as_ls_L_option=L
13031 else
13032 as_ls_L_option=
13034 as_test_x='
13035 eval sh -c '\''
13036 if test -d "$1"; then
13037 test -d "$1/.";
13038 else
13039 case $1 in
13040 -*)set "./$1";;
13041 esac;
13042 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13043 ???[sx]*):;;*)false;;esac;fi
13044 '\'' sh
13047 as_executable_p=$as_test_x
13049 # Sed expression to map a string onto a valid CPP name.
13050 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13052 # Sed expression to map a string onto a valid variable name.
13053 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13056 exec 6>&1
13058 # Save the log message, to keep $[0] and so on meaningful, and to
13059 # report actual input values of CONFIG_FILES etc. instead of their
13060 # values after options handling.
13061 ac_log="
13062 This file was extended by $as_me, which was
13063 generated by GNU Autoconf 2.61. Invocation command line was
13065 CONFIG_FILES = $CONFIG_FILES
13066 CONFIG_HEADERS = $CONFIG_HEADERS
13067 CONFIG_LINKS = $CONFIG_LINKS
13068 CONFIG_COMMANDS = $CONFIG_COMMANDS
13069 $ $0 $@
13071 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13074 _ACEOF
13076 cat >>$CONFIG_STATUS <<_ACEOF
13077 # Files that config.status was made for.
13078 config_files="$ac_config_files"
13079 config_headers="$ac_config_headers"
13080 config_commands="$ac_config_commands"
13082 _ACEOF
13084 cat >>$CONFIG_STATUS <<\_ACEOF
13085 ac_cs_usage="\
13086 \`$as_me' instantiates files from templates according to the
13087 current configuration.
13089 Usage: $0 [OPTIONS] [FILE]...
13091 -h, --help print this help, then exit
13092 -V, --version print version number and configuration settings, then exit
13093 -q, --quiet do not print progress messages
13094 -d, --debug don't remove temporary files
13095 --recheck update $as_me by reconfiguring in the same conditions
13096 --file=FILE[:TEMPLATE]
13097 instantiate the configuration file FILE
13098 --header=FILE[:TEMPLATE]
13099 instantiate the configuration header FILE
13101 Configuration files:
13102 $config_files
13104 Configuration headers:
13105 $config_headers
13107 Configuration commands:
13108 $config_commands
13110 Report bugs to <bug-autoconf@gnu.org>."
13112 _ACEOF
13113 cat >>$CONFIG_STATUS <<_ACEOF
13114 ac_cs_version="\\
13115 config.status
13116 configured by $0, generated by GNU Autoconf 2.61,
13117 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13119 Copyright (C) 2006 Free Software Foundation, Inc.
13120 This config.status script is free software; the Free Software Foundation
13121 gives unlimited permission to copy, distribute and modify it."
13123 ac_pwd='$ac_pwd'
13124 srcdir='$srcdir'
13125 _ACEOF
13127 cat >>$CONFIG_STATUS <<\_ACEOF
13128 # If no file are specified by the user, then we need to provide default
13129 # value. By we need to know if files were specified by the user.
13130 ac_need_defaults=:
13131 while test $# != 0
13133 case $1 in
13134 --*=*)
13135 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13136 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13137 ac_shift=:
13140 ac_option=$1
13141 ac_optarg=$2
13142 ac_shift=shift
13144 esac
13146 case $ac_option in
13147 # Handling of the options.
13148 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13149 ac_cs_recheck=: ;;
13150 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13151 echo "$ac_cs_version"; exit ;;
13152 --debug | --debu | --deb | --de | --d | -d )
13153 debug=: ;;
13154 --file | --fil | --fi | --f )
13155 $ac_shift
13156 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
13157 ac_need_defaults=false;;
13158 --header | --heade | --head | --hea )
13159 $ac_shift
13160 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
13161 ac_need_defaults=false;;
13162 --he | --h)
13163 # Conflict between --help and --header
13164 { echo "$as_me: error: ambiguous option: $1
13165 Try \`$0 --help' for more information." >&2
13166 { (exit 1); exit 1; }; };;
13167 --help | --hel | -h )
13168 echo "$ac_cs_usage"; exit ;;
13169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13170 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13171 ac_cs_silent=: ;;
13173 # This is an error.
13174 -*) { echo "$as_me: error: unrecognized option: $1
13175 Try \`$0 --help' for more information." >&2
13176 { (exit 1); exit 1; }; } ;;
13178 *) ac_config_targets="$ac_config_targets $1"
13179 ac_need_defaults=false ;;
13181 esac
13182 shift
13183 done
13185 ac_configure_extra_args=
13187 if $ac_cs_silent; then
13188 exec 6>/dev/null
13189 ac_configure_extra_args="$ac_configure_extra_args --silent"
13192 _ACEOF
13193 cat >>$CONFIG_STATUS <<_ACEOF
13194 if \$ac_cs_recheck; then
13195 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13196 CONFIG_SHELL=$SHELL
13197 export CONFIG_SHELL
13198 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13201 _ACEOF
13202 cat >>$CONFIG_STATUS <<\_ACEOF
13203 exec 5>>config.log
13205 echo
13206 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13207 ## Running $as_me. ##
13208 _ASBOX
13209 echo "$ac_log"
13210 } >&5
13212 _ACEOF
13213 cat >>$CONFIG_STATUS <<_ACEOF
13215 # INIT-COMMANDS
13218 aros_tools_dir=${aros_tools_dir}
13219 aros_target_cpu=${aros_target_cpu}
13220 aros_target_arch=${aros_target_arch}
13221 aros_target_suffix=${aros_target_suffix}
13222 aros_target_nm_ln=${aros_target_nm_ln}
13223 aros_target_as_ln=${aros_target_as_ln}
13224 aros_target_ar_ln=${aros_target_ar_ln}
13225 aros_target_ranlib_ln=${aros_target_ranlib_ln}
13226 aros_target_objdump_ln=${aros_target_objdump_ln}
13227 aros_target_objcopy_ln=${aros_target_objcopy_ln}
13228 aros_target_strip_ln=${aros_target_strip_ln}
13231 aros_scripts_dir=${aros_scripts_dir}
13233 aros_tools_dir=${aros_tools_dir}
13236 _ACEOF
13238 cat >>$CONFIG_STATUS <<\_ACEOF
13240 # Handling of arguments.
13241 for ac_config_target in $ac_config_targets
13243 case $ac_config_target in
13244 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
13245 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
13246 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
13247 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
13248 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
13249 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13250 "rom/mmakefile") CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
13251 "config/make.cfg") CONFIG_FILES="$CONFIG_FILES config/make.cfg" ;;
13252 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
13253 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
13254 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
13255 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
13256 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
13257 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
13258 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
13259 "${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" ;;
13260 "${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" ;;
13261 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
13262 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
13263 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
13264 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
13266 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13267 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13268 { (exit 1); exit 1; }; };;
13269 esac
13270 done
13273 # If the user did not use the arguments to specify the items to instantiate,
13274 # then the envvar interface is used. Set only those that are not.
13275 # We use the long form for the default assignment because of an extremely
13276 # bizarre bug on SunOS 4.1.3.
13277 if $ac_need_defaults; then
13278 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13279 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13280 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13283 # Have a temporary directory for convenience. Make it in the build tree
13284 # simply because there is no reason against having it here, and in addition,
13285 # creating and moving files from /tmp can sometimes cause problems.
13286 # Hook for its removal unless debugging.
13287 # Note that there is a small window in which the directory will not be cleaned:
13288 # after its creation but before its name has been assigned to `$tmp'.
13289 $debug ||
13291 tmp=
13292 trap 'exit_status=$?
13293 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13295 trap '{ (exit 1); exit 1; }' 1 2 13 15
13297 # Create a (secure) tmp directory for tmp files.
13300 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13301 test -n "$tmp" && test -d "$tmp"
13302 } ||
13304 tmp=./conf$$-$RANDOM
13305 (umask 077 && mkdir "$tmp")
13306 } ||
13308 echo "$me: cannot create a temporary directory in ." >&2
13309 { (exit 1); exit 1; }
13313 # Set up the sed scripts for CONFIG_FILES section.
13316 # No need to generate the scripts if there are no CONFIG_FILES.
13317 # This happens for instance when ./config.status config.h
13318 if test -n "$CONFIG_FILES"; then
13320 _ACEOF
13324 ac_delim='%!_!# '
13325 for ac_last_try in false false false false false :; do
13326 cat >conf$$subs.sed <<_ACEOF
13327 SHELL!$SHELL$ac_delim
13328 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
13329 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
13330 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
13331 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
13332 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
13333 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
13334 exec_prefix!$exec_prefix$ac_delim
13335 prefix!$prefix$ac_delim
13336 program_transform_name!$program_transform_name$ac_delim
13337 bindir!$bindir$ac_delim
13338 sbindir!$sbindir$ac_delim
13339 libexecdir!$libexecdir$ac_delim
13340 datarootdir!$datarootdir$ac_delim
13341 datadir!$datadir$ac_delim
13342 sysconfdir!$sysconfdir$ac_delim
13343 sharedstatedir!$sharedstatedir$ac_delim
13344 localstatedir!$localstatedir$ac_delim
13345 includedir!$includedir$ac_delim
13346 oldincludedir!$oldincludedir$ac_delim
13347 docdir!$docdir$ac_delim
13348 infodir!$infodir$ac_delim
13349 htmldir!$htmldir$ac_delim
13350 dvidir!$dvidir$ac_delim
13351 pdfdir!$pdfdir$ac_delim
13352 psdir!$psdir$ac_delim
13353 libdir!$libdir$ac_delim
13354 localedir!$localedir$ac_delim
13355 mandir!$mandir$ac_delim
13356 DEFS!$DEFS$ac_delim
13357 ECHO_C!$ECHO_C$ac_delim
13358 ECHO_N!$ECHO_N$ac_delim
13359 ECHO_T!$ECHO_T$ac_delim
13360 LIBS!$LIBS$ac_delim
13361 build_alias!$build_alias$ac_delim
13362 host_alias!$host_alias$ac_delim
13363 target_alias!$target_alias$ac_delim
13364 build!$build$ac_delim
13365 build_cpu!$build_cpu$ac_delim
13366 build_vendor!$build_vendor$ac_delim
13367 build_os!$build_os$ac_delim
13368 host!$host$ac_delim
13369 host_cpu!$host_cpu$ac_delim
13370 host_vendor!$host_vendor$ac_delim
13371 host_os!$host_os$ac_delim
13372 CC!$CC$ac_delim
13373 CFLAGS!$CFLAGS$ac_delim
13374 LDFLAGS!$LDFLAGS$ac_delim
13375 CPPFLAGS!$CPPFLAGS$ac_delim
13376 ac_ct_CC!$ac_ct_CC$ac_delim
13377 EXEEXT!$EXEEXT$ac_delim
13378 OBJEXT!$OBJEXT$ac_delim
13379 CPP!$CPP$ac_delim
13380 AWK!$AWK$ac_delim
13381 MMAKE!$MMAKE$ac_delim
13382 aros_host_ld!$aros_host_ld$ac_delim
13383 aros_host_aclocal!$aros_host_aclocal$ac_delim
13384 aros_host_autoconf!$aros_host_autoconf$ac_delim
13385 aros_host_autoheader!$aros_host_autoheader$ac_delim
13386 aros_host_automake!$aros_host_automake$ac_delim
13387 aros_host_ar!$aros_host_ar$ac_delim
13388 aros_host_ranlib!$aros_host_ranlib$ac_delim
13389 aros_host_strip!$aros_host_strip$ac_delim
13390 RM!$RM$ac_delim
13391 CP!$CP$ac_delim
13392 MV!$MV$ac_delim
13393 ECHO!$ECHO$ac_delim
13394 MKDIR!$MKDIR$ac_delim
13395 TOUCH!$TOUCH$ac_delim
13396 SORT!$SORT$ac_delim
13397 UNIQ!$UNIQ$ac_delim
13398 NOP!$NOP$ac_delim
13399 CAT!$CAT$ac_delim
13400 BISON!$BISON$ac_delim
13401 FLEX!$FLEX$ac_delim
13402 PNGTOPNM!$PNGTOPNM$ac_delim
13403 PPMTOILBM!$PPMTOILBM$ac_delim
13404 SED!$SED$ac_delim
13405 CHMOD!$CHMOD$ac_delim
13406 PYTHON!$PYTHON$ac_delim
13407 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
13408 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
13409 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
13410 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
13411 pythondir!$pythondir$ac_delim
13412 pkgpythondir!$pkgpythondir$ac_delim
13413 pyexecdir!$pyexecdir$ac_delim
13414 pkgpyexecdir!$pkgpyexecdir$ac_delim
13415 FOR!$FOR$ac_delim
13416 IF!$IF$ac_delim
13417 TEST!$TEST$ac_delim
13418 CMP!$CMP$ac_delim
13419 GREP!$GREP$ac_delim
13420 EGREP!$EGREP$ac_delim
13421 LIBOBJS!$LIBOBJS$ac_delim
13422 DISTCC!$DISTCC$ac_delim
13423 CCACHE!$CCACHE$ac_delim
13424 _ACEOF
13426 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13427 break
13428 elif $ac_last_try; then
13429 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13430 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13431 { (exit 1); exit 1; }; }
13432 else
13433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13435 done
13437 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13438 if test -n "$ac_eof"; then
13439 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13440 ac_eof=`expr $ac_eof + 1`
13443 cat >>$CONFIG_STATUS <<_ACEOF
13444 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
13445 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13446 _ACEOF
13447 sed '
13448 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13449 s/^/s,@/; s/!/@,|#_!!_#|/
13452 s/'"$ac_delim"'$/,g/; t
13453 s/$/\\/; p
13454 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13455 ' >>$CONFIG_STATUS <conf$$subs.sed
13456 rm -f conf$$subs.sed
13457 cat >>$CONFIG_STATUS <<_ACEOF
13458 CEOF$ac_eof
13459 _ACEOF
13462 ac_delim='%!_!# '
13463 for ac_last_try in false false false false false :; do
13464 cat >conf$$subs.sed <<_ACEOF
13465 LIBLZO!$LIBLZO$ac_delim
13466 aros_kernel_cc!$aros_kernel_cc$ac_delim
13467 aros_target_cc!$aros_target_cc$ac_delim
13468 aros_target_ld!$aros_target_ld$ac_delim
13469 aros_target_as_ln!$aros_target_as_ln$ac_delim
13470 aros_kernel_ld!$aros_kernel_ld$ac_delim
13471 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
13472 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
13473 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
13474 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
13475 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
13476 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
13477 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
13478 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
13479 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
13480 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
13481 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
13482 aros_cflags_iquote!$aros_cflags_iquote$ac_delim
13483 aros_cflags_iquote_end!$aros_cflags_iquote_end$ac_delim
13484 XMKMF!$XMKMF$ac_delim
13485 SDL_CONFIG!$SDL_CONFIG$ac_delim
13486 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
13487 SDL_LIBS!$SDL_LIBS$ac_delim
13488 aros_arch!$aros_arch$ac_delim
13489 aros_cpu!$aros_cpu$ac_delim
13490 aros_flavour!$aros_flavour$ac_delim
13491 aros_flavour_uc!$aros_flavour_uc$ac_delim
13492 AROS_BUILDDIR!$AROS_BUILDDIR$ac_delim
13493 SRCDIR!$SRCDIR$ac_delim
13494 AROS_PORTSSRCDIR!$AROS_PORTSSRCDIR$ac_delim
13495 aros_cc_pre!$aros_cc_pre$ac_delim
13496 aros_host_arch!$aros_host_arch$ac_delim
13497 aros_host_cpu!$aros_host_cpu$ac_delim
13498 aros_host_cc!$aros_host_cc$ac_delim
13499 aros_host_make!$aros_host_make$ac_delim
13500 aros_host_cflags!$aros_host_cflags$ac_delim
13501 aros_host_ldflags!$aros_host_ldflags$ac_delim
13502 aros_host_debug!$aros_host_debug$ac_delim
13503 aros_host_mkdep!$aros_host_mkdep$ac_delim
13504 aros_host_mkargs!$aros_host_mkargs$ac_delim
13505 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
13506 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
13507 aros_tools_dir!$aros_tools_dir$ac_delim
13508 aros_target_guitheme!$aros_target_guitheme$ac_delim
13509 aros_target_bootloader!$aros_target_bootloader$ac_delim
13510 aros_target_arch!$aros_target_arch$ac_delim
13511 aros_target_cpu!$aros_target_cpu$ac_delim
13512 aros_target_variant!$aros_target_variant$ac_delim
13513 aros_target_suffix!$aros_target_suffix$ac_delim
13514 aros_target_incl!$aros_target_incl$ac_delim
13515 aros_target_ar!$aros_target_ar$ac_delim
13516 aros_target_ranlib!$aros_target_ranlib$ac_delim
13517 aros_kernel_nm!$aros_kernel_nm$ac_delim
13518 orig_target_cc!$orig_target_cc$ac_delim
13519 aros_target_as!$aros_target_as$ac_delim
13520 orig_target_ld!$orig_target_ld$ac_delim
13521 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
13522 aros_target_cc_path!$aros_target_cc_path$ac_delim
13523 aros_target_objdump!$aros_target_objdump$ac_delim
13524 aros_target_objcopy!$aros_target_objcopy$ac_delim
13525 aros_target_strip!$aros_target_strip$ac_delim
13526 aros_target_nm!$aros_target_nm$ac_delim
13527 aros_shared_default!$aros_shared_default$ac_delim
13528 aros_shared_ld!$aros_shared_ld$ac_delim
13529 aros_object_format!$aros_object_format$ac_delim
13530 aros_compiler_libs!$aros_compiler_libs$ac_delim
13531 aros_config_cflags!$aros_config_cflags$ac_delim
13532 aros_config_aflags!$aros_config_aflags$ac_delim
13533 aros_config_ldflags!$aros_config_ldflags$ac_delim
13534 aros_shared_cflags!$aros_shared_cflags$ac_delim
13535 aros_shared_aflags!$aros_shared_aflags$ac_delim
13536 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
13537 aros_kernel_cflags!$aros_kernel_cflags$ac_delim
13538 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
13539 aros_debug_cflags!$aros_debug_cflags$ac_delim
13540 aros_debug_aflags!$aros_debug_aflags$ac_delim
13541 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
13542 aros_target_genmap!$aros_target_genmap$ac_delim
13543 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
13544 x11_hidd_target!$x11_hidd_target$ac_delim
13545 sdl_hidd_target!$sdl_hidd_target$ac_delim
13546 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
13547 aros_default_wbheight!$aros_default_wbheight$ac_delim
13548 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
13549 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
13550 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
13551 aros_host_x11_includes!$aros_host_x11_includes$ac_delim
13552 aros_host_x11_libdirs!$aros_host_x11_libdirs$ac_delim
13553 aros_host_sdl_cflags!$aros_host_sdl_cflags$ac_delim
13554 aros_host_sdl_libs!$aros_host_sdl_libs$ac_delim
13555 aros_bochs_hack!$aros_bochs_hack$ac_delim
13556 aros_serial_debug!$aros_serial_debug$ac_delim
13557 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
13558 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
13559 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
13560 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
13561 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
13562 _ACEOF
13564 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
13565 break
13566 elif $ac_last_try; then
13567 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13568 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13569 { (exit 1); exit 1; }; }
13570 else
13571 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13573 done
13575 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13576 if test -n "$ac_eof"; then
13577 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13578 ac_eof=`expr $ac_eof + 1`
13581 cat >>$CONFIG_STATUS <<_ACEOF
13582 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
13583 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13584 _ACEOF
13585 sed '
13586 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13587 s/^/s,@/; s/!/@,|#_!!_#|/
13590 s/'"$ac_delim"'$/,g/; t
13591 s/$/\\/; p
13592 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13593 ' >>$CONFIG_STATUS <conf$$subs.sed
13594 rm -f conf$$subs.sed
13595 cat >>$CONFIG_STATUS <<_ACEOF
13596 CEOF$ac_eof
13597 _ACEOF
13600 ac_delim='%!_!# '
13601 for ac_last_try in false false false false false :; do
13602 cat >conf$$subs.sed <<_ACEOF
13603 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
13604 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
13605 aros_debug!$aros_debug$ac_delim
13606 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
13607 aros_stack_debug!$aros_stack_debug$ac_delim
13608 aros_modules_debug!$aros_modules_debug$ac_delim
13609 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
13610 gcc_target_cpu!$gcc_target_cpu$ac_delim
13611 LTLIBOBJS!$LTLIBOBJS$ac_delim
13612 _ACEOF
13614 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 9; then
13615 break
13616 elif $ac_last_try; then
13617 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
13618 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
13619 { (exit 1); exit 1; }; }
13620 else
13621 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13623 done
13625 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
13626 if test -n "$ac_eof"; then
13627 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
13628 ac_eof=`expr $ac_eof + 1`
13631 cat >>$CONFIG_STATUS <<_ACEOF
13632 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
13633 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
13634 _ACEOF
13635 sed '
13636 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
13637 s/^/s,@/; s/!/@,|#_!!_#|/
13640 s/'"$ac_delim"'$/,g/; t
13641 s/$/\\/; p
13642 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
13643 ' >>$CONFIG_STATUS <conf$$subs.sed
13644 rm -f conf$$subs.sed
13645 cat >>$CONFIG_STATUS <<_ACEOF
13646 :end
13647 s/|#_!!_#|//g
13648 CEOF$ac_eof
13649 _ACEOF
13652 # VPATH may cause trouble with some makes, so we remove $(srcdir),
13653 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13654 # trailing colons and then remove the whole line if VPATH becomes empty
13655 # (actually we leave an empty line to preserve line numbers).
13656 if test "x$srcdir" = x.; then
13657 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13658 s/:*\$(srcdir):*/:/
13659 s/:*\${srcdir}:*/:/
13660 s/:*@srcdir@:*/:/
13661 s/^\([^=]*=[ ]*\):*/\1/
13662 s/:*$//
13663 s/^[^=]*=[ ]*$//
13667 cat >>$CONFIG_STATUS <<\_ACEOF
13668 fi # test -n "$CONFIG_FILES"
13671 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
13673 case $ac_tag in
13674 :[FHLC]) ac_mode=$ac_tag; continue;;
13675 esac
13676 case $ac_mode$ac_tag in
13677 :[FHL]*:*);;
13678 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
13679 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
13680 { (exit 1); exit 1; }; };;
13681 :[FH]-) ac_tag=-:-;;
13682 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13683 esac
13684 ac_save_IFS=$IFS
13685 IFS=:
13686 set x $ac_tag
13687 IFS=$ac_save_IFS
13688 shift
13689 ac_file=$1
13690 shift
13692 case $ac_mode in
13693 :L) ac_source=$1;;
13694 :[FH])
13695 ac_file_inputs=
13696 for ac_f
13698 case $ac_f in
13699 -) ac_f="$tmp/stdin";;
13700 *) # Look for the file first in the build tree, then in the source tree
13701 # (if the path is not absolute). The absolute path cannot be DOS-style,
13702 # because $ac_f cannot contain `:'.
13703 test -f "$ac_f" ||
13704 case $ac_f in
13705 [\\/$]*) false;;
13706 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13707 esac ||
13708 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
13709 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
13710 { (exit 1); exit 1; }; };;
13711 esac
13712 ac_file_inputs="$ac_file_inputs $ac_f"
13713 done
13715 # Let's still pretend it is `configure' which instantiates (i.e., don't
13716 # use $as_me), people would be surprised to read:
13717 # /* config.h. Generated by config.status. */
13718 configure_input="Generated from "`IFS=:
13719 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
13720 if test x"$ac_file" != x-; then
13721 configure_input="$ac_file. $configure_input"
13722 { echo "$as_me:$LINENO: creating $ac_file" >&5
13723 echo "$as_me: creating $ac_file" >&6;}
13726 case $ac_tag in
13727 *:-:* | *:-) cat >"$tmp/stdin";;
13728 esac
13730 esac
13732 ac_dir=`$as_dirname -- "$ac_file" ||
13733 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13734 X"$ac_file" : 'X\(//\)[^/]' \| \
13735 X"$ac_file" : 'X\(//\)$' \| \
13736 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13737 echo X"$ac_file" |
13738 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13739 s//\1/
13742 /^X\(\/\/\)[^/].*/{
13743 s//\1/
13746 /^X\(\/\/\)$/{
13747 s//\1/
13750 /^X\(\/\).*/{
13751 s//\1/
13754 s/.*/./; q'`
13755 { as_dir="$ac_dir"
13756 case $as_dir in #(
13757 -*) as_dir=./$as_dir;;
13758 esac
13759 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
13760 as_dirs=
13761 while :; do
13762 case $as_dir in #(
13763 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
13764 *) as_qdir=$as_dir;;
13765 esac
13766 as_dirs="'$as_qdir' $as_dirs"
13767 as_dir=`$as_dirname -- "$as_dir" ||
13768 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13769 X"$as_dir" : 'X\(//\)[^/]' \| \
13770 X"$as_dir" : 'X\(//\)$' \| \
13771 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13772 echo X"$as_dir" |
13773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13774 s//\1/
13777 /^X\(\/\/\)[^/].*/{
13778 s//\1/
13781 /^X\(\/\/\)$/{
13782 s//\1/
13785 /^X\(\/\).*/{
13786 s//\1/
13789 s/.*/./; q'`
13790 test -d "$as_dir" && break
13791 done
13792 test -z "$as_dirs" || eval "mkdir $as_dirs"
13793 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
13794 echo "$as_me: error: cannot create directory $as_dir" >&2;}
13795 { (exit 1); exit 1; }; }; }
13796 ac_builddir=.
13798 case "$ac_dir" in
13799 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13801 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13802 # A ".." for each directory in $ac_dir_suffix.
13803 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
13804 case $ac_top_builddir_sub in
13805 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13806 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13807 esac ;;
13808 esac
13809 ac_abs_top_builddir=$ac_pwd
13810 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13811 # for backward compatibility:
13812 ac_top_builddir=$ac_top_build_prefix
13814 case $srcdir in
13815 .) # We are building in place.
13816 ac_srcdir=.
13817 ac_top_srcdir=$ac_top_builddir_sub
13818 ac_abs_top_srcdir=$ac_pwd ;;
13819 [\\/]* | ?:[\\/]* ) # Absolute name.
13820 ac_srcdir=$srcdir$ac_dir_suffix;
13821 ac_top_srcdir=$srcdir
13822 ac_abs_top_srcdir=$srcdir ;;
13823 *) # Relative name.
13824 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13825 ac_top_srcdir=$ac_top_build_prefix$srcdir
13826 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13827 esac
13828 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13831 case $ac_mode in
13834 # CONFIG_FILE
13837 _ACEOF
13839 cat >>$CONFIG_STATUS <<\_ACEOF
13840 # If the template does not know about datarootdir, expand it.
13841 # FIXME: This hack should be removed a few years after 2.60.
13842 ac_datarootdir_hack=; ac_datarootdir_seen=
13844 case `sed -n '/datarootdir/ {
13848 /@datadir@/p
13849 /@docdir@/p
13850 /@infodir@/p
13851 /@localedir@/p
13852 /@mandir@/p
13853 ' $ac_file_inputs` in
13854 *datarootdir*) ac_datarootdir_seen=yes;;
13855 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13856 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13857 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13858 _ACEOF
13859 cat >>$CONFIG_STATUS <<_ACEOF
13860 ac_datarootdir_hack='
13861 s&@datadir@&$datadir&g
13862 s&@docdir@&$docdir&g
13863 s&@infodir@&$infodir&g
13864 s&@localedir@&$localedir&g
13865 s&@mandir@&$mandir&g
13866 s&\\\${datarootdir}&$datarootdir&g' ;;
13867 esac
13868 _ACEOF
13870 # Neutralize VPATH when `$srcdir' = `.'.
13871 # Shell code in configure.ac might set extrasub.
13872 # FIXME: do we really want to maintain this feature?
13873 cat >>$CONFIG_STATUS <<_ACEOF
13874 sed "$ac_vpsub
13875 $extrasub
13876 _ACEOF
13877 cat >>$CONFIG_STATUS <<\_ACEOF
13879 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13880 s&@configure_input@&$configure_input&;t t
13881 s&@top_builddir@&$ac_top_builddir_sub&;t t
13882 s&@srcdir@&$ac_srcdir&;t t
13883 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13884 s&@top_srcdir@&$ac_top_srcdir&;t t
13885 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13886 s&@builddir@&$ac_builddir&;t t
13887 s&@abs_builddir@&$ac_abs_builddir&;t t
13888 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13889 $ac_datarootdir_hack
13890 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
13892 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13893 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13894 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13895 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13896 which seems to be undefined. Please make sure it is defined." >&5
13897 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13898 which seems to be undefined. Please make sure it is defined." >&2;}
13900 rm -f "$tmp/stdin"
13901 case $ac_file in
13902 -) cat "$tmp/out"; rm -f "$tmp/out";;
13903 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
13904 esac
13908 # CONFIG_HEADER
13910 _ACEOF
13912 # Transform confdefs.h into a sed script `conftest.defines', that
13913 # substitutes the proper values into config.h.in to produce config.h.
13914 rm -f conftest.defines conftest.tail
13915 # First, append a space to every undef/define line, to ease matching.
13916 echo 's/$/ /' >conftest.defines
13917 # Then, protect against being on the right side of a sed subst, or in
13918 # an unquoted here document, in config.status. If some macros were
13919 # called several times there might be several #defines for the same
13920 # symbol, which is useless. But do not sort them, since the last
13921 # AC_DEFINE must be honored.
13922 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13923 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
13924 # NAME is the cpp macro being defined, VALUE is the value it is being given.
13925 # PARAMS is the parameter list in the macro definition--in most cases, it's
13926 # just an empty string.
13927 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
13928 ac_dB='\\)[ (].*,\\1define\\2'
13929 ac_dC=' '
13930 ac_dD=' ,'
13932 uniq confdefs.h |
13933 sed -n '
13934 t rset
13935 :rset
13936 s/^[ ]*#[ ]*define[ ][ ]*//
13937 t ok
13940 s/[\\&,]/\\&/g
13941 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
13942 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
13943 ' >>conftest.defines
13945 # Remove the space that was appended to ease matching.
13946 # Then replace #undef with comments. This is necessary, for
13947 # example, in the case of _POSIX_SOURCE, which is predefined and required
13948 # on some systems where configure will not decide to define it.
13949 # (The regexp can be short, since the line contains either #define or #undef.)
13950 echo 's/ $//
13951 s,^[ #]*u.*,/* & */,' >>conftest.defines
13953 # Break up conftest.defines:
13954 ac_max_sed_lines=50
13956 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
13957 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
13958 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
13959 # et cetera.
13960 ac_in='$ac_file_inputs'
13961 ac_out='"$tmp/out1"'
13962 ac_nxt='"$tmp/out2"'
13964 while :
13966 # Write a here document:
13967 cat >>$CONFIG_STATUS <<_ACEOF
13968 # First, check the format of the line:
13969 cat >"\$tmp/defines.sed" <<\\CEOF
13970 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
13971 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
13973 :def
13974 _ACEOF
13975 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
13976 echo 'CEOF
13977 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
13978 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
13979 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
13980 grep . conftest.tail >/dev/null || break
13981 rm -f conftest.defines
13982 mv conftest.tail conftest.defines
13983 done
13984 rm -f conftest.defines conftest.tail
13986 echo "ac_result=$ac_in" >>$CONFIG_STATUS
13987 cat >>$CONFIG_STATUS <<\_ACEOF
13988 if test x"$ac_file" != x-; then
13989 echo "/* $configure_input */" >"$tmp/config.h"
13990 cat "$ac_result" >>"$tmp/config.h"
13991 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
13992 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
13993 echo "$as_me: $ac_file is unchanged" >&6;}
13994 else
13995 rm -f $ac_file
13996 mv "$tmp/config.h" $ac_file
13998 else
13999 echo "/* $configure_input */"
14000 cat "$ac_result"
14002 rm -f "$tmp/out12"
14005 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
14006 echo "$as_me: executing $ac_file commands" >&6;}
14008 esac
14011 case $ac_file$ac_mode in
14012 "compiler_executable":C)
14013 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
14014 mkdir -p $prefix
14015 prefix="${prefix}/${aros_target_cpu}-aros"
14016 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
14018 echo ${prefix}
14019 echo ${prefix2}
14020 chmod a+x ${prefix2}-gcc ${prefix2}-ld
14022 ln -sf ${prefix2}-gcc ${prefix}-gcc
14023 ln -sf ${prefix2}-ld ${prefix}-ld
14025 ln -sf $aros_target_as_ln ${prefix}-as
14026 ln -sf $aros_target_nm_ln ${prefix}-nm
14027 ln -sf $aros_target_ar_ln ${prefix}-ar
14028 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
14029 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
14030 ln -sf $aros_target_objdump_ln ${prefix}-objdump
14031 ln -sf $aros_target_strip_ln ${prefix}-strip
14033 ln -sf $aros_target_as_ln ${prefix2}-as
14034 ln -sf $aros_target_nm_ln ${prefix2}-nm
14035 ln -sf $aros_target_ar_ln ${prefix2}-ar
14036 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
14037 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
14038 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
14039 ln -sf $aros_target_strip_ln ${prefix2}-strip
14041 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
14042 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
14043 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
14046 esac
14047 done # for ac_tag
14050 { (exit 0); exit 0; }
14051 _ACEOF
14052 chmod +x $CONFIG_STATUS
14053 ac_clean_files=$ac_clean_files_save
14056 # configure is writing to config.log, and then calls config.status.
14057 # config.status does its own redirection, appending to config.log.
14058 # Unfortunately, on DOS this fails, as config.log is still kept open
14059 # by configure, so config.status won't be able to write to it; its
14060 # output is simply discarded. So we exec the FD to /dev/null,
14061 # effectively closing config.log, so it can be properly (re)opened and
14062 # appended to by config.status. When coming back to configure, we
14063 # need to make the FD available again.
14064 if test "$no_create" != yes; then
14065 ac_cs_success=:
14066 ac_config_status_args=
14067 test "$silent" = yes &&
14068 ac_config_status_args="$ac_config_status_args --quiet"
14069 exec 5>/dev/null
14070 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14071 exec 5>>config.log
14072 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14073 # would make configure fail if this is the last instruction.
14074 $ac_cs_success || { (exit 1); exit 1; }
14079 #XXX compatability...
14080 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
14082 if test -n "$aros_shared_cflags" ; then
14083 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
14084 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg