Fixed warnings and removed comparisons against TRUE.
[tangerine.git] / configure
blobc0d3374e6892040cbd0aeceae840b5e1895b6bdf
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_path
762 aros_target_objdump
763 aros_target_objcopy
764 aros_target_strip
765 aros_target_nm
766 aros_shared_default
767 aros_shared_ld
768 aros_object_format
769 aros_compiler_libs
770 aros_config_cflags
771 aros_config_aflags
772 aros_config_ldflags
773 aros_shared_cflags
774 aros_shared_aflags
775 aros_shared_ldflags
776 aros_kernel_ldflags
777 aros_debug_cflags
778 aros_debug_aflags
779 aros_debug_ldflags
780 aros_target_genmap
781 aros_target_strip_flags
782 aros_gui_libdir
783 aros_gui_ldflags
784 aros_gui_libflags
785 aros_gui_incdir
786 aros_gui_ccflags
787 x11_hidd_target
788 sdl_hidd_target
789 aros_default_wbwidth
790 aros_default_wbheight
791 aros_default_wbdepth
792 DO_XSHM_SUPPORT
793 DO_VIDMODE_SUPPORT
794 aros_bochs_hack
795 aros_serial_debug
796 aros_palm_debug_hack
797 aros_nesting_supervisor
798 ENABLE_DBUS
799 DBUS_CFLAGS
800 DBUS_LIBFLAGS
801 KERNEL_DBUS_KOBJ
802 KERNEL_DBUS_INCLUDES
803 aros_debug
804 aros_mungwall_debug
805 aros_stack_debug
806 aros_modules_debug
807 ignore_undefined_symbols
808 gcc_target_cpu
809 LTLIBOBJS'
810 ac_subst_files=''
811 ac_precious_vars='build_alias
812 host_alias
813 target_alias
815 CFLAGS
816 LDFLAGS
817 LIBS
818 CPPFLAGS
820 XMKMF'
823 # Initialize some variables set by options.
824 ac_init_help=
825 ac_init_version=false
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE}'
860 infodir='${datarootdir}/info'
861 htmldir='${docdir}'
862 dvidir='${docdir}'
863 pdfdir='${docdir}'
864 psdir='${docdir}'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
869 ac_prev=
870 ac_dashdash=
871 for ac_option
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
876 ac_prev=
877 continue
880 case $ac_option in
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
882 *) ac_optarg=yes ;;
883 esac
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
889 ac_dashdash=yes ;;
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 ac_prev=bindir ;;
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 bindir=$ac_optarg ;;
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
908 --config-cache | -C)
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
912 ac_prev=datadir ;;
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
930 eval enable_$ac_feature=no ;;
932 -docdir | --docdir | --docdi | --doc | --do)
933 ac_prev=docdir ;;
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 docdir=$ac_optarg ;;
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 ac_prev=dvidir ;;
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 dvidir=$ac_optarg ;;
942 -enable-* | --enable-*)
943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
962 with_gas=yes ;;
964 -help | --help | --hel | --he | -h)
965 ac_init_help=long ;;
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 ac_prev=htmldir ;;
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 | --ht=*)
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 ac_prev=infodir ;;
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
995 ac_prev=libdir ;;
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 libdir=$ac_optarg ;;
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 ac_prev=mandir ;;
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1025 with_fp=no ;;
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1029 no_create=yes ;;
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 no_recursion=yes ;;
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 ac_prev=prefix ;;
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 ac_prev=pdfdir ;;
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1086 ac_prev=psdir ;;
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 psdir=$ac_optarg ;;
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1092 silent=yes ;;
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 ac_prev=sbindir ;;
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 | --sbi=* | --sb=*)
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1103 | --sha | --sh)
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 | --sha=* | --sh=*)
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1112 ac_prev=site ;;
1113 -site=* | --site=* | --sit=*)
1114 site=$ac_optarg ;;
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 ac_prev=srcdir ;;
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 verbose=yes ;;
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1139 -with-* | --with-*)
1140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1155 eval with_$ac_package=no ;;
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176 Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
1180 *=*)
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1197 esac
1198 done
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
1206 # Be sure to have absolute directory names.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1213 case $ac_val in
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 esac
1217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
1219 done
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1224 build=$build_alias
1225 host=$host_alias
1226 target=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1235 cross_compiling=yes
1239 ac_tool_prefix=
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$0" ||
1260 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264 echo X"$0" |
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1266 s//\1/
1269 /^X\(\/\/\)[^/].*/{
1270 s//\1/
1273 /^X\(\/\/\)$/{
1274 s//\1/
1277 /^X\(\/\).*/{
1278 s//\1/
1281 s/.*/./; q'`
1282 srcdir=$ac_confdir
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1284 srcdir=..
1286 else
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
1298 pwd)`
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 srcdir=.
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1306 case $srcdir in
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 esac
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314 done
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1322 cat <<_ACEOF
1323 \`configure' configures this package to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1332 Configuration:
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 [PREFIX]
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1376 _ACEOF
1378 cat <<\_ACEOF
1380 X features:
1381 --x-includes=DIR X include files are in DIR
1382 --x-libraries=DIR X library files are in DIR
1384 System types:
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 _ACEOF
1390 if test -n "$ac_init_help"; then
1392 cat <<\_ACEOF
1394 Optional Features:
1395 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1396 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1397 --enable-build-type=TYPE
1398 Select the build type. Available types are:
1399 personal, nightly, snapshot, milestone, release. Do
1400 NOT use this option unless you know what you are
1401 doing! (default=personal)
1402 --enable-debug=list Enable different types of debug. Commas or
1403 whitespaces can be used to separate the items in the
1404 list. Available types of debug are: all, none,
1405 messages, stack, mungwall, modules, symbols. If no
1406 list is provided then "all" is assumed.
1407 (default=none)
1408 --enable-distcc Use distcc as a front end to the compiler
1409 (default=no).
1410 --enable-ccache Use ccache as a front end to the compiler
1411 (default=no).
1412 --enable-target-variant=NAME
1413 Enable a specific target variant(default=none)
1414 --enable-includes=dir Alternative system include directory
1415 --enable-bochs-hack Enable hacks to make BOCHS (partly) work
1416 (default=no)
1417 --enable-palm-debug-hack
1418 Enable palm debug output hack in palm native
1419 (default=no)
1420 --enable-nesting-supervisor
1421 Enable nesting supervisor support in unix
1422 (default=no)
1423 --enable-x11-hidd build X11 hidd for hosted (default=auto)
1424 --enable-x11-shm use X11 shared memory (default=auto)
1425 --enable-x11-vidmode use X11 vidmode extension (default=auto)
1426 --enable-sdl-hidd build SDL hidd for hosted (default=auto)
1427 --disable-sdltest Do not try to compile and run a test SDL program
1428 --enable-dbus Enable DBUS support via dbus.library (default=no)
1430 Optional Packages:
1431 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1432 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1433 --with-optimization=FLAGS
1434 Use optimization flags FLAGS (default=-O2).
1435 --with-resolution=XRESxYRESxDEPTH
1436 Default resolution of the initial WorkbenchScreen
1437 --with-serial-debug Enable serial debug output in native (default=no)
1438 --with-x use the X Window System
1439 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1440 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1442 Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 CPP C preprocessor
1451 XMKMF Path to xmkmf, Makefile generator for X Window System
1453 Use these variables to override the choices made by `configure' or to help
1454 it to find libraries and programs with nonstandard names/locations.
1456 _ACEOF
1457 ac_status=$?
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" || continue
1464 ac_builddir=.
1466 case "$ac_dir" in
1467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1469 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1475 esac ;;
1476 esac
1477 ac_abs_top_builddir=$ac_pwd
1478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir=$ac_top_build_prefix
1482 case $srcdir in
1483 .) # We are building in place.
1484 ac_srcdir=.
1485 ac_top_srcdir=$ac_top_builddir_sub
1486 ac_abs_top_srcdir=$ac_pwd ;;
1487 [\\/]* | ?:[\\/]* ) # Absolute name.
1488 ac_srcdir=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir=$srcdir
1490 ac_abs_top_srcdir=$srcdir ;;
1491 *) # Relative name.
1492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1495 esac
1496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1498 cd "$ac_dir" || { ac_status=$?; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1501 echo &&
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1504 echo &&
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1506 else
1507 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1508 fi || ac_status=$?
1509 cd "$ac_pwd" || { ac_status=$?; break; }
1510 done
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1515 cat <<\_ACEOF
1516 configure
1517 generated by GNU Autoconf 2.61
1519 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1520 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1521 This configure script is free software; the Free Software Foundation
1522 gives unlimited permission to copy, distribute and modify it.
1523 _ACEOF
1524 exit
1526 cat >config.log <<_ACEOF
1527 This file contains any messages produced by compilers while
1528 running configure, to aid debugging if configure makes a mistake.
1530 It was created by $as_me, which was
1531 generated by GNU Autoconf 2.61. Invocation command line was
1533 $ $0 $@
1535 _ACEOF
1536 exec 5>>config.log
1538 cat <<_ASUNAME
1539 ## --------- ##
1540 ## Platform. ##
1541 ## --------- ##
1543 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1544 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1545 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1546 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1547 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1549 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1550 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1552 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1553 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1554 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1555 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1556 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1557 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1558 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1560 _ASUNAME
1562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1563 for as_dir in $PATH
1565 IFS=$as_save_IFS
1566 test -z "$as_dir" && as_dir=.
1567 echo "PATH: $as_dir"
1568 done
1569 IFS=$as_save_IFS
1571 } >&5
1573 cat >&5 <<_ACEOF
1576 ## ----------- ##
1577 ## Core tests. ##
1578 ## ----------- ##
1580 _ACEOF
1583 # Keep a trace of the command line.
1584 # Strip out --no-create and --no-recursion so they do not pile up.
1585 # Strip out --silent because we don't want to record it for future runs.
1586 # Also quote any args containing shell meta-characters.
1587 # Make two passes to allow for proper duplicate-argument suppression.
1588 ac_configure_args=
1589 ac_configure_args0=
1590 ac_configure_args1=
1591 ac_must_keep_next=false
1592 for ac_pass in 1 2
1594 for ac_arg
1596 case $ac_arg in
1597 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1598 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1599 | -silent | --silent | --silen | --sile | --sil)
1600 continue ;;
1601 *\'*)
1602 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1603 esac
1604 case $ac_pass in
1605 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1607 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1608 if test $ac_must_keep_next = true; then
1609 ac_must_keep_next=false # Got value, back to normal.
1610 else
1611 case $ac_arg in
1612 *=* | --config-cache | -C | -disable-* | --disable-* \
1613 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1614 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1615 | -with-* | --with-* | -without-* | --without-* | --x)
1616 case "$ac_configure_args0 " in
1617 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1618 esac
1620 -* ) ac_must_keep_next=true ;;
1621 esac
1623 ac_configure_args="$ac_configure_args '$ac_arg'"
1625 esac
1626 done
1627 done
1628 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1629 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1631 # When interrupted or exit'd, cleanup temporary files, and complete
1632 # config.log. We remove comments because anyway the quotes in there
1633 # would cause problems or look ugly.
1634 # WARNING: Use '\'' to represent an apostrophe within the trap.
1635 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1636 trap 'exit_status=$?
1637 # Save into config.log some information that might help in debugging.
1639 echo
1641 cat <<\_ASBOX
1642 ## ---------------- ##
1643 ## Cache variables. ##
1644 ## ---------------- ##
1645 _ASBOX
1646 echo
1647 # The following way of writing the cache mishandles newlines in values,
1649 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1650 eval ac_val=\$$ac_var
1651 case $ac_val in #(
1652 *${as_nl}*)
1653 case $ac_var in #(
1654 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1655 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1656 esac
1657 case $ac_var in #(
1658 _ | IFS | as_nl) ;; #(
1659 *) $as_unset $ac_var ;;
1660 esac ;;
1661 esac
1662 done
1663 (set) 2>&1 |
1664 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1665 *${as_nl}ac_space=\ *)
1666 sed -n \
1667 "s/'\''/'\''\\\\'\'''\''/g;
1668 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1669 ;; #(
1671 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1673 esac |
1674 sort
1676 echo
1678 cat <<\_ASBOX
1679 ## ----------------- ##
1680 ## Output variables. ##
1681 ## ----------------- ##
1682 _ASBOX
1683 echo
1684 for ac_var in $ac_subst_vars
1686 eval ac_val=\$$ac_var
1687 case $ac_val in
1688 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1689 esac
1690 echo "$ac_var='\''$ac_val'\''"
1691 done | sort
1692 echo
1694 if test -n "$ac_subst_files"; then
1695 cat <<\_ASBOX
1696 ## ------------------- ##
1697 ## File substitutions. ##
1698 ## ------------------- ##
1699 _ASBOX
1700 echo
1701 for ac_var in $ac_subst_files
1703 eval ac_val=\$$ac_var
1704 case $ac_val in
1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1706 esac
1707 echo "$ac_var='\''$ac_val'\''"
1708 done | sort
1709 echo
1712 if test -s confdefs.h; then
1713 cat <<\_ASBOX
1714 ## ----------- ##
1715 ## confdefs.h. ##
1716 ## ----------- ##
1717 _ASBOX
1718 echo
1719 cat confdefs.h
1720 echo
1722 test "$ac_signal" != 0 &&
1723 echo "$as_me: caught signal $ac_signal"
1724 echo "$as_me: exit $exit_status"
1725 } >&5
1726 rm -f core *.core core.conftest.* &&
1727 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1728 exit $exit_status
1730 for ac_signal in 1 2 13 15; do
1731 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1732 done
1733 ac_signal=0
1735 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1736 rm -f -r conftest* confdefs.h
1738 # Predefined preprocessor variables.
1740 cat >>confdefs.h <<_ACEOF
1741 #define PACKAGE_NAME "$PACKAGE_NAME"
1742 _ACEOF
1745 cat >>confdefs.h <<_ACEOF
1746 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1747 _ACEOF
1750 cat >>confdefs.h <<_ACEOF
1751 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1752 _ACEOF
1755 cat >>confdefs.h <<_ACEOF
1756 #define PACKAGE_STRING "$PACKAGE_STRING"
1757 _ACEOF
1760 cat >>confdefs.h <<_ACEOF
1761 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1762 _ACEOF
1765 # Let the site file select an alternate cache file if it wants to.
1766 # Prefer explicitly selected file to automatically selected ones.
1767 if test -n "$CONFIG_SITE"; then
1768 set x "$CONFIG_SITE"
1769 elif test "x$prefix" != xNONE; then
1770 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1771 else
1772 set x "$ac_default_prefix/share/config.site" \
1773 "$ac_default_prefix/etc/config.site"
1775 shift
1776 for ac_site_file
1778 if test -r "$ac_site_file"; then
1779 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1780 echo "$as_me: loading site script $ac_site_file" >&6;}
1781 sed 's/^/| /' "$ac_site_file" >&5
1782 . "$ac_site_file"
1784 done
1786 if test -r "$cache_file"; then
1787 # Some versions of bash will fail to source /dev/null (special
1788 # files actually), so we avoid doing that.
1789 if test -f "$cache_file"; then
1790 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1791 echo "$as_me: loading cache $cache_file" >&6;}
1792 case $cache_file in
1793 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1794 *) . "./$cache_file";;
1795 esac
1797 else
1798 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1799 echo "$as_me: creating cache $cache_file" >&6;}
1800 >$cache_file
1803 # Check that the precious variables saved in the cache have kept the same
1804 # value.
1805 ac_cache_corrupted=false
1806 for ac_var in $ac_precious_vars; do
1807 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1808 eval ac_new_set=\$ac_env_${ac_var}_set
1809 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1810 eval ac_new_val=\$ac_env_${ac_var}_value
1811 case $ac_old_set,$ac_new_set in
1812 set,)
1813 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1814 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1815 ac_cache_corrupted=: ;;
1816 ,set)
1817 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1818 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1819 ac_cache_corrupted=: ;;
1820 ,);;
1822 if test "x$ac_old_val" != "x$ac_new_val"; then
1823 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1824 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1825 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1826 echo "$as_me: former value: $ac_old_val" >&2;}
1827 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1828 echo "$as_me: current value: $ac_new_val" >&2;}
1829 ac_cache_corrupted=:
1830 fi;;
1831 esac
1832 # Pass precious variables to config.status.
1833 if test "$ac_new_set" = set; then
1834 case $ac_new_val in
1835 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1836 *) ac_arg=$ac_var=$ac_new_val ;;
1837 esac
1838 case " $ac_configure_args " in
1839 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1840 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1841 esac
1843 done
1844 if $ac_cache_corrupted; then
1845 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1846 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1847 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1848 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1849 { (exit 1); exit 1; }; }
1868 ac_ext=c
1869 ac_cpp='$CPP $CPPFLAGS'
1870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1876 ac_aux_dir=
1877 for ac_dir in scripts/autoconf "$srcdir"/scripts/autoconf; do
1878 if test -f "$ac_dir/install-sh"; then
1879 ac_aux_dir=$ac_dir
1880 ac_install_sh="$ac_aux_dir/install-sh -c"
1881 break
1882 elif test -f "$ac_dir/install.sh"; then
1883 ac_aux_dir=$ac_dir
1884 ac_install_sh="$ac_aux_dir/install.sh -c"
1885 break
1886 elif test -f "$ac_dir/shtool"; then
1887 ac_aux_dir=$ac_dir
1888 ac_install_sh="$ac_aux_dir/shtool install -c"
1889 break
1891 done
1892 if test -z "$ac_aux_dir"; then
1893 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&5
1894 echo "$as_me: error: cannot find install-sh or install.sh in scripts/autoconf \"$srcdir\"/scripts/autoconf" >&2;}
1895 { (exit 1); exit 1; }; }
1898 # These three variables are undocumented and unsupported,
1899 # and are intended to be withdrawn in a future Autoconf release.
1900 # They can cause serious problems if a builder's source tree is in a directory
1901 # whose full name contains unusual characters.
1902 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1903 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1904 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1908 # Check what host we are running on.
1909 # If a target is not suggested, we use this one.
1910 # Note that what we call a target, Autoconf calls a host.
1911 # Make sure we can run config.sub.
1912 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1913 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1914 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1915 { (exit 1); exit 1; }; }
1917 { echo "$as_me:$LINENO: checking build system type" >&5
1918 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1919 if test "${ac_cv_build+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922 ac_build_alias=$build_alias
1923 test "x$ac_build_alias" = x &&
1924 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1925 test "x$ac_build_alias" = x &&
1926 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1927 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1928 { (exit 1); exit 1; }; }
1929 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1930 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1931 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1932 { (exit 1); exit 1; }; }
1935 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1936 echo "${ECHO_T}$ac_cv_build" >&6; }
1937 case $ac_cv_build in
1938 *-*-*) ;;
1939 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1940 echo "$as_me: error: invalid value of canonical build" >&2;}
1941 { (exit 1); exit 1; }; };;
1942 esac
1943 build=$ac_cv_build
1944 ac_save_IFS=$IFS; IFS='-'
1945 set x $ac_cv_build
1946 shift
1947 build_cpu=$1
1948 build_vendor=$2
1949 shift; shift
1950 # Remember, the first character of IFS is used to create $*,
1951 # except with old shells:
1952 build_os=$*
1953 IFS=$ac_save_IFS
1954 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1957 { echo "$as_me:$LINENO: checking host system type" >&5
1958 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1959 if test "${ac_cv_host+set}" = set; then
1960 echo $ECHO_N "(cached) $ECHO_C" >&6
1961 else
1962 if test "x$host_alias" = x; then
1963 ac_cv_host=$ac_cv_build
1964 else
1965 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1966 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1967 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1968 { (exit 1); exit 1; }; }
1972 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1973 echo "${ECHO_T}$ac_cv_host" >&6; }
1974 case $ac_cv_host in
1975 *-*-*) ;;
1976 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1977 echo "$as_me: error: invalid value of canonical host" >&2;}
1978 { (exit 1); exit 1; }; };;
1979 esac
1980 host=$ac_cv_host
1981 ac_save_IFS=$IFS; IFS='-'
1982 set x $ac_cv_host
1983 shift
1984 host_cpu=$1
1985 host_vendor=$2
1986 shift; shift
1987 # Remember, the first character of IFS is used to create $*,
1988 # except with old shells:
1989 host_os=$*
1990 IFS=$ac_save_IFS
1991 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1995 # The AROS target is slightly different to the normal GNU style
1996 # format. We don't have the middle part, and we reverse the order
1997 # of the $(CPU) and $(OS) bits.
1999 # Don't strip the version of the target yet, it might be
2000 # useful on some systems.
2002 { echo "$as_me:$LINENO: checking for AROS style target" >&5
2003 echo $ECHO_N "checking for AROS style target... $ECHO_C" >&6; }
2005 if test "$target" = "NONE" ; then
2006 target=$host_os-$host_cpu
2007 cross_compile=no
2008 else
2009 if test "$target" = "" ; then
2010 target=$host_os-$host_cpu
2011 cross_compile=no
2012 else
2013 cross_compile=yes
2016 { echo "$as_me:$LINENO: result: $target" >&5
2017 echo "${ECHO_T}$target" >&6; }
2019 #don't know where else to put this...
2020 TOPDIR=$PWD
2022 # Parse the target field into something useful.
2024 target_os=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\1/'`
2025 target_cpu=`echo $target | sed 's/^\([^-]*\)-\(.*\)$/\2/'`
2028 aros_default_wbwidth=800
2029 aros_default_wbheight=600
2030 aros_default_wbdepth=4
2033 # The first step is to find the host binaries.
2034 # Check for a compiler.
2035 ac_ext=c
2036 ac_cpp='$CPP $CPPFLAGS'
2037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040 if test -n "$ac_tool_prefix"; then
2041 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2042 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2043 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2044 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2045 if test "${ac_cv_prog_CC+set}" = set; then
2046 echo $ECHO_N "(cached) $ECHO_C" >&6
2047 else
2048 if test -n "$CC"; then
2049 ac_cv_prog_CC="$CC" # Let the user override the test.
2050 else
2051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2052 for as_dir in $PATH
2054 IFS=$as_save_IFS
2055 test -z "$as_dir" && as_dir=.
2056 for ac_exec_ext in '' $ac_executable_extensions; do
2057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2058 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2060 break 2
2062 done
2063 done
2064 IFS=$as_save_IFS
2068 CC=$ac_cv_prog_CC
2069 if test -n "$CC"; then
2070 { echo "$as_me:$LINENO: result: $CC" >&5
2071 echo "${ECHO_T}$CC" >&6; }
2072 else
2073 { echo "$as_me:$LINENO: result: no" >&5
2074 echo "${ECHO_T}no" >&6; }
2079 if test -z "$ac_cv_prog_CC"; then
2080 ac_ct_CC=$CC
2081 # Extract the first word of "gcc", so it can be a program name with args.
2082 set dummy gcc; ac_word=$2
2083 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2084 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2085 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2086 echo $ECHO_N "(cached) $ECHO_C" >&6
2087 else
2088 if test -n "$ac_ct_CC"; then
2089 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2090 else
2091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2092 for as_dir in $PATH
2094 IFS=$as_save_IFS
2095 test -z "$as_dir" && as_dir=.
2096 for ac_exec_ext in '' $ac_executable_extensions; do
2097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2098 ac_cv_prog_ac_ct_CC="gcc"
2099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2100 break 2
2102 done
2103 done
2104 IFS=$as_save_IFS
2108 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2109 if test -n "$ac_ct_CC"; then
2110 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2111 echo "${ECHO_T}$ac_ct_CC" >&6; }
2112 else
2113 { echo "$as_me:$LINENO: result: no" >&5
2114 echo "${ECHO_T}no" >&6; }
2117 if test "x$ac_ct_CC" = x; then
2118 CC=""
2119 else
2120 case $cross_compiling:$ac_tool_warned in
2121 yes:)
2122 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2123 whose name does not start with the host triplet. If you think this
2124 configuration is useful to you, please write to autoconf@gnu.org." >&5
2125 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2126 whose name does not start with the host triplet. If you think this
2127 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2128 ac_tool_warned=yes ;;
2129 esac
2130 CC=$ac_ct_CC
2132 else
2133 CC="$ac_cv_prog_CC"
2136 if test -z "$CC"; then
2137 if test -n "$ac_tool_prefix"; then
2138 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2139 set dummy ${ac_tool_prefix}cc; ac_word=$2
2140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2142 if test "${ac_cv_prog_CC+set}" = set; then
2143 echo $ECHO_N "(cached) $ECHO_C" >&6
2144 else
2145 if test -n "$CC"; then
2146 ac_cv_prog_CC="$CC" # Let the user override the test.
2147 else
2148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2149 for as_dir in $PATH
2151 IFS=$as_save_IFS
2152 test -z "$as_dir" && as_dir=.
2153 for ac_exec_ext in '' $ac_executable_extensions; do
2154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2155 ac_cv_prog_CC="${ac_tool_prefix}cc"
2156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2157 break 2
2159 done
2160 done
2161 IFS=$as_save_IFS
2165 CC=$ac_cv_prog_CC
2166 if test -n "$CC"; then
2167 { echo "$as_me:$LINENO: result: $CC" >&5
2168 echo "${ECHO_T}$CC" >&6; }
2169 else
2170 { echo "$as_me:$LINENO: result: no" >&5
2171 echo "${ECHO_T}no" >&6; }
2177 if test -z "$CC"; then
2178 # Extract the first word of "cc", so it can be a program name with args.
2179 set dummy cc; ac_word=$2
2180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2182 if test "${ac_cv_prog_CC+set}" = set; then
2183 echo $ECHO_N "(cached) $ECHO_C" >&6
2184 else
2185 if test -n "$CC"; then
2186 ac_cv_prog_CC="$CC" # Let the user override the test.
2187 else
2188 ac_prog_rejected=no
2189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 for as_dir in $PATH
2192 IFS=$as_save_IFS
2193 test -z "$as_dir" && as_dir=.
2194 for ac_exec_ext in '' $ac_executable_extensions; do
2195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2196 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2197 ac_prog_rejected=yes
2198 continue
2200 ac_cv_prog_CC="cc"
2201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2202 break 2
2204 done
2205 done
2206 IFS=$as_save_IFS
2208 if test $ac_prog_rejected = yes; then
2209 # We found a bogon in the path, so make sure we never use it.
2210 set dummy $ac_cv_prog_CC
2211 shift
2212 if test $# != 0; then
2213 # We chose a different compiler from the bogus one.
2214 # However, it has the same basename, so the bogon will be chosen
2215 # first if we set CC to just the basename; use the full file name.
2216 shift
2217 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2222 CC=$ac_cv_prog_CC
2223 if test -n "$CC"; then
2224 { echo "$as_me:$LINENO: result: $CC" >&5
2225 echo "${ECHO_T}$CC" >&6; }
2226 else
2227 { echo "$as_me:$LINENO: result: no" >&5
2228 echo "${ECHO_T}no" >&6; }
2233 if test -z "$CC"; then
2234 if test -n "$ac_tool_prefix"; then
2235 for ac_prog in cl.exe
2237 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2238 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2241 if test "${ac_cv_prog_CC+set}" = set; then
2242 echo $ECHO_N "(cached) $ECHO_C" >&6
2243 else
2244 if test -n "$CC"; then
2245 ac_cv_prog_CC="$CC" # Let the user override the test.
2246 else
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH
2250 IFS=$as_save_IFS
2251 test -z "$as_dir" && as_dir=.
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2254 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 break 2
2258 done
2259 done
2260 IFS=$as_save_IFS
2264 CC=$ac_cv_prog_CC
2265 if test -n "$CC"; then
2266 { echo "$as_me:$LINENO: result: $CC" >&5
2267 echo "${ECHO_T}$CC" >&6; }
2268 else
2269 { echo "$as_me:$LINENO: result: no" >&5
2270 echo "${ECHO_T}no" >&6; }
2274 test -n "$CC" && break
2275 done
2277 if test -z "$CC"; then
2278 ac_ct_CC=$CC
2279 for ac_prog in cl.exe
2281 # Extract the first word of "$ac_prog", so it can be a program name with args.
2282 set dummy $ac_prog; ac_word=$2
2283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2285 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2286 echo $ECHO_N "(cached) $ECHO_C" >&6
2287 else
2288 if test -n "$ac_ct_CC"; then
2289 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2290 else
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 for ac_exec_ext in '' $ac_executable_extensions; do
2297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298 ac_cv_prog_ac_ct_CC="$ac_prog"
2299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300 break 2
2302 done
2303 done
2304 IFS=$as_save_IFS
2308 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2309 if test -n "$ac_ct_CC"; then
2310 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2311 echo "${ECHO_T}$ac_ct_CC" >&6; }
2312 else
2313 { echo "$as_me:$LINENO: result: no" >&5
2314 echo "${ECHO_T}no" >&6; }
2318 test -n "$ac_ct_CC" && break
2319 done
2321 if test "x$ac_ct_CC" = x; then
2322 CC=""
2323 else
2324 case $cross_compiling:$ac_tool_warned in
2325 yes:)
2326 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2327 whose name does not start with the host triplet. If you think this
2328 configuration is useful to you, please write to autoconf@gnu.org." >&5
2329 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2330 whose name does not start with the host triplet. If you think this
2331 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2332 ac_tool_warned=yes ;;
2333 esac
2334 CC=$ac_ct_CC
2341 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2342 See \`config.log' for more details." >&5
2343 echo "$as_me: error: no acceptable C compiler found in \$PATH
2344 See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; }
2347 # Provide some information about the compiler.
2348 echo "$as_me:$LINENO: checking for C compiler version" >&5
2349 ac_compiler=`set X $ac_compile; echo $2`
2350 { (ac_try="$ac_compiler --version >&5"
2351 case "(($ac_try" in
2352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2353 *) ac_try_echo=$ac_try;;
2354 esac
2355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2356 (eval "$ac_compiler --version >&5") 2>&5
2357 ac_status=$?
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); }
2360 { (ac_try="$ac_compiler -v >&5"
2361 case "(($ac_try" in
2362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2363 *) ac_try_echo=$ac_try;;
2364 esac
2365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2366 (eval "$ac_compiler -v >&5") 2>&5
2367 ac_status=$?
2368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2369 (exit $ac_status); }
2370 { (ac_try="$ac_compiler -V >&5"
2371 case "(($ac_try" in
2372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2373 *) ac_try_echo=$ac_try;;
2374 esac
2375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2376 (eval "$ac_compiler -V >&5") 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }
2381 cat >conftest.$ac_ext <<_ACEOF
2382 /* confdefs.h. */
2383 _ACEOF
2384 cat confdefs.h >>conftest.$ac_ext
2385 cat >>conftest.$ac_ext <<_ACEOF
2386 /* end confdefs.h. */
2389 main ()
2393 return 0;
2395 _ACEOF
2396 ac_clean_files_save=$ac_clean_files
2397 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2398 # Try to create an executable without -o first, disregard a.out.
2399 # It will help us diagnose broken compilers, and finding out an intuition
2400 # of exeext.
2401 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2402 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2403 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2405 # List of possible output files, starting from the most likely.
2406 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2407 # only as a last resort. b.out is created by i960 compilers.
2408 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2410 # The IRIX 6 linker writes into existing files which may not be
2411 # executable, retaining their permissions. Remove them first so a
2412 # subsequent execution test works.
2413 ac_rmfiles=
2414 for ac_file in $ac_files
2416 case $ac_file in
2417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2418 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2419 esac
2420 done
2421 rm -f $ac_rmfiles
2423 if { (ac_try="$ac_link_default"
2424 case "(($ac_try" in
2425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2426 *) ac_try_echo=$ac_try;;
2427 esac
2428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2429 (eval "$ac_link_default") 2>&5
2430 ac_status=$?
2431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2432 (exit $ac_status); }; then
2433 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2434 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2435 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2436 # so that the user can short-circuit this test for compilers unknown to
2437 # Autoconf.
2438 for ac_file in $ac_files ''
2440 test -f "$ac_file" || continue
2441 case $ac_file in
2442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2444 [ab].out )
2445 # We found the default executable, but exeext='' is most
2446 # certainly right.
2447 break;;
2448 *.* )
2449 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2450 then :; else
2451 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2453 # We set ac_cv_exeext here because the later test for it is not
2454 # safe: cross compilers may not add the suffix if given an `-o'
2455 # argument, so we may need to know it at that point already.
2456 # Even if this section looks crufty: it has the advantage of
2457 # actually working.
2458 break;;
2460 break;;
2461 esac
2462 done
2463 test "$ac_cv_exeext" = no && ac_cv_exeext=
2465 else
2466 ac_file=''
2469 { echo "$as_me:$LINENO: result: $ac_file" >&5
2470 echo "${ECHO_T}$ac_file" >&6; }
2471 if test -z "$ac_file"; then
2472 echo "$as_me: failed program was:" >&5
2473 sed 's/^/| /' conftest.$ac_ext >&5
2475 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: C compiler cannot create executables
2478 See \`config.log' for more details." >&2;}
2479 { (exit 77); exit 77; }; }
2482 ac_exeext=$ac_cv_exeext
2484 # Check that the compiler produces executables we can run. If not, either
2485 # the compiler is broken, or we cross compile.
2486 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2487 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2488 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2489 # If not cross compiling, check that we can run a simple program.
2490 if test "$cross_compiling" != yes; then
2491 if { ac_try='./$ac_file'
2492 { (case "(($ac_try" in
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2495 esac
2496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2497 (eval "$ac_try") 2>&5
2498 ac_status=$?
2499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500 (exit $ac_status); }; }; then
2501 cross_compiling=no
2502 else
2503 if test "$cross_compiling" = maybe; then
2504 cross_compiling=yes
2505 else
2506 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2507 If you meant to cross compile, use \`--host'.
2508 See \`config.log' for more details." >&5
2509 echo "$as_me: error: cannot run C compiled programs.
2510 If you meant to cross compile, use \`--host'.
2511 See \`config.log' for more details." >&2;}
2512 { (exit 1); exit 1; }; }
2516 { echo "$as_me:$LINENO: result: yes" >&5
2517 echo "${ECHO_T}yes" >&6; }
2519 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2520 ac_clean_files=$ac_clean_files_save
2521 # Check that the compiler produces executables we can run. If not, either
2522 # the compiler is broken, or we cross compile.
2523 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2524 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2525 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2526 echo "${ECHO_T}$cross_compiling" >&6; }
2528 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2529 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2530 if { (ac_try="$ac_link"
2531 case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2534 esac
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_link") 2>&5
2537 ac_status=$?
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; then
2540 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2541 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2542 # work properly (i.e., refer to `conftest.exe'), while it won't with
2543 # `rm'.
2544 for ac_file in conftest.exe conftest conftest.*; do
2545 test -f "$ac_file" || continue
2546 case $ac_file in
2547 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2548 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2549 break;;
2550 * ) break;;
2551 esac
2552 done
2553 else
2554 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2557 See \`config.log' for more details." >&2;}
2558 { (exit 1); exit 1; }; }
2561 rm -f conftest$ac_cv_exeext
2562 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2563 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2565 rm -f conftest.$ac_ext
2566 EXEEXT=$ac_cv_exeext
2567 ac_exeext=$EXEEXT
2568 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2569 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2570 if test "${ac_cv_objext+set}" = set; then
2571 echo $ECHO_N "(cached) $ECHO_C" >&6
2572 else
2573 cat >conftest.$ac_ext <<_ACEOF
2574 /* confdefs.h. */
2575 _ACEOF
2576 cat confdefs.h >>conftest.$ac_ext
2577 cat >>conftest.$ac_ext <<_ACEOF
2578 /* end confdefs.h. */
2581 main ()
2585 return 0;
2587 _ACEOF
2588 rm -f conftest.o conftest.obj
2589 if { (ac_try="$ac_compile"
2590 case "(($ac_try" in
2591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2592 *) ac_try_echo=$ac_try;;
2593 esac
2594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2595 (eval "$ac_compile") 2>&5
2596 ac_status=$?
2597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2598 (exit $ac_status); }; then
2599 for ac_file in conftest.o conftest.obj conftest.*; do
2600 test -f "$ac_file" || continue;
2601 case $ac_file in
2602 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2603 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2604 break;;
2605 esac
2606 done
2607 else
2608 echo "$as_me: failed program was:" >&5
2609 sed 's/^/| /' conftest.$ac_ext >&5
2611 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2612 See \`config.log' for more details." >&5
2613 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2614 See \`config.log' for more details." >&2;}
2615 { (exit 1); exit 1; }; }
2618 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2620 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2621 echo "${ECHO_T}$ac_cv_objext" >&6; }
2622 OBJEXT=$ac_cv_objext
2623 ac_objext=$OBJEXT
2624 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2625 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2626 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2627 echo $ECHO_N "(cached) $ECHO_C" >&6
2628 else
2629 cat >conftest.$ac_ext <<_ACEOF
2630 /* confdefs.h. */
2631 _ACEOF
2632 cat confdefs.h >>conftest.$ac_ext
2633 cat >>conftest.$ac_ext <<_ACEOF
2634 /* end confdefs.h. */
2637 main ()
2639 #ifndef __GNUC__
2640 choke me
2641 #endif
2644 return 0;
2646 _ACEOF
2647 rm -f conftest.$ac_objext
2648 if { (ac_try="$ac_compile"
2649 case "(($ac_try" in
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2652 esac
2653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_compile") 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } && {
2661 test -z "$ac_c_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest.$ac_objext; then
2664 ac_compiler_gnu=yes
2665 else
2666 echo "$as_me: failed program was:" >&5
2667 sed 's/^/| /' conftest.$ac_ext >&5
2669 ac_compiler_gnu=no
2672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2676 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2677 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2678 GCC=`test $ac_compiler_gnu = yes && echo yes`
2679 ac_test_CFLAGS=${CFLAGS+set}
2680 ac_save_CFLAGS=$CFLAGS
2681 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2682 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2683 if test "${ac_cv_prog_cc_g+set}" = set; then
2684 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 else
2686 ac_save_c_werror_flag=$ac_c_werror_flag
2687 ac_c_werror_flag=yes
2688 ac_cv_prog_cc_g=no
2689 CFLAGS="-g"
2690 cat >conftest.$ac_ext <<_ACEOF
2691 /* confdefs.h. */
2692 _ACEOF
2693 cat confdefs.h >>conftest.$ac_ext
2694 cat >>conftest.$ac_ext <<_ACEOF
2695 /* end confdefs.h. */
2698 main ()
2702 return 0;
2704 _ACEOF
2705 rm -f conftest.$ac_objext
2706 if { (ac_try="$ac_compile"
2707 case "(($ac_try" in
2708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2709 *) ac_try_echo=$ac_try;;
2710 esac
2711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2712 (eval "$ac_compile") 2>conftest.er1
2713 ac_status=$?
2714 grep -v '^ *+' conftest.er1 >conftest.err
2715 rm -f conftest.er1
2716 cat conftest.err >&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); } && {
2719 test -z "$ac_c_werror_flag" ||
2720 test ! -s conftest.err
2721 } && test -s conftest.$ac_objext; then
2722 ac_cv_prog_cc_g=yes
2723 else
2724 echo "$as_me: failed program was:" >&5
2725 sed 's/^/| /' conftest.$ac_ext >&5
2727 CFLAGS=""
2728 cat >conftest.$ac_ext <<_ACEOF
2729 /* confdefs.h. */
2730 _ACEOF
2731 cat confdefs.h >>conftest.$ac_ext
2732 cat >>conftest.$ac_ext <<_ACEOF
2733 /* end confdefs.h. */
2736 main ()
2740 return 0;
2742 _ACEOF
2743 rm -f conftest.$ac_objext
2744 if { (ac_try="$ac_compile"
2745 case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_compile") 2>conftest.er1
2751 ac_status=$?
2752 grep -v '^ *+' conftest.er1 >conftest.err
2753 rm -f conftest.er1
2754 cat conftest.err >&5
2755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2756 (exit $ac_status); } && {
2757 test -z "$ac_c_werror_flag" ||
2758 test ! -s conftest.err
2759 } && test -s conftest.$ac_objext; then
2761 else
2762 echo "$as_me: failed program was:" >&5
2763 sed 's/^/| /' conftest.$ac_ext >&5
2765 ac_c_werror_flag=$ac_save_c_werror_flag
2766 CFLAGS="-g"
2767 cat >conftest.$ac_ext <<_ACEOF
2768 /* confdefs.h. */
2769 _ACEOF
2770 cat confdefs.h >>conftest.$ac_ext
2771 cat >>conftest.$ac_ext <<_ACEOF
2772 /* end confdefs.h. */
2775 main ()
2779 return 0;
2781 _ACEOF
2782 rm -f conftest.$ac_objext
2783 if { (ac_try="$ac_compile"
2784 case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787 esac
2788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2789 (eval "$ac_compile") 2>conftest.er1
2790 ac_status=$?
2791 grep -v '^ *+' conftest.er1 >conftest.err
2792 rm -f conftest.er1
2793 cat conftest.err >&5
2794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2795 (exit $ac_status); } && {
2796 test -z "$ac_c_werror_flag" ||
2797 test ! -s conftest.err
2798 } && test -s conftest.$ac_objext; then
2799 ac_cv_prog_cc_g=yes
2800 else
2801 echo "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2814 ac_c_werror_flag=$ac_save_c_werror_flag
2816 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2817 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2818 if test "$ac_test_CFLAGS" = set; then
2819 CFLAGS=$ac_save_CFLAGS
2820 elif test $ac_cv_prog_cc_g = yes; then
2821 if test "$GCC" = yes; then
2822 CFLAGS="-g -O2"
2823 else
2824 CFLAGS="-g"
2826 else
2827 if test "$GCC" = yes; then
2828 CFLAGS="-O2"
2829 else
2830 CFLAGS=
2833 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2834 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2835 if test "${ac_cv_prog_cc_c89+set}" = set; then
2836 echo $ECHO_N "(cached) $ECHO_C" >&6
2837 else
2838 ac_cv_prog_cc_c89=no
2839 ac_save_CC=$CC
2840 cat >conftest.$ac_ext <<_ACEOF
2841 /* confdefs.h. */
2842 _ACEOF
2843 cat confdefs.h >>conftest.$ac_ext
2844 cat >>conftest.$ac_ext <<_ACEOF
2845 /* end confdefs.h. */
2846 #include <stdarg.h>
2847 #include <stdio.h>
2848 #include <sys/types.h>
2849 #include <sys/stat.h>
2850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2851 struct buf { int x; };
2852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2853 static char *e (p, i)
2854 char **p;
2855 int i;
2857 return p[i];
2859 static char *f (char * (*g) (char **, int), char **p, ...)
2861 char *s;
2862 va_list v;
2863 va_start (v,p);
2864 s = g (p, va_arg (v,int));
2865 va_end (v);
2866 return s;
2869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2870 function prototypes and stuff, but not '\xHH' hex character constants.
2871 These don't provoke an error unfortunately, instead are silently treated
2872 as 'x'. The following induces an error, until -std is added to get
2873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2874 array size at least. It's necessary to write '\x00'==0 to get something
2875 that's true only with -std. */
2876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2878 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2879 inside strings and character constants. */
2880 #define FOO(x) 'x'
2881 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2883 int test (int i, double x);
2884 struct s1 {int (*f) (int a);};
2885 struct s2 {int (*f) (double a);};
2886 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2887 int argc;
2888 char **argv;
2890 main ()
2892 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2894 return 0;
2896 _ACEOF
2897 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2900 CC="$ac_save_CC $ac_arg"
2901 rm -f conftest.$ac_objext
2902 if { (ac_try="$ac_compile"
2903 case "(($ac_try" in
2904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2905 *) ac_try_echo=$ac_try;;
2906 esac
2907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2908 (eval "$ac_compile") 2>conftest.er1
2909 ac_status=$?
2910 grep -v '^ *+' conftest.er1 >conftest.err
2911 rm -f conftest.er1
2912 cat conftest.err >&5
2913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914 (exit $ac_status); } && {
2915 test -z "$ac_c_werror_flag" ||
2916 test ! -s conftest.err
2917 } && test -s conftest.$ac_objext; then
2918 ac_cv_prog_cc_c89=$ac_arg
2919 else
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2926 rm -f core conftest.err conftest.$ac_objext
2927 test "x$ac_cv_prog_cc_c89" != "xno" && break
2928 done
2929 rm -f conftest.$ac_ext
2930 CC=$ac_save_CC
2933 # AC_CACHE_VAL
2934 case "x$ac_cv_prog_cc_c89" in
2936 { echo "$as_me:$LINENO: result: none needed" >&5
2937 echo "${ECHO_T}none needed" >&6; } ;;
2938 xno)
2939 { echo "$as_me:$LINENO: result: unsupported" >&5
2940 echo "${ECHO_T}unsupported" >&6; } ;;
2942 CC="$CC $ac_cv_prog_cc_c89"
2943 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2944 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2945 esac
2948 ac_ext=c
2949 ac_cpp='$CPP $CPPFLAGS'
2950 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2951 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2952 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2954 case $ac_cv_prog_cc_stdc in
2955 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
2956 *) { echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
2957 echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
2958 if test "${ac_cv_prog_cc_c99+set}" = set; then
2959 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 else
2961 ac_cv_prog_cc_c99=no
2962 ac_save_CC=$CC
2963 cat >conftest.$ac_ext <<_ACEOF
2964 /* confdefs.h. */
2965 _ACEOF
2966 cat confdefs.h >>conftest.$ac_ext
2967 cat >>conftest.$ac_ext <<_ACEOF
2968 /* end confdefs.h. */
2969 #include <stdarg.h>
2970 #include <stdbool.h>
2971 #include <stdlib.h>
2972 #include <wchar.h>
2973 #include <stdio.h>
2975 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2976 #define debug(...) fprintf (stderr, __VA_ARGS__)
2977 #define showlist(...) puts (#__VA_ARGS__)
2978 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2979 static void
2980 test_varargs_macros (void)
2982 int x = 1234;
2983 int y = 5678;
2984 debug ("Flag");
2985 debug ("X = %d\n", x);
2986 showlist (The first, second, and third items.);
2987 report (x>y, "x is %d but y is %d", x, y);
2990 // Check long long types.
2991 #define BIG64 18446744073709551615ull
2992 #define BIG32 4294967295ul
2993 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2994 #if !BIG_OK
2995 your preprocessor is broken;
2996 #endif
2997 #if BIG_OK
2998 #else
2999 your preprocessor is broken;
3000 #endif
3001 static long long int bignum = -9223372036854775807LL;
3002 static unsigned long long int ubignum = BIG64;
3004 struct incomplete_array
3006 int datasize;
3007 double data[];
3010 struct named_init {
3011 int number;
3012 const wchar_t *name;
3013 double average;
3016 typedef const char *ccp;
3018 static inline int
3019 test_restrict (ccp restrict text)
3021 // See if C++-style comments work.
3022 // Iterate through items via the restricted pointer.
3023 // Also check for declarations in for loops.
3024 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3025 continue;
3026 return 0;
3029 // Check varargs and va_copy.
3030 static void
3031 test_varargs (const char *format, ...)
3033 va_list args;
3034 va_start (args, format);
3035 va_list args_copy;
3036 va_copy (args_copy, args);
3038 const char *str;
3039 int number;
3040 float fnumber;
3042 while (*format)
3044 switch (*format++)
3046 case 's': // string
3047 str = va_arg (args_copy, const char *);
3048 break;
3049 case 'd': // int
3050 number = va_arg (args_copy, int);
3051 break;
3052 case 'f': // float
3053 fnumber = va_arg (args_copy, double);
3054 break;
3055 default:
3056 break;
3059 va_end (args_copy);
3060 va_end (args);
3064 main ()
3067 // Check bool.
3068 _Bool success = false;
3070 // Check restrict.
3071 if (test_restrict ("String literal") == 0)
3072 success = true;
3073 char *restrict newvar = "Another string";
3075 // Check varargs.
3076 test_varargs ("s, d' f .", "string", 65, 34.234);
3077 test_varargs_macros ();
3079 // Check flexible array members.
3080 struct incomplete_array *ia =
3081 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3082 ia->datasize = 10;
3083 for (int i = 0; i < ia->datasize; ++i)
3084 ia->data[i] = i * 1.234;
3086 // Check named initializers.
3087 struct named_init ni = {
3088 .number = 34,
3089 .name = L"Test wide string",
3090 .average = 543.34343,
3093 ni.number = 58;
3095 int dynamic_array[ni.number];
3096 dynamic_array[ni.number - 1] = 543;
3098 // work around unused variable warnings
3099 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3100 || dynamic_array[ni.number - 1] != 543);
3103 return 0;
3105 _ACEOF
3106 for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3108 CC="$ac_save_CC $ac_arg"
3109 rm -f conftest.$ac_objext
3110 if { (ac_try="$ac_compile"
3111 case "(($ac_try" in
3112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3114 esac
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>conftest.er1
3117 ac_status=$?
3118 grep -v '^ *+' conftest.er1 >conftest.err
3119 rm -f conftest.er1
3120 cat conftest.err >&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); } && {
3123 test -z "$ac_c_werror_flag" ||
3124 test ! -s conftest.err
3125 } && test -s conftest.$ac_objext; then
3126 ac_cv_prog_cc_c99=$ac_arg
3127 else
3128 echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3134 rm -f core conftest.err conftest.$ac_objext
3135 test "x$ac_cv_prog_cc_c99" != "xno" && break
3136 done
3137 rm -f conftest.$ac_ext
3138 CC=$ac_save_CC
3141 # AC_CACHE_VAL
3142 case "x$ac_cv_prog_cc_c99" in
3144 { echo "$as_me:$LINENO: result: none needed" >&5
3145 echo "${ECHO_T}none needed" >&6; } ;;
3146 xno)
3147 { echo "$as_me:$LINENO: result: unsupported" >&5
3148 echo "${ECHO_T}unsupported" >&6; } ;;
3150 CC="$CC $ac_cv_prog_cc_c99"
3151 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3152 echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3153 esac
3154 if test "x$ac_cv_prog_cc_c99" != xno; then
3155 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3156 else
3157 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3158 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3159 if test "${ac_cv_prog_cc_c89+set}" = set; then
3160 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 else
3162 ac_cv_prog_cc_c89=no
3163 ac_save_CC=$CC
3164 cat >conftest.$ac_ext <<_ACEOF
3165 /* confdefs.h. */
3166 _ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3170 #include <stdarg.h>
3171 #include <stdio.h>
3172 #include <sys/types.h>
3173 #include <sys/stat.h>
3174 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3175 struct buf { int x; };
3176 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3177 static char *e (p, i)
3178 char **p;
3179 int i;
3181 return p[i];
3183 static char *f (char * (*g) (char **, int), char **p, ...)
3185 char *s;
3186 va_list v;
3187 va_start (v,p);
3188 s = g (p, va_arg (v,int));
3189 va_end (v);
3190 return s;
3193 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3194 function prototypes and stuff, but not '\xHH' hex character constants.
3195 These don't provoke an error unfortunately, instead are silently treated
3196 as 'x'. The following induces an error, until -std is added to get
3197 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3198 array size at least. It's necessary to write '\x00'==0 to get something
3199 that's true only with -std. */
3200 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3202 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3203 inside strings and character constants. */
3204 #define FOO(x) 'x'
3205 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3207 int test (int i, double x);
3208 struct s1 {int (*f) (int a);};
3209 struct s2 {int (*f) (double a);};
3210 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3211 int argc;
3212 char **argv;
3214 main ()
3216 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3218 return 0;
3220 _ACEOF
3221 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3222 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3224 CC="$ac_save_CC $ac_arg"
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3227 case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230 esac
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_compile") 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } && {
3239 test -z "$ac_c_werror_flag" ||
3240 test ! -s conftest.err
3241 } && test -s conftest.$ac_objext; then
3242 ac_cv_prog_cc_c89=$ac_arg
3243 else
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3250 rm -f core conftest.err conftest.$ac_objext
3251 test "x$ac_cv_prog_cc_c89" != "xno" && break
3252 done
3253 rm -f conftest.$ac_ext
3254 CC=$ac_save_CC
3257 # AC_CACHE_VAL
3258 case "x$ac_cv_prog_cc_c89" in
3260 { echo "$as_me:$LINENO: result: none needed" >&5
3261 echo "${ECHO_T}none needed" >&6; } ;;
3262 xno)
3263 { echo "$as_me:$LINENO: result: unsupported" >&5
3264 echo "${ECHO_T}unsupported" >&6; } ;;
3266 CC="$CC $ac_cv_prog_cc_c89"
3267 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3268 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3269 esac
3270 if test "x$ac_cv_prog_cc_c89" != xno; then
3271 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3272 else
3273 ac_cv_prog_cc_stdc=no
3280 esac
3281 { echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
3282 echo $ECHO_N "checking for $CC option to accept ISO Standard C... $ECHO_C" >&6; }
3283 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3287 case $ac_cv_prog_cc_stdc in
3288 no) { echo "$as_me:$LINENO: result: unsupported" >&5
3289 echo "${ECHO_T}unsupported" >&6; } ;;
3290 '') { echo "$as_me:$LINENO: result: none needed" >&5
3291 echo "${ECHO_T}none needed" >&6; } ;;
3292 *) { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3293 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6; } ;;
3294 esac
3297 ac_ext=c
3298 ac_cpp='$CPP $CPPFLAGS'
3299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3303 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3304 # On Suns, sometimes $CPP names a directory.
3305 if test -n "$CPP" && test -d "$CPP"; then
3306 CPP=
3308 if test -z "$CPP"; then
3309 if test "${ac_cv_prog_CPP+set}" = set; then
3310 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 else
3312 # Double quotes because CPP needs to be expanded
3313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3315 ac_preproc_ok=false
3316 for ac_c_preproc_warn_flag in '' yes
3318 # Use a header file that comes with gcc, so configuring glibc
3319 # with a fresh cross-compiler works.
3320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3321 # <limits.h> exists even on freestanding compilers.
3322 # On the NeXT, cc -E runs the code through the compiler's parser,
3323 # not just through cpp. "Syntax error" is here to catch this case.
3324 cat >conftest.$ac_ext <<_ACEOF
3325 /* confdefs.h. */
3326 _ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h. */
3330 #ifdef __STDC__
3331 # include <limits.h>
3332 #else
3333 # include <assert.h>
3334 #endif
3335 Syntax error
3336 _ACEOF
3337 if { (ac_try="$ac_cpp conftest.$ac_ext"
3338 case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3344 ac_status=$?
3345 grep -v '^ *+' conftest.er1 >conftest.err
3346 rm -f conftest.er1
3347 cat conftest.err >&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); } >/dev/null && {
3350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3351 test ! -s conftest.err
3352 }; then
3354 else
3355 echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3358 # Broken: fails on valid input.
3359 continue
3362 rm -f conftest.err conftest.$ac_ext
3364 # OK, works on sane cases. Now check whether nonexistent headers
3365 # can be detected and how.
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */
3372 #include <ac_nonexistent.h>
3373 _ACEOF
3374 if { (ac_try="$ac_cpp conftest.$ac_ext"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } >/dev/null && {
3387 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 }; then
3390 # Broken: success on invalid input.
3391 continue
3392 else
3393 echo "$as_me: failed program was:" >&5
3394 sed 's/^/| /' conftest.$ac_ext >&5
3396 # Passes both tests.
3397 ac_preproc_ok=:
3398 break
3401 rm -f conftest.err conftest.$ac_ext
3403 done
3404 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3405 rm -f conftest.err conftest.$ac_ext
3406 if $ac_preproc_ok; then
3407 break
3410 done
3411 ac_cv_prog_CPP=$CPP
3414 CPP=$ac_cv_prog_CPP
3415 else
3416 ac_cv_prog_CPP=$CPP
3418 { echo "$as_me:$LINENO: result: $CPP" >&5
3419 echo "${ECHO_T}$CPP" >&6; }
3420 ac_preproc_ok=false
3421 for ac_c_preproc_warn_flag in '' yes
3423 # Use a header file that comes with gcc, so configuring glibc
3424 # with a fresh cross-compiler works.
3425 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3426 # <limits.h> exists even on freestanding compilers.
3427 # On the NeXT, cc -E runs the code through the compiler's parser,
3428 # not just through cpp. "Syntax error" is here to catch this case.
3429 cat >conftest.$ac_ext <<_ACEOF
3430 /* confdefs.h. */
3431 _ACEOF
3432 cat confdefs.h >>conftest.$ac_ext
3433 cat >>conftest.$ac_ext <<_ACEOF
3434 /* end confdefs.h. */
3435 #ifdef __STDC__
3436 # include <limits.h>
3437 #else
3438 # include <assert.h>
3439 #endif
3440 Syntax error
3441 _ACEOF
3442 if { (ac_try="$ac_cpp conftest.$ac_ext"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3448 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3449 ac_status=$?
3450 grep -v '^ *+' conftest.er1 >conftest.err
3451 rm -f conftest.er1
3452 cat conftest.err >&5
3453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3454 (exit $ac_status); } >/dev/null && {
3455 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3456 test ! -s conftest.err
3457 }; then
3459 else
3460 echo "$as_me: failed program was:" >&5
3461 sed 's/^/| /' conftest.$ac_ext >&5
3463 # Broken: fails on valid input.
3464 continue
3467 rm -f conftest.err conftest.$ac_ext
3469 # OK, works on sane cases. Now check whether nonexistent headers
3470 # can be detected and how.
3471 cat >conftest.$ac_ext <<_ACEOF
3472 /* confdefs.h. */
3473 _ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3477 #include <ac_nonexistent.h>
3478 _ACEOF
3479 if { (ac_try="$ac_cpp conftest.$ac_ext"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3486 ac_status=$?
3487 grep -v '^ *+' conftest.er1 >conftest.err
3488 rm -f conftest.er1
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev/null && {
3492 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3493 test ! -s conftest.err
3494 }; then
3495 # Broken: success on invalid input.
3496 continue
3497 else
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 # Passes both tests.
3502 ac_preproc_ok=:
3503 break
3506 rm -f conftest.err conftest.$ac_ext
3508 done
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then
3513 else
3514 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3515 See \`config.log' for more details." >&5
3516 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3517 See \`config.log' for more details." >&2;}
3518 { (exit 1); exit 1; }; }
3521 ac_ext=c
3522 ac_cpp='$CPP $CPPFLAGS'
3523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3528 # Check for a compatible awk
3529 for ac_prog in gawk nawk
3531 # Extract the first word of "$ac_prog", so it can be a program name with args.
3532 set dummy $ac_prog; ac_word=$2
3533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3535 if test "${ac_cv_prog_AWK+set}" = set; then
3536 echo $ECHO_N "(cached) $ECHO_C" >&6
3537 else
3538 if test -n "$AWK"; then
3539 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3540 else
3541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3542 for as_dir in $PATH
3544 IFS=$as_save_IFS
3545 test -z "$as_dir" && as_dir=.
3546 for ac_exec_ext in '' $ac_executable_extensions; do
3547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3548 ac_cv_prog_AWK="$ac_prog"
3549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3552 done
3553 done
3554 IFS=$as_save_IFS
3558 AWK=$ac_cv_prog_AWK
3559 if test -n "$AWK"; then
3560 { echo "$as_me:$LINENO: result: $AWK" >&5
3561 echo "${ECHO_T}$AWK" >&6; }
3562 else
3563 { echo "$as_me:$LINENO: result: no" >&5
3564 echo "${ECHO_T}no" >&6; }
3568 test -n "$AWK" && break
3569 done
3571 if test "$AWK" = ""; then
3572 { { echo "$as_me:$LINENO: error: gawk is required to build AROS. Please install and run configure again." >&5
3573 echo "$as_me: error: gawk is required to build AROS. Please install and run configure again." >&2;}
3574 { (exit 1); exit 1; }; }
3576 # Extract the first word of "mmake", so it can be a program name with args.
3577 set dummy mmake; ac_word=$2
3578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3580 if test "${ac_cv_prog_MMAKE+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583 if test -n "$MMAKE"; then
3584 ac_cv_prog_MMAKE="$MMAKE" # Let the user override the test.
3585 else
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 for as_dir in $PATH
3589 IFS=$as_save_IFS
3590 test -z "$as_dir" && as_dir=.
3591 for ac_exec_ext in '' $ac_executable_extensions; do
3592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3593 ac_cv_prog_MMAKE="mmake "
3594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3595 break 2
3597 done
3598 done
3599 IFS=$as_save_IFS
3603 MMAKE=$ac_cv_prog_MMAKE
3604 if test -n "$MMAKE"; then
3605 { echo "$as_me:$LINENO: result: $MMAKE" >&5
3606 echo "${ECHO_T}$MMAKE" >&6; }
3607 else
3608 { echo "$as_me:$LINENO: result: no" >&5
3609 echo "${ECHO_T}no" >&6; }
3614 # Perform some default variable assignments. Note all of these will be
3615 # Regenerated from the script, so there is no need to cache them.
3617 aros_host_cc="$CC"
3618 if test "$GCC" = "yes"; then
3619 aros_gcc_ld=`$CC -print-prog-name=ld`
3620 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
3621 set dummy `basename $aros_gcc_ld`; ac_word=$2
3622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3624 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3625 echo $ECHO_N "(cached) $ECHO_C" >&6
3626 else
3627 case $aros_host_ld in
3628 [\\/]* | ?:[\\/]*)
3629 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3633 for as_dir in `dirname $aros_gcc_ld`
3635 IFS=$as_save_IFS
3636 test -z "$as_dir" && as_dir=.
3637 for ac_exec_ext in '' $ac_executable_extensions; do
3638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3639 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3641 break 2
3643 done
3644 done
3645 IFS=$as_save_IFS
3648 esac
3650 aros_host_ld=$ac_cv_path_aros_host_ld
3651 if test -n "$aros_host_ld"; then
3652 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3653 echo "${ECHO_T}$aros_host_ld" >&6; }
3654 else
3655 { echo "$as_me:$LINENO: result: no" >&5
3656 echo "${ECHO_T}no" >&6; }
3661 if test "$aros_host_ld" = ""; then
3662 # Extract the first word of "ld", so it can be a program name with args.
3663 set dummy ld; ac_word=$2
3664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3666 if test "${ac_cv_path_aros_host_ld+set}" = set; then
3667 echo $ECHO_N "(cached) $ECHO_C" >&6
3668 else
3669 case $aros_host_ld in
3670 [\\/]* | ?:[\\/]*)
3671 ac_cv_path_aros_host_ld="$aros_host_ld" # Let the user override the test with a path.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3677 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_path_aros_host_ld="$as_dir/$ac_word$ac_exec_ext"
3682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 break 2
3685 done
3686 done
3687 IFS=$as_save_IFS
3690 esac
3692 aros_host_ld=$ac_cv_path_aros_host_ld
3693 if test -n "$aros_host_ld"; then
3694 { echo "$as_me:$LINENO: result: $aros_host_ld" >&5
3695 echo "${ECHO_T}$aros_host_ld" >&6; }
3696 else
3697 { echo "$as_me:$LINENO: result: no" >&5
3698 echo "${ECHO_T}no" >&6; }
3703 if test "$aros_host_ld" = ""; then
3704 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
3705 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
3706 { (exit 1); exit 1; }; }
3708 aros_host_make="make"
3709 aros_host_cflags=$CFLAGS
3710 aros_host_ldflags=$LDFLAGS
3711 aros_host_debug="-g -O0"
3712 aros_host_mkdep="\$(TOP)/scripts/mkdep"
3713 aros_host_mkargs="--no-print-directory"
3714 aros_host_incl="/usr/include"
3715 aros_host_exe_suffix="$EXEEXT"
3716 aros_host_lib_suffix=""
3718 for ac_prog in aclocal aclocal19
3720 # Extract the first word of "$ac_prog", so it can be a program name with args.
3721 set dummy $ac_prog; ac_word=$2
3722 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3723 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3724 if test "${ac_cv_prog_aros_host_aclocal+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3726 else
3727 if test -n "$aros_host_aclocal"; then
3728 ac_cv_prog_aros_host_aclocal="$aros_host_aclocal" # Let the user override the test.
3729 else
3730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3731 for as_dir in $PATH
3733 IFS=$as_save_IFS
3734 test -z "$as_dir" && as_dir=.
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3737 ac_cv_prog_aros_host_aclocal="$ac_prog"
3738 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3739 break 2
3741 done
3742 done
3743 IFS=$as_save_IFS
3747 aros_host_aclocal=$ac_cv_prog_aros_host_aclocal
3748 if test -n "$aros_host_aclocal"; then
3749 { echo "$as_me:$LINENO: result: $aros_host_aclocal" >&5
3750 echo "${ECHO_T}$aros_host_aclocal" >&6; }
3751 else
3752 { echo "$as_me:$LINENO: result: no" >&5
3753 echo "${ECHO_T}no" >&6; }
3757 test -n "$aros_host_aclocal" && break
3758 done
3760 for ac_prog in autoconf autoconf259 autoconf253
3762 # Extract the first word of "$ac_prog", so it can be a program name with args.
3763 set dummy $ac_prog; ac_word=$2
3764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3766 if test "${ac_cv_prog_aros_host_autoconf+set}" = set; then
3767 echo $ECHO_N "(cached) $ECHO_C" >&6
3768 else
3769 if test -n "$aros_host_autoconf"; then
3770 ac_cv_prog_aros_host_autoconf="$aros_host_autoconf" # Let the user override the test.
3771 else
3772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3773 for as_dir in $PATH
3775 IFS=$as_save_IFS
3776 test -z "$as_dir" && as_dir=.
3777 for ac_exec_ext in '' $ac_executable_extensions; do
3778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3779 ac_cv_prog_aros_host_autoconf="$ac_prog"
3780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 break 2
3783 done
3784 done
3785 IFS=$as_save_IFS
3789 aros_host_autoconf=$ac_cv_prog_aros_host_autoconf
3790 if test -n "$aros_host_autoconf"; then
3791 { echo "$as_me:$LINENO: result: $aros_host_autoconf" >&5
3792 echo "${ECHO_T}$aros_host_autoconf" >&6; }
3793 else
3794 { echo "$as_me:$LINENO: result: no" >&5
3795 echo "${ECHO_T}no" >&6; }
3799 test -n "$aros_host_autoconf" && break
3800 done
3802 for ac_prog in autoheader autoheader259 autoheader253
3804 # Extract the first word of "$ac_prog", so it can be a program name with args.
3805 set dummy $ac_prog; ac_word=$2
3806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3808 if test "${ac_cv_prog_aros_host_autoheader+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3810 else
3811 if test -n "$aros_host_autoheader"; then
3812 ac_cv_prog_aros_host_autoheader="$aros_host_autoheader" # Let the user override the test.
3813 else
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3815 for as_dir in $PATH
3817 IFS=$as_save_IFS
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3821 ac_cv_prog_aros_host_autoheader="$ac_prog"
3822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 break 2
3825 done
3826 done
3827 IFS=$as_save_IFS
3831 aros_host_autoheader=$ac_cv_prog_aros_host_autoheader
3832 if test -n "$aros_host_autoheader"; then
3833 { echo "$as_me:$LINENO: result: $aros_host_autoheader" >&5
3834 echo "${ECHO_T}$aros_host_autoheader" >&6; }
3835 else
3836 { echo "$as_me:$LINENO: result: no" >&5
3837 echo "${ECHO_T}no" >&6; }
3841 test -n "$aros_host_autoheader" && break
3842 done
3844 for ac_prog in automake automake19
3846 # Extract the first word of "$ac_prog", so it can be a program name with args.
3847 set dummy $ac_prog; ac_word=$2
3848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3850 if test "${ac_cv_prog_aros_host_automake+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3852 else
3853 if test -n "$aros_host_automake"; then
3854 ac_cv_prog_aros_host_automake="$aros_host_automake" # Let the user override the test.
3855 else
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH
3859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3863 ac_cv_prog_aros_host_automake="$ac_prog"
3864 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 break 2
3867 done
3868 done
3869 IFS=$as_save_IFS
3873 aros_host_automake=$ac_cv_prog_aros_host_automake
3874 if test -n "$aros_host_automake"; then
3875 { echo "$as_me:$LINENO: result: $aros_host_automake" >&5
3876 echo "${ECHO_T}$aros_host_automake" >&6; }
3877 else
3878 { echo "$as_me:$LINENO: result: no" >&5
3879 echo "${ECHO_T}no" >&6; }
3883 test -n "$aros_host_automake" && break
3884 done
3887 case "$aros_host_cc" in
3888 *gcc*)
3889 aros_host_cc_pipe="-pipe"
3891 icc)
3892 aros_host_cc_pipe=""
3895 aros_host_cc_pipe=""
3897 esac
3899 aros_target_cc_includes=""
3901 # This is the main host configuration section. It is where the host
3902 # can change the values of any variables it needs to change. We do
3903 # not look at anything that compiles to the target yet, we'll get
3904 # to that later.
3906 case "$host_os" in
3907 linux*)
3908 aros_host_arch="linux"
3909 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3910 case "$host_cpu" in
3911 *i?86*)
3912 aros_host_cpu="i386"
3914 *x86_64*)
3915 aros_host_cpu="x86_64"
3917 *m68k*)
3918 aros_host_cpu="m68k"
3920 *powerpc*)
3921 aros_host_cpu="ppc"
3924 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3925 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3926 aros_host_cpu="$host_cpu"
3928 esac
3931 freebsd*)
3932 aros_host_cc="$aros_host_cc $aros_host_cc_pipe -I/usr/local/include"
3933 aros_host_make="gmake"
3934 aros_host_arch="freebsd"
3935 aros_host_cpu="i386"
3937 aros_host_ldflags="$aros_host_ldflags -L/usr/local/lib -liconv"
3940 case $host_os in
3941 freebsd[234]*)
3942 aros_object_format="elf_i386"
3946 aros_object_format="elf_i386_fbsd"
3948 esac
3952 darwin*)
3953 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3954 aros_host_arch="darwin"
3955 case "$host_cpu" in
3956 *i?86*)
3957 aros_host_cpu="i386"
3959 *powerpc*)
3960 aros_host_cpu="ppc"
3963 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3964 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3965 aros_host_cpu="$host_cpu"
3967 esac
3969 aros_host_ldflags="$aros_host_ldflags -liconv"
3973 netbsd*)
3974 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3975 aros_host_make="gmake"
3976 aros_host_arch="netbsd"
3977 case "$host_cpu" in
3978 *i?86*)
3979 aros_host_cpu="i386"
3981 *m68k*)
3982 aros_host_cpu="m68k"
3985 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
3986 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
3987 aros_host_cpu="$host_cpu"
3989 esac
3990 aros_host_lib_suffix=".0.0"
3993 openbsd*)
3994 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
3995 aros_host_make="gmake"
3996 aros_host_arch="openbsd"
3997 case "$host_cpu" in
3998 *i?86*)
3999 aros_host_cpu="i386"
4002 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4003 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4004 aros_host_cpu="$host_cpu"
4006 esac
4009 solaris*)
4010 aros_host_arch="solaris"
4011 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4012 case "$host_cpu" in
4013 *sparc*)
4014 aros_host_cpu="sparc"
4017 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4018 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4019 aros_host_cpu="$host_cpu"
4021 esac
4024 morphos*)
4025 aros_host_arch="morphos"
4026 aros_host_cpu="ppc"
4029 amiga*)
4030 aros_host_arch="amiga"
4031 SORT="/gg/bin/sort"
4032 TEST="/gg/bin/test"
4033 UNIQ="/gg/bin/uniq"
4034 FOR="for"
4035 TOUCH="/gg/bin/touch"
4036 case "$host_cpu" in
4037 *m68k*)
4038 aros_host_cpu="m68k"
4040 *powerpc*)
4041 aros_host_cpu="ppc"
4044 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4045 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4046 aros_host_cpu="$host_cpu"
4048 esac
4051 cygwin*)
4052 aros_host_arch="cygwin"
4053 aros_host_cc="$aros_host_cc $aros_host_cc_pipe"
4054 case "$host_cpu" in
4055 *i?86*)
4056 aros_host_cpu="i386"
4059 { echo "$as_me:$LINENO: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&5
4060 echo "$as_me: WARNING: \"Unknown CPU for host -- $host_cpu\"" >&2;}
4061 aros_host_cpu="$host_cpu"
4063 esac
4066 { { echo "$as_me:$LINENO: error: Unsupported host architecture $host" >&5
4067 echo "$as_me: error: Unsupported host architecture $host" >&2;}
4068 { (exit 1); exit 1; }; }
4070 esac
4072 # Extract the first word of "ar", so it can be a program name with args.
4073 set dummy ar; ac_word=$2
4074 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4075 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4076 if test "${ac_cv_prog_aros_host_ar+set}" = set; then
4077 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 else
4079 if test -n "$aros_host_ar"; then
4080 ac_cv_prog_aros_host_ar="$aros_host_ar" # Let the user override the test.
4081 else
4082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4083 for as_dir in $PATH
4085 IFS=$as_save_IFS
4086 test -z "$as_dir" && as_dir=.
4087 for ac_exec_ext in '' $ac_executable_extensions; do
4088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4089 ac_cv_prog_aros_host_ar="ar cr"
4090 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4091 break 2
4093 done
4094 done
4095 IFS=$as_save_IFS
4099 aros_host_ar=$ac_cv_prog_aros_host_ar
4100 if test -n "$aros_host_ar"; then
4101 { echo "$as_me:$LINENO: result: $aros_host_ar" >&5
4102 echo "${ECHO_T}$aros_host_ar" >&6; }
4103 else
4104 { echo "$as_me:$LINENO: result: no" >&5
4105 echo "${ECHO_T}no" >&6; }
4109 if test "$aros_host_ar" = ""; then
4110 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
4111 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
4112 { (exit 1); exit 1; }; }
4114 # Extract the first word of "ranlib", so it can be a program name with args.
4115 set dummy ranlib; ac_word=$2
4116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4118 if test "${ac_cv_prog_aros_host_ranlib+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4120 else
4121 if test -n "$aros_host_ranlib"; then
4122 ac_cv_prog_aros_host_ranlib="$aros_host_ranlib" # Let the user override the test.
4123 else
4124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 for as_dir in $PATH
4127 IFS=$as_save_IFS
4128 test -z "$as_dir" && as_dir=.
4129 for ac_exec_ext in '' $ac_executable_extensions; do
4130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131 ac_cv_prog_aros_host_ranlib="ranlib "
4132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4133 break 2
4135 done
4136 done
4137 IFS=$as_save_IFS
4141 aros_host_ranlib=$ac_cv_prog_aros_host_ranlib
4142 if test -n "$aros_host_ranlib"; then
4143 { echo "$as_me:$LINENO: result: $aros_host_ranlib" >&5
4144 echo "${ECHO_T}$aros_host_ranlib" >&6; }
4145 else
4146 { echo "$as_me:$LINENO: result: no" >&5
4147 echo "${ECHO_T}no" >&6; }
4151 if test "$aros_host_ranlib" = ""; then
4152 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
4153 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
4154 { (exit 1); exit 1; }; }
4156 # Extract the first word of "strip", so it can be a program name with args.
4157 set dummy strip; ac_word=$2
4158 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4159 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4160 if test "${ac_cv_prog_aros_host_strip+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 if test -n "$aros_host_strip"; then
4164 ac_cv_prog_aros_host_strip="$aros_host_strip" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173 ac_cv_prog_aros_host_strip="strip "
4174 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4177 done
4178 done
4179 IFS=$as_save_IFS
4183 aros_host_strip=$ac_cv_prog_aros_host_strip
4184 if test -n "$aros_host_strip"; then
4185 { echo "$as_me:$LINENO: result: $aros_host_strip" >&5
4186 echo "${ECHO_T}$aros_host_strip" >&6; }
4187 else
4188 { echo "$as_me:$LINENO: result: no" >&5
4189 echo "${ECHO_T}no" >&6; }
4193 if test "$aros_host_strip" = ""; then
4194 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
4195 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
4196 { (exit 1); exit 1; }; }
4199 # Extract the first word of "rm", so it can be a program name with args.
4200 set dummy rm; ac_word=$2
4201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4203 if test "${ac_cv_prog_RM+set}" = set; then
4204 echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206 if test -n "$RM"; then
4207 ac_cv_prog_RM="$RM" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_RM="rm -rf"
4217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4220 done
4221 done
4222 IFS=$as_save_IFS
4226 RM=$ac_cv_prog_RM
4227 if test -n "$RM"; then
4228 { echo "$as_me:$LINENO: result: $RM" >&5
4229 echo "${ECHO_T}$RM" >&6; }
4230 else
4231 { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4236 if test "$RM" = ""; then
4237 { { echo "$as_me:$LINENO: error: rm is required to build AROS. Please install and run configure again." >&5
4238 echo "$as_me: error: rm is required to build AROS. Please install and run configure again." >&2;}
4239 { (exit 1); exit 1; }; }
4241 # Extract the first word of "cp", so it can be a program name with args.
4242 set dummy cp; ac_word=$2
4243 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4245 if test "${ac_cv_prog_CP+set}" = set; then
4246 echo $ECHO_N "(cached) $ECHO_C" >&6
4247 else
4248 if test -n "$CP"; then
4249 ac_cv_prog_CP="$CP" # Let the user override the test.
4250 else
4251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4252 for as_dir in $PATH
4254 IFS=$as_save_IFS
4255 test -z "$as_dir" && as_dir=.
4256 for ac_exec_ext in '' $ac_executable_extensions; do
4257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4258 ac_cv_prog_CP="cp "
4259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 break 2
4262 done
4263 done
4264 IFS=$as_save_IFS
4268 CP=$ac_cv_prog_CP
4269 if test -n "$CP"; then
4270 { echo "$as_me:$LINENO: result: $CP" >&5
4271 echo "${ECHO_T}$CP" >&6; }
4272 else
4273 { echo "$as_me:$LINENO: result: no" >&5
4274 echo "${ECHO_T}no" >&6; }
4278 if test "$CP" = ""; then
4279 { { echo "$as_me:$LINENO: error: cp is required to build AROS. Please install and run configure again." >&5
4280 echo "$as_me: error: cp is required to build AROS. Please install and run configure again." >&2;}
4281 { (exit 1); exit 1; }; }
4283 # Extract the first word of "mv", so it can be a program name with args.
4284 set dummy mv; ac_word=$2
4285 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4287 if test "${ac_cv_prog_MV+set}" = set; then
4288 echo $ECHO_N "(cached) $ECHO_C" >&6
4289 else
4290 if test -n "$MV"; then
4291 ac_cv_prog_MV="$MV" # Let the user override the test.
4292 else
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH
4296 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=.
4298 for ac_exec_ext in '' $ac_executable_extensions; do
4299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4300 ac_cv_prog_MV="mv "
4301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4302 break 2
4304 done
4305 done
4306 IFS=$as_save_IFS
4310 MV=$ac_cv_prog_MV
4311 if test -n "$MV"; then
4312 { echo "$as_me:$LINENO: result: $MV" >&5
4313 echo "${ECHO_T}$MV" >&6; }
4314 else
4315 { echo "$as_me:$LINENO: result: no" >&5
4316 echo "${ECHO_T}no" >&6; }
4320 if test "$MV" = ""; then
4321 { { echo "$as_me:$LINENO: error: mv is required to build AROS. Please install and run configure again." >&5
4322 echo "$as_me: error: mv is required to build AROS. Please install and run configure again." >&2;}
4323 { (exit 1); exit 1; }; }
4325 # Extract the first word of "echo", so it can be a program name with args.
4326 set dummy echo; ac_word=$2
4327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4329 if test "${ac_cv_prog_ECHO+set}" = set; then
4330 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 else
4332 if test -n "$ECHO"; then
4333 ac_cv_prog_ECHO="$ECHO" # Let the user override the test.
4334 else
4335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 for as_dir in $PATH
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4342 ac_cv_prog_ECHO="echo "
4343 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4344 break 2
4346 done
4347 done
4348 IFS=$as_save_IFS
4352 ECHO=$ac_cv_prog_ECHO
4353 if test -n "$ECHO"; then
4354 { echo "$as_me:$LINENO: result: $ECHO" >&5
4355 echo "${ECHO_T}$ECHO" >&6; }
4356 else
4357 { echo "$as_me:$LINENO: result: no" >&5
4358 echo "${ECHO_T}no" >&6; }
4362 if test "$ECHO" = ""; then
4363 { { echo "$as_me:$LINENO: error: echo is required to build AROS. Please install and run configure again." >&5
4364 echo "$as_me: error: echo is required to build AROS. Please install and run configure again." >&2;}
4365 { (exit 1); exit 1; }; }
4367 # Extract the first word of "mkdir", so it can be a program name with args.
4368 set dummy mkdir; ac_word=$2
4369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4371 if test "${ac_cv_prog_MKDIR+set}" = set; then
4372 echo $ECHO_N "(cached) $ECHO_C" >&6
4373 else
4374 if test -n "$MKDIR"; then
4375 ac_cv_prog_MKDIR="$MKDIR" # Let the user override the test.
4376 else
4377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 for as_dir in $PATH
4380 IFS=$as_save_IFS
4381 test -z "$as_dir" && as_dir=.
4382 for ac_exec_ext in '' $ac_executable_extensions; do
4383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4384 ac_cv_prog_MKDIR="mkdir -p"
4385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 break 2
4388 done
4389 done
4390 IFS=$as_save_IFS
4394 MKDIR=$ac_cv_prog_MKDIR
4395 if test -n "$MKDIR"; then
4396 { echo "$as_me:$LINENO: result: $MKDIR" >&5
4397 echo "${ECHO_T}$MKDIR" >&6; }
4398 else
4399 { echo "$as_me:$LINENO: result: no" >&5
4400 echo "${ECHO_T}no" >&6; }
4404 if test "$MKDIR" = ""; then
4405 { { echo "$as_me:$LINENO: error: mkdir is required to build AROS. Please install and run configure again." >&5
4406 echo "$as_me: error: mkdir is required to build AROS. Please install and run configure again." >&2;}
4407 { (exit 1); exit 1; }; }
4409 # Extract the first word of "touch", so it can be a program name with args.
4410 set dummy touch; ac_word=$2
4411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4413 if test "${ac_cv_prog_TOUCH+set}" = set; then
4414 echo $ECHO_N "(cached) $ECHO_C" >&6
4415 else
4416 if test -n "$TOUCH"; then
4417 ac_cv_prog_TOUCH="$TOUCH" # Let the user override the test.
4418 else
4419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 for as_dir in $PATH
4422 IFS=$as_save_IFS
4423 test -z "$as_dir" && as_dir=.
4424 for ac_exec_ext in '' $ac_executable_extensions; do
4425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4426 ac_cv_prog_TOUCH="touch "
4427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4428 break 2
4430 done
4431 done
4432 IFS=$as_save_IFS
4436 TOUCH=$ac_cv_prog_TOUCH
4437 if test -n "$TOUCH"; then
4438 { echo "$as_me:$LINENO: result: $TOUCH" >&5
4439 echo "${ECHO_T}$TOUCH" >&6; }
4440 else
4441 { echo "$as_me:$LINENO: result: no" >&5
4442 echo "${ECHO_T}no" >&6; }
4446 if test "$TOUCH" = ""; then
4447 { { echo "$as_me:$LINENO: error: touch is required to build AROS. Please install and run configure again." >&5
4448 echo "$as_me: error: touch is required to build AROS. Please install and run configure again." >&2;}
4449 { (exit 1); exit 1; }; }
4451 # Extract the first word of "sort", so it can be a program name with args.
4452 set dummy sort; ac_word=$2
4453 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4455 if test "${ac_cv_prog_SORT+set}" = set; then
4456 echo $ECHO_N "(cached) $ECHO_C" >&6
4457 else
4458 if test -n "$SORT"; then
4459 ac_cv_prog_SORT="$SORT" # Let the user override the test.
4460 else
4461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4462 for as_dir in $PATH
4464 IFS=$as_save_IFS
4465 test -z "$as_dir" && as_dir=.
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4468 ac_cv_prog_SORT="sort "
4469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4470 break 2
4472 done
4473 done
4474 IFS=$as_save_IFS
4478 SORT=$ac_cv_prog_SORT
4479 if test -n "$SORT"; then
4480 { echo "$as_me:$LINENO: result: $SORT" >&5
4481 echo "${ECHO_T}$SORT" >&6; }
4482 else
4483 { echo "$as_me:$LINENO: result: no" >&5
4484 echo "${ECHO_T}no" >&6; }
4488 if test "$SORT" = ""; then
4489 { { echo "$as_me:$LINENO: error: sort is required to build AROS. Please install and run configure again." >&5
4490 echo "$as_me: error: sort is required to build AROS. Please install and run configure again." >&2;}
4491 { (exit 1); exit 1; }; }
4493 # Extract the first word of "uniq", so it can be a program name with args.
4494 set dummy uniq; ac_word=$2
4495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4497 if test "${ac_cv_prog_UNIQ+set}" = set; then
4498 echo $ECHO_N "(cached) $ECHO_C" >&6
4499 else
4500 if test -n "$UNIQ"; then
4501 ac_cv_prog_UNIQ="$UNIQ" # Let the user override the test.
4502 else
4503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4504 for as_dir in $PATH
4506 IFS=$as_save_IFS
4507 test -z "$as_dir" && as_dir=.
4508 for ac_exec_ext in '' $ac_executable_extensions; do
4509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4510 ac_cv_prog_UNIQ="uniq "
4511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4512 break 2
4514 done
4515 done
4516 IFS=$as_save_IFS
4520 UNIQ=$ac_cv_prog_UNIQ
4521 if test -n "$UNIQ"; then
4522 { echo "$as_me:$LINENO: result: $UNIQ" >&5
4523 echo "${ECHO_T}$UNIQ" >&6; }
4524 else
4525 { echo "$as_me:$LINENO: result: no" >&5
4526 echo "${ECHO_T}no" >&6; }
4530 if test "$UNIQ" = ""; then
4531 { { echo "$as_me:$LINENO: error: uniq is required to build AROS. Please install and run configure again." >&5
4532 echo "$as_me: error: uniq is required to build AROS. Please install and run configure again." >&2;}
4533 { (exit 1); exit 1; }; }
4535 # Extract the first word of "true", so it can be a program name with args.
4536 set dummy true; ac_word=$2
4537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4539 if test "${ac_cv_prog_NOP+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542 if test -n "$NOP"; then
4543 ac_cv_prog_NOP="$NOP" # Let the user override the test.
4544 else
4545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4546 for as_dir in $PATH
4548 IFS=$as_save_IFS
4549 test -z "$as_dir" && as_dir=.
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4552 ac_cv_prog_NOP="true "
4553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4554 break 2
4556 done
4557 done
4558 IFS=$as_save_IFS
4562 NOP=$ac_cv_prog_NOP
4563 if test -n "$NOP"; then
4564 { echo "$as_me:$LINENO: result: $NOP" >&5
4565 echo "${ECHO_T}$NOP" >&6; }
4566 else
4567 { echo "$as_me:$LINENO: result: no" >&5
4568 echo "${ECHO_T}no" >&6; }
4572 if test "$NOP" = ""; then
4573 { { echo "$as_me:$LINENO: error: true is required to build AROS. Please install and run configure again." >&5
4574 echo "$as_me: error: true is required to build AROS. Please install and run configure again." >&2;}
4575 { (exit 1); exit 1; }; }
4577 # Extract the first word of "cat", so it can be a program name with args.
4578 set dummy cat; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_CAT+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584 if test -n "$CAT"; then
4585 ac_cv_prog_CAT="$CAT" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4590 IFS=$as_save_IFS
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_CAT="cat "
4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596 break 2
4598 done
4599 done
4600 IFS=$as_save_IFS
4604 CAT=$ac_cv_prog_CAT
4605 if test -n "$CAT"; then
4606 { echo "$as_me:$LINENO: result: $CAT" >&5
4607 echo "${ECHO_T}$CAT" >&6; }
4608 else
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4614 if test "$CAT" = ""; then
4615 { { echo "$as_me:$LINENO: error: cat is required to build AROS. Please install and run configure again." >&5
4616 echo "$as_me: error: cat is required to build AROS. Please install and run configure again." >&2;}
4617 { (exit 1); exit 1; }; }
4619 # Extract the first word of "bison", so it can be a program name with args.
4620 set dummy bison; ac_word=$2
4621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4623 if test "${ac_cv_prog_BISON+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 else
4626 if test -n "$BISON"; then
4627 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_BISON="bison "
4637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4640 done
4641 done
4642 IFS=$as_save_IFS
4646 BISON=$ac_cv_prog_BISON
4647 if test -n "$BISON"; then
4648 { echo "$as_me:$LINENO: result: $BISON" >&5
4649 echo "${ECHO_T}$BISON" >&6; }
4650 else
4651 { echo "$as_me:$LINENO: result: no" >&5
4652 echo "${ECHO_T}no" >&6; }
4656 if test "$BISON" = ""; then
4657 { { echo "$as_me:$LINENO: error: bison is required to build AROS. Please install and run configure again." >&5
4658 echo "$as_me: error: bison is required to build AROS. Please install and run configure again." >&2;}
4659 { (exit 1); exit 1; }; }
4661 # Extract the first word of "flex", so it can be a program name with args.
4662 set dummy flex; ac_word=$2
4663 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4664 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4665 if test "${ac_cv_prog_FLEX+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 if test -n "$FLEX"; then
4669 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4678 ac_cv_prog_FLEX="flex "
4679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4682 done
4683 done
4684 IFS=$as_save_IFS
4688 FLEX=$ac_cv_prog_FLEX
4689 if test -n "$FLEX"; then
4690 { echo "$as_me:$LINENO: result: $FLEX" >&5
4691 echo "${ECHO_T}$FLEX" >&6; }
4692 else
4693 { echo "$as_me:$LINENO: result: no" >&5
4694 echo "${ECHO_T}no" >&6; }
4698 if test "$FLEX" = ""; then
4699 { { echo "$as_me:$LINENO: error: flex is required to build AROS. Please install and run configure again." >&5
4700 echo "$as_me: error: flex is required to build AROS. Please install and run configure again." >&2;}
4701 { (exit 1); exit 1; }; }
4703 # Extract the first word of "pngtopnm", so it can be a program name with args.
4704 set dummy pngtopnm; ac_word=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_prog_PNGTOPNM+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4709 else
4710 if test -n "$PNGTOPNM"; then
4711 ac_cv_prog_PNGTOPNM="$PNGTOPNM" # Let the user override the test.
4712 else
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH
4716 IFS=$as_save_IFS
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_PNGTOPNM="pngtopnm "
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4722 break 2
4724 done
4725 done
4726 IFS=$as_save_IFS
4730 PNGTOPNM=$ac_cv_prog_PNGTOPNM
4731 if test -n "$PNGTOPNM"; then
4732 { echo "$as_me:$LINENO: result: $PNGTOPNM" >&5
4733 echo "${ECHO_T}$PNGTOPNM" >&6; }
4734 else
4735 { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4740 if test "$PNGTOPNM" = ""; then
4741 { { echo "$as_me:$LINENO: error: pngtopnm is required to build AROS. Please install and run configure again." >&5
4742 echo "$as_me: error: pngtopnm is required to build AROS. Please install and run configure again." >&2;}
4743 { (exit 1); exit 1; }; }
4745 # Extract the first word of "ppmtoilbm", so it can be a program name with args.
4746 set dummy ppmtoilbm; ac_word=$2
4747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4749 if test "${ac_cv_prog_PPMTOILBM+set}" = set; then
4750 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 else
4752 if test -n "$PPMTOILBM"; then
4753 ac_cv_prog_PPMTOILBM="$PPMTOILBM" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_prog_PPMTOILBM="ppmtoilbm "
4763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4766 done
4767 done
4768 IFS=$as_save_IFS
4772 PPMTOILBM=$ac_cv_prog_PPMTOILBM
4773 if test -n "$PPMTOILBM"; then
4774 { echo "$as_me:$LINENO: result: $PPMTOILBM" >&5
4775 echo "${ECHO_T}$PPMTOILBM" >&6; }
4776 else
4777 { echo "$as_me:$LINENO: result: no" >&5
4778 echo "${ECHO_T}no" >&6; }
4782 if test "$PPMTOILBM" = ""; then
4783 { { echo "$as_me:$LINENO: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&5
4784 echo "$as_me: error: ppmtoilbm is required to build AROS. Please install and run configure again." >&2;}
4785 { (exit 1); exit 1; }; }
4787 # Extract the first word of "sed", so it can be a program name with args.
4788 set dummy sed; ac_word=$2
4789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4791 if test "${ac_cv_prog_SED+set}" = set; then
4792 echo $ECHO_N "(cached) $ECHO_C" >&6
4793 else
4794 if test -n "$SED"; then
4795 ac_cv_prog_SED="$SED" # Let the user override the test.
4796 else
4797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4798 for as_dir in $PATH
4800 IFS=$as_save_IFS
4801 test -z "$as_dir" && as_dir=.
4802 for ac_exec_ext in '' $ac_executable_extensions; do
4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4804 ac_cv_prog_SED="sed "
4805 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4806 break 2
4808 done
4809 done
4810 IFS=$as_save_IFS
4814 SED=$ac_cv_prog_SED
4815 if test -n "$SED"; then
4816 { echo "$as_me:$LINENO: result: $SED" >&5
4817 echo "${ECHO_T}$SED" >&6; }
4818 else
4819 { echo "$as_me:$LINENO: result: no" >&5
4820 echo "${ECHO_T}no" >&6; }
4824 if test "$SED" = ""; then
4825 { { echo "$as_me:$LINENO: error: sed is required to build AROS. Please install and run configure again." >&5
4826 echo "$as_me: error: sed is required to build AROS. Please install and run configure again." >&2;}
4827 { (exit 1); exit 1; }; }
4829 # Extract the first word of "chmod", so it can be a program name with args.
4830 set dummy chmod; ac_word=$2
4831 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4832 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4833 if test "${ac_cv_prog_CHMOD+set}" = set; then
4834 echo $ECHO_N "(cached) $ECHO_C" >&6
4835 else
4836 if test -n "$CHMOD"; then
4837 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
4838 else
4839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840 for as_dir in $PATH
4842 IFS=$as_save_IFS
4843 test -z "$as_dir" && as_dir=.
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4846 ac_cv_prog_CHMOD="chmod "
4847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4848 break 2
4850 done
4851 done
4852 IFS=$as_save_IFS
4856 CHMOD=$ac_cv_prog_CHMOD
4857 if test -n "$CHMOD"; then
4858 { echo "$as_me:$LINENO: result: $CHMOD" >&5
4859 echo "${ECHO_T}$CHMOD" >&6; }
4860 else
4861 { echo "$as_me:$LINENO: result: no" >&5
4862 echo "${ECHO_T}no" >&6; }
4866 if test "$CHMOD" = ""; then
4867 { { echo "$as_me:$LINENO: error: chmod is required to build AROS. Please install and run configure again." >&5
4868 echo "$as_me: error: chmod is required to build AROS. Please install and run configure again." >&2;}
4869 { (exit 1); exit 1; }; }
4876 if test -n "$PYTHON"; then
4877 # If the user set $PYTHON, use it and don't search something else.
4878 { echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2.1" >&5
4879 echo $ECHO_N "checking whether $PYTHON version >= 2.2.1... $ECHO_C" >&6; }
4880 prog="import sys, string
4881 # split strings by '.' and convert to numeric. Append some zeros
4882 # because we need at least 4 digits for the hex conversion.
4883 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4884 minverhex = 0
4885 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4886 sys.exit(sys.hexversion < minverhex)"
4887 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
4888 ($PYTHON -c "$prog") >&5 2>&5
4889 ac_status=$?
4890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891 (exit $ac_status); }; then
4892 { echo "$as_me:$LINENO: result: yes" >&5
4893 echo "${ECHO_T}yes" >&6; }
4894 else
4895 { { echo "$as_me:$LINENO: error: too old" >&5
4896 echo "$as_me: error: too old" >&2;}
4897 { (exit 1); exit 1; }; }
4900 am_display_PYTHON=$PYTHON
4901 else
4902 # Otherwise, try each interpreter until we find one that satisfies
4903 # VERSION.
4904 { echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2.1" >&5
4905 echo $ECHO_N "checking for a Python interpreter with version >= 2.2.1... $ECHO_C" >&6; }
4906 if test "${am_cv_pathless_PYTHON+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4910 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
4911 test "$am_cv_pathless_PYTHON" = none && break
4912 prog="import sys, string
4913 # split strings by '.' and convert to numeric. Append some zeros
4914 # because we need at least 4 digits for the hex conversion.
4915 minver = map(int, string.split('2.2.1', '.')) + [0, 0, 0]
4916 minverhex = 0
4917 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
4918 sys.exit(sys.hexversion < minverhex)"
4919 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
4920 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
4921 ac_status=$?
4922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4923 (exit $ac_status); }; then
4924 break
4927 done
4929 { echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
4930 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6; }
4931 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
4932 if test "$am_cv_pathless_PYTHON" = none; then
4933 PYTHON=:
4934 else
4935 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
4936 set dummy $am_cv_pathless_PYTHON; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_path_PYTHON+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942 case $PYTHON in
4943 [\\/]* | ?:[\\/]*)
4944 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 for as_dir in $PATH
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4956 break 2
4958 done
4959 done
4960 IFS=$as_save_IFS
4963 esac
4965 PYTHON=$ac_cv_path_PYTHON
4966 if test -n "$PYTHON"; then
4967 { echo "$as_me:$LINENO: result: $PYTHON" >&5
4968 echo "${ECHO_T}$PYTHON" >&6; }
4969 else
4970 { echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6; }
4976 am_display_PYTHON=$am_cv_pathless_PYTHON
4980 if test "$PYTHON" = :; then
4981 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
4982 echo "$as_me: error: no suitable Python interpreter found" >&2;}
4983 { (exit 1); exit 1; }; }
4984 else
4987 { echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
4988 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6; }
4989 if test "${am_cv_python_version+set}" = set; then
4990 echo $ECHO_N "(cached) $ECHO_C" >&6
4991 else
4992 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
4994 { echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
4995 echo "${ECHO_T}$am_cv_python_version" >&6; }
4996 PYTHON_VERSION=$am_cv_python_version
5000 PYTHON_PREFIX='${prefix}'
5002 PYTHON_EXEC_PREFIX='${exec_prefix}'
5006 { echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
5007 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6; }
5008 if test "${am_cv_python_platform+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
5013 { echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
5014 echo "${ECHO_T}$am_cv_python_platform" >&6; }
5015 PYTHON_PLATFORM=$am_cv_python_platform
5020 { echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
5021 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6; }
5022 if test "${am_cv_python_pythondir+set}" = set; then
5023 echo $ECHO_N "(cached) $ECHO_C" >&6
5024 else
5025 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
5026 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
5028 { echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
5029 echo "${ECHO_T}$am_cv_python_pythondir" >&6; }
5030 pythondir=$am_cv_python_pythondir
5034 pkgpythondir=\${pythondir}/$PACKAGE
5037 { echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
5038 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6; }
5039 if test "${am_cv_python_pyexecdir+set}" = set; then
5040 echo $ECHO_N "(cached) $ECHO_C" >&6
5041 else
5042 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
5043 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
5045 { echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
5046 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6; }
5047 pyexecdir=$am_cv_python_pyexecdir
5051 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5059 FOR=for
5061 IF=if
5063 TEST=test
5065 CMP=cmp
5069 # Check for some includes for the X11 HIDD and the kernel
5072 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5073 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5074 if test "${ac_cv_path_GREP+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076 else
5077 # Extract the first word of "grep ggrep" to use in msg output
5078 if test -z "$GREP"; then
5079 set dummy grep ggrep; ac_prog_name=$2
5080 if test "${ac_cv_path_GREP+set}" = set; then
5081 echo $ECHO_N "(cached) $ECHO_C" >&6
5082 else
5083 ac_path_GREP_found=false
5084 # Loop through the user's path and test for each of PROGNAME-LIST
5085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5086 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5088 IFS=$as_save_IFS
5089 test -z "$as_dir" && as_dir=.
5090 for ac_prog in grep ggrep; do
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5093 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5094 # Check for GNU ac_path_GREP and select it if it is found.
5095 # Check for GNU $ac_path_GREP
5096 case `"$ac_path_GREP" --version 2>&1` in
5097 *GNU*)
5098 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5100 ac_count=0
5101 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5102 while :
5104 cat "conftest.in" "conftest.in" >"conftest.tmp"
5105 mv "conftest.tmp" "conftest.in"
5106 cp "conftest.in" "conftest.nl"
5107 echo 'GREP' >> "conftest.nl"
5108 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5109 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5110 ac_count=`expr $ac_count + 1`
5111 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5112 # Best one so far, save it but keep looking for a better one
5113 ac_cv_path_GREP="$ac_path_GREP"
5114 ac_path_GREP_max=$ac_count
5116 # 10*(2^10) chars as input seems more than enough
5117 test $ac_count -gt 10 && break
5118 done
5119 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5120 esac
5123 $ac_path_GREP_found && break 3
5124 done
5125 done
5127 done
5128 IFS=$as_save_IFS
5133 GREP="$ac_cv_path_GREP"
5134 if test -z "$GREP"; then
5135 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5136 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5137 { (exit 1); exit 1; }; }
5140 else
5141 ac_cv_path_GREP=$GREP
5146 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5147 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5148 GREP="$ac_cv_path_GREP"
5151 { echo "$as_me:$LINENO: checking for egrep" >&5
5152 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5153 if test "${ac_cv_path_EGREP+set}" = set; then
5154 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 else
5156 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5157 then ac_cv_path_EGREP="$GREP -E"
5158 else
5159 # Extract the first word of "egrep" to use in msg output
5160 if test -z "$EGREP"; then
5161 set dummy egrep; ac_prog_name=$2
5162 if test "${ac_cv_path_EGREP+set}" = set; then
5163 echo $ECHO_N "(cached) $ECHO_C" >&6
5164 else
5165 ac_path_EGREP_found=false
5166 # Loop through the user's path and test for each of PROGNAME-LIST
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_prog in egrep; do
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5175 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5176 # Check for GNU ac_path_EGREP and select it if it is found.
5177 # Check for GNU $ac_path_EGREP
5178 case `"$ac_path_EGREP" --version 2>&1` in
5179 *GNU*)
5180 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5182 ac_count=0
5183 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5184 while :
5186 cat "conftest.in" "conftest.in" >"conftest.tmp"
5187 mv "conftest.tmp" "conftest.in"
5188 cp "conftest.in" "conftest.nl"
5189 echo 'EGREP' >> "conftest.nl"
5190 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5191 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5192 ac_count=`expr $ac_count + 1`
5193 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5194 # Best one so far, save it but keep looking for a better one
5195 ac_cv_path_EGREP="$ac_path_EGREP"
5196 ac_path_EGREP_max=$ac_count
5198 # 10*(2^10) chars as input seems more than enough
5199 test $ac_count -gt 10 && break
5200 done
5201 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5202 esac
5205 $ac_path_EGREP_found && break 3
5206 done
5207 done
5209 done
5210 IFS=$as_save_IFS
5215 EGREP="$ac_cv_path_EGREP"
5216 if test -z "$EGREP"; then
5217 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5218 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5219 { (exit 1); exit 1; }; }
5222 else
5223 ac_cv_path_EGREP=$EGREP
5229 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5230 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5231 EGREP="$ac_cv_path_EGREP"
5234 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5235 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5236 if test "${ac_cv_header_stdc+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 else
5239 cat >conftest.$ac_ext <<_ACEOF
5240 /* confdefs.h. */
5241 _ACEOF
5242 cat confdefs.h >>conftest.$ac_ext
5243 cat >>conftest.$ac_ext <<_ACEOF
5244 /* end confdefs.h. */
5245 #include <stdlib.h>
5246 #include <stdarg.h>
5247 #include <string.h>
5248 #include <float.h>
5251 main ()
5255 return 0;
5257 _ACEOF
5258 rm -f conftest.$ac_objext
5259 if { (ac_try="$ac_compile"
5260 case "(($ac_try" in
5261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5262 *) ac_try_echo=$ac_try;;
5263 esac
5264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5265 (eval "$ac_compile") 2>conftest.er1
5266 ac_status=$?
5267 grep -v '^ *+' conftest.er1 >conftest.err
5268 rm -f conftest.er1
5269 cat conftest.err >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); } && {
5272 test -z "$ac_c_werror_flag" ||
5273 test ! -s conftest.err
5274 } && test -s conftest.$ac_objext; then
5275 ac_cv_header_stdc=yes
5276 else
5277 echo "$as_me: failed program was:" >&5
5278 sed 's/^/| /' conftest.$ac_ext >&5
5280 ac_cv_header_stdc=no
5283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5285 if test $ac_cv_header_stdc = yes; then
5286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5287 cat >conftest.$ac_ext <<_ACEOF
5288 /* confdefs.h. */
5289 _ACEOF
5290 cat confdefs.h >>conftest.$ac_ext
5291 cat >>conftest.$ac_ext <<_ACEOF
5292 /* end confdefs.h. */
5293 #include <string.h>
5295 _ACEOF
5296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5297 $EGREP "memchr" >/dev/null 2>&1; then
5299 else
5300 ac_cv_header_stdc=no
5302 rm -f conftest*
5306 if test $ac_cv_header_stdc = yes; then
5307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5308 cat >conftest.$ac_ext <<_ACEOF
5309 /* confdefs.h. */
5310 _ACEOF
5311 cat confdefs.h >>conftest.$ac_ext
5312 cat >>conftest.$ac_ext <<_ACEOF
5313 /* end confdefs.h. */
5314 #include <stdlib.h>
5316 _ACEOF
5317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5318 $EGREP "free" >/dev/null 2>&1; then
5320 else
5321 ac_cv_header_stdc=no
5323 rm -f conftest*
5327 if test $ac_cv_header_stdc = yes; then
5328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5329 if test "$cross_compiling" = yes; then
5331 else
5332 cat >conftest.$ac_ext <<_ACEOF
5333 /* confdefs.h. */
5334 _ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 #include <ctype.h>
5339 #include <stdlib.h>
5340 #if ((' ' & 0x0FF) == 0x020)
5341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5343 #else
5344 # define ISLOWER(c) \
5345 (('a' <= (c) && (c) <= 'i') \
5346 || ('j' <= (c) && (c) <= 'r') \
5347 || ('s' <= (c) && (c) <= 'z'))
5348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5349 #endif
5351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5353 main ()
5355 int i;
5356 for (i = 0; i < 256; i++)
5357 if (XOR (islower (i), ISLOWER (i))
5358 || toupper (i) != TOUPPER (i))
5359 return 2;
5360 return 0;
5362 _ACEOF
5363 rm -f conftest$ac_exeext
5364 if { (ac_try="$ac_link"
5365 case "(($ac_try" in
5366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367 *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370 (eval "$ac_link") 2>&5
5371 ac_status=$?
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5374 { (case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377 esac
5378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5379 (eval "$ac_try") 2>&5
5380 ac_status=$?
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5384 else
5385 echo "$as_me: program exited with status $ac_status" >&5
5386 echo "$as_me: failed program was:" >&5
5387 sed 's/^/| /' conftest.$ac_ext >&5
5389 ( exit $ac_status )
5390 ac_cv_header_stdc=no
5392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5398 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5399 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5400 if test $ac_cv_header_stdc = yes; then
5402 cat >>confdefs.h <<\_ACEOF
5403 #define STDC_HEADERS 1
5404 _ACEOF
5408 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5418 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5419 inttypes.h stdint.h unistd.h
5421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5422 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5423 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5425 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 else
5427 cat >conftest.$ac_ext <<_ACEOF
5428 /* confdefs.h. */
5429 _ACEOF
5430 cat confdefs.h >>conftest.$ac_ext
5431 cat >>conftest.$ac_ext <<_ACEOF
5432 /* end confdefs.h. */
5433 $ac_includes_default
5435 #include <$ac_header>
5436 _ACEOF
5437 rm -f conftest.$ac_objext
5438 if { (ac_try="$ac_compile"
5439 case "(($ac_try" in
5440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5441 *) ac_try_echo=$ac_try;;
5442 esac
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_compile") 2>conftest.er1
5445 ac_status=$?
5446 grep -v '^ *+' conftest.er1 >conftest.err
5447 rm -f conftest.er1
5448 cat conftest.err >&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } && {
5451 test -z "$ac_c_werror_flag" ||
5452 test ! -s conftest.err
5453 } && test -s conftest.$ac_objext; then
5454 eval "$as_ac_Header=yes"
5455 else
5456 echo "$as_me: failed program was:" >&5
5457 sed 's/^/| /' conftest.$ac_ext >&5
5459 eval "$as_ac_Header=no"
5462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5464 ac_res=`eval echo '${'$as_ac_Header'}'`
5465 { echo "$as_me:$LINENO: result: $ac_res" >&5
5466 echo "${ECHO_T}$ac_res" >&6; }
5467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5468 cat >>confdefs.h <<_ACEOF
5469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5470 _ACEOF
5474 done
5486 for ac_header in sys/ipc.h sys/shm.h \
5487 sys/mmap.h sys/mman.h sysexits.h \
5488 sys/statfs.h sys/statvfs.h sys/vfs.h sys/param.h \
5491 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5493 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5494 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5495 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5498 ac_res=`eval echo '${'$as_ac_Header'}'`
5499 { echo "$as_me:$LINENO: result: $ac_res" >&5
5500 echo "${ECHO_T}$ac_res" >&6; }
5501 else
5502 # Is the header compilable?
5503 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5505 cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h. */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h. */
5511 $ac_includes_default
5512 #include <$ac_header>
5513 _ACEOF
5514 rm -f conftest.$ac_objext
5515 if { (ac_try="$ac_compile"
5516 case "(($ac_try" in
5517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5518 *) ac_try_echo=$ac_try;;
5519 esac
5520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5521 (eval "$ac_compile") 2>conftest.er1
5522 ac_status=$?
5523 grep -v '^ *+' conftest.er1 >conftest.err
5524 rm -f conftest.er1
5525 cat conftest.err >&5
5526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5527 (exit $ac_status); } && {
5528 test -z "$ac_c_werror_flag" ||
5529 test ! -s conftest.err
5530 } && test -s conftest.$ac_objext; then
5531 ac_header_compiler=yes
5532 else
5533 echo "$as_me: failed program was:" >&5
5534 sed 's/^/| /' conftest.$ac_ext >&5
5536 ac_header_compiler=no
5539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5541 echo "${ECHO_T}$ac_header_compiler" >&6; }
5543 # Is the header present?
5544 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5545 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5546 cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h. */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 #include <$ac_header>
5553 _ACEOF
5554 if { (ac_try="$ac_cpp conftest.$ac_ext"
5555 case "(($ac_try" in
5556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5557 *) ac_try_echo=$ac_try;;
5558 esac
5559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5561 ac_status=$?
5562 grep -v '^ *+' conftest.er1 >conftest.err
5563 rm -f conftest.er1
5564 cat conftest.err >&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } >/dev/null && {
5567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5568 test ! -s conftest.err
5569 }; then
5570 ac_header_preproc=yes
5571 else
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.$ac_ext >&5
5575 ac_header_preproc=no
5578 rm -f conftest.err conftest.$ac_ext
5579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5580 echo "${ECHO_T}$ac_header_preproc" >&6; }
5582 # So? What about this header?
5583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5584 yes:no: )
5585 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5586 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5589 ac_header_preproc=yes
5591 no:yes:* )
5592 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5593 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5594 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5595 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5596 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5597 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5598 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5599 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5602 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5603 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5606 esac
5607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5610 echo $ECHO_N "(cached) $ECHO_C" >&6
5611 else
5612 eval "$as_ac_Header=\$ac_header_preproc"
5614 ac_res=`eval echo '${'$as_ac_Header'}'`
5615 { echo "$as_me:$LINENO: result: $ac_res" >&5
5616 echo "${ECHO_T}$ac_res" >&6; }
5619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5620 cat >>confdefs.h <<_ACEOF
5621 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5622 _ACEOF
5626 done
5630 for ac_header in sys/mount.h
5632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5633 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5635 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5636 echo $ECHO_N "(cached) $ECHO_C" >&6
5637 else
5638 cat >conftest.$ac_ext <<_ACEOF
5639 /* confdefs.h. */
5640 _ACEOF
5641 cat confdefs.h >>conftest.$ac_ext
5642 cat >>conftest.$ac_ext <<_ACEOF
5643 /* end confdefs.h. */
5644 #include <sys/param.h>
5646 #include <$ac_header>
5647 _ACEOF
5648 rm -f conftest.$ac_objext
5649 if { (ac_try="$ac_compile"
5650 case "(($ac_try" in
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5653 esac
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_compile") 2>conftest.er1
5656 ac_status=$?
5657 grep -v '^ *+' conftest.er1 >conftest.err
5658 rm -f conftest.er1
5659 cat conftest.err >&5
5660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5661 (exit $ac_status); } && {
5662 test -z "$ac_c_werror_flag" ||
5663 test ! -s conftest.err
5664 } && test -s conftest.$ac_objext; then
5665 eval "$as_ac_Header=yes"
5666 else
5667 echo "$as_me: failed program was:" >&5
5668 sed 's/^/| /' conftest.$ac_ext >&5
5670 eval "$as_ac_Header=no"
5673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5675 ac_res=`eval echo '${'$as_ac_Header'}'`
5676 { echo "$as_me:$LINENO: result: $ac_res" >&5
5677 echo "${ECHO_T}$ac_res" >&6; }
5678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5679 cat >>confdefs.h <<_ACEOF
5680 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5681 _ACEOF
5685 done
5693 ac_header_dirent=no
5694 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5695 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5696 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
5697 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
5698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 else
5701 cat >conftest.$ac_ext <<_ACEOF
5702 /* confdefs.h. */
5703 _ACEOF
5704 cat confdefs.h >>conftest.$ac_ext
5705 cat >>conftest.$ac_ext <<_ACEOF
5706 /* end confdefs.h. */
5707 #include <sys/types.h>
5708 #include <$ac_hdr>
5711 main ()
5713 if ((DIR *) 0)
5714 return 0;
5716 return 0;
5718 _ACEOF
5719 rm -f conftest.$ac_objext
5720 if { (ac_try="$ac_compile"
5721 case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724 esac
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_compile") 2>conftest.er1
5727 ac_status=$?
5728 grep -v '^ *+' conftest.er1 >conftest.err
5729 rm -f conftest.er1
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && {
5733 test -z "$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest.$ac_objext; then
5736 eval "$as_ac_Header=yes"
5737 else
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5741 eval "$as_ac_Header=no"
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 ac_res=`eval echo '${'$as_ac_Header'}'`
5747 { echo "$as_me:$LINENO: result: $ac_res" >&5
5748 echo "${ECHO_T}$ac_res" >&6; }
5749 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5750 cat >>confdefs.h <<_ACEOF
5751 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5752 _ACEOF
5754 ac_header_dirent=$ac_hdr; break
5757 done
5758 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5759 if test $ac_header_dirent = dirent.h; then
5760 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5761 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5762 if test "${ac_cv_search_opendir+set}" = set; then
5763 echo $ECHO_N "(cached) $ECHO_C" >&6
5764 else
5765 ac_func_search_save_LIBS=$LIBS
5766 cat >conftest.$ac_ext <<_ACEOF
5767 /* confdefs.h. */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5773 /* Override any GCC internal prototype to avoid an error.
5774 Use char because int might match the return type of a GCC
5775 builtin and then its argument prototype would still apply. */
5776 #ifdef __cplusplus
5777 extern "C"
5778 #endif
5779 char opendir ();
5781 main ()
5783 return opendir ();
5785 return 0;
5787 _ACEOF
5788 for ac_lib in '' dir; do
5789 if test -z "$ac_lib"; then
5790 ac_res="none required"
5791 else
5792 ac_res=-l$ac_lib
5793 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5795 rm -f conftest.$ac_objext conftest$ac_exeext
5796 if { (ac_try="$ac_link"
5797 case "(($ac_try" in
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5800 esac
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_link") 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_c_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest$ac_exeext &&
5812 $as_test_x conftest$ac_exeext; then
5813 ac_cv_search_opendir=$ac_res
5814 else
5815 echo "$as_me: failed program was:" >&5
5816 sed 's/^/| /' conftest.$ac_ext >&5
5821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5822 conftest$ac_exeext
5823 if test "${ac_cv_search_opendir+set}" = set; then
5824 break
5826 done
5827 if test "${ac_cv_search_opendir+set}" = set; then
5829 else
5830 ac_cv_search_opendir=no
5832 rm conftest.$ac_ext
5833 LIBS=$ac_func_search_save_LIBS
5835 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5836 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5837 ac_res=$ac_cv_search_opendir
5838 if test "$ac_res" != no; then
5839 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5843 else
5844 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
5845 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
5846 if test "${ac_cv_search_opendir+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849 ac_func_search_save_LIBS=$LIBS
5850 cat >conftest.$ac_ext <<_ACEOF
5851 /* confdefs.h. */
5852 _ACEOF
5853 cat confdefs.h >>conftest.$ac_ext
5854 cat >>conftest.$ac_ext <<_ACEOF
5855 /* end confdefs.h. */
5857 /* Override any GCC internal prototype to avoid an error.
5858 Use char because int might match the return type of a GCC
5859 builtin and then its argument prototype would still apply. */
5860 #ifdef __cplusplus
5861 extern "C"
5862 #endif
5863 char opendir ();
5865 main ()
5867 return opendir ();
5869 return 0;
5871 _ACEOF
5872 for ac_lib in '' x; do
5873 if test -z "$ac_lib"; then
5874 ac_res="none required"
5875 else
5876 ac_res=-l$ac_lib
5877 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5879 rm -f conftest.$ac_objext conftest$ac_exeext
5880 if { (ac_try="$ac_link"
5881 case "(($ac_try" in
5882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5884 esac
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_link") 2>conftest.er1
5887 ac_status=$?
5888 grep -v '^ *+' conftest.er1 >conftest.err
5889 rm -f conftest.er1
5890 cat conftest.err >&5
5891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5892 (exit $ac_status); } && {
5893 test -z "$ac_c_werror_flag" ||
5894 test ! -s conftest.err
5895 } && test -s conftest$ac_exeext &&
5896 $as_test_x conftest$ac_exeext; then
5897 ac_cv_search_opendir=$ac_res
5898 else
5899 echo "$as_me: failed program was:" >&5
5900 sed 's/^/| /' conftest.$ac_ext >&5
5905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5906 conftest$ac_exeext
5907 if test "${ac_cv_search_opendir+set}" = set; then
5908 break
5910 done
5911 if test "${ac_cv_search_opendir+set}" = set; then
5913 else
5914 ac_cv_search_opendir=no
5916 rm conftest.$ac_ext
5917 LIBS=$ac_func_search_save_LIBS
5919 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
5920 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
5921 ac_res=$ac_cv_search_opendir
5922 if test "$ac_res" != no; then
5923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5929 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
5930 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
5931 if test "${ac_cv_header_stat_broken+set}" = set; then
5932 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934 cat >conftest.$ac_ext <<_ACEOF
5935 /* confdefs.h. */
5936 _ACEOF
5937 cat confdefs.h >>conftest.$ac_ext
5938 cat >>conftest.$ac_ext <<_ACEOF
5939 /* end confdefs.h. */
5940 #include <sys/types.h>
5941 #include <sys/stat.h>
5943 #if defined S_ISBLK && defined S_IFDIR
5944 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
5945 #endif
5947 #if defined S_ISBLK && defined S_IFCHR
5948 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
5949 #endif
5951 #if defined S_ISLNK && defined S_IFREG
5952 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
5953 #endif
5955 #if defined S_ISSOCK && defined S_IFREG
5956 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
5957 #endif
5959 _ACEOF
5960 rm -f conftest.$ac_objext
5961 if { (ac_try="$ac_compile"
5962 case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5965 esac
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_compile") 2>conftest.er1
5968 ac_status=$?
5969 grep -v '^ *+' conftest.er1 >conftest.err
5970 rm -f conftest.er1
5971 cat conftest.err >&5
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); } && {
5974 test -z "$ac_c_werror_flag" ||
5975 test ! -s conftest.err
5976 } && test -s conftest.$ac_objext; then
5977 ac_cv_header_stat_broken=no
5978 else
5979 echo "$as_me: failed program was:" >&5
5980 sed 's/^/| /' conftest.$ac_ext >&5
5982 ac_cv_header_stat_broken=yes
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
5988 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
5989 if test $ac_cv_header_stat_broken = yes; then
5991 cat >>confdefs.h <<\_ACEOF
5992 #define STAT_MACROS_BROKEN 1
5993 _ACEOF
5997 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5998 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5999 if test "${ac_cv_header_stdc+set}" = set; then
6000 echo $ECHO_N "(cached) $ECHO_C" >&6
6001 else
6002 cat >conftest.$ac_ext <<_ACEOF
6003 /* confdefs.h. */
6004 _ACEOF
6005 cat confdefs.h >>conftest.$ac_ext
6006 cat >>conftest.$ac_ext <<_ACEOF
6007 /* end confdefs.h. */
6008 #include <stdlib.h>
6009 #include <stdarg.h>
6010 #include <string.h>
6011 #include <float.h>
6014 main ()
6018 return 0;
6020 _ACEOF
6021 rm -f conftest.$ac_objext
6022 if { (ac_try="$ac_compile"
6023 case "(($ac_try" in
6024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6025 *) ac_try_echo=$ac_try;;
6026 esac
6027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6028 (eval "$ac_compile") 2>conftest.er1
6029 ac_status=$?
6030 grep -v '^ *+' conftest.er1 >conftest.err
6031 rm -f conftest.er1
6032 cat conftest.err >&5
6033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6034 (exit $ac_status); } && {
6035 test -z "$ac_c_werror_flag" ||
6036 test ! -s conftest.err
6037 } && test -s conftest.$ac_objext; then
6038 ac_cv_header_stdc=yes
6039 else
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6043 ac_cv_header_stdc=no
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 if test $ac_cv_header_stdc = yes; then
6049 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6050 cat >conftest.$ac_ext <<_ACEOF
6051 /* confdefs.h. */
6052 _ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056 #include <string.h>
6058 _ACEOF
6059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6060 $EGREP "memchr" >/dev/null 2>&1; then
6062 else
6063 ac_cv_header_stdc=no
6065 rm -f conftest*
6069 if test $ac_cv_header_stdc = yes; then
6070 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6071 cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h. */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 #include <stdlib.h>
6079 _ACEOF
6080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6081 $EGREP "free" >/dev/null 2>&1; then
6083 else
6084 ac_cv_header_stdc=no
6086 rm -f conftest*
6090 if test $ac_cv_header_stdc = yes; then
6091 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6092 if test "$cross_compiling" = yes; then
6094 else
6095 cat >conftest.$ac_ext <<_ACEOF
6096 /* confdefs.h. */
6097 _ACEOF
6098 cat confdefs.h >>conftest.$ac_ext
6099 cat >>conftest.$ac_ext <<_ACEOF
6100 /* end confdefs.h. */
6101 #include <ctype.h>
6102 #include <stdlib.h>
6103 #if ((' ' & 0x0FF) == 0x020)
6104 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6105 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6106 #else
6107 # define ISLOWER(c) \
6108 (('a' <= (c) && (c) <= 'i') \
6109 || ('j' <= (c) && (c) <= 'r') \
6110 || ('s' <= (c) && (c) <= 'z'))
6111 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6112 #endif
6114 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6116 main ()
6118 int i;
6119 for (i = 0; i < 256; i++)
6120 if (XOR (islower (i), ISLOWER (i))
6121 || toupper (i) != TOUPPER (i))
6122 return 2;
6123 return 0;
6125 _ACEOF
6126 rm -f conftest$ac_exeext
6127 if { (ac_try="$ac_link"
6128 case "(($ac_try" in
6129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6130 *) ac_try_echo=$ac_try;;
6131 esac
6132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6133 (eval "$ac_link") 2>&5
6134 ac_status=$?
6135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6136 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6137 { (case "(($ac_try" in
6138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6139 *) ac_try_echo=$ac_try;;
6140 esac
6141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6142 (eval "$ac_try") 2>&5
6143 ac_status=$?
6144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6145 (exit $ac_status); }; }; then
6147 else
6148 echo "$as_me: program exited with status $ac_status" >&5
6149 echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6152 ( exit $ac_status )
6153 ac_cv_header_stdc=no
6155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6161 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6162 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6163 if test $ac_cv_header_stdc = yes; then
6165 cat >>confdefs.h <<\_ACEOF
6166 #define STDC_HEADERS 1
6167 _ACEOF
6171 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6172 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6173 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176 cat >conftest.$ac_ext <<_ACEOF
6177 /* confdefs.h. */
6178 _ACEOF
6179 cat confdefs.h >>conftest.$ac_ext
6180 cat >>conftest.$ac_ext <<_ACEOF
6181 /* end confdefs.h. */
6182 #include <sys/types.h>
6183 #include <sys/wait.h>
6184 #ifndef WEXITSTATUS
6185 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6186 #endif
6187 #ifndef WIFEXITED
6188 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6189 #endif
6192 main ()
6194 int s;
6195 wait (&s);
6196 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6198 return 0;
6200 _ACEOF
6201 rm -f conftest.$ac_objext
6202 if { (ac_try="$ac_compile"
6203 case "(($ac_try" in
6204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6206 esac
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_compile") 2>conftest.er1
6209 ac_status=$?
6210 grep -v '^ *+' conftest.er1 >conftest.err
6211 rm -f conftest.er1
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } && {
6215 test -z "$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.$ac_objext; then
6218 ac_cv_header_sys_wait_h=yes
6219 else
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 ac_cv_header_sys_wait_h=no
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6229 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6230 if test $ac_cv_header_sys_wait_h = yes; then
6232 cat >>confdefs.h <<\_ACEOF
6233 #define HAVE_SYS_WAIT_H 1
6234 _ACEOF
6238 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6239 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6240 if test "${ac_cv_header_time+set}" = set; then
6241 echo $ECHO_N "(cached) $ECHO_C" >&6
6242 else
6243 cat >conftest.$ac_ext <<_ACEOF
6244 /* confdefs.h. */
6245 _ACEOF
6246 cat confdefs.h >>conftest.$ac_ext
6247 cat >>conftest.$ac_ext <<_ACEOF
6248 /* end confdefs.h. */
6249 #include <sys/types.h>
6250 #include <sys/time.h>
6251 #include <time.h>
6254 main ()
6256 if ((struct tm *) 0)
6257 return 0;
6259 return 0;
6261 _ACEOF
6262 rm -f conftest.$ac_objext
6263 if { (ac_try="$ac_compile"
6264 case "(($ac_try" in
6265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6266 *) ac_try_echo=$ac_try;;
6267 esac
6268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6269 (eval "$ac_compile") 2>conftest.er1
6270 ac_status=$?
6271 grep -v '^ *+' conftest.er1 >conftest.err
6272 rm -f conftest.er1
6273 cat conftest.err >&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); } && {
6276 test -z "$ac_c_werror_flag" ||
6277 test ! -s conftest.err
6278 } && test -s conftest.$ac_objext; then
6279 ac_cv_header_time=yes
6280 else
6281 echo "$as_me: failed program was:" >&5
6282 sed 's/^/| /' conftest.$ac_ext >&5
6284 ac_cv_header_time=no
6287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6289 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6290 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6291 if test $ac_cv_header_time = yes; then
6293 cat >>confdefs.h <<\_ACEOF
6294 #define TIME_WITH_SYS_TIME 1
6295 _ACEOF
6299 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
6300 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
6301 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
6302 echo $ECHO_N "(cached) $ECHO_C" >&6
6303 else
6304 cat >conftest.$ac_ext <<_ACEOF
6305 /* confdefs.h. */
6306 _ACEOF
6307 cat confdefs.h >>conftest.$ac_ext
6308 cat >>conftest.$ac_ext <<_ACEOF
6309 /* end confdefs.h. */
6310 $ac_includes_default
6312 main ()
6314 static struct stat ac_aggr;
6315 if (ac_aggr.st_blksize)
6316 return 0;
6318 return 0;
6320 _ACEOF
6321 rm -f conftest.$ac_objext
6322 if { (ac_try="$ac_compile"
6323 case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326 esac
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_compile") 2>conftest.er1
6329 ac_status=$?
6330 grep -v '^ *+' conftest.er1 >conftest.err
6331 rm -f conftest.er1
6332 cat conftest.err >&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); } && {
6335 test -z "$ac_c_werror_flag" ||
6336 test ! -s conftest.err
6337 } && test -s conftest.$ac_objext; then
6338 ac_cv_member_struct_stat_st_blksize=yes
6339 else
6340 echo "$as_me: failed program was:" >&5
6341 sed 's/^/| /' conftest.$ac_ext >&5
6343 cat >conftest.$ac_ext <<_ACEOF
6344 /* confdefs.h. */
6345 _ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6349 $ac_includes_default
6351 main ()
6353 static struct stat ac_aggr;
6354 if (sizeof ac_aggr.st_blksize)
6355 return 0;
6357 return 0;
6359 _ACEOF
6360 rm -f conftest.$ac_objext
6361 if { (ac_try="$ac_compile"
6362 case "(($ac_try" in
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6365 esac
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367 (eval "$ac_compile") 2>conftest.er1
6368 ac_status=$?
6369 grep -v '^ *+' conftest.er1 >conftest.err
6370 rm -f conftest.er1
6371 cat conftest.err >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } && {
6374 test -z "$ac_c_werror_flag" ||
6375 test ! -s conftest.err
6376 } && test -s conftest.$ac_objext; then
6377 ac_cv_member_struct_stat_st_blksize=yes
6378 else
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6382 ac_cv_member_struct_stat_st_blksize=no
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
6391 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
6392 if test $ac_cv_member_struct_stat_st_blksize = yes; then
6394 cat >>confdefs.h <<_ACEOF
6395 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
6396 _ACEOF
6399 cat >>confdefs.h <<\_ACEOF
6400 #define HAVE_ST_BLKSIZE 1
6401 _ACEOF
6406 { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
6407 echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; }
6408 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
6409 echo $ECHO_N "(cached) $ECHO_C" >&6
6410 else
6411 cat >conftest.$ac_ext <<_ACEOF
6412 /* confdefs.h. */
6413 _ACEOF
6414 cat confdefs.h >>conftest.$ac_ext
6415 cat >>conftest.$ac_ext <<_ACEOF
6416 /* end confdefs.h. */
6417 $ac_includes_default
6419 main ()
6421 static struct stat ac_aggr;
6422 if (ac_aggr.st_blocks)
6423 return 0;
6425 return 0;
6427 _ACEOF
6428 rm -f conftest.$ac_objext
6429 if { (ac_try="$ac_compile"
6430 case "(($ac_try" in
6431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6432 *) ac_try_echo=$ac_try;;
6433 esac
6434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6435 (eval "$ac_compile") 2>conftest.er1
6436 ac_status=$?
6437 grep -v '^ *+' conftest.er1 >conftest.err
6438 rm -f conftest.er1
6439 cat conftest.err >&5
6440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441 (exit $ac_status); } && {
6442 test -z "$ac_c_werror_flag" ||
6443 test ! -s conftest.err
6444 } && test -s conftest.$ac_objext; then
6445 ac_cv_member_struct_stat_st_blocks=yes
6446 else
6447 echo "$as_me: failed program was:" >&5
6448 sed 's/^/| /' conftest.$ac_ext >&5
6450 cat >conftest.$ac_ext <<_ACEOF
6451 /* confdefs.h. */
6452 _ACEOF
6453 cat confdefs.h >>conftest.$ac_ext
6454 cat >>conftest.$ac_ext <<_ACEOF
6455 /* end confdefs.h. */
6456 $ac_includes_default
6458 main ()
6460 static struct stat ac_aggr;
6461 if (sizeof ac_aggr.st_blocks)
6462 return 0;
6464 return 0;
6466 _ACEOF
6467 rm -f conftest.$ac_objext
6468 if { (ac_try="$ac_compile"
6469 case "(($ac_try" in
6470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6471 *) ac_try_echo=$ac_try;;
6472 esac
6473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6474 (eval "$ac_compile") 2>conftest.er1
6475 ac_status=$?
6476 grep -v '^ *+' conftest.er1 >conftest.err
6477 rm -f conftest.er1
6478 cat conftest.err >&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); } && {
6481 test -z "$ac_c_werror_flag" ||
6482 test ! -s conftest.err
6483 } && test -s conftest.$ac_objext; then
6484 ac_cv_member_struct_stat_st_blocks=yes
6485 else
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 ac_cv_member_struct_stat_st_blocks=no
6492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6497 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
6498 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; }
6499 if test $ac_cv_member_struct_stat_st_blocks = yes; then
6501 cat >>confdefs.h <<_ACEOF
6502 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
6503 _ACEOF
6506 cat >>confdefs.h <<\_ACEOF
6507 #define HAVE_ST_BLOCKS 1
6508 _ACEOF
6510 else
6511 case " $LIBOBJS " in
6512 *" fileblocks.$ac_objext "* ) ;;
6513 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
6515 esac
6520 { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5
6521 echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; }
6522 if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then
6523 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 else
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 $ac_includes_default
6533 main ()
6535 static struct stat ac_aggr;
6536 if (ac_aggr.st_rdev)
6537 return 0;
6539 return 0;
6541 _ACEOF
6542 rm -f conftest.$ac_objext
6543 if { (ac_try="$ac_compile"
6544 case "(($ac_try" in
6545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6546 *) ac_try_echo=$ac_try;;
6547 esac
6548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6549 (eval "$ac_compile") 2>conftest.er1
6550 ac_status=$?
6551 grep -v '^ *+' conftest.er1 >conftest.err
6552 rm -f conftest.er1
6553 cat conftest.err >&5
6554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555 (exit $ac_status); } && {
6556 test -z "$ac_c_werror_flag" ||
6557 test ! -s conftest.err
6558 } && test -s conftest.$ac_objext; then
6559 ac_cv_member_struct_stat_st_rdev=yes
6560 else
6561 echo "$as_me: failed program was:" >&5
6562 sed 's/^/| /' conftest.$ac_ext >&5
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 $ac_includes_default
6572 main ()
6574 static struct stat ac_aggr;
6575 if (sizeof ac_aggr.st_rdev)
6576 return 0;
6578 return 0;
6580 _ACEOF
6581 rm -f conftest.$ac_objext
6582 if { (ac_try="$ac_compile"
6583 case "(($ac_try" in
6584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6585 *) ac_try_echo=$ac_try;;
6586 esac
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_compile") 2>conftest.er1
6589 ac_status=$?
6590 grep -v '^ *+' conftest.er1 >conftest.err
6591 rm -f conftest.er1
6592 cat conftest.err >&5
6593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594 (exit $ac_status); } && {
6595 test -z "$ac_c_werror_flag" ||
6596 test ! -s conftest.err
6597 } && test -s conftest.$ac_objext; then
6598 ac_cv_member_struct_stat_st_rdev=yes
6599 else
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6603 ac_cv_member_struct_stat_st_rdev=no
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5
6612 echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; }
6613 if test $ac_cv_member_struct_stat_st_rdev = yes; then
6615 cat >>confdefs.h <<_ACEOF
6616 #define HAVE_STRUCT_STAT_ST_RDEV 1
6617 _ACEOF
6620 cat >>confdefs.h <<\_ACEOF
6621 #define HAVE_ST_RDEV 1
6622 _ACEOF
6627 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6628 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
6629 if test "${ac_cv_struct_tm+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 else
6632 cat >conftest.$ac_ext <<_ACEOF
6633 /* confdefs.h. */
6634 _ACEOF
6635 cat confdefs.h >>conftest.$ac_ext
6636 cat >>conftest.$ac_ext <<_ACEOF
6637 /* end confdefs.h. */
6638 #include <sys/types.h>
6639 #include <time.h>
6642 main ()
6644 struct tm tm;
6645 int *p = &tm.tm_sec;
6646 return !p;
6648 return 0;
6650 _ACEOF
6651 rm -f conftest.$ac_objext
6652 if { (ac_try="$ac_compile"
6653 case "(($ac_try" in
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6656 esac
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_compile") 2>conftest.er1
6659 ac_status=$?
6660 grep -v '^ *+' conftest.er1 >conftest.err
6661 rm -f conftest.er1
6662 cat conftest.err >&5
6663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6664 (exit $ac_status); } && {
6665 test -z "$ac_c_werror_flag" ||
6666 test ! -s conftest.err
6667 } && test -s conftest.$ac_objext; then
6668 ac_cv_struct_tm=time.h
6669 else
6670 echo "$as_me: failed program was:" >&5
6671 sed 's/^/| /' conftest.$ac_ext >&5
6673 ac_cv_struct_tm=sys/time.h
6676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6678 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6679 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
6680 if test $ac_cv_struct_tm = sys/time.h; then
6682 cat >>confdefs.h <<\_ACEOF
6683 #define TM_IN_SYS_TIME 1
6684 _ACEOF
6688 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
6689 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
6690 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
6691 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 else
6693 cat >conftest.$ac_ext <<_ACEOF
6694 /* confdefs.h. */
6695 _ACEOF
6696 cat confdefs.h >>conftest.$ac_ext
6697 cat >>conftest.$ac_ext <<_ACEOF
6698 /* end confdefs.h. */
6699 #include <sys/types.h>
6700 #include <$ac_cv_struct_tm>
6704 main ()
6706 static struct tm ac_aggr;
6707 if (ac_aggr.tm_zone)
6708 return 0;
6710 return 0;
6712 _ACEOF
6713 rm -f conftest.$ac_objext
6714 if { (ac_try="$ac_compile"
6715 case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718 esac
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_c_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest.$ac_objext; then
6730 ac_cv_member_struct_tm_tm_zone=yes
6731 else
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6735 cat >conftest.$ac_ext <<_ACEOF
6736 /* confdefs.h. */
6737 _ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 #include <sys/types.h>
6742 #include <$ac_cv_struct_tm>
6746 main ()
6748 static struct tm ac_aggr;
6749 if (sizeof ac_aggr.tm_zone)
6750 return 0;
6752 return 0;
6754 _ACEOF
6755 rm -f conftest.$ac_objext
6756 if { (ac_try="$ac_compile"
6757 case "(($ac_try" in
6758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6759 *) ac_try_echo=$ac_try;;
6760 esac
6761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6762 (eval "$ac_compile") 2>conftest.er1
6763 ac_status=$?
6764 grep -v '^ *+' conftest.er1 >conftest.err
6765 rm -f conftest.er1
6766 cat conftest.err >&5
6767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6768 (exit $ac_status); } && {
6769 test -z "$ac_c_werror_flag" ||
6770 test ! -s conftest.err
6771 } && test -s conftest.$ac_objext; then
6772 ac_cv_member_struct_tm_tm_zone=yes
6773 else
6774 echo "$as_me: failed program was:" >&5
6775 sed 's/^/| /' conftest.$ac_ext >&5
6777 ac_cv_member_struct_tm_tm_zone=no
6780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
6786 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
6787 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6789 cat >>confdefs.h <<_ACEOF
6790 #define HAVE_STRUCT_TM_TM_ZONE 1
6791 _ACEOF
6796 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6798 cat >>confdefs.h <<\_ACEOF
6799 #define HAVE_TM_ZONE 1
6800 _ACEOF
6802 else
6803 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6804 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
6805 if test "${ac_cv_have_decl_tzname+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 else
6808 cat >conftest.$ac_ext <<_ACEOF
6809 /* confdefs.h. */
6810 _ACEOF
6811 cat confdefs.h >>conftest.$ac_ext
6812 cat >>conftest.$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 #include <time.h>
6817 main ()
6819 #ifndef tzname
6820 (void) tzname;
6821 #endif
6824 return 0;
6826 _ACEOF
6827 rm -f conftest.$ac_objext
6828 if { (ac_try="$ac_compile"
6829 case "(($ac_try" in
6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831 *) ac_try_echo=$ac_try;;
6832 esac
6833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6834 (eval "$ac_compile") 2>conftest.er1
6835 ac_status=$?
6836 grep -v '^ *+' conftest.er1 >conftest.err
6837 rm -f conftest.er1
6838 cat conftest.err >&5
6839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6840 (exit $ac_status); } && {
6841 test -z "$ac_c_werror_flag" ||
6842 test ! -s conftest.err
6843 } && test -s conftest.$ac_objext; then
6844 ac_cv_have_decl_tzname=yes
6845 else
6846 echo "$as_me: failed program was:" >&5
6847 sed 's/^/| /' conftest.$ac_ext >&5
6849 ac_cv_have_decl_tzname=no
6852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6854 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
6855 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
6856 if test $ac_cv_have_decl_tzname = yes; then
6858 cat >>confdefs.h <<_ACEOF
6859 #define HAVE_DECL_TZNAME 1
6860 _ACEOF
6863 else
6864 cat >>confdefs.h <<_ACEOF
6865 #define HAVE_DECL_TZNAME 0
6866 _ACEOF
6872 { echo "$as_me:$LINENO: checking for tzname" >&5
6873 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
6874 if test "${ac_cv_var_tzname+set}" = set; then
6875 echo $ECHO_N "(cached) $ECHO_C" >&6
6876 else
6877 cat >conftest.$ac_ext <<_ACEOF
6878 /* confdefs.h. */
6879 _ACEOF
6880 cat confdefs.h >>conftest.$ac_ext
6881 cat >>conftest.$ac_ext <<_ACEOF
6882 /* end confdefs.h. */
6883 #include <time.h>
6884 #if !HAVE_DECL_TZNAME
6885 extern char *tzname[];
6886 #endif
6889 main ()
6891 return tzname[0][0];
6893 return 0;
6895 _ACEOF
6896 rm -f conftest.$ac_objext conftest$ac_exeext
6897 if { (ac_try="$ac_link"
6898 case "(($ac_try" in
6899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6900 *) ac_try_echo=$ac_try;;
6901 esac
6902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903 (eval "$ac_link") 2>conftest.er1
6904 ac_status=$?
6905 grep -v '^ *+' conftest.er1 >conftest.err
6906 rm -f conftest.er1
6907 cat conftest.err >&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && {
6910 test -z "$ac_c_werror_flag" ||
6911 test ! -s conftest.err
6912 } && test -s conftest$ac_exeext &&
6913 $as_test_x conftest$ac_exeext; then
6914 ac_cv_var_tzname=yes
6915 else
6916 echo "$as_me: failed program was:" >&5
6917 sed 's/^/| /' conftest.$ac_ext >&5
6919 ac_cv_var_tzname=no
6922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6923 conftest$ac_exeext conftest.$ac_ext
6925 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6926 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
6927 if test $ac_cv_var_tzname = yes; then
6929 cat >>confdefs.h <<\_ACEOF
6930 #define HAVE_TZNAME 1
6931 _ACEOF
6936 { echo "$as_me:$LINENO: checking for off_t" >&5
6937 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
6938 if test "${ac_cv_type_off_t+set}" = set; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941 cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h. */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h. */
6947 $ac_includes_default
6948 typedef off_t ac__type_new_;
6950 main ()
6952 if ((ac__type_new_ *) 0)
6953 return 0;
6954 if (sizeof (ac__type_new_))
6955 return 0;
6957 return 0;
6959 _ACEOF
6960 rm -f conftest.$ac_objext
6961 if { (ac_try="$ac_compile"
6962 case "(($ac_try" in
6963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6964 *) ac_try_echo=$ac_try;;
6965 esac
6966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6967 (eval "$ac_compile") 2>conftest.er1
6968 ac_status=$?
6969 grep -v '^ *+' conftest.er1 >conftest.err
6970 rm -f conftest.er1
6971 cat conftest.err >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); } && {
6974 test -z "$ac_c_werror_flag" ||
6975 test ! -s conftest.err
6976 } && test -s conftest.$ac_objext; then
6977 ac_cv_type_off_t=yes
6978 else
6979 echo "$as_me: failed program was:" >&5
6980 sed 's/^/| /' conftest.$ac_ext >&5
6982 ac_cv_type_off_t=no
6985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6987 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
6988 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
6989 if test $ac_cv_type_off_t = yes; then
6991 else
6993 cat >>confdefs.h <<_ACEOF
6994 #define off_t long int
6995 _ACEOF
6999 { echo "$as_me:$LINENO: checking for pid_t" >&5
7000 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7001 if test "${ac_cv_type_pid_t+set}" = set; then
7002 echo $ECHO_N "(cached) $ECHO_C" >&6
7003 else
7004 cat >conftest.$ac_ext <<_ACEOF
7005 /* confdefs.h. */
7006 _ACEOF
7007 cat confdefs.h >>conftest.$ac_ext
7008 cat >>conftest.$ac_ext <<_ACEOF
7009 /* end confdefs.h. */
7010 $ac_includes_default
7011 typedef pid_t ac__type_new_;
7013 main ()
7015 if ((ac__type_new_ *) 0)
7016 return 0;
7017 if (sizeof (ac__type_new_))
7018 return 0;
7020 return 0;
7022 _ACEOF
7023 rm -f conftest.$ac_objext
7024 if { (ac_try="$ac_compile"
7025 case "(($ac_try" in
7026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7027 *) ac_try_echo=$ac_try;;
7028 esac
7029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7030 (eval "$ac_compile") 2>conftest.er1
7031 ac_status=$?
7032 grep -v '^ *+' conftest.er1 >conftest.err
7033 rm -f conftest.er1
7034 cat conftest.err >&5
7035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036 (exit $ac_status); } && {
7037 test -z "$ac_c_werror_flag" ||
7038 test ! -s conftest.err
7039 } && test -s conftest.$ac_objext; then
7040 ac_cv_type_pid_t=yes
7041 else
7042 echo "$as_me: failed program was:" >&5
7043 sed 's/^/| /' conftest.$ac_ext >&5
7045 ac_cv_type_pid_t=no
7048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7050 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7051 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7052 if test $ac_cv_type_pid_t = yes; then
7054 else
7056 cat >>confdefs.h <<_ACEOF
7057 #define pid_t int
7058 _ACEOF
7062 { echo "$as_me:$LINENO: checking for size_t" >&5
7063 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
7064 if test "${ac_cv_type_size_t+set}" = set; then
7065 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 else
7067 cat >conftest.$ac_ext <<_ACEOF
7068 /* confdefs.h. */
7069 _ACEOF
7070 cat confdefs.h >>conftest.$ac_ext
7071 cat >>conftest.$ac_ext <<_ACEOF
7072 /* end confdefs.h. */
7073 $ac_includes_default
7074 typedef size_t ac__type_new_;
7076 main ()
7078 if ((ac__type_new_ *) 0)
7079 return 0;
7080 if (sizeof (ac__type_new_))
7081 return 0;
7083 return 0;
7085 _ACEOF
7086 rm -f conftest.$ac_objext
7087 if { (ac_try="$ac_compile"
7088 case "(($ac_try" in
7089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7090 *) ac_try_echo=$ac_try;;
7091 esac
7092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7093 (eval "$ac_compile") 2>conftest.er1
7094 ac_status=$?
7095 grep -v '^ *+' conftest.er1 >conftest.err
7096 rm -f conftest.er1
7097 cat conftest.err >&5
7098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7099 (exit $ac_status); } && {
7100 test -z "$ac_c_werror_flag" ||
7101 test ! -s conftest.err
7102 } && test -s conftest.$ac_objext; then
7103 ac_cv_type_size_t=yes
7104 else
7105 echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7108 ac_cv_type_size_t=no
7111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7113 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
7114 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
7115 if test $ac_cv_type_size_t = yes; then
7117 else
7119 cat >>confdefs.h <<_ACEOF
7120 #define size_t unsigned int
7121 _ACEOF
7125 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7126 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7127 if test "${ac_cv_type_uid_t+set}" = set; then
7128 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130 cat >conftest.$ac_ext <<_ACEOF
7131 /* confdefs.h. */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 #include <sys/types.h>
7138 _ACEOF
7139 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7140 $EGREP "uid_t" >/dev/null 2>&1; then
7141 ac_cv_type_uid_t=yes
7142 else
7143 ac_cv_type_uid_t=no
7145 rm -f conftest*
7148 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7149 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7150 if test $ac_cv_type_uid_t = no; then
7152 cat >>confdefs.h <<\_ACEOF
7153 #define uid_t int
7154 _ACEOF
7157 cat >>confdefs.h <<\_ACEOF
7158 #define gid_t int
7159 _ACEOF
7164 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7165 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7166 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169 cat >conftest.$ac_ext <<_ACEOF
7170 /* confdefs.h. */
7171 _ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 $ac_includes_default
7177 main ()
7179 static struct tm ac_aggr;
7180 if (ac_aggr.tm_gmtoff)
7181 return 0;
7183 return 0;
7185 _ACEOF
7186 rm -f conftest.$ac_objext
7187 if { (ac_try="$ac_compile"
7188 case "(($ac_try" in
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7191 esac
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_compile") 2>conftest.er1
7194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest.$ac_objext; then
7203 ac_cv_member_struct_tm_tm_gmtoff=yes
7204 else
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7208 cat >conftest.$ac_ext <<_ACEOF
7209 /* confdefs.h. */
7210 _ACEOF
7211 cat confdefs.h >>conftest.$ac_ext
7212 cat >>conftest.$ac_ext <<_ACEOF
7213 /* end confdefs.h. */
7214 $ac_includes_default
7216 main ()
7218 static struct tm ac_aggr;
7219 if (sizeof ac_aggr.tm_gmtoff)
7220 return 0;
7222 return 0;
7224 _ACEOF
7225 rm -f conftest.$ac_objext
7226 if { (ac_try="$ac_compile"
7227 case "(($ac_try" in
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7230 esac
7231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7232 (eval "$ac_compile") 2>conftest.er1
7233 ac_status=$?
7234 grep -v '^ *+' conftest.er1 >conftest.err
7235 rm -f conftest.er1
7236 cat conftest.err >&5
7237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7238 (exit $ac_status); } && {
7239 test -z "$ac_c_werror_flag" ||
7240 test ! -s conftest.err
7241 } && test -s conftest.$ac_objext; then
7242 ac_cv_member_struct_tm_tm_gmtoff=yes
7243 else
7244 echo "$as_me: failed program was:" >&5
7245 sed 's/^/| /' conftest.$ac_ext >&5
7247 ac_cv_member_struct_tm_tm_gmtoff=no
7250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7255 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7256 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7257 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7259 cat >>confdefs.h <<_ACEOF
7260 #define HAVE_STRUCT_TM_TM_GMTOFF 1
7261 _ACEOF
7267 # Look for some functions
7282 for ac_func in getpagesize kqueue statfs statvfs \
7283 clone kse_create rfork_thread thr_create sa_register \
7284 getcontext makecontext setcontext sigaltstack swapcontext
7286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7289 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7291 else
7292 cat >conftest.$ac_ext <<_ACEOF
7293 /* confdefs.h. */
7294 _ACEOF
7295 cat confdefs.h >>conftest.$ac_ext
7296 cat >>conftest.$ac_ext <<_ACEOF
7297 /* end confdefs.h. */
7298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7300 #define $ac_func innocuous_$ac_func
7302 /* System header to define __stub macros and hopefully few prototypes,
7303 which can conflict with char $ac_func (); below.
7304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7305 <limits.h> exists even on freestanding compilers. */
7307 #ifdef __STDC__
7308 # include <limits.h>
7309 #else
7310 # include <assert.h>
7311 #endif
7313 #undef $ac_func
7315 /* Override any GCC internal prototype to avoid an error.
7316 Use char because int might match the return type of a GCC
7317 builtin and then its argument prototype would still apply. */
7318 #ifdef __cplusplus
7319 extern "C"
7320 #endif
7321 char $ac_func ();
7322 /* The GNU C library defines this for functions which it implements
7323 to always fail with ENOSYS. Some functions are actually named
7324 something starting with __ and the normal name is an alias. */
7325 #if defined __stub_$ac_func || defined __stub___$ac_func
7326 choke me
7327 #endif
7330 main ()
7332 return $ac_func ();
7334 return 0;
7336 _ACEOF
7337 rm -f conftest.$ac_objext conftest$ac_exeext
7338 if { (ac_try="$ac_link"
7339 case "(($ac_try" in
7340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7341 *) ac_try_echo=$ac_try;;
7342 esac
7343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7344 (eval "$ac_link") 2>conftest.er1
7345 ac_status=$?
7346 grep -v '^ *+' conftest.er1 >conftest.err
7347 rm -f conftest.er1
7348 cat conftest.err >&5
7349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7350 (exit $ac_status); } && {
7351 test -z "$ac_c_werror_flag" ||
7352 test ! -s conftest.err
7353 } && test -s conftest$ac_exeext &&
7354 $as_test_x conftest$ac_exeext; then
7355 eval "$as_ac_var=yes"
7356 else
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7360 eval "$as_ac_var=no"
7363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7364 conftest$ac_exeext conftest.$ac_ext
7366 ac_res=`eval echo '${'$as_ac_var'}'`
7367 { echo "$as_me:$LINENO: result: $ac_res" >&5
7368 echo "${ECHO_T}$ac_res" >&6; }
7369 if test `eval echo '${'$as_ac_var'}'` = yes; then
7370 cat >>confdefs.h <<_ACEOF
7371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7372 _ACEOF
7375 done
7380 for ac_header in stdlib.h unistd.h
7382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7387 echo $ECHO_N "(cached) $ECHO_C" >&6
7389 ac_res=`eval echo '${'$as_ac_Header'}'`
7390 { echo "$as_me:$LINENO: result: $ac_res" >&5
7391 echo "${ECHO_T}$ac_res" >&6; }
7392 else
7393 # Is the header compilable?
7394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7396 cat >conftest.$ac_ext <<_ACEOF
7397 /* confdefs.h. */
7398 _ACEOF
7399 cat confdefs.h >>conftest.$ac_ext
7400 cat >>conftest.$ac_ext <<_ACEOF
7401 /* end confdefs.h. */
7402 $ac_includes_default
7403 #include <$ac_header>
7404 _ACEOF
7405 rm -f conftest.$ac_objext
7406 if { (ac_try="$ac_compile"
7407 case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7410 esac
7411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7412 (eval "$ac_compile") 2>conftest.er1
7413 ac_status=$?
7414 grep -v '^ *+' conftest.er1 >conftest.err
7415 rm -f conftest.er1
7416 cat conftest.err >&5
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); } && {
7419 test -z "$ac_c_werror_flag" ||
7420 test ! -s conftest.err
7421 } && test -s conftest.$ac_objext; then
7422 ac_header_compiler=yes
7423 else
7424 echo "$as_me: failed program was:" >&5
7425 sed 's/^/| /' conftest.$ac_ext >&5
7427 ac_header_compiler=no
7430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7432 echo "${ECHO_T}$ac_header_compiler" >&6; }
7434 # Is the header present?
7435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7437 cat >conftest.$ac_ext <<_ACEOF
7438 /* confdefs.h. */
7439 _ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7443 #include <$ac_header>
7444 _ACEOF
7445 if { (ac_try="$ac_cpp conftest.$ac_ext"
7446 case "(($ac_try" in
7447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7448 *) ac_try_echo=$ac_try;;
7449 esac
7450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7452 ac_status=$?
7453 grep -v '^ *+' conftest.er1 >conftest.err
7454 rm -f conftest.er1
7455 cat conftest.err >&5
7456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7457 (exit $ac_status); } >/dev/null && {
7458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7459 test ! -s conftest.err
7460 }; then
7461 ac_header_preproc=yes
7462 else
7463 echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7466 ac_header_preproc=no
7469 rm -f conftest.err conftest.$ac_ext
7470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7471 echo "${ECHO_T}$ac_header_preproc" >&6; }
7473 # So? What about this header?
7474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7475 yes:no: )
7476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7480 ac_header_preproc=yes
7482 no:yes:* )
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7497 esac
7498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7501 echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503 eval "$as_ac_Header=\$ac_header_preproc"
7505 ac_res=`eval echo '${'$as_ac_Header'}'`
7506 { echo "$as_me:$LINENO: result: $ac_res" >&5
7507 echo "${ECHO_T}$ac_res" >&6; }
7510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7511 cat >>confdefs.h <<_ACEOF
7512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7513 _ACEOF
7517 done
7520 for ac_func in getpagesize
7522 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7523 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7524 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7525 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528 cat >conftest.$ac_ext <<_ACEOF
7529 /* confdefs.h. */
7530 _ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7534 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7535 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7536 #define $ac_func innocuous_$ac_func
7538 /* System header to define __stub macros and hopefully few prototypes,
7539 which can conflict with char $ac_func (); below.
7540 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7541 <limits.h> exists even on freestanding compilers. */
7543 #ifdef __STDC__
7544 # include <limits.h>
7545 #else
7546 # include <assert.h>
7547 #endif
7549 #undef $ac_func
7551 /* Override any GCC internal prototype to avoid an error.
7552 Use char because int might match the return type of a GCC
7553 builtin and then its argument prototype would still apply. */
7554 #ifdef __cplusplus
7555 extern "C"
7556 #endif
7557 char $ac_func ();
7558 /* The GNU C library defines this for functions which it implements
7559 to always fail with ENOSYS. Some functions are actually named
7560 something starting with __ and the normal name is an alias. */
7561 #if defined __stub_$ac_func || defined __stub___$ac_func
7562 choke me
7563 #endif
7566 main ()
7568 return $ac_func ();
7570 return 0;
7572 _ACEOF
7573 rm -f conftest.$ac_objext conftest$ac_exeext
7574 if { (ac_try="$ac_link"
7575 case "(($ac_try" in
7576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7578 esac
7579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_link") 2>conftest.er1
7581 ac_status=$?
7582 grep -v '^ *+' conftest.er1 >conftest.err
7583 rm -f conftest.er1
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest$ac_exeext &&
7590 $as_test_x conftest$ac_exeext; then
7591 eval "$as_ac_var=yes"
7592 else
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7596 eval "$as_ac_var=no"
7599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7600 conftest$ac_exeext conftest.$ac_ext
7602 ac_res=`eval echo '${'$as_ac_var'}'`
7603 { echo "$as_me:$LINENO: result: $ac_res" >&5
7604 echo "${ECHO_T}$ac_res" >&6; }
7605 if test `eval echo '${'$as_ac_var'}'` = yes; then
7606 cat >>confdefs.h <<_ACEOF
7607 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7608 _ACEOF
7611 done
7613 { echo "$as_me:$LINENO: checking for working mmap" >&5
7614 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
7615 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 else
7618 if test "$cross_compiling" = yes; then
7619 ac_cv_func_mmap_fixed_mapped=no
7620 else
7621 cat >conftest.$ac_ext <<_ACEOF
7622 /* confdefs.h. */
7623 _ACEOF
7624 cat confdefs.h >>conftest.$ac_ext
7625 cat >>conftest.$ac_ext <<_ACEOF
7626 /* end confdefs.h. */
7627 $ac_includes_default
7628 /* malloc might have been renamed as rpl_malloc. */
7629 #undef malloc
7631 /* Thanks to Mike Haertel and Jim Avera for this test.
7632 Here is a matrix of mmap possibilities:
7633 mmap private not fixed
7634 mmap private fixed at somewhere currently unmapped
7635 mmap private fixed at somewhere already mapped
7636 mmap shared not fixed
7637 mmap shared fixed at somewhere currently unmapped
7638 mmap shared fixed at somewhere already mapped
7639 For private mappings, we should verify that changes cannot be read()
7640 back from the file, nor mmap's back from the file at a different
7641 address. (There have been systems where private was not correctly
7642 implemented like the infamous i386 svr4.0, and systems where the
7643 VM page cache was not coherent with the file system buffer cache
7644 like early versions of FreeBSD and possibly contemporary NetBSD.)
7645 For shared mappings, we should conversely verify that changes get
7646 propagated back to all the places they're supposed to be.
7648 Grep wants private fixed already mapped.
7649 The main things grep needs to know about mmap are:
7650 * does it exist and is it safe to write into the mmap'd area
7651 * how to use it (BSD variants) */
7653 #include <fcntl.h>
7654 #include <sys/mman.h>
7656 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7657 char *malloc ();
7658 #endif
7660 /* This mess was copied from the GNU getpagesize.h. */
7661 #ifndef HAVE_GETPAGESIZE
7662 /* Assume that all systems that can run configure have sys/param.h. */
7663 # ifndef HAVE_SYS_PARAM_H
7664 # define HAVE_SYS_PARAM_H 1
7665 # endif
7667 # ifdef _SC_PAGESIZE
7668 # define getpagesize() sysconf(_SC_PAGESIZE)
7669 # else /* no _SC_PAGESIZE */
7670 # ifdef HAVE_SYS_PARAM_H
7671 # include <sys/param.h>
7672 # ifdef EXEC_PAGESIZE
7673 # define getpagesize() EXEC_PAGESIZE
7674 # else /* no EXEC_PAGESIZE */
7675 # ifdef NBPG
7676 # define getpagesize() NBPG * CLSIZE
7677 # ifndef CLSIZE
7678 # define CLSIZE 1
7679 # endif /* no CLSIZE */
7680 # else /* no NBPG */
7681 # ifdef NBPC
7682 # define getpagesize() NBPC
7683 # else /* no NBPC */
7684 # ifdef PAGESIZE
7685 # define getpagesize() PAGESIZE
7686 # endif /* PAGESIZE */
7687 # endif /* no NBPC */
7688 # endif /* no NBPG */
7689 # endif /* no EXEC_PAGESIZE */
7690 # else /* no HAVE_SYS_PARAM_H */
7691 # define getpagesize() 8192 /* punt totally */
7692 # endif /* no HAVE_SYS_PARAM_H */
7693 # endif /* no _SC_PAGESIZE */
7695 #endif /* no HAVE_GETPAGESIZE */
7698 main ()
7700 char *data, *data2, *data3;
7701 int i, pagesize;
7702 int fd;
7704 pagesize = getpagesize ();
7706 /* First, make a file with some known garbage in it. */
7707 data = (char *) malloc (pagesize);
7708 if (!data)
7709 return 1;
7710 for (i = 0; i < pagesize; ++i)
7711 *(data + i) = rand ();
7712 umask (0);
7713 fd = creat ("conftest.mmap", 0600);
7714 if (fd < 0)
7715 return 1;
7716 if (write (fd, data, pagesize) != pagesize)
7717 return 1;
7718 close (fd);
7720 /* Next, try to mmap the file at a fixed address which already has
7721 something else allocated at it. If we can, also make sure that
7722 we see the same garbage. */
7723 fd = open ("conftest.mmap", O_RDWR);
7724 if (fd < 0)
7725 return 1;
7726 data2 = (char *) malloc (2 * pagesize);
7727 if (!data2)
7728 return 1;
7729 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7730 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7731 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7732 return 1;
7733 for (i = 0; i < pagesize; ++i)
7734 if (*(data + i) != *(data2 + i))
7735 return 1;
7737 /* Finally, make sure that changes to the mapped area do not
7738 percolate back to the file as seen by read(). (This is a bug on
7739 some variants of i386 svr4.0.) */
7740 for (i = 0; i < pagesize; ++i)
7741 *(data2 + i) = *(data2 + i) + 1;
7742 data3 = (char *) malloc (pagesize);
7743 if (!data3)
7744 return 1;
7745 if (read (fd, data3, pagesize) != pagesize)
7746 return 1;
7747 for (i = 0; i < pagesize; ++i)
7748 if (*(data + i) != *(data3 + i))
7749 return 1;
7750 close (fd);
7751 return 0;
7753 _ACEOF
7754 rm -f conftest$ac_exeext
7755 if { (ac_try="$ac_link"
7756 case "(($ac_try" in
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7759 esac
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_link") 2>&5
7762 ac_status=$?
7763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7765 { (case "(($ac_try" in
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7768 esac
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_try") 2>&5
7771 ac_status=$?
7772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7773 (exit $ac_status); }; }; then
7774 ac_cv_func_mmap_fixed_mapped=yes
7775 else
7776 echo "$as_me: program exited with status $ac_status" >&5
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7780 ( exit $ac_status )
7781 ac_cv_func_mmap_fixed_mapped=no
7783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7788 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7789 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
7790 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7792 cat >>confdefs.h <<\_ACEOF
7793 #define HAVE_MMAP 1
7794 _ACEOF
7797 rm -f conftest.mmap
7802 aros_config_cflags="-Wall -Werror-implicit-function-declaration"
7803 aros_config_aflags="-Wall -x assembler-with-cpp -c"
7804 aros_config_ldflags=""
7806 aros_shared_default=yes
7808 aros_shared_cflags="-fPIC"
7809 aros_shared_aflags=""
7810 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
7811 aros_kernel_ldflags="-Wl,-rpath,./lib"
7813 aros_target_ar_flags="cr"
7814 aros_target_nm_flags="-C -ul"
7815 aros_target_strip_flags="--strip-unneeded -R.comment"
7817 aros_compiler_libs=
7819 aros_target_genmap="-Wl,-Map -Xlinker"
7821 # Native flavour stuff
7822 aros_bochs_hack="0"
7823 aros_serial_debug="0"
7825 # Palm native flavour stuff
7826 aros_palm_debug_hack="0"
7828 # Unix flavour stuff
7829 aros_nesting_supervisor="0"
7831 # Collect-aros stuff: "-ius" to ignore undefined symbols
7832 ignore_undefined_symbols=""
7834 #-----------------------------------------------------------------------------
7836 { echo "$as_me:$LINENO: checking for type of build" >&5
7837 echo $ECHO_N "checking for type of build... $ECHO_C" >&6; }
7838 # Check whether --enable-build_type was given.
7839 if test "${enable_build_type+set}" = set; then
7840 enableval=$enable_build_type; build_type=$enableval
7841 else
7842 build_type="personal"
7846 if test "$build_type" = "nightly"; then
7847 build_type_string="NIGHTLY"
7848 elif test "$build_type" = "snapshot"; then
7849 build_type_string="SNAPSHOT"
7850 elif test "$build_type" = "milestone"; then
7851 build_type_string="MILESTONE"
7852 elif test "$build_type" = "release"; then
7853 build_type_string="RELEASE"
7854 else
7855 build_type_string="PERSONAL"
7856 build_type="personal"
7859 aros_config_cflags="$aros_config_cflags -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_$build_type_string"
7861 { echo "$as_me:$LINENO: result: $build_type" >&5
7862 echo "${ECHO_T}$build_type" >&6; }
7864 #-----------------------------------------------------------------------------
7865 all_debug_types="messages stack mungwall modules symbols"
7867 { echo "$as_me:$LINENO: checking which debug types to enable" >&5
7868 echo $ECHO_N "checking which debug types to enable... $ECHO_C" >&6; }
7869 # Check whether --enable-debug was given.
7870 if test "${enable_debug+set}" = set; then
7871 enableval=$enable_debug; debug="$enableval"
7872 else
7873 debug=""
7877 if test "$debug" = "" -o "$debug" = "no"; then
7878 debug="none"
7879 elif test "$debug" = "yes"; then
7880 debug="all"
7883 if test "$debug" = "all" ; then
7884 debug=$all_debug_types
7885 for d in $all_debug_types; do
7886 export aros_${d}_debug="1"
7887 done
7888 else
7889 for d in $all_debug_types; do
7890 export aros_${d}_debug="0"
7891 done
7894 if test "$debug" != "none"; then
7895 debug=`echo $debug | sed s/,/\ /g`
7896 for d in $debug; do
7897 found="0"
7898 for d2 in $all_debug_types; do
7899 if test "$d2" = "$d"; then
7900 found="1"
7901 break
7903 done
7904 if test "$found" = "0"; then
7905 { { echo "$as_me:$LINENO: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&5
7906 echo "$as_me: error: unrecognized debug type \"$d\". Available types are: all none $all_debug_types" >&2;}
7907 { (exit 1); exit 1; }; }
7909 export aros_${d}_debug="1"
7910 done
7911 aros_debug="yes"
7913 { echo "$as_me:$LINENO: result: $debug" >&5
7914 echo "${ECHO_T}$debug" >&6; }
7916 if test "$aros_messages_debug" = "1"; then
7917 aros_messages_debug="-DADEBUG=1 -DMDEBUG=1"
7918 else
7919 aros_messages_debug=""
7921 if test "$aros_symbols_debug" = "1"; then
7922 aros_symbols_debug="-g"
7923 else
7924 aros_symbols_debug=""
7927 # These are the flags to pass when compiling debugged programs
7928 aros_debug_cflags="$aros_symbols_debug $aros_messages_debug"
7929 aros_debug_aflags=""
7930 aros_debug_ldflags="$aros_symbols_debug"
7932 #-----------------------------------------------------------------------------
7933 # Checking for distcc and ccache.
7935 # Always apply the transforms in this particular order. Basically you should
7936 # always run 'ccache distcc compiler' in that order for the best performance.
7938 { echo "$as_me:$LINENO: checking whether to enable distcc" >&5
7939 echo $ECHO_N "checking whether to enable distcc... $ECHO_C" >&6; }
7940 # Check whether --enable-distcc was given.
7941 if test "${enable_distcc+set}" = set; then
7942 enableval=$enable_distcc; distcc="$enableval"
7943 else
7944 distcc="no"
7947 if test "$distcc" != "" -a "$distcc" != "no"; then
7948 # AC_CHECK_PROG will print out the result in this case
7949 # Extract the first word of "distcc", so it can be a program name with args.
7950 set dummy distcc; ac_word=$2
7951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7953 if test "${ac_cv_path_DISTCC+set}" = set; then
7954 echo $ECHO_N "(cached) $ECHO_C" >&6
7955 else
7956 case $DISTCC in
7957 [\\/]* | ?:[\\/]*)
7958 ac_cv_path_DISTCC="$DISTCC" # Let the user override the test with a path.
7961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7962 for as_dir in $PATH
7964 IFS=$as_save_IFS
7965 test -z "$as_dir" && as_dir=.
7966 for ac_exec_ext in '' $ac_executable_extensions; do
7967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7968 ac_cv_path_DISTCC="$as_dir/$ac_word$ac_exec_ext"
7969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7970 break 2
7972 done
7973 done
7974 IFS=$as_save_IFS
7976 test -z "$ac_cv_path_DISTCC" && ac_cv_path_DISTCC="distcc"
7978 esac
7980 DISTCC=$ac_cv_path_DISTCC
7981 if test -n "$DISTCC"; then
7982 { echo "$as_me:$LINENO: result: $DISTCC" >&5
7983 echo "${ECHO_T}$DISTCC" >&6; }
7984 else
7985 { echo "$as_me:$LINENO: result: no" >&5
7986 echo "${ECHO_T}no" >&6; }
7990 else
7991 { echo "$as_me:$LINENO: result: no" >&5
7992 echo "${ECHO_T}no" >&6; }
7995 { echo "$as_me:$LINENO: checking whether to enable ccache" >&5
7996 echo $ECHO_N "checking whether to enable ccache... $ECHO_C" >&6; }
7997 # Check whether --enable-ccache was given.
7998 if test "${enable_ccache+set}" = set; then
7999 enableval=$enable_ccache; ccache="$enableval"
8000 else
8001 ccache="no"
8004 if test "$ccache" != "" -a "$ccache" != "no"; then
8005 # AC_CHECK_PROG will print out the result in this case
8006 # Extract the first word of "ccache", so it can be a program name with args.
8007 set dummy ccache; ac_word=$2
8008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8010 if test "${ac_cv_prog_CCACHE+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013 if test -n "$CCACHE"; then
8014 ac_cv_prog_CCACHE="$CCACHE" # Let the user override the test.
8015 else
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8019 IFS=$as_save_IFS
8020 test -z "$as_dir" && as_dir=.
8021 for ac_exec_ext in '' $ac_executable_extensions; do
8022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8023 ac_cv_prog_CCACHE="ccache"
8024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 break 2
8027 done
8028 done
8029 IFS=$as_save_IFS
8033 CCACHE=$ac_cv_prog_CCACHE
8034 if test -n "$CCACHE"; then
8035 { echo "$as_me:$LINENO: result: $CCACHE" >&5
8036 echo "${ECHO_T}$CCACHE" >&6; }
8037 else
8038 { echo "$as_me:$LINENO: result: no" >&5
8039 echo "${ECHO_T}no" >&6; }
8043 else
8044 { echo "$as_me:$LINENO: result: no" >&5
8045 echo "${ECHO_T}no" >&6; }
8048 #-----------------------------------------------------------------------------
8049 { echo "$as_me:$LINENO: checking what optimization flags to use" >&5
8050 echo $ECHO_N "checking what optimization flags to use... $ECHO_C" >&6; }
8052 # Check whether --with-optimization was given.
8053 if test "${with_optimization+set}" = set; then
8054 withval=$with_optimization; optimization="$withval"
8055 else
8056 optimization="unknown"
8059 if test "$optimization" = "unknown"; then
8060 if test "$debug" != "none"; then
8061 optimization="-O0"
8062 else
8063 optimization="-O2"
8066 aros_config_cflags="$aros_config_cflags $optimization"
8067 { echo "$as_me:$LINENO: result: $optimization" >&5
8068 echo "${ECHO_T}$optimization" >&6; }
8070 #-----------------------------------------------------------------------------
8071 { echo "$as_me:$LINENO: checking what target variant to enable" >&5
8072 echo $ECHO_N "checking what target variant to enable... $ECHO_C" >&6; }
8073 # Check whether --enable-target_variant was given.
8074 if test "${enable_target_variant+set}" = set; then
8075 enableval=$enable_target_variant; target_variant=$enableval
8076 else
8077 target_variant="none"
8080 if test "$target_variant" = "none"; then
8081 aros_target_variant=""
8082 aros_target_suffix=""
8083 else
8084 aros_target_variant="$target_variant"
8085 aros_target_suffix="-$target_variant"
8087 { echo "$as_me:$LINENO: result: $enableval" >&5
8088 echo "${ECHO_T}$enableval" >&6; }
8090 #-----------------------------------------------------------------------------
8091 # This is the target configuration switch.
8092 case "$target_os" in
8093 linux*)
8094 aros_target_arch="linux"
8095 case "$target_cpu" in
8096 *m68k*)
8097 aros_target_cpu="m68k"
8098 aros_object_format="m68kelf"
8099 aros_flavour="emulcompat"
8100 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__linux__"
8101 aros_shared_ldflags="-Wl,-T,\$(TOP)/config/linux/m68k/script.so"
8102 aros_kernel_ldflags="-Wl,-rpath,./lib,-T,\$(TOP)/config/linux/m68k/script.normal"
8103 gcc_target_cpu="mc68000"
8105 *i?86*)
8106 aros_target_cpu="i386"
8107 aros_object_format="elf_i386"
8108 aros_flavour="emulation"
8109 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__linux__"
8110 aros_default_wbdepth=8
8111 gcc_target_cpu="i386"
8113 *x86_64*)
8114 aros_target_cpu="x86_64"
8115 aros_object_format="elf_x86_64"
8116 aros_flavour="emulation"
8117 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64 -D__linux__"
8118 aros_default_wbdepth=8
8119 gcc_target_cpu="x86_64"
8121 *powerpc*)
8122 aros_target_cpu="ppc"
8123 aros_object_format="elf32ppc"
8124 aros_flavour="emulation"
8125 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc -D__linux__"
8126 aros_default_wbdepth=8
8127 gcc_target_cpu="ppc"
8130 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Linux -- $target_cpu\"" >&5
8131 echo "$as_me: error: \"Unknown CPU for Linux -- $target_cpu\"" >&2;}
8132 { (exit 1); exit 1; }; }
8134 esac
8138 aros_target_arch="pc"
8139 aros_shared_default="no"
8140 case "$target_cpu" in
8141 *i?86*)
8142 aros_target_cpu="i386"
8145 if test "$aros_object_format" = "" ; then
8146 aros_object_format="elf_i386"
8148 aros_flavour="standalone"
8149 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8150 aros_kernel_ldflags=""
8151 aros_default_wbwidth=640
8152 aros_default_wbheight=480
8153 gcc_target_cpu="i386"
8155 *x86_64*)
8156 aros_target_cpu="x86_64"
8157 if test "$aros_object_format" = "" ; then
8158 aros_object_format="elf_x86_64"
8160 aros_flavour="standalone"
8161 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dx86_64"
8162 aros_config_cflags="$aros_config_cflags -fno-asynchronous-unwind-tables"
8163 aros_kernel_ldflags=""
8164 aros_default_wbwidth=640
8165 aros_default_wbheight=480
8166 gcc_target_cpu="x86_64"
8169 { { echo "$as_me:$LINENO: error: \"Unknown native CPU -- $target_cpu\"" >&5
8170 echo "$as_me: error: \"Unknown native CPU -- $target_cpu\"" >&2;}
8171 { (exit 1); exit 1; }; }
8173 esac
8176 prep)
8177 aros_target_arch="prep"
8178 aros_shared_default="no"
8179 aros_target_cpu="ppc"
8180 aros_object_format="elf32ppc"
8181 aros_flavour="ppcnative"
8182 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8183 aros_kernel_ldflags=""
8184 aros_default_wbwidth=640
8185 aros_default_wbheight=480
8186 gcc_target_cpu="ppc"
8187 case "$target_cpu" in
8188 *cross*)
8189 aros_target_cc="ppc-linux-gcc -pipe"
8190 aros_target_ld="ppc-linux-ld"
8191 aros_target_as="ppc-linux-as"
8192 aros_target_ar="ppc-linux-ar"
8193 aros_target_ranlib="ppc-linux-ranlib"
8194 aros_target_nm="ppc-linux-nm"
8195 aros_target_strip="ppc-linux-strip"
8196 aros_target_objcopy="ppc-linux-objcopy"
8197 aros_target_objdump="ppc-linux-objdump"
8198 aros_shared_ld="ppc-linux-ld"
8199 aros_kernel_ld="ppc-linux-ld"
8203 esac
8206 freebsd*)
8207 aros_target_arch="freebsd"
8208 aros_target_cpu="i386"
8209 aros_flavour="emulation"
8210 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8211 gcc_target_cpu="i386"
8213 aros_target_strip_flags="-x"
8216 darwin*)
8217 aros_target_arch="darwin"
8218 aros_target_cpu="i386"
8219 aros_flavour="emulation"
8220 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8221 gcc_target_cpu="i386"
8223 aros_target_strip_flags="-x"
8226 netbsd*)
8227 aros_target_arch="netbsd"
8228 case "$target_cpu" in
8229 *m68k*)
8230 aros_target_cpu="m68k"
8231 aros_object_format="m68kelf"
8232 aros_flavour="emulcompat"
8233 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D__mc68000 -D__NetBSD__"
8234 gcc_target_cpu="mc68000"
8236 *i?86*)
8237 aros_target_cpu="i386"
8238 aros_object_format="elf_i386"
8239 aros_flavour="emulation"
8240 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__NetBSD__"
8241 aros_default_wbdepth=8
8242 gcc_target_cpu="i386"
8245 { { echo "$as_me:$LINENO: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&5
8246 echo "$as_me: error: \"Unknown CPU for NetBSD -- $target_cpu\"" >&2;}
8247 { (exit 1); exit 1; }; }
8249 esac
8250 aros_target_genmap="-Wl,-M -Xlinker >"
8251 aros_flavour="emulation"
8252 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386"
8255 openbsd*)
8256 aros_target_arch="openbsd"
8257 case "$target_cpu" in
8258 *i?86*)
8259 aros_target_cpu="i386"
8260 aros_object_format="elf_i386"
8261 aros_flavour="emulation"
8262 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__OpenBSD__"
8263 gcc_target_cpu="i386"
8266 { { echo "$as_me:$LINENO: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&5
8267 echo "$as_me: error: \"Unknown CPU for OpenBSD -- $target_cpu\"" >&2;}
8268 { (exit 1); exit 1; }; }
8270 esac
8271 aros_target_genmap="-Wl,-M -Xlinker >"
8272 aros_target_nm_flags="-u"
8273 aros_flavour="emulation"
8276 solaris*)
8277 aros_target_arch="solaris"
8278 case "$target_cpu" in
8279 *sparc*)
8280 aros_target_cpu="sparc"
8281 aros_object_format="elf_sparc"
8282 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dsparc -D__Solaris__"
8283 gcc_target_cpu="sparc"
8286 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&5
8287 echo "$as_me: error: \"Unknown CPU for Solaris -- $target_cpu\"" >&2;}
8288 { (exit 1); exit 1; }; }
8290 esac
8291 aros_config_cflags="$aros_config_cflags -D$aros_target_cpu"
8292 aros_flavour="emulation"
8295 morphos*)
8296 aros_target_arch="morphos"
8297 aros_shared_default="no"
8298 aros_target_cpu="ppc"
8299 aros_object_format="elf_ppc"
8300 aros_flavour="nativecompat"
8301 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dppc"
8302 gcc_target_cpu="ppc"
8305 amiga*)
8306 aros_target_arch="amiga"
8307 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -D_AMIGA -DAMIGA"
8308 aros_shared_default="no"
8310 aros_config_cflags="$aros_config_cflags -fomit-frame-pointer -fbuiltin -ffreestanding"
8312 case "$target_cpu" in
8313 *m68k*)
8314 aros_target_cpu="m68k"
8315 aros_object_format="m68kelf"
8316 aros_flavour="nativecompat"
8317 gcc_target_cpu="mc68000"
8319 *ppc*)
8320 aros_cpu="ppc"
8321 aros_flavour="native"
8322 gcc_target_cpu="ppc"
8325 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Amiga $target_cpu\"" >&5
8326 echo "$as_me: error: \"Unknown CPU for Amiga $target_cpu\"" >&2;}
8327 { (exit 1); exit 1; }; }
8329 esac
8332 cygwin*)
8333 aros_target_arch="cygwin"
8334 aros_shared_default="no"
8335 case "$target_cpu" in
8336 *i?86*)
8337 aros_target_cpu="i386"
8338 aros_object_format="elf_i386"
8339 aros_flavour="emulation"
8340 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Di386 -D__CYGWIN32__"
8341 aros_shared_cflags=""
8342 aros_default_wbdepth=8
8343 gcc_target_cpu="i386"
8346 { { echo "$as_me:$LINENO: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&5
8347 echo "$as_me: error: \"Unknown CPU for CygWin -- $target_cpu\"" >&2;}
8348 { (exit 1); exit 1; }; }
8350 esac
8352 pp*)
8353 aros_target_arch="pp"
8354 aros_shared_default="no"
8355 case "$target_cpu" in
8356 *m68k*)
8357 aros_target_cpu="m68k"
8358 aros_object_format="m68kelf"
8359 aros_flavour="palmnative"
8360 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8361 aros_kernel_ldflags=""
8362 aros_default_wbwidth=160
8363 aros_default_wbheight=160
8364 aros_default_wbdepth=1
8365 aros_target_cc="m68k-elf-gcc -pipe"
8366 aros_target_ld="$(which m68k-elf-ld)"
8367 aros_target_as="m68k-elf-gcc -pipe"
8368 aros_shared_ld="m68k-elf-gcc"
8369 aros_kernel_ld="m68k-elf-gcc"
8370 aros_target_ar="m68k-elf-ar"
8371 aros_target_ar_flags="cru"
8372 aros_target_ranlib="m68k-elf-ranlib"
8373 aros_target_nm="m68k-elf-nm"
8374 aros_target_objcopy="m68k-elf-objcopy"
8375 aros_target_objdump="m68k-elf-objdump"
8376 aros_compiler_libs="-lgcc1"
8377 aros_shared_default=no
8378 aros_shared_cflags="-fpic"
8379 aros_shared_aflags=""
8380 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8381 aros_kernel_ldflags="-Wl,-rpath,./lib"
8382 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000 -Wa,-mc68000"
8383 aros_debug_aflags=""
8384 aros_debug_ldflags="$aros_symbols_debug"
8385 aros_mungwall_debug="0"
8386 aros_modules_debug="0"
8387 gcc_target_cpu="mc68000"
8388 ignore_undefined_symbols="-ius"
8391 { { echo "$as_me:$LINENO: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&5
8392 echo "$as_me: error: \"Unknown CPU for PalmPilot -- $target_cpu\"" >&2;}
8393 { (exit 1); exit 1; }; }
8395 esac
8398 mac*)
8399 aros_target_arch="mac"
8400 aros_shared_default="no"
8401 case "$target_cpu" in
8402 *m68k*)
8403 aros_target_cpu="m68k"
8404 aros_object_format="m68kelf"
8405 aros_flavour="mac68knative"
8406 aros_target_mkdep="$aros_target_mkdep -D__GNUC__ -Dm68k"
8407 aros_default_wbwidth=512
8408 aros_default_wbheight=384
8409 aros_default_wbdepth=8
8410 aros_target_cc="m68k-elf-gcc -pipe"
8411 aros_target_ld="$(which m68k-elf-ld)"
8412 aros_target_as="m68k-elf-gcc -pipe"
8413 aros_shared_ld="m68k-elf-gcc"
8414 aros_kernel_ld="m68k-elf-gcc"
8415 aros_target_ar="m68k-elf-ar"
8416 aros_target_ar_flags="cru"
8417 aros_target_ranlib="m68k-elf-ranlib"
8418 aros_target_nm="m68k-elf-nm"
8419 aros_target_objcopy="m68k-elf-objcopy"
8420 aros_target_objdump="m68k-elf-objdump"
8421 aros_compiler_libs="-lgcc1"
8422 aros_shared_default=no
8423 aros_shared_cflags="-fpic"
8424 aros_shared_aflags=""
8425 aros_shared_ldflags="-Wl,-rpath,./lib -shared"
8426 aros_kernel_ldflags="-Wl,-rpath,./lib"
8427 aros_debug_cflags="-Wall -Werror-implicit-function-declaration $aros_symbols_debug $aros_messages_debug -mc68000"
8428 aros_debug_aflags=""
8429 aros_debug_ldflags="$aros_symbols_debug"
8430 aros_mungwall_debug="0"
8431 aros_modules_debug="0"
8432 gcc_target_cpu="mc68000"
8433 ignore_undefined_symbols="-ius"
8436 { { echo "$as_me:$LINENO: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&5
8437 echo "$as_me: error: \"Unknown CPU for Mac68k -- $target_cpu\"" >&2;}
8438 { (exit 1); exit 1; }; }
8440 esac
8444 { { echo "$as_me:$LINENO: error: Unsupported target architecture $target" >&5
8445 echo "$as_me: error: Unsupported target architecture $target" >&2;}
8446 { (exit 1); exit 1; }; }
8448 esac
8451 # Find out if we are cross-compiling (ie. if we can't use the host compiler
8452 # for target code)
8453 cross_compiling=no
8454 if test "$aros_host_cpu" != "$aros_target_cpu" ; then
8455 cross_compiling=yes
8457 if test "$aros_host_arch" == "darwin" ; then
8458 cross_compiling=yes
8461 # Set prefix for target compiler etc. if we're cross-compiling
8462 # (should possibly be earlier but needs to be after AC_PROG_CC)
8463 if test "$cross_compiling" = "yes" ; then
8464 target_tool_prefix=${target_cpu}-elf-
8465 CC=${target_tool_prefix}gcc
8468 # Find all the tools we need to compile. This could be cross-compiling
8469 # though! If that is the case we use the GNU form of the target and
8470 # simply add this to the front of the binary name. This is rather simple,
8471 # but it should work under most circumstances.
8473 # The default tools are to use the same as the host, but only if the
8474 # host and target CPU are the same. With GCC this is normally enough.
8477 aros_cc_pre=""
8478 aros_shared_ld="$aros_host_ld"
8480 aros_target_mkdep="$aros_host_mkdep"
8481 aros_target_incl_def="$aros_host_incl"
8483 # Extract the first word of "$CC", so it can be a program name with args.
8484 set dummy $CC; ac_word=$2
8485 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8487 if test "${ac_cv_path_aros_kernel_cc+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 else
8490 case $aros_kernel_cc in
8491 [\\/]* | ?:[\\/]*)
8492 ac_cv_path_aros_kernel_cc="$aros_kernel_cc" # Let the user override the test with a path.
8495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 for as_dir in $PATH
8498 IFS=$as_save_IFS
8499 test -z "$as_dir" && as_dir=.
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8502 ac_cv_path_aros_kernel_cc="$as_dir/$ac_word$ac_exec_ext"
8503 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8504 break 2
8506 done
8507 done
8508 IFS=$as_save_IFS
8511 esac
8513 aros_kernel_cc=$ac_cv_path_aros_kernel_cc
8514 if test -n "$aros_kernel_cc"; then
8515 { echo "$as_me:$LINENO: result: $aros_kernel_cc" >&5
8516 echo "${ECHO_T}$aros_kernel_cc" >&6; }
8517 else
8518 { echo "$as_me:$LINENO: result: no" >&5
8519 echo "${ECHO_T}no" >&6; }
8524 # The default tools executables to be linked to.
8526 if test "$cross_compiling" = "yes" ; then
8527 # Extract the first word of "${target_tool_prefix}as", so it can be a program name with args.
8528 set dummy ${target_tool_prefix}as; ac_word=$2
8529 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8531 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8532 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 else
8534 case $aros_target_as_ln in
8535 [\\/]* | ?:[\\/]*)
8536 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 for as_dir in $PATH
8542 IFS=$as_save_IFS
8543 test -z "$as_dir" && as_dir=.
8544 for ac_exec_ext in '' $ac_executable_extensions; do
8545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8546 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8548 break 2
8550 done
8551 done
8552 IFS=$as_save_IFS
8555 esac
8557 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8558 if test -n "$aros_target_as_ln"; then
8559 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8560 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8561 else
8562 { echo "$as_me:$LINENO: result: no" >&5
8563 echo "${ECHO_T}no" >&6; }
8567 else
8568 if test "$GCC" = "yes"; then
8569 aros_gcc_as=`$CC -print-prog-name=as`
8570 # Extract the first word of "`basename $aros_gcc_[as]`", so it can be a program name with args.
8571 set dummy `basename $aros_gcc_as`; ac_word=$2
8572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8574 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8575 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 else
8577 case $aros_target_as_ln in
8578 [\\/]* | ?:[\\/]*)
8579 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 for as_dir in `dirname $aros_gcc_as`
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8589 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8590 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8591 break 2
8593 done
8594 done
8595 IFS=$as_save_IFS
8598 esac
8600 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8601 if test -n "$aros_target_as_ln"; then
8602 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8603 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8604 else
8605 { echo "$as_me:$LINENO: result: no" >&5
8606 echo "${ECHO_T}no" >&6; }
8611 if test "$aros_target_as_ln" = ""; then
8612 # Extract the first word of "as", so it can be a program name with args.
8613 set dummy as; ac_word=$2
8614 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8615 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8616 if test "${ac_cv_path_aros_target_as_ln+set}" = set; then
8617 echo $ECHO_N "(cached) $ECHO_C" >&6
8618 else
8619 case $aros_target_as_ln in
8620 [\\/]* | ?:[\\/]*)
8621 ac_cv_path_aros_target_as_ln="$aros_target_as_ln" # Let the user override the test with a path.
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8625 for as_dir in $PATH
8627 IFS=$as_save_IFS
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8631 ac_cv_path_aros_target_as_ln="$as_dir/$ac_word$ac_exec_ext"
8632 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8633 break 2
8635 done
8636 done
8637 IFS=$as_save_IFS
8640 esac
8642 aros_target_as_ln=$ac_cv_path_aros_target_as_ln
8643 if test -n "$aros_target_as_ln"; then
8644 { echo "$as_me:$LINENO: result: $aros_target_as_ln" >&5
8645 echo "${ECHO_T}$aros_target_as_ln" >&6; }
8646 else
8647 { echo "$as_me:$LINENO: result: no" >&5
8648 echo "${ECHO_T}no" >&6; }
8655 if test "$aros_target_as_ln" = ""; then
8656 { { echo "$as_me:$LINENO: error: as is required to build AROS. Please install and run configure again." >&5
8657 echo "$as_me: error: as is required to build AROS. Please install and run configure again." >&2;}
8658 { (exit 1); exit 1; }; }
8661 if test "$cross_compiling" = "yes" ; then
8662 # Extract the first word of "${target_tool_prefix}ld", so it can be a program name with args.
8663 set dummy ${target_tool_prefix}ld; ac_word=$2
8664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8666 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 else
8669 case $aros_kernel_ld in
8670 [\\/]* | ?:[\\/]*)
8671 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8675 for as_dir in $PATH
8677 IFS=$as_save_IFS
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8681 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8683 break 2
8685 done
8686 done
8687 IFS=$as_save_IFS
8690 esac
8692 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8693 if test -n "$aros_kernel_ld"; then
8694 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8695 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8696 else
8697 { echo "$as_me:$LINENO: result: no" >&5
8698 echo "${ECHO_T}no" >&6; }
8702 else
8703 if test "$GCC" = "yes"; then
8704 aros_gcc_ld=`$CC -print-prog-name=ld`
8705 # Extract the first word of "`basename $aros_gcc_[ld]`", so it can be a program name with args.
8706 set dummy `basename $aros_gcc_ld`; ac_word=$2
8707 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8709 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8710 echo $ECHO_N "(cached) $ECHO_C" >&6
8711 else
8712 case $aros_kernel_ld in
8713 [\\/]* | ?:[\\/]*)
8714 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 for as_dir in `dirname $aros_gcc_ld`
8720 IFS=$as_save_IFS
8721 test -z "$as_dir" && as_dir=.
8722 for ac_exec_ext in '' $ac_executable_extensions; do
8723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8724 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8726 break 2
8728 done
8729 done
8730 IFS=$as_save_IFS
8733 esac
8735 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8736 if test -n "$aros_kernel_ld"; then
8737 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8738 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8739 else
8740 { echo "$as_me:$LINENO: result: no" >&5
8741 echo "${ECHO_T}no" >&6; }
8746 if test "$aros_kernel_ld" = ""; then
8747 # Extract the first word of "ld", so it can be a program name with args.
8748 set dummy ld; ac_word=$2
8749 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8750 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8751 if test "${ac_cv_path_aros_kernel_ld+set}" = set; then
8752 echo $ECHO_N "(cached) $ECHO_C" >&6
8753 else
8754 case $aros_kernel_ld in
8755 [\\/]* | ?:[\\/]*)
8756 ac_cv_path_aros_kernel_ld="$aros_kernel_ld" # Let the user override the test with a path.
8759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8760 for as_dir in $PATH
8762 IFS=$as_save_IFS
8763 test -z "$as_dir" && as_dir=.
8764 for ac_exec_ext in '' $ac_executable_extensions; do
8765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8766 ac_cv_path_aros_kernel_ld="$as_dir/$ac_word$ac_exec_ext"
8767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8768 break 2
8770 done
8771 done
8772 IFS=$as_save_IFS
8775 esac
8777 aros_kernel_ld=$ac_cv_path_aros_kernel_ld
8778 if test -n "$aros_kernel_ld"; then
8779 { echo "$as_me:$LINENO: result: $aros_kernel_ld" >&5
8780 echo "${ECHO_T}$aros_kernel_ld" >&6; }
8781 else
8782 { echo "$as_me:$LINENO: result: no" >&5
8783 echo "${ECHO_T}no" >&6; }
8790 if test "$aros_kernel_ld" = ""; then
8791 { { echo "$as_me:$LINENO: error: ld is required to build AROS. Please install and run configure again." >&5
8792 echo "$as_me: error: ld is required to build AROS. Please install and run configure again." >&2;}
8793 { (exit 1); exit 1; }; }
8796 if test "$cross_compiling" = "yes" ; then
8797 # Extract the first word of "${target_tool_prefix}ar", so it can be a program name with args.
8798 set dummy ${target_tool_prefix}ar; ac_word=$2
8799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8801 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804 case $aros_target_ar_ln in
8805 [\\/]* | ?:[\\/]*)
8806 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8810 for as_dir in $PATH
8812 IFS=$as_save_IFS
8813 test -z "$as_dir" && as_dir=.
8814 for ac_exec_ext in '' $ac_executable_extensions; do
8815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8816 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8818 break 2
8820 done
8821 done
8822 IFS=$as_save_IFS
8825 esac
8827 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8828 if test -n "$aros_target_ar_ln"; then
8829 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8830 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8831 else
8832 { echo "$as_me:$LINENO: result: no" >&5
8833 echo "${ECHO_T}no" >&6; }
8837 else
8838 if test "$GCC" = "yes"; then
8839 aros_gcc_ar=`$CC -print-prog-name=ar`
8840 # Extract the first word of "`basename $aros_gcc_[ar]`", so it can be a program name with args.
8841 set dummy `basename $aros_gcc_ar`; ac_word=$2
8842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8844 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8845 echo $ECHO_N "(cached) $ECHO_C" >&6
8846 else
8847 case $aros_target_ar_ln in
8848 [\\/]* | ?:[\\/]*)
8849 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8853 for as_dir in `dirname $aros_gcc_ar`
8855 IFS=$as_save_IFS
8856 test -z "$as_dir" && as_dir=.
8857 for ac_exec_ext in '' $ac_executable_extensions; do
8858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8859 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 break 2
8863 done
8864 done
8865 IFS=$as_save_IFS
8868 esac
8870 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8871 if test -n "$aros_target_ar_ln"; then
8872 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8873 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8874 else
8875 { echo "$as_me:$LINENO: result: no" >&5
8876 echo "${ECHO_T}no" >&6; }
8881 if test "$aros_target_ar_ln" = ""; then
8882 # Extract the first word of "ar", so it can be a program name with args.
8883 set dummy ar; ac_word=$2
8884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8886 if test "${ac_cv_path_aros_target_ar_ln+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8888 else
8889 case $aros_target_ar_ln in
8890 [\\/]* | ?:[\\/]*)
8891 ac_cv_path_aros_target_ar_ln="$aros_target_ar_ln" # Let the user override the test with a path.
8894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895 for as_dir in $PATH
8897 IFS=$as_save_IFS
8898 test -z "$as_dir" && as_dir=.
8899 for ac_exec_ext in '' $ac_executable_extensions; do
8900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8901 ac_cv_path_aros_target_ar_ln="$as_dir/$ac_word$ac_exec_ext"
8902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8903 break 2
8905 done
8906 done
8907 IFS=$as_save_IFS
8910 esac
8912 aros_target_ar_ln=$ac_cv_path_aros_target_ar_ln
8913 if test -n "$aros_target_ar_ln"; then
8914 { echo "$as_me:$LINENO: result: $aros_target_ar_ln" >&5
8915 echo "${ECHO_T}$aros_target_ar_ln" >&6; }
8916 else
8917 { echo "$as_me:$LINENO: result: no" >&5
8918 echo "${ECHO_T}no" >&6; }
8925 if test "$aros_target_ar_ln" = ""; then
8926 { { echo "$as_me:$LINENO: error: ar is required to build AROS. Please install and run configure again." >&5
8927 echo "$as_me: error: ar is required to build AROS. Please install and run configure again." >&2;}
8928 { (exit 1); exit 1; }; }
8931 if test "$cross_compiling" = "yes" ; then
8932 # Extract the first word of "${target_tool_prefix}nm", so it can be a program name with args.
8933 set dummy ${target_tool_prefix}nm; ac_word=$2
8934 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8936 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8938 else
8939 case $aros_target_nm_ln in
8940 [\\/]* | ?:[\\/]*)
8941 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8951 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8955 done
8956 done
8957 IFS=$as_save_IFS
8960 esac
8962 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
8963 if test -n "$aros_target_nm_ln"; then
8964 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
8965 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
8966 else
8967 { echo "$as_me:$LINENO: result: no" >&5
8968 echo "${ECHO_T}no" >&6; }
8972 else
8973 if test "$GCC" = "yes"; then
8974 aros_gcc_nm=`$CC -print-prog-name=nm`
8975 # Extract the first word of "`basename $aros_gcc_[nm]`", so it can be a program name with args.
8976 set dummy `basename $aros_gcc_nm`; ac_word=$2
8977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8979 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8981 else
8982 case $aros_target_nm_ln in
8983 [\\/]* | ?:[\\/]*)
8984 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
8987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8988 for as_dir in `dirname $aros_gcc_nm`
8990 IFS=$as_save_IFS
8991 test -z "$as_dir" && as_dir=.
8992 for ac_exec_ext in '' $ac_executable_extensions; do
8993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8994 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
8995 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8996 break 2
8998 done
8999 done
9000 IFS=$as_save_IFS
9003 esac
9005 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9006 if test -n "$aros_target_nm_ln"; then
9007 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9008 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9009 else
9010 { echo "$as_me:$LINENO: result: no" >&5
9011 echo "${ECHO_T}no" >&6; }
9016 if test "$aros_target_nm_ln" = ""; then
9017 # Extract the first word of "nm", so it can be a program name with args.
9018 set dummy nm; ac_word=$2
9019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9021 if test "${ac_cv_path_aros_target_nm_ln+set}" = set; then
9022 echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024 case $aros_target_nm_ln in
9025 [\\/]* | ?:[\\/]*)
9026 ac_cv_path_aros_target_nm_ln="$aros_target_nm_ln" # Let the user override the test with a path.
9029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 for as_dir in $PATH
9032 IFS=$as_save_IFS
9033 test -z "$as_dir" && as_dir=.
9034 for ac_exec_ext in '' $ac_executable_extensions; do
9035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9036 ac_cv_path_aros_target_nm_ln="$as_dir/$ac_word$ac_exec_ext"
9037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9038 break 2
9040 done
9041 done
9042 IFS=$as_save_IFS
9045 esac
9047 aros_target_nm_ln=$ac_cv_path_aros_target_nm_ln
9048 if test -n "$aros_target_nm_ln"; then
9049 { echo "$as_me:$LINENO: result: $aros_target_nm_ln" >&5
9050 echo "${ECHO_T}$aros_target_nm_ln" >&6; }
9051 else
9052 { echo "$as_me:$LINENO: result: no" >&5
9053 echo "${ECHO_T}no" >&6; }
9060 if test "$aros_target_nm_ln" = ""; then
9061 { { echo "$as_me:$LINENO: error: nm is required to build AROS. Please install and run configure again." >&5
9062 echo "$as_me: error: nm is required to build AROS. Please install and run configure again." >&2;}
9063 { (exit 1); exit 1; }; }
9066 if test "$cross_compiling" = "yes" ; then
9067 # Extract the first word of "${target_tool_prefix}objcopy", so it can be a program name with args.
9068 set dummy ${target_tool_prefix}objcopy; ac_word=$2
9069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9071 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9072 echo $ECHO_N "(cached) $ECHO_C" >&6
9073 else
9074 case $aros_target_objcopy_ln in
9075 [\\/]* | ?:[\\/]*)
9076 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9080 for as_dir in $PATH
9082 IFS=$as_save_IFS
9083 test -z "$as_dir" && as_dir=.
9084 for ac_exec_ext in '' $ac_executable_extensions; do
9085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9086 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9088 break 2
9090 done
9091 done
9092 IFS=$as_save_IFS
9095 esac
9097 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9098 if test -n "$aros_target_objcopy_ln"; then
9099 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9100 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9101 else
9102 { echo "$as_me:$LINENO: result: no" >&5
9103 echo "${ECHO_T}no" >&6; }
9107 else
9108 if test "$GCC" = "yes"; then
9109 aros_gcc_objcopy=`$CC -print-prog-name=objcopy`
9110 # Extract the first word of "`basename $aros_gcc_[objcopy]`", so it can be a program name with args.
9111 set dummy `basename $aros_gcc_objcopy`; ac_word=$2
9112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9114 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9115 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117 case $aros_target_objcopy_ln in
9118 [\\/]* | ?:[\\/]*)
9119 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123 for as_dir in `dirname $aros_gcc_objcopy`
9125 IFS=$as_save_IFS
9126 test -z "$as_dir" && as_dir=.
9127 for ac_exec_ext in '' $ac_executable_extensions; do
9128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9129 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9130 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9131 break 2
9133 done
9134 done
9135 IFS=$as_save_IFS
9138 esac
9140 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9141 if test -n "$aros_target_objcopy_ln"; then
9142 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9143 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9144 else
9145 { echo "$as_me:$LINENO: result: no" >&5
9146 echo "${ECHO_T}no" >&6; }
9151 if test "$aros_target_objcopy_ln" = ""; then
9152 # Extract the first word of "objcopy", so it can be a program name with args.
9153 set dummy objcopy; ac_word=$2
9154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9156 if test "${ac_cv_path_aros_target_objcopy_ln+set}" = set; then
9157 echo $ECHO_N "(cached) $ECHO_C" >&6
9158 else
9159 case $aros_target_objcopy_ln in
9160 [\\/]* | ?:[\\/]*)
9161 ac_cv_path_aros_target_objcopy_ln="$aros_target_objcopy_ln" # Let the user override the test with a path.
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9171 ac_cv_path_aros_target_objcopy_ln="$as_dir/$ac_word$ac_exec_ext"
9172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 break 2
9175 done
9176 done
9177 IFS=$as_save_IFS
9180 esac
9182 aros_target_objcopy_ln=$ac_cv_path_aros_target_objcopy_ln
9183 if test -n "$aros_target_objcopy_ln"; then
9184 { echo "$as_me:$LINENO: result: $aros_target_objcopy_ln" >&5
9185 echo "${ECHO_T}$aros_target_objcopy_ln" >&6; }
9186 else
9187 { echo "$as_me:$LINENO: result: no" >&5
9188 echo "${ECHO_T}no" >&6; }
9195 if test "$aros_target_objcopy_ln" = ""; then
9196 { { echo "$as_me:$LINENO: error: objcopy is required to build AROS. Please install and run configure again." >&5
9197 echo "$as_me: error: objcopy is required to build AROS. Please install and run configure again." >&2;}
9198 { (exit 1); exit 1; }; }
9201 if test "$cross_compiling" = "yes" ; then
9202 # Extract the first word of "${target_tool_prefix}objdump", so it can be a program name with args.
9203 set dummy ${target_tool_prefix}objdump; ac_word=$2
9204 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9205 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9206 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9207 echo $ECHO_N "(cached) $ECHO_C" >&6
9208 else
9209 case $aros_target_objdump_ln in
9210 [\\/]* | ?:[\\/]*)
9211 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9215 for as_dir in $PATH
9217 IFS=$as_save_IFS
9218 test -z "$as_dir" && as_dir=.
9219 for ac_exec_ext in '' $ac_executable_extensions; do
9220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9221 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9223 break 2
9225 done
9226 done
9227 IFS=$as_save_IFS
9230 esac
9232 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9233 if test -n "$aros_target_objdump_ln"; then
9234 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9235 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9236 else
9237 { echo "$as_me:$LINENO: result: no" >&5
9238 echo "${ECHO_T}no" >&6; }
9242 else
9243 if test "$GCC" = "yes"; then
9244 aros_gcc_objdump=`$CC -print-prog-name=objdump`
9245 # Extract the first word of "`basename $aros_gcc_[objdump]`", so it can be a program name with args.
9246 set dummy `basename $aros_gcc_objdump`; ac_word=$2
9247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9249 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9250 echo $ECHO_N "(cached) $ECHO_C" >&6
9251 else
9252 case $aros_target_objdump_ln in
9253 [\\/]* | ?:[\\/]*)
9254 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9258 for as_dir in `dirname $aros_gcc_objdump`
9260 IFS=$as_save_IFS
9261 test -z "$as_dir" && as_dir=.
9262 for ac_exec_ext in '' $ac_executable_extensions; do
9263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9264 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9266 break 2
9268 done
9269 done
9270 IFS=$as_save_IFS
9273 esac
9275 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9276 if test -n "$aros_target_objdump_ln"; then
9277 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9278 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9279 else
9280 { echo "$as_me:$LINENO: result: no" >&5
9281 echo "${ECHO_T}no" >&6; }
9286 if test "$aros_target_objdump_ln" = ""; then
9287 # Extract the first word of "objdump", so it can be a program name with args.
9288 set dummy objdump; ac_word=$2
9289 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9291 if test "${ac_cv_path_aros_target_objdump_ln+set}" = set; then
9292 echo $ECHO_N "(cached) $ECHO_C" >&6
9293 else
9294 case $aros_target_objdump_ln in
9295 [\\/]* | ?:[\\/]*)
9296 ac_cv_path_aros_target_objdump_ln="$aros_target_objdump_ln" # Let the user override the test with a path.
9299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9300 for as_dir in $PATH
9302 IFS=$as_save_IFS
9303 test -z "$as_dir" && as_dir=.
9304 for ac_exec_ext in '' $ac_executable_extensions; do
9305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9306 ac_cv_path_aros_target_objdump_ln="$as_dir/$ac_word$ac_exec_ext"
9307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9308 break 2
9310 done
9311 done
9312 IFS=$as_save_IFS
9315 esac
9317 aros_target_objdump_ln=$ac_cv_path_aros_target_objdump_ln
9318 if test -n "$aros_target_objdump_ln"; then
9319 { echo "$as_me:$LINENO: result: $aros_target_objdump_ln" >&5
9320 echo "${ECHO_T}$aros_target_objdump_ln" >&6; }
9321 else
9322 { echo "$as_me:$LINENO: result: no" >&5
9323 echo "${ECHO_T}no" >&6; }
9330 if test "$aros_target_objdump_ln" = ""; then
9331 { { echo "$as_me:$LINENO: error: objdump is required to build AROS. Please install and run configure again." >&5
9332 echo "$as_me: error: objdump is required to build AROS. Please install and run configure again." >&2;}
9333 { (exit 1); exit 1; }; }
9336 if test "$cross_compiling" = "yes" ; then
9337 # Extract the first word of "${target_tool_prefix}ranlib", so it can be a program name with args.
9338 set dummy ${target_tool_prefix}ranlib; ac_word=$2
9339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9341 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9342 echo $ECHO_N "(cached) $ECHO_C" >&6
9343 else
9344 case $aros_target_ranlib_ln in
9345 [\\/]* | ?:[\\/]*)
9346 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9350 for as_dir in $PATH
9352 IFS=$as_save_IFS
9353 test -z "$as_dir" && as_dir=.
9354 for ac_exec_ext in '' $ac_executable_extensions; do
9355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9356 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9358 break 2
9360 done
9361 done
9362 IFS=$as_save_IFS
9365 esac
9367 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9368 if test -n "$aros_target_ranlib_ln"; then
9369 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9370 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9371 else
9372 { echo "$as_me:$LINENO: result: no" >&5
9373 echo "${ECHO_T}no" >&6; }
9377 else
9378 if test "$GCC" = "yes"; then
9379 aros_gcc_ranlib=`$CC -print-prog-name=ranlib`
9380 # Extract the first word of "`basename $aros_gcc_[ranlib]`", so it can be a program name with args.
9381 set dummy `basename $aros_gcc_ranlib`; ac_word=$2
9382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9384 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9385 echo $ECHO_N "(cached) $ECHO_C" >&6
9386 else
9387 case $aros_target_ranlib_ln in
9388 [\\/]* | ?:[\\/]*)
9389 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9393 for as_dir in `dirname $aros_gcc_ranlib`
9395 IFS=$as_save_IFS
9396 test -z "$as_dir" && as_dir=.
9397 for ac_exec_ext in '' $ac_executable_extensions; do
9398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9399 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9401 break 2
9403 done
9404 done
9405 IFS=$as_save_IFS
9408 esac
9410 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9411 if test -n "$aros_target_ranlib_ln"; then
9412 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9413 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9414 else
9415 { echo "$as_me:$LINENO: result: no" >&5
9416 echo "${ECHO_T}no" >&6; }
9421 if test "$aros_target_ranlib_ln" = ""; then
9422 # Extract the first word of "ranlib", so it can be a program name with args.
9423 set dummy ranlib; ac_word=$2
9424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9426 if test "${ac_cv_path_aros_target_ranlib_ln+set}" = set; then
9427 echo $ECHO_N "(cached) $ECHO_C" >&6
9428 else
9429 case $aros_target_ranlib_ln in
9430 [\\/]* | ?:[\\/]*)
9431 ac_cv_path_aros_target_ranlib_ln="$aros_target_ranlib_ln" # Let the user override the test with a path.
9434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9435 for as_dir in $PATH
9437 IFS=$as_save_IFS
9438 test -z "$as_dir" && as_dir=.
9439 for ac_exec_ext in '' $ac_executable_extensions; do
9440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9441 ac_cv_path_aros_target_ranlib_ln="$as_dir/$ac_word$ac_exec_ext"
9442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9443 break 2
9445 done
9446 done
9447 IFS=$as_save_IFS
9450 esac
9452 aros_target_ranlib_ln=$ac_cv_path_aros_target_ranlib_ln
9453 if test -n "$aros_target_ranlib_ln"; then
9454 { echo "$as_me:$LINENO: result: $aros_target_ranlib_ln" >&5
9455 echo "${ECHO_T}$aros_target_ranlib_ln" >&6; }
9456 else
9457 { echo "$as_me:$LINENO: result: no" >&5
9458 echo "${ECHO_T}no" >&6; }
9465 if test "$aros_target_ranlib_ln" = ""; then
9466 { { echo "$as_me:$LINENO: error: ranlib is required to build AROS. Please install and run configure again." >&5
9467 echo "$as_me: error: ranlib is required to build AROS. Please install and run configure again." >&2;}
9468 { (exit 1); exit 1; }; }
9471 if test "$cross_compiling" = "yes" ; then
9472 # Extract the first word of "${target_tool_prefix}strip", so it can be a program name with args.
9473 set dummy ${target_tool_prefix}strip; ac_word=$2
9474 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9475 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9476 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9477 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 else
9479 case $aros_target_strip_ln in
9480 [\\/]* | ?:[\\/]*)
9481 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9485 for as_dir in $PATH
9487 IFS=$as_save_IFS
9488 test -z "$as_dir" && as_dir=.
9489 for ac_exec_ext in '' $ac_executable_extensions; do
9490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9491 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9492 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9493 break 2
9495 done
9496 done
9497 IFS=$as_save_IFS
9500 esac
9502 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9503 if test -n "$aros_target_strip_ln"; then
9504 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9505 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9506 else
9507 { echo "$as_me:$LINENO: result: no" >&5
9508 echo "${ECHO_T}no" >&6; }
9512 else
9513 if test "$GCC" = "yes"; then
9514 aros_gcc_strip=`$CC -print-prog-name=strip`
9515 # Extract the first word of "`basename $aros_gcc_[strip]`", so it can be a program name with args.
9516 set dummy `basename $aros_gcc_strip`; ac_word=$2
9517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9519 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9520 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 else
9522 case $aros_target_strip_ln in
9523 [\\/]* | ?:[\\/]*)
9524 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9528 for as_dir in `dirname $aros_gcc_strip`
9530 IFS=$as_save_IFS
9531 test -z "$as_dir" && as_dir=.
9532 for ac_exec_ext in '' $ac_executable_extensions; do
9533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9534 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9536 break 2
9538 done
9539 done
9540 IFS=$as_save_IFS
9543 esac
9545 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9546 if test -n "$aros_target_strip_ln"; then
9547 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9548 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9549 else
9550 { echo "$as_me:$LINENO: result: no" >&5
9551 echo "${ECHO_T}no" >&6; }
9556 if test "$aros_target_strip_ln" = ""; then
9557 # Extract the first word of "strip", so it can be a program name with args.
9558 set dummy strip; ac_word=$2
9559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9561 if test "${ac_cv_path_aros_target_strip_ln+set}" = set; then
9562 echo $ECHO_N "(cached) $ECHO_C" >&6
9563 else
9564 case $aros_target_strip_ln in
9565 [\\/]* | ?:[\\/]*)
9566 ac_cv_path_aros_target_strip_ln="$aros_target_strip_ln" # Let the user override the test with a path.
9569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570 for as_dir in $PATH
9572 IFS=$as_save_IFS
9573 test -z "$as_dir" && as_dir=.
9574 for ac_exec_ext in '' $ac_executable_extensions; do
9575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9576 ac_cv_path_aros_target_strip_ln="$as_dir/$ac_word$ac_exec_ext"
9577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9578 break 2
9580 done
9581 done
9582 IFS=$as_save_IFS
9585 esac
9587 aros_target_strip_ln=$ac_cv_path_aros_target_strip_ln
9588 if test -n "$aros_target_strip_ln"; then
9589 { echo "$as_me:$LINENO: result: $aros_target_strip_ln" >&5
9590 echo "${ECHO_T}$aros_target_strip_ln" >&6; }
9591 else
9592 { echo "$as_me:$LINENO: result: no" >&5
9593 echo "${ECHO_T}no" >&6; }
9600 if test "$aros_target_strip_ln" = ""; then
9601 { { echo "$as_me:$LINENO: error: strip is required to build AROS. Please install and run configure again." >&5
9602 echo "$as_me: error: strip is required to build AROS. Please install and run configure again." >&2;}
9603 { (exit 1); exit 1; }; }
9606 if test "$GCC" = "yes"; then
9607 aros_target_cc_path=`$aros_kernel_cc -print-search-dirs | grep "programs: =" | cut -c 12-`
9610 aros_hostcfg_dir="bin/${aros_host_arch}-${aros_host_cpu}/gen/config"
9611 aros_targetcfg_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/config"
9612 aros_inc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/AROS/Development/include/aros"
9613 aros_gendir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen"
9614 aros_geninc_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/include/aros"
9615 aros_tools_dir="bin/${aros_host_arch}-${aros_host_cpu}/tools"
9616 aros_scripts_dir="bin/${aros_target_arch}-${aros_target_cpu}${aros_target_suffix}/gen/scripts"
9618 # aros_cc_pre is a variable that is added to the front of the compiler name
9619 # in the generated aros-gcc shell script. We need this to enable the cache
9620 # to work across cleaned builds. Also, support DISTCC using the correct
9621 # environment variable.
9624 if test "x${DISTCC}" != "x" ; then
9625 if test "x${CCACHE}" != "x" ; then
9626 aros_cc_pre="env CCACHE_PREFIX=${DISTCC} ${CCACHE} "
9627 else
9628 aros_cc_pre="${DISTCC} "
9630 else
9631 if test "x${CCACHE}" != "x" ; then
9632 aros_cc_pre="${CCACHE} "
9636 prefix="${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros"
9638 aros_target_nostdinc_cflags=-nostdinc
9640 aros_target_nostartup_ldflags=-nostartfiles
9642 aros_target_nix_ldflags=-nix
9644 aros_target_detach_ldflags=-detach
9646 aros_target_nostdlib_ldflags=-nostdlib
9649 # Target tools
9650 aros_target_cc="${prefix}-gcc"
9651 aros_target_as="${prefix}-as"
9652 aros_target_ld="${prefix}-ld"
9653 aros_target_ar="${prefix}-ar $aros_target_ar_flags"
9654 aros_target_objcopy=${prefix}-objcopy
9655 aros_target_objdump=${prefix}-objdump
9656 aros_target_ranlib="${prefix}-ranlib $aros_target_ranlib_flags"
9657 aros_target_nm="${prefix}-nm $aros_target_nm_flags"
9658 aros_kernel_nm="${prefix}-nm"
9659 aros_target_strip=${prefix}-strip
9662 # Find the system include path. We can suggest that an alternative is
9663 # used if we don't get it correct. The default is to use /usr/include.
9664 # Which is set in the aros_target_incl_def variable.
9666 # Check whether --enable-includes was given.
9667 if test "${enable_includes+set}" = set; then
9668 enableval=$enable_includes; aros_target_incl=$enable_includes
9669 else
9670 aros_target_incl=$aros_target_incl_def
9674 { echo "$as_me:$LINENO: checking for the target compiler's include path" >&5
9675 echo $ECHO_N "checking for the target compiler's include path... $ECHO_C" >&6; }
9676 if test "$aros_target_cc_includes" = "" ; then
9677 #try to guess where the directory is
9678 aros_target_cc_includes=`dirname \`${aros_kernel_cc} -print-libgcc-file-name\``/include
9679 if ! test -d $aros_target_cc_includes; then
9680 #the directory doesn't exist, we need to do some more work
9681 aros_target_cc_includes=${PWD}/${aros_gendir}/cc_include
9683 #these are the headers we're looling for
9684 headers="limits.h mmintrin.h stdbool.h syslimits.h float.h \
9685 stddef.h xmmintrin.h iso646.h stdarg.h unwind.h \
9686 zutil.h"
9688 dirs=
9689 for h in $headers; do
9690 #which other headers each of the above headers needs?
9691 deps=$(echo "#include <$h>" | \
9692 $aros_host_cc -E -M - 2>/dev/null | \
9693 sed 's/^.*://; s/\\$/ /g; s/[ \t]\+/ /g')
9695 #copy all the needed headers to a directory beneath gendir
9696 for d in $deps; do
9697 h=$(basename $d)
9698 dir=${aros_target_cc_includes}$(echo $(dirname $d) | \
9699 sed -n "s,^.*/include\(/.*\),\1,p")
9700 ! test -d $dir && mkdir -p $dir
9701 ! test -f $dir/$h && { cp $d $dir; chmod u+w $dir/$h; }
9702 done
9703 done
9706 { echo "$as_me:$LINENO: result: $aros_target_cc_includes" >&5
9707 echo "${ECHO_T}$aros_target_cc_includes" >&6; }
9709 { echo "$as_me:$LINENO: checking for default resolution of WBScreen" >&5
9710 echo $ECHO_N "checking for default resolution of WBScreen... $ECHO_C" >&6; }
9712 # Check whether --with-resolution was given.
9713 if test "${with_resolution+set}" = set; then
9714 withval=$with_resolution; resolution=$withval
9715 else
9716 resolution=none
9719 # We require an argument, so map --with/--without ("yes"/"no") to "none" specified
9720 if test "$resolution" = "yes" ; then
9721 resolution="none"
9723 if test "$resolution" = "no" ; then
9724 resolution="none"
9726 if test "$resolution" != "none" ; then
9727 aros_default_wbwidth=`echo $resolution | cut -d'x' -f1`
9728 aros_default_wbheight=`echo $resolution | cut -d'x' -f2`
9729 aros_default_wbdepth=`echo $resolution | cut -d'x' -f3`
9731 { echo "$as_me:$LINENO: result: $aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&5
9732 echo "${ECHO_T}$aros_default_wbwidth x $aros_default_wbheight x $aros_default_wbdepth" >&6; }
9733 aros_cv_default_wbwidth=$aros_default_wbwidth
9734 aros_cv_default_wbheight=$aros_default_wbheight
9735 aros_cv_default_wbdepth=$aros_default_wbdepth
9737 { echo "$as_me:$LINENO: checking if bochs hack is enabled" >&5
9738 echo $ECHO_N "checking if bochs hack is enabled... $ECHO_C" >&6; }
9739 # Check whether --enable-bochs_hack was given.
9740 if test "${enable_bochs_hack+set}" = set; then
9741 enableval=$enable_bochs_hack; bochs_hack="yes"
9742 else
9743 bochs_hack="no"
9746 if test "$bochs_hack" = "yes" ; then
9747 aros_bochs_hack="1"
9749 { echo "$as_me:$LINENO: result: $bochs_hack" >&5
9750 echo "${ECHO_T}$bochs_hack" >&6; }
9752 { echo "$as_me:$LINENO: checking if serial debug is enabled" >&5
9753 echo $ECHO_N "checking if serial debug is enabled... $ECHO_C" >&6; }
9755 # Check whether --with-serial-debug was given.
9756 if test "${with_serial_debug+set}" = set; then
9757 withval=$with_serial_debug; serial_debug=$withval
9758 else
9759 serial_debug=none
9762 if test "$serial_debug" = "yes" ; then
9763 serial_debug="2"
9765 if test "$serial_debug" = "no" ; then
9766 serial_debug="none"
9768 if test "$serial_debug" != "none" ; then
9769 aros_serial_debug=$serial_debug
9770 { echo "$as_me:$LINENO: result: on port $serial_debug" >&5
9771 echo "${ECHO_T}on port $serial_debug" >&6; }
9772 else
9773 { echo "$as_me:$LINENO: result: no" >&5
9774 echo "${ECHO_T}no" >&6; }
9777 { echo "$as_me:$LINENO: checking if palm debug hack is enabled" >&5
9778 echo $ECHO_N "checking if palm debug hack is enabled... $ECHO_C" >&6; }
9779 # Check whether --enable-palm_debug_hack was given.
9780 if test "${enable_palm_debug_hack+set}" = set; then
9781 enableval=$enable_palm_debug_hack; palm_debug_hack="yes"
9782 else
9783 palm_debug_hack="no"
9786 if test "$palm_debug_hack" = "yes" ; then
9787 aros_palm_debug_hack="1"
9789 { echo "$as_me:$LINENO: result: $palm_debug_hack" >&5
9790 echo "${ECHO_T}$palm_debug_hack" >&6; }
9793 { echo "$as_me:$LINENO: checking if nesting supervisor support is enabled" >&5
9794 echo $ECHO_N "checking if nesting supervisor support is enabled... $ECHO_C" >&6; }
9795 # Check whether --enable-nesting_supervisor was given.
9796 if test "${enable_nesting_supervisor+set}" = set; then
9797 enableval=$enable_nesting_supervisor; nesting_supervisor="yes"
9798 else
9799 nesting_supervisor="no"
9802 if test "$nesting_supervisor" = "yes" ; then
9803 aros_nesting_supervisor="1"
9805 { echo "$as_me:$LINENO: result: $nesting_supervisor" >&5
9806 echo "${ECHO_T}$nesting_supervisor" >&6; }
9809 if test "x-$aros_flavour" = "x-emulation" -o "x-$aros_flavour" = "x-emulcompat" ; then
9811 { echo "$as_me:$LINENO: checking for dlopen" >&5
9812 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9813 if test "${ac_cv_func_dlopen+set}" = set; then
9814 echo $ECHO_N "(cached) $ECHO_C" >&6
9815 else
9816 cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h. */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h. */
9822 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9823 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9824 #define dlopen innocuous_dlopen
9826 /* System header to define __stub macros and hopefully few prototypes,
9827 which can conflict with char dlopen (); below.
9828 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9829 <limits.h> exists even on freestanding compilers. */
9831 #ifdef __STDC__
9832 # include <limits.h>
9833 #else
9834 # include <assert.h>
9835 #endif
9837 #undef dlopen
9839 /* Override any GCC internal prototype to avoid an error.
9840 Use char because int might match the return type of a GCC
9841 builtin and then its argument prototype would still apply. */
9842 #ifdef __cplusplus
9843 extern "C"
9844 #endif
9845 char dlopen ();
9846 /* The GNU C library defines this for functions which it implements
9847 to always fail with ENOSYS. Some functions are actually named
9848 something starting with __ and the normal name is an alias. */
9849 #if defined __stub_dlopen || defined __stub___dlopen
9850 choke me
9851 #endif
9854 main ()
9856 return dlopen ();
9858 return 0;
9860 _ACEOF
9861 rm -f conftest.$ac_objext conftest$ac_exeext
9862 if { (ac_try="$ac_link"
9863 case "(($ac_try" in
9864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9866 esac
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_link") 2>conftest.er1
9869 ac_status=$?
9870 grep -v '^ *+' conftest.er1 >conftest.err
9871 rm -f conftest.er1
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } && {
9875 test -z "$ac_c_werror_flag" ||
9876 test ! -s conftest.err
9877 } && test -s conftest$ac_exeext &&
9878 $as_test_x conftest$ac_exeext; then
9879 ac_cv_func_dlopen=yes
9880 else
9881 echo "$as_me: failed program was:" >&5
9882 sed 's/^/| /' conftest.$ac_ext >&5
9884 ac_cv_func_dlopen=no
9887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9888 conftest$ac_exeext conftest.$ac_ext
9890 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9891 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9892 if test $ac_cv_func_dlopen = yes; then
9893 have_dl="yes"
9894 else
9895 have_dl="no"
9898 if test "x-$have_dl" = "x-no" ; then
9899 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9900 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9901 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 else
9904 ac_check_lib_save_LIBS=$LIBS
9905 LIBS="-ldl $LIBS"
9906 cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h. */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h. */
9913 /* Override any GCC internal prototype to avoid an error.
9914 Use char because int might match the return type of a GCC
9915 builtin and then its argument prototype would still apply. */
9916 #ifdef __cplusplus
9917 extern "C"
9918 #endif
9919 char dlopen ();
9921 main ()
9923 return dlopen ();
9925 return 0;
9927 _ACEOF
9928 rm -f conftest.$ac_objext conftest$ac_exeext
9929 if { (ac_try="$ac_link"
9930 case "(($ac_try" in
9931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9932 *) ac_try_echo=$ac_try;;
9933 esac
9934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9935 (eval "$ac_link") 2>conftest.er1
9936 ac_status=$?
9937 grep -v '^ *+' conftest.er1 >conftest.err
9938 rm -f conftest.er1
9939 cat conftest.err >&5
9940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9941 (exit $ac_status); } && {
9942 test -z "$ac_c_werror_flag" ||
9943 test ! -s conftest.err
9944 } && test -s conftest$ac_exeext &&
9945 $as_test_x conftest$ac_exeext; then
9946 ac_cv_lib_dl_dlopen=yes
9947 else
9948 echo "$as_me: failed program was:" >&5
9949 sed 's/^/| /' conftest.$ac_ext >&5
9951 ac_cv_lib_dl_dlopen=no
9954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9955 conftest$ac_exeext conftest.$ac_ext
9956 LIBS=$ac_check_lib_save_LIBS
9958 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9959 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9960 if test $ac_cv_lib_dl_dlopen = yes; then
9961 have_dl="yes"
9962 aros_host_ldflags="$aros_host_ldflags -ldl"
9963 else
9964 have_dl="no"
9968 if test "x-$have_dl" = "x-no" ; then
9969 { { echo "$as_me:$LINENO: error: dlopen() dynamic linker functions not available" >&5
9970 echo "$as_me: error: dlopen() dynamic linker functions not available" >&2;}
9971 { (exit 1); exit 1; }; }
9975 # Check whether --enable-x11_hidd was given.
9976 if test "${enable_x11_hidd+set}" = set; then
9977 enableval=$enable_x11_hidd; x11_hidd="$enableval"
9978 else
9979 x11_hidd="auto"
9982 case "x-$x11_hidd" in
9983 x-yes|x-no|x-auto) ;;
9984 *) x11_hidd="auto" ;;
9985 esac
9987 if test "x-$x11_hidd" != "x-no" ; then
9989 { echo "$as_me:$LINENO: checking for X" >&5
9990 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9993 # Check whether --with-x was given.
9994 if test "${with_x+set}" = set; then
9995 withval=$with_x;
9998 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9999 if test "x$with_x" = xno; then
10000 # The user explicitly disabled X.
10001 have_x=disabled
10002 else
10003 case $x_includes,$x_libraries in #(
10004 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
10005 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
10006 { (exit 1); exit 1; }; };; #(
10007 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
10008 echo $ECHO_N "(cached) $ECHO_C" >&6
10009 else
10010 # One or both of the vars are not set, and there is no cached value.
10011 ac_x_includes=no ac_x_libraries=no
10012 rm -f -r conftest.dir
10013 if mkdir conftest.dir; then
10014 cd conftest.dir
10015 cat >Imakefile <<'_ACEOF'
10016 incroot:
10017 @echo incroot='${INCROOT}'
10018 usrlibdir:
10019 @echo usrlibdir='${USRLIBDIR}'
10020 libdir:
10021 @echo libdir='${LIBDIR}'
10022 _ACEOF
10023 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
10024 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10025 for ac_var in incroot usrlibdir libdir; do
10026 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
10027 done
10028 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
10029 for ac_extension in a so sl; do
10030 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
10031 test -f "$ac_im_libdir/libX11.$ac_extension"; then
10032 ac_im_usrlibdir=$ac_im_libdir; break
10034 done
10035 # Screen out bogus values from the imake configuration. They are
10036 # bogus both because they are the default anyway, and because
10037 # using them would break gcc on systems where it needs fixed includes.
10038 case $ac_im_incroot in
10039 /usr/include) ac_x_includes= ;;
10040 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
10041 esac
10042 case $ac_im_usrlibdir in
10043 /usr/lib | /lib) ;;
10044 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
10045 esac
10047 cd ..
10048 rm -f -r conftest.dir
10051 # Standard set of common directories for X headers.
10052 # Check X11 before X11Rn because it is often a symlink to the current release.
10053 ac_x_header_dirs='
10054 /usr/X11/include
10055 /usr/X11R6/include
10056 /usr/X11R5/include
10057 /usr/X11R4/include
10059 /usr/include/X11
10060 /usr/include/X11R6
10061 /usr/include/X11R5
10062 /usr/include/X11R4
10064 /usr/local/X11/include
10065 /usr/local/X11R6/include
10066 /usr/local/X11R5/include
10067 /usr/local/X11R4/include
10069 /usr/local/include/X11
10070 /usr/local/include/X11R6
10071 /usr/local/include/X11R5
10072 /usr/local/include/X11R4
10074 /usr/X386/include
10075 /usr/x386/include
10076 /usr/XFree86/include/X11
10078 /usr/include
10079 /usr/local/include
10080 /usr/unsupported/include
10081 /usr/athena/include
10082 /usr/local/x11r5/include
10083 /usr/lpp/Xamples/include
10085 /usr/openwin/include
10086 /usr/openwin/share/include'
10088 if test "$ac_x_includes" = no; then
10089 # Guess where to find include files, by looking for Xlib.h.
10090 # First, try using that file with no special directory specified.
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h. */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10097 #include <X11/Xlib.h>
10098 _ACEOF
10099 if { (ac_try="$ac_cpp conftest.$ac_ext"
10100 case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10106 ac_status=$?
10107 grep -v '^ *+' conftest.er1 >conftest.err
10108 rm -f conftest.er1
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } >/dev/null && {
10112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10113 test ! -s conftest.err
10114 }; then
10115 # We can compile using X headers with no special include directory.
10116 ac_x_includes=
10117 else
10118 echo "$as_me: failed program was:" >&5
10119 sed 's/^/| /' conftest.$ac_ext >&5
10121 for ac_dir in $ac_x_header_dirs; do
10122 if test -r "$ac_dir/X11/Xlib.h"; then
10123 ac_x_includes=$ac_dir
10124 break
10126 done
10129 rm -f conftest.err conftest.$ac_ext
10130 fi # $ac_x_includes = no
10132 if test "$ac_x_libraries" = no; then
10133 # Check for the libraries.
10134 # See if we find them without any special options.
10135 # Don't add to $LIBS permanently.
10136 ac_save_LIBS=$LIBS
10137 LIBS="-lX11 $LIBS"
10138 cat >conftest.$ac_ext <<_ACEOF
10139 /* confdefs.h. */
10140 _ACEOF
10141 cat confdefs.h >>conftest.$ac_ext
10142 cat >>conftest.$ac_ext <<_ACEOF
10143 /* end confdefs.h. */
10144 #include <X11/Xlib.h>
10146 main ()
10148 XrmInitialize ()
10150 return 0;
10152 _ACEOF
10153 rm -f conftest.$ac_objext conftest$ac_exeext
10154 if { (ac_try="$ac_link"
10155 case "(($ac_try" in
10156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10157 *) ac_try_echo=$ac_try;;
10158 esac
10159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10160 (eval "$ac_link") 2>conftest.er1
10161 ac_status=$?
10162 grep -v '^ *+' conftest.er1 >conftest.err
10163 rm -f conftest.er1
10164 cat conftest.err >&5
10165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10166 (exit $ac_status); } && {
10167 test -z "$ac_c_werror_flag" ||
10168 test ! -s conftest.err
10169 } && test -s conftest$ac_exeext &&
10170 $as_test_x conftest$ac_exeext; then
10171 LIBS=$ac_save_LIBS
10172 # We can link X programs with no special library path.
10173 ac_x_libraries=
10174 else
10175 echo "$as_me: failed program was:" >&5
10176 sed 's/^/| /' conftest.$ac_ext >&5
10178 LIBS=$ac_save_LIBS
10179 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10181 # Don't even attempt the hair of trying to link an X program!
10182 for ac_extension in a so sl; do
10183 if test -r "$ac_dir/libX11.$ac_extension"; then
10184 ac_x_libraries=$ac_dir
10185 break 2
10187 done
10188 done
10191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10192 conftest$ac_exeext conftest.$ac_ext
10193 fi # $ac_x_libraries = no
10195 case $ac_x_includes,$ac_x_libraries in #(
10196 no,* | *,no | *\'*)
10197 # Didn't find X, or a directory has "'" in its name.
10198 ac_cv_have_x="have_x=no";; #(
10200 # Record where we found X for the cache.
10201 ac_cv_have_x="have_x=yes\
10202 ac_x_includes='$ac_x_includes'\
10203 ac_x_libraries='$ac_x_libraries'"
10204 esac
10206 ;; #(
10207 *) have_x=yes;;
10208 esac
10209 eval "$ac_cv_have_x"
10210 fi # $with_x != no
10212 if test "$have_x" != yes; then
10213 { echo "$as_me:$LINENO: result: $have_x" >&5
10214 echo "${ECHO_T}$have_x" >&6; }
10215 no_x=yes
10216 else
10217 # If each of the values was on the command line, it overrides each guess.
10218 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10219 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10220 # Update the cache value to reflect the command line values.
10221 ac_cv_have_x="have_x=yes\
10222 ac_x_includes='$x_includes'\
10223 ac_x_libraries='$x_libraries'"
10224 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10225 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
10229 if test "x-$no_x" = "x-yes" ; then
10231 if test "x-$x11_hidd" != "x-auto" ; then
10232 { { echo "$as_me:$LINENO: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&5
10233 echo "$as_me: error: X11 libs/headers not found, cannot build X11 hidd as requested" >&2;}
10234 { (exit 1); exit 1; }; }
10237 else
10238 x11_hidd_target=kernel-x11gfx
10241 # Check whether --enable-x11_shm was given.
10242 if test "${enable_x11_shm+set}" = set; then
10243 enableval=$enable_x11_shm; x11_hidd_shm="$enableval"
10244 else
10245 x11_hidd_shm="auto"
10248 case "x-$x11_hidd_shm" in
10249 x-yes|x-no|x-auto) ;;
10250 *) x11_hidd_shm="auto" ;;
10251 esac
10253 have_xshm=no
10255 if test "x-$x11_hidd_shm" != "x-no" ; then
10258 for ac_header in sys/ipc.h
10260 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10261 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 ac_res=`eval echo '${'$as_ac_Header'}'`
10268 { echo "$as_me:$LINENO: result: $ac_res" >&5
10269 echo "${ECHO_T}$ac_res" >&6; }
10270 else
10271 # Is the header compilable?
10272 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10273 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10274 cat >conftest.$ac_ext <<_ACEOF
10275 /* confdefs.h. */
10276 _ACEOF
10277 cat confdefs.h >>conftest.$ac_ext
10278 cat >>conftest.$ac_ext <<_ACEOF
10279 /* end confdefs.h. */
10280 $ac_includes_default
10281 #include <$ac_header>
10282 _ACEOF
10283 rm -f conftest.$ac_objext
10284 if { (ac_try="$ac_compile"
10285 case "(($ac_try" in
10286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10287 *) ac_try_echo=$ac_try;;
10288 esac
10289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10290 (eval "$ac_compile") 2>conftest.er1
10291 ac_status=$?
10292 grep -v '^ *+' conftest.er1 >conftest.err
10293 rm -f conftest.er1
10294 cat conftest.err >&5
10295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10296 (exit $ac_status); } && {
10297 test -z "$ac_c_werror_flag" ||
10298 test ! -s conftest.err
10299 } && test -s conftest.$ac_objext; then
10300 ac_header_compiler=yes
10301 else
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10305 ac_header_compiler=no
10308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10309 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10310 echo "${ECHO_T}$ac_header_compiler" >&6; }
10312 # Is the header present?
10313 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10314 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10315 cat >conftest.$ac_ext <<_ACEOF
10316 /* confdefs.h. */
10317 _ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10321 #include <$ac_header>
10322 _ACEOF
10323 if { (ac_try="$ac_cpp conftest.$ac_ext"
10324 case "(($ac_try" in
10325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10326 *) ac_try_echo=$ac_try;;
10327 esac
10328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10329 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10330 ac_status=$?
10331 grep -v '^ *+' conftest.er1 >conftest.err
10332 rm -f conftest.er1
10333 cat conftest.err >&5
10334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10335 (exit $ac_status); } >/dev/null && {
10336 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10337 test ! -s conftest.err
10338 }; then
10339 ac_header_preproc=yes
10340 else
10341 echo "$as_me: failed program was:" >&5
10342 sed 's/^/| /' conftest.$ac_ext >&5
10344 ac_header_preproc=no
10347 rm -f conftest.err conftest.$ac_ext
10348 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10349 echo "${ECHO_T}$ac_header_preproc" >&6; }
10351 # So? What about this header?
10352 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10353 yes:no: )
10354 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10355 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10356 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10357 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10358 ac_header_preproc=yes
10360 no:yes:* )
10361 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10362 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10363 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10364 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10365 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10366 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10367 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10368 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10370 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10371 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10372 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10375 esac
10376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10379 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 else
10381 eval "$as_ac_Header=\$ac_header_preproc"
10383 ac_res=`eval echo '${'$as_ac_Header'}'`
10384 { echo "$as_me:$LINENO: result: $ac_res" >&5
10385 echo "${ECHO_T}$ac_res" >&6; }
10388 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10389 cat >>confdefs.h <<_ACEOF
10390 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10391 _ACEOF
10395 done
10398 for ac_header in sys/shm.h
10400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10405 echo $ECHO_N "(cached) $ECHO_C" >&6
10407 ac_res=`eval echo '${'$as_ac_Header'}'`
10408 { echo "$as_me:$LINENO: result: $ac_res" >&5
10409 echo "${ECHO_T}$ac_res" >&6; }
10410 else
10411 # Is the header compilable?
10412 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10414 cat >conftest.$ac_ext <<_ACEOF
10415 /* confdefs.h. */
10416 _ACEOF
10417 cat confdefs.h >>conftest.$ac_ext
10418 cat >>conftest.$ac_ext <<_ACEOF
10419 /* end confdefs.h. */
10420 $ac_includes_default
10421 #include <$ac_header>
10422 _ACEOF
10423 rm -f conftest.$ac_objext
10424 if { (ac_try="$ac_compile"
10425 case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10428 esac
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_compile") 2>conftest.er1
10431 ac_status=$?
10432 grep -v '^ *+' conftest.er1 >conftest.err
10433 rm -f conftest.er1
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && {
10437 test -z "$ac_c_werror_flag" ||
10438 test ! -s conftest.err
10439 } && test -s conftest.$ac_objext; then
10440 ac_header_compiler=yes
10441 else
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10445 ac_header_compiler=no
10448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10450 echo "${ECHO_T}$ac_header_compiler" >&6; }
10452 # Is the header present?
10453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10455 cat >conftest.$ac_ext <<_ACEOF
10456 /* confdefs.h. */
10457 _ACEOF
10458 cat confdefs.h >>conftest.$ac_ext
10459 cat >>conftest.$ac_ext <<_ACEOF
10460 /* end confdefs.h. */
10461 #include <$ac_header>
10462 _ACEOF
10463 if { (ac_try="$ac_cpp conftest.$ac_ext"
10464 case "(($ac_try" in
10465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10466 *) ac_try_echo=$ac_try;;
10467 esac
10468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10470 ac_status=$?
10471 grep -v '^ *+' conftest.er1 >conftest.err
10472 rm -f conftest.er1
10473 cat conftest.err >&5
10474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10475 (exit $ac_status); } >/dev/null && {
10476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10477 test ! -s conftest.err
10478 }; then
10479 ac_header_preproc=yes
10480 else
10481 echo "$as_me: failed program was:" >&5
10482 sed 's/^/| /' conftest.$ac_ext >&5
10484 ac_header_preproc=no
10487 rm -f conftest.err conftest.$ac_ext
10488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10489 echo "${ECHO_T}$ac_header_preproc" >&6; }
10491 # So? What about this header?
10492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10493 yes:no: )
10494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10498 ac_header_preproc=yes
10500 no:yes:* )
10501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10515 esac
10516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10519 echo $ECHO_N "(cached) $ECHO_C" >&6
10520 else
10521 eval "$as_ac_Header=\$ac_header_preproc"
10523 ac_res=`eval echo '${'$as_ac_Header'}'`
10524 { echo "$as_me:$LINENO: result: $ac_res" >&5
10525 echo "${ECHO_T}$ac_res" >&6; }
10528 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10529 cat >>confdefs.h <<_ACEOF
10530 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10531 _ACEOF
10535 done
10538 if test "x-$ac_cv_header_sys_ipc_h" = "x-yes" -a "x-$ac_cv_header_sys_shm_h" = "x-yes" ; then
10540 save_libs="$LIBS"
10541 save_cflags="$CFLAGS"
10542 LIBS="$x_libraries"
10543 CFLAGS="$x_includes"
10544 { echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
10545 echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6; }
10546 if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
10547 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 else
10549 ac_check_lib_save_LIBS=$LIBS
10550 LIBS="-lXext $LIBS"
10551 cat >conftest.$ac_ext <<_ACEOF
10552 /* confdefs.h. */
10553 _ACEOF
10554 cat confdefs.h >>conftest.$ac_ext
10555 cat >>conftest.$ac_ext <<_ACEOF
10556 /* end confdefs.h. */
10558 /* Override any GCC internal prototype to avoid an error.
10559 Use char because int might match the return type of a GCC
10560 builtin and then its argument prototype would still apply. */
10561 #ifdef __cplusplus
10562 extern "C"
10563 #endif
10564 char XShmQueryExtension ();
10566 main ()
10568 return XShmQueryExtension ();
10570 return 0;
10572 _ACEOF
10573 rm -f conftest.$ac_objext conftest$ac_exeext
10574 if { (ac_try="$ac_link"
10575 case "(($ac_try" in
10576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10577 *) ac_try_echo=$ac_try;;
10578 esac
10579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10580 (eval "$ac_link") 2>conftest.er1
10581 ac_status=$?
10582 grep -v '^ *+' conftest.er1 >conftest.err
10583 rm -f conftest.er1
10584 cat conftest.err >&5
10585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586 (exit $ac_status); } && {
10587 test -z "$ac_c_werror_flag" ||
10588 test ! -s conftest.err
10589 } && test -s conftest$ac_exeext &&
10590 $as_test_x conftest$ac_exeext; then
10591 ac_cv_lib_Xext_XShmQueryExtension=yes
10592 else
10593 echo "$as_me: failed program was:" >&5
10594 sed 's/^/| /' conftest.$ac_ext >&5
10596 ac_cv_lib_Xext_XShmQueryExtension=no
10599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10600 conftest$ac_exeext conftest.$ac_ext
10601 LIBS=$ac_check_lib_save_LIBS
10603 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
10604 echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
10605 if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
10606 have_xshm=yes
10609 LIBS="$save_libs"
10610 CFLAGS="$save_cflags"
10614 if test "x-$have_xshm" = "x-yes" ; then
10615 DO_XSHM_SUPPORT="1"
10616 elif test "x-$x11_hidd_shm" = "x-yes" ; then
10617 { { echo "$as_me:$LINENO: error: X11 has no support for shared memory, cannot enable it as requested" >&5
10618 echo "$as_me: error: X11 has no support for shared memory, cannot enable it as requested" >&2;}
10619 { (exit 1); exit 1; }; }
10620 else
10621 DO_XSHM_SUPPORT="0"
10625 # Check whether --enable-x11_vidmode was given.
10626 if test "${enable_x11_vidmode+set}" = set; then
10627 enableval=$enable_x11_vidmode; x11_hidd_vidmode="$enableval"
10628 else
10629 x11_hidd_vidmode="auto"
10632 case "x-$x11_hidd_vidmode" in
10633 x-yes|x-no|x-auto) ;;
10634 *) x11_hidd_vidmode="auto" ;;
10635 esac
10637 have_vidmode=no
10639 if test "x-$x11_hidd_vidmode" != "x-no" ; then
10641 save_libs="$LIBS"
10642 save_cflags="$CFLAGS"
10643 LIBS="$x_libraries"
10644 CFLAGS="$x_includes"
10645 { echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
10646 echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6; }
10647 if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
10648 echo $ECHO_N "(cached) $ECHO_C" >&6
10649 else
10650 ac_check_lib_save_LIBS=$LIBS
10651 LIBS="-lXxf86vm $LIBS"
10652 cat >conftest.$ac_ext <<_ACEOF
10653 /* confdefs.h. */
10654 _ACEOF
10655 cat confdefs.h >>conftest.$ac_ext
10656 cat >>conftest.$ac_ext <<_ACEOF
10657 /* end confdefs.h. */
10659 /* Override any GCC internal prototype to avoid an error.
10660 Use char because int might match the return type of a GCC
10661 builtin and then its argument prototype would still apply. */
10662 #ifdef __cplusplus
10663 extern "C"
10664 #endif
10665 char XF86VidModeQueryExtension ();
10667 main ()
10669 return XF86VidModeQueryExtension ();
10671 return 0;
10673 _ACEOF
10674 rm -f conftest.$ac_objext conftest$ac_exeext
10675 if { (ac_try="$ac_link"
10676 case "(($ac_try" in
10677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10678 *) ac_try_echo=$ac_try;;
10679 esac
10680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10681 (eval "$ac_link") 2>conftest.er1
10682 ac_status=$?
10683 grep -v '^ *+' conftest.er1 >conftest.err
10684 rm -f conftest.er1
10685 cat conftest.err >&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); } && {
10688 test -z "$ac_c_werror_flag" ||
10689 test ! -s conftest.err
10690 } && test -s conftest$ac_exeext &&
10691 $as_test_x conftest$ac_exeext; then
10692 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
10693 else
10694 echo "$as_me: failed program was:" >&5
10695 sed 's/^/| /' conftest.$ac_ext >&5
10697 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
10700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10701 conftest$ac_exeext conftest.$ac_ext
10702 LIBS=$ac_check_lib_save_LIBS
10704 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
10705 echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6; }
10706 if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
10707 have_vidmode=yes
10710 LIBS="$save_libs"
10711 CFLAGS="$save_cflags"
10714 if test "x-$have_vidmode" = "x-yes" ; then
10715 DO_VIDMODE_SUPPORT="1"
10716 elif test "x-$x11_hidd_vidmode" = "x-yes" ; then
10717 { { echo "$as_me:$LINENO: error: X11 vidmode extension not available, cannot enable it as requested" >&5
10718 echo "$as_me: error: X11 vidmode extension not available, cannot enable it as requested" >&2;}
10719 { (exit 1); exit 1; }; }
10720 else
10721 DO_VIDMODE_SUPPORT="0"
10728 # Check whether --enable-sdl_hidd was given.
10729 if test "${enable_sdl_hidd+set}" = set; then
10730 enableval=$enable_sdl_hidd; sdl_hidd="$enableval"
10731 else
10732 sdl_hidd="auto"
10735 case "x-$sdl_hidd" in
10736 x-yes|x-no|x-auto) ;;
10737 *) sdl_hidd="auto" ;;
10738 esac
10740 if test "x-$sdl_hidd" != "x-no" ; then
10743 # Check whether --with-sdl-prefix was given.
10744 if test "${with_sdl_prefix+set}" = set; then
10745 withval=$with_sdl_prefix; sdl_prefix="$withval"
10746 else
10747 sdl_prefix=""
10751 # Check whether --with-sdl-exec-prefix was given.
10752 if test "${with_sdl_exec_prefix+set}" = set; then
10753 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
10754 else
10755 sdl_exec_prefix=""
10758 # Check whether --enable-sdltest was given.
10759 if test "${enable_sdltest+set}" = set; then
10760 enableval=$enable_sdltest;
10761 else
10762 enable_sdltest=yes
10766 if test x$sdl_exec_prefix != x ; then
10767 sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
10768 if test x${SDL_CONFIG+set} != xset ; then
10769 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
10772 if test x$sdl_prefix != x ; then
10773 sdl_args="$sdl_args --prefix=$sdl_prefix"
10774 if test x${SDL_CONFIG+set} != xset ; then
10775 SDL_CONFIG=$sdl_prefix/bin/sdl-config
10779 if test "x$prefix" != xNONE; then
10780 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
10782 # Extract the first word of "sdl-config", so it can be a program name with args.
10783 set dummy sdl-config; ac_word=$2
10784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10786 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 else
10789 case $SDL_CONFIG in
10790 [\\/]* | ?:[\\/]*)
10791 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
10794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10795 for as_dir in $PATH
10797 IFS=$as_save_IFS
10798 test -z "$as_dir" && as_dir=.
10799 for ac_exec_ext in '' $ac_executable_extensions; do
10800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10801 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10803 break 2
10805 done
10806 done
10807 IFS=$as_save_IFS
10809 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
10811 esac
10813 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
10814 if test -n "$SDL_CONFIG"; then
10815 { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
10816 echo "${ECHO_T}$SDL_CONFIG" >&6; }
10817 else
10818 { echo "$as_me:$LINENO: result: no" >&5
10819 echo "${ECHO_T}no" >&6; }
10823 min_sdl_version=1.2.10
10824 { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
10825 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
10826 no_sdl=""
10827 if test "$SDL_CONFIG" = "no" ; then
10828 no_sdl=yes
10829 else
10830 SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
10831 SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
10833 sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
10834 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
10835 sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
10836 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
10837 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
10838 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
10839 if test "x$enable_sdltest" = "xyes" ; then
10840 ac_save_CFLAGS="$CFLAGS"
10841 ac_save_CXXFLAGS="$CXXFLAGS"
10842 ac_save_LIBS="$LIBS"
10843 CFLAGS="$CFLAGS $SDL_CFLAGS"
10844 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10845 LIBS="$LIBS $SDL_LIBS"
10846 rm -f conf.sdltest
10847 if test "$cross_compiling" = yes; then
10848 echo $ac_n "cross compiling; assumed OK... $ac_c"
10849 else
10850 cat >conftest.$ac_ext <<_ACEOF
10851 /* confdefs.h. */
10852 _ACEOF
10853 cat confdefs.h >>conftest.$ac_ext
10854 cat >>conftest.$ac_ext <<_ACEOF
10855 /* end confdefs.h. */
10857 #include <stdio.h>
10858 #include <stdlib.h>
10859 #include <string.h>
10860 #include "SDL.h"
10862 char*
10863 my_strdup (char *str)
10865 char *new_str;
10867 if (str)
10869 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
10870 strcpy (new_str, str);
10872 else
10873 new_str = NULL;
10875 return new_str;
10878 int main (int argc, char *argv[])
10880 int major, minor, micro;
10881 char *tmp_version;
10883 /* This hangs on some systems (?)
10884 system ("touch conf.sdltest");
10886 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
10888 /* HP/UX 9 (%@#!) writes to sscanf strings */
10889 tmp_version = my_strdup("$min_sdl_version");
10890 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
10891 printf("%s, bad version string\n", "$min_sdl_version");
10892 exit(1);
10895 if (($sdl_major_version > major) ||
10896 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
10897 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
10899 return 0;
10901 else
10903 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
10904 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
10905 printf("*** best to upgrade to the required version.\n");
10906 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
10907 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
10908 printf("*** config.cache before re-running configure\n");
10909 return 1;
10914 _ACEOF
10915 rm -f conftest$ac_exeext
10916 if { (ac_try="$ac_link"
10917 case "(($ac_try" in
10918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10919 *) ac_try_echo=$ac_try;;
10920 esac
10921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10922 (eval "$ac_link") 2>&5
10923 ac_status=$?
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10926 { (case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10929 esac
10930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_try") 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); }; }; then
10936 else
10937 echo "$as_me: program exited with status $ac_status" >&5
10938 echo "$as_me: failed program was:" >&5
10939 sed 's/^/| /' conftest.$ac_ext >&5
10941 ( exit $ac_status )
10942 no_sdl=yes
10944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10948 CFLAGS="$ac_save_CFLAGS"
10949 CXXFLAGS="$ac_save_CXXFLAGS"
10950 LIBS="$ac_save_LIBS"
10953 if test "x$no_sdl" = x ; then
10954 { echo "$as_me:$LINENO: result: yes" >&5
10955 echo "${ECHO_T}yes" >&6; }
10956 have_sdl="yes"
10957 else
10958 { echo "$as_me:$LINENO: result: no" >&5
10959 echo "${ECHO_T}no" >&6; }
10960 if test "$SDL_CONFIG" = "no" ; then
10961 echo "*** The sdl-config script installed by SDL could not be found"
10962 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
10963 echo "*** your path, or set the SDL_CONFIG environment variable to the"
10964 echo "*** full path to sdl-config."
10965 else
10966 if test -f conf.sdltest ; then
10968 else
10969 echo "*** Could not run SDL test program, checking why..."
10970 CFLAGS="$CFLAGS $SDL_CFLAGS"
10971 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
10972 LIBS="$LIBS $SDL_LIBS"
10973 cat >conftest.$ac_ext <<_ACEOF
10974 /* confdefs.h. */
10975 _ACEOF
10976 cat confdefs.h >>conftest.$ac_ext
10977 cat >>conftest.$ac_ext <<_ACEOF
10978 /* end confdefs.h. */
10980 #include <stdio.h>
10981 #include "SDL.h"
10983 int main(int argc, char *argv[])
10984 { return 0; }
10985 #undef main
10986 #define main K_and_R_C_main
10989 main ()
10991 return 0;
10993 return 0;
10995 _ACEOF
10996 rm -f conftest.$ac_objext conftest$ac_exeext
10997 if { (ac_try="$ac_link"
10998 case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11001 esac
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_link") 2>conftest.er1
11004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } && {
11010 test -z "$ac_c_werror_flag" ||
11011 test ! -s conftest.err
11012 } && test -s conftest$ac_exeext &&
11013 $as_test_x conftest$ac_exeext; then
11014 echo "*** The test program compiled, but did not run. This usually means"
11015 echo "*** that the run-time linker is not finding SDL or finding the wrong"
11016 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
11017 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
11018 echo "*** to the installed location Also, make sure you have run ldconfig if that"
11019 echo "*** is required on your system"
11020 echo "***"
11021 echo "*** If you have an old version installed, it is best to remove it, although"
11022 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
11023 else
11024 echo "$as_me: failed program was:" >&5
11025 sed 's/^/| /' conftest.$ac_ext >&5
11027 echo "*** The test program failed to compile or link. See the file config.log for the"
11028 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
11029 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
11030 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
11033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11034 conftest$ac_exeext conftest.$ac_ext
11035 CFLAGS="$ac_save_CFLAGS"
11036 CXXFLAGS="$ac_save_CXXFLAGS"
11037 LIBS="$ac_save_LIBS"
11040 SDL_CFLAGS=""
11041 SDL_LIBS=""
11042 have_sdl="no"
11046 rm -f conf.sdltest
11049 if test "x-$have_sdl" != "x-yes" ; then
11051 if test "x-$sdl_hidd" != "x-auto" ; then
11052 { { echo "$as_me:$LINENO: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&5
11053 echo "$as_me: error: SDL libs/headers not found, cannot build SDL hidd as requested" >&2;}
11054 { (exit 1); exit 1; }; }
11057 else
11058 sdl_hidd_target=kernel-hidd-sdl
11065 { echo "$as_me:$LINENO: checking if building of dbus.library is enabled" >&5
11066 echo $ECHO_N "checking if building of dbus.library is enabled... $ECHO_C" >&6; }
11067 # Check whether --enable-dbus was given.
11068 if test "${enable_dbus+set}" = set; then
11069 enableval=$enable_dbus; dbus="yes"
11070 else
11071 dbus="no"
11074 if test "$dbus" = "yes" ; then
11075 ENABLE_DBUS=1
11076 DBUS_CFLAGS=`pkg-config --cflags dbus-1`
11077 DBUS_LIBFLAGS=`pkg-config --libs dbus-1`
11078 KERNEL_DBUS_KOBJ=kernel-dbus-kobj
11079 KERNEL_DBUS_INCLUDES=kernel-dbus-includes
11080 else
11081 ENABLE_DBUS=0
11083 { echo "$as_me:$LINENO: result: $dbus" >&5
11084 echo "${ECHO_T}$dbus" >&6; }
11088 # Generic
11095 # Host related
11118 # Target Related
11157 # Graphics Related
11173 # Native version related
11177 # Palm native version related
11180 # Unix/Hosted version related
11183 # DBUS related
11190 # Debug related
11196 # Collect-aros stuff: "-ius" to ignore undefined symbols
11199 # C compiler related
11202 case "$aros_flavour" in
11203 emulation) aros_flavour_uc="AROS_FLAVOUR_EMULATION"
11204 aros_flavour="emulation" ;;
11205 emulcompat) aros_flavour_uc="(AROS_FLAVOUR_EMULATION|AROS_FLAVOUR_BINCOMPAT)"
11206 aros_flavour="emulation" ;;
11207 standalone) aros_flavour_uc="AROS_FLAVOUR_STANDALONE"
11208 aros_flavour="standalone";;
11209 native) aros_flavour_uc="AROS_FLAVOUR_NATIVE"
11210 aros_flavour="native" ;;
11211 nativecompat) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11212 aros_flavour="native" ;;
11213 linklib) aros_flavour_uc="AROS_FLAVOUR_LINKLIB"
11214 aros_flavour="linklib" ;;
11215 palmnative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11216 aros_flavour="palmnative" ;;
11217 mac68knative) aros_flavour_uc="(AROS_FLAVOUR_STANDALONE|AROS_FLAVOUR_EMULATION)"
11218 aros_flavour="mac68knative" ;;
11219 ppcnative) aros_flavour_uc="(AROS_FLAVOUR_NATIVE|AROS_FLAVOUR_BINCOMPAT)"
11220 aros_flavour="ppcnative" ;;
11221 esac
11225 if test ! -d ${aros_inc_dir} ; then
11226 ${MKDIR} ${aros_inc_dir}
11228 if test ! -d ${aros_geninc_dir} ; then
11229 ${MKDIR} ${aros_geninc_dir}
11231 if test ! -d ${aros_hostcfg_dir} ; then
11232 ${MKDIR} ${aros_hostcfg_dir}
11234 if test ! -d ${aros_targetcfg_dir} ; then
11235 ${MKDIR} ${aros_targetcfg_dir}
11237 if test ! -d ${aros_tools_dir} ; then
11238 ${MKDIR} ${aros_tools_dir}
11240 if test ! -d ${aros_scripts_dir} ; then
11241 ${MKDIR} ${aros_scripts_dir}
11244 ac_config_headers="$ac_config_headers ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in"
11247 ac_config_commands="$ac_config_commands compiler_executable"
11249 ac_config_commands="$ac_config_commands genshared_executable"
11251 ac_config_commands="$ac_config_commands genmf_executable"
11253 ac_config_commands="$ac_config_commands adflib_myaros.conf_executable"
11256 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"
11259 cat >confcache <<\_ACEOF
11260 # This file is a shell script that caches the results of configure
11261 # tests run on this system so they can be shared between configure
11262 # scripts and configure runs, see configure's option --config-cache.
11263 # It is not useful on other systems. If it contains results you don't
11264 # want to keep, you may remove or edit it.
11266 # config.status only pays attention to the cache file if you give it
11267 # the --recheck option to rerun configure.
11269 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11270 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11271 # following values.
11273 _ACEOF
11275 # The following way of writing the cache mishandles newlines in values,
11276 # but we know of no workaround that is simple, portable, and efficient.
11277 # So, we kill variables containing newlines.
11278 # Ultrix sh set writes to stderr and can't be redirected directly,
11279 # and sets the high bit in the cache file unless we assign to the vars.
11281 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11282 eval ac_val=\$$ac_var
11283 case $ac_val in #(
11284 *${as_nl}*)
11285 case $ac_var in #(
11286 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
11287 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
11288 esac
11289 case $ac_var in #(
11290 _ | IFS | as_nl) ;; #(
11291 *) $as_unset $ac_var ;;
11292 esac ;;
11293 esac
11294 done
11296 (set) 2>&1 |
11297 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11298 *${as_nl}ac_space=\ *)
11299 # `set' does not quote correctly, so add quotes (double-quote
11300 # substitution turns \\\\ into \\, and sed turns \\ into \).
11301 sed -n \
11302 "s/'/'\\\\''/g;
11303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11304 ;; #(
11306 # `set' quotes correctly as required by POSIX, so do not add quotes.
11307 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11309 esac |
11310 sort
11312 sed '
11313 /^ac_cv_env_/b end
11314 t clear
11315 :clear
11316 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11317 t end
11318 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11319 :end' >>confcache
11320 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11321 if test -w "$cache_file"; then
11322 test "x$cache_file" != "x/dev/null" &&
11323 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
11324 echo "$as_me: updating cache $cache_file" >&6;}
11325 cat confcache >$cache_file
11326 else
11327 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
11328 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11331 rm -f confcache
11333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11334 # Let make expand exec_prefix.
11335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11337 DEFS=-DHAVE_CONFIG_H
11339 ac_libobjs=
11340 ac_ltlibobjs=
11341 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11342 # 1. Remove the extension, and $U if already installed.
11343 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11344 ac_i=`echo "$ac_i" | sed "$ac_script"`
11345 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11346 # will be set to the directory where LIBOBJS objects are built.
11347 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11348 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
11349 done
11350 LIBOBJS=$ac_libobjs
11352 LTLIBOBJS=$ac_ltlibobjs
11356 : ${CONFIG_STATUS=./config.status}
11357 ac_clean_files_save=$ac_clean_files
11358 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11359 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11360 echo "$as_me: creating $CONFIG_STATUS" >&6;}
11361 cat >$CONFIG_STATUS <<_ACEOF
11362 #! $SHELL
11363 # Generated by $as_me.
11364 # Run this file to recreate the current configuration.
11365 # Compiler output produced by configure, useful for debugging
11366 # configure, is in config.log if it exists.
11368 debug=false
11369 ac_cs_recheck=false
11370 ac_cs_silent=false
11371 SHELL=\${CONFIG_SHELL-$SHELL}
11372 _ACEOF
11374 cat >>$CONFIG_STATUS <<\_ACEOF
11375 ## --------------------- ##
11376 ## M4sh Initialization. ##
11377 ## --------------------- ##
11379 # Be more Bourne compatible
11380 DUALCASE=1; export DUALCASE # for MKS sh
11381 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11382 emulate sh
11383 NULLCMD=:
11384 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11385 # is contrary to our usage. Disable this feature.
11386 alias -g '${1+"$@"}'='"$@"'
11387 setopt NO_GLOB_SUBST
11388 else
11389 case `(set -o) 2>/dev/null` in
11390 *posix*) set -o posix ;;
11391 esac
11398 # PATH needs CR
11399 # Avoid depending upon Character Ranges.
11400 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11401 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11402 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11403 as_cr_digits='0123456789'
11404 as_cr_alnum=$as_cr_Letters$as_cr_digits
11406 # The user is always right.
11407 if test "${PATH_SEPARATOR+set}" != set; then
11408 echo "#! /bin/sh" >conf$$.sh
11409 echo "exit 0" >>conf$$.sh
11410 chmod +x conf$$.sh
11411 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11412 PATH_SEPARATOR=';'
11413 else
11414 PATH_SEPARATOR=:
11416 rm -f conf$$.sh
11419 # Support unset when possible.
11420 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11421 as_unset=unset
11422 else
11423 as_unset=false
11427 # IFS
11428 # We need space, tab and new line, in precisely that order. Quoting is
11429 # there to prevent editors from complaining about space-tab.
11430 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11431 # splitting by setting IFS to empty value.)
11432 as_nl='
11434 IFS=" "" $as_nl"
11436 # Find who we are. Look in the path if we contain no directory separator.
11437 case $0 in
11438 *[\\/]* ) as_myself=$0 ;;
11439 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440 for as_dir in $PATH
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
11444 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11445 done
11446 IFS=$as_save_IFS
11449 esac
11450 # We did not find ourselves, most probably we were run as `sh COMMAND'
11451 # in which case we are not to be found in the path.
11452 if test "x$as_myself" = x; then
11453 as_myself=$0
11455 if test ! -f "$as_myself"; then
11456 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11457 { (exit 1); exit 1; }
11460 # Work around bugs in pre-3.0 UWIN ksh.
11461 for as_var in ENV MAIL MAILPATH
11462 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11463 done
11464 PS1='$ '
11465 PS2='> '
11466 PS4='+ '
11468 # NLS nuisances.
11469 for as_var in \
11470 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11471 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11472 LC_TELEPHONE LC_TIME
11474 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11475 eval $as_var=C; export $as_var
11476 else
11477 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
11479 done
11481 # Required to use basename.
11482 if expr a : '\(a\)' >/dev/null 2>&1 &&
11483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11484 as_expr=expr
11485 else
11486 as_expr=false
11489 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11490 as_basename=basename
11491 else
11492 as_basename=false
11496 # Name of the executable.
11497 as_me=`$as_basename -- "$0" ||
11498 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11499 X"$0" : 'X\(//\)$' \| \
11500 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11501 echo X/"$0" |
11502 sed '/^.*\/\([^/][^/]*\)\/*$/{
11503 s//\1/
11506 /^X\/\(\/\/\)$/{
11507 s//\1/
11510 /^X\/\(\/\).*/{
11511 s//\1/
11514 s/.*/./; q'`
11516 # CDPATH.
11517 $as_unset CDPATH
11521 as_lineno_1=$LINENO
11522 as_lineno_2=$LINENO
11523 test "x$as_lineno_1" != "x$as_lineno_2" &&
11524 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
11526 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11527 # uniformly replaced by the line number. The first 'sed' inserts a
11528 # line-number line after each line using $LINENO; the second 'sed'
11529 # does the real work. The second script uses 'N' to pair each
11530 # line-number line with the line containing $LINENO, and appends
11531 # trailing '-' during substitution so that $LINENO is not a special
11532 # case at line end.
11533 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11534 # scripts with optimization help from Paolo Bonzini. Blame Lee
11535 # E. McMahon (1931-1989) for sed's syntax. :-)
11536 sed -n '
11538 /[$]LINENO/=
11539 ' <$as_myself |
11540 sed '
11541 s/[$]LINENO.*/&-/
11542 t lineno
11544 :lineno
11546 :loop
11547 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
11548 t loop
11549 s/-\n.*//
11550 ' >$as_me.lineno &&
11551 chmod +x "$as_me.lineno" ||
11552 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
11553 { (exit 1); exit 1; }; }
11555 # Don't try to exec as it changes $[0], causing all sort of problems
11556 # (the dirname of $[0] is not the place where we might find the
11557 # original and so on. Autoconf is especially sensitive to this).
11558 . "./$as_me.lineno"
11559 # Exit status is that of the last command.
11560 exit
11564 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11565 as_dirname=dirname
11566 else
11567 as_dirname=false
11570 ECHO_C= ECHO_N= ECHO_T=
11571 case `echo -n x` in
11572 -n*)
11573 case `echo 'x\c'` in
11574 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11575 *) ECHO_C='\c';;
11576 esac;;
11578 ECHO_N='-n';;
11579 esac
11581 if expr a : '\(a\)' >/dev/null 2>&1 &&
11582 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11583 as_expr=expr
11584 else
11585 as_expr=false
11588 rm -f conf$$ conf$$.exe conf$$.file
11589 if test -d conf$$.dir; then
11590 rm -f conf$$.dir/conf$$.file
11591 else
11592 rm -f conf$$.dir
11593 mkdir conf$$.dir
11595 echo >conf$$.file
11596 if ln -s conf$$.file conf$$ 2>/dev/null; then
11597 as_ln_s='ln -s'
11598 # ... but there are two gotchas:
11599 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11600 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11601 # In both cases, we have to default to `cp -p'.
11602 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11603 as_ln_s='cp -p'
11604 elif ln conf$$.file conf$$ 2>/dev/null; then
11605 as_ln_s=ln
11606 else
11607 as_ln_s='cp -p'
11609 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11610 rmdir conf$$.dir 2>/dev/null
11612 if mkdir -p . 2>/dev/null; then
11613 as_mkdir_p=:
11614 else
11615 test -d ./-p && rmdir ./-p
11616 as_mkdir_p=false
11619 if test -x / >/dev/null 2>&1; then
11620 as_test_x='test -x'
11621 else
11622 if ls -dL / >/dev/null 2>&1; then
11623 as_ls_L_option=L
11624 else
11625 as_ls_L_option=
11627 as_test_x='
11628 eval sh -c '\''
11629 if test -d "$1"; then
11630 test -d "$1/.";
11631 else
11632 case $1 in
11633 -*)set "./$1";;
11634 esac;
11635 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
11636 ???[sx]*):;;*)false;;esac;fi
11637 '\'' sh
11640 as_executable_p=$as_test_x
11642 # Sed expression to map a string onto a valid CPP name.
11643 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11645 # Sed expression to map a string onto a valid variable name.
11646 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11649 exec 6>&1
11651 # Save the log message, to keep $[0] and so on meaningful, and to
11652 # report actual input values of CONFIG_FILES etc. instead of their
11653 # values after options handling.
11654 ac_log="
11655 This file was extended by $as_me, which was
11656 generated by GNU Autoconf 2.61. Invocation command line was
11658 CONFIG_FILES = $CONFIG_FILES
11659 CONFIG_HEADERS = $CONFIG_HEADERS
11660 CONFIG_LINKS = $CONFIG_LINKS
11661 CONFIG_COMMANDS = $CONFIG_COMMANDS
11662 $ $0 $@
11664 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11667 _ACEOF
11669 cat >>$CONFIG_STATUS <<_ACEOF
11670 # Files that config.status was made for.
11671 config_files="$ac_config_files"
11672 config_headers="$ac_config_headers"
11673 config_commands="$ac_config_commands"
11675 _ACEOF
11677 cat >>$CONFIG_STATUS <<\_ACEOF
11678 ac_cs_usage="\
11679 \`$as_me' instantiates files from templates according to the
11680 current configuration.
11682 Usage: $0 [OPTIONS] [FILE]...
11684 -h, --help print this help, then exit
11685 -V, --version print version number and configuration settings, then exit
11686 -q, --quiet do not print progress messages
11687 -d, --debug don't remove temporary files
11688 --recheck update $as_me by reconfiguring in the same conditions
11689 --file=FILE[:TEMPLATE]
11690 instantiate the configuration file FILE
11691 --header=FILE[:TEMPLATE]
11692 instantiate the configuration header FILE
11694 Configuration files:
11695 $config_files
11697 Configuration headers:
11698 $config_headers
11700 Configuration commands:
11701 $config_commands
11703 Report bugs to <bug-autoconf@gnu.org>."
11705 _ACEOF
11706 cat >>$CONFIG_STATUS <<_ACEOF
11707 ac_cs_version="\\
11708 config.status
11709 configured by $0, generated by GNU Autoconf 2.61,
11710 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11712 Copyright (C) 2006 Free Software Foundation, Inc.
11713 This config.status script is free software; the Free Software Foundation
11714 gives unlimited permission to copy, distribute and modify it."
11716 ac_pwd='$ac_pwd'
11717 srcdir='$srcdir'
11718 _ACEOF
11720 cat >>$CONFIG_STATUS <<\_ACEOF
11721 # If no file are specified by the user, then we need to provide default
11722 # value. By we need to know if files were specified by the user.
11723 ac_need_defaults=:
11724 while test $# != 0
11726 case $1 in
11727 --*=*)
11728 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11729 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11730 ac_shift=:
11733 ac_option=$1
11734 ac_optarg=$2
11735 ac_shift=shift
11737 esac
11739 case $ac_option in
11740 # Handling of the options.
11741 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11742 ac_cs_recheck=: ;;
11743 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11744 echo "$ac_cs_version"; exit ;;
11745 --debug | --debu | --deb | --de | --d | -d )
11746 debug=: ;;
11747 --file | --fil | --fi | --f )
11748 $ac_shift
11749 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11750 ac_need_defaults=false;;
11751 --header | --heade | --head | --hea )
11752 $ac_shift
11753 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11754 ac_need_defaults=false;;
11755 --he | --h)
11756 # Conflict between --help and --header
11757 { echo "$as_me: error: ambiguous option: $1
11758 Try \`$0 --help' for more information." >&2
11759 { (exit 1); exit 1; }; };;
11760 --help | --hel | -h )
11761 echo "$ac_cs_usage"; exit ;;
11762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11763 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11764 ac_cs_silent=: ;;
11766 # This is an error.
11767 -*) { echo "$as_me: error: unrecognized option: $1
11768 Try \`$0 --help' for more information." >&2
11769 { (exit 1); exit 1; }; } ;;
11771 *) ac_config_targets="$ac_config_targets $1"
11772 ac_need_defaults=false ;;
11774 esac
11775 shift
11776 done
11778 ac_configure_extra_args=
11780 if $ac_cs_silent; then
11781 exec 6>/dev/null
11782 ac_configure_extra_args="$ac_configure_extra_args --silent"
11785 _ACEOF
11786 cat >>$CONFIG_STATUS <<_ACEOF
11787 if \$ac_cs_recheck; then
11788 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11789 CONFIG_SHELL=$SHELL
11790 export CONFIG_SHELL
11791 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11794 _ACEOF
11795 cat >>$CONFIG_STATUS <<\_ACEOF
11796 exec 5>>config.log
11798 echo
11799 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11800 ## Running $as_me. ##
11801 _ASBOX
11802 echo "$ac_log"
11803 } >&5
11805 _ACEOF
11806 cat >>$CONFIG_STATUS <<_ACEOF
11808 # INIT-COMMANDS
11811 aros_tools_dir=${aros_tools_dir}
11812 aros_target_cpu=${aros_target_cpu}
11813 aros_target_arch=${aros_target_arch}
11814 aros_target_suffix=${aros_target_suffix}
11815 aros_target_nm_ln=${aros_target_nm_ln}
11816 aros_target_as_ln=${aros_target_as_ln}
11817 aros_target_ar_ln=${aros_target_ar_ln}
11818 aros_target_ranlib_ln=${aros_target_ranlib_ln}
11819 aros_target_objdump_ln=${aros_target_objdump_ln}
11820 aros_target_objcopy_ln=${aros_target_objcopy_ln}
11821 aros_target_strip_ln=${aros_target_strip_ln}
11824 aros_scripts_dir=${aros_scripts_dir}
11826 aros_tools_dir=${aros_tools_dir}
11829 _ACEOF
11831 cat >>$CONFIG_STATUS <<\_ACEOF
11833 # Handling of arguments.
11834 for ac_config_target in $ac_config_targets
11836 case $ac_config_target in
11837 "${aros_geninc_dir}/host-conf.h") CONFIG_HEADERS="$CONFIG_HEADERS ${aros_geninc_dir}/host-conf.h:config/host-conf.h.in" ;;
11838 "compiler_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS compiler_executable" ;;
11839 "genshared_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genshared_executable" ;;
11840 "genmf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS genmf_executable" ;;
11841 "adflib_myaros.conf_executable") CONFIG_COMMANDS="$CONFIG_COMMANDS adflib_myaros.conf_executable" ;;
11842 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11843 "rom/mmakefile") CONFIG_FILES="$CONFIG_FILES rom/mmakefile" ;;
11844 "${aros_inc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_inc_dir}/config.h:config/config.h.in" ;;
11845 "${aros_geninc_dir}/config.h") CONFIG_FILES="$CONFIG_FILES ${aros_geninc_dir}/config.h:config/config.h.in" ;;
11846 "${aros_hostcfg_dir}/host.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_hostcfg_dir}/host.cfg:config/host.cfg.in" ;;
11847 "${aros_targetcfg_dir}/target.cfg") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/target.cfg:config/target.cfg.in" ;;
11848 "mmake.config") CONFIG_FILES="$CONFIG_FILES mmake.config" ;;
11849 "${aros_targetcfg_dir}/make.defaults") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/make.defaults:config/make.defaults.in" ;;
11850 "${aros_targetcfg_dir}/specs") CONFIG_FILES="$CONFIG_FILES ${aros_targetcfg_dir}/specs:config/specs.in" ;;
11851 "${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" ;;
11852 "${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" ;;
11853 "${aros_scripts_dir}/genshared") CONFIG_FILES="$CONFIG_FILES ${aros_scripts_dir}/genshared:compiler/c_lib/source/lib_source/genshared.in" ;;
11854 "${aros_tools_dir}/genmf.py") CONFIG_FILES="$CONFIG_FILES ${aros_tools_dir}/genmf.py:tools/genmf/genmf.py" ;;
11855 "tools/adflib/myconf.aros") CONFIG_FILES="$CONFIG_FILES tools/adflib/myconf.aros" ;;
11856 "tools/collect-aros/env.h") CONFIG_FILES="$CONFIG_FILES tools/collect-aros/env.h" ;;
11858 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11859 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11860 { (exit 1); exit 1; }; };;
11861 esac
11862 done
11865 # If the user did not use the arguments to specify the items to instantiate,
11866 # then the envvar interface is used. Set only those that are not.
11867 # We use the long form for the default assignment because of an extremely
11868 # bizarre bug on SunOS 4.1.3.
11869 if $ac_need_defaults; then
11870 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11871 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11872 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
11875 # Have a temporary directory for convenience. Make it in the build tree
11876 # simply because there is no reason against having it here, and in addition,
11877 # creating and moving files from /tmp can sometimes cause problems.
11878 # Hook for its removal unless debugging.
11879 # Note that there is a small window in which the directory will not be cleaned:
11880 # after its creation but before its name has been assigned to `$tmp'.
11881 $debug ||
11883 tmp=
11884 trap 'exit_status=$?
11885 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
11887 trap '{ (exit 1); exit 1; }' 1 2 13 15
11889 # Create a (secure) tmp directory for tmp files.
11892 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11893 test -n "$tmp" && test -d "$tmp"
11894 } ||
11896 tmp=./conf$$-$RANDOM
11897 (umask 077 && mkdir "$tmp")
11898 } ||
11900 echo "$me: cannot create a temporary directory in ." >&2
11901 { (exit 1); exit 1; }
11905 # Set up the sed scripts for CONFIG_FILES section.
11908 # No need to generate the scripts if there are no CONFIG_FILES.
11909 # This happens for instance when ./config.status config.h
11910 if test -n "$CONFIG_FILES"; then
11912 _ACEOF
11916 ac_delim='%!_!# '
11917 for ac_last_try in false false false false false :; do
11918 cat >conf$$subs.sed <<_ACEOF
11919 SHELL!$SHELL$ac_delim
11920 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
11921 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
11922 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
11923 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
11924 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
11925 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
11926 exec_prefix!$exec_prefix$ac_delim
11927 prefix!$prefix$ac_delim
11928 program_transform_name!$program_transform_name$ac_delim
11929 bindir!$bindir$ac_delim
11930 sbindir!$sbindir$ac_delim
11931 libexecdir!$libexecdir$ac_delim
11932 datarootdir!$datarootdir$ac_delim
11933 datadir!$datadir$ac_delim
11934 sysconfdir!$sysconfdir$ac_delim
11935 sharedstatedir!$sharedstatedir$ac_delim
11936 localstatedir!$localstatedir$ac_delim
11937 includedir!$includedir$ac_delim
11938 oldincludedir!$oldincludedir$ac_delim
11939 docdir!$docdir$ac_delim
11940 infodir!$infodir$ac_delim
11941 htmldir!$htmldir$ac_delim
11942 dvidir!$dvidir$ac_delim
11943 pdfdir!$pdfdir$ac_delim
11944 psdir!$psdir$ac_delim
11945 libdir!$libdir$ac_delim
11946 localedir!$localedir$ac_delim
11947 mandir!$mandir$ac_delim
11948 DEFS!$DEFS$ac_delim
11949 ECHO_C!$ECHO_C$ac_delim
11950 ECHO_N!$ECHO_N$ac_delim
11951 ECHO_T!$ECHO_T$ac_delim
11952 LIBS!$LIBS$ac_delim
11953 build_alias!$build_alias$ac_delim
11954 host_alias!$host_alias$ac_delim
11955 target_alias!$target_alias$ac_delim
11956 build!$build$ac_delim
11957 build_cpu!$build_cpu$ac_delim
11958 build_vendor!$build_vendor$ac_delim
11959 build_os!$build_os$ac_delim
11960 host!$host$ac_delim
11961 host_cpu!$host_cpu$ac_delim
11962 host_vendor!$host_vendor$ac_delim
11963 host_os!$host_os$ac_delim
11964 CC!$CC$ac_delim
11965 CFLAGS!$CFLAGS$ac_delim
11966 LDFLAGS!$LDFLAGS$ac_delim
11967 CPPFLAGS!$CPPFLAGS$ac_delim
11968 ac_ct_CC!$ac_ct_CC$ac_delim
11969 EXEEXT!$EXEEXT$ac_delim
11970 OBJEXT!$OBJEXT$ac_delim
11971 CPP!$CPP$ac_delim
11972 AWK!$AWK$ac_delim
11973 MMAKE!$MMAKE$ac_delim
11974 aros_host_ld!$aros_host_ld$ac_delim
11975 aros_host_aclocal!$aros_host_aclocal$ac_delim
11976 aros_host_autoconf!$aros_host_autoconf$ac_delim
11977 aros_host_autoheader!$aros_host_autoheader$ac_delim
11978 aros_host_automake!$aros_host_automake$ac_delim
11979 aros_host_ar!$aros_host_ar$ac_delim
11980 aros_host_ranlib!$aros_host_ranlib$ac_delim
11981 aros_host_strip!$aros_host_strip$ac_delim
11982 RM!$RM$ac_delim
11983 CP!$CP$ac_delim
11984 MV!$MV$ac_delim
11985 ECHO!$ECHO$ac_delim
11986 MKDIR!$MKDIR$ac_delim
11987 TOUCH!$TOUCH$ac_delim
11988 SORT!$SORT$ac_delim
11989 UNIQ!$UNIQ$ac_delim
11990 NOP!$NOP$ac_delim
11991 CAT!$CAT$ac_delim
11992 BISON!$BISON$ac_delim
11993 FLEX!$FLEX$ac_delim
11994 PNGTOPNM!$PNGTOPNM$ac_delim
11995 PPMTOILBM!$PPMTOILBM$ac_delim
11996 SED!$SED$ac_delim
11997 CHMOD!$CHMOD$ac_delim
11998 PYTHON!$PYTHON$ac_delim
11999 PYTHON_VERSION!$PYTHON_VERSION$ac_delim
12000 PYTHON_PREFIX!$PYTHON_PREFIX$ac_delim
12001 PYTHON_EXEC_PREFIX!$PYTHON_EXEC_PREFIX$ac_delim
12002 PYTHON_PLATFORM!$PYTHON_PLATFORM$ac_delim
12003 pythondir!$pythondir$ac_delim
12004 pkgpythondir!$pkgpythondir$ac_delim
12005 pyexecdir!$pyexecdir$ac_delim
12006 pkgpyexecdir!$pkgpyexecdir$ac_delim
12007 FOR!$FOR$ac_delim
12008 IF!$IF$ac_delim
12009 TEST!$TEST$ac_delim
12010 CMP!$CMP$ac_delim
12011 GREP!$GREP$ac_delim
12012 EGREP!$EGREP$ac_delim
12013 LIBOBJS!$LIBOBJS$ac_delim
12014 DISTCC!$DISTCC$ac_delim
12015 CCACHE!$CCACHE$ac_delim
12016 _ACEOF
12018 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12019 break
12020 elif $ac_last_try; then
12021 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12022 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12023 { (exit 1); exit 1; }; }
12024 else
12025 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12027 done
12029 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12030 if test -n "$ac_eof"; then
12031 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12032 ac_eof=`expr $ac_eof + 1`
12035 cat >>$CONFIG_STATUS <<_ACEOF
12036 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
12037 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12038 _ACEOF
12039 sed '
12040 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12041 s/^/s,@/; s/!/@,|#_!!_#|/
12044 s/'"$ac_delim"'$/,g/; t
12045 s/$/\\/; p
12046 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12047 ' >>$CONFIG_STATUS <conf$$subs.sed
12048 rm -f conf$$subs.sed
12049 cat >>$CONFIG_STATUS <<_ACEOF
12050 CEOF$ac_eof
12051 _ACEOF
12054 ac_delim='%!_!# '
12055 for ac_last_try in false false false false false :; do
12056 cat >conf$$subs.sed <<_ACEOF
12057 aros_kernel_cc!$aros_kernel_cc$ac_delim
12058 aros_target_as_ln!$aros_target_as_ln$ac_delim
12059 aros_kernel_ld!$aros_kernel_ld$ac_delim
12060 aros_target_ar_ln!$aros_target_ar_ln$ac_delim
12061 aros_target_nm_ln!$aros_target_nm_ln$ac_delim
12062 aros_target_objcopy_ln!$aros_target_objcopy_ln$ac_delim
12063 aros_target_objdump_ln!$aros_target_objdump_ln$ac_delim
12064 aros_target_ranlib_ln!$aros_target_ranlib_ln$ac_delim
12065 aros_target_strip_ln!$aros_target_strip_ln$ac_delim
12066 aros_target_nostdinc_cflags!$aros_target_nostdinc_cflags$ac_delim
12067 aros_target_nostartup_ldflags!$aros_target_nostartup_ldflags$ac_delim
12068 aros_target_nix_ldflags!$aros_target_nix_ldflags$ac_delim
12069 aros_target_detach_ldflags!$aros_target_detach_ldflags$ac_delim
12070 aros_target_nostdlib_ldflags!$aros_target_nostdlib_ldflags$ac_delim
12071 XMKMF!$XMKMF$ac_delim
12072 SDL_CONFIG!$SDL_CONFIG$ac_delim
12073 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
12074 SDL_LIBS!$SDL_LIBS$ac_delim
12075 aros_arch!$aros_arch$ac_delim
12076 aros_cpu!$aros_cpu$ac_delim
12077 aros_flavour!$aros_flavour$ac_delim
12078 aros_flavour_uc!$aros_flavour_uc$ac_delim
12079 TOPDIR!$TOPDIR$ac_delim
12080 aros_cc_pre!$aros_cc_pre$ac_delim
12081 aros_host_arch!$aros_host_arch$ac_delim
12082 aros_host_cpu!$aros_host_cpu$ac_delim
12083 aros_host_cc!$aros_host_cc$ac_delim
12084 aros_host_make!$aros_host_make$ac_delim
12085 aros_host_cflags!$aros_host_cflags$ac_delim
12086 aros_host_ldflags!$aros_host_ldflags$ac_delim
12087 aros_host_debug!$aros_host_debug$ac_delim
12088 aros_host_mkdep!$aros_host_mkdep$ac_delim
12089 aros_host_mkargs!$aros_host_mkargs$ac_delim
12090 aros_host_exe_suffix!$aros_host_exe_suffix$ac_delim
12091 aros_host_lib_suffix!$aros_host_lib_suffix$ac_delim
12092 aros_tools_dir!$aros_tools_dir$ac_delim
12093 aros_target_arch!$aros_target_arch$ac_delim
12094 aros_target_cpu!$aros_target_cpu$ac_delim
12095 aros_target_variant!$aros_target_variant$ac_delim
12096 aros_target_suffix!$aros_target_suffix$ac_delim
12097 aros_target_incl!$aros_target_incl$ac_delim
12098 aros_target_ar!$aros_target_ar$ac_delim
12099 aros_target_ranlib!$aros_target_ranlib$ac_delim
12100 aros_kernel_nm!$aros_kernel_nm$ac_delim
12101 aros_target_cc!$aros_target_cc$ac_delim
12102 aros_target_as!$aros_target_as$ac_delim
12103 aros_target_ld!$aros_target_ld$ac_delim
12104 aros_target_cc_includes!$aros_target_cc_includes$ac_delim
12105 aros_target_cc_path!$aros_target_cc_path$ac_delim
12106 aros_target_objdump!$aros_target_objdump$ac_delim
12107 aros_target_objcopy!$aros_target_objcopy$ac_delim
12108 aros_target_strip!$aros_target_strip$ac_delim
12109 aros_target_nm!$aros_target_nm$ac_delim
12110 aros_shared_default!$aros_shared_default$ac_delim
12111 aros_shared_ld!$aros_shared_ld$ac_delim
12112 aros_object_format!$aros_object_format$ac_delim
12113 aros_compiler_libs!$aros_compiler_libs$ac_delim
12114 aros_config_cflags!$aros_config_cflags$ac_delim
12115 aros_config_aflags!$aros_config_aflags$ac_delim
12116 aros_config_ldflags!$aros_config_ldflags$ac_delim
12117 aros_shared_cflags!$aros_shared_cflags$ac_delim
12118 aros_shared_aflags!$aros_shared_aflags$ac_delim
12119 aros_shared_ldflags!$aros_shared_ldflags$ac_delim
12120 aros_kernel_ldflags!$aros_kernel_ldflags$ac_delim
12121 aros_debug_cflags!$aros_debug_cflags$ac_delim
12122 aros_debug_aflags!$aros_debug_aflags$ac_delim
12123 aros_debug_ldflags!$aros_debug_ldflags$ac_delim
12124 aros_target_genmap!$aros_target_genmap$ac_delim
12125 aros_target_strip_flags!$aros_target_strip_flags$ac_delim
12126 aros_gui_libdir!$aros_gui_libdir$ac_delim
12127 aros_gui_ldflags!$aros_gui_ldflags$ac_delim
12128 aros_gui_libflags!$aros_gui_libflags$ac_delim
12129 aros_gui_incdir!$aros_gui_incdir$ac_delim
12130 aros_gui_ccflags!$aros_gui_ccflags$ac_delim
12131 x11_hidd_target!$x11_hidd_target$ac_delim
12132 sdl_hidd_target!$sdl_hidd_target$ac_delim
12133 aros_default_wbwidth!$aros_default_wbwidth$ac_delim
12134 aros_default_wbheight!$aros_default_wbheight$ac_delim
12135 aros_default_wbdepth!$aros_default_wbdepth$ac_delim
12136 DO_XSHM_SUPPORT!$DO_XSHM_SUPPORT$ac_delim
12137 DO_VIDMODE_SUPPORT!$DO_VIDMODE_SUPPORT$ac_delim
12138 aros_bochs_hack!$aros_bochs_hack$ac_delim
12139 aros_serial_debug!$aros_serial_debug$ac_delim
12140 aros_palm_debug_hack!$aros_palm_debug_hack$ac_delim
12141 aros_nesting_supervisor!$aros_nesting_supervisor$ac_delim
12142 ENABLE_DBUS!$ENABLE_DBUS$ac_delim
12143 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
12144 DBUS_LIBFLAGS!$DBUS_LIBFLAGS$ac_delim
12145 KERNEL_DBUS_KOBJ!$KERNEL_DBUS_KOBJ$ac_delim
12146 KERNEL_DBUS_INCLUDES!$KERNEL_DBUS_INCLUDES$ac_delim
12147 aros_debug!$aros_debug$ac_delim
12148 aros_mungwall_debug!$aros_mungwall_debug$ac_delim
12149 aros_stack_debug!$aros_stack_debug$ac_delim
12150 aros_modules_debug!$aros_modules_debug$ac_delim
12151 ignore_undefined_symbols!$ignore_undefined_symbols$ac_delim
12152 gcc_target_cpu!$gcc_target_cpu$ac_delim
12153 LTLIBOBJS!$LTLIBOBJS$ac_delim
12154 _ACEOF
12156 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
12157 break
12158 elif $ac_last_try; then
12159 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
12160 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
12161 { (exit 1); exit 1; }; }
12162 else
12163 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12165 done
12167 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
12168 if test -n "$ac_eof"; then
12169 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
12170 ac_eof=`expr $ac_eof + 1`
12173 cat >>$CONFIG_STATUS <<_ACEOF
12174 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
12175 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12176 _ACEOF
12177 sed '
12178 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
12179 s/^/s,@/; s/!/@,|#_!!_#|/
12182 s/'"$ac_delim"'$/,g/; t
12183 s/$/\\/; p
12184 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
12185 ' >>$CONFIG_STATUS <conf$$subs.sed
12186 rm -f conf$$subs.sed
12187 cat >>$CONFIG_STATUS <<_ACEOF
12188 CEOF$ac_eof
12189 _ACEOF
12192 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12193 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12194 # trailing colons and then remove the whole line if VPATH becomes empty
12195 # (actually we leave an empty line to preserve line numbers).
12196 if test "x$srcdir" = x.; then
12197 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12198 s/:*\$(srcdir):*/:/
12199 s/:*\${srcdir}:*/:/
12200 s/:*@srcdir@:*/:/
12201 s/^\([^=]*=[ ]*\):*/\1/
12202 s/:*$//
12203 s/^[^=]*=[ ]*$//
12207 cat >>$CONFIG_STATUS <<\_ACEOF
12208 fi # test -n "$CONFIG_FILES"
12211 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
12213 case $ac_tag in
12214 :[FHLC]) ac_mode=$ac_tag; continue;;
12215 esac
12216 case $ac_mode$ac_tag in
12217 :[FHL]*:*);;
12218 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
12219 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
12220 { (exit 1); exit 1; }; };;
12221 :[FH]-) ac_tag=-:-;;
12222 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12223 esac
12224 ac_save_IFS=$IFS
12225 IFS=:
12226 set x $ac_tag
12227 IFS=$ac_save_IFS
12228 shift
12229 ac_file=$1
12230 shift
12232 case $ac_mode in
12233 :L) ac_source=$1;;
12234 :[FH])
12235 ac_file_inputs=
12236 for ac_f
12238 case $ac_f in
12239 -) ac_f="$tmp/stdin";;
12240 *) # Look for the file first in the build tree, then in the source tree
12241 # (if the path is not absolute). The absolute path cannot be DOS-style,
12242 # because $ac_f cannot contain `:'.
12243 test -f "$ac_f" ||
12244 case $ac_f in
12245 [\\/$]*) false;;
12246 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12247 esac ||
12248 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
12249 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
12250 { (exit 1); exit 1; }; };;
12251 esac
12252 ac_file_inputs="$ac_file_inputs $ac_f"
12253 done
12255 # Let's still pretend it is `configure' which instantiates (i.e., don't
12256 # use $as_me), people would be surprised to read:
12257 # /* config.h. Generated by config.status. */
12258 configure_input="Generated from "`IFS=:
12259 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
12260 if test x"$ac_file" != x-; then
12261 configure_input="$ac_file. $configure_input"
12262 { echo "$as_me:$LINENO: creating $ac_file" >&5
12263 echo "$as_me: creating $ac_file" >&6;}
12266 case $ac_tag in
12267 *:-:* | *:-) cat >"$tmp/stdin";;
12268 esac
12270 esac
12272 ac_dir=`$as_dirname -- "$ac_file" ||
12273 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12274 X"$ac_file" : 'X\(//\)[^/]' \| \
12275 X"$ac_file" : 'X\(//\)$' \| \
12276 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12277 echo X"$ac_file" |
12278 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12279 s//\1/
12282 /^X\(\/\/\)[^/].*/{
12283 s//\1/
12286 /^X\(\/\/\)$/{
12287 s//\1/
12290 /^X\(\/\).*/{
12291 s//\1/
12294 s/.*/./; q'`
12295 { as_dir="$ac_dir"
12296 case $as_dir in #(
12297 -*) as_dir=./$as_dir;;
12298 esac
12299 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
12300 as_dirs=
12301 while :; do
12302 case $as_dir in #(
12303 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
12304 *) as_qdir=$as_dir;;
12305 esac
12306 as_dirs="'$as_qdir' $as_dirs"
12307 as_dir=`$as_dirname -- "$as_dir" ||
12308 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12309 X"$as_dir" : 'X\(//\)[^/]' \| \
12310 X"$as_dir" : 'X\(//\)$' \| \
12311 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12312 echo X"$as_dir" |
12313 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12314 s//\1/
12317 /^X\(\/\/\)[^/].*/{
12318 s//\1/
12321 /^X\(\/\/\)$/{
12322 s//\1/
12325 /^X\(\/\).*/{
12326 s//\1/
12329 s/.*/./; q'`
12330 test -d "$as_dir" && break
12331 done
12332 test -z "$as_dirs" || eval "mkdir $as_dirs"
12333 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
12334 echo "$as_me: error: cannot create directory $as_dir" >&2;}
12335 { (exit 1); exit 1; }; }; }
12336 ac_builddir=.
12338 case "$ac_dir" in
12339 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12341 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12342 # A ".." for each directory in $ac_dir_suffix.
12343 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
12344 case $ac_top_builddir_sub in
12345 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12346 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12347 esac ;;
12348 esac
12349 ac_abs_top_builddir=$ac_pwd
12350 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12351 # for backward compatibility:
12352 ac_top_builddir=$ac_top_build_prefix
12354 case $srcdir in
12355 .) # We are building in place.
12356 ac_srcdir=.
12357 ac_top_srcdir=$ac_top_builddir_sub
12358 ac_abs_top_srcdir=$ac_pwd ;;
12359 [\\/]* | ?:[\\/]* ) # Absolute name.
12360 ac_srcdir=$srcdir$ac_dir_suffix;
12361 ac_top_srcdir=$srcdir
12362 ac_abs_top_srcdir=$srcdir ;;
12363 *) # Relative name.
12364 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12365 ac_top_srcdir=$ac_top_build_prefix$srcdir
12366 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12367 esac
12368 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12371 case $ac_mode in
12374 # CONFIG_FILE
12377 _ACEOF
12379 cat >>$CONFIG_STATUS <<\_ACEOF
12380 # If the template does not know about datarootdir, expand it.
12381 # FIXME: This hack should be removed a few years after 2.60.
12382 ac_datarootdir_hack=; ac_datarootdir_seen=
12384 case `sed -n '/datarootdir/ {
12388 /@datadir@/p
12389 /@docdir@/p
12390 /@infodir@/p
12391 /@localedir@/p
12392 /@mandir@/p
12393 ' $ac_file_inputs` in
12394 *datarootdir*) ac_datarootdir_seen=yes;;
12395 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12396 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12397 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12398 _ACEOF
12399 cat >>$CONFIG_STATUS <<_ACEOF
12400 ac_datarootdir_hack='
12401 s&@datadir@&$datadir&g
12402 s&@docdir@&$docdir&g
12403 s&@infodir@&$infodir&g
12404 s&@localedir@&$localedir&g
12405 s&@mandir@&$mandir&g
12406 s&\\\${datarootdir}&$datarootdir&g' ;;
12407 esac
12408 _ACEOF
12410 # Neutralize VPATH when `$srcdir' = `.'.
12411 # Shell code in configure.ac might set extrasub.
12412 # FIXME: do we really want to maintain this feature?
12413 cat >>$CONFIG_STATUS <<_ACEOF
12414 sed "$ac_vpsub
12415 $extrasub
12416 _ACEOF
12417 cat >>$CONFIG_STATUS <<\_ACEOF
12419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12420 s&@configure_input@&$configure_input&;t t
12421 s&@top_builddir@&$ac_top_builddir_sub&;t t
12422 s&@srcdir@&$ac_srcdir&;t t
12423 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12424 s&@top_srcdir@&$ac_top_srcdir&;t t
12425 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12426 s&@builddir@&$ac_builddir&;t t
12427 s&@abs_builddir@&$ac_abs_builddir&;t t
12428 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12429 $ac_datarootdir_hack
12430 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed 's/|#_!!_#|//g' >$tmp/out
12432 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12433 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12434 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12435 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12436 which seems to be undefined. Please make sure it is defined." >&5
12437 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12438 which seems to be undefined. Please make sure it is defined." >&2;}
12440 rm -f "$tmp/stdin"
12441 case $ac_file in
12442 -) cat "$tmp/out"; rm -f "$tmp/out";;
12443 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
12444 esac
12448 # CONFIG_HEADER
12450 _ACEOF
12452 # Transform confdefs.h into a sed script `conftest.defines', that
12453 # substitutes the proper values into config.h.in to produce config.h.
12454 rm -f conftest.defines conftest.tail
12455 # First, append a space to every undef/define line, to ease matching.
12456 echo 's/$/ /' >conftest.defines
12457 # Then, protect against being on the right side of a sed subst, or in
12458 # an unquoted here document, in config.status. If some macros were
12459 # called several times there might be several #defines for the same
12460 # symbol, which is useless. But do not sort them, since the last
12461 # AC_DEFINE must be honored.
12462 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12463 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
12464 # NAME is the cpp macro being defined, VALUE is the value it is being given.
12465 # PARAMS is the parameter list in the macro definition--in most cases, it's
12466 # just an empty string.
12467 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
12468 ac_dB='\\)[ (].*,\\1define\\2'
12469 ac_dC=' '
12470 ac_dD=' ,'
12472 uniq confdefs.h |
12473 sed -n '
12474 t rset
12475 :rset
12476 s/^[ ]*#[ ]*define[ ][ ]*//
12477 t ok
12480 s/[\\&,]/\\&/g
12481 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
12482 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
12483 ' >>conftest.defines
12485 # Remove the space that was appended to ease matching.
12486 # Then replace #undef with comments. This is necessary, for
12487 # example, in the case of _POSIX_SOURCE, which is predefined and required
12488 # on some systems where configure will not decide to define it.
12489 # (The regexp can be short, since the line contains either #define or #undef.)
12490 echo 's/ $//
12491 s,^[ #]*u.*,/* & */,' >>conftest.defines
12493 # Break up conftest.defines:
12494 ac_max_sed_lines=50
12496 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
12497 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
12498 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
12499 # et cetera.
12500 ac_in='$ac_file_inputs'
12501 ac_out='"$tmp/out1"'
12502 ac_nxt='"$tmp/out2"'
12504 while :
12506 # Write a here document:
12507 cat >>$CONFIG_STATUS <<_ACEOF
12508 # First, check the format of the line:
12509 cat >"\$tmp/defines.sed" <<\\CEOF
12510 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
12511 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
12513 :def
12514 _ACEOF
12515 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
12516 echo 'CEOF
12517 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
12518 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
12519 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
12520 grep . conftest.tail >/dev/null || break
12521 rm -f conftest.defines
12522 mv conftest.tail conftest.defines
12523 done
12524 rm -f conftest.defines conftest.tail
12526 echo "ac_result=$ac_in" >>$CONFIG_STATUS
12527 cat >>$CONFIG_STATUS <<\_ACEOF
12528 if test x"$ac_file" != x-; then
12529 echo "/* $configure_input */" >"$tmp/config.h"
12530 cat "$ac_result" >>"$tmp/config.h"
12531 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
12532 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12533 echo "$as_me: $ac_file is unchanged" >&6;}
12534 else
12535 rm -f $ac_file
12536 mv "$tmp/config.h" $ac_file
12538 else
12539 echo "/* $configure_input */"
12540 cat "$ac_result"
12542 rm -f "$tmp/out12"
12545 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
12546 echo "$as_me: executing $ac_file commands" >&6;}
12548 esac
12551 case $ac_file$ac_mode in
12552 "compiler_executable":C)
12553 prefix=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}
12554 mkdir -p $prefix
12555 prefix="${prefix}/${aros_target_cpu}-aros"
12556 prefix2=${PWD}/${aros_tools_dir}/${aros_target_cpu}-${aros_target_arch}${aros_target_suffix}-aros
12558 echo ${prefix}
12559 echo ${prefix2}
12560 chmod a+x ${prefix2}-gcc ${prefix2}-ld
12562 ln -sf ${prefix2}-gcc ${prefix}-gcc
12563 ln -sf ${prefix2}-ld ${prefix}-ld
12565 ln -sf $aros_target_as_ln ${prefix}-as
12566 ln -sf $aros_target_nm_ln ${prefix}-nm
12567 ln -sf $aros_target_ar_ln ${prefix}-ar
12568 ln -sf $aros_target_ranlib_ln ${prefix}-ranlib
12569 ln -sf $aros_target_objcopy_ln ${prefix}-objcopy
12570 ln -sf $aros_target_objdump_ln ${prefix}-objdump
12571 ln -sf $aros_target_strip_ln ${prefix}-strip
12573 ln -sf $aros_target_as_ln ${prefix2}-as
12574 ln -sf $aros_target_nm_ln ${prefix2}-nm
12575 ln -sf $aros_target_ar_ln ${prefix2}-ar
12576 ln -sf $aros_target_ranlib_ln ${prefix2}-ranlib
12577 ln -sf $aros_target_objcopy_ln ${prefix2}-objcopy
12578 ln -sf $aros_target_objdump_ln ${prefix2}-objdump
12579 ln -sf $aros_target_strip_ln ${prefix2}-strip
12581 "genshared_executable":C) chmod a+x ${aros_scripts_dir}/genshared ;;
12582 "genmf_executable":C) chmod a+x ${aros_tools_dir}/genmf.py ;;
12583 "adflib_myaros.conf_executable":C) chmod a+x tools/adflib/myconf.aros
12586 esac
12587 done # for ac_tag
12590 { (exit 0); exit 0; }
12591 _ACEOF
12592 chmod +x $CONFIG_STATUS
12593 ac_clean_files=$ac_clean_files_save
12596 # configure is writing to config.log, and then calls config.status.
12597 # config.status does its own redirection, appending to config.log.
12598 # Unfortunately, on DOS this fails, as config.log is still kept open
12599 # by configure, so config.status won't be able to write to it; its
12600 # output is simply discarded. So we exec the FD to /dev/null,
12601 # effectively closing config.log, so it can be properly (re)opened and
12602 # appended to by config.status. When coming back to configure, we
12603 # need to make the FD available again.
12604 if test "$no_create" != yes; then
12605 ac_cs_success=:
12606 ac_config_status_args=
12607 test "$silent" = yes &&
12608 ac_config_status_args="$ac_config_status_args --quiet"
12609 exec 5>/dev/null
12610 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12611 exec 5>>config.log
12612 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12613 # would make configure fail if this is the last instruction.
12614 $ac_cs_success || { (exit 1); exit 1; }
12619 #XXX compatability...
12620 aros_shared_ar="$aros_shared_ld $aros_shared_ldflags -o"
12622 if test -n "$aros_shared_cflags" ; then
12623 echo "SHARED_CFLAGS := $aros_shared_cflags" >> ${aros_hostcfg_dir}/host.cfg
12624 echo "SHARED_AR := $aros_shared_ar" >> ${aros_hostcfg_dir}/host.cfg