make sure the right filename is being tracked for notification
[cake.git] / configure
blob6446b1253c66900650a9f0f1876c98cb5a778066
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
50 rm -f conf$$.sh
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
68 IFS=" "" $as_nl"
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
113 done
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
140 /^X\/\(\/\/\)$/{
141 s//\1/
144 /^X\/\(\/\).*/{
145 s//\1/
148 s/.*/./; q'`
150 # CDPATH.
151 $as_unset CDPATH
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
165 as_func_success () {
166 as_func_return 0
168 as_func_failure () {
169 as_func_return 1
171 as_func_ret_success () {
172 return 0
174 as_func_ret_failure () {
175 return 1
178 exitcode=0
179 if as_func_success; then
181 else
182 exitcode=1
183 echo as_func_success failed.
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
205 else
206 exitcode=1
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
277 (as_func_return () {
278 (exit $1)
280 as_func_success () {
281 as_func_return 0
283 as_func_failure () {
284 as_func_return 1
286 as_func_ret_success () {
287 return 0
289 as_func_ret_failure () {
290 return 1
293 exitcode=0
294 if as_func_success; then
296 else
297 exitcode=1
298 echo as_func_success failed.
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
306 if as_func_ret_success; then
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 else
321 exitcode=1
322 echo positional parameters were not saved.
325 test $exitcode = 0) || { (exit 1); exit 1; }
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
333 _ASEOF
334 }; then
335 break
340 done
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
366 (eval "as_func_return () {
367 (exit \$1)
369 as_func_success () {
370 as_func_return 0
372 as_func_failure () {
373 as_func_return 1
375 as_func_ret_success () {
376 return 0
378 as_func_ret_failure () {
379 return 1
382 exitcode=0
383 if as_func_success; then
385 else
386 exitcode=1
387 echo as_func_success failed.
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
395 if as_func_ret_success; then
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 else
410 exitcode=1
411 echo positional parameters were not saved.
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
446 :lineno
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
480 ECHO_N='-n';;
481 esac
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
542 as_executable_p=$as_test_x
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
552 exec 7<&0 </dev/null 6>&1
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 # Initializations.
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
579 ac_unique_file="mmakefile"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
616 ac_subst_vars='SHELL
617 PATH_SEPARATOR
618 PACKAGE_NAME
619 PACKAGE_TARNAME
620 PACKAGE_VERSION
621 PACKAGE_STRING
622 PACKAGE_BUGREPORT
623 exec_prefix
624 prefix
625 program_transform_name
626 bindir
627 sbindir
628 libexecdir
629 datarootdir
630 datadir
631 sysconfdir
632 sharedstatedir
633 localstatedir
634 includedir
635 oldincludedir
636 docdir
637 infodir
638 htmldir
639 dvidir
640 pdfdir
641 psdir
642 libdir
643 localedir
644 mandir
645 DEFS
646 ECHO_C
647 ECHO_N
648 ECHO_T
649 LIBS
650 build_alias
651 host_alias
652 target_alias
653 build
654 build_cpu
655 build_vendor
656 build_os
657 host
658 host_cpu
659 host_vendor
660 host_os
662 CFLAGS
663 LDFLAGS
664 CPPFLAGS
665 ac_ct_CC
666 EXEEXT
667 OBJEXT
670 MMAKE
671 aros_host_ld
672 aros_host_aclocal
673 aros_host_autoconf
674 aros_host_autoheader
675 aros_host_automake
676 aros_host_ar
677 aros_host_ranlib
678 aros_host_strip
682 ECHO
683 MKDIR
684 TOUCH
685 SORT
686 UNIQ
689 BISON
690 FLEX
691 PNGTOPNM
692 PPMTOILBM
694 CHMOD
695 PYTHON
696 PYTHON_VERSION
697 PYTHON_PREFIX
698 PYTHON_EXEC_PREFIX
699 PYTHON_PLATFORM
700 pythondir
701 pkgpythondir
702 pyexecdir
703 pkgpyexecdir
706 TEST
708 GREP
709 EGREP
710 LIBOBJS
711 DISTCC
712 CCACHE
713 aros_kernel_cc
714 aros_target_as_ln
715 aros_kernel_ld
716 aros_target_ar_ln
717 aros_target_nm_ln
718 aros_target_objcopy_ln
719 aros_target_objdump_ln
720 aros_target_ranlib_ln
721 aros_target_strip_ln
722 aros_target_nostdinc_cflags
723 aros_target_nostartup_ldflags
724 aros_target_nix_ldflags
725 aros_target_detach_ldflags
726 aros_target_nostdlib_ldflags
727 XMKMF
728 SDL_CONFIG
729 SDL_CFLAGS
730 SDL_LIBS
731 aros_arch
732 aros_cpu
733 aros_flavour
734 aros_flavour_uc
735 TOPDIR
736 aros_cc_pre
737 aros_host_arch
738 aros_host_cpu
739 aros_host_cc
740 aros_host_make
741 aros_host_cflags
742 aros_host_ldflags
743 aros_host_debug
744 aros_host_mkdep
745 aros_host_mkargs
746 aros_host_exe_suffix
747 aros_host_lib_suffix
748 aros_tools_dir
749 aros_target_arch
750 aros_target_cpu
751 aros_target_variant
752 aros_target_suffix
753 aros_target_incl
754 aros_target_ar
755 aros_target_ranlib
756 aros_kernel_nm
757 aros_target_cc
758 aros_target_as
759 aros_target_ld
760 aros_target_cc_includes
761 aros_target_cc_options
762 aros_target_cc_path
763 aros_target_objdump
764 aros_target_objcopy
765 aros_target_strip
766 aros_target_nm
767 aros_shared_default
768 aros_shared_ld
769 aros_object_format
770 aros_compiler_libs
771 aros_config_cflags
772 aros_config_aflags
773 aros_config_ldflags
774 aros_shared_cflags
775 aros_shared_aflags
776 aros_shared_ldflags
777 aros_kernel_ldflags
778 aros_debug_cflags
779 aros_debug_aflags
780 aros_debug_ldflags
781 aros_target_genmap
782 aros_target_strip_flags
783 aros_gui_libdir
784 aros_gui_ldflags
785 aros_gui_libflags
786 aros_gui_incdir
787 aros_gui_ccflags
788 x11_hidd_target
789 sdl_hidd_target
790 aros_default_wbwidth
791 aros_default_wbheight
792 aros_default_wbdepth
793 DO_XSHM_SUPPORT
794 DO_VIDMODE_SUPPORT
795 aros_bochs_hack
796 aros_serial_debug
797 aros_palm_debug_hack
798 aros_nesting_supervisor
799 ENABLE_DBUS
800 DBUS_CFLAGS
801 DBUS_LIBFLAGS
802 KERNEL_DBUS_KOBJ
803 KERNEL_DBUS_INCLUDES
804 aros_debug
805 aros_mungwall_debug
806 aros_stack_debug
807 aros_modules_debug
808 ignore_undefined_symbols
809 gcc_target_cpu
810 LTLIBOBJS'
811 ac_subst_files=''
812 ac_precious_vars='build_alias
813 host_alias
814 target_alias
816 CFLAGS
817 LDFLAGS
818 LIBS
819 CPPFLAGS
821 XMKMF'
824 # Initialize some variables set by options.
825 ac_init_help=
826 ac_init_version=false
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
870 ac_prev=
871 ac_dashdash=
872 for ac_option
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
881 case $ac_option in
882 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *) ac_optarg=yes ;;
884 esac
886 # Accept the important Cygnus configure options, so we can diagnose typos.
888 case $ac_dashdash$ac_option in
890 ac_dashdash=yes ;;
892 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 ac_prev=bindir ;;
894 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 bindir=$ac_optarg ;;
897 -build | --build | --buil | --bui | --bu)
898 ac_prev=build_alias ;;
899 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
900 build_alias=$ac_optarg ;;
902 -cache-file | --cache-file | --cache-fil | --cache-fi \
903 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
904 ac_prev=cache_file ;;
905 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
906 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
907 cache_file=$ac_optarg ;;
909 --config-cache | -C)
910 cache_file=config.cache ;;
912 -datadir | --datadir | --datadi | --datad)
913 ac_prev=datadir ;;
914 -datadir=* | --datadir=* | --datadi=* | --datad=*)
915 datadir=$ac_optarg ;;
917 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
918 | --dataroo | --dataro | --datar)
919 ac_prev=datarootdir ;;
920 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
921 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
922 datarootdir=$ac_optarg ;;
924 -disable-* | --disable-*)
925 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
926 # Reject names that are not valid shell variable names.
927 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
928 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
929 { (exit 1); exit 1; }; }
930 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
931 eval enable_$ac_feature=no ;;
933 -docdir | --docdir | --docdi | --doc | --do)
934 ac_prev=docdir ;;
935 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 docdir=$ac_optarg ;;
938 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 ac_prev=dvidir ;;
940 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 dvidir=$ac_optarg ;;
943 -enable-* | --enable-*)
944 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
945 # Reject names that are not valid shell variable names.
946 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
947 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
948 { (exit 1); exit 1; }; }
949 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
950 eval enable_$ac_feature=\$ac_optarg ;;
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
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 program_transform_name=$ac_optarg ;;
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1140 -with-* | --with-*)
1141 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1144 { echo "$as_me: error: invalid package name: $ac_package" >&2
1145 { (exit 1); exit 1; }; }
1146 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1147 eval with_$ac_package=\$ac_optarg ;;
1149 -without-* | --without-*)
1150 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153 { echo "$as_me: error: invalid package name: $ac_package" >&2
1154 { (exit 1); exit 1; }; }
1155 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1156 eval with_$ac_package=no ;;
1158 --x)
1159 # Obsolete; use --with-x.
1160 with_x=yes ;;
1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1163 | --x-incl | --x-inc | --x-in | --x-i)
1164 ac_prev=x_includes ;;
1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1167 x_includes=$ac_optarg ;;
1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1171 ac_prev=x_libraries ;;
1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1174 x_libraries=$ac_optarg ;;
1176 -*) { echo "$as_me: error: unrecognized option: $ac_option
1177 Try \`$0 --help' for more information." >&2
1178 { (exit 1); exit 1; }; }
1181 *=*)
1182 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1183 # Reject names that are not valid shell variable names.
1184 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1185 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1186 { (exit 1); exit 1; }; }
1187 eval $ac_envvar=\$ac_optarg
1188 export $ac_envvar ;;
1191 # FIXME: should be removed in autoconf 3.0.
1192 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1194 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1195 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 esac
1199 done
1201 if test -n "$ac_prev"; then
1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1203 { echo "$as_me: error: missing argument to $ac_option" >&2
1204 { (exit 1); exit 1; }; }
1207 # Be sure to have absolute directory names.
1208 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1209 datadir sysconfdir sharedstatedir localstatedir includedir \
1210 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1211 libdir localedir mandir
1213 eval ac_val=\$$ac_var
1214 case $ac_val in
1215 [\\/$]* | ?:[\\/]* ) continue;;
1216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 esac
1218 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1219 { (exit 1); exit 1; }; }
1220 done
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1225 build=$build_alias
1226 host=$host_alias
1227 target=$target_alias
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x; then
1231 if test "x$build_alias" = x; then
1232 cross_compiling=maybe
1233 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used." >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1236 cross_compiling=yes
1240 ac_tool_prefix=
1241 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243 test "$silent" = yes && exec 6>/dev/null
1246 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di=`ls -di .` &&
1248 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 { echo "$as_me: error: Working directory cannot be determined" >&2
1250 { (exit 1); exit 1; }; }
1251 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1252 { echo "$as_me: error: pwd does not report name of working directory" >&2
1253 { (exit 1); exit 1; }; }
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$0" ||
1261 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$0" : 'X\(//\)[^/]' \| \
1263 X"$0" : 'X\(//\)$' \| \
1264 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1265 echo X"$0" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1274 /^X\(\/\/\)$/{
1275 s//\1/
1278 /^X\(\/\).*/{
1279 s//\1/
1282 s/.*/./; q'`
1283 srcdir=$ac_confdir
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 srcdir=..
1287 else
1288 ac_srcdir_defaulted=no
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1293 { (exit 1); exit 1; }; }
1295 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 ac_abs_confdir=`(
1297 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1298 { (exit 1); exit 1; }; }
1299 pwd)`
1300 # When building in place, set srcdir=.
1301 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 srcdir=.
1304 # Remove unnecessary trailing slashes from srcdir.
1305 # Double slashes in file names in object file debugging info
1306 # mess up M-x gdb in Emacs.
1307 case $srcdir in
1308 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 esac
1310 for ac_var in $ac_precious_vars; do
1311 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_env_${ac_var}_value=\$${ac_var}
1313 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 done
1318 # Report the --help message.
1320 if test "$ac_init_help" = "long"; then
1321 # Omit some internal or obsolete options to make the list less imposing.
1322 # This message is too long to be a string in the A/UX 3.1 sh.
1323 cat <<_ACEOF
1324 \`configure' configures this package to adapt to many kinds of systems.
1326 Usage: $0 [OPTION]... [VAR=VALUE]...
1328 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1329 VAR=VALUE. See below for descriptions of some of the useful variables.
1331 Defaults for the options are specified in brackets.
1333 Configuration:
1334 -h, --help display this help and exit
1335 --help=short display options specific to this package
1336 --help=recursive display the short help of all the included packages
1337 -V, --version display version information and exit
1338 -q, --quiet, --silent do not print \`checking...' messages
1339 --cache-file=FILE cache test results in FILE [disabled]
1340 -C, --config-cache alias for \`--cache-file=config.cache'
1341 -n, --no-create do not create output files
1342 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1344 Installation directories:
1345 --prefix=PREFIX install architecture-independent files in PREFIX
1346 [$ac_default_prefix]
1347 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 [PREFIX]
1350 By default, \`make install' will install all the files in
1351 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1352 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1353 for instance \`--prefix=\$HOME'.
1355 For better control, use the options below.
1357 Fine tuning of the installation directories:
1358 --bindir=DIR user executables [EPREFIX/bin]
1359 --sbindir=DIR system admin executables [EPREFIX/sbin]
1360 --libexecdir=DIR program executables [EPREFIX/libexec]
1361 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1362 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1363 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1364 --libdir=DIR object code libraries [EPREFIX/lib]
1365 --includedir=DIR C header files [PREFIX/include]
1366 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1367 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1368 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1369 --infodir=DIR info documentation [DATAROOTDIR/info]
1370 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1371 --mandir=DIR man documentation [DATAROOTDIR/man]
1372 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1373 --htmldir=DIR html documentation [DOCDIR]
1374 --dvidir=DIR dvi documentation [DOCDIR]
1375 --pdfdir=DIR pdf documentation [DOCDIR]
1376 --psdir=DIR ps documentation [DOCDIR]
1377 _ACEOF
1379 cat <<\_ACEOF
1381 X features:
1382 --x-includes=DIR X include files are in DIR
1383 --x-libraries=DIR X library files are in DIR
1385 System types:
1386 --build=BUILD configure for building on BUILD [guessed]
1387 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1388 _ACEOF
1391 if test -n "$ac_init_help"; then
1393 cat <<\_ACEOF
1395 Optional Features:
1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398 --enable-build-type=TYPE
1399 Select the build type. Available types are:
1400 personal, nightly, snapshot, milestone, release. Do
1401 NOT use this option unless you know what you are
1402 doing! (default=personal)
1403 --enable-debug=list Enable different types of debug. Commas or
1404 whitespaces can be used to separate the items in the
1405 list. Available types of debug are: all, none,
1406 messages, stack, mungwall, modules, symbols. If no
1407 list is provided then "all" is assumed.
1408 (default=none)
1409 --enable-distcc Use distcc as a front end to the compiler
1410 (default=no).
1411 --enable-ccache Use ccache as a front end to the compiler
1412 (default=no).
1413 --enable-target-variant=NAME
1414 Enable a specific target variant(default=none)
1415 --enable-includes=dir Alternative system include directory
1416 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1417 (default=no)
1418 --enable-palm-debug-hack
1419 Enable palm debug output hack in palm native
1420 (default=no)
1421 --enable-nesting-supervisor
1422 Enable nesting supervisor support in unix
1423 (default=no)
1424 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1425 --enable-x11-shm use X11 shared memory (default=auto)
1426 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1427 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1428 --disable-sdltest Do not try to compile and run a test SDL program
1429 --enable-dbus Enable DBUS support via dbus.library (default=no)
1431 Optional Packages:
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434 --with-optimization=FLAGS
1435 Use optimization flags FLAGS (default=-O2).
1436 --with-resolution=XRESxYRESxDEPTH
1437 Default resolution of the initial WorkbenchScreen
1438 --with-serial-debug Enable serial debug output in native (default=no)
1439 --with-x use the X Window System
1440 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1441 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1443 Some influential environment variables:
1444 CC C compiler command
1445 CFLAGS C compiler flags
1446 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1447 nonstandard directory <lib dir>
1448 LIBS libraries to pass to the linker, e.g. -l<library>
1449 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1450 you have headers in a nonstandard directory <include dir>
1451 CPP C preprocessor
1452 XMKMF Path to xmkmf, Makefile generator for X Window System
1454 Use these variables to override the choices made by `configure' or to help
1455 it to find libraries and programs with nonstandard names/locations.
1457 _ACEOF
1458 ac_status=$?
1461 if test "$ac_init_help" = "recursive"; then
1462 # If there are subdirs, report their specific --help.
1463 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1464 test -d "$ac_dir" || continue
1465 ac_builddir=.
1467 case "$ac_dir" in
1468 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1470 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1471 # A ".." for each directory in $ac_dir_suffix.
1472 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1473 case $ac_top_builddir_sub in
1474 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1475 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1476 esac ;;
1477 esac
1478 ac_abs_top_builddir=$ac_pwd
1479 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1480 # for backward compatibility:
1481 ac_top_builddir=$ac_top_build_prefix
1483 case $srcdir in
1484 .) # We are building in place.
1485 ac_srcdir=.
1486 ac_top_srcdir=$ac_top_builddir_sub
1487 ac_abs_top_srcdir=$ac_pwd ;;
1488 [\\/]* | ?:[\\/]* ) # Absolute name.
1489 ac_srcdir=$srcdir$ac_dir_suffix;
1490 ac_top_srcdir=$srcdir
1491 ac_abs_top_srcdir=$srcdir ;;
1492 *) # Relative name.
1493 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1494 ac_top_srcdir=$ac_top_build_prefix$srcdir
1495 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1496 esac
1497 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1499 cd "$ac_dir" || { ac_status=$?; continue; }
1500 # Check for guested configure.
1501 if test -f "$ac_srcdir/configure.gnu"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1504 elif test -f "$ac_srcdir/configure"; then
1505 echo &&
1506 $SHELL "$ac_srcdir/configure" --help=recursive
1507 else
1508 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 fi || ac_status=$?
1510 cd "$ac_pwd" || { ac_status=$?; break; }
1511 done
1514 test -n "$ac_init_help" && exit $ac_status
1515 if $ac_init_version; then
1516 cat <<\_ACEOF
1517 configure
1518 generated by GNU Autoconf 2.61
1520 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1521 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1522 This configure script is free software; the Free Software Foundation
1523 gives unlimited permission to copy, distribute and modify it.
1524 _ACEOF
1525 exit
1527 cat >config.log <<_ACEOF
1528 This file contains any messages produced by compilers while
1529 running configure, to aid debugging if configure makes a mistake.
1531 It was created by $as_me, which was
1532 generated by GNU Autoconf 2.61. Invocation command line was
1534 $ $0 $@
1536 _ACEOF
1537 exec 5>>config.log
1539 cat <<_ASUNAME
1540 ## --------- ##
1541 ## Platform. ##
1542 ## --------- ##
1544 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1545 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1546 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1547 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1548 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1550 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1551 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1553 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1554 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1555 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1556 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1557 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1558 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1559 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1561 _ASUNAME
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1566 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=.
1568 echo "PATH: $as_dir"
1569 done
1570 IFS=$as_save_IFS
1572 } >&5
1574 cat >&5 <<_ACEOF
1577 ## ----------- ##
1578 ## Core tests. ##
1579 ## ----------- ##
1581 _ACEOF
1584 # Keep a trace of the command line.
1585 # Strip out --no-create and --no-recursion so they do not pile up.
1586 # Strip out --silent because we don't want to record it for future runs.
1587 # Also quote any args containing shell meta-characters.
1588 # Make two passes to allow for proper duplicate-argument suppression.
1589 ac_configure_args=
1590 ac_configure_args0=
1591 ac_configure_args1=
1592 ac_must_keep_next=false
1593 for ac_pass in 1 2
1595 for ac_arg
1597 case $ac_arg in
1598 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1599 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1600 | -silent | --silent | --silen | --sile | --sil)
1601 continue ;;
1602 *\'*)
1603 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1604 esac
1605 case $ac_pass in
1606 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1608 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1609 if test $ac_must_keep_next = true; then
1610 ac_must_keep_next=false # Got value, back to normal.
1611 else
1612 case $ac_arg in
1613 *=* | --config-cache | -C | -disable-* | --disable-* \
1614 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1615 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1616 | -with-* | --with-* | -without-* | --without-* | --x)
1617 case "$ac_configure_args0 " in
1618 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1619 esac
1621 -* ) ac_must_keep_next=true ;;
1622 esac
1624 ac_configure_args="$ac_configure_args '$ac_arg'"
1626 esac
1627 done
1628 done
1629 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1630 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1632 # When interrupted or exit'd, cleanup temporary files, and complete
1633 # config.log. We remove comments because anyway the quotes in there
1634 # would cause problems or look ugly.
1635 # WARNING: Use '\'' to represent an apostrophe within the trap.
1636 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1637 trap 'exit_status=$?
1638 # Save into config.log some information that might help in debugging.
1640 echo
1642 cat <<\_ASBOX
1643 ## ---------------- ##
1644 ## Cache variables. ##
1645 ## ---------------- ##
1646 _ASBOX
1647 echo
1648 # The following way of writing the cache mishandles newlines in values,
1650 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1651 eval ac_val=\$$ac_var
1652 case $ac_val in #(
1653 *${as_nl}*)
1654 case $ac_var in #(
1655 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1656 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1657 esac
1658 case $ac_var in #(
1659 _ | IFS | as_nl) ;; #(
1660 *) $as_unset $ac_var ;;
1661 esac ;;
1662 esac
1663 done
1664 (set) 2>&1 |
1665 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1666 *${as_nl}ac_space=\ *)
1667 sed -n \
1668 "s/'\''/'\''\\\\'\'''\''/g;
1669 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1670 ;; #(
1672 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1674 esac |
1675 sort
1677 echo
1679 cat <<\_ASBOX
1680 ## ----------------- ##
1681 ## Output variables. ##
1682 ## ----------------- ##
1683 _ASBOX
1684 echo
1685 for ac_var in $ac_subst_vars
1687 eval ac_val=\$$ac_var
1688 case $ac_val in
1689 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1690 esac
1691 echo "$ac_var='\''$ac_val'\''"
1692 done | sort
1693 echo
1695 if test -n "$ac_subst_files"; then
1696 cat <<\_ASBOX
1697 ## ------------------- ##
1698 ## File substitutions. ##
1699 ## ------------------- ##
1700 _ASBOX
1701 echo
1702 for ac_var in $ac_subst_files
1704 eval ac_val=\$$ac_var
1705 case $ac_val in
1706 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707 esac
1708 echo "$ac_var='\''$ac_val'\''"
1709 done | sort
1710 echo
1713 if test -s confdefs.h; then
1714 cat <<\_ASBOX
1715 ## ----------- ##
1716 ## confdefs.h. ##
1717 ## ----------- ##
1718 _ASBOX
1719 echo
1720 cat confdefs.h
1721 echo
1723 test "$ac_signal" != 0 &&
1724 echo "$as_me: caught signal $ac_signal"
1725 echo "$as_me: exit $exit_status"
1726 } >&5
1727 rm -f core *.core core.conftest.* &&
1728 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1729 exit $exit_status
1731 for ac_signal in 1 2 13 15; do
1732 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1733 done
1734 ac_signal=0
1736 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1737 rm -f -r conftest* confdefs.h
1739 # Predefined preprocessor variables.
1741 cat >>confdefs.h <<_ACEOF
1742 #define PACKAGE_NAME "$PACKAGE_NAME"
1743 _ACEOF
1746 cat >>confdefs.h <<_ACEOF
1747 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1748 _ACEOF
1751 cat >>confdefs.h <<_ACEOF
1752 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1753 _ACEOF
1756 cat >>confdefs.h <<_ACEOF
1757 #define PACKAGE_STRING "$PACKAGE_STRING"
1758 _ACEOF
1761 cat >>confdefs.h <<_ACEOF
1762 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1763 _ACEOF
1766 # Let the site file select an alternate cache file if it wants to.
1767 # Prefer explicitly selected file to automatically selected ones.
1768 if test -n "$CONFIG_SITE"; then
1769 set x "$CONFIG_SITE"
1770 elif test "x$prefix" != xNONE; then
1771 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1772 else
1773 set x "$ac_default_prefix/share/config.site" \
1774 "$ac_default_prefix/etc/config.site"
1776 shift
1777 for ac_site_file
1779 if test -r "$ac_site_file"; then
1780 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1781 echo "$as_me: loading site script $ac_site_file" >&6;}
1782 sed 's/^/| /' "$ac_site_file" >&5
1783 . "$ac_site_file"
1785 done
1787 if test -r "$cache_file"; then
1788 # Some versions of bash will fail to source /dev/null (special
1789 # files actually), so we avoid doing that.
1790 if test -f "$cache_file"; then
1791 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1792 echo "$as_me: loading cache $cache_file" >&6;}
1793 case $cache_file in
1794 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1795 *) . "./$cache_file";;
1796 esac
1798 else
1799 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1800 echo "$as_me: creating cache $cache_file" >&6;}
1801 >$cache_file
1804 # Check that the precious variables saved in the cache have kept the same
1805 # value.
1806 ac_cache_corrupted=false
1807 for ac_var in $ac_precious_vars; do
1808 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1809 eval ac_new_set=\$ac_env_${ac_var}_set
1810 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1811 eval ac_new_val=\$ac_env_${ac_var}_value
1812 case $ac_old_set,$ac_new_set in
1813 set,)
1814 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1815 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1816 ac_cache_corrupted=: ;;
1817 ,set)
1818 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1819 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1820 ac_cache_corrupted=: ;;
1821 ,);;
1823 if test "x$ac_old_val" != "x$ac_new_val"; then
1824 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1825 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1826 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1827 echo "$as_me: former value: $ac_old_val" >&2;}
1828 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1829 echo "$as_me: current value: $ac_new_val" >&2;}
1830 ac_cache_corrupted=:
1831 fi;;
1832 esac
1833 # Pass precious variables to config.status.
1834 if test "$ac_new_set" = set; then
1835 case $ac_new_val in
1836 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1837 *) ac_arg=$ac_var=$ac_new_val ;;
1838 esac
1839 case " $ac_configure_args " in
1840 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1841 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1842 esac
1844 done
1845 if $ac_cache_corrupted; then
1846 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1847 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1848 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1849 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1850 { (exit 1); exit 1; }; }
1869 ac_ext=c
1870 ac_cpp='$CPP $CPPFLAGS'
1871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1877 ac_aux_dir=
1878 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1879 if test -f "$ac_dir/install-sh"; then
1880 ac_aux_dir=$ac_dir
1881 ac_install_sh="$ac_aux_dir/install-sh -c"
1882 break
1883 elif test -f "$ac_dir/install.sh"; then
1884 ac_aux_dir=$ac_dir
1885 ac_install_sh="$ac_aux_dir/install.sh -c"
1886 break
1887 elif test -f "$ac_dir/shtool"; then
1888 ac_aux_dir=$ac_dir
1889 ac_install_sh="$ac_aux_dir/shtool install -c"
1890 break
1892 done
1893 if test -z "$ac_aux_dir"; then
1894 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1895 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1896 { (exit 1); exit 1; }; }
1899 # These three variables are undocumented and unsupported,
1900 # and are intended to be withdrawn in a future Autoconf release.
1901 # They can cause serious problems if a builder's source tree is in a directory
1902 # whose full name contains unusual characters.
1903 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1904 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1905 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1909 # Check what host we are running on.
1910 # If a target is not suggested, we use this one.
1911 # Note that what we call a target, Autoconf calls a host.
1912 # Make sure we can run config.sub.
1913 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1914 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1915 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1916 { (exit 1); exit 1; }; }
1918 { echo "$as_me:$LINENO: checking build system type" >&5
1919 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1920 if test "${ac_cv_build+set}" = set; then
1921 echo $ECHO_N "(cached) $ECHO_C" >&6
1922 else
1923 ac_build_alias=$build_alias
1924 test "x$ac_build_alias" = x &&
1925 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1926 test "x$ac_build_alias" = x &&
1927 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1928 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1929 { (exit 1); exit 1; }; }
1930 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1931 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1932 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1933 { (exit 1); exit 1; }; }
1936 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1937 echo "${ECHO_T}$ac_cv_build" >&6; }
1938 case $ac_cv_build in
1939 *-*-*) ;;
1940 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1941 echo "$as_me: error: invalid value of canonical build" >&2;}
1942 { (exit 1); exit 1; }; };;
1943 esac
1944 build=$ac_cv_build
1945 ac_save_IFS=$IFS; IFS='-'
1946 set x $ac_cv_build
1947 shift
1948 build_cpu=$1
1949 build_vendor=$2
1950 shift; shift
1951 # Remember, the first character of IFS is used to create $*,
1952 # except with old shells:
1953 build_os=$*
1954 IFS=$ac_save_IFS
1955 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1958 { echo "$as_me:$LINENO: checking host system type" >&5
1959 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1960 if test "${ac_cv_host+set}" = set; then
1961 echo $ECHO_N "(cached) $ECHO_C" >&6
1962 else
1963 if test "x$host_alias" = x; then
1964 ac_cv_host=$ac_cv_build
1965 else
1966 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1967 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1968 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1969 { (exit 1); exit 1; }; }
1973 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1974 echo "${ECHO_T}$ac_cv_host" >&6; }
1975 case $ac_cv_host in
1976 *-*-*) ;;
1977 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1978 echo "$as_me: error: invalid value of canonical host" >&2;}
1979 { (exit 1); exit 1; }; };;
1980 esac
1981 host=$ac_cv_host
1982 ac_save_IFS=$IFS; IFS='-'
1983 set x $ac_cv_host
1984 shift
1985 host_cpu=$1
1986 host_vendor=$2
1987 shift; shift
1988 # Remember, the first character of IFS is used to create $*,
1989 # except with old shells:
1990 host_os=$*
1991 IFS=$ac_save_IFS
1992 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1996 # The AROS target is slightly different to the normal GNU style
1997 # format. We don't have the middle part, and we reverse the order
1998 # of the $(CPU) and $(OS) bits.
2000 # Don't strip the version of the target yet, it might be
2001 # useful on some systems.
2003 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2004 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2006 if test "$target" = "NONE" ; then
2007 target=$host_os-$host_cpu
2008 cross_compile=no
2009 else
2010 if test "$target" = "" ; then
2011 target=$host_os-$host_cpu
2012 cross_compile=no
2013 else
2014 cross_compile=yes
2017 { echo "$as_me:$LINENO: result: $target" >&5
2018 echo "${ECHO_T}$target" >&6; }
2020 #don't know where else to put this...
2021 TOPDIR=$PWD
2023 # Parse the target field into something useful.
2025 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2026 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2029 aros_default_wbwidth=800
2030 aros_default_wbheight=600
2031 aros_default_wbdepth=4
2034 # The first step is to find the host binaries.
2035 # Check for a compiler.
2036 ac_ext=c
2037 ac_cpp='$CPP $CPPFLAGS'
2038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2041 if test -n "$ac_tool_prefix"; then
2042 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2043 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2046 if test "${ac_cv_prog_CC+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049 if test -n "$CC"; then
2050 ac_cv_prog_CC="$CC" # Let the user override the test.
2051 else
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053 for as_dir in $PATH
2055 IFS=$as_save_IFS
2056 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2059 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 break 2
2063 done
2064 done
2065 IFS=$as_save_IFS
2069 CC=$ac_cv_prog_CC
2070 if test -n "$CC"; then
2071 { echo "$as_me:$LINENO: result: $CC" >&5
2072 echo "${ECHO_T}$CC" >&6; }
2073 else
2074 { echo "$as_me:$LINENO: result: no" >&5
2075 echo "${ECHO_T}no" >&6; }
2080 if test -z "$ac_cv_prog_CC"; then
2081 ac_ct_CC=$CC
2082 # Extract the first word of "gcc", so it can be a program name with args.
2083 set dummy gcc; ac_word=$2
2084 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2085 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2086 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2087 echo $ECHO_N "(cached) $ECHO_C" >&6
2088 else
2089 if test -n "$ac_ct_CC"; then
2090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2091 else
2092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2093 for as_dir in $PATH
2095 IFS=$as_save_IFS
2096 test -z "$as_dir" && as_dir=.
2097 for ac_exec_ext in '' $ac_executable_extensions; do
2098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2099 ac_cv_prog_ac_ct_CC="gcc"
2100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2101 break 2
2103 done
2104 done
2105 IFS=$as_save_IFS
2109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2110 if test -n "$ac_ct_CC"; then
2111 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2112 echo "${ECHO_T}$ac_ct_CC" >&6; }
2113 else
2114 { echo "$as_me:$LINENO: result: no" >&5
2115 echo "${ECHO_T}no" >&6; }
2118 if test "x$ac_ct_CC" = x; then
2119 CC=""
2120 else
2121 case $cross_compiling:$ac_tool_warned in
2122 yes:)
2123 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2124 whose name does not start with the host triplet. If you think this
2125 configuration is useful to you, please write to autoconf@gnu.org." >&5
2126 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2127 whose name does not start with the host triplet. If you think this
2128 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2129 ac_tool_warned=yes ;;
2130 esac
2131 CC=$ac_ct_CC
2133 else
2134 CC="$ac_cv_prog_CC"
2137 if test -z "$CC"; then
2138 if test -n "$ac_tool_prefix"; then
2139 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2140 set dummy ${ac_tool_prefix}cc; ac_word=$2
2141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2143 if test "${ac_cv_prog_CC+set}" = set; then
2144 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 else
2146 if test -n "$CC"; then
2147 ac_cv_prog_CC="$CC" # Let the user override the test.
2148 else
2149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2150 for as_dir in $PATH
2152 IFS=$as_save_IFS
2153 test -z "$as_dir" && as_dir=.
2154 for ac_exec_ext in '' $ac_executable_extensions; do
2155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2156 ac_cv_prog_CC="${ac_tool_prefix}cc"
2157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2158 break 2
2160 done
2161 done
2162 IFS=$as_save_IFS
2166 CC=$ac_cv_prog_CC
2167 if test -n "$CC"; then
2168 { echo "$as_me:$LINENO: result: $CC" >&5
2169 echo "${ECHO_T}$CC" >&6; }
2170 else
2171 { echo "$as_me:$LINENO: result: no" >&5
2172 echo "${ECHO_T}no" >&6; }
2178 if test -z "$CC"; then
2179 # Extract the first word of "cc", so it can be a program name with args.
2180 set dummy cc; ac_word=$2
2181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2183 if test "${ac_cv_prog_CC+set}" = set; then
2184 echo $ECHO_N "(cached) $ECHO_C" >&6
2185 else
2186 if test -n "$CC"; then
2187 ac_cv_prog_CC="$CC" # Let the user override the test.
2188 else
2189 ac_prog_rejected=no
2190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2191 for as_dir in $PATH
2193 IFS=$as_save_IFS
2194 test -z "$as_dir" && as_dir=.
2195 for ac_exec_ext in '' $ac_executable_extensions; do
2196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2197 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2198 ac_prog_rejected=yes
2199 continue
2201 ac_cv_prog_CC="cc"
2202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2203 break 2
2205 done
2206 done
2207 IFS=$as_save_IFS
2209 if test $ac_prog_rejected = yes; then
2210 # We found a bogon in the path, so make sure we never use it.
2211 set dummy $ac_cv_prog_CC
2212 shift
2213 if test $# != 0; then
2214 # We chose a different compiler from the bogus one.
2215 # However, it has the same basename, so the bogon will be chosen
2216 # first if we set CC to just the basename; use the full file name.
2217 shift
2218 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2223 CC=$ac_cv_prog_CC
2224 if test -n "$CC"; then
2225 { echo "$as_me:$LINENO: result: $CC" >&5
2226 echo "${ECHO_T}$CC" >&6; }
2227 else
2228 { echo "$as_me:$LINENO: result: no" >&5
2229 echo "${ECHO_T}no" >&6; }
2234 if test -z "$CC"; then
2235 if test -n "$ac_tool_prefix"; then
2236 for ac_prog in cl.exe
2238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2242 if test "${ac_cv_prog_CC+set}" = set; then
2243 echo $ECHO_N "(cached) $ECHO_C" >&6
2244 else
2245 if test -n "$CC"; then
2246 ac_cv_prog_CC="$CC" # Let the user override the test.
2247 else
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2249 for as_dir in $PATH
2251 IFS=$as_save_IFS
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2257 break 2
2259 done
2260 done
2261 IFS=$as_save_IFS
2265 CC=$ac_cv_prog_CC
2266 if test -n "$CC"; then
2267 { echo "$as_me:$LINENO: result: $CC" >&5
2268 echo "${ECHO_T}$CC" >&6; }
2269 else
2270 { echo "$as_me:$LINENO: result: no" >&5
2271 echo "${ECHO_T}no" >&6; }
2275 test -n "$CC" && break
2276 done
2278 if test -z "$CC"; then
2279 ac_ct_CC=$CC
2280 for ac_prog in cl.exe
2282 # Extract the first word of "$ac_prog", so it can be a program name with args.
2283 set dummy $ac_prog; ac_word=$2
2284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2286 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289 if test -n "$ac_ct_CC"; then
2290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2291 else
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 for as_dir in $PATH
2295 IFS=$as_save_IFS
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299 ac_cv_prog_ac_ct_CC="$ac_prog"
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 break 2
2303 done
2304 done
2305 IFS=$as_save_IFS
2309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2310 if test -n "$ac_ct_CC"; then
2311 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2312 echo "${ECHO_T}$ac_ct_CC" >&6; }
2313 else
2314 { echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6; }
2319 test -n "$ac_ct_CC" && break
2320 done
2322 if test "x$ac_ct_CC" = x; then
2323 CC=""
2324 else
2325 case $cross_compiling:$ac_tool_warned in
2326 yes:)
2327 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2328 whose name does not start with the host triplet. If you think this
2329 configuration is useful to you, please write to autoconf@gnu.org." >&5
2330 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2331 whose name does not start with the host triplet. If you think this
2332 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2333 ac_tool_warned=yes ;;
2334 esac
2335 CC=$ac_ct_CC
2342 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: no acceptable C compiler found in \$PATH
2345 See \`config.log' for more details." >&2;}
2346 { (exit 1); exit 1; }; }
2348 # Provide some information about the compiler.
2349 echo "$as_me:$LINENO: checking for C compiler version" >&5
2350 ac_compiler=`set X $ac_compile; echo $2`
2351 { (ac_try="$ac_compiler --version >&5"
2352 case "(($ac_try" in
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2355 esac
2356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2357 (eval "$ac_compiler --version >&5") 2>&5
2358 ac_status=$?
2359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2360 (exit $ac_status); }
2361 { (ac_try="$ac_compiler -v >&5"
2362 case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2365 esac
2366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2367 (eval "$ac_compiler -v >&5") 2>&5
2368 ac_status=$?
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }
2371 { (ac_try="$ac_compiler -V >&5"
2372 case "(($ac_try" in
2373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2374 *) ac_try_echo=$ac_try;;
2375 esac
2376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2377 (eval "$ac_compiler -V >&5") 2>&5
2378 ac_status=$?
2379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380 (exit $ac_status); }
2382 cat >conftest.$ac_ext <<_ACEOF
2383 /* confdefs.h. */
2384 _ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2390 main ()
2394 return 0;
2396 _ACEOF
2397 ac_clean_files_save=$ac_clean_files
2398 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2399 # Try to create an executable without -o first, disregard a.out.
2400 # It will help us diagnose broken compilers, and finding out an intuition
2401 # of exeext.
2402 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2403 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2404 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2406 # List of possible output files, starting from the most likely.
2407 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2408 # only as a last resort. b.out is created by i960 compilers.
2409 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2411 # The IRIX 6 linker writes into existing files which may not be
2412 # executable, retaining their permissions. Remove them first so a
2413 # subsequent execution test works.
2414 ac_rmfiles=
2415 for ac_file in $ac_files
2417 case $ac_file in
2418 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2419 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2420 esac
2421 done
2422 rm -f $ac_rmfiles
2424 if { (ac_try="$ac_link_default"
2425 case "(($ac_try" in
2426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2427 *) ac_try_echo=$ac_try;;
2428 esac
2429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2430 (eval "$ac_link_default") 2>&5
2431 ac_status=$?
2432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2433 (exit $ac_status); }; then
2434 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2435 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2436 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2437 # so that the user can short-circuit this test for compilers unknown to
2438 # Autoconf.
2439 for ac_file in $ac_files ''
2441 test -f "$ac_file" || continue
2442 case $ac_file in
2443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2445 [ab].out )
2446 # We found the default executable, but exeext='' is most
2447 # certainly right.
2448 break;;
2449 *.* )
2450 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2451 then :; else
2452 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2454 # We set ac_cv_exeext here because the later test for it is not
2455 # safe: cross compilers may not add the suffix if given an `-o'
2456 # argument, so we may need to know it at that point already.
2457 # Even if this section looks crufty: it has the advantage of
2458 # actually working.
2459 break;;
2461 break;;
2462 esac
2463 done
2464 test "$ac_cv_exeext" = no && ac_cv_exeext=
2466 else
2467 ac_file=''
2470 { echo "$as_me:$LINENO: result: $ac_file" >&5
2471 echo "${ECHO_T}$ac_file" >&6; }
2472 if test -z "$ac_file"; then
2473 echo "$as_me: failed program was:" >&5
2474 sed 's/^/| /' conftest.$ac_ext >&5
2476 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2477 See \`config.log' for more details." >&5
2478 echo "$as_me: error: C compiler cannot create executables
2479 See \`config.log' for more details." >&2;}
2480 { (exit 77); exit 77; }; }
2483 ac_exeext=$ac_cv_exeext
2485 # Check that the compiler produces executables we can run. If not, either
2486 # the compiler is broken, or we cross compile.
2487 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2488 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2489 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2490 # If not cross compiling, check that we can run a simple program.
2491 if test "$cross_compiling" != yes; then
2492 if { ac_try='./$ac_file'
2493 { (case "(($ac_try" in
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2496 esac
2497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2498 (eval "$ac_try") 2>&5
2499 ac_status=$?
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; }; then
2502 cross_compiling=no
2503 else
2504 if test "$cross_compiling" = maybe; then
2505 cross_compiling=yes
2506 else
2507 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2508 If you meant to cross compile, use \`--host'.
2509 See \`config.log' for more details." >&5
2510 echo "$as_me: error: cannot run C compiled programs.
2511 If you meant to cross compile, use \`--host'.
2512 See \`config.log' for more details." >&2;}
2513 { (exit 1); exit 1; }; }
2517 { echo "$as_me:$LINENO: result: yes" >&5
2518 echo "${ECHO_T}yes" >&6; }
2520 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2521 ac_clean_files=$ac_clean_files_save
2522 # Check that the compiler produces executables we can run. If not, either
2523 # the compiler is broken, or we cross compile.
2524 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2525 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2526 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2527 echo "${ECHO_T}$cross_compiling" >&6; }
2529 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2530 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2531 if { (ac_try="$ac_link"
2532 case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2535 esac
2536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_link") 2>&5
2538 ac_status=$?
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; then
2541 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2542 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2543 # work properly (i.e., refer to `conftest.exe'), while it won't with
2544 # `rm'.
2545 for ac_file in conftest.exe conftest conftest.*; do
2546 test -f "$ac_file" || continue
2547 case $ac_file in
2548 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2549 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2550 break;;
2551 * ) break;;
2552 esac
2553 done
2554 else
2555 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2556 See \`config.log' for more details." >&5
2557 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2558 See \`config.log' for more details." >&2;}
2559 { (exit 1); exit 1; }; }
2562 rm -f conftest$ac_cv_exeext
2563 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2564 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2566 rm -f conftest.$ac_ext
2567 EXEEXT=$ac_cv_exeext
2568 ac_exeext=$EXEEXT
2569 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2570 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2571 if test "${ac_cv_objext+set}" = set; then
2572 echo $ECHO_N "(cached) $ECHO_C" >&6
2573 else
2574 cat >conftest.$ac_ext <<_ACEOF
2575 /* confdefs.h. */
2576 _ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2582 main ()
2586 return 0;
2588 _ACEOF
2589 rm -f conftest.o conftest.obj
2590 if { (ac_try="$ac_compile"
2591 case "(($ac_try" in
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2594 esac
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_compile") 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; then
2600 for ac_file in conftest.o conftest.obj conftest.*; do
2601 test -f "$ac_file" || continue;
2602 case $ac_file in
2603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2604 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2605 break;;
2606 esac
2607 done
2608 else
2609 echo "$as_me: failed program was:" >&5
2610 sed 's/^/| /' conftest.$ac_ext >&5
2612 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2613 See \`config.log' for more details." >&5
2614 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2615 See \`config.log' for more details." >&2;}
2616 { (exit 1); exit 1; }; }
2619 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2621 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2622 echo "${ECHO_T}$ac_cv_objext" >&6; }
2623 OBJEXT=$ac_cv_objext
2624 ac_objext=$OBJEXT
2625 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2626 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2627 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2628 echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630 cat >conftest.$ac_ext <<_ACEOF
2631 /* confdefs.h. */
2632 _ACEOF
2633 cat confdefs.h >>conftest.$ac_ext
2634 cat >>conftest.$ac_ext <<_ACEOF
2635 /* end confdefs.h. */
2638 main ()
2640 #ifndef __GNUC__
2641 choke me
2642 #endif
2645 return 0;
2647 _ACEOF
2648 rm -f conftest.$ac_objext
2649 if { (ac_try="$ac_compile"
2650 case "(($ac_try" in
2651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2652 *) ac_try_echo=$ac_try;;
2653 esac
2654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2655 (eval "$ac_compile") 2>conftest.er1
2656 ac_status=$?
2657 grep -v '^ *+' conftest.er1 >conftest.err
2658 rm -f conftest.er1
2659 cat conftest.err >&5
2660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661 (exit $ac_status); } && {
2662 test -z "$ac_c_werror_flag" ||
2663 test ! -s conftest.err
2664 } && test -s conftest.$ac_objext; then
2665 ac_compiler_gnu=yes
2666 else
2667 echo "$as_me: failed program was:" >&5
2668 sed 's/^/| /' conftest.$ac_ext >&5
2670 ac_compiler_gnu=no
2673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2677 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2678 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2679 GCC=`test $ac_compiler_gnu = yes && echo yes`
2680 ac_test_CFLAGS=${CFLAGS+set}
2681 ac_save_CFLAGS=$CFLAGS
2682 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2683 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2684 if test "${ac_cv_prog_cc_g+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2686 else
2687 ac_save_c_werror_flag=$ac_c_werror_flag
2688 ac_c_werror_flag=yes
2689 ac_cv_prog_cc_g=no
2690 CFLAGS="-g"
2691 cat >conftest.$ac_ext <<_ACEOF
2692 /* confdefs.h. */
2693 _ACEOF
2694 cat confdefs.h >>conftest.$ac_ext
2695 cat >>conftest.$ac_ext <<_ACEOF
2696 /* end confdefs.h. */
2699 main ()
2703 return 0;
2705 _ACEOF
2706 rm -f conftest.$ac_objext
2707 if { (ac_try="$ac_compile"
2708 case "(($ac_try" in
2709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2710 *) ac_try_echo=$ac_try;;
2711 esac
2712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2713 (eval "$ac_compile") 2>conftest.er1
2714 ac_status=$?
2715 grep -v '^ *+' conftest.er1 >conftest.err
2716 rm -f conftest.er1
2717 cat conftest.err >&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); } && {
2720 test -z "$ac_c_werror_flag" ||
2721 test ! -s conftest.err
2722 } && test -s conftest.$ac_objext; then
2723 ac_cv_prog_cc_g=yes
2724 else
2725 echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2728 CFLAGS=""
2729 cat >conftest.$ac_ext <<_ACEOF
2730 /* confdefs.h. */
2731 _ACEOF
2732 cat confdefs.h >>conftest.$ac_ext
2733 cat >>conftest.$ac_ext <<_ACEOF
2734 /* end confdefs.h. */
2737 main ()
2741 return 0;
2743 _ACEOF
2744 rm -f conftest.$ac_objext
2745 if { (ac_try="$ac_compile"
2746 case "(($ac_try" in
2747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2749 esac
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compile") 2>conftest.er1
2752 ac_status=$?
2753 grep -v '^ *+' conftest.er1 >conftest.err
2754 rm -f conftest.er1
2755 cat conftest.err >&5
2756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); } && {
2758 test -z "$ac_c_werror_flag" ||
2759 test ! -s conftest.err
2760 } && test -s conftest.$ac_objext; then
2762 else
2763 echo "$as_me: failed program was:" >&5
2764 sed 's/^/| /' conftest.$ac_ext >&5
2766 ac_c_werror_flag=$ac_save_c_werror_flag
2767 CFLAGS="-g"
2768 cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h. */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2776 main ()
2780 return 0;
2782 _ACEOF
2783 rm -f conftest.$ac_objext
2784 if { (ac_try="$ac_compile"
2785 case "(($ac_try" in
2786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2787 *) ac_try_echo=$ac_try;;
2788 esac
2789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2790 (eval "$ac_compile") 2>conftest.er1
2791 ac_status=$?
2792 grep -v '^ *+' conftest.er1 >conftest.err
2793 rm -f conftest.er1
2794 cat conftest.err >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); } && {
2797 test -z "$ac_c_werror_flag" ||
2798 test ! -s conftest.err
2799 } && test -s conftest.$ac_objext; then
2800 ac_cv_prog_cc_g=yes
2801 else
2802 echo "$as_me: failed program was:" >&5
2803 sed 's/^/| /' conftest.$ac_ext >&5
2808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2815 ac_c_werror_flag=$ac_save_c_werror_flag
2817 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2818 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2819 if test "$ac_test_CFLAGS" = set; then
2820 CFLAGS=$ac_save_CFLAGS
2821 elif test $ac_cv_prog_cc_g = yes; then
2822 if test "$GCC" = yes; then
2823 CFLAGS="-g -O2"
2824 else
2825 CFLAGS="-g"
2827 else
2828 if test "$GCC" = yes; then
2829 CFLAGS="-O2"
2830 else
2831 CFLAGS=
2834 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2835 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2836 if test "${ac_cv_prog_cc_c89+set}" = set; then
2837 echo $ECHO_N "(cached) $ECHO_C" >&6
2838 else
2839 ac_cv_prog_cc_c89=no
2840 ac_save_CC=$CC
2841 cat >conftest.$ac_ext <<_ACEOF
2842 /* confdefs.h. */
2843 _ACEOF
2844 cat confdefs.h >>conftest.$ac_ext
2845 cat >>conftest.$ac_ext <<_ACEOF
2846 /* end confdefs.h. */
2847 #include <stdarg.h>
2848 #include <stdio.h>
2849 #include <sys/types.h>
2850 #include <sys/stat.h>
2851 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2852 struct buf { int x; };
2853 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2854 static char *e (p, i)
2855 char **p;
2856 int i;
2858 return p[i];
2860 static char *f (char * (*g) (char **, int), char **p, ...)
2862 char *s;
2863 va_list v;
2864 va_start (v,p);
2865 s = g (p, va_arg (v,int));
2866 va_end (v);
2867 return s;
2870 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2871 function prototypes and stuff, but not '\xHH' hex character constants.
2872 These don't provoke an error unfortunately, instead are silently treated
2873 as 'x'. The following induces an error, until -std is added to get
2874 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2875 array size at least. It's necessary to write '\x00'==0 to get something
2876 that's true only with -std. */
2877 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2879 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2880 inside strings and character constants. */
2881 #define FOO(x) 'x'
2882 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2884 int test (int i, double x);
2885 struct s1 {int (*f) (int a);};
2886 struct s2 {int (*f) (double a);};
2887 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2888 int argc;
2889 char **argv;
2891 main ()
2893 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2895 return 0;
2897 _ACEOF
2898 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2899 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2901 CC="$ac_save_CC $ac_arg"
2902 rm -f conftest.$ac_objext
2903 if { (ac_try="$ac_compile"
2904 case "(($ac_try" in
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2907 esac
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compile") 2>conftest.er1
2910 ac_status=$?
2911 grep -v '^ *+' conftest.er1 >conftest.err
2912 rm -f conftest.er1
2913 cat conftest.err >&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); } && {
2916 test -z "$ac_c_werror_flag" ||
2917 test ! -s conftest.err
2918 } && test -s conftest.$ac_objext; then
2919 ac_cv_prog_cc_c89=$ac_arg
2920 else
2921 echo "$as_me: failed program was:" >&5
2922 sed 's/^/| /' conftest.$ac_ext >&5
2927 rm -f core conftest.err conftest.$ac_objext
2928 test "x$ac_cv_prog_cc_c89" != "xno" && break
2929 done
2930 rm -f conftest.$ac_ext
2931 CC=$ac_save_CC
2934 # AC_CACHE_VAL
2935 case "x$ac_cv_prog_cc_c89" in
2937 { echo "$as_me:$LINENO: result: none needed" >&5
2938 echo "${ECHO_T}none needed" >&6; } ;;
2939 xno)
2940 { echo "$as_me:$LINENO: result: unsupported" >&5
2941 echo "${ECHO_T}unsupported" >&6; } ;;
2943 CC="$CC $ac_cv_prog_cc_c89"
2944 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2945 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2946 esac
2949 ac_ext=c
2950 ac_cpp='$CPP $CPPFLAGS'
2951 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2952 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2953 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955 case $ac_cv_prog_cc_stdc in
2956 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2957 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2958 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2959 if test "${ac_cv_prog_cc_c99+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2961 else
2962 ac_cv_prog_cc_c99=no
2963 ac_save_CC=$CC
2964 cat >conftest.$ac_ext <<_ACEOF
2965 /* confdefs.h. */
2966 _ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2970 #include <stdarg.h>
2971 #include <stdbool.h>
2972 #include <stdlib.h>
2973 #include <wchar.h>
2974 #include <stdio.h>
2976 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2977 #define debug(...) fprintf (stderr, __VA_ARGS__)
2978 #define showlist(...) puts (#__VA_ARGS__)
2979 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2980 static void
2981 test_varargs_macros (void)
2983 int x = 1234;
2984 int y = 5678;
2985 debug ("Flag");
2986 debug ("X = %d\n", x);
2987 showlist (The first, second, and third items.);
2988 report (x>y, "x is %d but y is %d", x, y);
2991 // Check long long types.
2992 #define BIG64 18446744073709551615ull
2993 #define BIG32 4294967295ul
2994 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2995 #if !BIG_OK
2996 your preprocessor is broken;
2997 #endif
2998 #if BIG_OK
2999 #else
3000 your preprocessor is broken;
3001 #endif
3002 static long long int bignum = -9223372036854775807LL;
3003 static unsigned long long int ubignum = BIG64;
3005 struct incomplete_array
3007 int datasize;
3008 double data[];
3011 struct named_init {
3012 int number;
3013 const wchar_t *name;
3014 double average;
3017 typedef const char *ccp;
3019 static inline int
3020 test_restrict (ccp restrict text)
3022 // See if C++-style comments work.
3023 // Iterate through items via the restricted pointer.
3024 // Also check for declarations in for loops.
3025 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3026 continue;
3027 return 0;
3030 // Check varargs and va_copy.
3031 static void
3032 test_varargs (const char *format, ...)
3034 va_list args;
3035 va_start (args, format);
3036 va_list args_copy;
3037 va_copy (args_copy, args);
3039 const char *str;
3040 int number;
3041 float fnumber;
3043 while (*format)
3045 switch (*format++)
3047 case 's': // string
3048 str = va_arg (args_copy, const char *);
3049 break;
3050 case 'd': // int
3051 number = va_arg (args_copy, int);
3052 break;
3053 case 'f': // float
3054 fnumber = va_arg (args_copy, double);
3055 break;
3056 default:
3057 break;
3060 va_end (args_copy);
3061 va_end (args);
3065 main ()
3068 // Check bool.
3069 _Bool success = false;
3071 // Check restrict.
3072 if (test_restrict ("String literal") == 0)
3073 success = true;
3074 char *restrict newvar = "Another string";
3076 // Check varargs.
3077 test_varargs ("s, d' f .", "string", 65, 34.234);
3078 test_varargs_macros ();
3080 // Check flexible array members.
3081 struct incomplete_array *ia =
3082 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3083 ia->datasize = 10;
3084 for (int i = 0; i < ia->datasize; ++i)
3085 ia->data[i] = i * 1.234;
3087 // Check named initializers.
3088 struct named_init ni = {
3089 .number = 34,
3090 .name = L"Test wide string",
3091 .average = 543.34343,
3094 ni.number = 58;
3096 int dynamic_array[ni.number];
3097 dynamic_array[ni.number - 1] = 543;
3099 // work around unused variable warnings
3100 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3101 || dynamic_array[ni.number - 1] != 543);
3104 return 0;
3106 _ACEOF
3107 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3109 CC="$ac_save_CC $ac_arg"
3110 rm -f conftest.$ac_objext
3111 if { (ac_try="$ac_compile"
3112 case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115 esac
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_compile") 2>conftest.er1
3118 ac_status=$?
3119 grep -v '^ *+' conftest.er1 >conftest.err
3120 rm -f conftest.er1
3121 cat conftest.err >&5
3122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3123 (exit $ac_status); } && {
3124 test -z "$ac_c_werror_flag" ||
3125 test ! -s conftest.err
3126 } && test -s conftest.$ac_objext; then
3127 ac_cv_prog_cc_c99=$ac_arg
3128 else
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3135 rm -f core conftest.err conftest.$ac_objext
3136 test "x$ac_cv_prog_cc_c99" != "xno" && break
3137 done
3138 rm -f conftest.$ac_ext
3139 CC=$ac_save_CC
3142 # AC_CACHE_VAL
3143 case "x$ac_cv_prog_cc_c99" in
3145 { echo "$as_me:$LINENO: result: none needed" >&5
3146 echo "${ECHO_T}none needed" >&6; } ;;
3147 xno)
3148 { echo "$as_me:$LINENO: result: unsupported" >&5
3149 echo "${ECHO_T}unsupported" >&6; } ;;
3151 CC="$CC $ac_cv_prog_cc_c99"
3152 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3153 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3154 esac
3155 if test "x$ac_cv_prog_cc_c99" != xno; then
3156 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3157 else
3158 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3159 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3160 if test "${ac_cv_prog_cc_c89+set}" = set; then
3161 echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163 ac_cv_prog_cc_c89=no
3164 ac_save_CC=$CC
3165 cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h. */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3171 #include <stdarg.h>
3172 #include <stdio.h>
3173 #include <sys/types.h>
3174 #include <sys/stat.h>
3175 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3176 struct buf { int x; };
3177 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3178 static char *e (p, i)
3179 char **p;
3180 int i;
3182 return p[i];
3184 static char *f (char * (*g) (char **, int), char **p, ...)
3186 char *s;
3187 va_list v;
3188 va_start (v,p);
3189 s = g (p, va_arg (v,int));
3190 va_end (v);
3191 return s;
3194 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3195 function prototypes and stuff, but not '\xHH' hex character constants.
3196 These don't provoke an error unfortunately, instead are silently treated
3197 as 'x'. The following induces an error, until -std is added to get
3198 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3199 array size at least. It's necessary to write '\x00'==0 to get something
3200 that's true only with -std. */
3201 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3203 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3204 inside strings and character constants. */
3205 #define FOO(x) 'x'
3206 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3208 int test (int i, double x);
3209 struct s1 {int (*f) (int a);};
3210 struct s2 {int (*f) (double a);};
3211 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3212 int argc;
3213 char **argv;
3215 main ()
3217 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3219 return 0;
3221 _ACEOF
3222 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3223 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3225 CC="$ac_save_CC $ac_arg"
3226 rm -f conftest.$ac_objext
3227 if { (ac_try="$ac_compile"
3228 case "(($ac_try" in
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3231 esac
3232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3234 ac_status=$?
3235 grep -v '^ *+' conftest.er1 >conftest.err
3236 rm -f conftest.er1
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3243 ac_cv_prog_cc_c89=$ac_arg
3244 else
3245 echo "$as_me: failed program was:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3251 rm -f core conftest.err conftest.$ac_objext
3252 test "x$ac_cv_prog_cc_c89" != "xno" && break
3253 done
3254 rm -f conftest.$ac_ext
3255 CC=$ac_save_CC
3258 # AC_CACHE_VAL
3259 case "x$ac_cv_prog_cc_c89" in
3261 { echo "$as_me:$LINENO: result: none needed" >&5
3262 echo "${ECHO_T}none needed" >&6; } ;;
3263 xno)
3264 { echo "$as_me:$LINENO: result: unsupported" >&5
3265 echo "${ECHO_T}unsupported" >&6; } ;;
3267 CC="$CC $ac_cv_prog_cc_c89"
3268 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3269 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3270 esac
3271 if test "x$ac_cv_prog_cc_c89" != xno; then
3272 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3273 else
3274 ac_cv_prog_cc_stdc=no
3281 esac
3282 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3283 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3284 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3288 case $ac_cv_prog_cc_stdc in
3289 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3290 echo "${ECHO_T}unsupported" >&6; } ;;
3291 '') { echo "$as_me:$LINENO: result: none needed" >&5
3292 echo "${ECHO_T}none needed" >&6; } ;;
3293 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3294 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3295 esac
3298 ac_ext=c
3299 ac_cpp='$CPP $CPPFLAGS'
3300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3303 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3304 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3305 # On Suns, sometimes $CPP names a directory.
3306 if test -n "$CPP" && test -d "$CPP"; then
3307 CPP=
3309 if test -z "$CPP"; then
3310 if test "${ac_cv_prog_CPP+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313 # Double quotes because CPP needs to be expanded
3314 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3316 ac_preproc_ok=false
3317 for ac_c_preproc_warn_flag in '' yes
3319 # Use a header file that comes with gcc, so configuring glibc
3320 # with a fresh cross-compiler works.
3321 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3322 # <limits.h> exists even on freestanding compilers.
3323 # On the NeXT, cc -E runs the code through the compiler's parser,
3324 # not just through cpp. "Syntax error" is here to catch this case.
3325 cat >conftest.$ac_ext <<_ACEOF
3326 /* confdefs.h. */
3327 _ACEOF
3328 cat confdefs.h >>conftest.$ac_ext
3329 cat >>conftest.$ac_ext <<_ACEOF
3330 /* end confdefs.h. */
3331 #ifdef __STDC__
3332 # include <limits.h>
3333 #else
3334 # include <assert.h>
3335 #endif
3336 Syntax error
3337 _ACEOF
3338 if { (ac_try="$ac_cpp conftest.$ac_ext"
3339 case "(($ac_try" in
3340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3341 *) ac_try_echo=$ac_try;;
3342 esac
3343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3345 ac_status=$?
3346 grep -v '^ *+' conftest.er1 >conftest.err
3347 rm -f conftest.er1
3348 cat conftest.err >&5
3349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3350 (exit $ac_status); } >/dev/null && {
3351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3352 test ! -s conftest.err
3353 }; then
3355 else
3356 echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3359 # Broken: fails on valid input.
3360 continue
3363 rm -f conftest.err conftest.$ac_ext
3365 # OK, works on sane cases. Now check whether nonexistent headers
3366 # can be detected and how.
3367 cat >conftest.$ac_ext <<_ACEOF
3368 /* confdefs.h. */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h. */
3373 #include <ac_nonexistent.h>
3374 _ACEOF
3375 if { (ac_try="$ac_cpp conftest.$ac_ext"
3376 case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3382 ac_status=$?
3383 grep -v '^ *+' conftest.er1 >conftest.err
3384 rm -f conftest.er1
3385 cat conftest.err >&5
3386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3387 (exit $ac_status); } >/dev/null && {
3388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3389 test ! -s conftest.err
3390 }; then
3391 # Broken: success on invalid input.
3392 continue
3393 else
3394 echo "$as_me: failed program was:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3397 # Passes both tests.
3398 ac_preproc_ok=:
3399 break
3402 rm -f conftest.err conftest.$ac_ext
3404 done
3405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3406 rm -f conftest.err conftest.$ac_ext
3407 if $ac_preproc_ok; then
3408 break
3411 done
3412 ac_cv_prog_CPP=$CPP
3415 CPP=$ac_cv_prog_CPP
3416 else
3417 ac_cv_prog_CPP=$CPP
3419 { echo "$as_me:$LINENO: result: $CPP" >&5
3420 echo "${ECHO_T}$CPP" >&6; }
3421 ac_preproc_ok=false
3422 for ac_c_preproc_warn_flag in '' yes
3424 # Use a header file that comes with gcc, so configuring glibc
3425 # with a fresh cross-compiler works.
3426 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3427 # <limits.h> exists even on freestanding compilers.
3428 # On the NeXT, cc -E runs the code through the compiler's parser,
3429 # not just through cpp. "Syntax error" is here to catch this case.
3430 cat >conftest.$ac_ext <<_ACEOF
3431 /* confdefs.h. */
3432 _ACEOF
3433 cat confdefs.h >>conftest.$ac_ext
3434 cat >>conftest.$ac_ext <<_ACEOF
3435 /* end confdefs.h. */
3436 #ifdef __STDC__
3437 # include <limits.h>
3438 #else
3439 # include <assert.h>
3440 #endif
3441 Syntax error
3442 _ACEOF
3443 if { (ac_try="$ac_cpp conftest.$ac_ext"
3444 case "(($ac_try" in
3445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3446 *) ac_try_echo=$ac_try;;
3447 esac
3448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3450 ac_status=$?
3451 grep -v '^ *+' conftest.er1 >conftest.err
3452 rm -f conftest.er1
3453 cat conftest.err >&5
3454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3455 (exit $ac_status); } >/dev/null && {
3456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3457 test ! -s conftest.err
3458 }; then
3460 else
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3464 # Broken: fails on valid input.
3465 continue
3468 rm -f conftest.err conftest.$ac_ext
3470 # OK, works on sane cases. Now check whether nonexistent headers
3471 # can be detected and how.
3472 cat >conftest.$ac_ext <<_ACEOF
3473 /* confdefs.h. */
3474 _ACEOF
3475 cat confdefs.h >>conftest.$ac_ext
3476 cat >>conftest.$ac_ext <<_ACEOF
3477 /* end confdefs.h. */
3478 #include <ac_nonexistent.h>
3479 _ACEOF
3480 if { (ac_try="$ac_cpp conftest.$ac_ext"
3481 case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } >/dev/null && {
3493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3494 test ! -s conftest.err
3495 }; then
3496 # Broken: success on invalid input.
3497 continue
3498 else
3499 echo "$as_me: failed program was:" >&5
3500 sed 's/^/| /' conftest.$ac_ext >&5
3502 # Passes both tests.
3503 ac_preproc_ok=:
3504 break
3507 rm -f conftest.err conftest.$ac_ext
3509 done
3510 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3511 rm -f conftest.err conftest.$ac_ext
3512 if $ac_preproc_ok; then
3514 else
3515 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3516 See \`config.log' for more details." >&5
3517 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3518 See \`config.log' for more details." >&2;}
3519 { (exit 1); exit 1; }; }
3522 ac_ext=c
3523 ac_cpp='$CPP $CPPFLAGS'
3524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3529 # Check for a compatible awk
3530 for ac_prog in gawk nawk
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3536 if test "${ac_cv_prog_AWK+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539 if test -n "$AWK"; then
3540 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_AWK="$ac_prog"
3550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3553 done
3554 done
3555 IFS=$as_save_IFS
3559 AWK=$ac_cv_prog_AWK
3560 if test -n "$AWK"; then
3561 { echo "$as_me:$LINENO: result: $AWK" >&5
3562 echo "${ECHO_T}$AWK" >&6; }
3563 else
3564 { echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6; }
3569 test -n "$AWK" && break
3570 done
3572 if test "$AWK" = ""; then
3573 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3574 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3575 { (exit 1); exit 1; }; }
3577 # Extract the first word of "mmake", so it can be a program name with args.
3578 set dummy mmake; ac_word=$2
3579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3581 if test "${ac_cv_prog_MMAKE+set}" = set; then
3582 echo $ECHO_N "(cached) $ECHO_C" >&6
3583 else
3584 if test -n "$MMAKE"; then
3585 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3586 else
3587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3588 for as_dir in $PATH
3590 IFS=$as_save_IFS
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3594 ac_cv_prog_MMAKE="mmake "
3595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3596 break 2
3598 done
3599 done
3600 IFS=$as_save_IFS
3604 MMAKE=$ac_cv_prog_MMAKE
3605 if test -n "$MMAKE"; then
3606 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3607 echo "${ECHO_T}$MMAKE" >&6; }
3608 else
3609 { echo "$as_me:$LINENO: result: no" >&5
3610 echo "${ECHO_T}no" >&6; }
3615 # Perform some default variable assignments. Note all of these will be
3616 # Regenerated from the script, so there is no need to cache them.
3618 aros_host_cc="$CC"
3619 if test "$GCC" = "yes"; then
3620 aros_gcc_ld=`$CC -print-prog-name=ld`
3621 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3622 set dummy `basename $aros_gcc_ld`; ac_word=$2
3623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3625 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627 else
3628 case $aros_host_ld in
3629 [\\/]* | ?:[\\/]*)
3630 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634 for as_dir in `dirname $aros_gcc_ld`
3636 IFS=$as_save_IFS
3637 test -z "$as_dir" && as_dir=.
3638 for ac_exec_ext in '' $ac_executable_extensions; do
3639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3641 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 break 2
3644 done
3645 done
3646 IFS=$as_save_IFS
3649 esac
3651 aros_host_ld=$ac_cv_path_aros_host_ld
3652 if test -n "$aros_host_ld"; then
3653 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3654 echo "${ECHO_T}$aros_host_ld" >&6; }
3655 else
3656 { echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6; }
3662 if test "$aros_host_ld" = ""; then
3663 # Extract the first word of "ld", so it can be a program name with args.
3664 set dummy ld; ac_word=$2
3665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3667 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3668 echo $ECHO_N "(cached) $ECHO_C" >&6
3669 else
3670 case $aros_host_ld in
3671 [\\/]* | ?:[\\/]*)
3672 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3676 for as_dir in $PATH
3678 IFS=$as_save_IFS
3679 test -z "$as_dir" && as_dir=.
3680 for ac_exec_ext in '' $ac_executable_extensions; do
3681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3682 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3684 break 2
3686 done
3687 done
3688 IFS=$as_save_IFS
3691 esac
3693 aros_host_ld=$ac_cv_path_aros_host_ld
3694 if test -n "$aros_host_ld"; then
3695 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3696 echo "${ECHO_T}$aros_host_ld" >&6; }
3697 else
3698 { echo "$as_me:$LINENO: result: no" >&5
3699 echo "${ECHO_T}no" >&6; }
3704 if test "$aros_host_ld" = ""; then
3705 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3706 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3707 { (exit 1); exit 1; }; }
3709 aros_host_make="make"
3710 aros_host_cflags=$CFLAGS
3711 aros_host_ldflags=$LDFLAGS
3712 aros_host_debug="-g -O0"
3713 aros_host_mkdep="\$(TOP)/scripts/mkdep"
3714 aros_host_mkargs="--no-print-directory"
3715 aros_host_incl="/usr/include"
3716 aros_host_exe_suffix="$EXEEXT"
3717 aros_host_lib_suffix=""
3719 for ac_prog in aclocal aclocal19
3721 # Extract the first word of "$ac_prog", so it can be a program name with args.
3722 set dummy $ac_prog; ac_word=$2
3723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3725 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3726 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 else
3728 if test -n "$aros_host_aclocal"; then
3729 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3730 else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3738 ac_cv_prog_aros_host_aclocal="$ac_prog"
3739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 break 2
3742 done
3743 done
3744 IFS=$as_save_IFS
3748 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3749 if test -n "$aros_host_aclocal"; then
3750 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3751 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3752 else
3753 { echo "$as_me:$LINENO: result: no" >&5
3754 echo "${ECHO_T}no" >&6; }
3758 test -n "$aros_host_aclocal" && break
3759 done
3761 for ac_prog in autoconf autoconf259 autoconf253
3763 # Extract the first word of "$ac_prog", so it can be a program name with args.
3764 set dummy $ac_prog; ac_word=$2
3765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3767 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770 if test -n "$aros_host_autoconf"; then
3771 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3772 else
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3774 for as_dir in $PATH
3776 IFS=$as_save_IFS
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3780 ac_cv_prog_aros_host_autoconf="$ac_prog"
3781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3782 break 2
3784 done
3785 done
3786 IFS=$as_save_IFS
3790 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3791 if test -n "$aros_host_autoconf"; then
3792 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3793 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3794 else
3795 { echo "$as_me:$LINENO: result: no" >&5
3796 echo "${ECHO_T}no" >&6; }
3800 test -n "$aros_host_autoconf" && break
3801 done
3803 for ac_prog in autoheader autoheader259 autoheader253
3805 # Extract the first word of "$ac_prog", so it can be a program name with args.
3806 set dummy $ac_prog; ac_word=$2
3807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3809 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 else
3812 if test -n "$aros_host_autoheader"; then
3813 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3814 else
3815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3816 for as_dir in $PATH
3818 IFS=$as_save_IFS
3819 test -z "$as_dir" && as_dir=.
3820 for ac_exec_ext in '' $ac_executable_extensions; do
3821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3822 ac_cv_prog_aros_host_autoheader="$ac_prog"
3823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 break 2
3826 done
3827 done
3828 IFS=$as_save_IFS
3832 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3833 if test -n "$aros_host_autoheader"; then
3834 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3835 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3836 else
3837 { echo "$as_me:$LINENO: result: no" >&5
3838 echo "${ECHO_T}no" >&6; }
3842 test -n "$aros_host_autoheader" && break
3843 done
3845 for ac_prog in automake automake19
3847 # Extract the first word of "$ac_prog", so it can be a program name with args.
3848 set dummy $ac_prog; ac_word=$2
3849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3851 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854 if test -n "$aros_host_automake"; then
3855 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3856 else
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in $PATH
3860 IFS=$as_save_IFS
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_prog_aros_host_automake="$ac_prog"
3865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3866 break 2
3868 done
3869 done
3870 IFS=$as_save_IFS
3874 aros_host_automake=$ac_cv_prog_aros_host_automake
3875 if test -n "$aros_host_automake"; then
3876 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3877 echo "${ECHO_T}$aros_host_automake" >&6; }
3878 else
3879 { echo "$as_me:$LINENO: result: no" >&5
3880 echo "${ECHO_T}no" >&6; }
3884 test -n "$aros_host_automake" && break
3885 done
3888 case "$aros_host_cc" in
3889 *gcc*)
3890 aros_host_cc_pipe="-pipe"
3892 icc)
3893 aros_host_cc_pipe=""
3896 aros_host_cc_pipe=""
3898 esac
3900 aros_target_cc_includes=""
3901 aros_target_cc_options=""
3903 # This is the main host configuration section. It is where the host
3904 # can change the values of any variables it needs to change. We do
3905 # not look at anything that compiles to the target yet, we'll get
3906 # to that later.
3908 case "$host_os" in
3909 linux*)
3910 aros_host_arch="linux"
3911 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3912 case "$host_cpu" in
3913 *i?86*)
3914 aros_host_cpu="i386"
3916 *x86_64*)
3917 aros_host_cpu="x86_64"
3919 *m68k*)
3920 aros_host_cpu="m68k"
3922 *powerpc*)
3923 aros_host_cpu="ppc"
3926 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3927 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3928 aros_host_cpu="$host_cpu"
3930 esac
3933 freebsd*)
3934 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3935 aros_host_make="gmake"
3936 aros_host_arch="freebsd"
3937 aros_host_cpu="i386"
3939 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3942 case $host_os in
3943 freebsd[234]*)
3944 aros_object_format="elf_i386"
3948 aros_object_format="elf_i386_fbsd"
3950 esac
3954 darwin*)
3955 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3956 aros_host_arch="darwin"
3957 case "$host_cpu" in
3958 *i?86*)
3959 aros_host_cpu="i386"
3961 *powerpc*)
3962 aros_host_cpu="ppc"
3965 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3966 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3967 aros_host_cpu="$host_cpu"
3969 esac
3971 aros_host_ldflags="$aros_host_ldflags -liconv"
3975 netbsd*)
3976 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3977 aros_host_make="gmake"
3978 aros_host_arch="netbsd"
3979 case "$host_cpu" in
3980 *i?86*)
3981 aros_host_cpu="i386"
3983 *m68k*)
3984 aros_host_cpu="m68k"
3987 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3988 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3989 aros_host_cpu="$host_cpu"
3991 esac
3992 aros_host_lib_suffix=".0.0"
3995 openbsd*)
3996 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3997 aros_host_make="gmake"
3998 aros_host_arch="openbsd"
3999 case "$host_cpu" in
4000 *i?86*)
4001 aros_host_cpu="i386"
4004 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4005 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4006 aros_host_cpu="$host_cpu"
4008 esac
4011 solaris*)
4012 aros_host_arch="solaris"
4013 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4014 case "$host_cpu" in
4015 *sparc*)
4016 aros_host_cpu="sparc"
4019 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4020 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4021 aros_host_cpu="$host_cpu"
4023 esac
4026 morphos*)
4027 aros_host_arch="morphos"
4028 aros_host_cpu="ppc"
4031 amiga*)
4032 aros_host_arch="amiga"
4033 SORT="/gg/bin/sort"
4034 TEST="/gg/bin/test"
4035 UNIQ="/gg/bin/uniq"
4036 FOR="for"
4037 TOUCH="/gg/bin/touch"
4038 case "$host_cpu" in
4039 *m68k*)
4040 aros_host_cpu="m68k"
4042 *powerpc*)
4043 aros_host_cpu="ppc"
4046 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4047 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4048 aros_host_cpu="$host_cpu"
4050 esac
4053 cygwin*)
4054 aros_host_arch="cygwin"
4055 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4056 case "$host_cpu" in
4057 *i?86*)
4058 aros_host_cpu="i386"
4061 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4062 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4063 aros_host_cpu="$host_cpu"
4065 esac
4068 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4069 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4070 { (exit 1); exit 1; }; }
4072 esac
4074 # Extract the first word of "ar", so it can be a program name with args.
4075 set dummy ar; ac_word=$2
4076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4078 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4079 echo $ECHO_N "(cached) $ECHO_C" >&6
4080 else
4081 if test -n "$aros_host_ar"; then
4082 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4083 else
4084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 for as_dir in $PATH
4087 IFS=$as_save_IFS
4088 test -z "$as_dir" && as_dir=.
4089 for ac_exec_ext in '' $ac_executable_extensions; do
4090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4091 ac_cv_prog_aros_host_ar="ar cr"
4092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4093 break 2
4095 done
4096 done
4097 IFS=$as_save_IFS
4101 aros_host_ar=$ac_cv_prog_aros_host_ar
4102 if test -n "$aros_host_ar"; then
4103 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4104 echo "${ECHO_T}$aros_host_ar" >&6; }
4105 else
4106 { echo "$as_me:$LINENO: result: no" >&5
4107 echo "${ECHO_T}no" >&6; }
4111 if test "$aros_host_ar" = ""; then
4112 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4113 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4114 { (exit 1); exit 1; }; }
4116 # Extract the first word of "ranlib", so it can be a program name with args.
4117 set dummy ranlib; ac_word=$2
4118 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4120 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123 if test -n "$aros_host_ranlib"; then
4124 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4125 else
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4127 for as_dir in $PATH
4129 IFS=$as_save_IFS
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4133 ac_cv_prog_aros_host_ranlib="ranlib "
4134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4135 break 2
4137 done
4138 done
4139 IFS=$as_save_IFS
4143 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4144 if test -n "$aros_host_ranlib"; then
4145 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4146 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4147 else
4148 { echo "$as_me:$LINENO: result: no" >&5
4149 echo "${ECHO_T}no" >&6; }
4153 if test "$aros_host_ranlib" = ""; then
4154 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4155 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4156 { (exit 1); exit 1; }; }
4158 # Extract the first word of "strip", so it can be a program name with args.
4159 set dummy strip; ac_word=$2
4160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4162 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4163 echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165 if test -n "$aros_host_strip"; then
4166 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4167 else
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_exec_ext in '' $ac_executable_extensions; do
4174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4175 ac_cv_prog_aros_host_strip="strip "
4176 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4177 break 2
4179 done
4180 done
4181 IFS=$as_save_IFS
4185 aros_host_strip=$ac_cv_prog_aros_host_strip
4186 if test -n "$aros_host_strip"; then
4187 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4188 echo "${ECHO_T}$aros_host_strip" >&6; }
4189 else
4190 { echo "$as_me:$LINENO: result: no" >&5
4191 echo "${ECHO_T}no" >&6; }
4195 if test "$aros_host_strip" = ""; then
4196 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4197 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4198 { (exit 1); exit 1; }; }
4201 # Extract the first word of "rm", so it can be a program name with args.
4202 set dummy rm; ac_word=$2
4203 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4204 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4205 if test "${ac_cv_prog_RM+set}" = set; then
4206 echo $ECHO_N "(cached) $ECHO_C" >&6
4207 else
4208 if test -n "$RM"; then
4209 ac_cv_prog_RM="$RM" # Let the user override the test.
4210 else
4211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4212 for as_dir in $PATH
4214 IFS=$as_save_IFS
4215 test -z "$as_dir" && as_dir=.
4216 for ac_exec_ext in '' $ac_executable_extensions; do
4217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4218 ac_cv_prog_RM="rm -rf"
4219 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 break 2
4222 done
4223 done
4224 IFS=$as_save_IFS
4228 RM=$ac_cv_prog_RM
4229 if test -n "$RM"; then
4230 { echo "$as_me:$LINENO: result: $RM" >&5
4231 echo "${ECHO_T}$RM" >&6; }
4232 else
4233 { echo "$as_me:$LINENO: result: no" >&5
4234 echo "${ECHO_T}no" >&6; }
4238 if test "$RM" = ""; then
4239 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4240 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4241 { (exit 1); exit 1; }; }
4243 # Extract the first word of "cp", so it can be a program name with args.
4244 set dummy cp; ac_word=$2
4245 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4247 if test "${ac_cv_prog_CP+set}" = set; then
4248 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 else
4250 if test -n "$CP"; then
4251 ac_cv_prog_CP="$CP" # Let the user override the test.
4252 else
4253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 for as_dir in $PATH
4256 IFS=$as_save_IFS
4257 test -z "$as_dir" && as_dir=.
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4260 ac_cv_prog_CP="cp "
4261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 break 2
4264 done
4265 done
4266 IFS=$as_save_IFS
4270 CP=$ac_cv_prog_CP
4271 if test -n "$CP"; then
4272 { echo "$as_me:$LINENO: result: $CP" >&5
4273 echo "${ECHO_T}$CP" >&6; }
4274 else
4275 { echo "$as_me:$LINENO: result: no" >&5
4276 echo "${ECHO_T}no" >&6; }
4280 if test "$CP" = ""; then
4281 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4282 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4283 { (exit 1); exit 1; }; }
4285 # Extract the first word of "mv", so it can be a program name with args.
4286 set dummy mv; ac_word=$2
4287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4289 if test "${ac_cv_prog_MV+set}" = set; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4291 else
4292 if test -n "$MV"; then
4293 ac_cv_prog_MV="$MV" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 ac_cv_prog_MV="mv "
4303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4306 done
4307 done
4308 IFS=$as_save_IFS
4312 MV=$ac_cv_prog_MV
4313 if test -n "$MV"; then
4314 { echo "$as_me:$LINENO: result: $MV" >&5
4315 echo "${ECHO_T}$MV" >&6; }
4316 else
4317 { echo "$as_me:$LINENO: result: no" >&5
4318 echo "${ECHO_T}no" >&6; }
4322 if test "$MV" = ""; then
4323 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4324 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4325 { (exit 1); exit 1; }; }
4327 # Extract the first word of "echo", so it can be a program name with args.
4328 set dummy echo; ac_word=$2
4329 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4331 if test "${ac_cv_prog_ECHO+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334 if test -n "$ECHO"; then
4335 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4336 else
4337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4338 for as_dir in $PATH
4340 IFS=$as_save_IFS
4341 test -z "$as_dir" && as_dir=.
4342 for ac_exec_ext in '' $ac_executable_extensions; do
4343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4344 ac_cv_prog_ECHO="echo "
4345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 break 2
4348 done
4349 done
4350 IFS=$as_save_IFS
4354 ECHO=$ac_cv_prog_ECHO
4355 if test -n "$ECHO"; then
4356 { echo "$as_me:$LINENO: result: $ECHO" >&5
4357 echo "${ECHO_T}$ECHO" >&6; }
4358 else
4359 { echo "$as_me:$LINENO: result: no" >&5
4360 echo "${ECHO_T}no" >&6; }
4364 if test "$ECHO" = ""; then
4365 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4366 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4367 { (exit 1); exit 1; }; }
4369 # Extract the first word of "mkdir", so it can be a program name with args.
4370 set dummy mkdir; ac_word=$2
4371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4373 if test "${ac_cv_prog_MKDIR+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4375 else
4376 if test -n "$MKDIR"; then
4377 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4378 else
4379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 for as_dir in $PATH
4382 IFS=$as_save_IFS
4383 test -z "$as_dir" && as_dir=.
4384 for ac_exec_ext in '' $ac_executable_extensions; do
4385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4386 ac_cv_prog_MKDIR="mkdir -p"
4387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4388 break 2
4390 done
4391 done
4392 IFS=$as_save_IFS
4396 MKDIR=$ac_cv_prog_MKDIR
4397 if test -n "$MKDIR"; then
4398 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4399 echo "${ECHO_T}$MKDIR" >&6; }
4400 else
4401 { echo "$as_me:$LINENO: result: no" >&5
4402 echo "${ECHO_T}no" >&6; }
4406 if test "$MKDIR" = ""; then
4407 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4408 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4409 { (exit 1); exit 1; }; }
4411 # Extract the first word of "touch", so it can be a program name with args.
4412 set dummy touch; ac_word=$2
4413 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4415 if test "${ac_cv_prog_TOUCH+set}" = set; then
4416 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 else
4418 if test -n "$TOUCH"; then
4419 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4420 else
4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 for as_dir in $PATH
4424 IFS=$as_save_IFS
4425 test -z "$as_dir" && as_dir=.
4426 for ac_exec_ext in '' $ac_executable_extensions; do
4427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4428 ac_cv_prog_TOUCH="touch "
4429 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 break 2
4432 done
4433 done
4434 IFS=$as_save_IFS
4438 TOUCH=$ac_cv_prog_TOUCH
4439 if test -n "$TOUCH"; then
4440 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4441 echo "${ECHO_T}$TOUCH" >&6; }
4442 else
4443 { echo "$as_me:$LINENO: result: no" >&5
4444 echo "${ECHO_T}no" >&6; }
4448 if test "$TOUCH" = ""; then
4449 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4450 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4451 { (exit 1); exit 1; }; }
4453 # Extract the first word of "sort", so it can be a program name with args.
4454 set dummy sort; ac_word=$2
4455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4457 if test "${ac_cv_prog_SORT+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460 if test -n "$SORT"; then
4461 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4462 else
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464 for as_dir in $PATH
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470 ac_cv_prog_SORT="sort "
4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4472 break 2
4474 done
4475 done
4476 IFS=$as_save_IFS
4480 SORT=$ac_cv_prog_SORT
4481 if test -n "$SORT"; then
4482 { echo "$as_me:$LINENO: result: $SORT" >&5
4483 echo "${ECHO_T}$SORT" >&6; }
4484 else
4485 { echo "$as_me:$LINENO: result: no" >&5
4486 echo "${ECHO_T}no" >&6; }
4490 if test "$SORT" = ""; then
4491 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4492 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4493 { (exit 1); exit 1; }; }
4495 # Extract the first word of "uniq", so it can be a program name with args.
4496 set dummy uniq; ac_word=$2
4497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4499 if test "${ac_cv_prog_UNIQ+set}" = set; then
4500 echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502 if test -n "$UNIQ"; then
4503 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4504 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_UNIQ="uniq "
4513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4516 done
4517 done
4518 IFS=$as_save_IFS
4522 UNIQ=$ac_cv_prog_UNIQ
4523 if test -n "$UNIQ"; then
4524 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4525 echo "${ECHO_T}$UNIQ" >&6; }
4526 else
4527 { echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6; }
4532 if test "$UNIQ" = ""; then
4533 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4534 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4535 { (exit 1); exit 1; }; }
4537 # Extract the first word of "true", so it can be a program name with args.
4538 set dummy true; ac_word=$2
4539 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4541 if test "${ac_cv_prog_NOP+set}" = set; then
4542 echo $ECHO_N "(cached) $ECHO_C" >&6
4543 else
4544 if test -n "$NOP"; then
4545 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4546 else
4547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 for as_dir in $PATH
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
4552 for ac_exec_ext in '' $ac_executable_extensions; do
4553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4554 ac_cv_prog_NOP="true "
4555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4556 break 2
4558 done
4559 done
4560 IFS=$as_save_IFS
4564 NOP=$ac_cv_prog_NOP
4565 if test -n "$NOP"; then
4566 { echo "$as_me:$LINENO: result: $NOP" >&5
4567 echo "${ECHO_T}$NOP" >&6; }
4568 else
4569 { echo "$as_me:$LINENO: result: no" >&5
4570 echo "${ECHO_T}no" >&6; }
4574 if test "$NOP" = ""; then
4575 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4576 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4577 { (exit 1); exit 1; }; }
4579 # Extract the first word of "cat", so it can be a program name with args.
4580 set dummy cat; ac_word=$2
4581 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4582 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4583 if test "${ac_cv_prog_CAT+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586 if test -n "$CAT"; then
4587 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4588 else
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH
4592 IFS=$as_save_IFS
4593 test -z "$as_dir" && as_dir=.
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4596 ac_cv_prog_CAT="cat "
4597 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4598 break 2
4600 done
4601 done
4602 IFS=$as_save_IFS
4606 CAT=$ac_cv_prog_CAT
4607 if test -n "$CAT"; then
4608 { echo "$as_me:$LINENO: result: $CAT" >&5
4609 echo "${ECHO_T}$CAT" >&6; }
4610 else
4611 { echo "$as_me:$LINENO: result: no" >&5
4612 echo "${ECHO_T}no" >&6; }
4616 if test "$CAT" = ""; then
4617 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4618 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4619 { (exit 1); exit 1; }; }
4621 # Extract the first word of "bison", so it can be a program name with args.
4622 set dummy bison; ac_word=$2
4623 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4625 if test "${ac_cv_prog_BISON+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628 if test -n "$BISON"; then
4629 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4630 else
4631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4632 for as_dir in $PATH
4634 IFS=$as_save_IFS
4635 test -z "$as_dir" && as_dir=.
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4638 ac_cv_prog_BISON="bison "
4639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4640 break 2
4642 done
4643 done
4644 IFS=$as_save_IFS
4648 BISON=$ac_cv_prog_BISON
4649 if test -n "$BISON"; then
4650 { echo "$as_me:$LINENO: result: $BISON" >&5
4651 echo "${ECHO_T}$BISON" >&6; }
4652 else
4653 { echo "$as_me:$LINENO: result: no" >&5
4654 echo "${ECHO_T}no" >&6; }
4658 if test "$BISON" = ""; then
4659 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4660 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4661 { (exit 1); exit 1; }; }
4663 # Extract the first word of "flex", so it can be a program name with args.
4664 set dummy flex; ac_word=$2
4665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4667 if test "${ac_cv_prog_FLEX+set}" = set; then
4668 echo $ECHO_N "(cached) $ECHO_C" >&6
4669 else
4670 if test -n "$FLEX"; then
4671 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4672 else
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4680 ac_cv_prog_FLEX="flex "
4681 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4684 done
4685 done
4686 IFS=$as_save_IFS
4690 FLEX=$ac_cv_prog_FLEX
4691 if test -n "$FLEX"; then
4692 { echo "$as_me:$LINENO: result: $FLEX" >&5
4693 echo "${ECHO_T}$FLEX" >&6; }
4694 else
4695 { echo "$as_me:$LINENO: result: no" >&5
4696 echo "${ECHO_T}no" >&6; }
4700 if test "$FLEX" = ""; then
4701 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4702 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4703 { (exit 1); exit 1; }; }
4705 # Extract the first word of "pngtopnm", so it can be a program name with args.
4706 set dummy pngtopnm; ac_word=$2
4707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4709 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4710 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 else
4712 if test -n "$PNGTOPNM"; then
4713 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4714 else
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4722 ac_cv_prog_PNGTOPNM="pngtopnm "
4723 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 break 2
4726 done
4727 done
4728 IFS=$as_save_IFS
4732 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4733 if test -n "$PNGTOPNM"; then
4734 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4735 echo "${ECHO_T}$PNGTOPNM" >&6; }
4736 else
4737 { echo "$as_me:$LINENO: result: no" >&5
4738 echo "${ECHO_T}no" >&6; }
4742 if test "$PNGTOPNM" = ""; then
4743 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4744 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4745 { (exit 1); exit 1; }; }
4747 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4748 set dummy ppmtoilbm; ac_word=$2
4749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4751 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4752 echo $ECHO_N "(cached) $ECHO_C" >&6
4753 else
4754 if test -n "$PPMTOILBM"; then
4755 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4756 else
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH
4760 IFS=$as_save_IFS
4761 test -z "$as_dir" && as_dir=.
4762 for ac_exec_ext in '' $ac_executable_extensions; do
4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4764 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 break 2
4768 done
4769 done
4770 IFS=$as_save_IFS
4774 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4775 if test -n "$PPMTOILBM"; then
4776 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4777 echo "${ECHO_T}$PPMTOILBM" >&6; }
4778 else
4779 { echo "$as_me:$LINENO: result: no" >&5
4780 echo "${ECHO_T}no" >&6; }
4784 if test "$PPMTOILBM" = ""; then
4785 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4786 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4787 { (exit 1); exit 1; }; }
4789 # Extract the first word of "sed", so it can be a program name with args.
4790 set dummy sed; ac_word=$2
4791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4793 if test "${ac_cv_prog_SED+set}" = set; then
4794 echo $ECHO_N "(cached) $ECHO_C" >&6
4795 else
4796 if test -n "$SED"; then
4797 ac_cv_prog_SED="$SED" # Let the user override the test.
4798 else
4799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4800 for as_dir in $PATH
4802 IFS=$as_save_IFS
4803 test -z "$as_dir" && as_dir=.
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4806 ac_cv_prog_SED="sed "
4807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4808 break 2
4810 done
4811 done
4812 IFS=$as_save_IFS
4816 SED=$ac_cv_prog_SED
4817 if test -n "$SED"; then
4818 { echo "$as_me:$LINENO: result: $SED" >&5
4819 echo "${ECHO_T}$SED" >&6; }
4820 else
4821 { echo "$as_me:$LINENO: result: no" >&5
4822 echo "${ECHO_T}no" >&6; }
4826 if test "$SED" = ""; then
4827 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4828 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4829 { (exit 1); exit 1; }; }
4831 # Extract the first word of "chmod", so it can be a program name with args.
4832 set dummy chmod; ac_word=$2
4833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4835 if test "${ac_cv_prog_CHMOD+set}" = set; then
4836 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 else
4838 if test -n "$CHMOD"; then
4839 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4840 else
4841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4842 for as_dir in $PATH
4844 IFS=$as_save_IFS
4845 test -z "$as_dir" && as_dir=.
4846 for ac_exec_ext in '' $ac_executable_extensions; do
4847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4848 ac_cv_prog_CHMOD="chmod "
4849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4850 break 2
4852 done
4853 done
4854 IFS=$as_save_IFS
4858 CHMOD=$ac_cv_prog_CHMOD
4859 if test -n "$CHMOD"; then
4860 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4861 echo "${ECHO_T}$CHMOD" >&6; }
4862 else
4863 { echo "$as_me:$LINENO: result: no" >&5
4864 echo "${ECHO_T}no" >&6; }
4868 if test "$CHMOD" = ""; then
4869 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4870 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4871 { (exit 1); exit 1; }; }
4878 if test -n "$PYTHON"; then
4879 # If the user set $PYTHON, use it and don't search something else.
4880 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4881 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4882 prog="import sys, string
4883 # split strings by '.' and convert to numeric. Append some zeros
4884 # because we need at least 4 digits for the hex conversion.
4885 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4886 minverhex = 0
4887 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4888 sys.exit(sys.hexversion < minverhex)"
4889 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4890 ($PYTHON -c "$prog") >&5 2>&5
4891 ac_status=$?
4892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4893 (exit $ac_status); }; then
4894 { echo "$as_me:$LINENO: result: yes" >&5
4895 echo "${ECHO_T}yes" >&6; }
4896 else
4897 { { echo "$as_me:$LINENO: error: too old" >&5
4898 echo "$as_me: error: too old" >&2;}
4899 { (exit 1); exit 1; }; }
4902 am_display_PYTHON=$PYTHON
4903 else
4904 # Otherwise, try each interpreter until we find one that satisfies
4905 # VERSION.
4906 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4907 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4908 if test "${am_cv_pathless_PYTHON+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4912 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
4913 test "$am_cv_pathless_PYTHON" = none && break
4914 prog="import sys, string
4915 # split strings by '.' and convert to numeric. Append some zeros
4916 # because we need at least 4 digits for the hex conversion.
4917 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4918 minverhex = 0
4919 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4920 sys.exit(sys.hexversion < minverhex)"
4921 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4922 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4923 ac_status=$?
4924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4925 (exit $ac_status); }; then
4926 break
4929 done
4931 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
4932 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
4933 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4934 if test "$am_cv_pathless_PYTHON" = none; then
4935 PYTHON=:
4936 else
4937 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4938 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4941 if test "${ac_cv_path_PYTHON+set}" = set; then
4942 echo $ECHO_N "(cached) $ECHO_C" >&6
4943 else
4944 case $PYTHON in
4945 [\\/]* | ?:[\\/]*)
4946 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 for as_dir in $PATH
4952 IFS=$as_save_IFS
4953 test -z "$as_dir" && as_dir=.
4954 for ac_exec_ext in '' $ac_executable_extensions; do
4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4956 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4957 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4958 break 2
4960 done
4961 done
4962 IFS=$as_save_IFS
4965 esac
4967 PYTHON=$ac_cv_path_PYTHON
4968 if test -n "$PYTHON"; then
4969 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4970 echo "${ECHO_T}$PYTHON" >&6; }
4971 else
4972 { echo "$as_me:$LINENO: result: no" >&5
4973 echo "${ECHO_T}no" >&6; }
4978 am_display_PYTHON=$am_cv_pathless_PYTHON
4982 if test "$PYTHON" = :; then
4983 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
4984 echo "$as_me: error: no suitable Python interpreter found" >&2;}
4985 { (exit 1); exit 1; }; }
4986 else
4989 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
4990 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
4991 if test "${am_cv_python_version+set}" = set; then
4992 echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
4996 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
4997 echo "${ECHO_T}$am_cv_python_version" >&6; }
4998 PYTHON_VERSION=$am_cv_python_version
5002 PYTHON_PREFIX='${prefix}'
5004 PYTHON_EXEC_PREFIX='${exec_prefix}'
5008 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5009 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5010 if test "${am_cv_python_platform+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5015 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5016 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5017 PYTHON_PLATFORM=$am_cv_python_platform
5022 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5023 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5024 if test "${am_cv_python_pythondir+set}" = set; then
5025 echo $ECHO_N "(cached) $ECHO_C" >&6
5026 else
5027 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5028 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5030 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5031 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5032 pythondir=$am_cv_python_pythondir
5036 pkgpythondir=\${pythondir}/$PACKAGE
5039 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5040 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5041 if test "${am_cv_python_pyexecdir+set}" = set; then
5042 echo $ECHO_N "(cached) $ECHO_C" >&6
5043 else
5044 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5045 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5047 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5048 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5049 pyexecdir=$am_cv_python_pyexecdir
5053 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5061 FOR=for
5063 IF=if
5065 TEST=test
5067 CMP=cmp
5071 # Check for some includes for the X11 HIDD and the kernel
5074 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5075 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5076 if test "${ac_cv_path_GREP+set}" = set; then
5077 echo $ECHO_N "(cached) $ECHO_C" >&6
5078 else
5079 # Extract the first word of "grep ggrep" to use in msg output
5080 if test -z "$GREP"; then
5081 set dummy grep ggrep; ac_prog_name=$2
5082 if test "${ac_cv_path_GREP+set}" = set; then
5083 echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085 ac_path_GREP_found=false
5086 # Loop through the user's path and test for each of PROGNAME-LIST
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5090 IFS=$as_save_IFS
5091 test -z "$as_dir" && as_dir=.
5092 for ac_prog in grep ggrep; do
5093 for ac_exec_ext in '' $ac_executable_extensions; do
5094 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5095 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5096 # Check for GNU ac_path_GREP and select it if it is found.
5097 # Check for GNU $ac_path_GREP
5098 case `"$ac_path_GREP" --version 2>&1` in
5099 *GNU*)
5100 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5102 ac_count=0
5103 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5104 while :
5106 cat "conftest.in" "conftest.in" >"conftest.tmp"
5107 mv "conftest.tmp" "conftest.in"
5108 cp "conftest.in" "conftest.nl"
5109 echo 'GREP' >> "conftest.nl"
5110 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5112 ac_count=`expr $ac_count + 1`
5113 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5114 # Best one so far, save it but keep looking for a better one
5115 ac_cv_path_GREP="$ac_path_GREP"
5116 ac_path_GREP_max=$ac_count
5118 # 10*(2^10) chars as input seems more than enough
5119 test $ac_count -gt 10 && break
5120 done
5121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5122 esac
5125 $ac_path_GREP_found && break 3
5126 done
5127 done
5129 done
5130 IFS=$as_save_IFS
5135 GREP="$ac_cv_path_GREP"
5136 if test -z "$GREP"; then
5137 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5138 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5139 { (exit 1); exit 1; }; }
5142 else
5143 ac_cv_path_GREP=$GREP
5148 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5149 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5150 GREP="$ac_cv_path_GREP"
5153 { echo "$as_me:$LINENO: checking for egrep" >&5
5154 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5155 if test "${ac_cv_path_EGREP+set}" = set; then
5156 echo $ECHO_N "(cached) $ECHO_C" >&6
5157 else
5158 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5159 then ac_cv_path_EGREP="$GREP -E"
5160 else
5161 # Extract the first word of "egrep" to use in msg output
5162 if test -z "$EGREP"; then
5163 set dummy egrep; ac_prog_name=$2
5164 if test "${ac_cv_path_EGREP+set}" = set; then
5165 echo $ECHO_N "(cached) $ECHO_C" >&6
5166 else
5167 ac_path_EGREP_found=false
5168 # Loop through the user's path and test for each of PROGNAME-LIST
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_prog in egrep; do
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5178 # Check for GNU ac_path_EGREP and select it if it is found.
5179 # Check for GNU $ac_path_EGREP
5180 case `"$ac_path_EGREP" --version 2>&1` in
5181 *GNU*)
5182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5184 ac_count=0
5185 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5186 while :
5188 cat "conftest.in" "conftest.in" >"conftest.tmp"
5189 mv "conftest.tmp" "conftest.in"
5190 cp "conftest.in" "conftest.nl"
5191 echo 'EGREP' >> "conftest.nl"
5192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5194 ac_count=`expr $ac_count + 1`
5195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5196 # Best one so far, save it but keep looking for a better one
5197 ac_cv_path_EGREP="$ac_path_EGREP"
5198 ac_path_EGREP_max=$ac_count
5200 # 10*(2^10) chars as input seems more than enough
5201 test $ac_count -gt 10 && break
5202 done
5203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5204 esac
5207 $ac_path_EGREP_found && break 3
5208 done
5209 done
5211 done
5212 IFS=$as_save_IFS
5217 EGREP="$ac_cv_path_EGREP"
5218 if test -z "$EGREP"; then
5219 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5220 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5221 { (exit 1); exit 1; }; }
5224 else
5225 ac_cv_path_EGREP=$EGREP
5231 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5232 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5233 EGREP="$ac_cv_path_EGREP"
5236 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5237 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5238 if test "${ac_cv_header_stdc+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241 cat >conftest.$ac_ext <<_ACEOF
5242 /* confdefs.h. */
5243 _ACEOF
5244 cat confdefs.h >>conftest.$ac_ext
5245 cat >>conftest.$ac_ext <<_ACEOF
5246 /* end confdefs.h. */
5247 #include <stdlib.h>
5248 #include <stdarg.h>
5249 #include <string.h>
5250 #include <float.h>
5253 main ()
5257 return 0;
5259 _ACEOF
5260 rm -f conftest.$ac_objext
5261 if { (ac_try="$ac_compile"
5262 case "(($ac_try" in
5263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5264 *) ac_try_echo=$ac_try;;
5265 esac
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267 (eval "$ac_compile") 2>conftest.er1
5268 ac_status=$?
5269 grep -v '^ *+' conftest.er1 >conftest.err
5270 rm -f conftest.er1
5271 cat conftest.err >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } && {
5274 test -z "$ac_c_werror_flag" ||
5275 test ! -s conftest.err
5276 } && test -s conftest.$ac_objext; then
5277 ac_cv_header_stdc=yes
5278 else
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.$ac_ext >&5
5282 ac_cv_header_stdc=no
5285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 if test $ac_cv_header_stdc = yes; then
5288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5289 cat >conftest.$ac_ext <<_ACEOF
5290 /* confdefs.h. */
5291 _ACEOF
5292 cat confdefs.h >>conftest.$ac_ext
5293 cat >>conftest.$ac_ext <<_ACEOF
5294 /* end confdefs.h. */
5295 #include <string.h>
5297 _ACEOF
5298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5299 $EGREP "memchr" >/dev/null 2>&1; then
5301 else
5302 ac_cv_header_stdc=no
5304 rm -f conftest*
5308 if test $ac_cv_header_stdc = yes; then
5309 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5310 cat >conftest.$ac_ext <<_ACEOF
5311 /* confdefs.h. */
5312 _ACEOF
5313 cat confdefs.h >>conftest.$ac_ext
5314 cat >>conftest.$ac_ext <<_ACEOF
5315 /* end confdefs.h. */
5316 #include <stdlib.h>
5318 _ACEOF
5319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5320 $EGREP "free" >/dev/null 2>&1; then
5322 else
5323 ac_cv_header_stdc=no
5325 rm -f conftest*
5329 if test $ac_cv_header_stdc = yes; then
5330 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5331 if test "$cross_compiling" = yes; then
5333 else
5334 cat >conftest.$ac_ext <<_ACEOF
5335 /* confdefs.h. */
5336 _ACEOF
5337 cat confdefs.h >>conftest.$ac_ext
5338 cat >>conftest.$ac_ext <<_ACEOF
5339 /* end confdefs.h. */
5340 #include <ctype.h>
5341 #include <stdlib.h>
5342 #if ((' ' & 0x0FF) == 0x020)
5343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5345 #else
5346 # define ISLOWER(c) \
5347 (('a' <= (c) && (c) <= 'i') \
5348 || ('j' <= (c) && (c) <= 'r') \
5349 || ('s' <= (c) && (c) <= 'z'))
5350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5351 #endif
5353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5355 main ()
5357 int i;
5358 for (i = 0; i < 256; i++)
5359 if (XOR (islower (i), ISLOWER (i))
5360 || toupper (i) != TOUPPER (i))
5361 return 2;
5362 return 0;
5364 _ACEOF
5365 rm -f conftest$ac_exeext
5366 if { (ac_try="$ac_link"
5367 case "(($ac_try" in
5368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369 *) ac_try_echo=$ac_try;;
5370 esac
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372 (eval "$ac_link") 2>&5
5373 ac_status=$?
5374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5376 { (case "(($ac_try" in
5377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5378 *) ac_try_echo=$ac_try;;
5379 esac
5380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5381 (eval "$ac_try") 2>&5
5382 ac_status=$?
5383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384 (exit $ac_status); }; }; then
5386 else
5387 echo "$as_me: program exited with status $ac_status" >&5
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 ( exit $ac_status )
5392 ac_cv_header_stdc=no
5394 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5400 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5401 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5402 if test $ac_cv_header_stdc = yes; then
5404 cat >>confdefs.h <<\_ACEOF
5405 #define STDC_HEADERS 1
5406 _ACEOF
5410 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5420 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5421 inttypes.h stdint.h unistd.h
5423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5428 else
5429 cat >conftest.$ac_ext <<_ACEOF
5430 /* confdefs.h. */
5431 _ACEOF
5432 cat confdefs.h >>conftest.$ac_ext
5433 cat >>conftest.$ac_ext <<_ACEOF
5434 /* end confdefs.h. */
5435 $ac_includes_default
5437 #include <$ac_header>
5438 _ACEOF
5439 rm -f conftest.$ac_objext
5440 if { (ac_try="$ac_compile"
5441 case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444 esac
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_compile") 2>conftest.er1
5447 ac_status=$?
5448 grep -v '^ *+' conftest.er1 >conftest.err
5449 rm -f conftest.er1
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } && {
5453 test -z "$ac_c_werror_flag" ||
5454 test ! -s conftest.err
5455 } && test -s conftest.$ac_objext; then
5456 eval "$as_ac_Header=yes"
5457 else
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5461 eval "$as_ac_Header=no"
5464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5466 ac_res=`eval echo '${'$as_ac_Header'}'`
5467 { echo "$as_me:$LINENO: result: $ac_res" >&5
5468 echo "${ECHO_T}$ac_res" >&6; }
5469 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5470 cat >>confdefs.h <<_ACEOF
5471 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5472 _ACEOF
5476 done
5488 for ac_header in sys/ipc.h sys/shm.h \
5489 sys/mmap.h sys/mman.h sysexits.h \
5490 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5493 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5497 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5498 echo $ECHO_N "(cached) $ECHO_C" >&6
5500 ac_res=`eval echo '${'$as_ac_Header'}'`
5501 { echo "$as_me:$LINENO: result: $ac_res" >&5
5502 echo "${ECHO_T}$ac_res" >&6; }
5503 else
5504 # Is the header compilable?
5505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5507 cat >conftest.$ac_ext <<_ACEOF
5508 /* confdefs.h. */
5509 _ACEOF
5510 cat confdefs.h >>conftest.$ac_ext
5511 cat >>conftest.$ac_ext <<_ACEOF
5512 /* end confdefs.h. */
5513 $ac_includes_default
5514 #include <$ac_header>
5515 _ACEOF
5516 rm -f conftest.$ac_objext
5517 if { (ac_try="$ac_compile"
5518 case "(($ac_try" in
5519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5520 *) ac_try_echo=$ac_try;;
5521 esac
5522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5523 (eval "$ac_compile") 2>conftest.er1
5524 ac_status=$?
5525 grep -v '^ *+' conftest.er1 >conftest.err
5526 rm -f conftest.er1
5527 cat conftest.err >&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } && {
5530 test -z "$ac_c_werror_flag" ||
5531 test ! -s conftest.err
5532 } && test -s conftest.$ac_objext; then
5533 ac_header_compiler=yes
5534 else
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.$ac_ext >&5
5538 ac_header_compiler=no
5541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5543 echo "${ECHO_T}$ac_header_compiler" >&6; }
5545 # Is the header present?
5546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5548 cat >conftest.$ac_ext <<_ACEOF
5549 /* confdefs.h. */
5550 _ACEOF
5551 cat confdefs.h >>conftest.$ac_ext
5552 cat >>conftest.$ac_ext <<_ACEOF
5553 /* end confdefs.h. */
5554 #include <$ac_header>
5555 _ACEOF
5556 if { (ac_try="$ac_cpp conftest.$ac_ext"
5557 case "(($ac_try" in
5558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5559 *) ac_try_echo=$ac_try;;
5560 esac
5561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5563 ac_status=$?
5564 grep -v '^ *+' conftest.er1 >conftest.err
5565 rm -f conftest.er1
5566 cat conftest.err >&5
5567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5568 (exit $ac_status); } >/dev/null && {
5569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5570 test ! -s conftest.err
5571 }; then
5572 ac_header_preproc=yes
5573 else
5574 echo "$as_me: failed program was:" >&5
5575 sed 's/^/| /' conftest.$ac_ext >&5
5577 ac_header_preproc=no
5580 rm -f conftest.err conftest.$ac_ext
5581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5582 echo "${ECHO_T}$ac_header_preproc" >&6; }
5584 # So? What about this header?
5585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5586 yes:no: )
5587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5591 ac_header_preproc=yes
5593 no:yes:* )
5594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5608 esac
5609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5612 echo $ECHO_N "(cached) $ECHO_C" >&6
5613 else
5614 eval "$as_ac_Header=\$ac_header_preproc"
5616 ac_res=`eval echo '${'$as_ac_Header'}'`
5617 { echo "$as_me:$LINENO: result: $ac_res" >&5
5618 echo "${ECHO_T}$ac_res" >&6; }
5621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5622 cat >>confdefs.h <<_ACEOF
5623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5624 _ACEOF
5628 done
5632 for ac_header in sys/mount.h
5634 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5638 echo $ECHO_N "(cached) $ECHO_C" >&6
5639 else
5640 cat >conftest.$ac_ext <<_ACEOF
5641 /* confdefs.h. */
5642 _ACEOF
5643 cat confdefs.h >>conftest.$ac_ext
5644 cat >>conftest.$ac_ext <<_ACEOF
5645 /* end confdefs.h. */
5646 #include <sys/param.h>
5648 #include <$ac_header>
5649 _ACEOF
5650 rm -f conftest.$ac_objext
5651 if { (ac_try="$ac_compile"
5652 case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655 esac
5656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_compile") 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_c_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest.$ac_objext; then
5667 eval "$as_ac_Header=yes"
5668 else
5669 echo "$as_me: failed program was:" >&5
5670 sed 's/^/| /' conftest.$ac_ext >&5
5672 eval "$as_ac_Header=no"
5675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 ac_res=`eval echo '${'$as_ac_Header'}'`
5678 { echo "$as_me:$LINENO: result: $ac_res" >&5
5679 echo "${ECHO_T}$ac_res" >&6; }
5680 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5681 cat >>confdefs.h <<_ACEOF
5682 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5683 _ACEOF
5687 done
5695 ac_header_dirent=no
5696 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5697 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5698 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5699 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703 cat >conftest.$ac_ext <<_ACEOF
5704 /* confdefs.h. */
5705 _ACEOF
5706 cat confdefs.h >>conftest.$ac_ext
5707 cat >>conftest.$ac_ext <<_ACEOF
5708 /* end confdefs.h. */
5709 #include <sys/types.h>
5710 #include <$ac_hdr>
5713 main ()
5715 if ((DIR *) 0)
5716 return 0;
5718 return 0;
5720 _ACEOF
5721 rm -f conftest.$ac_objext
5722 if { (ac_try="$ac_compile"
5723 case "(($ac_try" in
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5726 esac
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_compile") 2>conftest.er1
5729 ac_status=$?
5730 grep -v '^ *+' conftest.er1 >conftest.err
5731 rm -f conftest.er1
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } && {
5735 test -z "$ac_c_werror_flag" ||
5736 test ! -s conftest.err
5737 } && test -s conftest.$ac_objext; then
5738 eval "$as_ac_Header=yes"
5739 else
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5743 eval "$as_ac_Header=no"
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5748 ac_res=`eval echo '${'$as_ac_Header'}'`
5749 { echo "$as_me:$LINENO: result: $ac_res" >&5
5750 echo "${ECHO_T}$ac_res" >&6; }
5751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5752 cat >>confdefs.h <<_ACEOF
5753 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5754 _ACEOF
5756 ac_header_dirent=$ac_hdr; break
5759 done
5760 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5761 if test $ac_header_dirent = dirent.h; then
5762 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5763 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5764 if test "${ac_cv_search_opendir+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 else
5767 ac_func_search_save_LIBS=$LIBS
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h. */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5775 /* Override any GCC internal prototype to avoid an error.
5776 Use char because int might match the return type of a GCC
5777 builtin and then its argument prototype would still apply. */
5778 #ifdef __cplusplus
5779 extern "C"
5780 #endif
5781 char opendir ();
5783 main ()
5785 return opendir ();
5787 return 0;
5789 _ACEOF
5790 for ac_lib in '' dir; do
5791 if test -z "$ac_lib"; then
5792 ac_res="none required"
5793 else
5794 ac_res=-l$ac_lib
5795 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5797 rm -f conftest.$ac_objext conftest$ac_exeext
5798 if { (ac_try="$ac_link"
5799 case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802 esac
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_link") 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } && {
5811 test -z "$ac_c_werror_flag" ||
5812 test ! -s conftest.err
5813 } && test -s conftest$ac_exeext &&
5814 $as_test_x conftest$ac_exeext; then
5815 ac_cv_search_opendir=$ac_res
5816 else
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5824 conftest$ac_exeext
5825 if test "${ac_cv_search_opendir+set}" = set; then
5826 break
5828 done
5829 if test "${ac_cv_search_opendir+set}" = set; then
5831 else
5832 ac_cv_search_opendir=no
5834 rm conftest.$ac_ext
5835 LIBS=$ac_func_search_save_LIBS
5837 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5838 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5839 ac_res=$ac_cv_search_opendir
5840 if test "$ac_res" != no; then
5841 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5845 else
5846 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5847 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5848 if test "${ac_cv_search_opendir+set}" = set; then
5849 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 else
5851 ac_func_search_save_LIBS=$LIBS
5852 cat >conftest.$ac_ext <<_ACEOF
5853 /* confdefs.h. */
5854 _ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5859 /* Override any GCC internal prototype to avoid an error.
5860 Use char because int might match the return type of a GCC
5861 builtin and then its argument prototype would still apply. */
5862 #ifdef __cplusplus
5863 extern "C"
5864 #endif
5865 char opendir ();
5867 main ()
5869 return opendir ();
5871 return 0;
5873 _ACEOF
5874 for ac_lib in '' x; do
5875 if test -z "$ac_lib"; then
5876 ac_res="none required"
5877 else
5878 ac_res=-l$ac_lib
5879 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5881 rm -f conftest.$ac_objext conftest$ac_exeext
5882 if { (ac_try="$ac_link"
5883 case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886 esac
5887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_link") 2>conftest.er1
5889 ac_status=$?
5890 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } && {
5895 test -z "$ac_c_werror_flag" ||
5896 test ! -s conftest.err
5897 } && test -s conftest$ac_exeext &&
5898 $as_test_x conftest$ac_exeext; then
5899 ac_cv_search_opendir=$ac_res
5900 else
5901 echo "$as_me: failed program was:" >&5
5902 sed 's/^/| /' conftest.$ac_ext >&5
5907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5908 conftest$ac_exeext
5909 if test "${ac_cv_search_opendir+set}" = set; then
5910 break
5912 done
5913 if test "${ac_cv_search_opendir+set}" = set; then
5915 else
5916 ac_cv_search_opendir=no
5918 rm conftest.$ac_ext
5919 LIBS=$ac_func_search_save_LIBS
5921 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5922 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5923 ac_res=$ac_cv_search_opendir
5924 if test "$ac_res" != no; then
5925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5931 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5932 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5933 if test "${ac_cv_header_stat_broken+set}" = set; then
5934 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 else
5936 cat >conftest.$ac_ext <<_ACEOF
5937 /* confdefs.h. */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 #include <sys/types.h>
5943 #include <sys/stat.h>
5945 #if defined S_ISBLK && defined S_IFDIR
5946 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5947 #endif
5949 #if defined S_ISBLK && defined S_IFCHR
5950 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5951 #endif
5953 #if defined S_ISLNK && defined S_IFREG
5954 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5955 #endif
5957 #if defined S_ISSOCK && defined S_IFREG
5958 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5959 #endif
5961 _ACEOF
5962 rm -f conftest.$ac_objext
5963 if { (ac_try="$ac_compile"
5964 case "(($ac_try" in
5965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5966 *) ac_try_echo=$ac_try;;
5967 esac
5968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5969 (eval "$ac_compile") 2>conftest.er1
5970 ac_status=$?
5971 grep -v '^ *+' conftest.er1 >conftest.err
5972 rm -f conftest.er1
5973 cat conftest.err >&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); } && {
5976 test -z "$ac_c_werror_flag" ||
5977 test ! -s conftest.err
5978 } && test -s conftest.$ac_objext; then
5979 ac_cv_header_stat_broken=no
5980 else
5981 echo "$as_me: failed program was:" >&5
5982 sed 's/^/| /' conftest.$ac_ext >&5
5984 ac_cv_header_stat_broken=yes
5987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5989 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5990 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
5991 if test $ac_cv_header_stat_broken = yes; then
5993 cat >>confdefs.h <<\_ACEOF
5994 #define STAT_MACROS_BROKEN 1
5995 _ACEOF
5999 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6000 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6001 if test "${ac_cv_header_stdc+set}" = set; then
6002 echo $ECHO_N "(cached) $ECHO_C" >&6
6003 else
6004 cat >conftest.$ac_ext <<_ACEOF
6005 /* confdefs.h. */
6006 _ACEOF
6007 cat confdefs.h >>conftest.$ac_ext
6008 cat >>conftest.$ac_ext <<_ACEOF
6009 /* end confdefs.h. */
6010 #include <stdlib.h>
6011 #include <stdarg.h>
6012 #include <string.h>
6013 #include <float.h>
6016 main ()
6020 return 0;
6022 _ACEOF
6023 rm -f conftest.$ac_objext
6024 if { (ac_try="$ac_compile"
6025 case "(($ac_try" in
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6028 esac
6029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030 (eval "$ac_compile") 2>conftest.er1
6031 ac_status=$?
6032 grep -v '^ *+' conftest.er1 >conftest.err
6033 rm -f conftest.er1
6034 cat conftest.err >&5
6035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6036 (exit $ac_status); } && {
6037 test -z "$ac_c_werror_flag" ||
6038 test ! -s conftest.err
6039 } && test -s conftest.$ac_objext; then
6040 ac_cv_header_stdc=yes
6041 else
6042 echo "$as_me: failed program was:" >&5
6043 sed 's/^/| /' conftest.$ac_ext >&5
6045 ac_cv_header_stdc=no
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 if test $ac_cv_header_stdc = yes; then
6051 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 #include <string.h>
6060 _ACEOF
6061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6062 $EGREP "memchr" >/dev/null 2>&1; then
6064 else
6065 ac_cv_header_stdc=no
6067 rm -f conftest*
6071 if test $ac_cv_header_stdc = yes; then
6072 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6073 cat >conftest.$ac_ext <<_ACEOF
6074 /* confdefs.h. */
6075 _ACEOF
6076 cat confdefs.h >>conftest.$ac_ext
6077 cat >>conftest.$ac_ext <<_ACEOF
6078 /* end confdefs.h. */
6079 #include <stdlib.h>
6081 _ACEOF
6082 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6083 $EGREP "free" >/dev/null 2>&1; then
6085 else
6086 ac_cv_header_stdc=no
6088 rm -f conftest*
6092 if test $ac_cv_header_stdc = yes; then
6093 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6094 if test "$cross_compiling" = yes; then
6096 else
6097 cat >conftest.$ac_ext <<_ACEOF
6098 /* confdefs.h. */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103 #include <ctype.h>
6104 #include <stdlib.h>
6105 #if ((' ' & 0x0FF) == 0x020)
6106 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6107 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6108 #else
6109 # define ISLOWER(c) \
6110 (('a' <= (c) && (c) <= 'i') \
6111 || ('j' <= (c) && (c) <= 'r') \
6112 || ('s' <= (c) && (c) <= 'z'))
6113 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6114 #endif
6116 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6118 main ()
6120 int i;
6121 for (i = 0; i < 256; i++)
6122 if (XOR (islower (i), ISLOWER (i))
6123 || toupper (i) != TOUPPER (i))
6124 return 2;
6125 return 0;
6127 _ACEOF
6128 rm -f conftest$ac_exeext
6129 if { (ac_try="$ac_link"
6130 case "(($ac_try" in
6131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6132 *) ac_try_echo=$ac_try;;
6133 esac
6134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6135 (eval "$ac_link") 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6139 { (case "(($ac_try" in
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6142 esac
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_try") 2>&5
6145 ac_status=$?
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; }; then
6149 else
6150 echo "$as_me: program exited with status $ac_status" >&5
6151 echo "$as_me: failed program was:" >&5
6152 sed 's/^/| /' conftest.$ac_ext >&5
6154 ( exit $ac_status )
6155 ac_cv_header_stdc=no
6157 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6163 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6164 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6165 if test $ac_cv_header_stdc = yes; then
6167 cat >>confdefs.h <<\_ACEOF
6168 #define STDC_HEADERS 1
6169 _ACEOF
6173 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6174 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6175 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6176 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 else
6178 cat >conftest.$ac_ext <<_ACEOF
6179 /* confdefs.h. */
6180 _ACEOF
6181 cat confdefs.h >>conftest.$ac_ext
6182 cat >>conftest.$ac_ext <<_ACEOF
6183 /* end confdefs.h. */
6184 #include <sys/types.h>
6185 #include <sys/wait.h>
6186 #ifndef WEXITSTATUS
6187 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6188 #endif
6189 #ifndef WIFEXITED
6190 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6191 #endif
6194 main ()
6196 int s;
6197 wait (&s);
6198 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6200 return 0;
6202 _ACEOF
6203 rm -f conftest.$ac_objext
6204 if { (ac_try="$ac_compile"
6205 case "(($ac_try" in
6206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6207 *) ac_try_echo=$ac_try;;
6208 esac
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6211 ac_status=$?
6212 grep -v '^ *+' conftest.er1 >conftest.err
6213 rm -f conftest.er1
6214 cat conftest.err >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.$ac_objext; then
6220 ac_cv_header_sys_wait_h=yes
6221 else
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6225 ac_cv_header_sys_wait_h=no
6228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6231 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6232 if test $ac_cv_header_sys_wait_h = yes; then
6234 cat >>confdefs.h <<\_ACEOF
6235 #define HAVE_SYS_WAIT_H 1
6236 _ACEOF
6240 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6241 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6242 if test "${ac_cv_header_time+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6244 else
6245 cat >conftest.$ac_ext <<_ACEOF
6246 /* confdefs.h. */
6247 _ACEOF
6248 cat confdefs.h >>conftest.$ac_ext
6249 cat >>conftest.$ac_ext <<_ACEOF
6250 /* end confdefs.h. */
6251 #include <sys/types.h>
6252 #include <sys/time.h>
6253 #include <time.h>
6256 main ()
6258 if ((struct tm *) 0)
6259 return 0;
6261 return 0;
6263 _ACEOF
6264 rm -f conftest.$ac_objext
6265 if { (ac_try="$ac_compile"
6266 case "(($ac_try" in
6267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6268 *) ac_try_echo=$ac_try;;
6269 esac
6270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6271 (eval "$ac_compile") 2>conftest.er1
6272 ac_status=$?
6273 grep -v '^ *+' conftest.er1 >conftest.err
6274 rm -f conftest.er1
6275 cat conftest.err >&5
6276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6277 (exit $ac_status); } && {
6278 test -z "$ac_c_werror_flag" ||
6279 test ! -s conftest.err
6280 } && test -s conftest.$ac_objext; then
6281 ac_cv_header_time=yes
6282 else
6283 echo "$as_me: failed program was:" >&5
6284 sed 's/^/| /' conftest.$ac_ext >&5
6286 ac_cv_header_time=no
6289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6291 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6292 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6293 if test $ac_cv_header_time = yes; then
6295 cat >>confdefs.h <<\_ACEOF
6296 #define TIME_WITH_SYS_TIME 1
6297 _ACEOF
6301 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6302 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6303 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6304 echo $ECHO_N "(cached) $ECHO_C" >&6
6305 else
6306 cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h. */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 $ac_includes_default
6314 main ()
6316 static struct stat ac_aggr;
6317 if (ac_aggr.st_blksize)
6318 return 0;
6320 return 0;
6322 _ACEOF
6323 rm -f conftest.$ac_objext
6324 if { (ac_try="$ac_compile"
6325 case "(($ac_try" in
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6328 esac
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_compile") 2>conftest.er1
6331 ac_status=$?
6332 grep -v '^ *+' conftest.er1 >conftest.err
6333 rm -f conftest.er1
6334 cat conftest.err >&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); } && {
6337 test -z "$ac_c_werror_flag" ||
6338 test ! -s conftest.err
6339 } && test -s conftest.$ac_objext; then
6340 ac_cv_member_struct_stat_st_blksize=yes
6341 else
6342 echo "$as_me: failed program was:" >&5
6343 sed 's/^/| /' conftest.$ac_ext >&5
6345 cat >conftest.$ac_ext <<_ACEOF
6346 /* confdefs.h. */
6347 _ACEOF
6348 cat confdefs.h >>conftest.$ac_ext
6349 cat >>conftest.$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 $ac_includes_default
6353 main ()
6355 static struct stat ac_aggr;
6356 if (sizeof ac_aggr.st_blksize)
6357 return 0;
6359 return 0;
6361 _ACEOF
6362 rm -f conftest.$ac_objext
6363 if { (ac_try="$ac_compile"
6364 case "(($ac_try" in
6365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6366 *) ac_try_echo=$ac_try;;
6367 esac
6368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6369 (eval "$ac_compile") 2>conftest.er1
6370 ac_status=$?
6371 grep -v '^ *+' conftest.er1 >conftest.err
6372 rm -f conftest.er1
6373 cat conftest.err >&5
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); } && {
6376 test -z "$ac_c_werror_flag" ||
6377 test ! -s conftest.err
6378 } && test -s conftest.$ac_objext; then
6379 ac_cv_member_struct_stat_st_blksize=yes
6380 else
6381 echo "$as_me: failed program was:" >&5
6382 sed 's/^/| /' conftest.$ac_ext >&5
6384 ac_cv_member_struct_stat_st_blksize=no
6387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6392 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6393 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6394 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6396 cat >>confdefs.h <<_ACEOF
6397 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6398 _ACEOF
6401 cat >>confdefs.h <<\_ACEOF
6402 #define HAVE_ST_BLKSIZE 1
6403 _ACEOF
6408 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6409 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6410 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6411 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 else
6413 cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h. */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 $ac_includes_default
6421 main ()
6423 static struct stat ac_aggr;
6424 if (ac_aggr.st_blocks)
6425 return 0;
6427 return 0;
6429 _ACEOF
6430 rm -f conftest.$ac_objext
6431 if { (ac_try="$ac_compile"
6432 case "(($ac_try" in
6433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6434 *) ac_try_echo=$ac_try;;
6435 esac
6436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6437 (eval "$ac_compile") 2>conftest.er1
6438 ac_status=$?
6439 grep -v '^ *+' conftest.er1 >conftest.err
6440 rm -f conftest.er1
6441 cat conftest.err >&5
6442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6443 (exit $ac_status); } && {
6444 test -z "$ac_c_werror_flag" ||
6445 test ! -s conftest.err
6446 } && test -s conftest.$ac_objext; then
6447 ac_cv_member_struct_stat_st_blocks=yes
6448 else
6449 echo "$as_me: failed program was:" >&5
6450 sed 's/^/| /' conftest.$ac_ext >&5
6452 cat >conftest.$ac_ext <<_ACEOF
6453 /* confdefs.h. */
6454 _ACEOF
6455 cat confdefs.h >>conftest.$ac_ext
6456 cat >>conftest.$ac_ext <<_ACEOF
6457 /* end confdefs.h. */
6458 $ac_includes_default
6460 main ()
6462 static struct stat ac_aggr;
6463 if (sizeof ac_aggr.st_blocks)
6464 return 0;
6466 return 0;
6468 _ACEOF
6469 rm -f conftest.$ac_objext
6470 if { (ac_try="$ac_compile"
6471 case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6474 esac
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_compile") 2>conftest.er1
6477 ac_status=$?
6478 grep -v '^ *+' conftest.er1 >conftest.err
6479 rm -f conftest.er1
6480 cat conftest.err >&5
6481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6482 (exit $ac_status); } && {
6483 test -z "$ac_c_werror_flag" ||
6484 test ! -s conftest.err
6485 } && test -s conftest.$ac_objext; then
6486 ac_cv_member_struct_stat_st_blocks=yes
6487 else
6488 echo "$as_me: failed program was:" >&5
6489 sed 's/^/| /' conftest.$ac_ext >&5
6491 ac_cv_member_struct_stat_st_blocks=no
6494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6500 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6501 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6503 cat >>confdefs.h <<_ACEOF
6504 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6505 _ACEOF
6508 cat >>confdefs.h <<\_ACEOF
6509 #define HAVE_ST_BLOCKS 1
6510 _ACEOF
6512 else
6513 case " $LIBOBJS " in
6514 *" fileblocks.$ac_objext "* ) ;;
6515 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6517 esac
6522 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6523 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6524 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6525 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 else
6527 cat >conftest.$ac_ext <<_ACEOF
6528 /* confdefs.h. */
6529 _ACEOF
6530 cat confdefs.h >>conftest.$ac_ext
6531 cat >>conftest.$ac_ext <<_ACEOF
6532 /* end confdefs.h. */
6533 $ac_includes_default
6535 main ()
6537 static struct stat ac_aggr;
6538 if (ac_aggr.st_rdev)
6539 return 0;
6541 return 0;
6543 _ACEOF
6544 rm -f conftest.$ac_objext
6545 if { (ac_try="$ac_compile"
6546 case "(($ac_try" in
6547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6548 *) ac_try_echo=$ac_try;;
6549 esac
6550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6551 (eval "$ac_compile") 2>conftest.er1
6552 ac_status=$?
6553 grep -v '^ *+' conftest.er1 >conftest.err
6554 rm -f conftest.er1
6555 cat conftest.err >&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); } && {
6558 test -z "$ac_c_werror_flag" ||
6559 test ! -s conftest.err
6560 } && test -s conftest.$ac_objext; then
6561 ac_cv_member_struct_stat_st_rdev=yes
6562 else
6563 echo "$as_me: failed program was:" >&5
6564 sed 's/^/| /' conftest.$ac_ext >&5
6566 cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h. */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 $ac_includes_default
6574 main ()
6576 static struct stat ac_aggr;
6577 if (sizeof ac_aggr.st_rdev)
6578 return 0;
6580 return 0;
6582 _ACEOF
6583 rm -f conftest.$ac_objext
6584 if { (ac_try="$ac_compile"
6585 case "(($ac_try" in
6586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6587 *) ac_try_echo=$ac_try;;
6588 esac
6589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6590 (eval "$ac_compile") 2>conftest.er1
6591 ac_status=$?
6592 grep -v '^ *+' conftest.er1 >conftest.err
6593 rm -f conftest.er1
6594 cat conftest.err >&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); } && {
6597 test -z "$ac_c_werror_flag" ||
6598 test ! -s conftest.err
6599 } && test -s conftest.$ac_objext; then
6600 ac_cv_member_struct_stat_st_rdev=yes
6601 else
6602 echo "$as_me: failed program was:" >&5
6603 sed 's/^/| /' conftest.$ac_ext >&5
6605 ac_cv_member_struct_stat_st_rdev=no
6608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6614 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6615 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6617 cat >>confdefs.h <<_ACEOF
6618 #define HAVE_STRUCT_STAT_ST_RDEV 1
6619 _ACEOF
6622 cat >>confdefs.h <<\_ACEOF
6623 #define HAVE_ST_RDEV 1
6624 _ACEOF
6629 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6630 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6631 if test "${ac_cv_struct_tm+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 else
6634 cat >conftest.$ac_ext <<_ACEOF
6635 /* confdefs.h. */
6636 _ACEOF
6637 cat confdefs.h >>conftest.$ac_ext
6638 cat >>conftest.$ac_ext <<_ACEOF
6639 /* end confdefs.h. */
6640 #include <sys/types.h>
6641 #include <time.h>
6644 main ()
6646 struct tm tm;
6647 int *p = &tm.tm_sec;
6648 return !p;
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_struct_tm=time.h
6671 else
6672 echo "$as_me: failed program was:" >&5
6673 sed 's/^/| /' conftest.$ac_ext >&5
6675 ac_cv_struct_tm=sys/time.h
6678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6680 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6681 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6682 if test $ac_cv_struct_tm = sys/time.h; then
6684 cat >>confdefs.h <<\_ACEOF
6685 #define TM_IN_SYS_TIME 1
6686 _ACEOF
6690 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6691 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6692 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6693 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 else
6695 cat >conftest.$ac_ext <<_ACEOF
6696 /* confdefs.h. */
6697 _ACEOF
6698 cat confdefs.h >>conftest.$ac_ext
6699 cat >>conftest.$ac_ext <<_ACEOF
6700 /* end confdefs.h. */
6701 #include <sys/types.h>
6702 #include <$ac_cv_struct_tm>
6706 main ()
6708 static struct tm ac_aggr;
6709 if (ac_aggr.tm_zone)
6710 return 0;
6712 return 0;
6714 _ACEOF
6715 rm -f conftest.$ac_objext
6716 if { (ac_try="$ac_compile"
6717 case "(($ac_try" in
6718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6719 *) ac_try_echo=$ac_try;;
6720 esac
6721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6722 (eval "$ac_compile") 2>conftest.er1
6723 ac_status=$?
6724 grep -v '^ *+' conftest.er1 >conftest.err
6725 rm -f conftest.er1
6726 cat conftest.err >&5
6727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6728 (exit $ac_status); } && {
6729 test -z "$ac_c_werror_flag" ||
6730 test ! -s conftest.err
6731 } && test -s conftest.$ac_objext; then
6732 ac_cv_member_struct_tm_tm_zone=yes
6733 else
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6737 cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h. */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 #include <sys/types.h>
6744 #include <$ac_cv_struct_tm>
6748 main ()
6750 static struct tm ac_aggr;
6751 if (sizeof ac_aggr.tm_zone)
6752 return 0;
6754 return 0;
6756 _ACEOF
6757 rm -f conftest.$ac_objext
6758 if { (ac_try="$ac_compile"
6759 case "(($ac_try" in
6760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761 *) ac_try_echo=$ac_try;;
6762 esac
6763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6764 (eval "$ac_compile") 2>conftest.er1
6765 ac_status=$?
6766 grep -v '^ *+' conftest.er1 >conftest.err
6767 rm -f conftest.er1
6768 cat conftest.err >&5
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); } && {
6771 test -z "$ac_c_werror_flag" ||
6772 test ! -s conftest.err
6773 } && test -s conftest.$ac_objext; then
6774 ac_cv_member_struct_tm_tm_zone=yes
6775 else
6776 echo "$as_me: failed program was:" >&5
6777 sed 's/^/| /' conftest.$ac_ext >&5
6779 ac_cv_member_struct_tm_tm_zone=no
6782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6788 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6789 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6791 cat >>confdefs.h <<_ACEOF
6792 #define HAVE_STRUCT_TM_TM_ZONE 1
6793 _ACEOF
6798 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6800 cat >>confdefs.h <<\_ACEOF
6801 #define HAVE_TM_ZONE 1
6802 _ACEOF
6804 else
6805 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6806 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6807 if test "${ac_cv_have_decl_tzname+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 else
6810 cat >conftest.$ac_ext <<_ACEOF
6811 /* confdefs.h. */
6812 _ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6816 #include <time.h>
6819 main ()
6821 #ifndef tzname
6822 (void) tzname;
6823 #endif
6826 return 0;
6828 _ACEOF
6829 rm -f conftest.$ac_objext
6830 if { (ac_try="$ac_compile"
6831 case "(($ac_try" in
6832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6833 *) ac_try_echo=$ac_try;;
6834 esac
6835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6836 (eval "$ac_compile") 2>conftest.er1
6837 ac_status=$?
6838 grep -v '^ *+' conftest.er1 >conftest.err
6839 rm -f conftest.er1
6840 cat conftest.err >&5
6841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6842 (exit $ac_status); } && {
6843 test -z "$ac_c_werror_flag" ||
6844 test ! -s conftest.err
6845 } && test -s conftest.$ac_objext; then
6846 ac_cv_have_decl_tzname=yes
6847 else
6848 echo "$as_me: failed program was:" >&5
6849 sed 's/^/| /' conftest.$ac_ext >&5
6851 ac_cv_have_decl_tzname=no
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6857 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6858 if test $ac_cv_have_decl_tzname = yes; then
6860 cat >>confdefs.h <<_ACEOF
6861 #define HAVE_DECL_TZNAME 1
6862 _ACEOF
6865 else
6866 cat >>confdefs.h <<_ACEOF
6867 #define HAVE_DECL_TZNAME 0
6868 _ACEOF
6874 { echo "$as_me:$LINENO: checking for tzname" >&5
6875 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6876 if test "${ac_cv_var_tzname+set}" = set; then
6877 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 else
6879 cat >conftest.$ac_ext <<_ACEOF
6880 /* confdefs.h. */
6881 _ACEOF
6882 cat confdefs.h >>conftest.$ac_ext
6883 cat >>conftest.$ac_ext <<_ACEOF
6884 /* end confdefs.h. */
6885 #include <time.h>
6886 #if !HAVE_DECL_TZNAME
6887 extern char *tzname[];
6888 #endif
6891 main ()
6893 return tzname[0][0];
6895 return 0;
6897 _ACEOF
6898 rm -f conftest.$ac_objext conftest$ac_exeext
6899 if { (ac_try="$ac_link"
6900 case "(($ac_try" in
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6903 esac
6904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6905 (eval "$ac_link") 2>conftest.er1
6906 ac_status=$?
6907 grep -v '^ *+' conftest.er1 >conftest.err
6908 rm -f conftest.er1
6909 cat conftest.err >&5
6910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6911 (exit $ac_status); } && {
6912 test -z "$ac_c_werror_flag" ||
6913 test ! -s conftest.err
6914 } && test -s conftest$ac_exeext &&
6915 $as_test_x conftest$ac_exeext; then
6916 ac_cv_var_tzname=yes
6917 else
6918 echo "$as_me: failed program was:" >&5
6919 sed 's/^/| /' conftest.$ac_ext >&5
6921 ac_cv_var_tzname=no
6924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6925 conftest$ac_exeext conftest.$ac_ext
6927 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6928 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
6929 if test $ac_cv_var_tzname = yes; then
6931 cat >>confdefs.h <<\_ACEOF
6932 #define HAVE_TZNAME 1
6933 _ACEOF
6938 { echo "$as_me:$LINENO: checking for off_t" >&5
6939 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6940 if test "${ac_cv_type_off_t+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 else
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h. */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h. */
6949 $ac_includes_default
6950 typedef off_t ac__type_new_;
6952 main ()
6954 if ((ac__type_new_ *) 0)
6955 return 0;
6956 if (sizeof (ac__type_new_))
6957 return 0;
6959 return 0;
6961 _ACEOF
6962 rm -f conftest.$ac_objext
6963 if { (ac_try="$ac_compile"
6964 case "(($ac_try" in
6965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6966 *) ac_try_echo=$ac_try;;
6967 esac
6968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6969 (eval "$ac_compile") 2>conftest.er1
6970 ac_status=$?
6971 grep -v '^ *+' conftest.er1 >conftest.err
6972 rm -f conftest.er1
6973 cat conftest.err >&5
6974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6975 (exit $ac_status); } && {
6976 test -z "$ac_c_werror_flag" ||
6977 test ! -s conftest.err
6978 } && test -s conftest.$ac_objext; then
6979 ac_cv_type_off_t=yes
6980 else
6981 echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6984 ac_cv_type_off_t=no
6987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6990 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6991 if test $ac_cv_type_off_t = yes; then
6993 else
6995 cat >>confdefs.h <<_ACEOF
6996 #define off_t long int
6997 _ACEOF
7001 { echo "$as_me:$LINENO: checking for pid_t" >&5
7002 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7003 if test "${ac_cv_type_pid_t+set}" = set; then
7004 echo $ECHO_N "(cached) $ECHO_C" >&6
7005 else
7006 cat >conftest.$ac_ext <<_ACEOF
7007 /* confdefs.h. */
7008 _ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7012 $ac_includes_default
7013 typedef pid_t ac__type_new_;
7015 main ()
7017 if ((ac__type_new_ *) 0)
7018 return 0;
7019 if (sizeof (ac__type_new_))
7020 return 0;
7022 return 0;
7024 _ACEOF
7025 rm -f conftest.$ac_objext
7026 if { (ac_try="$ac_compile"
7027 case "(($ac_try" in
7028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7029 *) ac_try_echo=$ac_try;;
7030 esac
7031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7032 (eval "$ac_compile") 2>conftest.er1
7033 ac_status=$?
7034 grep -v '^ *+' conftest.er1 >conftest.err
7035 rm -f conftest.er1
7036 cat conftest.err >&5
7037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7038 (exit $ac_status); } && {
7039 test -z "$ac_c_werror_flag" ||
7040 test ! -s conftest.err
7041 } && test -s conftest.$ac_objext; then
7042 ac_cv_type_pid_t=yes
7043 else
7044 echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7047 ac_cv_type_pid_t=no
7050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7052 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7053 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7054 if test $ac_cv_type_pid_t = yes; then
7056 else
7058 cat >>confdefs.h <<_ACEOF
7059 #define pid_t int
7060 _ACEOF
7064 { echo "$as_me:$LINENO: checking for size_t" >&5
7065 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7066 if test "${ac_cv_type_size_t+set}" = set; then
7067 echo $ECHO_N "(cached) $ECHO_C" >&6
7068 else
7069 cat >conftest.$ac_ext <<_ACEOF
7070 /* confdefs.h. */
7071 _ACEOF
7072 cat confdefs.h >>conftest.$ac_ext
7073 cat >>conftest.$ac_ext <<_ACEOF
7074 /* end confdefs.h. */
7075 $ac_includes_default
7076 typedef size_t ac__type_new_;
7078 main ()
7080 if ((ac__type_new_ *) 0)
7081 return 0;
7082 if (sizeof (ac__type_new_))
7083 return 0;
7085 return 0;
7087 _ACEOF
7088 rm -f conftest.$ac_objext
7089 if { (ac_try="$ac_compile"
7090 case "(($ac_try" in
7091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7092 *) ac_try_echo=$ac_try;;
7093 esac
7094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7095 (eval "$ac_compile") 2>conftest.er1
7096 ac_status=$?
7097 grep -v '^ *+' conftest.er1 >conftest.err
7098 rm -f conftest.er1
7099 cat conftest.err >&5
7100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7101 (exit $ac_status); } && {
7102 test -z "$ac_c_werror_flag" ||
7103 test ! -s conftest.err
7104 } && test -s conftest.$ac_objext; then
7105 ac_cv_type_size_t=yes
7106 else
7107 echo "$as_me: failed program was:" >&5
7108 sed 's/^/| /' conftest.$ac_ext >&5
7110 ac_cv_type_size_t=no
7113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7115 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7116 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7117 if test $ac_cv_type_size_t = yes; then
7119 else
7121 cat >>confdefs.h <<_ACEOF
7122 #define size_t unsigned int
7123 _ACEOF
7127 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7128 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7129 if test "${ac_cv_type_uid_t+set}" = set; then
7130 echo $ECHO_N "(cached) $ECHO_C" >&6
7131 else
7132 cat >conftest.$ac_ext <<_ACEOF
7133 /* confdefs.h. */
7134 _ACEOF
7135 cat confdefs.h >>conftest.$ac_ext
7136 cat >>conftest.$ac_ext <<_ACEOF
7137 /* end confdefs.h. */
7138 #include <sys/types.h>
7140 _ACEOF
7141 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7142 $EGREP "uid_t" >/dev/null 2>&1; then
7143 ac_cv_type_uid_t=yes
7144 else
7145 ac_cv_type_uid_t=no
7147 rm -f conftest*
7150 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7151 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7152 if test $ac_cv_type_uid_t = no; then
7154 cat >>confdefs.h <<\_ACEOF
7155 #define uid_t int
7156 _ACEOF
7159 cat >>confdefs.h <<\_ACEOF
7160 #define gid_t int
7161 _ACEOF
7166 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7167 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7168 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h. */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 $ac_includes_default
7179 main ()
7181 static struct tm ac_aggr;
7182 if (ac_aggr.tm_gmtoff)
7183 return 0;
7185 return 0;
7187 _ACEOF
7188 rm -f conftest.$ac_objext
7189 if { (ac_try="$ac_compile"
7190 case "(($ac_try" in
7191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7192 *) ac_try_echo=$ac_try;;
7193 esac
7194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7195 (eval "$ac_compile") 2>conftest.er1
7196 ac_status=$?
7197 grep -v '^ *+' conftest.er1 >conftest.err
7198 rm -f conftest.er1
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } && {
7202 test -z "$ac_c_werror_flag" ||
7203 test ! -s conftest.err
7204 } && test -s conftest.$ac_objext; then
7205 ac_cv_member_struct_tm_tm_gmtoff=yes
7206 else
7207 echo "$as_me: failed program was:" >&5
7208 sed 's/^/| /' conftest.$ac_ext >&5
7210 cat >conftest.$ac_ext <<_ACEOF
7211 /* confdefs.h. */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
7215 /* end confdefs.h. */
7216 $ac_includes_default
7218 main ()
7220 static struct tm ac_aggr;
7221 if (sizeof ac_aggr.tm_gmtoff)
7222 return 0;
7224 return 0;
7226 _ACEOF
7227 rm -f conftest.$ac_objext
7228 if { (ac_try="$ac_compile"
7229 case "(($ac_try" in
7230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7231 *) ac_try_echo=$ac_try;;
7232 esac
7233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7234 (eval "$ac_compile") 2>conftest.er1
7235 ac_status=$?
7236 grep -v '^ *+' conftest.er1 >conftest.err
7237 rm -f conftest.er1
7238 cat conftest.err >&5
7239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7240 (exit $ac_status); } && {
7241 test -z "$ac_c_werror_flag" ||
7242 test ! -s conftest.err
7243 } && test -s conftest.$ac_objext; then
7244 ac_cv_member_struct_tm_tm_gmtoff=yes
7245 else
7246 echo "$as_me: failed program was:" >&5
7247 sed 's/^/| /' conftest.$ac_ext >&5
7249 ac_cv_member_struct_tm_tm_gmtoff=no
7252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7258 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7259 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7261 cat >>confdefs.h <<_ACEOF
7262 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7263 _ACEOF
7269 # Look for some functions
7284 for ac_func in getpagesize kqueue statfs statvfs \
7285 clone kse_create rfork_thread thr_create sa_register \
7286 getcontext makecontext setcontext sigaltstack swapcontext
7288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 else
7294 cat >conftest.$ac_ext <<_ACEOF
7295 /* confdefs.h. */
7296 _ACEOF
7297 cat confdefs.h >>conftest.$ac_ext
7298 cat >>conftest.$ac_ext <<_ACEOF
7299 /* end confdefs.h. */
7300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7302 #define $ac_func innocuous_$ac_func
7304 /* System header to define __stub macros and hopefully few prototypes,
7305 which can conflict with char $ac_func (); below.
7306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7307 <limits.h> exists even on freestanding compilers. */
7309 #ifdef __STDC__
7310 # include <limits.h>
7311 #else
7312 # include <assert.h>
7313 #endif
7315 #undef $ac_func
7317 /* Override any GCC internal prototype to avoid an error.
7318 Use char because int might match the return type of a GCC
7319 builtin and then its argument prototype would still apply. */
7320 #ifdef __cplusplus
7321 extern "C"
7322 #endif
7323 char $ac_func ();
7324 /* The GNU C library defines this for functions which it implements
7325 to always fail with ENOSYS. Some functions are actually named
7326 something starting with __ and the normal name is an alias. */
7327 #if defined __stub_$ac_func || defined __stub___$ac_func
7328 choke me
7329 #endif
7332 main ()
7334 return $ac_func ();
7336 return 0;
7338 _ACEOF
7339 rm -f conftest.$ac_objext conftest$ac_exeext
7340 if { (ac_try="$ac_link"
7341 case "(($ac_try" in
7342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7343 *) ac_try_echo=$ac_try;;
7344 esac
7345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7346 (eval "$ac_link") 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } && {
7353 test -z "$ac_c_werror_flag" ||
7354 test ! -s conftest.err
7355 } && test -s conftest$ac_exeext &&
7356 $as_test_x conftest$ac_exeext; then
7357 eval "$as_ac_var=yes"
7358 else
7359 echo "$as_me: failed program was:" >&5
7360 sed 's/^/| /' conftest.$ac_ext >&5
7362 eval "$as_ac_var=no"
7365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7366 conftest$ac_exeext conftest.$ac_ext
7368 ac_res=`eval echo '${'$as_ac_var'}'`
7369 { echo "$as_me:$LINENO: result: $ac_res" >&5
7370 echo "${ECHO_T}$ac_res" >&6; }
7371 if test `eval echo '${'$as_ac_var'}'` = yes; then
7372 cat >>confdefs.h <<_ACEOF
7373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7374 _ACEOF
7377 done
7382 for ac_header in stdlib.h unistd.h
7384 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7386 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7387 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7389 echo $ECHO_N "(cached) $ECHO_C" >&6
7391 ac_res=`eval echo '${'$as_ac_Header'}'`
7392 { echo "$as_me:$LINENO: result: $ac_res" >&5
7393 echo "${ECHO_T}$ac_res" >&6; }
7394 else
7395 # Is the header compilable?
7396 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7398 cat >conftest.$ac_ext <<_ACEOF
7399 /* confdefs.h. */
7400 _ACEOF
7401 cat confdefs.h >>conftest.$ac_ext
7402 cat >>conftest.$ac_ext <<_ACEOF
7403 /* end confdefs.h. */
7404 $ac_includes_default
7405 #include <$ac_header>
7406 _ACEOF
7407 rm -f conftest.$ac_objext
7408 if { (ac_try="$ac_compile"
7409 case "(($ac_try" in
7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7412 esac
7413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7414 (eval "$ac_compile") 2>conftest.er1
7415 ac_status=$?
7416 grep -v '^ *+' conftest.er1 >conftest.err
7417 rm -f conftest.er1
7418 cat conftest.err >&5
7419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7420 (exit $ac_status); } && {
7421 test -z "$ac_c_werror_flag" ||
7422 test ! -s conftest.err
7423 } && test -s conftest.$ac_objext; then
7424 ac_header_compiler=yes
7425 else
7426 echo "$as_me: failed program was:" >&5
7427 sed 's/^/| /' conftest.$ac_ext >&5
7429 ac_header_compiler=no
7432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7433 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7434 echo "${ECHO_T}$ac_header_compiler" >&6; }
7436 # Is the header present?
7437 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7439 cat >conftest.$ac_ext <<_ACEOF
7440 /* confdefs.h. */
7441 _ACEOF
7442 cat confdefs.h >>conftest.$ac_ext
7443 cat >>conftest.$ac_ext <<_ACEOF
7444 /* end confdefs.h. */
7445 #include <$ac_header>
7446 _ACEOF
7447 if { (ac_try="$ac_cpp conftest.$ac_ext"
7448 case "(($ac_try" in
7449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7450 *) ac_try_echo=$ac_try;;
7451 esac
7452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7454 ac_status=$?
7455 grep -v '^ *+' conftest.er1 >conftest.err
7456 rm -f conftest.er1
7457 cat conftest.err >&5
7458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7459 (exit $ac_status); } >/dev/null && {
7460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7461 test ! -s conftest.err
7462 }; then
7463 ac_header_preproc=yes
7464 else
7465 echo "$as_me: failed program was:" >&5
7466 sed 's/^/| /' conftest.$ac_ext >&5
7468 ac_header_preproc=no
7471 rm -f conftest.err conftest.$ac_ext
7472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7473 echo "${ECHO_T}$ac_header_preproc" >&6; }
7475 # So? What about this header?
7476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7477 yes:no: )
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7479 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7482 ac_header_preproc=yes
7484 no:yes:* )
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7486 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7488 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7490 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7492 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7495 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7496 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7499 esac
7500 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7501 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7502 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7503 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 else
7505 eval "$as_ac_Header=\$ac_header_preproc"
7507 ac_res=`eval echo '${'$as_ac_Header'}'`
7508 { echo "$as_me:$LINENO: result: $ac_res" >&5
7509 echo "${ECHO_T}$ac_res" >&6; }
7512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7513 cat >>confdefs.h <<_ACEOF
7514 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7515 _ACEOF
7519 done
7522 for ac_func in getpagesize
7524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7525 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7527 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7529 else
7530 cat >conftest.$ac_ext <<_ACEOF
7531 /* confdefs.h. */
7532 _ACEOF
7533 cat confdefs.h >>conftest.$ac_ext
7534 cat >>conftest.$ac_ext <<_ACEOF
7535 /* end confdefs.h. */
7536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7538 #define $ac_func innocuous_$ac_func
7540 /* System header to define __stub macros and hopefully few prototypes,
7541 which can conflict with char $ac_func (); below.
7542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7543 <limits.h> exists even on freestanding compilers. */
7545 #ifdef __STDC__
7546 # include <limits.h>
7547 #else
7548 # include <assert.h>
7549 #endif
7551 #undef $ac_func
7553 /* Override any GCC internal prototype to avoid an error.
7554 Use char because int might match the return type of a GCC
7555 builtin and then its argument prototype would still apply. */
7556 #ifdef __cplusplus
7557 extern "C"
7558 #endif
7559 char $ac_func ();
7560 /* The GNU C library defines this for functions which it implements
7561 to always fail with ENOSYS. Some functions are actually named
7562 something starting with __ and the normal name is an alias. */
7563 #if defined __stub_$ac_func || defined __stub___$ac_func
7564 choke me
7565 #endif
7568 main ()
7570 return $ac_func ();
7572 return 0;
7574 _ACEOF
7575 rm -f conftest.$ac_objext conftest$ac_exeext
7576 if { (ac_try="$ac_link"
7577 case "(($ac_try" in
7578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7579 *) ac_try_echo=$ac_try;;
7580 esac
7581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7582 (eval "$ac_link") 2>conftest.er1
7583 ac_status=$?
7584 grep -v '^ *+' conftest.er1 >conftest.err
7585 rm -f conftest.er1
7586 cat conftest.err >&5
7587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7588 (exit $ac_status); } && {
7589 test -z "$ac_c_werror_flag" ||
7590 test ! -s conftest.err
7591 } && test -s conftest$ac_exeext &&
7592 $as_test_x conftest$ac_exeext; then
7593 eval "$as_ac_var=yes"
7594 else
7595 echo "$as_me: failed program was:" >&5
7596 sed 's/^/| /' conftest.$ac_ext >&5
7598 eval "$as_ac_var=no"
7601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7602 conftest$ac_exeext conftest.$ac_ext
7604 ac_res=`eval echo '${'$as_ac_var'}'`
7605 { echo "$as_me:$LINENO: result: $ac_res" >&5
7606 echo "${ECHO_T}$ac_res" >&6; }
7607 if test `eval echo '${'$as_ac_var'}'` = yes; then
7608 cat >>confdefs.h <<_ACEOF
7609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7610 _ACEOF
7613 done
7615 { echo "$as_me:$LINENO: checking for working mmap" >&5
7616 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7617 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 else
7620 if test "$cross_compiling" = yes; then
7621 ac_cv_func_mmap_fixed_mapped=no
7622 else
7623 cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h. */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 $ac_includes_default
7630 /* malloc might have been renamed as rpl_malloc. */
7631 #undef malloc
7633 /* Thanks to Mike Haertel and Jim Avera for this test.
7634 Here is a matrix of mmap possibilities:
7635 mmap private not fixed
7636 mmap private fixed at somewhere currently unmapped
7637 mmap private fixed at somewhere already mapped
7638 mmap shared not fixed
7639 mmap shared fixed at somewhere currently unmapped
7640 mmap shared fixed at somewhere already mapped
7641 For private mappings, we should verify that changes cannot be read()
7642 back from the file, nor mmap's back from the file at a different
7643 address. (There have been systems where private was not correctly
7644 implemented like the infamous i386 svr4.0, and systems where the
7645 VM page cache was not coherent with the file system buffer cache
7646 like early versions of FreeBSD and possibly contemporary NetBSD.)
7647 For shared mappings, we should conversely verify that changes get
7648 propagated back to all the places they're supposed to be.
7650 Grep wants private fixed already mapped.
7651 The main things grep needs to know about mmap are:
7652 * does it exist and is it safe to write into the mmap'd area
7653 * how to use it (BSD variants) */
7655 #include <fcntl.h>
7656 #include <sys/mman.h>
7658 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7659 char *malloc ();
7660 #endif
7662 /* This mess was copied from the GNU getpagesize.h. */
7663 #ifndef HAVE_GETPAGESIZE
7664 /* Assume that all systems that can run configure have sys/param.h. */
7665 # ifndef HAVE_SYS_PARAM_H
7666 # define HAVE_SYS_PARAM_H 1
7667 # endif
7669 # ifdef _SC_PAGESIZE
7670 # define getpagesize() sysconf(_SC_PAGESIZE)
7671 # else /* no _SC_PAGESIZE */
7672 # ifdef HAVE_SYS_PARAM_H
7673 # include <sys/param.h>
7674 # ifdef EXEC_PAGESIZE
7675 # define getpagesize() EXEC_PAGESIZE
7676 # else /* no EXEC_PAGESIZE */
7677 # ifdef NBPG
7678 # define getpagesize() NBPG * CLSIZE
7679 # ifndef CLSIZE
7680 # define CLSIZE 1
7681 # endif /* no CLSIZE */
7682 # else /* no NBPG */
7683 # ifdef NBPC
7684 # define getpagesize() NBPC
7685 # else /* no NBPC */
7686 # ifdef PAGESIZE
7687 # define getpagesize() PAGESIZE
7688 # endif /* PAGESIZE */
7689 # endif /* no NBPC */
7690 # endif /* no NBPG */
7691 # endif /* no EXEC_PAGESIZE */
7692 # else /* no HAVE_SYS_PARAM_H */
7693 # define getpagesize() 8192 /* punt totally */
7694 # endif /* no HAVE_SYS_PARAM_H */
7695 # endif /* no _SC_PAGESIZE */
7697 #endif /* no HAVE_GETPAGESIZE */
7700 main ()
7702 char *data, *data2, *data3;
7703 int i, pagesize;
7704 int fd;
7706 pagesize = getpagesize ();
7708 /* First, make a file with some known garbage in it. */
7709 data = (char *) malloc (pagesize);
7710 if (!data)
7711 return 1;
7712 for (i = 0; i < pagesize; ++i)
7713 *(data + i) = rand ();
7714 umask (0);
7715 fd = creat ("conftest.mmap", 0600);
7716 if (fd < 0)
7717 return 1;
7718 if (write (fd, data, pagesize) != pagesize)
7719 return 1;
7720 close (fd);
7722 /* Next, try to mmap the file at a fixed address which already has
7723 something else allocated at it. If we can, also make sure that
7724 we see the same garbage. */
7725 fd = open ("conftest.mmap", O_RDWR);
7726 if (fd < 0)
7727 return 1;
7728 data2 = (char *) malloc (2 * pagesize);
7729 if (!data2)
7730 return 1;
7731 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7732 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7733 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7734 return 1;
7735 for (i = 0; i < pagesize; ++i)
7736 if (*(data + i) != *(data2 + i))
7737 return 1;
7739 /* Finally, make sure that changes to the mapped area do not
7740 percolate back to the file as seen by read(). (This is a bug on
7741 some variants of i386 svr4.0.) */
7742 for (i = 0; i < pagesize; ++i)
7743 *(data2 + i) = *(data2 + i) + 1;
7744 data3 = (char *) malloc (pagesize);
7745 if (!data3)
7746 return 1;
7747 if (read (fd, data3, pagesize) != pagesize)
7748 return 1;
7749 for (i = 0; i < pagesize; ++i)
7750 if (*(data + i) != *(data3 + i))
7751 return 1;
7752 close (fd);
7753 return 0;
7755 _ACEOF
7756 rm -f conftest$ac_exeext
7757 if { (ac_try="$ac_link"
7758 case "(($ac_try" in
7759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7760 *) ac_try_echo=$ac_try;;
7761 esac
7762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7763 (eval "$ac_link") 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7767 { (case "(($ac_try" in
7768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7769 *) ac_try_echo=$ac_try;;
7770 esac
7771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7772 (eval "$ac_try") 2>&5
7773 ac_status=$?
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; }; then
7776 ac_cv_func_mmap_fixed_mapped=yes
7777 else
7778 echo "$as_me: program exited with status $ac_status" >&5
7779 echo "$as_me: failed program was:" >&5
7780 sed 's/^/| /' conftest.$ac_ext >&5
7782 ( exit $ac_status )
7783 ac_cv_func_mmap_fixed_mapped=no
7785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7790 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7791 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7792 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7794 cat >>confdefs.h <<\_ACEOF
7795 #define HAVE_MMAP 1
7796 _ACEOF
7799 rm -f conftest.mmap
7804 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7805 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7806 aros_config_ldflags=""
7808 aros_shared_default=yes
7810 aros_shared_cflags="-fPIC"
7811 aros_shared_aflags=""
7812 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7813 aros_kernel_ldflags="-Wl,-rpath,./lib"
7815 aros_target_ar_flags="cr"
7816 aros_target_nm_flags="-C -ul"
7817 aros_target_strip_flags="--strip-unneeded -R.comment"
7819 aros_compiler_libs=
7821 aros_target_genmap="-Wl,-Map -Xlinker"
7823 # Native flavour stuff
7824 aros_bochs_hack="0"
7825 aros_serial_debug="0"
7827 # Palm native flavour stuff
7828 aros_palm_debug_hack="0"
7830 # Unix flavour stuff
7831 aros_nesting_supervisor="0"
7833 # Collect-aros stuff: "-ius" to ignore undefined symbols
7834 ignore_undefined_symbols=""
7836 #-----------------------------------------------------------------------------
7838 { echo "$as_me:$LINENO: checking whether ${CC} accepts -fno-stack-protector" >&5
7839 echo $ECHO_N "checking whether ${CC} accepts -fno-stack-protector... $ECHO_C" >&6; }
7840 save_cflags="$CFLAGS"
7841 CFLAGS="$CFLAGS -fno-stack-protector"
7842 cat >conftest.$ac_ext <<_ACEOF
7843 /* confdefs.h. */
7844 _ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7850 main ()
7854 return 0;
7856 _ACEOF
7857 rm -f conftest.$ac_objext
7858 if { (ac_try="$ac_compile"
7859 case "(($ac_try" in
7860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7861 *) ac_try_echo=$ac_try;;
7862 esac
7863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7864 (eval "$ac_compile") 2>conftest.er1
7865 ac_status=$?
7866 grep -v '^ *+' conftest.er1 >conftest.err
7867 rm -f conftest.er1
7868 cat conftest.err >&5
7869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870 (exit $ac_status); } && {
7871 test -z "$ac_c_werror_flag" ||
7872 test ! -s conftest.err
7873 } && test -s conftest.$ac_objext; then
7874 use_no_stack_protector="yes"
7875 else
7876 echo "$as_me: failed program was:" >&5
7877 sed 's/^/| /' conftest.$ac_ext >&5
7879 use_no_stack_protector="no"
7882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7883 { echo "$as_me:$LINENO: result: $use_no_stack_protector" >&5
7884 echo "${ECHO_T}$use_no_stack_protector" >&6; }
7885 if test "x-$use_no_stack_protector" = "x-yes" ; then
7886 aros_target_cc_options="-fno-stack-protector"
7888 CFLAGS="$save_cflags"
7890 #-----------------------------------------------------------------------------
7892 { echo "$as_me:$LINENO: checking for type of build" >&5
7893 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
7894 # Check whether --enable-build_type was given.
7895 if test "${enable_build_type+set}" = set; then
7896 enableval=$enable_build_type; build_type=$enableval
7897 else
7898 build_type="personal"
7902 if test "$build_type" = "nightly"; then
7903 build_type_string="NIGHTLY"
7904 elif test "$build_type" = "snapshot"; then
7905 build_type_string="SNAPSHOT"
7906 elif test "$build_type" = "milestone"; then
7907 build_type_string="MILESTONE"
7908 elif test "$build_type" = "release"; then
7909 build_type_string="RELEASE"
7910 else
7911 build_type_string="PERSONAL"
7912 build_type="personal"
7915 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7917 { echo "$as_me:$LINENO: result: $build_type" >&5
7918 echo "${ECHO_T}$build_type" >&6; }
7920 #-----------------------------------------------------------------------------
7921 all_debug_types="messages stack mungwall modules symbols"
7923 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
7924 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
7925 # Check whether --enable-debug was given.
7926 if test "${enable_debug+set}" = set; then
7927 enableval=$enable_debug; debug="$enableval"
7928 else
7929 debug=""
7933 if test "$debug" = "" -o "$debug" = "no"; then
7934 debug="none"
7935 elif test "$debug" = "yes"; then
7936 debug="all"
7939 if test "$debug" = "all" ; then
7940 debug=$all_debug_types
7941 for d in $all_debug_types; do
7942 export aros_${d}_debug="1"
7943 done
7944 else
7945 for d in $all_debug_types; do
7946 export aros_${d}_debug="0"
7947 done
7950 if test "$debug" != "none"; then
7951 debug=`echo $debug | sed s/,/\ /g`
7952 for d in $debug; do
7953 found="0"
7954 for d2 in $all_debug_types; do
7955 if test "$d2" = "$d"; then
7956 found="1"
7957 break
7959 done
7960 if test "$found" = "0"; then
7961 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
7962 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
7963 { (exit 1); exit 1; }; }
7965 export aros_${d}_debug="1"
7966 done
7967 aros_debug="yes"
7969 { echo "$as_me:$LINENO: result: $debug" >&5
7970 echo "${ECHO_T}$debug" >&6; }
7972 if test "$aros_messages_debug" = "1"; then
7973 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7974 else
7975 aros_messages_debug=""
7977 if test "$aros_symbols_debug" = "1"; then
7978 aros_symbols_debug="-g"
7979 else
7980 aros_symbols_debug=""
7983 # These are the flags to pass when compiling debugged programs
7984 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7985 aros_debug_aflags=""
7986 aros_debug_ldflags="$aros_symbols_debug"
7988 #-----------------------------------------------------------------------------
7989 # Checking for distcc and ccache.
7991 # Always apply the transforms in this particular order. Basically you should
7992 # always run 'ccache distcc compiler' in that order for the best performance.
7994 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
7995 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
7996 # Check whether --enable-distcc was given.
7997 if test "${enable_distcc+set}" = set; then
7998 enableval=$enable_distcc; distcc="$enableval"
7999 else
8000 distcc="no"
8003 if test "$distcc" != "" -a "$distcc" != "no"; then
8004 # AC_CHECK_PROG will print out the result in this case
8005 # Extract the first word of "distcc", so it can be a program name with args.
8006 set dummy distcc; ac_word=$2
8007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8009 if test "${ac_cv_path_DISTCC+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012 case $DISTCC in
8013 [\\/]* | ?:[\\/]*)
8014 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8020 IFS=$as_save_IFS
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8024 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
8025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8026 break 2
8028 done
8029 done
8030 IFS=$as_save_IFS
8032 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
8034 esac
8036 DISTCC=$ac_cv_path_DISTCC
8037 if test -n "$DISTCC"; then
8038 { echo "$as_me:$LINENO: result: $DISTCC" >&5
8039 echo "${ECHO_T}$DISTCC" >&6; }
8040 else
8041 { echo "$as_me:$LINENO: result: no" >&5
8042 echo "${ECHO_T}no" >&6; }
8046 else
8047 { echo "$as_me:$LINENO: result: no" >&5
8048 echo "${ECHO_T}no" >&6; }
8051 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
8052 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
8053 # Check whether --enable-ccache was given.
8054 if test "${enable_ccache+set}" = set; then
8055 enableval=$enable_ccache; ccache="$enableval"
8056 else
8057 ccache="no"
8060 if test "$ccache" != "" -a "$ccache" != "no"; then
8061 # AC_CHECK_PROG will print out the result in this case
8062 # Extract the first word of "ccache", so it can be a program name with args.
8063 set dummy ccache; ac_word=$2
8064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8066 if test "${ac_cv_prog_CCACHE+set}" = set; then
8067 echo $ECHO_N "(cached) $ECHO_C" >&6
8068 else
8069 if test -n "$CCACHE"; then
8070 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8071 else
8072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 for as_dir in $PATH
8075 IFS=$as_save_IFS
8076 test -z "$as_dir" && as_dir=.
8077 for ac_exec_ext in '' $ac_executable_extensions; do
8078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8079 ac_cv_prog_CCACHE="ccache"
8080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8081 break 2
8083 done
8084 done
8085 IFS=$as_save_IFS
8089 CCACHE=$ac_cv_prog_CCACHE
8090 if test -n "$CCACHE"; then
8091 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8092 echo "${ECHO_T}$CCACHE" >&6; }
8093 else
8094 { echo "$as_me:$LINENO: result: no" >&5
8095 echo "${ECHO_T}no" >&6; }
8099 else
8100 { echo "$as_me:$LINENO: result: no" >&5
8101 echo "${ECHO_T}no" >&6; }
8104 #-----------------------------------------------------------------------------
8105 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8106 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8108 # Check whether --with-optimization was given.
8109 if test "${with_optimization+set}" = set; then
8110 withval=$with_optimization; optimization="$withval"
8111 else
8112 optimization="unknown"
8115 if test "$optimization" = "unknown"; then
8116 if test "$debug" != "none"; then
8117 optimization="-O0"
8118 else
8119 optimization="-O2"
8122 aros_config_cflags="$aros_config_cflags $optimization"
8123 { echo "$as_me:$LINENO: result: $optimization" >&5
8124 echo "${ECHO_T}$optimization" >&6; }
8126 #-----------------------------------------------------------------------------
8127 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8128 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8129 # Check whether --enable-target_variant was given.
8130 if test "${enable_target_variant+set}" = set; then
8131 enableval=$enable_target_variant; target_variant=$enableval
8132 else
8133 target_variant="none"
8136 if test "$target_variant" = "none"; then
8137 aros_target_variant=""
8138 aros_target_suffix=""
8139 else
8140 aros_target_variant="$target_variant"
8141 aros_target_suffix="-$target_variant"
8143 { echo "$as_me:$LINENO: result: $enableval" >&5
8144 echo "${ECHO_T}$enableval" >&6; }
8146 #-----------------------------------------------------------------------------
8147 # This is the target configuration switch.
8148 case "$target_os" in
8149 linux*)
8150 aros_target_arch="linux"
8151 case "$target_cpu" in
8152 *m68k*)
8153 aros_target_cpu="m68k"
8154 aros_object_format="m68kelf"
8155 aros_flavour="emulcompat"
8156 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8157 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8158 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8159 gcc_target_cpu="mc68000"
8161 *i?86*)
8162 aros_target_cpu="i386"
8163 aros_object_format="elf_i386"
8164 aros_flavour="emulation"
8165 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8166 aros_default_wbdepth=8
8167 gcc_target_cpu="i386"
8169 *x86_64*)
8170 aros_target_cpu="x86_64"
8171 aros_object_format="elf_x86_64"
8172 aros_flavour="emulation"
8173 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8174 aros_default_wbdepth=8
8175 gcc_target_cpu="x86_64"
8177 *powerpc*)
8178 aros_target_cpu="ppc"
8179 aros_object_format="elf32ppc"
8180 aros_flavour="emulation"
8181 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8182 aros_default_wbdepth=8
8183 gcc_target_cpu="ppc"
8186 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8187 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8188 { (exit 1); exit 1; }; }
8190 esac
8194 aros_target_arch="pc"
8195 aros_shared_default="no"
8196 case "$target_cpu" in
8197 *i?86*)
8198 aros_target_cpu="i386"
8201 if test "$aros_object_format" = "" ; then
8202 aros_object_format="elf_i386"
8204 aros_flavour="standalone"
8205 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8206 aros_kernel_ldflags=""
8207 aros_default_wbwidth=640
8208 aros_default_wbheight=480
8209 gcc_target_cpu="i386"
8211 *x86_64*)
8212 aros_target_cpu="x86_64"
8213 if test "$aros_object_format" = "" ; then
8214 aros_object_format="elf_x86_64"
8216 aros_flavour="standalone"
8217 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8218 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8219 aros_kernel_ldflags=""
8220 aros_default_wbwidth=640
8221 aros_default_wbheight=480
8222 gcc_target_cpu="x86_64"
8225 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8226 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8227 { (exit 1); exit 1; }; }
8229 esac
8232 prep)
8233 aros_target_arch="prep"
8234 aros_shared_default="no"
8235 aros_target_cpu="ppc"
8236 aros_object_format="elf32ppc"
8237 aros_flavour="ppcnative"
8238 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8239 aros_kernel_ldflags=""
8240 aros_default_wbwidth=640
8241 aros_default_wbheight=480
8242 gcc_target_cpu="ppc"
8243 case "$target_cpu" in
8244 *cross*)
8245 aros_target_cc="ppc-linux-gcc -pipe"
8246 aros_target_ld="ppc-linux-ld"
8247 aros_target_as="ppc-linux-as"
8248 aros_target_ar="ppc-linux-ar"
8249 aros_target_ranlib="ppc-linux-ranlib"
8250 aros_target_nm="ppc-linux-nm"
8251 aros_target_strip="ppc-linux-strip"
8252 aros_target_objcopy="ppc-linux-objcopy"
8253 aros_target_objdump="ppc-linux-objdump"
8254 aros_shared_ld="ppc-linux-ld"
8255 aros_kernel_ld="ppc-linux-ld"
8259 esac
8262 freebsd*)
8263 aros_target_arch="freebsd"
8264 aros_target_cpu="i386"
8265 aros_flavour="emulation"
8266 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8267 gcc_target_cpu="i386"
8269 aros_target_strip_flags="-x"
8272 darwin*)
8273 aros_target_arch="darwin"
8274 aros_target_cpu="i386"
8275 aros_flavour="emulation"
8276 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8277 gcc_target_cpu="i386"
8279 aros_target_strip_flags="-x"
8282 netbsd*)
8283 aros_target_arch="netbsd"
8284 case "$target_cpu" in
8285 *m68k*)
8286 aros_target_cpu="m68k"
8287 aros_object_format="m68kelf"
8288 aros_flavour="emulcompat"
8289 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8290 gcc_target_cpu="mc68000"
8292 *i?86*)
8293 aros_target_cpu="i386"
8294 aros_object_format="elf_i386"
8295 aros_flavour="emulation"
8296 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8297 aros_default_wbdepth=8
8298 gcc_target_cpu="i386"
8301 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8302 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8303 { (exit 1); exit 1; }; }
8305 esac
8306 aros_target_genmap="-Wl,-M -Xlinker >"
8307 aros_flavour="emulation"
8308 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8311 openbsd*)
8312 aros_target_arch="openbsd"
8313 case "$target_cpu" in
8314 *i?86*)
8315 aros_target_cpu="i386"
8316 aros_object_format="elf_i386"
8317 aros_flavour="emulation"
8318 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8319 gcc_target_cpu="i386"
8322 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8323 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8324 { (exit 1); exit 1; }; }
8326 esac
8327 aros_target_genmap="-Wl,-M -Xlinker >"
8328 aros_target_nm_flags="-u"
8329 aros_flavour="emulation"
8332 solaris*)
8333 aros_target_arch="solaris"
8334 case "$target_cpu" in
8335 *sparc*)
8336 aros_target_cpu="sparc"
8337 aros_object_format="elf_sparc"
8338 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8339 gcc_target_cpu="sparc"
8342 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8343 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8344 { (exit 1); exit 1; }; }
8346 esac
8347 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8348 aros_flavour="emulation"
8351 morphos*)
8352 aros_target_arch="morphos"
8353 aros_shared_default="no"
8354 aros_target_cpu="ppc"
8355 aros_object_format="elf_ppc"
8356 aros_flavour="nativecompat"
8357 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8358 gcc_target_cpu="ppc"
8361 amiga*)
8362 aros_target_arch="amiga"
8363 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8364 aros_shared_default="no"
8366 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8368 case "$target_cpu" in
8369 *m68k*)
8370 aros_target_cpu="m68k"
8371 aros_object_format="m68kelf"
8372 aros_flavour="nativecompat"
8373 gcc_target_cpu="mc68000"
8375 *ppc*)
8376 aros_cpu="ppc"
8377 aros_flavour="native"
8378 gcc_target_cpu="ppc"
8381 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8382 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8383 { (exit 1); exit 1; }; }
8385 esac
8388 cygwin*)
8389 aros_target_arch="cygwin"
8390 aros_shared_default="no"
8391 case "$target_cpu" in
8392 *i?86*)
8393 aros_target_cpu="i386"
8394 aros_object_format="elf_i386"
8395 aros_flavour="emulation"
8396 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8397 aros_shared_cflags=""
8398 aros_default_wbdepth=8
8399 gcc_target_cpu="i386"
8402 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8403 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8404 { (exit 1); exit 1; }; }
8406 esac
8408 pp*)
8409 aros_target_arch="pp"
8410 aros_shared_default="no"
8411 case "$target_cpu" in
8412 *m68k*)
8413 aros_target_cpu="m68k"
8414 aros_object_format="m68kelf"
8415 aros_flavour="palmnative"
8416 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8417 aros_kernel_ldflags=""
8418 aros_default_wbwidth=160
8419 aros_default_wbheight=160
8420 aros_default_wbdepth=1
8421 aros_target_cc="m68k-elf-gcc -pipe"
8422 aros_target_ld="$(which m68k-elf-ld)"
8423 aros_target_as="m68k-elf-gcc -pipe"
8424 aros_shared_ld="m68k-elf-gcc"
8425 aros_kernel_ld="m68k-elf-gcc"
8426 aros_target_ar="m68k-elf-ar"
8427 aros_target_ar_flags="cru"
8428 aros_target_ranlib="m68k-elf-ranlib"
8429 aros_target_nm="m68k-elf-nm"
8430 aros_target_objcopy="m68k-elf-objcopy"
8431 aros_target_objdump="m68k-elf-objdump"
8432 aros_compiler_libs="-lgcc1"
8433 aros_shared_default=no
8434 aros_shared_cflags="-fpic"
8435 aros_shared_aflags=""
8436 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8437 aros_kernel_ldflags="-Wl,-rpath,./lib"
8438 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8439 aros_debug_aflags=""
8440 aros_debug_ldflags="$aros_symbols_debug"
8441 aros_mungwall_debug="0"
8442 aros_modules_debug="0"
8443 gcc_target_cpu="mc68000"
8444 ignore_undefined_symbols="-ius"
8447 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8448 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8449 { (exit 1); exit 1; }; }
8451 esac
8454 mac*)
8455 aros_target_arch="mac"
8456 aros_shared_default="no"
8457 case "$target_cpu" in
8458 *m68k*)
8459 aros_target_cpu="m68k"
8460 aros_object_format="m68kelf"
8461 aros_flavour="mac68knative"
8462 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8463 aros_default_wbwidth=512
8464 aros_default_wbheight=384
8465 aros_default_wbdepth=8
8466 aros_target_cc="m68k-elf-gcc -pipe"
8467 aros_target_ld="$(which m68k-elf-ld)"
8468 aros_target_as="m68k-elf-gcc -pipe"
8469 aros_shared_ld="m68k-elf-gcc"
8470 aros_kernel_ld="m68k-elf-gcc"
8471 aros_target_ar="m68k-elf-ar"
8472 aros_target_ar_flags="cru"
8473 aros_target_ranlib="m68k-elf-ranlib"
8474 aros_target_nm="m68k-elf-nm"
8475 aros_target_objcopy="m68k-elf-objcopy"
8476 aros_target_objdump="m68k-elf-objdump"
8477 aros_compiler_libs="-lgcc1"
8478 aros_shared_default=no
8479 aros_shared_cflags="-fpic"
8480 aros_shared_aflags=""
8481 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8482 aros_kernel_ldflags="-Wl,-rpath,./lib"
8483 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8484 aros_debug_aflags=""
8485 aros_debug_ldflags="$aros_symbols_debug"
8486 aros_mungwall_debug="0"
8487 aros_modules_debug="0"
8488 gcc_target_cpu="mc68000"
8489 ignore_undefined_symbols="-ius"
8492 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8493 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8494 { (exit 1); exit 1; }; }
8496 esac
8500 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8501 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8502 { (exit 1); exit 1; }; }
8504 esac
8507 # Find out if we are cross-compiling (ie. if we can't use the host compiler
8508 # for target code)
8509 cross_compiling=no
8510 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8511 cross_compiling=yes
8513 if test "$aros_host_arch" == "darwin" ; then
8514 cross_compiling=yes
8517 # Set prefix for target compiler etc. if we're cross-compiling
8518 # (should possibly be earlier but needs to be after AC_PROG_CC)
8519 if test "$cross_compiling" = "yes" ; then
8520 target_tool_prefix=${target_cpu}-elf-
8521 CC=${target_tool_prefix}gcc
8524 # Find all the tools we need to compile. This could be cross-compiling
8525 # though! If that is the case we use the GNU form of the target and
8526 # simply add this to the front of the binary name. This is rather simple,
8527 # but it should work under most circumstances.
8529 # The default tools are to use the same as the host, but only if the
8530 # host and target CPU are the same. With GCC this is normally enough.
8533 aros_cc_pre=""
8534 aros_shared_ld="$aros_host_ld"
8536 aros_target_mkdep="$aros_host_mkdep"
8537 aros_target_incl_def="$aros_host_incl"
8539 # Extract the first word of "$CC", so it can be a program name with args.
8540 set dummy $CC; ac_word=$2
8541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8543 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
8544 echo $ECHO_N "(cached) $ECHO_C" >&6
8545 else
8546 case $aros_kernel_cc in
8547 [\\/]* | ?:[\\/]*)
8548 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8552 for as_dir in $PATH
8554 IFS=$as_save_IFS
8555 test -z "$as_dir" && as_dir=.
8556 for ac_exec_ext in '' $ac_executable_extensions; do
8557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8558 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8559 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8560 break 2
8562 done
8563 done
8564 IFS=$as_save_IFS
8567 esac
8569 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8570 if test -n "$aros_kernel_cc"; then
8571 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
8572 echo "${ECHO_T}$aros_kernel_cc" >&6; }
8573 else
8574 { echo "$as_me:$LINENO: result: no" >&5
8575 echo "${ECHO_T}no" >&6; }
8580 # The default tools executables to be linked to.
8582 if test "$cross_compiling" = "yes" ; then
8583 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8584 set dummy ${target_tool_prefix}as; ac_word=$2
8585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8587 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8588 echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590 case $aros_target_as_ln in
8591 [\\/]* | ?:[\\/]*)
8592 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8602 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 break 2
8606 done
8607 done
8608 IFS=$as_save_IFS
8611 esac
8613 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8614 if test -n "$aros_target_as_ln"; then
8615 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8616 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8617 else
8618 { echo "$as_me:$LINENO: result: no" >&5
8619 echo "${ECHO_T}no" >&6; }
8623 else
8624 if test "$GCC" = "yes"; then
8625 aros_gcc_as=`$CC -print-prog-name=as`
8626 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8627 set dummy `basename $aros_gcc_as`; ac_word=$2
8628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8630 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8631 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 else
8633 case $aros_target_as_ln in
8634 [\\/]* | ?:[\\/]*)
8635 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8639 for as_dir in `dirname $aros_gcc_as`
8641 IFS=$as_save_IFS
8642 test -z "$as_dir" && as_dir=.
8643 for ac_exec_ext in '' $ac_executable_extensions; do
8644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8645 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8646 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8647 break 2
8649 done
8650 done
8651 IFS=$as_save_IFS
8654 esac
8656 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8657 if test -n "$aros_target_as_ln"; then
8658 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8659 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8660 else
8661 { echo "$as_me:$LINENO: result: no" >&5
8662 echo "${ECHO_T}no" >&6; }
8667 if test "$aros_target_as_ln" = ""; then
8668 # Extract the first word of "as", so it can be a program name with args.
8669 set dummy as; ac_word=$2
8670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8672 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8673 echo $ECHO_N "(cached) $ECHO_C" >&6
8674 else
8675 case $aros_target_as_ln in
8676 [\\/]* | ?:[\\/]*)
8677 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8681 for as_dir in $PATH
8683 IFS=$as_save_IFS
8684 test -z "$as_dir" && as_dir=.
8685 for ac_exec_ext in '' $ac_executable_extensions; do
8686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8687 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8689 break 2
8691 done
8692 done
8693 IFS=$as_save_IFS
8696 esac
8698 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8699 if test -n "$aros_target_as_ln"; then
8700 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8701 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8702 else
8703 { echo "$as_me:$LINENO: result: no" >&5
8704 echo "${ECHO_T}no" >&6; }
8711 if test "$aros_target_as_ln" = ""; then
8712 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
8713 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
8714 { (exit 1); exit 1; }; }
8717 if test "$cross_compiling" = "yes" ; then
8718 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8719 set dummy ${target_tool_prefix}ld; ac_word=$2
8720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8722 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8723 echo $ECHO_N "(cached) $ECHO_C" >&6
8724 else
8725 case $aros_kernel_ld in
8726 [\\/]* | ?:[\\/]*)
8727 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731 for as_dir in $PATH
8733 IFS=$as_save_IFS
8734 test -z "$as_dir" && as_dir=.
8735 for ac_exec_ext in '' $ac_executable_extensions; do
8736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8737 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8739 break 2
8741 done
8742 done
8743 IFS=$as_save_IFS
8746 esac
8748 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8749 if test -n "$aros_kernel_ld"; then
8750 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8751 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8752 else
8753 { echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6; }
8758 else
8759 if test "$GCC" = "yes"; then
8760 aros_gcc_ld=`$CC -print-prog-name=ld`
8761 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8762 set dummy `basename $aros_gcc_ld`; ac_word=$2
8763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8765 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8766 echo $ECHO_N "(cached) $ECHO_C" >&6
8767 else
8768 case $aros_kernel_ld in
8769 [\\/]* | ?:[\\/]*)
8770 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in `dirname $aros_gcc_ld`
8776 IFS=$as_save_IFS
8777 test -z "$as_dir" && as_dir=.
8778 for ac_exec_ext in '' $ac_executable_extensions; do
8779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8780 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8782 break 2
8784 done
8785 done
8786 IFS=$as_save_IFS
8789 esac
8791 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8792 if test -n "$aros_kernel_ld"; then
8793 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8794 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8795 else
8796 { echo "$as_me:$LINENO: result: no" >&5
8797 echo "${ECHO_T}no" >&6; }
8802 if test "$aros_kernel_ld" = ""; then
8803 # Extract the first word of "ld", so it can be a program name with args.
8804 set dummy ld; ac_word=$2
8805 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8807 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8808 echo $ECHO_N "(cached) $ECHO_C" >&6
8809 else
8810 case $aros_kernel_ld in
8811 [\\/]* | ?:[\\/]*)
8812 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8816 for as_dir in $PATH
8818 IFS=$as_save_IFS
8819 test -z "$as_dir" && as_dir=.
8820 for ac_exec_ext in '' $ac_executable_extensions; do
8821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8822 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8824 break 2
8826 done
8827 done
8828 IFS=$as_save_IFS
8831 esac
8833 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8834 if test -n "$aros_kernel_ld"; then
8835 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8836 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8837 else
8838 { echo "$as_me:$LINENO: result: no" >&5
8839 echo "${ECHO_T}no" >&6; }
8846 if test "$aros_kernel_ld" = ""; then
8847 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
8848 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
8849 { (exit 1); exit 1; }; }
8852 if test "$cross_compiling" = "yes" ; then
8853 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8854 set dummy ${target_tool_prefix}ar; ac_word=$2
8855 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8857 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8858 echo $ECHO_N "(cached) $ECHO_C" >&6
8859 else
8860 case $aros_target_ar_ln in
8861 [\\/]* | ?:[\\/]*)
8862 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866 for as_dir in $PATH
8868 IFS=$as_save_IFS
8869 test -z "$as_dir" && as_dir=.
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8872 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 break 2
8876 done
8877 done
8878 IFS=$as_save_IFS
8881 esac
8883 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8884 if test -n "$aros_target_ar_ln"; then
8885 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8886 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8887 else
8888 { echo "$as_me:$LINENO: result: no" >&5
8889 echo "${ECHO_T}no" >&6; }
8893 else
8894 if test "$GCC" = "yes"; then
8895 aros_gcc_ar=`$CC -print-prog-name=ar`
8896 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8897 set dummy `basename $aros_gcc_ar`; ac_word=$2
8898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8900 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 else
8903 case $aros_target_ar_ln in
8904 [\\/]* | ?:[\\/]*)
8905 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8909 for as_dir in `dirname $aros_gcc_ar`
8911 IFS=$as_save_IFS
8912 test -z "$as_dir" && as_dir=.
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8915 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8916 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8917 break 2
8919 done
8920 done
8921 IFS=$as_save_IFS
8924 esac
8926 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8927 if test -n "$aros_target_ar_ln"; then
8928 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8929 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8930 else
8931 { echo "$as_me:$LINENO: result: no" >&5
8932 echo "${ECHO_T}no" >&6; }
8937 if test "$aros_target_ar_ln" = ""; then
8938 # Extract the first word of "ar", so it can be a program name with args.
8939 set dummy ar; ac_word=$2
8940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8942 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8943 echo $ECHO_N "(cached) $ECHO_C" >&6
8944 else
8945 case $aros_target_ar_ln in
8946 [\\/]* | ?:[\\/]*)
8947 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8951 for as_dir in $PATH
8953 IFS=$as_save_IFS
8954 test -z "$as_dir" && as_dir=.
8955 for ac_exec_ext in '' $ac_executable_extensions; do
8956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8957 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8959 break 2
8961 done
8962 done
8963 IFS=$as_save_IFS
8966 esac
8968 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8969 if test -n "$aros_target_ar_ln"; then
8970 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8971 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8972 else
8973 { echo "$as_me:$LINENO: result: no" >&5
8974 echo "${ECHO_T}no" >&6; }
8981 if test "$aros_target_ar_ln" = ""; then
8982 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
8983 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
8984 { (exit 1); exit 1; }; }
8987 if test "$cross_compiling" = "yes" ; then
8988 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8989 set dummy ${target_tool_prefix}nm; ac_word=$2
8990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8992 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 else
8995 case $aros_target_nm_ln in
8996 [\\/]* | ?:[\\/]*)
8997 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9001 for as_dir in $PATH
9003 IFS=$as_save_IFS
9004 test -z "$as_dir" && as_dir=.
9005 for ac_exec_ext in '' $ac_executable_extensions; do
9006 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9007 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9009 break 2
9011 done
9012 done
9013 IFS=$as_save_IFS
9016 esac
9018 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9019 if test -n "$aros_target_nm_ln"; then
9020 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9021 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9022 else
9023 { echo "$as_me:$LINENO: result: no" >&5
9024 echo "${ECHO_T}no" >&6; }
9028 else
9029 if test "$GCC" = "yes"; then
9030 aros_gcc_nm=`$CC -print-prog-name=nm`
9031 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
9032 set dummy `basename $aros_gcc_nm`; ac_word=$2
9033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9035 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9036 echo $ECHO_N "(cached) $ECHO_C" >&6
9037 else
9038 case $aros_target_nm_ln in
9039 [\\/]* | ?:[\\/]*)
9040 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9044 for as_dir in `dirname $aros_gcc_nm`
9046 IFS=$as_save_IFS
9047 test -z "$as_dir" && as_dir=.
9048 for ac_exec_ext in '' $ac_executable_extensions; do
9049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9050 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9052 break 2
9054 done
9055 done
9056 IFS=$as_save_IFS
9059 esac
9061 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9062 if test -n "$aros_target_nm_ln"; then
9063 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9064 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9065 else
9066 { echo "$as_me:$LINENO: result: no" >&5
9067 echo "${ECHO_T}no" >&6; }
9072 if test "$aros_target_nm_ln" = ""; then
9073 # Extract the first word of "nm", so it can be a program name with args.
9074 set dummy nm; ac_word=$2
9075 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9076 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9077 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9078 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 else
9080 case $aros_target_nm_ln in
9081 [\\/]* | ?:[\\/]*)
9082 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9086 for as_dir in $PATH
9088 IFS=$as_save_IFS
9089 test -z "$as_dir" && as_dir=.
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9092 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9093 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 break 2
9096 done
9097 done
9098 IFS=$as_save_IFS
9101 esac
9103 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9104 if test -n "$aros_target_nm_ln"; then
9105 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9106 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9107 else
9108 { echo "$as_me:$LINENO: result: no" >&5
9109 echo "${ECHO_T}no" >&6; }
9116 if test "$aros_target_nm_ln" = ""; then
9117 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
9118 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
9119 { (exit 1); exit 1; }; }
9122 if test "$cross_compiling" = "yes" ; then
9123 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9124 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9127 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9128 echo $ECHO_N "(cached) $ECHO_C" >&6
9129 else
9130 case $aros_target_objcopy_ln in
9131 [\\/]* | ?:[\\/]*)
9132 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9136 for as_dir in $PATH
9138 IFS=$as_save_IFS
9139 test -z "$as_dir" && as_dir=.
9140 for ac_exec_ext in '' $ac_executable_extensions; do
9141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9142 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9144 break 2
9146 done
9147 done
9148 IFS=$as_save_IFS
9151 esac
9153 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9154 if test -n "$aros_target_objcopy_ln"; then
9155 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9156 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9157 else
9158 { echo "$as_me:$LINENO: result: no" >&5
9159 echo "${ECHO_T}no" >&6; }
9163 else
9164 if test "$GCC" = "yes"; then
9165 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9166 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9167 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9170 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9171 echo $ECHO_N "(cached) $ECHO_C" >&6
9172 else
9173 case $aros_target_objcopy_ln in
9174 [\\/]* | ?:[\\/]*)
9175 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9179 for as_dir in `dirname $aros_gcc_objcopy`
9181 IFS=$as_save_IFS
9182 test -z "$as_dir" && as_dir=.
9183 for ac_exec_ext in '' $ac_executable_extensions; do
9184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9185 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9187 break 2
9189 done
9190 done
9191 IFS=$as_save_IFS
9194 esac
9196 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9197 if test -n "$aros_target_objcopy_ln"; then
9198 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9199 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9200 else
9201 { echo "$as_me:$LINENO: result: no" >&5
9202 echo "${ECHO_T}no" >&6; }
9207 if test "$aros_target_objcopy_ln" = ""; then
9208 # Extract the first word of "objcopy", so it can be a program name with args.
9209 set dummy objcopy; ac_word=$2
9210 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9212 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9214 else
9215 case $aros_target_objcopy_ln in
9216 [\\/]* | ?:[\\/]*)
9217 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 for as_dir in $PATH
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9227 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9231 done
9232 done
9233 IFS=$as_save_IFS
9236 esac
9238 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9239 if test -n "$aros_target_objcopy_ln"; then
9240 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9241 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9242 else
9243 { echo "$as_me:$LINENO: result: no" >&5
9244 echo "${ECHO_T}no" >&6; }
9251 if test "$aros_target_objcopy_ln" = ""; then
9252 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
9253 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
9254 { (exit 1); exit 1; }; }
9257 if test "$cross_compiling" = "yes" ; then
9258 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9259 set dummy ${target_tool_prefix}objdump; ac_word=$2
9260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9262 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9263 echo $ECHO_N "(cached) $ECHO_C" >&6
9264 else
9265 case $aros_target_objdump_ln in
9266 [\\/]* | ?:[\\/]*)
9267 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9271 for as_dir in $PATH
9273 IFS=$as_save_IFS
9274 test -z "$as_dir" && as_dir=.
9275 for ac_exec_ext in '' $ac_executable_extensions; do
9276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9277 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9279 break 2
9281 done
9282 done
9283 IFS=$as_save_IFS
9286 esac
9288 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9289 if test -n "$aros_target_objdump_ln"; then
9290 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9291 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9292 else
9293 { echo "$as_me:$LINENO: result: no" >&5
9294 echo "${ECHO_T}no" >&6; }
9298 else
9299 if test "$GCC" = "yes"; then
9300 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9301 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9302 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9305 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9306 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 else
9308 case $aros_target_objdump_ln in
9309 [\\/]* | ?:[\\/]*)
9310 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9314 for as_dir in `dirname $aros_gcc_objdump`
9316 IFS=$as_save_IFS
9317 test -z "$as_dir" && as_dir=.
9318 for ac_exec_ext in '' $ac_executable_extensions; do
9319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9320 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9322 break 2
9324 done
9325 done
9326 IFS=$as_save_IFS
9329 esac
9331 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9332 if test -n "$aros_target_objdump_ln"; then
9333 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9334 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9335 else
9336 { echo "$as_me:$LINENO: result: no" >&5
9337 echo "${ECHO_T}no" >&6; }
9342 if test "$aros_target_objdump_ln" = ""; then
9343 # Extract the first word of "objdump", so it can be a program name with args.
9344 set dummy objdump; ac_word=$2
9345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9347 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350 case $aros_target_objdump_ln in
9351 [\\/]* | ?:[\\/]*)
9352 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9356 for as_dir in $PATH
9358 IFS=$as_save_IFS
9359 test -z "$as_dir" && as_dir=.
9360 for ac_exec_ext in '' $ac_executable_extensions; do
9361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9362 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9364 break 2
9366 done
9367 done
9368 IFS=$as_save_IFS
9371 esac
9373 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9374 if test -n "$aros_target_objdump_ln"; then
9375 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9376 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9377 else
9378 { echo "$as_me:$LINENO: result: no" >&5
9379 echo "${ECHO_T}no" >&6; }
9386 if test "$aros_target_objdump_ln" = ""; then
9387 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
9388 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
9389 { (exit 1); exit 1; }; }
9392 if test "$cross_compiling" = "yes" ; then
9393 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9394 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9397 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9398 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 else
9400 case $aros_target_ranlib_ln in
9401 [\\/]* | ?:[\\/]*)
9402 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9406 for as_dir in $PATH
9408 IFS=$as_save_IFS
9409 test -z "$as_dir" && as_dir=.
9410 for ac_exec_ext in '' $ac_executable_extensions; do
9411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9412 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9414 break 2
9416 done
9417 done
9418 IFS=$as_save_IFS
9421 esac
9423 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9424 if test -n "$aros_target_ranlib_ln"; then
9425 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9426 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9427 else
9428 { echo "$as_me:$LINENO: result: no" >&5
9429 echo "${ECHO_T}no" >&6; }
9433 else
9434 if test "$GCC" = "yes"; then
9435 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9436 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9437 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9440 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443 case $aros_target_ranlib_ln in
9444 [\\/]* | ?:[\\/]*)
9445 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9449 for as_dir in `dirname $aros_gcc_ranlib`
9451 IFS=$as_save_IFS
9452 test -z "$as_dir" && as_dir=.
9453 for ac_exec_ext in '' $ac_executable_extensions; do
9454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9455 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9457 break 2
9459 done
9460 done
9461 IFS=$as_save_IFS
9464 esac
9466 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9467 if test -n "$aros_target_ranlib_ln"; then
9468 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9469 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9470 else
9471 { echo "$as_me:$LINENO: result: no" >&5
9472 echo "${ECHO_T}no" >&6; }
9477 if test "$aros_target_ranlib_ln" = ""; then
9478 # Extract the first word of "ranlib", so it can be a program name with args.
9479 set dummy ranlib; ac_word=$2
9480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9482 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485 case $aros_target_ranlib_ln in
9486 [\\/]* | ?:[\\/]*)
9487 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9491 for as_dir in $PATH
9493 IFS=$as_save_IFS
9494 test -z "$as_dir" && as_dir=.
9495 for ac_exec_ext in '' $ac_executable_extensions; do
9496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9497 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9499 break 2
9501 done
9502 done
9503 IFS=$as_save_IFS
9506 esac
9508 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9509 if test -n "$aros_target_ranlib_ln"; then
9510 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9511 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9512 else
9513 { echo "$as_me:$LINENO: result: no" >&5
9514 echo "${ECHO_T}no" >&6; }
9521 if test "$aros_target_ranlib_ln" = ""; then
9522 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
9523 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
9524 { (exit 1); exit 1; }; }
9527 if test "$cross_compiling" = "yes" ; then
9528 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9529 set dummy ${target_tool_prefix}strip; ac_word=$2
9530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9532 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9533 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 else
9535 case $aros_target_strip_ln in
9536 [\\/]* | ?:[\\/]*)
9537 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9541 for as_dir in $PATH
9543 IFS=$as_save_IFS
9544 test -z "$as_dir" && as_dir=.
9545 for ac_exec_ext in '' $ac_executable_extensions; do
9546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9547 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9548 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9549 break 2
9551 done
9552 done
9553 IFS=$as_save_IFS
9556 esac
9558 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9559 if test -n "$aros_target_strip_ln"; then
9560 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9561 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9562 else
9563 { echo "$as_me:$LINENO: result: no" >&5
9564 echo "${ECHO_T}no" >&6; }
9568 else
9569 if test "$GCC" = "yes"; then
9570 aros_gcc_strip=`$CC -print-prog-name=strip`
9571 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9572 set dummy `basename $aros_gcc_strip`; ac_word=$2
9573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9575 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9576 echo $ECHO_N "(cached) $ECHO_C" >&6
9577 else
9578 case $aros_target_strip_ln in
9579 [\\/]* | ?:[\\/]*)
9580 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 for as_dir in `dirname $aros_gcc_strip`
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
9588 for ac_exec_ext in '' $ac_executable_extensions; do
9589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9590 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9592 break 2
9594 done
9595 done
9596 IFS=$as_save_IFS
9599 esac
9601 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9602 if test -n "$aros_target_strip_ln"; then
9603 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9604 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9605 else
9606 { echo "$as_me:$LINENO: result: no" >&5
9607 echo "${ECHO_T}no" >&6; }
9612 if test "$aros_target_strip_ln" = ""; then
9613 # Extract the first word of "strip", so it can be a program name with args.
9614 set dummy strip; ac_word=$2
9615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9617 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 else
9620 case $aros_target_strip_ln in
9621 [\\/]* | ?:[\\/]*)
9622 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9626 for as_dir in $PATH
9628 IFS=$as_save_IFS
9629 test -z "$as_dir" && as_dir=.
9630 for ac_exec_ext in '' $ac_executable_extensions; do
9631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9632 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9634 break 2
9636 done
9637 done
9638 IFS=$as_save_IFS
9641 esac
9643 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9644 if test -n "$aros_target_strip_ln"; then
9645 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9646 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9647 else
9648 { echo "$as_me:$LINENO: result: no" >&5
9649 echo "${ECHO_T}no" >&6; }
9656 if test "$aros_target_strip_ln" = ""; then
9657 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
9658 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
9659 { (exit 1); exit 1; }; }
9662 if test "$GCC" = "yes"; then
9663 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9666 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9667 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9668 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9669 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9670 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9671 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9672 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9674 # aros_cc_pre is a variable that is added to the front of the compiler name
9675 # in the generated aros-gcc shell script. We need this to enable the cache
9676 # to work across cleaned builds. Also, support DISTCC using the correct
9677 # environment variable.
9680 if test "x${DISTCC}" != "x" ; then
9681 if test "x${CCACHE}" != "x" ; then
9682 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9683 else
9684 aros_cc_pre="${DISTCC} "
9686 else
9687 if test "x${CCACHE}" != "x" ; then
9688 aros_cc_pre="${CCACHE} "
9692 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9694 aros_target_nostdinc_cflags=-nostdinc
9696 aros_target_nostartup_ldflags=-nostartfiles
9698 aros_target_nix_ldflags=-nix
9700 aros_target_detach_ldflags=-detach
9702 aros_target_nostdlib_ldflags=-nostdlib
9705 # Target tools
9706 aros_target_cc="${prefix}-gcc"
9707 aros_target_as="${prefix}-as"
9708 aros_target_ld="${prefix}-ld"
9709 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9710 aros_target_objcopy=${prefix}-objcopy
9711 aros_target_objdump=${prefix}-objdump
9712 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9713 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9714 aros_kernel_nm="${prefix}-nm"
9715 aros_target_strip=${prefix}-strip
9718 # Find the system include path. We can suggest that an alternative is
9719 # used if we don't get it correct. The default is to use /usr/include.
9720 # Which is set in the aros_target_incl_def variable.
9722 # Check whether --enable-includes was given.
9723 if test "${enable_includes+set}" = set; then
9724 enableval=$enable_includes; aros_target_incl=$enable_includes
9725 else
9726 aros_target_incl=$aros_target_incl_def
9730 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
9731 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
9732 if test "$aros_target_cc_includes" = "" ; then
9733 #try to guess where the directory is
9734 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
9735 if ! test -d $aros_target_cc_includes; then
9736 #the directory doesn't exist, we need to do some more work
9737 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9739 #these are the headers we're looling for
9740 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9741 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9742 zutil.h"
9744 dirs=
9745 for h in $headers; do
9746 #which other headers each of the above headers needs?
9747 deps=$(echo "#include <$h>" | \
9748 $aros_host_cc -E -M - 2>/dev/null | \
9749 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9751 #copy all the needed headers to a directory beneath gendir
9752 for d in $deps; do
9753 h=$(basename $d)
9754 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9755 sed -n "s,^.*/include\(/.*\),\1,p")
9756 ! test -d $dir && mkdir -p $dir
9757 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9758 done
9759 done
9762 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
9763 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
9765 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
9766 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
9768 # Check whether --with-resolution was given.
9769 if test "${with_resolution+set}" = set; then
9770 withval=$with_resolution; resolution=$withval
9771 else
9772 resolution=none
9775 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9776 if test "$resolution" = "yes" ; then
9777 resolution="none"
9779 if test "$resolution" = "no" ; then
9780 resolution="none"
9782 if test "$resolution" != "none" ; then
9783 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9784 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9785 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9787 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9788 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
9789 aros_cv_default_wbwidth=$aros_default_wbwidth
9790 aros_cv_default_wbheight=$aros_default_wbheight
9791 aros_cv_default_wbdepth=$aros_default_wbdepth
9793 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
9794 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
9795 # Check whether --enable-bochs_hack was given.
9796 if test "${enable_bochs_hack+set}" = set; then
9797 enableval=$enable_bochs_hack; bochs_hack="yes"
9798 else
9799 bochs_hack="no"
9802 if test "$bochs_hack" = "yes" ; then
9803 aros_bochs_hack="1"
9805 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
9806 echo "${ECHO_T}$bochs_hack" >&6; }
9808 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
9809 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
9811 # Check whether --with-serial-debug was given.
9812 if test "${with_serial_debug+set}" = set; then
9813 withval=$with_serial_debug; serial_debug=$withval
9814 else
9815 serial_debug=none
9818 if test "$serial_debug" = "yes" ; then
9819 serial_debug="2"
9821 if test "$serial_debug" = "no" ; then
9822 serial_debug="none"
9824 if test "$serial_debug" != "none" ; then
9825 aros_serial_debug=$serial_debug
9826 { echo "$as_me:$LINENO: result: on port $serial_debug" >&5
9827 echo "${ECHO_T}on port $serial_debug" >&6; }
9828 else
9829 { echo "$as_me:$LINENO: result: no" >&5
9830 echo "${ECHO_T}no" >&6; }
9833 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
9834 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
9835 # Check whether --enable-palm_debug_hack was given.
9836 if test "${enable_palm_debug_hack+set}" = set; then
9837 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
9838 else
9839 palm_debug_hack="no"
9842 if test "$palm_debug_hack" = "yes" ; then
9843 aros_palm_debug_hack="1"
9845 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
9846 echo "${ECHO_T}$palm_debug_hack" >&6; }
9849 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
9850 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
9851 # Check whether --enable-nesting_supervisor was given.
9852 if test "${enable_nesting_supervisor+set}" = set; then
9853 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
9854 else
9855 nesting_supervisor="no"
9858 if test "$nesting_supervisor" = "yes" ; then
9859 aros_nesting_supervisor="1"
9861 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
9862 echo "${ECHO_T}$nesting_supervisor" >&6; }
9865 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9867 { echo "$as_me:$LINENO: checking for dlopen" >&5
9868 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9869 if test "${ac_cv_func_dlopen+set}" = set; then
9870 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 else
9872 cat >conftest.$ac_ext <<_ACEOF
9873 /* confdefs.h. */
9874 _ACEOF
9875 cat confdefs.h >>conftest.$ac_ext
9876 cat >>conftest.$ac_ext <<_ACEOF
9877 /* end confdefs.h. */
9878 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9880 #define dlopen innocuous_dlopen
9882 /* System header to define __stub macros and hopefully few prototypes,
9883 which can conflict with char dlopen (); below.
9884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9885 <limits.h> exists even on freestanding compilers. */
9887 #ifdef __STDC__
9888 # include <limits.h>
9889 #else
9890 # include <assert.h>
9891 #endif
9893 #undef dlopen
9895 /* Override any GCC internal prototype to avoid an error.
9896 Use char because int might match the return type of a GCC
9897 builtin and then its argument prototype would still apply. */
9898 #ifdef __cplusplus
9899 extern "C"
9900 #endif
9901 char dlopen ();
9902 /* The GNU C library defines this for functions which it implements
9903 to always fail with ENOSYS. Some functions are actually named
9904 something starting with __ and the normal name is an alias. */
9905 #if defined __stub_dlopen || defined __stub___dlopen
9906 choke me
9907 #endif
9910 main ()
9912 return dlopen ();
9914 return 0;
9916 _ACEOF
9917 rm -f conftest.$ac_objext conftest$ac_exeext
9918 if { (ac_try="$ac_link"
9919 case "(($ac_try" in
9920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9921 *) ac_try_echo=$ac_try;;
9922 esac
9923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9924 (eval "$ac_link") 2>conftest.er1
9925 ac_status=$?
9926 grep -v '^ *+' conftest.er1 >conftest.err
9927 rm -f conftest.er1
9928 cat conftest.err >&5
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); } && {
9931 test -z "$ac_c_werror_flag" ||
9932 test ! -s conftest.err
9933 } && test -s conftest$ac_exeext &&
9934 $as_test_x conftest$ac_exeext; then
9935 ac_cv_func_dlopen=yes
9936 else
9937 echo "$as_me: failed program was:" >&5
9938 sed 's/^/| /' conftest.$ac_ext >&5
9940 ac_cv_func_dlopen=no
9943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9944 conftest$ac_exeext conftest.$ac_ext
9946 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9947 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9948 if test $ac_cv_func_dlopen = yes; then
9949 have_dl="yes"
9950 else
9951 have_dl="no"
9954 if test "x-$have_dl" = "x-no" ; then
9955 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9956 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9957 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9958 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 else
9960 ac_check_lib_save_LIBS=$LIBS
9961 LIBS="-ldl $LIBS"
9962 cat >conftest.$ac_ext <<_ACEOF
9963 /* confdefs.h. */
9964 _ACEOF
9965 cat confdefs.h >>conftest.$ac_ext
9966 cat >>conftest.$ac_ext <<_ACEOF
9967 /* end confdefs.h. */
9969 /* Override any GCC internal prototype to avoid an error.
9970 Use char because int might match the return type of a GCC
9971 builtin and then its argument prototype would still apply. */
9972 #ifdef __cplusplus
9973 extern "C"
9974 #endif
9975 char dlopen ();
9977 main ()
9979 return dlopen ();
9981 return 0;
9983 _ACEOF
9984 rm -f conftest.$ac_objext conftest$ac_exeext
9985 if { (ac_try="$ac_link"
9986 case "(($ac_try" in
9987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9988 *) ac_try_echo=$ac_try;;
9989 esac
9990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9991 (eval "$ac_link") 2>conftest.er1
9992 ac_status=$?
9993 grep -v '^ *+' conftest.er1 >conftest.err
9994 rm -f conftest.er1
9995 cat conftest.err >&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); } && {
9998 test -z "$ac_c_werror_flag" ||
9999 test ! -s conftest.err
10000 } && test -s conftest$ac_exeext &&
10001 $as_test_x conftest$ac_exeext; then
10002 ac_cv_lib_dl_dlopen=yes
10003 else
10004 echo "$as_me: failed program was:" >&5
10005 sed 's/^/| /' conftest.$ac_ext >&5
10007 ac_cv_lib_dl_dlopen=no
10010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10011 conftest$ac_exeext conftest.$ac_ext
10012 LIBS=$ac_check_lib_save_LIBS
10014 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10015 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10016 if test $ac_cv_lib_dl_dlopen = yes; then
10017 have_dl="yes"
10018 aros_host_ldflags="$aros_host_ldflags -ldl"
10019 else
10020 have_dl="no"
10024 if test "x-$have_dl" = "x-no" ; then
10025 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
10026 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
10027 { (exit 1); exit 1; }; }
10031 # Check whether --enable-x11_hidd was given.
10032 if test "${enable_x11_hidd+set}" = set; then
10033 enableval=$enable_x11_hidd; x11_hidd="$enableval"
10034 else
10035 x11_hidd="auto"
10038 case "x-$x11_hidd" in
10039 x-yes|x-no|x-auto) ;;
10040 *) x11_hidd="auto" ;;
10041 esac
10043 if test "x-$x11_hidd" != "x-no" ; then
10045 { echo "$as_me:$LINENO: checking for X" >&5
10046 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
10049 # Check whether --with-x was given.
10050 if test "${with_x+set}" = set; then
10051 withval=$with_x;
10054 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
10055 if test "x$with_x" = xno; then
10056 # The user explicitly disabled X.
10057 have_x=disabled
10058 else
10059 case $x_includes,$x_libraries in #(
10060 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
10061 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
10062 { (exit 1); exit 1; }; };; #(
10063 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
10064 echo $ECHO_N "(cached) $ECHO_C" >&6
10065 else
10066 # One or both of the vars are not set, and there is no cached value.
10067 ac_x_includes=no ac_x_libraries=no
10068 rm -f -r conftest.dir
10069 if mkdir conftest.dir; then
10070 cd conftest.dir
10071 cat >Imakefile <<'_ACEOF'
10072 incroot:
10073 @echo incroot='${INCROOT}'
10074 usrlibdir:
10075 @echo usrlibdir='${USRLIBDIR}'
10076 libdir:
10077 @echo libdir='${LIBDIR}'
10078 _ACEOF
10079 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10080 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10081 for ac_var in incroot usrlibdir libdir; do
10082 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10083 done
10084 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10085 for ac_extension in a so sl; do
10086 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10087 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10088 ac_im_usrlibdir=$ac_im_libdir; break
10090 done
10091 # Screen out bogus values from the imake configuration. They are
10092 # bogus both because they are the default anyway, and because
10093 # using them would break gcc on systems where it needs fixed includes.
10094 case $ac_im_incroot in
10095 /usr/include) ac_x_includes= ;;
10096 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10097 esac
10098 case $ac_im_usrlibdir in
10099 /usr/lib | /lib) ;;
10100 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10101 esac
10103 cd ..
10104 rm -f -r conftest.dir
10107 # Standard set of common directories for X headers.
10108 # Check X11 before X11Rn because it is often a symlink to the current release.
10109 ac_x_header_dirs='
10110 /usr/X11/include
10111 /usr/X11R6/include
10112 /usr/X11R5/include
10113 /usr/X11R4/include
10115 /usr/include/X11
10116 /usr/include/X11R6
10117 /usr/include/X11R5
10118 /usr/include/X11R4
10120 /usr/local/X11/include
10121 /usr/local/X11R6/include
10122 /usr/local/X11R5/include
10123 /usr/local/X11R4/include
10125 /usr/local/include/X11
10126 /usr/local/include/X11R6
10127 /usr/local/include/X11R5
10128 /usr/local/include/X11R4
10130 /usr/X386/include
10131 /usr/x386/include
10132 /usr/XFree86/include/X11
10134 /usr/include
10135 /usr/local/include
10136 /usr/unsupported/include
10137 /usr/athena/include
10138 /usr/local/x11r5/include
10139 /usr/lpp/Xamples/include
10141 /usr/openwin/include
10142 /usr/openwin/share/include'
10144 if test "$ac_x_includes" = no; then
10145 # Guess where to find include files, by looking for Xlib.h.
10146 # First, try using that file with no special directory specified.
10147 cat >conftest.$ac_ext <<_ACEOF
10148 /* confdefs.h. */
10149 _ACEOF
10150 cat confdefs.h >>conftest.$ac_ext
10151 cat >>conftest.$ac_ext <<_ACEOF
10152 /* end confdefs.h. */
10153 #include <X11/Xlib.h>
10154 _ACEOF
10155 if { (ac_try="$ac_cpp conftest.$ac_ext"
10156 case "(($ac_try" in
10157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10158 *) ac_try_echo=$ac_try;;
10159 esac
10160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10162 ac_status=$?
10163 grep -v '^ *+' conftest.er1 >conftest.err
10164 rm -f conftest.er1
10165 cat conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } >/dev/null && {
10168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10169 test ! -s conftest.err
10170 }; then
10171 # We can compile using X headers with no special include directory.
10172 ac_x_includes=
10173 else
10174 echo "$as_me: failed program was:" >&5
10175 sed 's/^/| /' conftest.$ac_ext >&5
10177 for ac_dir in $ac_x_header_dirs; do
10178 if test -r "$ac_dir/X11/Xlib.h"; then
10179 ac_x_includes=$ac_dir
10180 break
10182 done
10185 rm -f conftest.err conftest.$ac_ext
10186 fi # $ac_x_includes = no
10188 if test "$ac_x_libraries" = no; then
10189 # Check for the libraries.
10190 # See if we find them without any special options.
10191 # Don't add to $LIBS permanently.
10192 ac_save_LIBS=$LIBS
10193 LIBS="-lX11 $LIBS"
10194 cat >conftest.$ac_ext <<_ACEOF
10195 /* confdefs.h. */
10196 _ACEOF
10197 cat confdefs.h >>conftest.$ac_ext
10198 cat >>conftest.$ac_ext <<_ACEOF
10199 /* end confdefs.h. */
10200 #include <X11/Xlib.h>
10202 main ()
10204 XrmInitialize ()
10206 return 0;
10208 _ACEOF
10209 rm -f conftest.$ac_objext conftest$ac_exeext
10210 if { (ac_try="$ac_link"
10211 case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10214 esac
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_link") 2>conftest.er1
10217 ac_status=$?
10218 grep -v '^ *+' conftest.er1 >conftest.err
10219 rm -f conftest.er1
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } && {
10223 test -z "$ac_c_werror_flag" ||
10224 test ! -s conftest.err
10225 } && test -s conftest$ac_exeext &&
10226 $as_test_x conftest$ac_exeext; then
10227 LIBS=$ac_save_LIBS
10228 # We can link X programs with no special library path.
10229 ac_x_libraries=
10230 else
10231 echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10234 LIBS=$ac_save_LIBS
10235 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10237 # Don't even attempt the hair of trying to link an X program!
10238 for ac_extension in a so sl; do
10239 if test -r "$ac_dir/libX11.$ac_extension"; then
10240 ac_x_libraries=$ac_dir
10241 break 2
10243 done
10244 done
10247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10248 conftest$ac_exeext conftest.$ac_ext
10249 fi # $ac_x_libraries = no
10251 case $ac_x_includes,$ac_x_libraries in #(
10252 no,* | *,no | *\'*)
10253 # Didn't find X, or a directory has "'" in its name.
10254 ac_cv_have_x="have_x=no";; #(
10256 # Record where we found X for the cache.
10257 ac_cv_have_x="have_x=yes\
10258 ac_x_includes='$ac_x_includes'\
10259 ac_x_libraries='$ac_x_libraries'"
10260 esac
10262 ;; #(
10263 *) have_x=yes;;
10264 esac
10265 eval "$ac_cv_have_x"
10266 fi # $with_x != no
10268 if test "$have_x" != yes; then
10269 { echo "$as_me:$LINENO: result: $have_x" >&5
10270 echo "${ECHO_T}$have_x" >&6; }
10271 no_x=yes
10272 else
10273 # If each of the values was on the command line, it overrides each guess.
10274 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10275 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10276 # Update the cache value to reflect the command line values.
10277 ac_cv_have_x="have_x=yes\
10278 ac_x_includes='$x_includes'\
10279 ac_x_libraries='$x_libraries'"
10280 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10281 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
10285 if test "x-$no_x" = "x-yes" ; then
10287 if test "x-$x11_hidd" != "x-auto" ; then
10288 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
10289 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
10290 { (exit 1); exit 1; }; }
10293 else
10294 x11_hidd_target=kernel-x11gfx
10297 # Check whether --enable-x11_shm was given.
10298 if test "${enable_x11_shm+set}" = set; then
10299 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10300 else
10301 x11_hidd_shm="auto"
10304 case "x-$x11_hidd_shm" in
10305 x-yes|x-no|x-auto) ;;
10306 *) x11_hidd_shm="auto" ;;
10307 esac
10309 have_xshm=no
10311 if test "x-$x11_hidd_shm" != "x-no" ; then
10314 for ac_header in sys/ipc.h
10316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10321 echo $ECHO_N "(cached) $ECHO_C" >&6
10323 ac_res=`eval echo '${'$as_ac_Header'}'`
10324 { echo "$as_me:$LINENO: result: $ac_res" >&5
10325 echo "${ECHO_T}$ac_res" >&6; }
10326 else
10327 # Is the header compilable?
10328 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10330 cat >conftest.$ac_ext <<_ACEOF
10331 /* confdefs.h. */
10332 _ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10336 $ac_includes_default
10337 #include <$ac_header>
10338 _ACEOF
10339 rm -f conftest.$ac_objext
10340 if { (ac_try="$ac_compile"
10341 case "(($ac_try" in
10342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10343 *) ac_try_echo=$ac_try;;
10344 esac
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_compile") 2>conftest.er1
10347 ac_status=$?
10348 grep -v '^ *+' conftest.er1 >conftest.err
10349 rm -f conftest.er1
10350 cat conftest.err >&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } && {
10353 test -z "$ac_c_werror_flag" ||
10354 test ! -s conftest.err
10355 } && test -s conftest.$ac_objext; then
10356 ac_header_compiler=yes
10357 else
10358 echo "$as_me: failed program was:" >&5
10359 sed 's/^/| /' conftest.$ac_ext >&5
10361 ac_header_compiler=no
10364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10365 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10366 echo "${ECHO_T}$ac_header_compiler" >&6; }
10368 # Is the header present?
10369 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10370 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10371 cat >conftest.$ac_ext <<_ACEOF
10372 /* confdefs.h. */
10373 _ACEOF
10374 cat confdefs.h >>conftest.$ac_ext
10375 cat >>conftest.$ac_ext <<_ACEOF
10376 /* end confdefs.h. */
10377 #include <$ac_header>
10378 _ACEOF
10379 if { (ac_try="$ac_cpp conftest.$ac_ext"
10380 case "(($ac_try" in
10381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10382 *) ac_try_echo=$ac_try;;
10383 esac
10384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10386 ac_status=$?
10387 grep -v '^ *+' conftest.er1 >conftest.err
10388 rm -f conftest.er1
10389 cat conftest.err >&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); } >/dev/null && {
10392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10393 test ! -s conftest.err
10394 }; then
10395 ac_header_preproc=yes
10396 else
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10400 ac_header_preproc=no
10403 rm -f conftest.err conftest.$ac_ext
10404 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10405 echo "${ECHO_T}$ac_header_preproc" >&6; }
10407 # So? What about this header?
10408 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10409 yes:no: )
10410 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10411 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10413 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10414 ac_header_preproc=yes
10416 no:yes:* )
10417 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10418 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10419 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10420 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10421 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10422 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10423 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10424 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10426 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10427 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10428 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10431 esac
10432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10436 else
10437 eval "$as_ac_Header=\$ac_header_preproc"
10439 ac_res=`eval echo '${'$as_ac_Header'}'`
10440 { echo "$as_me:$LINENO: result: $ac_res" >&5
10441 echo "${ECHO_T}$ac_res" >&6; }
10444 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10445 cat >>confdefs.h <<_ACEOF
10446 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10447 _ACEOF
10451 done
10454 for ac_header in sys/shm.h
10456 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10461 echo $ECHO_N "(cached) $ECHO_C" >&6
10463 ac_res=`eval echo '${'$as_ac_Header'}'`
10464 { echo "$as_me:$LINENO: result: $ac_res" >&5
10465 echo "${ECHO_T}$ac_res" >&6; }
10466 else
10467 # Is the header compilable?
10468 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10469 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10470 cat >conftest.$ac_ext <<_ACEOF
10471 /* confdefs.h. */
10472 _ACEOF
10473 cat confdefs.h >>conftest.$ac_ext
10474 cat >>conftest.$ac_ext <<_ACEOF
10475 /* end confdefs.h. */
10476 $ac_includes_default
10477 #include <$ac_header>
10478 _ACEOF
10479 rm -f conftest.$ac_objext
10480 if { (ac_try="$ac_compile"
10481 case "(($ac_try" in
10482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10483 *) ac_try_echo=$ac_try;;
10484 esac
10485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10486 (eval "$ac_compile") 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest.$ac_objext; then
10496 ac_header_compiler=yes
10497 else
10498 echo "$as_me: failed program was:" >&5
10499 sed 's/^/| /' conftest.$ac_ext >&5
10501 ac_header_compiler=no
10504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10506 echo "${ECHO_T}$ac_header_compiler" >&6; }
10508 # Is the header present?
10509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10511 cat >conftest.$ac_ext <<_ACEOF
10512 /* confdefs.h. */
10513 _ACEOF
10514 cat confdefs.h >>conftest.$ac_ext
10515 cat >>conftest.$ac_ext <<_ACEOF
10516 /* end confdefs.h. */
10517 #include <$ac_header>
10518 _ACEOF
10519 if { (ac_try="$ac_cpp conftest.$ac_ext"
10520 case "(($ac_try" in
10521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10522 *) ac_try_echo=$ac_try;;
10523 esac
10524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10526 ac_status=$?
10527 grep -v '^ *+' conftest.er1 >conftest.err
10528 rm -f conftest.er1
10529 cat conftest.err >&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); } >/dev/null && {
10532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10533 test ! -s conftest.err
10534 }; then
10535 ac_header_preproc=yes
10536 else
10537 echo "$as_me: failed program was:" >&5
10538 sed 's/^/| /' conftest.$ac_ext >&5
10540 ac_header_preproc=no
10543 rm -f conftest.err conftest.$ac_ext
10544 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10545 echo "${ECHO_T}$ac_header_preproc" >&6; }
10547 # So? What about this header?
10548 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10549 yes:no: )
10550 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10551 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10552 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10553 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10554 ac_header_preproc=yes
10556 no:yes:* )
10557 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10558 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10559 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10560 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10561 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10562 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10563 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10564 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10566 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10567 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10568 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10571 esac
10572 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10573 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10575 echo $ECHO_N "(cached) $ECHO_C" >&6
10576 else
10577 eval "$as_ac_Header=\$ac_header_preproc"
10579 ac_res=`eval echo '${'$as_ac_Header'}'`
10580 { echo "$as_me:$LINENO: result: $ac_res" >&5
10581 echo "${ECHO_T}$ac_res" >&6; }
10584 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10585 cat >>confdefs.h <<_ACEOF
10586 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10587 _ACEOF
10591 done
10594 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10596 save_libs="$LIBS"
10597 save_cflags="$CFLAGS"
10598 LIBS="$x_libraries"
10599 CFLAGS="$x_includes"
10600 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
10601 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
10602 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605 ac_check_lib_save_LIBS=$LIBS
10606 LIBS="-lXext $LIBS"
10607 cat >conftest.$ac_ext <<_ACEOF
10608 /* confdefs.h. */
10609 _ACEOF
10610 cat confdefs.h >>conftest.$ac_ext
10611 cat >>conftest.$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10614 /* Override any GCC internal prototype to avoid an error.
10615 Use char because int might match the return type of a GCC
10616 builtin and then its argument prototype would still apply. */
10617 #ifdef __cplusplus
10618 extern "C"
10619 #endif
10620 char XShmQueryExtension ();
10622 main ()
10624 return XShmQueryExtension ();
10626 return 0;
10628 _ACEOF
10629 rm -f conftest.$ac_objext conftest$ac_exeext
10630 if { (ac_try="$ac_link"
10631 case "(($ac_try" in
10632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10633 *) ac_try_echo=$ac_try;;
10634 esac
10635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10636 (eval "$ac_link") 2>conftest.er1
10637 ac_status=$?
10638 grep -v '^ *+' conftest.er1 >conftest.err
10639 rm -f conftest.er1
10640 cat conftest.err >&5
10641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10642 (exit $ac_status); } && {
10643 test -z "$ac_c_werror_flag" ||
10644 test ! -s conftest.err
10645 } && test -s conftest$ac_exeext &&
10646 $as_test_x conftest$ac_exeext; then
10647 ac_cv_lib_Xext_XShmQueryExtension=yes
10648 else
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10652 ac_cv_lib_Xext_XShmQueryExtension=no
10655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10656 conftest$ac_exeext conftest.$ac_ext
10657 LIBS=$ac_check_lib_save_LIBS
10659 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10660 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10661 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
10662 have_xshm=yes
10665 LIBS="$save_libs"
10666 CFLAGS="$save_cflags"
10670 if test "x-$have_xshm" = "x-yes" ; then
10671 DO_XSHM_SUPPORT="1"
10672 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10673 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
10674 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
10675 { (exit 1); exit 1; }; }
10676 else
10677 DO_XSHM_SUPPORT="0"
10681 # Check whether --enable-x11_vidmode was given.
10682 if test "${enable_x11_vidmode+set}" = set; then
10683 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10684 else
10685 x11_hidd_vidmode="auto"
10688 case "x-$x11_hidd_vidmode" in
10689 x-yes|x-no|x-auto) ;;
10690 *) x11_hidd_vidmode="auto" ;;
10691 esac
10693 have_vidmode=no
10695 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10697 save_libs="$LIBS"
10698 save_cflags="$CFLAGS"
10699 LIBS="$x_libraries"
10700 CFLAGS="$x_includes"
10701 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10702 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
10703 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
10704 echo $ECHO_N "(cached) $ECHO_C" >&6
10705 else
10706 ac_check_lib_save_LIBS=$LIBS
10707 LIBS="-lXxf86vm $LIBS"
10708 cat >conftest.$ac_ext <<_ACEOF
10709 /* confdefs.h. */
10710 _ACEOF
10711 cat confdefs.h >>conftest.$ac_ext
10712 cat >>conftest.$ac_ext <<_ACEOF
10713 /* end confdefs.h. */
10715 /* Override any GCC internal prototype to avoid an error.
10716 Use char because int might match the return type of a GCC
10717 builtin and then its argument prototype would still apply. */
10718 #ifdef __cplusplus
10719 extern "C"
10720 #endif
10721 char XF86VidModeQueryExtension ();
10723 main ()
10725 return XF86VidModeQueryExtension ();
10727 return 0;
10729 _ACEOF
10730 rm -f conftest.$ac_objext conftest$ac_exeext
10731 if { (ac_try="$ac_link"
10732 case "(($ac_try" in
10733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10734 *) ac_try_echo=$ac_try;;
10735 esac
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_link") 2>conftest.er1
10738 ac_status=$?
10739 grep -v '^ *+' conftest.er1 >conftest.err
10740 rm -f conftest.er1
10741 cat conftest.err >&5
10742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10743 (exit $ac_status); } && {
10744 test -z "$ac_c_werror_flag" ||
10745 test ! -s conftest.err
10746 } && test -s conftest$ac_exeext &&
10747 $as_test_x conftest$ac_exeext; then
10748 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10749 else
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10753 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10757 conftest$ac_exeext conftest.$ac_ext
10758 LIBS=$ac_check_lib_save_LIBS
10760 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10761 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10762 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
10763 have_vidmode=yes
10766 LIBS="$save_libs"
10767 CFLAGS="$save_cflags"
10770 if test "x-$have_vidmode" = "x-yes" ; then
10771 DO_VIDMODE_SUPPORT="1"
10772 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10773 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
10774 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
10775 { (exit 1); exit 1; }; }
10776 else
10777 DO_VIDMODE_SUPPORT="0"
10784 # Check whether --enable-sdl_hidd was given.
10785 if test "${enable_sdl_hidd+set}" = set; then
10786 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10787 else
10788 sdl_hidd="auto"
10791 case "x-$sdl_hidd" in
10792 x-yes|x-no|x-auto) ;;
10793 *) sdl_hidd="auto" ;;
10794 esac
10796 if test "x-$sdl_hidd" != "x-no" ; then
10799 # Check whether --with-sdl-prefix was given.
10800 if test "${with_sdl_prefix+set}" = set; then
10801 withval=$with_sdl_prefix; sdl_prefix="$withval"
10802 else
10803 sdl_prefix=""
10807 # Check whether --with-sdl-exec-prefix was given.
10808 if test "${with_sdl_exec_prefix+set}" = set; then
10809 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10810 else
10811 sdl_exec_prefix=""
10814 # Check whether --enable-sdltest was given.
10815 if test "${enable_sdltest+set}" = set; then
10816 enableval=$enable_sdltest;
10817 else
10818 enable_sdltest=yes
10822 if test x$sdl_exec_prefix != x ; then
10823 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10824 if test x${SDL_CONFIG+set} != xset ; then
10825 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10828 if test x$sdl_prefix != x ; then
10829 sdl_args="$sdl_args --prefix=$sdl_prefix"
10830 if test x${SDL_CONFIG+set} != xset ; then
10831 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10835 if test "x$prefix" != xNONE; then
10836 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10838 # Extract the first word of "sdl-config", so it can be a program name with args.
10839 set dummy sdl-config; ac_word=$2
10840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10842 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 else
10845 case $SDL_CONFIG in
10846 [\\/]* | ?:[\\/]*)
10847 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10851 for as_dir in $PATH
10853 IFS=$as_save_IFS
10854 test -z "$as_dir" && as_dir=.
10855 for ac_exec_ext in '' $ac_executable_extensions; do
10856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10857 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10859 break 2
10861 done
10862 done
10863 IFS=$as_save_IFS
10865 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10867 esac
10869 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10870 if test -n "$SDL_CONFIG"; then
10871 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
10872 echo "${ECHO_T}$SDL_CONFIG" >&6; }
10873 else
10874 { echo "$as_me:$LINENO: result: no" >&5
10875 echo "${ECHO_T}no" >&6; }
10879 min_sdl_version=1.2.10
10880 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
10881 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
10882 no_sdl=""
10883 if test "$SDL_CONFIG" = "no" ; then
10884 no_sdl=yes
10885 else
10886 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10887 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10889 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10890 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10891 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10892 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10893 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10894 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10895 if test "x$enable_sdltest" = "xyes" ; then
10896 ac_save_CFLAGS="$CFLAGS"
10897 ac_save_CXXFLAGS="$CXXFLAGS"
10898 ac_save_LIBS="$LIBS"
10899 CFLAGS="$CFLAGS $SDL_CFLAGS"
10900 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10901 LIBS="$LIBS $SDL_LIBS"
10902 rm -f conf.sdltest
10903 if test "$cross_compiling" = yes; then
10904 echo $ac_n "cross compiling; assumed OK... $ac_c"
10905 else
10906 cat >conftest.$ac_ext <<_ACEOF
10907 /* confdefs.h. */
10908 _ACEOF
10909 cat confdefs.h >>conftest.$ac_ext
10910 cat >>conftest.$ac_ext <<_ACEOF
10911 /* end confdefs.h. */
10913 #include <stdio.h>
10914 #include <stdlib.h>
10915 #include <string.h>
10916 #include "SDL.h"
10918 char*
10919 my_strdup (char *str)
10921 char *new_str;
10923 if (str)
10925 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10926 strcpy (new_str, str);
10928 else
10929 new_str = NULL;
10931 return new_str;
10934 int main (int argc, char *argv[])
10936 int major, minor, micro;
10937 char *tmp_version;
10939 /* This hangs on some systems (?)
10940 system ("touch conf.sdltest");
10942 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10944 /* HP/UX 9 (%@#!) writes to sscanf strings */
10945 tmp_version = my_strdup("$min_sdl_version");
10946 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10947 printf("%s, bad version string\n", "$min_sdl_version");
10948 exit(1);
10951 if (($sdl_major_version > major) ||
10952 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10953 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10955 return 0;
10957 else
10959 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10960 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10961 printf("*** best to upgrade to the required version.\n");
10962 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10963 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10964 printf("*** config.cache before re-running configure\n");
10965 return 1;
10970 _ACEOF
10971 rm -f conftest$ac_exeext
10972 if { (ac_try="$ac_link"
10973 case "(($ac_try" in
10974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10975 *) ac_try_echo=$ac_try;;
10976 esac
10977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10978 (eval "$ac_link") 2>&5
10979 ac_status=$?
10980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10982 { (case "(($ac_try" in
10983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10984 *) ac_try_echo=$ac_try;;
10985 esac
10986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10987 (eval "$ac_try") 2>&5
10988 ac_status=$?
10989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990 (exit $ac_status); }; }; then
10992 else
10993 echo "$as_me: program exited with status $ac_status" >&5
10994 echo "$as_me: failed program was:" >&5
10995 sed 's/^/| /' conftest.$ac_ext >&5
10997 ( exit $ac_status )
10998 no_sdl=yes
11000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11004 CFLAGS="$ac_save_CFLAGS"
11005 CXXFLAGS="$ac_save_CXXFLAGS"
11006 LIBS="$ac_save_LIBS"
11009 if test "x$no_sdl" = x ; then
11010 { echo "$as_me:$LINENO: result: yes" >&5
11011 echo "${ECHO_T}yes" >&6; }
11012 have_sdl="yes"
11013 else
11014 { echo "$as_me:$LINENO: result: no" >&5
11015 echo "${ECHO_T}no" >&6; }
11016 if test "$SDL_CONFIG" = "no" ; then
11017 echo "*** The sdl-config script installed by SDL could not be found"
11018 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
11019 echo "*** your path, or set the SDL_CONFIG environment variable to the"
11020 echo "*** full path to sdl-config."
11021 else
11022 if test -f conf.sdltest ; then
11024 else
11025 echo "*** Could not run SDL test program, checking why..."
11026 CFLAGS="$CFLAGS $SDL_CFLAGS"
11027 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
11028 LIBS="$LIBS $SDL_LIBS"
11029 cat >conftest.$ac_ext <<_ACEOF
11030 /* confdefs.h. */
11031 _ACEOF
11032 cat confdefs.h >>conftest.$ac_ext
11033 cat >>conftest.$ac_ext <<_ACEOF
11034 /* end confdefs.h. */
11036 #include <stdio.h>
11037 #include "SDL.h"
11039 int main(int argc, char *argv[])
11040 { return 0; }
11041 #undef main
11042 #define main K_and_R_C_main
11045 main ()
11047 return 0;
11049 return 0;
11051 _ACEOF
11052 rm -f conftest.$ac_objext conftest$ac_exeext
11053 if { (ac_try="$ac_link"
11054 case "(($ac_try" in
11055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11056 *) ac_try_echo=$ac_try;;
11057 esac
11058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11059 (eval "$ac_link") 2>conftest.er1
11060 ac_status=$?
11061 grep -v '^ *+' conftest.er1 >conftest.err
11062 rm -f conftest.er1
11063 cat conftest.err >&5
11064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11065 (exit $ac_status); } && {
11066 test -z "$ac_c_werror_flag" ||
11067 test ! -s conftest.err
11068 } && test -s conftest$ac_exeext &&
11069 $as_test_x conftest$ac_exeext; then
11070 echo "*** The test program compiled, but did not run. This usually means"
11071 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11072 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11073 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11074 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11075 echo "*** is required on your system"
11076 echo "***"
11077 echo "*** If you have an old version installed, it is best to remove it, although"
11078 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11079 else
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11083 echo "*** The test program failed to compile or link. See the file config.log for the"
11084 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11085 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11086 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11090 conftest$ac_exeext conftest.$ac_ext
11091 CFLAGS="$ac_save_CFLAGS"
11092 CXXFLAGS="$ac_save_CXXFLAGS"
11093 LIBS="$ac_save_LIBS"
11096 SDL_CFLAGS=""
11097 SDL_LIBS=""
11098 have_sdl="no"
11102 rm -f conf.sdltest
11105 if test "x-$have_sdl" != "x-yes" ; then
11107 if test "x-$sdl_hidd" != "x-auto" ; then
11108 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
11109 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
11110 { (exit 1); exit 1; }; }
11113 else
11114 sdl_hidd_target=kernel-hidd-sdl
11121 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
11122 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
11123 # Check whether --enable-dbus was given.
11124 if test "${enable_dbus+set}" = set; then
11125 enableval=$enable_dbus; dbus="yes"
11126 else
11127 dbus="no"
11130 if test "$dbus" = "yes" ; then
11131 ENABLE_DBUS=1
11132 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
11133 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
11134 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
11135 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
11136 else
11137 ENABLE_DBUS=0
11139 { echo "$as_me:$LINENO: result: $dbus" >&5
11140 echo "${ECHO_T}$dbus" >&6; }
11144 # Generic
11151 # Host related
11174 # Target Related
11214 # Graphics Related
11230 # Native version related
11234 # Palm native version related
11237 # Unix/Hosted version related
11240 # DBUS related
11247 # Debug related
11253 # Collect-aros stuff: "-ius" to ignore undefined symbols
11256 # C compiler related
11259 case "$aros_flavour" in
11260 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11261 aros_flavour="emulation" ;;
11262 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11263 aros_flavour="emulation" ;;
11264 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11265 aros_flavour="standalone";;
11266 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11267 aros_flavour="native" ;;
11268 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11269 aros_flavour="native" ;;
11270 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11271 aros_flavour="linklib" ;;
11272 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11273 aros_flavour="palmnative" ;;
11274 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11275 aros_flavour="mac68knative" ;;
11276 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11277 aros_flavour="ppcnative" ;;
11278 esac
11282 if test ! -d ${aros_inc_dir} ; then
11283 ${MKDIR} ${aros_inc_dir}
11285 if test ! -d ${aros_geninc_dir} ; then
11286 ${MKDIR} ${aros_geninc_dir}
11288 if test ! -d ${aros_hostcfg_dir} ; then
11289 ${MKDIR} ${aros_hostcfg_dir}
11291 if test ! -d ${aros_targetcfg_dir} ; then
11292 ${MKDIR} ${aros_targetcfg_dir}
11294 if test ! -d ${aros_tools_dir} ; then
11295 ${MKDIR} ${aros_tools_dir}
11297 if test ! -d ${aros_scripts_dir} ; then
11298 ${MKDIR} ${aros_scripts_dir}
11301 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11304 ac_config_commands="$ac_config_commands compiler_executable"
11306 ac_config_commands="$ac_config_commands genshared_executable"
11308 ac_config_commands="$ac_config_commands genmf_executable"
11310 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
11313 ac_config_files="$ac_config_files Makefile rom/mmakefile ${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"
11316 cat >confcache <<\_ACEOF
11317 # This file is a shell script that caches the results of configure
11318 # tests run on this system so they can be shared between configure
11319 # scripts and configure runs, see configure's option --config-cache.
11320 # It is not useful on other systems. If it contains results you don't
11321 # want to keep, you may remove or edit it.
11323 # config.status only pays attention to the cache file if you give it
11324 # the --recheck option to rerun configure.
11326 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11327 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11328 # following values.
11330 _ACEOF
11332 # The following way of writing the cache mishandles newlines in values,
11333 # but we know of no workaround that is simple, portable, and efficient.
11334 # So, we kill variables containing newlines.
11335 # Ultrix sh set writes to stderr and can't be redirected directly,
11336 # and sets the high bit in the cache file unless we assign to the vars.
11338 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11339 eval ac_val=\$$ac_var
11340 case $ac_val in #(
11341 *${as_nl}*)
11342 case $ac_var in #(
11343 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11344 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11345 esac
11346 case $ac_var in #(
11347 _ | IFS | as_nl) ;; #(
11348 *) $as_unset $ac_var ;;
11349 esac ;;
11350 esac
11351 done
11353 (set) 2>&1 |
11354 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11355 *${as_nl}ac_space=\ *)
11356 # `set' does not quote correctly, so add quotes (double-quote
11357 # substitution turns \\\\ into \\, and sed turns \\ into \).
11358 sed -n \
11359 "s/'/'\\\\''/g;
11360 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11361 ;; #(
11363 # `set' quotes correctly as required by POSIX, so do not add quotes.
11364 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11366 esac |
11367 sort
11369 sed '
11370 /^ac_cv_env_/b end
11371 t clear
11372 :clear
11373 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11374 t end
11375 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11376 :end' >>confcache
11377 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11378 if test -w "$cache_file"; then
11379 test "x$cache_file" != "x/dev/null" &&
11380 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11381 echo "$as_me: updating cache $cache_file" >&6;}
11382 cat confcache >$cache_file
11383 else
11384 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11385 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11388 rm -f confcache
11390 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11391 # Let make expand exec_prefix.
11392 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11394 DEFS=-DHAVE_CONFIG_H
11396 ac_libobjs=
11397 ac_ltlibobjs=
11398 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11399 # 1. Remove the extension, and $U if already installed.
11400 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11401 ac_i=`echo "$ac_i" | sed "$ac_script"`
11402 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11403 # will be set to the directory where LIBOBJS objects are built.
11404 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11405 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11406 done
11407 LIBOBJS=$ac_libobjs
11409 LTLIBOBJS=$ac_ltlibobjs
11413 : ${CONFIG_STATUS=./config.status}
11414 ac_clean_files_save=$ac_clean_files
11415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11416 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11417 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11418 cat >$CONFIG_STATUS <<_ACEOF
11419 #! $SHELL
11420 # Generated by $as_me.
11421 # Run this file to recreate the current configuration.
11422 # Compiler output produced by configure, useful for debugging
11423 # configure, is in config.log if it exists.
11425 debug=false
11426 ac_cs_recheck=false
11427 ac_cs_silent=false
11428 SHELL=\${CONFIG_SHELL-$SHELL}
11429 _ACEOF
11431 cat >>$CONFIG_STATUS <<\_ACEOF
11432 ## --------------------- ##
11433 ## M4sh Initialization. ##
11434 ## --------------------- ##
11436 # Be more Bourne compatible
11437 DUALCASE=1; export DUALCASE # for MKS sh
11438 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11439 emulate sh
11440 NULLCMD=:
11441 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11442 # is contrary to our usage. Disable this feature.
11443 alias -g '${1+"$@"}'='"$@"'
11444 setopt NO_GLOB_SUBST
11445 else
11446 case `(set -o) 2>/dev/null` in
11447 *posix*) set -o posix ;;
11448 esac
11455 # PATH needs CR
11456 # Avoid depending upon Character Ranges.
11457 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11458 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11459 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11460 as_cr_digits='0123456789'
11461 as_cr_alnum=$as_cr_Letters$as_cr_digits
11463 # The user is always right.
11464 if test "${PATH_SEPARATOR+set}" != set; then
11465 echo "#! /bin/sh" >conf$$.sh
11466 echo "exit 0" >>conf$$.sh
11467 chmod +x conf$$.sh
11468 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11469 PATH_SEPARATOR=';'
11470 else
11471 PATH_SEPARATOR=:
11473 rm -f conf$$.sh
11476 # Support unset when possible.
11477 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11478 as_unset=unset
11479 else
11480 as_unset=false
11484 # IFS
11485 # We need space, tab and new line, in precisely that order. Quoting is
11486 # there to prevent editors from complaining about space-tab.
11487 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11488 # splitting by setting IFS to empty value.)
11489 as_nl='
11491 IFS=" "" $as_nl"
11493 # Find who we are. Look in the path if we contain no directory separator.
11494 case $0 in
11495 *[\\/]* ) as_myself=$0 ;;
11496 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497 for as_dir in $PATH
11499 IFS=$as_save_IFS
11500 test -z "$as_dir" && as_dir=.
11501 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11502 done
11503 IFS=$as_save_IFS
11506 esac
11507 # We did not find ourselves, most probably we were run as `sh COMMAND'
11508 # in which case we are not to be found in the path.
11509 if test "x$as_myself" = x; then
11510 as_myself=$0
11512 if test ! -f "$as_myself"; then
11513 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11514 { (exit 1); exit 1; }
11517 # Work around bugs in pre-3.0 UWIN ksh.
11518 for as_var in ENV MAIL MAILPATH
11519 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11520 done
11521 PS1='$ '
11522 PS2='> '
11523 PS4='+ '
11525 # NLS nuisances.
11526 for as_var in \
11527 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11528 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11529 LC_TELEPHONE LC_TIME
11531 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11532 eval $as_var=C; export $as_var
11533 else
11534 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11536 done
11538 # Required to use basename.
11539 if expr a : '\(a\)' >/dev/null 2>&1 &&
11540 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11541 as_expr=expr
11542 else
11543 as_expr=false
11546 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11547 as_basename=basename
11548 else
11549 as_basename=false
11553 # Name of the executable.
11554 as_me=`$as_basename -- "$0" ||
11555 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11556 X"$0" : 'X\(//\)$' \| \
11557 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11558 echo X/"$0" |
11559 sed '/^.*\/\([^/][^/]*\)\/*$/{
11560 s//\1/
11563 /^X\/\(\/\/\)$/{
11564 s//\1/
11567 /^X\/\(\/\).*/{
11568 s//\1/
11571 s/.*/./; q'`
11573 # CDPATH.
11574 $as_unset CDPATH
11578 as_lineno_1=$LINENO
11579 as_lineno_2=$LINENO
11580 test "x$as_lineno_1" != "x$as_lineno_2" &&
11581 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11583 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11584 # uniformly replaced by the line number. The first 'sed' inserts a
11585 # line-number line after each line using $LINENO; the second 'sed'
11586 # does the real work. The second script uses 'N' to pair each
11587 # line-number line with the line containing $LINENO, and appends
11588 # trailing '-' during substitution so that $LINENO is not a special
11589 # case at line end.
11590 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11591 # scripts with optimization help from Paolo Bonzini. Blame Lee
11592 # E. McMahon (1931-1989) for sed's syntax. :-)
11593 sed -n '
11595 /[$]LINENO/=
11596 ' <$as_myself |
11597 sed '
11598 s/[$]LINENO.*/&-/
11599 t lineno
11601 :lineno
11603 :loop
11604 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11605 t loop
11606 s/-\n.*//
11607 ' >$as_me.lineno &&
11608 chmod +x "$as_me.lineno" ||
11609 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11610 { (exit 1); exit 1; }; }
11612 # Don't try to exec as it changes $[0], causing all sort of problems
11613 # (the dirname of $[0] is not the place where we might find the
11614 # original and so on. Autoconf is especially sensitive to this).
11615 . "./$as_me.lineno"
11616 # Exit status is that of the last command.
11617 exit
11621 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11622 as_dirname=dirname
11623 else
11624 as_dirname=false
11627 ECHO_C= ECHO_N= ECHO_T=
11628 case `echo -n x` in
11629 -n*)
11630 case `echo 'x\c'` in
11631 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11632 *) ECHO_C='\c';;
11633 esac;;
11635 ECHO_N='-n';;
11636 esac
11638 if expr a : '\(a\)' >/dev/null 2>&1 &&
11639 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11640 as_expr=expr
11641 else
11642 as_expr=false
11645 rm -f conf$$ conf$$.exe conf$$.file
11646 if test -d conf$$.dir; then
11647 rm -f conf$$.dir/conf$$.file
11648 else
11649 rm -f conf$$.dir
11650 mkdir conf$$.dir
11652 echo >conf$$.file
11653 if ln -s conf$$.file conf$$ 2>/dev/null; then
11654 as_ln_s='ln -s'
11655 # ... but there are two gotchas:
11656 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11657 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11658 # In both cases, we have to default to `cp -p'.
11659 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11660 as_ln_s='cp -p'
11661 elif ln conf$$.file conf$$ 2>/dev/null; then
11662 as_ln_s=ln
11663 else
11664 as_ln_s='cp -p'
11666 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11667 rmdir conf$$.dir 2>/dev/null
11669 if mkdir -p . 2>/dev/null; then
11670 as_mkdir_p=:
11671 else
11672 test -d ./-p && rmdir ./-p
11673 as_mkdir_p=false
11676 if test -x / >/dev/null 2>&1; then
11677 as_test_x='test -x'
11678 else
11679 if ls -dL / >/dev/null 2>&1; then
11680 as_ls_L_option=L
11681 else
11682 as_ls_L_option=
11684 as_test_x='
11685 eval sh -c '\''
11686 if test -d "$1"; then
11687 test -d "$1/.";
11688 else
11689 case $1 in
11690 -*)set "./$1";;
11691 esac;
11692 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11693 ???[sx]*):;;*)false;;esac;fi
11694 '\'' sh
11697 as_executable_p=$as_test_x
11699 # Sed expression to map a string onto a valid CPP name.
11700 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11702 # Sed expression to map a string onto a valid variable name.
11703 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11706 exec 6>&1
11708 # Save the log message, to keep $[0] and so on meaningful, and to
11709 # report actual input values of CONFIG_FILES etc. instead of their
11710 # values after options handling.
11711 ac_log="
11712 This file was extended by $as_me, which was
11713 generated by GNU Autoconf 2.61. Invocation command line was
11715 CONFIG_FILES = $CONFIG_FILES
11716 CONFIG_HEADERS = $CONFIG_HEADERS
11717 CONFIG_LINKS = $CONFIG_LINKS
11718 CONFIG_COMMANDS = $CONFIG_COMMANDS
11719 $ $0 $@
11721 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11724 _ACEOF
11726 cat >>$CONFIG_STATUS <<_ACEOF
11727 # Files that config.status was made for.
11728 config_files="$ac_config_files"
11729 config_headers="$ac_config_headers"
11730 config_commands="$ac_config_commands"
11732 _ACEOF
11734 cat >>$CONFIG_STATUS <<\_ACEOF
11735 ac_cs_usage="\
11736 \`$as_me' instantiates files from templates according to the
11737 current configuration.
11739 Usage: $0 [OPTIONS] [FILE]...
11741 -h, --help print this help, then exit
11742 -V, --version print version number and configuration settings, then exit
11743 -q, --quiet do not print progress messages
11744 -d, --debug don't remove temporary files
11745 --recheck update $as_me by reconfiguring in the same conditions
11746 --file=FILE[:TEMPLATE]
11747 instantiate the configuration file FILE
11748 --header=FILE[:TEMPLATE]
11749 instantiate the configuration header FILE
11751 Configuration files:
11752 $config_files
11754 Configuration headers:
11755 $config_headers
11757 Configuration commands:
11758 $config_commands
11760 Report bugs to <bug-autoconf@gnu.org>."
11762 _ACEOF
11763 cat >>$CONFIG_STATUS <<_ACEOF
11764 ac_cs_version="\\
11765 config.status
11766 configured by $0, generated by GNU Autoconf 2.61,
11767 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11769 Copyright (C) 2006 Free Software Foundation, Inc.
11770 This config.status script is free software; the Free Software Foundation
11771 gives unlimited permission to copy, distribute and modify it."
11773 ac_pwd='$ac_pwd'
11774 srcdir='$srcdir'
11775 _ACEOF
11777 cat >>$CONFIG_STATUS <<\_ACEOF
11778 # If no file are specified by the user, then we need to provide default
11779 # value. By we need to know if files were specified by the user.
11780 ac_need_defaults=:
11781 while test $# != 0
11783 case $1 in
11784 --*=*)
11785 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11786 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11787 ac_shift=:
11790 ac_option=$1
11791 ac_optarg=$2
11792 ac_shift=shift
11794 esac
11796 case $ac_option in
11797 # Handling of the options.
11798 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11799 ac_cs_recheck=: ;;
11800 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11801 echo "$ac_cs_version"; exit ;;
11802 --debug | --debu | --deb | --de | --d | -d )
11803 debug=: ;;
11804 --file | --fil | --fi | --f )
11805 $ac_shift
11806 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11807 ac_need_defaults=false;;
11808 --header | --heade | --head | --hea )
11809 $ac_shift
11810 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11811 ac_need_defaults=false;;
11812 --he | --h)
11813 # Conflict between --help and --header
11814 { echo "$as_me: error: ambiguous option: $1
11815 Try \`$0 --help' for more information." >&2
11816 { (exit 1); exit 1; }; };;
11817 --help | --hel | -h )
11818 echo "$ac_cs_usage"; exit ;;
11819 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11820 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11821 ac_cs_silent=: ;;
11823 # This is an error.
11824 -*) { echo "$as_me: error: unrecognized option: $1
11825 Try \`$0 --help' for more information." >&2
11826 { (exit 1); exit 1; }; } ;;
11828 *) ac_config_targets="$ac_config_targets $1"
11829 ac_need_defaults=false ;;
11831 esac
11832 shift
11833 done
11835 ac_configure_extra_args=
11837 if $ac_cs_silent; then
11838 exec 6>/dev/null
11839 ac_configure_extra_args="$ac_configure_extra_args --silent"
11842 _ACEOF
11843 cat >>$CONFIG_STATUS <<_ACEOF
11844 if \$ac_cs_recheck; then
11845 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11846 CONFIG_SHELL=$SHELL
11847 export CONFIG_SHELL
11848 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11851 _ACEOF
11852 cat >>$CONFIG_STATUS <<\_ACEOF
11853 exec 5>>config.log
11855 echo
11856 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11857 ## Running $as_me. ##
11858 _ASBOX
11859 echo "$ac_log"
11860 } >&5
11862 _ACEOF
11863 cat >>$CONFIG_STATUS <<_ACEOF
11865 # INIT-COMMANDS
11868 aros_tools_dir=${aros_tools_dir}
11869 aros_target_cpu=${aros_target_cpu}
11870 aros_target_arch=${aros_target_arch}
11871 aros_target_suffix=${aros_target_suffix}
11872 aros_target_nm_ln=${aros_target_nm_ln}
11873 aros_target_as_ln=${aros_target_as_ln}
11874 aros_target_ar_ln=${aros_target_ar_ln}
11875 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11876 aros_target_objdump_ln=${aros_target_objdump_ln}
11877 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11878 aros_target_strip_ln=${aros_target_strip_ln}
11881 aros_scripts_dir=${aros_scripts_dir}
11883 aros_tools_dir=${aros_tools_dir}
11886 _ACEOF
11888 cat >>$CONFIG_STATUS <<\_ACEOF
11890 # Handling of arguments.
11891 for ac_config_target in $ac_config_targets
11893 case $ac_config_target in
11894 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11895 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11896 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11897 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11898 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
11899 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11900 "rom/mmakefile") CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
11901 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11902 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11903 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11904 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11905 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11906 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11907 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11908 "${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" ;;
11909 "${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" ;;
11910 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
11911 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11912 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
11913 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11915 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11916 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11917 { (exit 1); exit 1; }; };;
11918 esac
11919 done
11922 # If the user did not use the arguments to specify the items to instantiate,
11923 # then the envvar interface is used. Set only those that are not.
11924 # We use the long form for the default assignment because of an extremely
11925 # bizarre bug on SunOS 4.1.3.
11926 if $ac_need_defaults; then
11927 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11928 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11929 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11932 # Have a temporary directory for convenience. Make it in the build tree
11933 # simply because there is no reason against having it here, and in addition,
11934 # creating and moving files from /tmp can sometimes cause problems.
11935 # Hook for its removal unless debugging.
11936 # Note that there is a small window in which the directory will not be cleaned:
11937 # after its creation but before its name has been assigned to `$tmp'.
11938 $debug ||
11940 tmp=
11941 trap 'exit_status=$?
11942 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11944 trap '{ (exit 1); exit 1; }' 1 2 13 15
11946 # Create a (secure) tmp directory for tmp files.
11949 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11950 test -n "$tmp" && test -d "$tmp"
11951 } ||
11953 tmp=./conf$$-$RANDOM
11954 (umask 077 && mkdir "$tmp")
11955 } ||
11957 echo "$me: cannot create a temporary directory in ." >&2
11958 { (exit 1); exit 1; }
11962 # Set up the sed scripts for CONFIG_FILES section.
11965 # No need to generate the scripts if there are no CONFIG_FILES.
11966 # This happens for instance when ./config.status config.h
11967 if test -n "$CONFIG_FILES"; then
11969 _ACEOF
11973 ac_delim='%!_!# '
11974 for ac_last_try in false false false false false :; do
11975 cat >conf$$subs.sed <<_ACEOF
11976 SHELL!$SHELL$ac_delim
11977 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11978 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11979 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11980 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11981 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11982 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11983 exec_prefix!$exec_prefix$ac_delim
11984 prefix!$prefix$ac_delim
11985 program_transform_name!$program_transform_name$ac_delim
11986 bindir!$bindir$ac_delim
11987 sbindir!$sbindir$ac_delim
11988 libexecdir!$libexecdir$ac_delim
11989 datarootdir!$datarootdir$ac_delim
11990 datadir!$datadir$ac_delim
11991 sysconfdir!$sysconfdir$ac_delim
11992 sharedstatedir!$sharedstatedir$ac_delim
11993 localstatedir!$localstatedir$ac_delim
11994 includedir!$includedir$ac_delim
11995 oldincludedir!$oldincludedir$ac_delim
11996 docdir!$docdir$ac_delim
11997 infodir!$infodir$ac_delim
11998 htmldir!$htmldir$ac_delim
11999 dvidir!$dvidir$ac_delim
12000 pdfdir!$pdfdir$ac_delim
12001 psdir!$psdir$ac_delim
12002 libdir!$libdir$ac_delim
12003 localedir!$localedir$ac_delim
12004 mandir!$mandir$ac_delim
12005 DEFS!$DEFS$ac_delim
12006 ECHO_C!$ECHO_C$ac_delim
12007 ECHO_N!$ECHO_N$ac_delim
12008 ECHO_T!$ECHO_T$ac_delim
12009 LIBS!$LIBS$ac_delim
12010 build_alias!$build_alias$ac_delim
12011 host_alias!$host_alias$ac_delim
12012 target_alias!$target_alias$ac_delim
12013 build!$build$ac_delim
12014 build_cpu!$build_cpu$ac_delim
12015 build_vendor!$build_vendor$ac_delim
12016 build_os!$build_os$ac_delim
12017 host!$host$ac_delim
12018 host_cpu!$host_cpu$ac_delim
12019 host_vendor!$host_vendor$ac_delim
12020 host_os!$host_os$ac_delim
12021 CC!$CC$ac_delim
12022 CFLAGS!$CFLAGS$ac_delim
12023 LDFLAGS!$LDFLAGS$ac_delim
12024 CPPFLAGS!$CPPFLAGS$ac_delim
12025 ac_ct_CC!$ac_ct_CC$ac_delim
12026 EXEEXT!$EXEEXT$ac_delim
12027 OBJEXT!$OBJEXT$ac_delim
12028 CPP!$CPP$ac_delim
12029 AWK!$AWK$ac_delim
12030 MMAKE!$MMAKE$ac_delim
12031 aros_host_ld!$aros_host_ld$ac_delim
12032 aros_host_aclocal!$aros_host_aclocal$ac_delim
12033 aros_host_autoconf!$aros_host_autoconf$ac_delim
12034 aros_host_autoheader!$aros_host_autoheader$ac_delim
12035 aros_host_automake!$aros_host_automake$ac_delim
12036 aros_host_ar!$aros_host_ar$ac_delim
12037 aros_host_ranlib!$aros_host_ranlib$ac_delim
12038 aros_host_strip!$aros_host_strip$ac_delim
12039 RM!$RM$ac_delim
12040 CP!$CP$ac_delim
12041 MV!$MV$ac_delim
12042 ECHO!$ECHO$ac_delim
12043 MKDIR!$MKDIR$ac_delim
12044 TOUCH!$TOUCH$ac_delim
12045 SORT!$SORT$ac_delim
12046 UNIQ!$UNIQ$ac_delim
12047 NOP!$NOP$ac_delim
12048 CAT!$CAT$ac_delim
12049 BISON!$BISON$ac_delim
12050 FLEX!$FLEX$ac_delim
12051 PNGTOPNM!$PNGTOPNM$ac_delim
12052 PPMTOILBM!$PPMTOILBM$ac_delim
12053 SED!$SED$ac_delim
12054 CHMOD!$CHMOD$ac_delim
12055 PYTHON!$PYTHON$ac_delim
12056 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
12057 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
12058 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
12059 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
12060 pythondir!$pythondir$ac_delim
12061 pkgpythondir!$pkgpythondir$ac_delim
12062 pyexecdir!$pyexecdir$ac_delim
12063 pkgpyexecdir!$pkgpyexecdir$ac_delim
12064 FOR!$FOR$ac_delim
12065 IF!$IF$ac_delim
12066 TEST!$TEST$ac_delim
12067 CMP!$CMP$ac_delim
12068 GREP!$GREP$ac_delim
12069 EGREP!$EGREP$ac_delim
12070 LIBOBJS!$LIBOBJS$ac_delim
12071 DISTCC!$DISTCC$ac_delim
12072 CCACHE!$CCACHE$ac_delim
12073 _ACEOF
12075 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12076 break
12077 elif $ac_last_try; then
12078 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12079 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12080 { (exit 1); exit 1; }; }
12081 else
12082 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12084 done
12086 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12087 if test -n "$ac_eof"; then
12088 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12089 ac_eof=`expr $ac_eof + 1`
12092 cat >>$CONFIG_STATUS <<_ACEOF
12093 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12094 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12095 _ACEOF
12096 sed '
12097 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12098 s/^/s,@/; s/!/@,|#_!!_#|/
12101 s/'"$ac_delim"'$/,g/; t
12102 s/$/\\/; p
12103 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12104 ' >>$CONFIG_STATUS <conf$$subs.sed
12105 rm -f conf$$subs.sed
12106 cat >>$CONFIG_STATUS <<_ACEOF
12107 CEOF$ac_eof
12108 _ACEOF
12111 ac_delim='%!_!# '
12112 for ac_last_try in false false false false false :; do
12113 cat >conf$$subs.sed <<_ACEOF
12114 aros_kernel_cc!$aros_kernel_cc$ac_delim
12115 aros_target_as_ln!$aros_target_as_ln$ac_delim
12116 aros_kernel_ld!$aros_kernel_ld$ac_delim
12117 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
12118 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
12119 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
12120 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
12121 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
12122 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
12123 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
12124 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
12125 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
12126 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
12127 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
12128 XMKMF!$XMKMF$ac_delim
12129 SDL_CONFIG!$SDL_CONFIG$ac_delim
12130 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
12131 SDL_LIBS!$SDL_LIBS$ac_delim
12132 aros_arch!$aros_arch$ac_delim
12133 aros_cpu!$aros_cpu$ac_delim
12134 aros_flavour!$aros_flavour$ac_delim
12135 aros_flavour_uc!$aros_flavour_uc$ac_delim
12136 TOPDIR!$TOPDIR$ac_delim
12137 aros_cc_pre!$aros_cc_pre$ac_delim
12138 aros_host_arch!$aros_host_arch$ac_delim
12139 aros_host_cpu!$aros_host_cpu$ac_delim
12140 aros_host_cc!$aros_host_cc$ac_delim
12141 aros_host_make!$aros_host_make$ac_delim
12142 aros_host_cflags!$aros_host_cflags$ac_delim
12143 aros_host_ldflags!$aros_host_ldflags$ac_delim
12144 aros_host_debug!$aros_host_debug$ac_delim
12145 aros_host_mkdep!$aros_host_mkdep$ac_delim
12146 aros_host_mkargs!$aros_host_mkargs$ac_delim
12147 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
12148 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
12149 aros_tools_dir!$aros_tools_dir$ac_delim
12150 aros_target_arch!$aros_target_arch$ac_delim
12151 aros_target_cpu!$aros_target_cpu$ac_delim
12152 aros_target_variant!$aros_target_variant$ac_delim
12153 aros_target_suffix!$aros_target_suffix$ac_delim
12154 aros_target_incl!$aros_target_incl$ac_delim
12155 aros_target_ar!$aros_target_ar$ac_delim
12156 aros_target_ranlib!$aros_target_ranlib$ac_delim
12157 aros_kernel_nm!$aros_kernel_nm$ac_delim
12158 aros_target_cc!$aros_target_cc$ac_delim
12159 aros_target_as!$aros_target_as$ac_delim
12160 aros_target_ld!$aros_target_ld$ac_delim
12161 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
12162 aros_target_cc_options!$aros_target_cc_options$ac_delim
12163 aros_target_cc_path!$aros_target_cc_path$ac_delim
12164 aros_target_objdump!$aros_target_objdump$ac_delim
12165 aros_target_objcopy!$aros_target_objcopy$ac_delim
12166 aros_target_strip!$aros_target_strip$ac_delim
12167 aros_target_nm!$aros_target_nm$ac_delim
12168 aros_shared_default!$aros_shared_default$ac_delim
12169 aros_shared_ld!$aros_shared_ld$ac_delim
12170 aros_object_format!$aros_object_format$ac_delim
12171 aros_compiler_libs!$aros_compiler_libs$ac_delim
12172 aros_config_cflags!$aros_config_cflags$ac_delim
12173 aros_config_aflags!$aros_config_aflags$ac_delim
12174 aros_config_ldflags!$aros_config_ldflags$ac_delim
12175 aros_shared_cflags!$aros_shared_cflags$ac_delim
12176 aros_shared_aflags!$aros_shared_aflags$ac_delim
12177 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
12178 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
12179 aros_debug_cflags!$aros_debug_cflags$ac_delim
12180 aros_debug_aflags!$aros_debug_aflags$ac_delim
12181 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
12182 aros_target_genmap!$aros_target_genmap$ac_delim
12183 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
12184 aros_gui_libdir!$aros_gui_libdir$ac_delim
12185 aros_gui_ldflags!$aros_gui_ldflags$ac_delim
12186 aros_gui_libflags!$aros_gui_libflags$ac_delim
12187 aros_gui_incdir!$aros_gui_incdir$ac_delim
12188 aros_gui_ccflags!$aros_gui_ccflags$ac_delim
12189 x11_hidd_target!$x11_hidd_target$ac_delim
12190 sdl_hidd_target!$sdl_hidd_target$ac_delim
12191 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
12192 aros_default_wbheight!$aros_default_wbheight$ac_delim
12193 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
12194 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
12195 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
12196 aros_bochs_hack!$aros_bochs_hack$ac_delim
12197 aros_serial_debug!$aros_serial_debug$ac_delim
12198 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
12199 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
12200 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
12201 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
12202 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
12203 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
12204 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
12205 aros_debug!$aros_debug$ac_delim
12206 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
12207 aros_stack_debug!$aros_stack_debug$ac_delim
12208 aros_modules_debug!$aros_modules_debug$ac_delim
12209 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
12210 gcc_target_cpu!$gcc_target_cpu$ac_delim
12211 _ACEOF
12213 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12214 break
12215 elif $ac_last_try; then
12216 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12217 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12218 { (exit 1); exit 1; }; }
12219 else
12220 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12222 done
12224 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12225 if test -n "$ac_eof"; then
12226 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12227 ac_eof=`expr $ac_eof + 1`
12230 cat >>$CONFIG_STATUS <<_ACEOF
12231 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12232 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12233 _ACEOF
12234 sed '
12235 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12236 s/^/s,@/; s/!/@,|#_!!_#|/
12239 s/'"$ac_delim"'$/,g/; t
12240 s/$/\\/; p
12241 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12242 ' >>$CONFIG_STATUS <conf$$subs.sed
12243 rm -f conf$$subs.sed
12244 cat >>$CONFIG_STATUS <<_ACEOF
12245 CEOF$ac_eof
12246 _ACEOF
12249 ac_delim='%!_!# '
12250 for ac_last_try in false false false false false :; do
12251 cat >conf$$subs.sed <<_ACEOF
12252 LTLIBOBJS!$LTLIBOBJS$ac_delim
12253 _ACEOF
12255 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 1; then
12256 break
12257 elif $ac_last_try; then
12258 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12259 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12260 { (exit 1); exit 1; }; }
12261 else
12262 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12264 done
12266 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12267 if test -n "$ac_eof"; then
12268 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12269 ac_eof=`expr $ac_eof + 1`
12272 cat >>$CONFIG_STATUS <<_ACEOF
12273 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
12274 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
12275 _ACEOF
12276 sed '
12277 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12278 s/^/s,@/; s/!/@,|#_!!_#|/
12281 s/'"$ac_delim"'$/,g/; t
12282 s/$/\\/; p
12283 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12284 ' >>$CONFIG_STATUS <conf$$subs.sed
12285 rm -f conf$$subs.sed
12286 cat >>$CONFIG_STATUS <<_ACEOF
12287 :end
12288 s/|#_!!_#|//g
12289 CEOF$ac_eof
12290 _ACEOF
12293 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12294 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12295 # trailing colons and then remove the whole line if VPATH becomes empty
12296 # (actually we leave an empty line to preserve line numbers).
12297 if test "x$srcdir" = x.; then
12298 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12299 s/:*\$(srcdir):*/:/
12300 s/:*\${srcdir}:*/:/
12301 s/:*@srcdir@:*/:/
12302 s/^\([^=]*=[ ]*\):*/\1/
12303 s/:*$//
12304 s/^[^=]*=[ ]*$//
12308 cat >>$CONFIG_STATUS <<\_ACEOF
12309 fi # test -n "$CONFIG_FILES"
12312 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12314 case $ac_tag in
12315 :[FHLC]) ac_mode=$ac_tag; continue;;
12316 esac
12317 case $ac_mode$ac_tag in
12318 :[FHL]*:*);;
12319 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12320 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12321 { (exit 1); exit 1; }; };;
12322 :[FH]-) ac_tag=-:-;;
12323 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12324 esac
12325 ac_save_IFS=$IFS
12326 IFS=:
12327 set x $ac_tag
12328 IFS=$ac_save_IFS
12329 shift
12330 ac_file=$1
12331 shift
12333 case $ac_mode in
12334 :L) ac_source=$1;;
12335 :[FH])
12336 ac_file_inputs=
12337 for ac_f
12339 case $ac_f in
12340 -) ac_f="$tmp/stdin";;
12341 *) # Look for the file first in the build tree, then in the source tree
12342 # (if the path is not absolute). The absolute path cannot be DOS-style,
12343 # because $ac_f cannot contain `:'.
12344 test -f "$ac_f" ||
12345 case $ac_f in
12346 [\\/$]*) false;;
12347 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12348 esac ||
12349 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12350 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12351 { (exit 1); exit 1; }; };;
12352 esac
12353 ac_file_inputs="$ac_file_inputs $ac_f"
12354 done
12356 # Let's still pretend it is `configure' which instantiates (i.e., don't
12357 # use $as_me), people would be surprised to read:
12358 # /* config.h. Generated by config.status. */
12359 configure_input="Generated from "`IFS=:
12360 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12361 if test x"$ac_file" != x-; then
12362 configure_input="$ac_file. $configure_input"
12363 { echo "$as_me:$LINENO: creating $ac_file" >&5
12364 echo "$as_me: creating $ac_file" >&6;}
12367 case $ac_tag in
12368 *:-:* | *:-) cat >"$tmp/stdin";;
12369 esac
12371 esac
12373 ac_dir=`$as_dirname -- "$ac_file" ||
12374 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12375 X"$ac_file" : 'X\(//\)[^/]' \| \
12376 X"$ac_file" : 'X\(//\)$' \| \
12377 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12378 echo X"$ac_file" |
12379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12380 s//\1/
12383 /^X\(\/\/\)[^/].*/{
12384 s//\1/
12387 /^X\(\/\/\)$/{
12388 s//\1/
12391 /^X\(\/\).*/{
12392 s//\1/
12395 s/.*/./; q'`
12396 { as_dir="$ac_dir"
12397 case $as_dir in #(
12398 -*) as_dir=./$as_dir;;
12399 esac
12400 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12401 as_dirs=
12402 while :; do
12403 case $as_dir in #(
12404 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12405 *) as_qdir=$as_dir;;
12406 esac
12407 as_dirs="'$as_qdir' $as_dirs"
12408 as_dir=`$as_dirname -- "$as_dir" ||
12409 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12410 X"$as_dir" : 'X\(//\)[^/]' \| \
12411 X"$as_dir" : 'X\(//\)$' \| \
12412 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12413 echo X"$as_dir" |
12414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12415 s//\1/
12418 /^X\(\/\/\)[^/].*/{
12419 s//\1/
12422 /^X\(\/\/\)$/{
12423 s//\1/
12426 /^X\(\/\).*/{
12427 s//\1/
12430 s/.*/./; q'`
12431 test -d "$as_dir" && break
12432 done
12433 test -z "$as_dirs" || eval "mkdir $as_dirs"
12434 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12435 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12436 { (exit 1); exit 1; }; }; }
12437 ac_builddir=.
12439 case "$ac_dir" in
12440 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12442 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12443 # A ".." for each directory in $ac_dir_suffix.
12444 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12445 case $ac_top_builddir_sub in
12446 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12447 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12448 esac ;;
12449 esac
12450 ac_abs_top_builddir=$ac_pwd
12451 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12452 # for backward compatibility:
12453 ac_top_builddir=$ac_top_build_prefix
12455 case $srcdir in
12456 .) # We are building in place.
12457 ac_srcdir=.
12458 ac_top_srcdir=$ac_top_builddir_sub
12459 ac_abs_top_srcdir=$ac_pwd ;;
12460 [\\/]* | ?:[\\/]* ) # Absolute name.
12461 ac_srcdir=$srcdir$ac_dir_suffix;
12462 ac_top_srcdir=$srcdir
12463 ac_abs_top_srcdir=$srcdir ;;
12464 *) # Relative name.
12465 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12466 ac_top_srcdir=$ac_top_build_prefix$srcdir
12467 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12468 esac
12469 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12472 case $ac_mode in
12475 # CONFIG_FILE
12478 _ACEOF
12480 cat >>$CONFIG_STATUS <<\_ACEOF
12481 # If the template does not know about datarootdir, expand it.
12482 # FIXME: This hack should be removed a few years after 2.60.
12483 ac_datarootdir_hack=; ac_datarootdir_seen=
12485 case `sed -n '/datarootdir/ {
12489 /@datadir@/p
12490 /@docdir@/p
12491 /@infodir@/p
12492 /@localedir@/p
12493 /@mandir@/p
12494 ' $ac_file_inputs` in
12495 *datarootdir*) ac_datarootdir_seen=yes;;
12496 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12497 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12498 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12499 _ACEOF
12500 cat >>$CONFIG_STATUS <<_ACEOF
12501 ac_datarootdir_hack='
12502 s&@datadir@&$datadir&g
12503 s&@docdir@&$docdir&g
12504 s&@infodir@&$infodir&g
12505 s&@localedir@&$localedir&g
12506 s&@mandir@&$mandir&g
12507 s&\\\${datarootdir}&$datarootdir&g' ;;
12508 esac
12509 _ACEOF
12511 # Neutralize VPATH when `$srcdir' = `.'.
12512 # Shell code in configure.ac might set extrasub.
12513 # FIXME: do we really want to maintain this feature?
12514 cat >>$CONFIG_STATUS <<_ACEOF
12515 sed "$ac_vpsub
12516 $extrasub
12517 _ACEOF
12518 cat >>$CONFIG_STATUS <<\_ACEOF
12520 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12521 s&@configure_input@&$configure_input&;t t
12522 s&@top_builddir@&$ac_top_builddir_sub&;t t
12523 s&@srcdir@&$ac_srcdir&;t t
12524 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12525 s&@top_srcdir@&$ac_top_srcdir&;t t
12526 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12527 s&@builddir@&$ac_builddir&;t t
12528 s&@abs_builddir@&$ac_abs_builddir&;t t
12529 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12530 $ac_datarootdir_hack
12531 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" >$tmp/out
12533 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12534 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12535 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12536 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12537 which seems to be undefined. Please make sure it is defined." >&5
12538 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12539 which seems to be undefined. Please make sure it is defined." >&2;}
12541 rm -f "$tmp/stdin"
12542 case $ac_file in
12543 -) cat "$tmp/out"; rm -f "$tmp/out";;
12544 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12545 esac
12549 # CONFIG_HEADER
12551 _ACEOF
12553 # Transform confdefs.h into a sed script `conftest.defines', that
12554 # substitutes the proper values into config.h.in to produce config.h.
12555 rm -f conftest.defines conftest.tail
12556 # First, append a space to every undef/define line, to ease matching.
12557 echo 's/$/ /' >conftest.defines
12558 # Then, protect against being on the right side of a sed subst, or in
12559 # an unquoted here document, in config.status. If some macros were
12560 # called several times there might be several #defines for the same
12561 # symbol, which is useless. But do not sort them, since the last
12562 # AC_DEFINE must be honored.
12563 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12564 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12565 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12566 # PARAMS is the parameter list in the macro definition--in most cases, it's
12567 # just an empty string.
12568 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12569 ac_dB='\\)[ (].*,\\1define\\2'
12570 ac_dC=' '
12571 ac_dD=' ,'
12573 uniq confdefs.h |
12574 sed -n '
12575 t rset
12576 :rset
12577 s/^[ ]*#[ ]*define[ ][ ]*//
12578 t ok
12581 s/[\\&,]/\\&/g
12582 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12583 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12584 ' >>conftest.defines
12586 # Remove the space that was appended to ease matching.
12587 # Then replace #undef with comments. This is necessary, for
12588 # example, in the case of _POSIX_SOURCE, which is predefined and required
12589 # on some systems where configure will not decide to define it.
12590 # (The regexp can be short, since the line contains either #define or #undef.)
12591 echo 's/ $//
12592 s,^[ #]*u.*,/* & */,' >>conftest.defines
12594 # Break up conftest.defines:
12595 ac_max_sed_lines=50
12597 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12598 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12599 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12600 # et cetera.
12601 ac_in='$ac_file_inputs'
12602 ac_out='"$tmp/out1"'
12603 ac_nxt='"$tmp/out2"'
12605 while :
12607 # Write a here document:
12608 cat >>$CONFIG_STATUS <<_ACEOF
12609 # First, check the format of the line:
12610 cat >"\$tmp/defines.sed" <<\\CEOF
12611 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12612 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12614 :def
12615 _ACEOF
12616 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12617 echo 'CEOF
12618 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12619 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12620 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12621 grep . conftest.tail >/dev/null || break
12622 rm -f conftest.defines
12623 mv conftest.tail conftest.defines
12624 done
12625 rm -f conftest.defines conftest.tail
12627 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12628 cat >>$CONFIG_STATUS <<\_ACEOF
12629 if test x"$ac_file" != x-; then
12630 echo "/* $configure_input */" >"$tmp/config.h"
12631 cat "$ac_result" >>"$tmp/config.h"
12632 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12633 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12634 echo "$as_me: $ac_file is unchanged" >&6;}
12635 else
12636 rm -f $ac_file
12637 mv "$tmp/config.h" $ac_file
12639 else
12640 echo "/* $configure_input */"
12641 cat "$ac_result"
12643 rm -f "$tmp/out12"
12646 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12647 echo "$as_me: executing $ac_file commands" >&6;}
12649 esac
12652 case $ac_file$ac_mode in
12653 "compiler_executable":C)
12654 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12655 mkdir -p $prefix
12656 prefix="${prefix}/${aros_target_cpu}-aros"
12657 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12659 echo ${prefix}
12660 echo ${prefix2}
12661 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12663 ln -sf ${prefix2}-gcc ${prefix}-gcc
12664 ln -sf ${prefix2}-ld ${prefix}-ld
12666 ln -sf $aros_target_as_ln ${prefix}-as
12667 ln -sf $aros_target_nm_ln ${prefix}-nm
12668 ln -sf $aros_target_ar_ln ${prefix}-ar
12669 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
12670 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
12671 ln -sf $aros_target_objdump_ln ${prefix}-objdump
12672 ln -sf $aros_target_strip_ln ${prefix}-strip
12674 ln -sf $aros_target_as_ln ${prefix2}-as
12675 ln -sf $aros_target_nm_ln ${prefix2}-nm
12676 ln -sf $aros_target_ar_ln ${prefix2}-ar
12677 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
12678 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
12679 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
12680 ln -sf $aros_target_strip_ln ${prefix2}-strip
12682 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
12683 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12684 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
12687 esac
12688 done # for ac_tag
12691 { (exit 0); exit 0; }
12692 _ACEOF
12693 chmod +x $CONFIG_STATUS
12694 ac_clean_files=$ac_clean_files_save
12697 # configure is writing to config.log, and then calls config.status.
12698 # config.status does its own redirection, appending to config.log.
12699 # Unfortunately, on DOS this fails, as config.log is still kept open
12700 # by configure, so config.status won't be able to write to it; its
12701 # output is simply discarded. So we exec the FD to /dev/null,
12702 # effectively closing config.log, so it can be properly (re)opened and
12703 # appended to by config.status. When coming back to configure, we
12704 # need to make the FD available again.
12705 if test "$no_create" != yes; then
12706 ac_cs_success=:
12707 ac_config_status_args=
12708 test "$silent" = yes &&
12709 ac_config_status_args="$ac_config_status_args --quiet"
12710 exec 5>/dev/null
12711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12712 exec 5>>config.log
12713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12714 # would make configure fail if this is the last instruction.
12715 $ac_cs_success || { (exit 1); exit 1; }
12720 #XXX compatability...
12721 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12723 if test -n "$aros_shared_cflags" ; then
12724 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12725 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg